Reports the last polled value from a Modbus coil register on the slave device, while allowing a digital input value to be written to the register.
CommError is hidden by default.
Inputs
|
|
Slots
|
Type
|
Default
|
Description
|
|
In
|
Integer
|
Null
|
The value to be written to the register. Null values are ignored and not written to the register.
|
Outputs
|
|
|
Slots
|
Type
|
Description
|
|
Out
|
Integer
|
The last polled value from the slave device, or the default value if communications with the slave device was lost.
|
|
CommError
|
Digital
|
Set to True by the block when communication with the slave device is lost.
|
Properties
|
|
Slots
|
Description
|
|
DefaultValue
|
The default value of the Out slot when the program starts, and the value that the block will revert to when communication is lost with the slave device.
|
|
MaxReceiveTime
|
The maximum time, in seconds, that can elapse with no communication to the slave device before the block assumes that communication has been lost.
|
|
MaxSendTime
|
The maximum time, in seconds, that can elapse before the controller will resend values to the slave device. Useful in resending commands if the slave device loses communication and comes back online.
|
|
RegAddr
|
The address of the coil.
|
|