11: W
EEK
P
ROGRAMMER
I
NSTRUCTIONS
11-16
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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 11-25.
• 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 instruction input changes from off to on, the output state at the current date is judged according to the ON/OFF settings, and
the output is turned on for 1 scan only.
For pulse output, see "6. Pulse Output" on page 11-18 or "6. Pulse Output" on page 11-22.
• 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.
• The YEAR 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 the yearly setting or monthly setting is enabled and a date that does not exist according to the month or year is set for the ON setting
or the OFF setting, the output turns on or off on the first day of the next month.
Valid Devices
Special data registers cannot be designated as S1. 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 (A "special date" is a date configured with ON/OFF settings
specified by the YEAR instruction).
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
*****
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
S1 (Source 1)
First 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
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 ...