Input Description¶
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.
COM
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BYTE | - | - | - |
At the COM input, the number of the serial interface is specified.
COM = 1: COM1
COM = 2: COM2
DATA
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | - | - |
At input DATA, the start address for storing the received data is specified using an ADR operator. Received data can be stored in the operand area as well as in variables. Some peculiarities have to be observed when receiving binary values.
When using IEC bit operands as storage address, only operands are allowed which end with “.0” (e.g. %QX62.0 allowed, %QX62.1 forbidden).
When storing a received telegram within the IEC bit operand area, it has to be observed that a received byte describes 8 bit operands. However, if a received telegram is stored to a Boolean variable, this variable is considered as FALSE if the byte has the value 0 and TRUE for all other values of the byte.