8 Application Instructions API 100-149 API 143 Operands: S : delay time (unit: 100ms) Explanations: 1. Range of S : K1 ~ K1,000. See the specifications of each model for their range of use. 2. After DELAY instruction is executed, the program after DELAY in every scan period will execute delay outputs according to the delay time designated by the user. 3. If M1148 is ON, the delay unit will be 5us. If M1148 is ON when the instruction DELAY is executed, the delay unit will change from 100us to 5us. After the instruction DELAY is executed, M1148 will be set to Off. EH3 V1.62 (and above) and SV2 V1.00 (and above) are supported. Program Example:
If X0 is turned from Off to On, the external interruption will be generated. DELAY in the interrupt subroutine will be execute for 2 ms before the next step (X1 = On and Y0 = On) is executed. I001 DVP-PLC Application Manual 8-59 Mnemonic Operands Function DELAY Delay Instruction Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DELAY, DELAYP: 3 steps S * * * PULSE 16-bit 32-bit EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SA SX SC EH SV SV2 EI Main Program FEND M1000 DELAY K20 X1 Y0 REF Y0 K8 IRET END END DELAY K20 REF Y0 K8