Omron NT631 Series Reference Manual page 359

Programmable terminals
Hide thumbs Also See for NT631 Series:
Table of Contents

Advertisement

Display and Setting of Calendar Clock
350
Downloaded from
Elcodis.com
electronic components distributor
PC Program
Create the PC ladder program as shown below.
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.
00000
@XFER(70)
#0004
AR18
DM0000
@MOV(21)
#0254
102
@MOV(21)
#0264
101
@ORW(35)
#000C
TIM001
@ANDW(34)
#FFF7
TIM002
@MOV(21)
#0255
@MOV(21)
#0265
@ORW(35)
#000C
103
103
TIM003
@ANDW(34)
#FFF7
103
103
Section
(1)
(2)
103
103
TIM
#0010
001
(1.0S)
(3)
103
103
TIM
#0010
002
(1.0S)
(4)
102
101
TIM
#0010
003
(1.0S)
3-10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31 seriesNt21 seriesNt31c seriesNt631c series

Table of Contents