Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  D : Initial I/O device whose state is refreshed; n : Number of I/O devices whose states are refreshed  The states of I/O devices are not refreshed until the instruction END is executed. When the scan of a program starts, the states of external inputs are read, and stored in the input memory. After the instruction END is executed, the contents of the output memory will be sent to output terminals. Therefore, users can use this instruction when they need the latest I/O data in an operation process.  D must be an I/O device whose number ends with 0, e.g. X0.0, X1.0, Y0.0 or Y1.0.

The instruction can not be used to refresh the I/O devices in a digital extension module.  D must be an I/O device in a PLC.  If D is X0.0 and n is less than or equal to 8, the states of X0.0~X0.7 will be refreshed. If n is greater than 8, the states of the input devices and the states of the output devices in the motion control module used will be refreshed.  If D is Y0.0, and n is less than or equal to 8, the states of Y0.0~Y0.7 Explanation will be refreshed. If n is greater than 8, the states of the input devices and the states of the output devices in the motion control module used will be refreshed.

 n is in the range of 4 to the number of I/O devices in the motion control module used, and is a multiple of 4.  When X0.0 is ON, the AH500 motion control module reads the states of X0.0~X0.7 immediately. The input signals are refreshed without any delay. Example 1 X0.0  When X0.0 is ON, the states of Y0.0~Y0.7 are sent to output terminals. The output signals are refreshed immediately without the need to wait for the execution of the instruction END.

Example 2 X0.0 5-71 API Instruction code Operand Function Refreshing the states 50 REF P D, n of I/O devices Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z D   n   Pulse instruction 16-bit instruction (5 steps) 32-bit instruction   – REF X0.0 K8 REF Y0.0 K4