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 3: COM2 RS-485<br />

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

mode and M1161 = OFF).<br />

2. Write the data to be sent into registers starting from D100 in advance in order to read 6 data<br />

starting from address H2101 on VFD-B<br />

M1002<br />

Set up communication protocol as<br />

MOV H86 D1120<br />

9600,7,E,1<br />

SET<br />

M1120<br />

Retain communication protocol<br />

Pulse for<br />

sending request<br />

X0<br />

Receiving<br />

completed<br />

M1123<br />

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

Write transmitting data in advance<br />

SET M1122 Sending request<br />

RS D100 K17 D120 K35<br />

Processing received data<br />

RST M1123 Reset M1123<br />

PLC VFD-B, PLC sends “: 01 03 2101 0006 D4 CR LF “<br />

VFD-B PLC, PLC receives “: 01 03 0C 0100 1766 0000 0000 0136 0000 3B CR LF “<br />

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

Register Data Explanation<br />

D100 low ‘: ’ 3A H STX<br />

D100 high ‘0’ 30 H ADR 1<br />

D101 low ‘1’ 31 H ADR 0<br />

Address of AC motor drive: ADR (1,0)<br />

D101 high ‘0’ 30 H CMD 1<br />

D102 low ‘3’ 33 H CMD 0<br />

Instruction code: CMD (1,0)<br />

D102 high ‘2’ 32 H<br />

D103 low ‘1’ 31 H<br />

D103 high ‘0’ 30 H<br />

Start data address<br />

D104 low ‘1’ 31 H<br />

D104 high ‘0’ 30 H<br />

D105 low ‘0’ 30 H<br />

D105 high ‘0’ 30 H<br />

Number of data (counted by words)<br />

D106 low ‘6’ 36 H<br />

D106 high ‘D’ 44 H LRC CHK 1<br />

D107 low ‘4’ 34 H LRC CHK 0<br />

Error checksum: LRC CHK (0,1)<br />

D107 high CR D H<br />

D108 low LF A H<br />

END<br />

3-206

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

Saved successfully!

Ooh no, something went wrong!