DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-126
API
Mnemonic Operands Function
SS2
SX2
50 REF P
Refresh
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
REF, REFP: 5 steps
SS2
SX2
SS2
SX2
SS2
SX2
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.
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.
When D specifies Y0 and n = 8, only Y0~X7 will be refreshed. If n > 8, all I/O points on
MPU will be refreshed.
When D specifies X10 or Y10, I/O points on MPU except for X0~X7 or Y0~Y3 will all be
refreshed regardless of n value, i.e. only status of X0~X7 or Y0~Y3 remains.
4. For EX2/SX2 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 (ES2/EX2): 4 ~ total I/O points on MPU. n should always be a multiple of 4.
6. Range for n (SS2/SA2/SE/SX2): 8 ~ total I/O points on MPU.
7. The function to update pulse number immediately is only available for the following modules
and firmware, ES2, EX2, ES2-C: V3.60, ES2-E: V1.40, 28SA2, 12SA2, SX2: V3.0, 26SE:
V1.92 and later.
Output Device Y0 Y1 Y2 Y3
Refresh current
position of output
M1672 M
1673 M1674 M1675
Pulse output number D1030/D1031 D1032/D1033 D1336/D1337 D1338/D1339