Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 65 Operands: S : No. of timer m : Set value in timer (unit: 100ms) D : No. of start output device Explanations: 1. Range of S : for SA/SX/SC T0 ~ T191; for EH/EH2/SV T0 ~ T199; for EH3/SV2 T0 ~ T183 2. Range of m : 1 ~ 32,767 3. D will occupy 4 consecutive devices. 4. See the specifications of each model for their range of use. 5. STMR instruction is used for Off-delay, one shot timer and flashing sequence. 6. The No. of timers designated by STMR instructions can be used only once. Program Example: 1. When X10 = On, STMR instruction will designate timer T0 and set the set value in T0 as 5 seconds. 2. Y0 is the contact of Off-delay.

When X10 goes from Off to On, Y0 will be On. When X10 goes from On to Off, Y0 will be Off after a five seconds of delay. 3. When X10 goes from On to Off, there will be a five seconds of Y1 = On output. 4. When X10 goes from Off to On, there will be a five seconds of Y2 = On output. 5. When X10 goes from Off to On, Y3 will be On after a five seconds of delay. When X10 goes from On to Off, Y3 will be Off after a five seconds of delay. X10 X10 Y0 5 sec 5 sec Y1 5 sec 5 sec Y2 5 sec Y3 DVP-PLC APPLICATION MANUAL 7-57 Mnemonic Operands Function STMR Special Timer Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F STMR:

7 steps S * m * * D * * * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SV2 STMR T0 K50 Y0 5 sec