Mb_WriteCoils_128

Function block Mb_WriteCoils_128
Writes BOOLs into a device's digital outputs. A maximum of 128 values can be written 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 written. It starts at one.
V Length UINT The number of values to be written. The maximum is 128.
V Value ARRAY [0..127] OF BOOL The BOOL values to be written.
VAR_OUTPUT
V Port RTX_Port The port used.
V Done BOOL The values were written 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.
Usable EtherCAT states: all. Not tied to EtherCAT, only to the port.
  Mb_WriteCoils_128  
RTX_Port   PortIn   Port   RTX_Port
BOOL   Execute   Done   BOOL
UINT   DeviceId   Busy   BOOL
UINT   Address   Error   BOOL
UINT   Length   ErrorID   MB_ERROR
ARRAY [0..127] OF BOOL   Value