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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Program Example 4: COM2 RS-485<br />

1. Connect PLC to VFD-B series AC motor drives (AC motor drive in RTU Mode; PLC in 16-bit<br />

mode and M1161 = ON).<br />

2. Write the data to be sent into registers starting from D100 in advance. Write H12 (Forward<br />

running) into H2000 (VFD-B parameter address).<br />

M1002<br />

MOV<br />

H86<br />

D1120<br />

Set up communication protocol as 9600,7,E,1<br />

SET<br />

M1120<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1129<br />

Set up communication time-out as 100ms<br />

Pulse for<br />

sending request<br />

SET M1161 8-bit mode<br />

Write transmitting data in advance<br />

X0<br />

M1123<br />

SET M1122 Sending request<br />

RS D100 K8 D120 K8<br />

Processing Received data<br />

RST<br />

M1123<br />

Reset M1123.<br />

PLC VFD-B, PLC sends: 01 06 2000 0012 02 07<br />

VFD-B PLC, PLC receives: 01 06 2000 0012 02 07<br />

Registers for sent data (PLC sends out messages)<br />

Register Data Explanation<br />

D100 low 01 H Address<br />

D101 low 06 H Function<br />

D102 low 20 H<br />

D103 low 00 H<br />

Data address<br />

D104 low 00 H<br />

D105 low 12 H<br />

Data content<br />

D106 low 02 H CRC CHK Low<br />

D107 low 07 H CRC CHK High<br />

Registers for received data (VFD-B responds with messages)<br />

Register Data Explanation<br />

D120 low 01 H Address<br />

D121 low 06 H Function<br />

D122 low 20 H<br />

D123 low 00 H<br />

Data address<br />

D124 low 00 H<br />

D125 low 12 H<br />

Data content<br />

D126 low 02 H CRC CHK Low<br />

D127 low 07 H CRC CHK High<br />

3-208

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

Saved successfully!

Ooh no, something went wrong!