JPH02101513A - System for referring and setting time data - Google Patents

System for referring and setting time data

Info

Publication number
JPH02101513A
JPH02101513A JP63255585A JP25558588A JPH02101513A JP H02101513 A JPH02101513 A JP H02101513A JP 63255585 A JP63255585 A JP 63255585A JP 25558588 A JP25558588 A JP 25558588A JP H02101513 A JPH02101513 A JP H02101513A
Authority
JP
Japan
Prior art keywords
time data
time
carry
seconds
minimum unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63255585A
Other languages
Japanese (ja)
Inventor
Ryuichi Kamimura
上村 立一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63255585A priority Critical patent/JPH02101513A/en
Publication of JPH02101513A publication Critical patent/JPH02101513A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To set a time with an error within the minimum unit of maximum one second by setting time in accordance with a time immediately before and immediately after a carry time and the other time at the time of referring a time when carry is performed and setting the time. CONSTITUTION:In a communication control program (NCP) timer provided in the memory MS of a communication control processor (CCP), year, date, time, second and minute data are updated whenever one second passes. Then, the NCP timer is referred and the time is set in the CMP timer or RAM in a CCP control processor (CMP). When the second of a minimum digit is 59 seconds and it is immediately before carry at the time of setting, only 59 seconds is set and the time within the minimum error unit of maximum one second is set even in the unstable second time at the time of carry, and all the stable and accurate time of the NCP timer are set after carry at the other seconds.

Description

【発明の詳細な説明】 〔概要〕 時刻データを参照して設定する時刻データ参照設定方式
に関し、 桁上げする時刻データが最小単位の桁上げ直前の値、直
後の値、これら以外の値に対応して時刻データを最小単
位のみ設定/非設定/設定し、最大1最小単位内の誤差
で時刻データを設定することを目的とし、 年月日時分秒などの桁上げする時刻データを参照して設
定する際に、最小単位の桁上げ直前の値のときに当該最
小単位の値のみを設定、最小単位の桁上げ直後の値のと
きに設定しなく、これら以外の値のときに時刻データを
設定するように構成する。
[Detailed Description of the Invention] [Summary] Regarding the time data reference setting method in which settings are made by referring to time data, the time data to be carried corresponds to the value immediately before the minimum unit carry, the value immediately after the carry, and values other than these. The purpose is to set/unset/set the time data only in the minimum unit, and set the time data with an error within a maximum of one minimum unit. When setting, set only the value of the minimum unit when the value is immediately before the carry of the minimum unit, do not set it when the value is immediately after the carry of the minimum unit, and set the time data when the value is other than these. Configure to set.

〔産業上の利用分野〕[Industrial application field]

本発明は、時刻データを参照して設定する時刻データ参
照設定方式に関するものである。
The present invention relates to a time data reference setting method for setting time data with reference to it.

〔従来の技術と発明が解決しようとする課題〕従来、C
CP (通信制御処理装置)において、通信制御を行う
NCP (通信制御プログラム)には、時刻データが設
定されている。この時刻データは、“年月日時分秒”と
して20バイトのデータによって表され、NCPによっ
て例えば1秒経過する毎に更新されている。この更新の
際に一度に全てのデータを更新することができず、数回
に分けて行っているため、桁上げに伴って第5図に示す
ように、−時的に不正確な時刻データとなってしまう。
[Problems to be solved by conventional technology and invention] Conventionally, C
In the CP (communication control processing device), time data is set in the NCP (communication control program) that performs communication control. This time data is represented by 20 bytes of data as "year, month, day, hour, minute, second" and is updated by the NCP every second, for example. At the time of this update, it is not possible to update all the data at once, and it is done in several times, so as shown in Figure 5, due to the carry, - temporally inaccurate time data It becomes.

このため、この不正確な時刻データとなった時に、CM
P (CCP管理プロセッサ)がこれを参照して誤った
時刻データを設定してしまうという問題がある。
Therefore, when the time data becomes inaccurate, the CM
There is a problem in that P (CCP management processor) refers to this and sets incorrect time data.

本発明は、桁上げする時刻データが最小単位の桁上げ直
前の値、直後の値、これら以外の値に対応して時刻デー
タを最小単位のみ設定/非設定/設定し、最大1最小単
位内の誤差で時刻データを設定することを目的としてい
る。
The present invention sets/unsets/sets only the minimum unit of the time data corresponding to the value immediately before the carry, the value immediately after the carry, and the value other than these in the minimum unit, and within a maximum of one minimum unit. The purpose is to set time data with an error of .

(課題を解決する手段〕 第1図を参照して課題を解決する手段を説明する。(Means to solve problems) Means for solving the problem will be explained with reference to FIG.

時刻データ設定部1は、読み込んだ時刻データの最小単
位(例えば秒)が桁上げ直前の値(例えば59秒)、桁
上げ直後の値(例えば00秒)、あるいはこれら以外の
値に対応して、最小単位の値のみを設定、なにも設定し
ない、あるいは読み込んだ時刻データを設定するもので
ある。
The time data setting section 1 determines whether the minimum unit (for example, seconds) of the read time data corresponds to the value immediately before the carry (for example, 59 seconds), the value immediately after the carry (for example, 00 seconds), or a value other than these. , only the minimum unit value is set, nothing is set, or the read time data is set.

(作用〕 本発明は、第1図に示すように、時刻データ設定部1が
読み込んだ時刻データの最小単位について桁上げ直前の
値(例えば59秒)のときに当該直前の値のみを設定し
、直後の値(例えば00秒)のときになにも設定しなく
、あるいはこれら以外の値のときに時刻データを設定す
るようにしている。
(Function) As shown in FIG. 1, the present invention sets only the immediately preceding value (for example, 59 seconds) when the minimum unit of time data read by the time data setting section 1 is a value immediately before a carry. , nothing is set when the value immediately follows (for example, 00 seconds), or time data is set when the value is other than these.

従って、桁上げする時刻データを参照して、最大1最小
単位の誤差範囲内で時刻データを設定(更新)すること
が可能となる。
Therefore, by referring to the time data to be carried, it is possible to set (update) the time data within an error range of at most one minimum unit.

(実施例) 次に、第1図から第4図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。
(Embodiment) Next, the configuration and operation of an embodiment of the present invention will be explained in detail using FIGS. 1 to 4.

第1図において、■は、NCP (通信制御プログラム
)のタイマ(時刻データ)を読み込む。これは、後述す
る第2図CMP CCCP管理プロセッサ)がNCPタ
イマから時刻データ(第3図年月日時分秒)を読み込む
ことを意味している。
In FIG. 1, ■ reads the timer (time data) of the NCP (communication control program). This means that the CMP CCCP management processor in FIG. 2 (described later) reads time data (year, month, day, hour, minute, second in FIG. 3) from the NCP timer.

■は、“秒”が59秒(桁上げ直前の値)か、00秒(
桁上げ直後の値)か、あるいはその他か否かを判別する
。これは、時刻データの最小単位が桁上げ直前の値のと
き、および桁上げ直後の値のときに不正確になるので、
これら不正確な値となる状態について判別することを意
味している。
■, the "second" is either 59 seconds (the value just before the carry) or 00 seconds (
(the value immediately after the carry) or something else. This becomes inaccurate when the minimum unit of time data is the value immediately before the carry, and when it is the value immediately after the carry.
This means determining the conditions that result in these inaccurate values.

秒“59”の場合、■で当該秒′59″のみを設定する
。これは、後述するように、最小単位の桁上げ直前の値
の場合に、不正確な状態が発生するので、最小単位の桁
上げ直前の値のみを設定(更新)し、この最小単位以外
の値は前回の値を設定したままにすることを意味してい
る。
If the second is “59”, set only the second “59” in ■.This is because an inaccurate state will occur if the value is just before the minimum unit carry, as described later. This means that only the value immediately before the carry is set (updated), and values other than this minimum unit remain set at the previous value.

秒″OO”の場合、なにも設定しない。これにより、秒
“59゛の状態で設定したままとなる。
If the second is "OO", nothing is set. As a result, the setting remains at "59" seconds.

従って、桁上げに伴う時刻データの不正確さに対して、
量大1最小単位の範囲内の誤差に修めることが可能とな
る。
Therefore, regarding the inaccuracy of time data due to carry,
It becomes possible to improve the error within the range of one minimum unit.

その他の場合、■で読み込んだタイマ(時刻データ)を
全て設定する。これにより、秒“00”の場合に発生し
た最大1最小単位の範囲内の誤差がな(なり、正確な時
刻データに設定(更新)される。
In other cases, set all the timers (time data) read in ■. As a result, the error within the range of one minimum unit that occurs when the second is "00" is eliminated, and accurate time data is set (updated).

以上のように、桁上げされる時刻データを読み込み、当
該時刻データの最小単位の桁上げ直前の値、直後の値、
これら以外の値の場合に対応して、最小単位の値のみ設
定、なにも設定しない、あるいは全ての時刻データを設
定することにより、桁上げされる時刻データを参照して
最大1最小単位の誤差範囲内で時刻データを設定(更新
)することが可能となる。
As described above, the time data to be carried is read, the value immediately before the carry, the value immediately after the minimum unit of the time data, and the value immediately after the carry.
Corresponding to the case of values other than these, by setting only the value of the minimum unit, not setting anything, or setting all the time data, up to one minimum unit value can be set by referring to the time data to be carried. It becomes possible to set (update) time data within the error range.

第2図は、本発明のシステム構成図を示す0図中CCP
 (通信制御処理装置)において、通信制御を行うNC
P (通信制御プログラム)には、斜線を用いて示した
NCPタイマ(時刻データ)がMS (メモリ)中に設
けられている。このNCPタイマは、第3図に示すよう
に、20バイトから構成され、1秒を経過する毎に2バ
イトづつ更新される。そして、CMP (CCP管理プ
ロセッサ)が1秒経過毎に2バイトづつ更新されるNC
Pタイマを参照してSh−RAM (メモリ)中に設け
たCMPタイマに時刻データを設定するようにしている
。このため、NCPタイマを参照して、CMPタイマに
時刻データを設定する際に、当該NCPタイマの桁上げ
に伴う誤差が発生する場合があるので、第1図時刻デー
タ設定部1が最大1最小単位(例えば最大1秒)の誤差
範囲内でCMPタイマに時刻データを設定するようにし
ている。
Figure 2 shows the system configuration diagram of the present invention.
(Communication control processing device), NC that performs communication control
P (communication control program) is provided with an NCP timer (time data) shown using diagonal lines in MS (memory). As shown in FIG. 3, this NCP timer consists of 20 bytes, and is updated by 2 bytes every 1 second. Then, the CMP (CCP management processor) is updated by 2 bytes every 1 second.
The time data is set in the CMP timer provided in the Sh-RAM (memory) by referring to the P timer. Therefore, when setting time data to the CMP timer with reference to the NCP timer, an error may occur due to the carry of the NCP timer. Time data is set in the CMP timer within an error range of units (for example, 1 second at maximum).

以下順次説明する。The following will be explained in order.

第3図は、NCPタイマのテーブル例を示す。FIG. 3 shows an example of a table of NCP timers.

第3図(イ)は、万年日時分秒についてのテーブル構造
を表す、第3図(ロ)は、具体例“88年9月20日1
7時30分10秒”をNCPタイマのテーブルに格納し
た例を示す、ここで、′61”は“/”4B”は“、”
を表す。
Figure 3 (a) shows the table structure for the perpetual day, hour, minute, and second. Figure 3 (b) shows the specific example "September 20, 1988
An example is shown in which "7:30:10" is stored in the NCP timer table, where '61' is "/"4B" is ","
represents.

第4図(イ)は更新が秒から行われる場合(秒−分一時
一日一月一年の順序で桁上げが行われる場合)を表し、
第4図(ロ)は更新が年より行われる場合(年−月一日
一時一分一秒の順序で桁上げが行われる場合)を表す、
ここで、NCP時刻データを500msごとに参照し、
CMPメモリ時刻データとして設定する場合について以
下説明する。
Figure 4 (a) shows the case where the update is performed from the second (the carry is performed in the order of seconds - minutes, hours, days, January, years),
Figure 4 (b) shows the case where the update is performed from the year (the case where the carry is performed in the order of year - month, day, hour, minute, and second).
Here, refer to the NCP time data every 500ms,
The case of setting as CMP memory time data will be described below.

第4図(イ)において、■は、NCP時刻データの最小
単位が“58”秒であって、第1図■“その他”に対応
するので、そのままCMPメモリ時刻データとして設定
する。
In FIG. 4(A), the minimum unit of NCP time data is "58" seconds, and corresponds to "Others" in FIG. 1, so it is set as CMP memory time data.

■は、NCP時刻データの最小単位が“59”秒であっ
て、第1図“59” (最小単位の桁上げ直前の値)で
あるので、最小単位の“59”秒のみをCMPメモリ時
刻データとして設定する。
In case of ■, the minimum unit of NCP time data is "59" seconds, and it is "59" (the value immediately before the carry of the minimum unit) in Figure 1, so only "59" seconds, the minimum unit, is used as the CMP memory time. Set as data.

■は、NCP時刻データの最小単位が桁上げされた“0
0”秒であって、第1図■“OO” (最小単位の桁上
げされた直後の値)であるので、CMPメモリ時刻デー
タに何も設定しない。従って、■のままとなる。
■ indicates that the minimum unit of NCP time data is carried to “0”.
0'' second in FIG. 1. Since it is ``OO'' (the value immediately after the minimum unit carry), nothing is set in the CMP memory time data. Therefore, it remains as ``■''.

■は、NCP時刻データの分が桁上げされたが、100
”秒であるので、CMPメモリ時刻データに何も設定し
ない、従って、■のままとなる。
■The minute in the NCP time data was carried up, but it was 100.
"Since it is seconds, nothing is set in the CMP memory time data. Therefore, it remains as ■.

■は、NCP時刻データの時が桁上げされたが、“OO
″秒であるので、CMPメモリ時刻データに何も設定し
ない、従って、■のままとなる。
■The hour of the NCP time data was carried forward, but “OO
Since it is "seconds," nothing is set in the CMP memory time data, so it remains as ■.

■は、NCP時刻データの最小単位が′01”秒であっ
て、第1図■“その他”に対応するので、そのままCM
Pメモリ時刻データとして設定する。
■The minimum unit of NCP time data is '01'' seconds, and it corresponds to ■``Others'' in Figure 1, so it can be sent directly to the CM.
Set as P memory time data.

以上の処理によって、桁上げされる時刻データについて
、右側“誤差”に示すように、■、■、■で誤差“0”
、■、■、■で誤差“−1″秒の範囲内、即ち最大ti
小単位の誤差範囲内でCMPメモリ時刻データとして設
定(更新)することが可能となる。
Through the above processing, the carried time data has an error of "0" at ■, ■, and ■, as shown in the "error" on the right.
, ■, ■, ■ within the range of error "-1" seconds, that is, the maximum ti
It becomes possible to set (update) the CMP memory time data within a small error range.

また、第4図(ロ)に示す更新(桁上げ)が年より行わ
れる場合についても、第4図(ロ)■から■の処理によ
って、同様に、最大1最小単位の誤差範囲内でCMPメ
モリ時刻データとして設定(更新)することが可能とな
る。
In addition, even if the update (carry) shown in Figure 4 (B) is performed from 2015, CMP can be similarly performed within the error range of a maximum of 1 minimum unit by the processing from ■ to ■ in Figure 4 (B). It becomes possible to set (update) as memory time data.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、桁上げされる時
刻データの最小単位が桁上げ直前の値(例えば59秒)
のときに当該直前の値のみを設定し、直後の値(例えば
00秒)のときになにも設定しなく、これら以外の値の
ときに時刻データを設定(更新)する構成を採用してい
るため、桁上げされる時刻データを参照して、最大1最
小単位の誤差内で時刻データを更新することができる。
As explained above, according to the present invention, the minimum unit of time data to be carried is the value immediately before the carry (for example, 59 seconds).
We have adopted a configuration in which only the immediately preceding value is set when , nothing is set when the value immediately after (for example, 00 seconds), and time data is set (updated) when the value is other than these. Therefore, by referring to the carried time data, the time data can be updated within an error of at most one minimum unit.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の1実施例構成図、第2図は本発明のシ
ステム構成図、第3図はNCPタイマのテーブル例、第
4図は本発明の動作説明図、第5図は従来の問題点説明
図を示す。 図中、■は時刻データ設定部を表す。
FIG. 1 is a configuration diagram of one embodiment of the present invention, FIG. 2 is a system configuration diagram of the present invention, FIG. 3 is an example of a table of an NCP timer, FIG. 4 is an explanatory diagram of the operation of the present invention, and FIG. 5 is a conventional diagram. A diagram explaining the problem is shown. In the figure, ■ represents a time data setting section.

Claims (2)

【特許請求の範囲】[Claims] (1)時刻データを参照して設定する時刻データ参照設
定方式において、 年月日時分秒などの桁上げする時刻データを参照して設
定する際に、最小単位の桁上げ直前の値のときに当該最
小単位の値のみを設定、最小単位の桁上げ直後の値のと
きに設定しなく、これら以外の値のときに時刻データを
設定するように構成したことを特徴とする時刻データ参
照設定方式。
(1) In the time data reference setting method that refers to the time data, when setting by referring to the time data to be carried such as year, month, date, hour, minute, second, etc., when the value immediately before the minimum unit carry is A time data reference setting method characterized in that only the value of the minimum unit is set, the time data is not set when the value is immediately after the carry of the minimum unit, and the time data is set when the value is other than these. .
(2)上記最小単位が秒の場合に、59秒のときに当該
59秒のみを設定、00秒のときに設定しなく、これら
以外のときに時刻データを設定するように構成したこと
を特徴とする第(1)項記載の時刻データ参照設定方式
(2) When the above-mentioned minimum unit is seconds, the configuration is such that only the 59 seconds are set when it is 59 seconds, it is not set when it is 00 seconds, and the time data is set at other times. The time data reference setting method described in paragraph (1).
JP63255585A 1988-10-11 1988-10-11 System for referring and setting time data Pending JPH02101513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63255585A JPH02101513A (en) 1988-10-11 1988-10-11 System for referring and setting time data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63255585A JPH02101513A (en) 1988-10-11 1988-10-11 System for referring and setting time data

Publications (1)

Publication Number Publication Date
JPH02101513A true JPH02101513A (en) 1990-04-13

Family

ID=17280762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63255585A Pending JPH02101513A (en) 1988-10-11 1988-10-11 System for referring and setting time data

Country Status (1)

Country Link
JP (1) JPH02101513A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009117627A (en) * 2007-11-07 2009-05-28 Tdk Corp Surface-mounted type coil component

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009117627A (en) * 2007-11-07 2009-05-28 Tdk Corp Surface-mounted type coil component

Similar Documents

Publication Publication Date Title
US5715438A (en) System and method for providing time base adjustment
JPH02101513A (en) System for referring and setting time data
WO2020134636A1 (en) Method and apparatus for improving wake-up precision of low-resolution real time clock, and electronic device
JPS59116865A (en) Naming method of data set
JP2000215237A (en) Tax rate changing system and its program recording medium
JPS599732A (en) Automatic correcting system of timer
JPS62232039A (en) Timer management control device
US20050193224A1 (en) Computer clock management system and method
JPH06110670A (en) Graphic user interface function customizing system
JPS62267828A (en) Control system for execution of null instruction
JPS59135565A (en) Managing method of real time timer
JP2526797B2 (en) Date management method
JPS6210740A (en) Interruption processing control system
JPS63262747A (en) Automatic timer initialization system in multi-processor system
JPS62214418A (en) Time correcting system for timepiece incorporated in processor
JPS6273335A (en) Stack control system
JPH02205143A (en) Packet switching network information managing method
JPH0462093B2 (en)
JPS6041133A (en) Correcting method of control program
JPS62197839A (en) Control system for central processing unit
JPH01133174A (en) Program synchronizing circuit
JPH0322117A (en) Leapyear correction system in cash register
JPS62184542A (en) Interruption device
JPH02309434A (en) Memory managing method
JPH0497409A (en) Date management system for computer