beautypg.com

Delta DVP-ES2 User Manual

Page 452

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 3 3 6

H87

MOV

M 1002

D1109

SET

M 1136

K1 00

M OV

D1252

MODRW

K2

K1

X0

H0500

D0

K1 6

Connection device

address:

K1

Function code: K2

read multiple bits

Data address: Y0=H0500

Data storing register

Data length

( bit)

SET

X0

M 1316

M1320 = OFF,

ASCII mode

RST

M 1320

SET

M 1320

Set communication protocol as 9600, 8, E,1

Retain communication setting

Set receiving timeout as 100ms

Sending request

M1320 = ON
RTU mode

RST

M1318

Processing received data

Reset M1318

M1318

Receiving completed

ASCII mode: The received data is converted to Hex value
and stored in registers starting from D0
RTU mode: The received data is stored in registers starting from D0

z

ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 02

PLC1

Ö PLC2, PLC1 sends: “01 02 0500 0010 E8

PLC2

ÖPLC1, PLC1 receives: “01 02 02 3412 B5

PLC1 data receiving register D0

Register

Data

Descriptions

D0 1234H

PLC converts the ASCII data in address 0500H~0515H and
stores the converted data automatically.

Analysis of the read status of PLC2 Y0~Y17: 1234H

Device

Status

Device

Status

Device

Status

Device

Status

Y0 OFF

Y1 OFF

Y2 ON Y3

OFF

Y4 ON Y5 ON Y6 OFF

Y7

OFF

Y10 OFF Y11 ON Y12 OFF Y13

OFF

Y14 ON Y15 OFF Y16 OFF Y17

OFF

z

RTU mode (COM3: M1320 = ON, COM1: M1139 = ON):

When X0 = ON, MODRW instruction executes the function specified by Function Code 02

PLC1

Ö PLC2, PLC1 sends: “01 02 0500 0010 79 0A

PLC2

Ö PLC1, PLC1 receives: “01 02 02 34 12 2F 75

This manual is related to the following products: