291
TTMR
1
2
3
4
6
7
8
6.8
O
ther Con
venient Instru
ctions
6.8.3
T
T
M
R
:
+ 0: The device where measurement value is stored (BIN 16 bit)
+ 1: For CPU module system use (BIN 16 bit)
n
: Measurement value multiplier (BIN 16 bits)
Function
(1) Measures the time while the execution command is ON in units of seconds, and stores the multiplied value of the
measured time by the multiplier specified by n at the device designated by .
(2) Clears the device designated by +0 or +1 when the execution command is turned OFF ON.
(3) The multipliers that can be designated by n are as shown below:
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 designated by 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 designated by
+1 is used by the system of the CPU module, so users should not change its value. If users do
change this value, the value stored in the device designated by
will no longer be accurate.
(4) No processing is performed when the value specified by "n" is other than 0 to 2.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
TTMR
Teaching timer
6.8.3
TTMR
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
n
––
––
n
Multiplier
0
1
1
10
2
100
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The device specified by exceeds the range of the corresponding
device.
––
––
––
––
Basic
Redundant
Process
High
performance
Universal
LCPU
Command
TTMR
n
D
TTMR
D
D
D
D
D
D
D
D
D
D