DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 166API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SESX264 TTMR Teaching TimerTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F TTMR: 5 stepsD *n * *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:D: Device No. for storing the ON time of the input n: setting of multiple (n: K0~K2)Explanations:1. The ON time of the external button switch is measured and stored in D + 1(unit: 100ms). Valuein D + 1 is multiplied with a multiple specified by n and stored in D (unit: sec).2. When n = K0, the value in D + 1(unit: 100ms) is multiplied with 1 and converted to D (unit: sec).When n = K1, the value in D + 1(unit: 100ms) is multiplied with 10 and converted to D (unit: sec).When n = K2, the value in D + 1(unit: 100ms) is multiplied with 100 and converted to D (unit:sec).3. TTMR instruction can be used max 8 times in a program.Program Example 1:1. The duration that input X0 is pressed (ON duration of X0) will be stored in D1. The value in D1,multiplied by a multiple specified by n, is then moved to D0. In this case, the button switch canbe used to adjust the set value of a timer.2. When X0 = OFF, the content of D1 will be reset but the content of D0 remains.X0TTMR D0 K0X0D1D0D0D1T TOn time (sec) On time (sec)3. If ON duration of X0 is T sec, the relation between D0, D1 and n are shown as the table below.n D0 (unit: sec) D1 (unit: 100 ms)K0 T (sec) ×1 D1 = D0×10K1 T (sec) ×10 D1 = D0K2 T (sec) ×100 D1 = D0/10