EasyManuals Logo

Delta DVP-EX2 User Manual

Delta DVP-EX2
1006 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #489 background imageLoading...
Page #489 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-368
Program example 5: COM2(RS-485), Function Code H05
1. Function code K5(H05): Force ON/OFF bit device
2. PLC1 connects to PLC2: (M1143 = OFF, ASCII mode), (M1143 = ON, RTU Mode)
3. n = 1 indicates Force ON (set FF00H) and n = 0 indicates Force OFF (set 0000H)
4. For ASCII or RTU mode, PLC COM2 stores the data to be sent in D1256~D1295 and stores the
received data in D1070~D1085
5. Take the connection between PLC1 (PLC COM2) and PLC2 (PLC COM1) for example, the
tables below explain the status when PLC1 Force ON PLC2 Y0.
H87
MOV
M1002
D1120
SET
M1120
K100
MOV
D1129
RST
M1127
MODRW
K5
K1
X0
H0500 D0
K1
Function Code K5:
Force ON/OFF bit device
Reserved
Force ON status (Set FF00H)
M1127
SET
X0
M1122
RST
M1143
SET
M1143
Connection device address: K1
Da ta a ddres s : Y0 = H0500
M1143 = OFF
ASCII mode
Reset M1127
Set communication protocol as 9600,8,E,1
Re ta in communica tion protoc ol
Set receiving timeout as 100ms
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.
Sending request
Processing received data
M1143 = ON
RTU mode
Re ceiving co mp le te d
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
Data Address
D1258 high byte
‘5’
35 H
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-EX2 and is the answer not in the manual?

Delta DVP-EX2 Specifications

General IconGeneral
BrandDelta
ModelDVP-EX2
CategoryController
LanguageEnglish

Related product manuals