Input DescriptionΒΆ

../_images/24b71cf3357a654b0a317f3449fef7e9

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

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

In order to enable the execution of the Function Block the input EN has to be set to value TRUE. It keeps on executing until the input EN is set back to value FALSE.

While it is executed its inputs are continuously evaluated.

NUM

Data_Type Default_Value Range Unit
WORD - 0..65536 -

The input NUM specifies the number of Bytes contained in variable referenced at input ADR_MODBUS to be converted and put to variable referenced at input ADR_STRING.

ADR_MODBUS

Data_Type Default_Value Range Unit
DWORD - - -

Input ADR_MODBUS specifies the start address of the Modbus payload to be converted.

The total length of the data is assumed to be NUM Bytes long. It may contain any values. The value 0 is treated as string separator/terminator.

ADR_STRING

Data_Type Default_Value Range Unit
DWORD - - -

Input ADR_STRING specifies the start address of the String to contain the converted Modbus payload.

The total size/length of this variable is assumed to be at least NUM characters.

Since the input data may contain any values (even 0), after conversion ADR_STRING may contain one String shorter than NUM or multiple ones of NUM characters overall length.