Ttim (Teaching Timer) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

TTIM (Teaching Timer)

TTIM
*****
Valid Devices
Device
D1 (Destination 1)
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
TTIM
D100
I0
ON
I0
OFF
D100 Value
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.
TIM
T0
D0
I1
TTIM
D100
I0
MOV(W)
SOTD
I0
While input is on, the ON duration is measured in units of 100 ms and the measured value is stored to a
D1
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.
Function
Measured value
When input I0 is turned on, TTIM resets data register D100 to zero and starts to store the ON duration of
D1
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.
0
D1
S1 –
D1 –
REP
D100
D0
FC6A S
MICROS
ERIES
MART
20: D
1,500 ms
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.
L
P
M
ADDER
ROGRAMMING
ANUAL
/ T
T
UAL
EACHING
IMER
I
Q
M
R
T
C
FC9Y-B1726
I
NSTRUCTIONS
D
P
Constant
X
20-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents