5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-72
API Mnemonic
Operands
Function
50
REF P
Refresh
Controllers
20PM
10PM
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T C D E F
D
* *
n
* *
REF, REFP: 5 steps
Operands:
D
: Start device for I/O refresh
n
: Number of devices for I/O refresh
Explanations:
1.
PLC updates I/O status between END instruction and the start of next program scan. If an immediate I/O
refresh is needed, REF can be applied for performing I/O refresh immediately.
2.
D
can only be a multiple of 10, i.e. X0 or Y0, and the instruction is NOT applicable for I/O points on DIO
modules.
3.
Only the I/O points on MPU can be specified for operand D for I/O refresh.
z
When
D
specifies X0 and
n
≦
8, only X0~X7 will be refreshed. If
n
> 8, all I/O points on MPU will be
refreshed.
z
When
D
specifies Y0 and
n
= 4, only Y0~X3 will be refreshed. If
n
> 4, all I/O points on MPU will be
refreshed.
z
When
D
specifies X10 or Y10,
I/O points on MPU starting from X10 or Y4 will all be refreshed regardless
of
n
value, i.e. status of X0~X7 or Y0~Y3 remains.
4.
For EX2 MPU only: If M1180 = ON and REF instruction executes, PLC will read the A/D value and update the
read value to D1110~D1113. If M1181 = ON and REF instruction executes, PLC will output the D/A value in
D1116 and D1117 immediately. When A/D or D/A values are refreshed, PLC will reset M1180 or M1181
automatically.
5. Range
for
n:
4 ~ total I/O points on MPU.
n
should always be a multiple of 4.
Program Example 1:
When X0 = ON, PLC will refresh the status of input points X0 ~ X7 immediately without delay.
X0
REF
X0
K8
Program Example 2:
When X0 = ON, the 4 output signals on Y0 ~ Y3 will be sent to output terminals immediately before the program
proceeds to END instruction.
X0
REF
Y0
K4
Содержание 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...