FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
12-11
12: C
ALENDAR
C
OMPARISON
I
NSTRUCTIONS
YEAR (Yearly Timer)
Notes:
A maximum of 10 YEAR instructions can be used in a user program.
Normally the output is only updated when the current date and the date for the ON/OFF settings matches, but when the YEAR instruction
input changes from off to on, the output state at the current date is determined according to the ON/OFF settings and the output is turned on
or off.
For details, see "Timing Chart when the Input Turns On during the Configured Interval" on page 12-20.
When pulse output is enabled, output is turned on for one scan at the instant (0:00) the date changes to the ON date.
When the YEAR input changes from off to on at 0:00, the output is turned on for one scan, but the output does not change when turned on
at all other times.
For pulse output, see "6. Pulse Output" on page 12-13 or "6. Pulse Output" on page 12-17.
When the year data is outside the range of 2000 to 2099, the month data is outside the range of 1 to 12, the day data is outside the range of
1 to 31, the week data is outside the range of 1 to 5, and the day of the week data is outside the range of 0 to 6, a user program execution
error will occur.
For details about the user program execution errors, see "Instructions Reference" - "User Program Execution Errors" on page 4-13.
Applicable CPU Modules
Valid Devices
Special data registers cannot be designated as S1. Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be
designated as D1.
The YEAR instruction compares the specified date with the current date and
outputs that result. With this instruction you can specify special dates within a
one year period.
When the input is on, the output specified by D1 is turned on when the date
specified by the ON settings matches the current date.
The output is turned off when the date specified by the OFF settings matches the
current date.
When the ON settings are December 15, 2012 and the OFF settings are January
20, 2013, output D1 turns on and off as follows.
D1
*****
S2
*****
YEAR
S1
*****
S3
*****
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
Repeat
S1 (Source 1)
Starting data register
—
—
—
—
—
—
—
—
S2 (Source 2)
Initialization input
—
—
X
—
—
—
—
—
—
S3 (Source 3)
Number of parameter tabs
—
—
—
—
—
—
—
X
—
D1 (Destination 1)
Output port
—
X
—
—
—
—
—
—
11
12
1
2
ON
OFF
Output D1
Month
Day
20th
15th
2012
2013
Year
ON settings Month : December
Day : 15th
OFF settings Month : January
Day : 20th
Содержание 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 ...