Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions 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 4. For EX2 MPU only: If M1180 = ON and REF instruction executes, PLC will read the A/D value and update the of n value, i.e. status of X0~X7 or Y0~Y3 remains. 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 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 DVP-PM Operation Instruction 5-72 API Mnemonic Operands Function Controllers 20PM 10PM 50 REF P Refresh Type OP Bit Devices Word devices Program Steps X Y M S K H Kn X KnY KnM KnS T C D E F REF, REFP: 5 steps D * * n * * REF X0 K8 REF Y0 K4