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.

3. Instruction Set<br />

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

Register Data Descriptions<br />

D1256 下 01 H Address<br />

D1257 下 0F H Function<br />

D1258 下<br />

05 H<br />

D1259 下<br />

00 H<br />

Data Address<br />

D1260 下<br />

00 H<br />

D1261 下<br />

10 H<br />

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

D1262 下 02 H Byte Count<br />

D1263 下 34 H Data content 1 Content of D0: H34<br />

D1264 下 12 H Data content 2 Content of D1: H12<br />

D1265 下 21 H CRC CHK Low<br />

D1266 下 ED H CRC CHK High<br />

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

Register Data Descriptions<br />

D1070 下 01 H Address<br />

D1071 下 0F H Function<br />

D1072 下<br />

05 H<br />

D1073 下<br />

00 H<br />

Data Address<br />

D1074 下<br />

00 H<br />

D1075 下<br />

10H<br />

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

D1076 下 54H CRC CHK Low<br />

D1077 下 CB H CRC CHK High<br />

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

1. Function code K15 (H0F): write in multiple bit devices. Up to 64 bits can be written<br />

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

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

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

tables below explain the status when PLC1 force ON/OFF Y0~Y17 of PLC2.<br />

Set value: K4Y0=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 />

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

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

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

3-353

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

Saved successfully!

Ooh no, something went wrong!