IDEC SmartAXIS FT9Z-1A01 User Manual page 162

Table of Contents

Advertisement

5: S
F
P ECI AL
UN CTI ON S
Setting the Clock with a User Program
A user program can write the clock data from an operator interface without using WindLDR by using special data registers D8015
to D8021. Undefined values are stored in special data registers D8015 to D8021. Always store an appropriate value before turning
on M8016, M8017, or M8020.
Calendar Data Write Flag (M8016)
After writing data to the write calendar special data registers (D8015 to D8018), turn M8016 off to on to set the internal clock with
the data in D8015 to D8018 as the calendar data (year, month, day, day of the week).
Clock Data Write Flag (M8017)
After writing data to the write clock special data registers (D8019 to D8021), turn M8017 off to on to set the internal clock with the
data in D8019 to D8021 as the clock data (hour, minute, second).
Calendar/Clock Data Write Flag (M8020)
After writing data to the write calendar/clock special data registers (D8015 to D8021), turn M8020 off to on to set the internal
clock with the data in D8015 to D8021 as the calendar data (year, month, day, day of the week) and the clock data (hour, minute,
second).
Calendar and clock data storage locations
The calendar/clock data is stored in the following special data registers.
Special data register
D8008
D8009
D8010
D8011
D8012
D8013
D8014
D8015
D8016
D8017
D8018
D8019
D8020
D8021
Note: If the scan time is 500 ms or longer, D8008 to D8014 are updated with each scan.
For the day of the week data, the values below are stored in the special data registers.
Day of the week
Value
5-70
Description
Calendar/Clock
Current Data
(Read only)
Calendar/Clock
New Data
(Write only)
Sunday
Monday
0
1
S
A XI S P
M AR T
R O
Year
Month
Day
Day of the week
Hour
Minute
Second
Year
Month
Day
Day of the week
Hour
Minute
Second
Tuesday
Wednesday
2
3
/ L
U
'
M
FT9Y-B 1378
I TE
SER
S
ANUAL
Range
Setting timing
0 to 99
1 to 12
1 to 31
0 to 6
Every 500 ms (Note)
0 to 23
0 to 59
0 to 59
0 to 99
1 to 12
1 to 31
0 to 6
0 to 23
0 to 59
0 to 59
Thursday
Friday
4
5
Saturday
6

Advertisement

Table of Contents
loading

Table of Contents