Setting The Clock By Using Ladder Programs; Figure 11-11 Example Ladder Program For Setting The Clock - Hitachi S10VE User Manual

Table of Contents

Advertisement

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.
X0000
V100
S0200 S0201 V101
K100
S0202 V102

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).
FW100
FW101
FW102
FW103
FW104
FW105
FW106
[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.
F registers
Second
Minute
Hour
Day
Month
Year
Day of the week
11-15
MOV
H4000 → SW0200 ··················· (1)
F
MOM
FW100: 00007 → SW0280 ········ (2)
F
MOV
H6000 → SW0200 ··················· (3)
F
K100
S
MOV
H0000 → SW0200 ··················· (4)
F
K100
R
Time control registers
SW0280
Second
SW0290
Minute
SW02A0
Hour
SW02B0
Day
SW02C0
Month
SW02D0
Year
SW02E0
Day of the week
11. Operation

Advertisement

Table of Contents
loading

Table of Contents