Omron NT31C Reference Manual page 361

Hide thumbs Also See for NT31C:
Table of Contents

Advertisement

Display and Setting of Calendar Clock
1, 2, 3...
350
PC Program
Create the PC ladder program as shown below.
00000
TIM001
TIM002
TIM003
Program Operation
When the program is executed after displaying the created screen on the PT, the
operation is controlled as follows.
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.
Section
@XFER(70)
(1)
#0004
AR18
DM0000
@MOV(21)
(2)
#0254
102
@MOV(21)
#0264
101
@ORW(35)
#000C
103
103
TIM
#0010
001
(1.0S)
@ANDW(34)
(3)
#FFF7
103
103
TIM
#0010
002
(1.0S)
@MOV(21)
(4)
#0255
102
@MOV(21)
#0265
101
@ORW(35)
#000C
103
103
TIM
#0010
(1.0S)
003
@ANDW(34)
#FFF7
103
103
3-10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31Nt631Nt631c

Table of Contents