11. Operation
11-15
11.6.2 Setting the clock by using ladder programs
The following shows a ladder program that takes the time data set in the F registers (FW100 through FW106)
and specifies it in the clock control registers (SW0280 through SW02E0) when X0000 is "1" (ON). Note that
Figure 11-11 explains only the items required to create the ladder program.
Figure 11-11 Example ladder program for setting the clock
Operation overview
[1] When X0000 is ON, S0201 is set to "1", and a request to stop the clock is issued.
[2] The program verifies that the clock has stopped, and takes the time data (second, minute, hour, day, month,
year, and day of the week) that was previously specified in the F registers (FW100 through FW106) and
specifies it in the time registers (SW0280 through SW02E0).
F registers
Time control registers
FW100
Second
SW0280
Second
FW101
Minute
SW0290
Minute
FW102
Hour
SW02A0
Hour
FW103
Day
SW02B0
Day
FW104
Month
SW02C0
Month
FW105
Year
SW02D0
Year
FW106
Day of the week
SW02E0
Day of the week
[3] S0202 is set to "1", and a data set and start request is issued.
[4] The program verifies that the data set is complete, S0201 and S0202 return to "0", and the clock settings are
complete.
X0000
MOV
H4000 → SW0200 ··················· (1)
FW100: 00007 → SW0280 ········ (2)
H6000 → SW0200 ··················· (3)
H0000 → SW0200 ··················· (4)
V100
S0200 S0201 V101
MOM
MOV
K100
K100
MOV
K100
S0202 V102
F
F
F
F
S
R
Содержание S10VE
Страница 1: ...User s Manual General Description SEE 1 001 A ...
Страница 2: ...User s Manual General Description ...
Страница 27: ...S 24 Revision History Revision No History revision details Issue date Remarks A New edition Oct 2019 ...
Страница 53: ...This page is intentionally left blank ...
Страница 59: ...This page is intentionally left blank ...
Страница 67: ...This page is intentionally left blank ...
Страница 75: ...This page is intentionally left blank ...
Страница 77: ...This page is intentionally left blank ...
Страница 103: ...This page is intentionally left blank ...
Страница 129: ...This page is intentionally left blank ...
Страница 295: ...This page is intentionally left blank ...
Страница 309: ...This page is intentionally left blank ...
Страница 341: ...This page is intentionally left blank ...
Страница 345: ...This page is intentionally left blank ...
Страница 475: ...This page is intentionally left blank ...
Страница 489: ...This page is intentionally left blank ...
Страница 505: ......
Страница 506: ...This page is intentionally left blank ...