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:<br />

Connect PLC to VFD series AC motor drive (ASCII mode, M1143 = OFF), (8-bit mode, M1161 = ON),<br />

Write the data to be sent into registers starting from D100 in advance for reading 6 data from<br />

address H0708 on VFD.<br />

M1002<br />

MOV<br />

H86<br />

D1120<br />

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

SET<br />

M1120<br />

Retain communication protocol<br />

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

Sending request pulse<br />

Write data to be sent in advance<br />

pulse<br />

SET M1122 Sending request<br />

X10<br />

RS D100 K17 D120 K35<br />

Receiving completed<br />

Processing received data<br />

M1123<br />

RST M1123 Reset M1123<br />

PLC VFD, PLC sends: “: 01 03 07 08 0006 E7 CR LF ”<br />

Registers for sent data (sending messages)<br />

Register Data Explanation<br />

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

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

Address of AC motor<br />

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

drive: ADR (1,0)<br />

D103 low byte ‘0’ 30 H CMD 1<br />

Command code:<br />

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

CMD (1,0)<br />

D105 low byte ‘0’ 30 H<br />

D106 low byte ‘7’ 37 H<br />

D107 low byte ‘0’ 30 H<br />

Starting data address<br />

D108 low byte ‘8’ 38 H<br />

D109 low byte ‘0’ 30 H<br />

D110 low byte ‘0’ 30 H<br />

D111 low byte ‘0’ 30 H<br />

Number of data (words)<br />

D112 low byte ‘6’ 36 H<br />

D113 low byte ‘E’ 45 H LRC CHK 0 Error checksum: LRC<br />

D114 low byte ‘7’ 37 H LRC CHK 1 CHK (0,1)<br />

D115 low byte CR D H<br />

D116 low byte LF A H<br />

END<br />

The error checksum LRC CHK (0, 1) can be calculated by LRC instruction (8-bit mode, M1161 =<br />

ON).<br />

M1000<br />

LRC D101 K12 D113<br />

3-291

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

Saved successfully!

Ooh no, something went wrong!