12. Communication Design Examples X0 Run forward in 30Hz when X0 = ON X1 Run in reverse in 20Hz when X1 = ON X2 Stop when X2 = ON M0 Execute MODRD instruction M1 Execute MODRW instruction M0 M1 Sending request M0 Read master frequency and output frequency of AC motor drive and store them in D1050 and D1051. M1 M1127 Set START/STOP state and master frequency of AC motor drive C0 counts once when data receiving is completed Reset the flag M1127 M0 Store the master frequency of AC motor drive in D2 Store the master frequency of AC motor drive in D3 M1129 C0 counts once when communication timeout occurs.
Reset the flag M1129 DVP-PLC Application Examples 12-12 MOV H12 D0 MOV K3000 D1 MOV K22 D0 MOV K2000 D1 MOV H1 D0 RST D1 LD= C0 K0 LD= C0 K1 LD= C0 K2 RST C0 SET M1122 MODRD K1 H2102 K2 MODRW K1 K16 H2000 D0 K2 CNT C0 K10 RST M1127 MOV D1050 D2 MOV D1051 D3 CNT C0 K10 RST M1129