7 Application Instructions API 50-99 API 64 Operands: D : Device No. for storing the “On” time of button switch n : Multiple setting Explanations: 1. D will occupy 2 consecutive devices. 2. Range of n : 0 ~ 2 3. See the specifications of each model for their range of use. 4. For SA series MPU, TTMR instruction can be used 8 times in the program. 5. The “On” time (unit: 100ms) of the external button switch is stored in device No. D + 1. The “On” time (unit: 6. Multiple setting: second) of the switch is multiplied by n and stored in D . When n = 0, unit of D = second When n = 1, unit of D = 100ms (D Ч 10) When n = 2, unit of D = 10ms (D Ч 100) Program Example 1: 1.
The “On” (being pressed) time of button switch X0 is stored in D1. The setting of n is stored in D0. Therefore, the button switch will be able to adjust the set value in the timer. 2. When X0 goes Off, the content in D1 will be cleared to 0, but the content in D0 will remain. X0 X0 T T On time (sec) On time (sec) 3. Assume the “On” time of X0 is T (sec.), see the relation between D0, D1 and n in the table below. DVP-PLC APPLICATION MANUAL 7-55 Mnemonic Operands Function TTMR Teaching Timer Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F TTMR:
5 steps D * n * * PULSE 16-bit 32-bit S A 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 TTMR D0 K0 D1 D1 D0 D0 n D0 D1 (unit: 100ms) K0 (unit: s) 1 × T D1 = D0 × 10