Mitsubishi — Chapter 8 Application Instructions API 100-149

8 Application Instructions API 100-149 Program Example 1: Communication between PLC and VFD-S series AC motor drives (ASCII Mode, M1143 = Off) M1002 Set up communication protocol 9600, 8, E, 1 Retain communication protocol Set up communication time-out: 100ms Set up sending request X1 X0 Set up communication instruction device address 01 data address H0100 data H1770 M1127 Process of receiving data The received data are stored in D1070 ~ D1085 in ASCII format. PLC will automatically convert the data into numerals and store them in D1050 ~ D1055. receiving completed Sending/receiving of data is completed. The flag is reset. VFD-B  PLC, PLC receives:

“ 01 06 0100 1770 71 ” PLC  VFD-B, PLC sends: “ 01 06 0100 1770 71 ” Registers for sent data (sending messages) PLC receiving data register (response messages) DVP-PLC Application Manual 8-6 MOV H87 D1120 SET M1120 MOV K100 D1129 SET M1122 MODWR K1 H0100 H1770 RST M1127 Register DATA Explanation D1089 low ‘0’ 30 H ADR 1 Address of AC motor drive: ADR (1,0) D1089 high ‘1’ 31 H ADR 0 D1090 low ‘0’ 30 H CMD 1 Instruction code: CMD (1,0) D1090 high ‘6’ 36 H CMD 0 D1091 low ‘0’ 30 H Data address D1091 high ‘1’ 31 H D1092 low ‘0’ 30 H D1092 high ‘0’ 30 H D1093 low ‘1’ 31 H Data contents D1093 high ‘7’ 37 H D1094 low ‘7’ 37 H D1094 high ‘0’ 30 H D1095 low ‘7’ 37 H LRC CHK 1 Error checksum:

LRC CHK (0,1) D1095 high ‘1’ 31 H LRC CHK 0 Register DATA Explanation D1070 low ‘0’ 30 H ADR 1 D1070 high ‘1’ 31 H ADR 0 D1071 low ‘0’ 30 H CMD 1 D1071 high ‘6’ 36 H CMD 0 D1072 low ‘0’ 30 H Data address D1072 high ‘1’ 31 H D1073 low ‘0’ 30 H D1073 high ‘0’ 30 H D1074 low ‘1’ 31 H Data content D1074 high ‘7’ 37 H D1075 low ‘7’ 37 H D1075 high ‘0’ 30 H D1076 low ‘7’ 37 H LRC CHK 1 D1076 high ‘1’ 31 H LRC CHK 0