English
Smart System Strategies
Menu ☰

Designing the PLC handshake between two machines

A tray leaves a tester and enters a packing station. Both suppliers record a successful cycle. At shift end the tester has counted 100 trays and the packer 99. To find the discrepancy, start with the meaning of “transferred” in each controller.

Published:

Write the ownership table before the I/O addresses

In this example a tray carries an order identifier. The tester owns the evidence that it offered the tray. The packer owns the evidence that it received the tray. The four names below are illustrative application data. Physical addresses and network transport belong to the agreed machine design.

Example: signals exchanged during a tray transfer
Application dataWritten byMeaning at the boundary
OfferedTrayIdTesterIdentifier of the tray currently being offered.
OfferValidTesterThe offered identifier is valid for this transaction.
CanReceivePackerThe packer can accept an offered tray under the agreed production conditions.
ReceivedTrayIdPackerIdentifier of the tray whose arrival the packer has confirmed.

Add the type, allowed values, initial state, timing and clearing rule to the engineering version. One flag may be true while the other machine has lost communication. Specify how each side identifies stale data, what the operator sees and who owns reconciliation after a restart. Machine safety functions have their own design and validation.

When the receipt signal goes missing

Suppose tray 1042 has physically arrived when the link is interrupted. The tester still shows it as offered. The packer has recorded receipt. What does each HMI display after reconnection? Which record can operations use to resolve the order? What prevents the same identifier from being counted a second time?

Agree the expected answers on a one-page sequence diagram. At the joint test, record both controllers’ observations against a common test step and compare counts. Where the customer specifies PackML, identify the applicable machine mode and state alongside the transfer signals. A machine being in Execute still leaves the project team to define what “tray 1042 received” means.

Keep the signed signal list with both machine projects. A later change to the meaning of a bit can affect the line even when its address stays the same.

Review a machine-to-machine interface

Test the handshake before the machines meet with virtual commissioning test cases. The same ownership rules extend to MES and FIS records. For the controls work, see PLC programming.

References