22: D
UAL
/ T
EACHING
T
IMER
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
22-3
TTIM (Teaching Timer)
Applicable CPU Modules
Valid Operands
For the valid operand number range, see page 6-2.
Destination operand D1 (measured value) uses 3 data registers starting with the operand designated as D1. Data registers
D0 through D1297 and D2000 through D7997 can be designated as D1. Subsequent two data registers starting with desti-
nation operand 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 Point Write 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.
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.
FC4A-C10R2/C
FC4A-C16R2/C
FC4A-C24R2/C
FC4A-D20K3/S3
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
—
—
—
—
X
Operand
Function
I
Q
M
R
T
C
D
Constant
D1 (Destination 1)
Measured value
—
—
—
—
—
—
D0-D7997
—
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 operand D1.
The measured time range is 0 through 6553.5 sec.
TTIM
D1
*****
I0
D1
D100
When input I0 is turned on, TTIM resets data register D100 to zero and star ts 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 main-
tains the measured value of the ON duration.
TTIM
D100 Value
I0
ON
OFF
1500 ms
0
15
I0
D1
D100
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 regis-
ter D100.
When input I0 is turned off, MOV(W) stores the D100 value to
data register D0 as a preset value for timer T0.
When input I1 is turned on, 100-ms timer T0 star ts to operate
with a preset value stored in data register D0.
TTIM
I1
TIM
D0
T0
I0
SOTD
REP
S1 –
D100
D1 –
D0
MOV(W)
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...