496
7 APPLICATION INSTRUCTION
7.11 Special timer instruction
7.11 Special timer instruction
Teaching timer
TTMR
This instruction measures the period of time in which TTMR instruction is ON.
Use this instruction to adjust the set value of a timer by a pushbutton switch.
■Descriptions, ranges, and data types
■Applicable devices
■Control data
• This instruction measures the period of time to press and hold the command input (pushbutton switch) in 1-second units,
multiplies the measured value by the magnification (10
s
) which is specified by (s), and stores it in the device specified by
(d).
• The table below shows the actual value indicated by (d) depending on the magnification specified by (s) and the pressing
and holding time 0.
Ladder diagram Structured text
ENO:=TTMR(EN,s,d);
Operand Description Range Data type Data type (label)
(d) Device storing the teaching data 16-bit signed binary ANY16
(s) Magnification applied to the teaching data 0 to 2 16-bit signed binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d)
(s)
Operand: (d)
Device Description Setting range Set by
+0 Teaching time System
+1 Current value of the pressing and holding time System
(s) Magnification (d)
K0 0(d)1
K1 100(d)10
K2 1000(d)100
0
(d)+1
(d)
(d)+1
(d)
0
Pressing and holding time
Pressing and holding time
Execution
command