(3) Ladder chart
PLC coil
M0~M7
M10~M17
MA I/O points
MA Modbus address
Y0~Y7
K128~K135
X0~X8
K0~K7
T211 time for 100ms
T210 time for 100ms, aim to produce a 200ms
continuous square wave
Open process S2 and close process S1 when
fall edge coming
Start process S1
Write the value of M0~M7(PLC) to
K128~K135, i.e. MA output Y0~Y7
Delay for 50ms
Close process S1 when data transfer are
completed or 50ms is over
Start process S2
End of process S1
Open process S1 and close process S2
when the up edge coming