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

Receving data: (External equipment→PLC)<br />

D120L D121L D122L D123L D124L D125L D126L<br />

Registers for received data, starting from<br />

lower 8 bits of D120<br />

Length = 7<br />

Program Example 6: COM3 RS-485<br />

1. Only 8-bit mode is supported. Communication format and speed are specified by lower 8 bits<br />

of D1109.<br />

2. STX/ETX setting function (M1126/M1130/D1124~D1126) is not supported.<br />

3. High byte of 16-bit data is not available. Only low byte is valid for data communication.<br />

4. Write the data to be transmitted in advance into registers starting from D100 and set M1316<br />

(COM3 sending request) as ON<br />

5. When X10 = ON, RS instruction executes and PLC is ready for communication. D0 will then<br />

start to send out 4 data continuously. When data sending is over, M1318 will be automatically<br />

reset. (DO NOT apply RST M1318 in program). After approximate 1ms, PLC will start to<br />

receive 7 data and store the data in 7 consecutive registers starting from D20.<br />

6. When data receiving is completed, M1318 will automatically be ON. When data processing on<br />

the received data is completed, M1318 has to be reset (OFF) and the PLC will be ready for<br />

communication again. However, DO NOT continuously execute RST M1318, i.e. it is<br />

suggested to connect the RST M1318 instruction after the drive contact M1318.<br />

M1002<br />

MOV H87 D1120 Setting communication protocol as 9600,8,E,1<br />

SET<br />

M1136<br />

Retain communication protocol<br />

Pulse for<br />

sending request<br />

Pulse<br />

X0<br />

M1318<br />

MOV K100 D1252 Set up communication time out as 100ms<br />

Write transmitting data in advance<br />

SET M1316 Sending request<br />

RS D100 K4 D120 K7<br />

Processing received data<br />

RST<br />

M1318<br />

Receiving completed and flag reset<br />

3-210

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

Saved successfully!

Ooh no, something went wrong!