5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-80
API
Mnemonic Operands
Function
78
D FROM P
Read CR data from Special
Modules
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T
C
D
V
Z
m
1
*
*
*
*
*
*
*
m
2
*
*
*
*
*
*
*
D
*
*
*
*
*
n
*
*
*
*
*
*
*
FROM, FROMP: 9 steps
DFROM, DFROMP: 17 steps
Operands:
m
1
: No. of special module
m
2
: CR# in special module to be read
D
: Device for storing read data
n
:
Number of data to be read at a time
Explanations:
1. DVP-PM uses this instruction to read CR (Control register) data from special modules
2. Range
of
m
1
(16-bit and 32-bit): 0 ~ 255
3. Range
of
m
2
(16-bit and 32-bit): 0 ~ 499
4. Range
of
n
:
16-bit: 1 ~ (500 – m2)
32-bit: 1 ~ (500 – m2)/2
5. When FROM is used as 16-bit instruction, Z device cannot be adopted; when FROM is used as 32-bit instruction,
V device cannot be adopted.
6. See
Points to note
of API 79 TO for the numbering of special modules.
Program Example:
1. Read out the data in CR#29 of special module N0.0 to register D0 in PLC, and CR#30 of special module No.0 to
register D1 in PLC. 2 consecutive 16-bit data are read at one time (
n
= 2).
2. When X0 = ON, the instruction executes; when X0 = OFF, the previous content in D0 and D1 won’t be changed.
X0
FROM
K0
K29
D0
K2
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...