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 #487 background imageLoading...
Page #487 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-366
Program example 4: COM1(RS-232) / COM3(RS-485), Function Code H03 (The function code
H04 is the same as the function code H03.)
1. Function code K3 (H03): read multiple Word devices, up to 16 words can be read. For COM2
ASCII mode, only 8 words can be read..
2. PLC COM1 / COM3 stores the received data in registers starting from S, and the stored data
can be transformed and moved by using DTM instruction for applications of other purposes.
3. Take the connection between PLC and VFD-B for example, the tables below explains the
status when PLC reads VFD-B status. (M1320 = OFF, ASCII Mode ), (M1320 = ON, RTU
Mode)
If PLC applies COM1 for communication, the below program can be usable by changing:
a) D1109→D1036: communication protocol
b) M1136→M1138: retain communication setting
c) D1252→D1249: Set value for data receiving timeout
d) M1320→M1139: ASCII/RTU mode selection
e) M1316→M1312: sending request
f) M1318→M1314: receiving completed flag
H87
MOV
M1002
D1109
SET
M1136
K100
MOV
D1252
MODRW
K3
K1
X0
H2100 D0 K6
Connection device
address: K1
Function code:
Read multiple words
K3
Data address: H2100
Da ta s toring re gis te r
Data length(word)
SET
X0
M1316
M1320 = OFF
ASCII mode
RST
M1320
SET
M1320
Set communication protocol as 9600,8,E,1
Re ta in co mmunica tion s e tting
Set communication timeout as 100ms
Sending request
M1320 = ON
RTU mode
RST
M1318
Processing received data
Reset M1318
M1318
ASCII mode: The received data is converted to Hex value
a nd s tored in re gisters s ta rting from D0
R TU m o de : Th e re ce ived d a ta is sto re d in reg is te rs s ta rting fro m D0
R e ce iving c o mp le te d

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