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.

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

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

ON), Write the data to be sent (H1770) into address H0706 on VFD.<br />

M1002<br />

MOV H86 D1120<br />

Set communication protocol as<br />

9600,7,E,1<br />

SET<br />

M1120<br />

Retain communication setting<br />

MOV K100 D1129<br />

Set communication timeout as:<br />

100ms<br />

Sending<br />

request pulse<br />

X0<br />

SET M1161 8-bit mode<br />

Write data to be sent in advance<br />

SET M1122 Sending request<br />

RS D100 K8 D120 K8<br />

Receiving completed<br />

M1123<br />

Processing received data<br />

RST<br />

M1123<br />

Reset M1123<br />

PLC VFD, PLC sends: 01 06 0706 1770 66 AB<br />

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

Register Data Explanation<br />

D100 low byte 01 H Address<br />

D101 low byte 06 H Function<br />

D102 low byte 07 H<br />

D103 low byte 06 H<br />

Data address<br />

D104 low byte 17 H<br />

D105 low byte 70 H<br />

Data content<br />

D106 low byte 66 H CRC CHK 0<br />

D107 low byte AB H CRC CHK 1<br />

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

ON).<br />

M1000<br />

CRC D100 K6 D106<br />

CRC checksum: 66 H is stored in low byte of D106 and AB H in low byte of of D107,<br />

3-294

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

Saved successfully!

Ooh no, something went wrong!