7 Application Instructions API 50-99 API 50 Operands: D : Start device to be I/O refreshed n : Number of items to be I/O refreshed Explanations: 1. D must designate X0, X10, Y0, Y10…the points whose 1s digit is “0”. See remarks for more details. 2. Range of n : 8 ~ 256 (has to be the multiple of 8). 3. See the specifications of each model for their range of use. 4. The status of all PLC input/output terminals will be updated after the program scans to END. When the program starts to scan, the status of the external input terminal is read and stored into the memory of the input point.
The output terminal will send the content in the output memory to the output device after END instruction is executed. Therefore, this instruction is applicable when the latest input/output data are needed for the operation. 5. D has to be designated to be X0, X10, Y0, Y10…such forms whose 1 st digit is “0”. Range of n : 8 ~ 256 (must be 8’s multiple); otherwise it will be regarded as an error. The range varies in different models. See Remarks for more details. Program Example 1: When X0 = On, PLC will read the status of input points X0 ~ X17 immediately and refresh the input signals without any input delay. X0 K16 Program Example 2:
When X0 = On, the 8 output signal from Y0 ~ Y7 will be sent to output terminals and refreshed without having to wait for the END instruction for output. X0 K8 Remarks: The instruction only process the I/O points X0 ~ X17 and Y0 ~ Y17 of ES/EX/SS/SA/SX/SC series MPU, namely n = K8 or n = K16. DVP-PLC APPLICATION MANUAL 7-1 Mnemonic Operands Function 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 * * PULSE 16-bit 32-bit EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX S C EH SV ES EX SS SA SX SC EH SV SV2 0 REF X0 REF Y0