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 #509 background imageLoading...
Page #509 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-388
Program example 2: COM3(RS-485)
1. When M0 = ON, PLC sends communication commands by COM3 to read servo drive status.
2. When PLC received the feedback data from ASDA, M1318 will be active and the read data will
be stored in D0~D4.
H87
MOV
M1002
D1109
SET
M1136
K100
MOV
D1252
RST
M1318
ASDRW
K0
K1
M0
D0
ASDA address:
K1
Function Code: K0
Monitor ASDA status
Data Register
M1318
SET
M0
M1316
Set up in ASCII mode
RST
M1320
SET
M1320
Reset communication completed flag M1318
Set communication protocol as 9600,8,E,1
Retain communication setting
S e t re ve iv in g tim e -o u t a s
100ms
ASCII mode:
Store the received data into specified registers D0~D4 in Hex
RTU mode:
Store the received data into specified registers D0~D4 in Hex
Sending request
Processing received data
Set up in RTU mode
Points to note:
Relative flags and special D registers of COM2/COM3 :
COM2
COM3
Function Description
Protocol
setting
M1120
M1136
Retain communication setting
M1143
M1320
ASCII/RTU mode selection
D1120
D1109
Communication protocol
D1121
D1255
PLC communication address
Sending
request
M1122
M1316
Sending request
D1129
D1252
Communication timeout setting (ms)
Receiving
completed
M1127 M1318 Data receiving completed
Errors
-
M1319
Data receiving error
-
D1253
Communication error code
M1129
-
Communication timeout setting (ms)
M1140 -
COM2 (RS-485) MODRD/MODWR/MODRW
data receiving error
M1141 -
MODRD/MODWR/MODRW parameter error
(Exception Code exists in received data)
Exception Code is stored in D1130
D1130 -
COM2 (RS-485) Error code (exception code)
returning from Modbus communication

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