Mb_ReadCoils_128

Function block Mb_ReadCoils_128
Reads BOOLs from a device's digital outputs. A maximum of 128 values can be read at once.
VAR_INPUT
V PortIn RTX_Port The port used.
V Execute BOOL Starts the action at rising edge.
V DeviceId UINT The device ID of the Modbus server.
V Address UINT The starting address of the values to be read. It starts at one.
V Length UINT The number of values to be read. The maximum is 128.
VAR_OUTPUT
V Port RTX_Port The port used.
V Done BOOL The values were read successfully.
V Busy BOOL The function block is not finished and new output values are to be expected.
V Error BOOL Signals that an error has occurred within the function block.
V ErrorID MB_ERROR Error identification code.
V Value ARRAY [0..127] OF BOOL The BOOL values read.
Usable EtherCAT states: all. Not tied to EtherCAT, only to the port.
  Mb_ReadCoils_128  
RTX_Port   PortIn   Port   RTX_Port
BOOL   Execute   Done   BOOL
UINT   DeviceId   Busy   BOOL
UINT   Address   Error   BOOL
UINT   Length   ErrorID   MB_ERROR
        Value   ARRAY [0..127] OF BOOL