FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
12-7
12: C
ALENDAR
C
OMPARISON
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 are
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 0
1
R/W
P 1 tab
Day of the week
Start 1
1
R/W
ON time
Start 2
1
R/W
OFF time
Start 3
1
R/W
P 2 tab
Day of the week
Start 4
1
R/W
ON time
Start 5
1
R/W
OFF time
•
•
•
•
•
•
•
•
•
•
•
•
Start 57
1
R/W
P 20 tab
Day of the week
Start 58
1
R/W
ON time
Start 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
Tuesday
9
Monday
Sunday
Bit
7
6
Reserved Saturday
5
Friday
4
Thursday
3
Wednesday
2
Tuesday
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 cleared)
1: Enabled (check box selected)
Bit
15
14
0
13
0
12
0
11
0
10
0
9
1
0
Bit
7
6
5
4
3
2
1
Bit
0
Bit
8
ON settings
OFF settings
Reserved Saturday
Friday
Thursday Wednesday Tuesday
Monday
Sunday Reserved Saturday
Friday
Thursday Wednesday Tuesday
Monday
Sunday
0
1
0
0
0
0
0
Bit
15
14
0
13
0
12
1
11
0
10
0
9
1
0
Bit
7
6
5
4
3
2
1
Bit
0
Bit
8
ON settings
OFF settings
Reserved Saturday
Friday
Thursday Wednesday Tuesday
Monday
Sunday Reserved Saturday
Friday
Thursday Wednesday Tuesday
Monday
Sunday
1
0
0
0
1
0
0
12:34
1234 (Decimal)
23:45
2345 (Decimal)
Data register (1 word)
Data register (1 word)
For 12:34
For 23:45
Содержание 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 ...