5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-81
API
Mnemonic Operands
Function
79
D TO P
Write CR data into 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
*
*
*
*
*
*
*
S
*
*
*
*
*
*
*
n
*
*
*
*
*
*
*
TO, TOP: 9 steps
DTO, DTOP: 17 steps
Operands:
m
1
: No. of special module
m
2
: CR# in special module to be written
S
: Data to be written in CR
n
: Number of data to be written at a time
Explanations:
1. DVP-PM uses this instruction to write data into CR (Control register) on 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 TO is used as 16-bit instruction, Z device cannot be adopted; when TO is used as 32-bit instruction, V
device cannot be adopted.
Program Example:
1. Use 32-bit instruction DTO to write the content in D11 and D10 into CR#13 and CR#12 of special module No.0.
One 32-bit data is written at a time (
n
= 1).
2. When X0 = ON, the instruction executes; when X0 = OFF, the previous content in D10 and D11 won’t be
changed..
X0
DTO
K0
K12
D10
K1
Points to note:
1.
m
1
: number of special module. The modules are numbered from 0 (closest to MPU) to 7 automatically by their
distance from MPU. Maximum 8 modules are allowed to connect to MPU and will not occupy any digital I/O
points.
2.
m
2
: number of CR (Control Register). CR is the 16-bit memory built in the special module for control or monitor
purpose, numbering in decimal. All operation status and settings of the special module are recorded in the CR.
3. FROM/TO instruction reads/writes 1 CR at a time. DFROM/DTO instruction reads/writes 2 CRs at a time.
CR #10
CR #9
Higher 16-bit Lower 16-bit
Specified CR number
4.
n
: Number of data to be written at a time.
n
= 2 in 16-bit instruction has the same operation results as
n
= 1 in
32-bit instruction.
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...