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

Register Data Descriptions<br />

D1260 Low<br />

D1261 Low<br />

00 H<br />

10 H<br />

D1262 Low 79 H CRC CHK Low<br />

D1263 Low 0A H CRC CHK High<br />

Registers for received data (responding messages)<br />

Number of Data (count by word)<br />

Register Data Descriptions<br />

D0 1234 H PLC stores the value 1234H into D1296<br />

D1 Low 02 H Function<br />

D2 Low 02 H Number of Data (Byte)<br />

D3 Low<br />

D4 Low<br />

34 H<br />

12 H<br />

Content of address<br />

H0500~H0515<br />

D5 Low 2F H CRC CHK Low<br />

D6 Low 75 H CRC CHK High<br />

Analysis of the read status of PLC2 Y0~Y17: 1234H<br />

Device Status Device Status Device Status Device Status<br />

Y0 OFF Y1 OFF Y2 ON Y3 OFF<br />

Y4 ON Y5 ON Y6 OFF Y7 OFF<br />

Y10 OFF Y11 ON Y12 OFF Y13 OFF<br />

Y14 ON Y15 OFF Y16 OFF Y17 OFF<br />

Program Example 2: COM1(RS-232) / COM3(RS-485), Function Code H02<br />

1. Function code K2 (H02): read multiple bit devices. Up to 64 bits can be read.<br />

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

3. For both ASCII and RTU modes, PLC COM1/COM3 only stores the received data in registers<br />

starting from S, and will not store the data to be sent. The stored data can be transformed and<br />

moved by using DTM instruction for applications of other purposes.<br />

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

3-335

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

Saved successfully!

Ooh no, something went wrong!