9 Application Instructions API 150-199 API 153 Operands: D : Device to store the measuring time (unit: 1us). Explanations: 1. Range of D : K0 ~ K9. The No. of D has to be the same as that designated by D in API 152 RTMU; otherwise the result of the measurement may be unexpectable. Program Example: (unit: 10us) and RTMD (when D = K0) will shut down the timer and store the time in the timer in special D registers When X0 goes from Off to On, the program will enter I001 interruption subroutine. RTMU will activate an 8-bit timer (D1156 ~ D1165, designated by K0 ~ K9). M1000 I 001 K10 M1000 Both K0 should be the same IRET I 101 M1000 K10 Both K1 should be the same M1000 IRET Remarks: 1.
We suggest you remove this instruction after you finish developing your PLC program. 2. Due to the lower priority of the interruption enabled by RTMU, when RTMU is enabled, other high-speed pulse input counting or high-speed pulse output may result in failure to trigger the timer. 3. If you activate RTMU but do not activate RTMD before the end of the interruption, the interruption will not be shut down. 4. RTMU instruction activates 1 timer interruption in PLC. Therefore, if many RTMU or RTMD are executed at the same time, confusion in the timer may occur. Please be aware of the situation.
DVP-PLC Application Manual 9-36 Mnemonic Operands Function RTMD End of the Measurement of the Execution Time of I Interruption Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F RTMD: 3 steps D * * * PULSE 16-bit 32-bit S A SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS EH SV SV2 FEND RTMU K0 RTMD K0 RTMU K1 RTMD K1 END