FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
20-3
20: D
UAL
/ T
EACHING
T
IMER
I
NSTRUCTIONS
TTIM (Teaching Timer)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Destination device D1 (measured value) uses 3 data registers starting with the device 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 FC6A Series MICROSmart. For details about the user program execution errors, see "User Program Execution
Errors" on page 3-10.
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 "User Program Execution Errors" on page 3-10.
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 assigned by destination device D1.
When the input is off, D1 turns off.
The measured time range is 0 through 6,553.5 s.
TTIM
D1
*****
Device
Function
I
Q
M
R
T
C
D
P
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
1,500 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)
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...