12. Communication Design Examples M0 Sending request M1 M2 M0 Read master frequency and output frequency of AC motor drive and store them in D1050 and D1051 M1 Set the AC motor drive to run forward. D10=H12 M2 Set the master frequency of the drive: 40Hz. D11=K4000 M1127 C0 counts once when data receiving is completed. Reset the flag M1127 M1129 C0 counts once when communication timeout occurs. Reset the flag M1129 M1140 C0 counts once when data receiving error occurs. . Reset the flag M1140. M1141 C0 counts once when parameter error occurs. . Reset the flag M1141 M1000 Send the master frequency of the drive to D0 Send the output frequency of the drive to D1 Program Description:
z Initialize PLC RS-485 communication port and set the communication format as MODBUS DVP-PLC Application Examples 12-6 SET M1122 MODRD K1 H2102 K2 MODWR K1 H2000 D10 MODWR K1 H2001 D11 CNT C0 K10 RST M1127 CNT C0 K10 RST M1129 CNT C0 K10 RST M1140 CNT C0 K10 RST M1141 MOV D1050 D0 MOV D1051 D1