How create a communication link program

2023. 5. 3. 21:12Automation/Allen-Bradley PLC

When creating a PLC program and in order to communicate with other PLCs or controllers, it is essential to perform basic checks to ensure that the communication is working properly

  • Heartbeat : The other PLC sends a Heartbeat tag ranging from 1 to 10 every seconds
  • link status : By checking the heartbeat tag, it latches when the tag increments normally and unlatches when the heartbeat fails to increment

cautions!

-. link monitor routine must be included in the the main_task

(If it is included in the periodic task, there may be a confilct between the periodic timing and the link_monitor_timer, which can casue it to malfunction )