17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

Program Example 3:<br />

1. In the communication between PLC and VFD-B series AC motor drive (ASCII Mode, M1143 =<br />

OFF), executes Retry when communication time-out, data receiving error or parameter error<br />

occurs<br />

2. When X0 = ON, PLC will write data H1770 (K6000) into address H0100 in device 01 (VFD-B).<br />

3. M1129 will be ON when communication time-out occurs. The program will trigger M1129 and<br />

send request for reading the data again.<br />

4. M1140 will be ON when data receiving error occurs. The program will trigger M1140 and send<br />

request for reading the data again.<br />

5. M1141 will be ON when parameter error occurs. The program will trigger M1141 and send<br />

request for reading the data again.<br />

M1002<br />

MOV H87 D1120 Set communication protocol as 9600, 8, E, 1<br />

SET<br />

M1120<br />

Retain communication protocol<br />

MOV K100 D1129<br />

Set communication timeout as 100ms<br />

X0<br />

SET<br />

M1122<br />

Sending request<br />

M1129<br />

M1140<br />

M1141<br />

X0<br />

Retry when communication time-out occurs<br />

Retry when data receiving error occurs<br />

Retry when parameter error occurs<br />

MODWR K1 H0100 H1770<br />

Receiving completed<br />

M1127<br />

Processing received data<br />

Set communication instruction:<br />

Data: H1770<br />

Data address: H0100<br />

Device address: 01<br />

The received data is stored in D1070-D1085<br />

i n ASCII format .<br />

RST<br />

M1127<br />

Reset M1127<br />

M1129<br />

RST<br />

M1129<br />

Reset M1129 (receiving timeout)<br />

3-277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!