FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 11-9
11: W
EEK
P
ROGRAMMER
I
NSTRUCTIONS
Data Register Allocation
If indirectly specifying the settings for the WEEK instruction with data registers, the settings are allocated to the data registers as
follows.
• Day of the week data register allocation
The day of the week for the ON settings and the day of the week for the OFF settings are allocated as bits in 1 data register as
follows.
Example day of the week settings
[To configure the output to turn on Monday and to turn off Friday]
[To configure the output to turn on Monday and Thursday and to turn off Tuesday and Saturday]
The ON time and the OFF time are stored in the data register as follows.
Storage Destination Data Size (word) R (Read)/W (Write) Setting
Start address+0 1 R/W
P 1 tab
Day of the week
Start address+1 1 R/W ON time
Start address+2 1 R/W OFF time
Start address+3 1 R/W
P 2 tab
Day of the week
Start address+4 1 R/W ON time
Start address+5 1 R/W OFF time
•
•
•
•
•
•
•
•
•
•
•
•
Start address+57 1 R/W
P 20 tab
Day of the week
Start address+58 1 R/W ON time
Start address+59 1 R/W OFF time
Monday is enabled in the ON settings, Friday is enabled in the OFF settings
Day of the week setting (ON): 0000010
Day of the week setting (OFF): 0100000
The value of the data register is 1000100000 (binary) = 544 (decimal).
Monday and Thursday are enabled in the ON settings, Tuesday and Saturday are enabled in the OFF settings
Day of the week setting (ON): 0010010
Day of the week setting (OFF): 1000100
The value of the data register is 1001001000100 (binary) = 4676 (decimal).
Bit
15
14
Reserved
Saturday
13
Friday
12
Thursday
11
Wednesday
10
Tuesd ay
9
Monday Sunday
Bit
7
6
Reserved Saturday
5
Friday
4
Thursday
3
Wednesday
2
Tuesd ay
1
Monday
Bit
0
Sunday
Bit
8
ON settings day of the week OFF settings day of the week
Data register (1 word)
0: Disabled (check box not selected)
1: Enabled (check box selected)
Bit
15
14
0
13
0
12
0
11
0
10
0
9
10
Bit
7
654321
Bit
0
Bit
8
ON settings OFF settings
Reserved Saturday Friday Thursday
Wednesday
Tuesday Monday Sunday Reserved Saturday Friday Thursday
Wednesday
Tuesday Monday Sunday
01000 00
Bit
15
14
0
13
0
12
1
11
0
10
0
9
10
Bit
7
654321
Bit
0
Bit
8
ON settings OFF settings
Reserved Saturday Friday Thursday
Wednesday
Tuesday Monday Sunday Reserved Saturday Friday Thursday
Wednesday
Tuesday Monday Sunday
10001 00
12:34
1234 (Decimal)
23:45
2345 (Decimal)
Data register (1 word)
Data register (1 word)
For 12:34 For 23:45