Mb_WriteSingleCoil

Function block Mb_WriteSingleCoil
Writes a BOOL into a device's single digital output.
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 Value BOOL A BOOL value to be written.
VAR_OUTPUT
V Port RTX_Port The port used.
V Done BOOL The value was 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_WriteSingleCoil  
RTX_Port   PortIn   Port   RTX_Port
BOOL   Execute   Done   BOOL
UINT   DeviceId   Busy   BOOL
UINT   Address   Error   BOOL
BOOL   Value   ErrorID   MB_ERROR