9 Application Instructions API 150-199 API 152 Operands: D : Device for storing the measuring time (unit: 1us) n : Measurement time base. Parameter range: K10 ~ K500 (time unit: 1us) Explanations: 1. Range of D : K0 ~ K9 2. Range of n : K10 ~ K500 3. The designated special D registers (D1156 ~ D1165) can measure up to 10 interruption subroutines. For example, when D = K5, the designated D register will be D1161. 4. When RTMU is executed, if the D and n entered by the user are legal, interruption of the timer will be enabled and the counting starts and the special D designated by D is cleared as 0.
When RTMD is executed, interruption of the timer is disabled and the calculated time will be assigned to special D designated by RTMD. 5. With API 153 RTMD, RTMU can measure the execution time of “I” interruption service subroutine, which can be reference for dealing with the high-speed response when the user is at the initial stage of developing the program. DVP-PLC Application Manual 9-35 Mnemonic Operands Function RTMU Start of the Measurement of 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 RTMU:
5 steps D * * * n * * * PULSE 16-bit 32-bit S SA S X SC EH SV EH3 SV2 ES EX SS SA SX SC EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX S EH SV SV2