6.8 Other Convenient Instructions
6.8.3 Teaching timer
6-159
6
BA
S
IC
INSTRUCTIONS
TT
M
R
TTMR
1. Time measurements are conducted when the TTMR instruction is executed.
Using the JMP or similar instruction to jump the TTMR instruction will make it
impossible to get an accurate measurement.
2. Do not change the multiplier specified for n while the TTMR instruction is being
executed. Changing this multiplier will result in an inaccurate value being
returned.
3. The TTMR instruction can also be used in low-speed execution type programs.
4. The device specified for
+1 is used by the system of the CPU module, so
users should not change its value. If users change this value, the value stored
to the device specified for
will no longer be accurate.
(4) No processing is performed when the value specified for n is other than 0 to 2.
O
p
erat
i
on
E
rror
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
Program
E
xam
pl
e
In the following program, amount of time turning X0 ON is stored to Var_D0.
[Structured ladder]
[ST]
TTMR(X0,0,Var_D0);
d
d
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......