5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-88
D1071 low
03 H
Command code of AC motor drive
D1072 low
04 H
Number of data (count by byte)
D1073 low
17 H
D1074 low
70 H
Content of address 2102 H
D1075 low
00 H
D1076 low
00 H
Content of address 2103 H
D1077 low
FE H
CRC CHK Low
D1078 low
5C H
CRC CHK High
Program Example 3:
1. In the communication between DVP-PM and VFD-B series AC motor drive (ASCII Mode, M1143 = OFF),
executes Retry when communication time-out, data receiving error or parameter error occurs.
2. When X0 = ON, DVP-PM will read the data of address H2100 in device 01(VFD-B) and stores the data in ASCII
format in D1070 ~ D1085. PLC will automatically convert the data and store them in D1050 ~ D1055.
3. M1129 will be ON when communication time-out occurs. The program will trigger M1129 and send request for
reading the data again.
4. M1140 will be ON when data receiving error occurs. The program will trigger M1140 and send request for
reading the data again.
5. M1141 will be ON when parameter error occurs. The program will trigger M1141 and send request for reading
the data again.
M1002
MOV
H87
D1120
SET
M1120
RST
M1127
M1127
RST
M1129
Set communication protocol as 9600, 8, E, 1
Retain communication protocol
Set communication time-out as 100ms
MODRD
K1
H2100
K 6
X0
Set communication instruction:
Data address:
Data length: 6 words
H2100
Device address: 01
X0
M1129
M1140
M1141
Sending request
Retry when communication time-out occurs
Retry when data receiving error occurs
Retry when parameter error occurs
Receiving completed
Handle received data
The received ASCII data is stored in D1070-D1085
and PLC converts the data and store them into
D1050-D1055 automatically.
Reset M1127
Reset M1129 (receiving timeout)
MOV
K100
D1129
SET
M1122
M1129
Points to note:
1. Rising-edge contact (LDP, ANDP, ORP) and falling-edge contact (LDF, ANDF, ORF) can not be used with
MODRD instruction, otherwise the data stored in the receiving registers will be incorrect.
2. There is no limitation on the times of using this instruction, but only one instruction can be executed at a time.
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...