Input DescriptionΒΆ

../_images/cd50ca1ae38a2eb40a33139000eba54e1

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

The input EN has to be driven in edge triggered mode.

The execution of the Function Block is started with a positive edge on the input EN.

In the first call it evaluates its inputs and creates a local copy of them. Afterwards it starts its internal algorithm. It may take several PLC task cycles until it is executed.

Once the execution is completed DONE and its other outputs are set. To start the Function Block again a new positive edge on the input EN has to be applied.

CH

Data_Type Default_Value Range Unit
BYTE - - -

Input CH (channel) is used to specify the channel of the PM5xx to be addressed.

Valid values: 1 and 2.

DATA

Data_Type Default_Value Range Unit
DWORD - - -

Input DATA is used to specify the address of the variable the user data are to be copied to. DATA must contain an address of a variable of the type ARRAY or STRUCT.

Note

Specify the size of the variable according to the maximum amount of data expected in order to avoid memory area overlapping.

DATA_LEN

Data_Type Default_Value Range Unit
WORD - - Byte

Output DATA_LEN displays the length of the received data. The output value at DATA_LEN is only valid if DONE = TRUE.