Displaying The Date And Time - Omron NT21 Reference Manual

Programmable terminals
Hide thumbs Also See for NT21:
Table of Contents

Advertisement

Display and Setting of Calendar Clock

3-10-2 Displaying the Date and Time

Setting
Operation
Example of Use
The procedure for displaying the date and time data set using the clock function
of the PT by the numeric value display of numeral memory table entries 247 to
253 is described below.
Numeral memory table entries 247 to 253 store the date and time data as shown
below. With the NT31/NT31C or NT631/NT631C, the data is updated according
to the clock built into the PT. With the NT21, the data is updated with the values
read from the words allocated for the Clock Data Area in the host.
Numeral memory table
entry
247
248
249
250
251
252
253
The date and time data are stored in signed binary data in a numeral memory
table entry. Therefore, to display a numeric value, it is necessary to set Decimal
for Display Type.
Register the numeric value display for the display of contents of numeral
memory table entries 247 to 253 for the screen according to the date and time
data to be displayed.
The Display Type of Numeral Display must be Decimal. Set other properties ac-
cording to the display requirements.
The current date and time are continually displayed by the Numeral Display for
displaying numeral memory table entries 247 to 253.
The following describes an example of how to display the date and time, set at
the PC, on the NT31/NT31C or NT631/NT631C.
In this example a C200HX, which has a clock function, is used. The clock func-
tion is allocated words AR18 to AR21 in the C200HX.
Setting at the Support Tool
Set using the Support Tool as indicated below:
PT status control area allocated words: 00100 (CIO area, word 100)
Numeral memory table entry 264:
Numeral memory table entry 265:
Contents
Range
Sec.
0 to 59
Min.
0 to 59
Hour
0 to 23
Date
1 to 31
Month
1 to 12
Year
0 to 99
Day of week
0 to 6
DM0000 (number of words: 2)
DM0002 (number of words: 2)
Section
3-10
Comment
24-hour notation
Last 2 digits of the year
Sunday through Saturday
359

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt631Nt31 seriesNt21 seriesNt631 series

Table of Contents