Mitsubishi — Chapter 8 Application Instructions API 100-149

8 Application Instructions API 100-149 M1002 Set up communication protocol to 9600, 8, E, 1 Retain communication protocol Set up communication time-out: 100ms X0 Set up transmission request M1129 Communication time-out Retry M1140 Data receive error Retry M1141 Sending address error Retry X0 Set up communication instruction: device address 01, data address H0100 data H1770 M1122 M1127 Receiving completed handle received data The received data are stored in D1070 ~ D1085 in ASCII format. Sending/receiving of data is completed. The flag is reset. M1129 Communication time-out. The flag is reset. M1140 M1141 Remarks: 1. For the registers for flag settings, see explanations in API 80 RS. 2.

M1127 for MODWR instruction stands for the response of data is completed. M1127 will only be On if the responded data are correct. M1123 will be On no matter the responded data are correct or wrong. 3. There is no limitation on the times of using this instruction in the program, but only one instruction is allowed to be executed at a time. DVP-PLC Application Manual 8-9 MOV H87 D1120 SET M1120 MOV K100 D1129 MOV K3 D0 SET M1122 LD>= D0 D100 MODWR K1 H0100 H1770 INC D100 RST M1127 RST D100 RST M1129 RST M1140 RST M1141