8 Application Instructions API 100-149 7. S 2 = operation frequency of AC motor drive. Set frequency in A-series AC motor drive: K0 ~ K4,000 (0.0Hz ~ 400.0Hz). Set frequency in H-series: K0 ~ K1,500 (0Hz ~ 1,500Hz). 8. n = instructed target. n =1: AC motor drive at designated address. n =2: all connected AC motor drives. 9. The feedback (returned) data from the peripheral equipment will be stored in D1070 ~ D1080. After receiving the feedback data is completed, PLC will auto-check if all data are correct. If there is an error, M1142 will be On. When n = 2, PLC will not receive any data. Program Example:
Communication between PLC and VFD-A series AC drives, retry for communication time-out and received data error. M1002 Set up communication protocol to 4800, 8, O, 1 Retain communication protocol Set up communication time-out: 100ms X0 Communication command setting:Device address: 0 Frequency: 500Hz K1: indicated AC motor drive M1129 X0 Set up transmission request Communication time-out Retry M1142 Data receive error Retry M1127 Receiving completed handle received data The received data are stored in the low bit group of D1070 ~ D1080 by ASCI format. Sending/receiving of data is completed. The flag is reset. PLC VFD-A, PLC sends:
“ C ♥ 0001 0500 ” Registers for sent data (sending messages) VFD-A PLC, PLC sends:
“ C ♥ ♠ 0001 0500 ” Registers for received data (responding messages) DVP-PLC Application Manual 8-11 MOV H0073 D1120 SET M1120 MOV K100 D1129 FWD K0 K500 K1 SET M1122 RST M1127 Register DATA Explanation D1089 low ‘C’ 43 H Start word of instruction D1090 low ‘♥’ 03 H Checksum D1091 low ‘’ 01 H Instructed target D1092 low ‘0’ 30 H Communication address D1093 low ‘0’ 30 H D1094 low ‘0’ 30 H D1095 low ‘1’ 31 H D1096 low ‘0’ 30 H Running instruction D1097 low ‘5’ 35 H D1098 low ‘0’ 30 H D1099 low ‘0’ 30 H Register DATA Explanation D1070 low ‘C’ 43 H Start word of instruction D1071 low ‘♥’ 03 H Checksum D1072 low ‘♠’ 06 H Reply authorization (correct: 06H, incorrect: 07 H)