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

Register Data Descriptions<br />

D1074 Low byte FF H<br />

D1075 Low byte 00 H<br />

Data content (ON = FF00H)<br />

D1076 Low byte 8C H CRC CHK Low<br />

D1077 Low byte F6 H CRC CHK High<br />

Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05<br />

1. Function Code K5 (H05): Force ON/OFF bit device.<br />

2. PLC1 connects PLC2: (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU Mode)<br />

3. n = 1 indicates Force ON (set FF00H) and n = 0 indicates Force OFF (set 0000H)<br />

4. PLC COM1/COM3 will not process the received data.<br />

5. Take the connection between PLC1 (PLC COM3) and PLC2(PLC COM1) for example, the<br />

tables below explains the status when PLC1 reads Y0~Y17 of PLC2<br />

• If PLC1 applies COM1 for communication, the below program can be usable by<br />

changing:<br />

1. D1109→D1036: communication protocol<br />

2. M1136→M1138: retain communication setting<br />

3. D1252→D1249: Set value for data receiving timeout<br />

4. M1320→M1139: ASCII/RTU mode selection<br />

5. M1316→M1312: sending request<br />

6. M1318→M1314: receiving completed flag<br />

M1002<br />

MOV<br />

H87<br />

D1109<br />

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

SET<br />

M1136<br />

Retain communication protocol<br />

MOV<br />

K100<br />

D1252<br />

Set receiving timeout as 100ms<br />

X0<br />

X0<br />

RST M1320 M1320 = OFF<br />

ASCII mode<br />

SET M1320<br />

SET M1316 Sending request<br />

MODRW K1 K5 H0500 D0 K1<br />

M1320 = ON<br />

RTU mode<br />

Receiving completed<br />

M1318<br />

Received data<br />

Force ON status (Set FF00H)<br />

Reserved<br />

Data address : Y0 = H0500<br />

Function Code K5:<br />

Force ON/OFF bit device<br />

Connection device address: K1<br />

ASCII mode: No processing on received data .<br />

RTU mode: No processing on received data .<br />

RST<br />

M1318<br />

Reset M1318<br />

3-346

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

Saved successfully!

Ooh no, something went wrong!