12. Communication Design Examples Control Program: M1002 Set communication format: 9600, 7, E, 1 Retain communication setting Set receiving time-out: 500ms M1002 Set rotation number of internal position 1. Set pulse number of internal position 1. M0 Execute MODRD instruction M1 Execute MODRW instruction M0 Sending request M1 M0 Read the rotation number and pulse number of internal position 1 then store them in D1050 and D1051 M1 Write the content in D10 and D11 into H10F and H110 of AC servo drive M1127 C0 counts each time when communication is completed.
M1129 Reset the flag M1127 M1140 Reset the flag M1129 M1141 Reset the flag M1140 Reset the flag M1141 DVP-PLC Application Examples 12-16 MOV H86 D1120 SET M1120 MOV K500 D1129 MOV K10 D10 MOV K5000 D11 LD= C0 K0 LD= C0 K1 LD= C0 K2 RST C0 SET M1122 MODRD K1 H10F K2 MODRW K1 K16 H10F D10 K2 CNT C0 K10 RST M1127 RST M1129 RST M1140 RST M1141