3-10
Section
Display and Setting of Calendar Clock
350
PC Program
Create the PC ladder program as shown below.
00000
@XFER(70)
#0004
AR18
DM0000
@MOV(21)
#0254
102
@MOV(21)
#0264
101
TIM001
@ANDW(34)
#FFF7
103
TIM
001
#0010
(1.0S)
@ORW(35)
#000C
103
103
TIM
002
#0010
(1.0S)
103
TIM002
@MOV(21)
#0255
102
@MOV(21)
#0265
101
TIM003
@ANDW(34)
#FFF7
103
TIM
003
#0010
(1.0S)
@ORW(35)
#000C
103
103
103
(1)
(2)
(3)
(4)
Program Operation
When the program is executed after displaying the created screen on the PT, the
operation is controlled as follows.
1, 2, 3...
1. When bit 00000 comes ON, the date and time (AR 18 to AR 21) set in the PC
is read, and written to words (DM0000 to DM0003) allocated to numeral
memory tables No. 264 and No. 265.
2. The contents in numeral memory table No. 264 (day, hour, minute, second)
are copied to numeral memory table No. 254, which is used for setting the
clock function.
3. After waiting about a second for the completion of the memory table copy
operation in step (2), the memory table copy execution bit (10303) is re-
turned to the OFF status.
4. After a wait of about one second for the PT to confirm that the memory table
copy execution bit has gone OFF, the program copies the contents of nu-
meral memory table No. 265 (day of the week, year, month) to numeral
memory table No. 255, which is used for setting the clock function, in the
same way as described in steps (2) and (3) above.
electronic components distributor
Содержание NT21 Series
Страница 3: ...iv Downloaded from Elcodis com electronic components distributor...
Страница 5: ...vi Downloaded from Elcodis com electronic components distributor...
Страница 367: ...3 12 Section Enabling Disabling PT Operations 358 Downloaded from Elcodis com electronic components distributor...
Страница 399: ...4 4 Section Memory Link Online Transfer Function 390 Downloaded from Elcodis com electronic components distributor...
Страница 431: ...6 2 Section Responding to Displayed Error Messages 422 Downloaded from Elcodis com electronic components distributor...
Страница 463: ...Downloaded from Elcodis com electronic components distributor...
Страница 465: ...Downloaded from Elcodis com electronic components distributor...