DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

M1002

 

 

 

 

 

 

MOV

H87

D1120

Set communication protocol as 9600,8,E,1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

M1120

Retain communication protocol

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K100

D1129

Set receiving timeout as 100ms

M1143 = ON

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1143

M1143 = OFF

 

 

 

SET

M1143

 

 

 

 

 

 

ASCII mode

 

 

 

RTU mode

 

X0

 

 

 

 

 

 

 

 

 

M1122

Sending request

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X0

 

 

K5

H0500

D0

 

 

 

 

 

 

 

 

 

 

 

MODRW

K1

 

K1

Force ON status (Set FF00H)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data address : Y0 = H0500

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Function Code K5:

Receiving completed

 

 

 

 

 

 

 

 

 

 

 

Force ON/OFF bit device

 

 

 

 

 

 

 

 

 

 

 

Connection device address: K1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1127

Processing received data

ASCII mode: The received data is stored in D1070~D1085 in ASCII format

RTU mode: The received data is stored in D1070~D1085 in Hex.

RST

M1127 Reset M1127

ASCII mode (M1143 = OFF):

When X0 = ON, MODRW instruction executes the function specified by Function Code 05 PLC1 Ö PLC2, PLC sends: “01 05 0500 FF00 6F

PLC2 Ö PLC1, PLC receives: “01 05 0500 FF00 6F

Registers for data to be sent (sending messages)

Register

Data

 

Descriptions

D1256 low byte

‘0’

30 H

ADR 1

Device address: ADR (1,0)

 

 

 

 

D1256 high byte

‘1’

31 H

ADR 0

 

 

 

 

 

 

D1257 low byte

‘0’

30 H

CMD 1

CMD (1,0) Control parameter

 

 

 

 

D1257 high byte

‘5’

35H

CMD 0

 

 

 

 

 

 

D1258 low byte

‘0’

30 H

 

 

 

 

 

 

 

D1258 high byte

‘5’

35 H

 

 

 

 

 

Data Address

 

D1259 low byte

‘0’

30 H

 

 

 

 

 

 

D1259 high byte

‘0’

30 H

 

 

 

 

 

 

 

D1260 low byte

‘F’

46 H

High byte to be force ON/OFF

D1260 high byte

‘F’

46 H

 

 

 

 

 

 

 

D1261 low byte

‘0’

30H

Low byte to be force ON/OFF

 

 

 

D1261 high byte

‘0’

30 H

 

 

 

 

 

D1262 low byte

‘6’

36 H

LRC CHK 1

Checksum: LRC CHK (0,1)

D1262 high byte

‘F’

46 H

LRC CHK 0

 

 

 

 

 

 

3 - 344

Page 460
Image 460
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual CMD 1,0 Control parameter