Chapter 4: PLC Communications
Lost Communication Situation
You may want to detect if there is something happening at the Modbus master side that stops
communication with the Modbus slaves. Or, the communication cable might have been
disconnected. In this situation, you may want the Modbus slaves to take an action. For
instance, you may want to shut down the outputs on the slave CLICK PLUS PLC when the
communication with the Modbus master is lost. We offer an easy method to accomplish this.
The CLICK keeps counting how long it has been since each com port received a message from
the Modbus master, and enters the time duration in the following system data registers.
Each register is reset to zero automatically when the com port receives a message from the
Modbus master. Then its value increments by 1 per second until the com port receives another
message from the Modbus master. If one of these registers has 60 as its value, it means the com
port has not received any message from the Modbus master for 60 seconds. You can use this
info to shut down the outputs on the slave CLICK PLUS PLC. Here is an example program.
4-28
CLICK PLUS PLC Hardware User Manual, 1st Edition, Rev. B – C2-USER-M
System Data Registers
System Data Register
SD41
SD51
SD61
SD214
This contact is on when com port 1
has not received any message from
the Modbus master for 60 seconds.
Nickname
_Port1_No_Comm_Time
_Port2_No_Comm_Time
_Port3_No_Comm_Time
_WLAN_No_Comm_Time
Range
0 - 32767 (sec)
0 - 32767 (sec)
0 - 32767 (sec)
0 - 32767 (sec)
Reset the outputs Y001 to Y006.
Need help?
Do you have a question about the CLICK PLUS PLC and is the answer not in the manual?
Questions and answers