FC5A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y-B1273
20-3
20: D
UAL
/ T
EACHING
T
IMER
I
NSTRUCTIONS
TTIM (Teaching Timer)
Applicable CPU Modules
Valid Devices
For the valid device address range, see pages 6-1 and 6-2
(Basic Vol.).
Destination device D1 (measured value) uses 3 data registers starting with the device designated as D1. Data registers D0-D997 and D1000-D1997
can be designated as D1. Subsequent two data registers starting with destination device D1+1 are used for a system work area. Do not use these
two data registers for destinations of other advanced instructions, and do not change values of these data registers using the monitor function on
WindLDR. If the data in these data registers are changed, the teaching timer does not operate correctly.
The teaching timer instruction cannot be used in an interrupt program. If used, a user program execution error will result, turning on special internal
relay M8004 and the ERR LED on the CPU module.
When a user program execution error occurs, the execution of the instruction is canceled and the next instruction is executed. The data in D1
(destination 1) is unchanged. For details about the user program execution errors, see Chapter 4 “User Program Execution Errors” on page 4-21.
Examples: TTIM
The following example demonstrates a program to measure the ON duration of input I0 and to use the ON duration as a preset
value for 100-ms timer instruction TIM.
While input is on, the ON duration is measured in units of 100 ms and the measured value is stored to a
data register designated by destination device D1.
When the input is off, D1 turns off.
The measured time range is 0 through 6553.5 sec.
TTIM
D1
*****
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
D1 (Destination 1)
Measured value
—
—
—
—
—
—
X
—
When input I0 is turned on, TTIM resets data register D100 to zero and starts to store the ON duration of
input I0 to data register D100, measured in units of 100 ms.
When input I0 is turned off, TTIM stops the measurement, and data register D100 maintains the measured
value of the ON duration.
I0
D1
D100
TTIM
D100 Value
I0
ON
OFF
1500 ms
0
15
When input I1 is turned on, 100-ms timer T0 starts to operate with a preset
value stored in data register D0.
While input I0 is on, TTIM measures the ON duration of input I0 and stores
the measured value in units of 100 ms to data register D100.
When input I0 is turned off, MOV(W) stores the D100 value to data register
D0 as a preset value for timer T0.
I0
D1
D100
TTIM
I1
TIM
D0
T0
I0
SOTD
REP
S1 –
D100
D1 –
D0
MOV(W)
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...