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

M1002<br />

MOV<br />

H87<br />

D1120<br />

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

SET<br />

M1120<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1129<br />

Set receiving timeout as 100ms<br />

X0<br />

X0<br />

RST M1143 M1143 = OFF<br />

ASCII mode<br />

SET M1143<br />

SET M1122 Sending request<br />

MODRW K1 K5 H0500 D0 K1<br />

M1143 = ON<br />

RTU mode<br />

Receiving completed<br />

M1127<br />

Processing received data<br />

Force ON status (Set FF00H)<br />

Reserved<br />

Data address : Y 0 = H0500<br />

Function Code K5:<br />

Force ON/OFF bit device<br />

Connection device address: K1<br />

ASCII mode: The received data is stored in D1070~D1085 in ASCII format<br />

RTU mode: The received data is stored in D1070~D1085 in Hex.<br />

RST<br />

M1127<br />

Reset M1127<br />

ASCII mode (M1143 = OFF):<br />

When X0 = ON, MODRW instruction executes the function specified by Function Code 05<br />

PLC1 PLC2, PLC sends: “01 05 0500 FF00 6F”<br />

PLC2 PLC1, PLC receives: “01 05 0500 FF00 6F”<br />

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

Register Data Descriptions<br />

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

D1256 high byte ‘1’ 31 H ADR 0<br />

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

D1257 high byte ‘5’ 35H CMD 0<br />

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

D1258 high byte ‘5’ 35 H<br />

D1259 low byte ‘0’ 30 H Data Address<br />

D1259 high byte ‘0’ 30 H<br />

D1260 low byte ‘F’ 46 H<br />

D1260 high byte ‘F’ 46 H<br />

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

D1261 high byte ‘0’ 30 H<br />

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

D1262 high byte ‘F’ 46 H<br />

High byte to be force ON/OFF<br />

Low byte to be force ON/OFF<br />

LRC CHK 1<br />

LRC CHK 0<br />

Device address: ADR (1,0)<br />

CMD (1,0) Control parameter<br />

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

3-344

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

Saved successfully!

Ooh no, something went wrong!