An M21-M28  command stops the program until the external device sends a finish signal.
The control shows MFIN  until the I/O PCB receives the finish signal.
In this example, the rotary momentarily makes an electrical connection between pins 2 and 3 on P10. This sends the finish signal.
When the control receives the finish signal, the program continues.
Use this example for an external device that does not send the finish signal back to the I/O PCB.
This example shows how an external device is connected to the relay.
This example shows a solenoid connected to M21 on the 8M PCB.
The connection changes with the device type:
- Use COM (Common) and NO (Normally Open) for normally open systems.
- Use COM (Common) and NC (Normally Closed) for normally closed systems.
Use these codes to energize or de-energize a relay:
|M21||M59 P1140||M69 P1140|
|M22||M59 P1141||M69 P1141|
|M23||M59 P1142||M69 P1142|
|M24||M59 P1143||M69 P1143|
|M25||M59 P1144||M69 P1144|
|M26||M59 P1145||M69 P1145|
|M27||M59 P1146||M69 P1146|
|M28||M59 P1147||M69 P1147|