SimpleWriteCoil_FC05
SimpleWriteCoil_FC05 (FB)
SimpleWriteCoil_FC05 (FB)FUNCTION_BLOCK SimpleWriteCoil_FC05
Representation

Transmission of the state of a coil (FC05) to an address (wCoilAddr)
CODESYS
InOut:
Input
xEn
BOOL
TRUE
Enable / disable communication (TRUE = enable)
Input
byUnitId
BYTE
0
Device address
Input
InputValue
__SYSTEM.AnyType
Input variable for determining the state of the coil (FC05) (BOOL, BYTE)
Input
xUpdateSetp
BOOL
FALSE
Update of setpoints (on every rising edge)
Input
xResError
BOOL
FALSE
Reinitialization of the outputs eErrorCodeCom or
eErrorCodeDev to the error-free state (on every
rising edge)
Inout
ModbusClient
ModbusClientBase
Client of the device
Output
wCoilAddrFb
WORD
Feedback - address of the coil for the Modbus telegram (FC05) (0 - 65535)
Output
eInputValueDataType
SIMPLE_WRITE_COILS_FC05_DATA_TYPE
SIMPLE_WRITE_COILS_FC05_DATA_TYPE.INVALID_TYPE
Internal classification of the data type of the variable with the
state of the coil (0 = invalid, 1 = BOOL, 2 = BYTE)
Output
xInputValueValid
BOOL
FALSE
Validity of the variable at the input InputValue (FALSE =
invalid, TRUE = valid)
Output
xErrorFreeDataTransmission
BOOL
FALSE
Status of the data transmission (FALSE = faulty, LH- transition = error-free)
Output
xAlarm
BOOL
Collective fault (TRUE = fault)
Output
xAlarmCom
BOOL
Collective fault - communication (TRUE = fault)
Output
eErrorCodeCom
ModbusErrorCode
Error code - communication (0 = no error)
Output
eErrorCodeDev
SIMPLE_WRITE_COIL_ERROR_CODE
Error code - device (0 = no error)
Output
xBusy
BOOL
Communication indicator (TRUE = communication)
Input Const
wCoilAddr
WORD
Address of the coil for the Modbus telegram (FC05) (0 - 65535)
Input Const
tTimeUpdateSetp
TIME
TIME#0ms
Update interval for the processes influenced by the input
xUpdateSetp influenced
Last updated

