Omron NT30C-ST141-E Operation Manual page 249

Programmable terminal
Table of Contents

Advertisement

Clock Function
S PC Program
Include the following in the ladder program.
00000
TIM001
S Program Operation
When the created screen is displayed on the NT30/30C and the program is
executed, the operation is as follows.
(1) When IR/CIO 00000 comes ON, the date and time (AR 18 to 21) set in the
PC are read, and written to the words (DM0000 to 0003) allocated to numer-
al memory table entries 264 and 265.
(2) Copy the contents of numeral memory table entry 264 (day, hour, minute,
second) into numeral memory table entry 254, which is used for setting the
clock function.
(3) After waiting about a second for the memory table entry copy operation in
step (2) to be completed, copy the contents of numeral memory table entry
265 (day of the week, year, month) into numeral memory table entry 255,
which used for setting the clock function.
The date and time set at the PC will also be set at the NT30/30C and displayed.
Section
@XFER(70)
#0004
AR18
DM0000
@MOV(21)
#1254
102
@MOV(21)
#0264
101
TIM
#0010
001
(1.0S)
@MOV(21)
#1255
102
@MOV(21)
#0625
101
5-6
237

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt30cNt30

Table of Contents