Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set Receving data: (External equipment→PLC) Program Example 6: COM3 RS-485 1. Only 8-bit mode is supported. Communication format and speed are specified by lower 8 bits of D1109. 2. STX/ETX setting function (M1126/M1130/D1124~D1126) is not supported. 3. High byte of 16-bit data is not available. Only low byte is valid for data communication. 4. Write the data to be transmitted in advance into registers starting from D100 and set M1316 5. When X0 = ON, RS instruction executes and PLC is ready for communication. D100 will then (COM3 sending request) as ON start to send out 4 data continuously. When data sending is over, M1316 will be automatically reset.

(DO NOT apply RST M1316 in program). After approximate 1ms, PLC will start to receive 7 data and store the data in 7 consecutive registers starting from D120. 6. When data receiving is completed, M1318 will automatically be ON. When data processing on the received data is completed, M1318 has to be reset (OFF) and the PLC will be ready for communication again. However, DO NOT continuously execute RST M1318, i.e. it is suggested to connect the RST M1318 instruction after the drive contact M1318.

M1002 Setting communication protocol as 9600,8,E,1 Retain communication protocol Pulse for sending request Set up communication time out as 100ms Write transmitting data in advance Pulse Sending request X0 M1318 Processing received data Receiving completed and flag reset 3-227 D120L D121L D122L D123L D124L D125L D126L Registers for received data, starting from lower 8 bits of D120 Length = 7 MOV H87 D1109 SET M1136 MOV K100 D1252 SET M1316 RS D100 K4 D120 K7 RST M1318