JP2014052189A - Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller - Google Patents
Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller Download PDFInfo
- Publication number
- JP2014052189A JP2014052189A JP2012194554A JP2012194554A JP2014052189A JP 2014052189 A JP2014052189 A JP 2014052189A JP 2012194554 A JP2012194554 A JP 2012194554A JP 2012194554 A JP2012194554 A JP 2012194554A JP 2014052189 A JP2014052189 A JP 2014052189A
- Authority
- JP
- Japan
- Prior art keywords
- unit
- time
- current time
- main body
- flag
- 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
Links
Images
Landscapes
- Electric Clocks (AREA)
Abstract
Description
本発明は、プラグラマブルロジックコントローラの時刻を補正する技術に関する。 The present invention relates to a technique for correcting the time of a pluggable logic controller.
プログラマブルロジックコントローラ(以下、PLCと称す)は、FA(Factory
Automation)制御システムにおいて広く使用されているシーケンス制御装置であり、ラダープログラムと呼ばれる専用プログラムにしたがって動作する。操作者(オペレータ)は、リミットスイッチ、センサ、温度計などの入力機器や、電磁開閉器、ソレノイド、モータ、アクチュエータ、シリンダ、リレー、位置決めシステムなどの出力機器をPLCに接続し、ラダープログラムによってこれらの被制御機器を制御する。
Programmable logic controller (hereinafter referred to as PLC) is FA (Factory
Automation) is a sequence controller widely used in control systems, and operates according to a dedicated program called a ladder program. The operator (operator) connects input devices such as limit switches, sensors, and thermometers, and output devices such as electromagnetic switches, solenoids, motors, actuators, cylinders, relays, and positioning systems to the PLC. Control the controlled device.
オペレータは、パーソナルコンピュータ(以下、PCと称す)などのプログラム作成支援装置上でラダープログラムを作成し、PCとPLCを接続し、ラダープログラムをPLCの記憶部に記憶させる。PLCの記憶部にはデバイス情報等の各種データも記憶される。デバイス情報とは、入力機器からの入力状態、出力機器への出力状態およびラダープログラム上で設定される内部リレー(補助リレー)、タイマー、カウンタ、データメモリ等の状態を示す情報である。デバイスとは、デバイス情報を格納するために設けられたメモリ上の領域を指す名称である。PLCにプログラム作成支援装置を接続することで、PLCが保持しているデバイス情報(デバイスの値)をプログラム作成支援装置に表示させ、視認することもできる。 An operator creates a ladder program on a program creation support device such as a personal computer (hereinafter referred to as a PC), connects the PC and the PLC, and stores the ladder program in the storage unit of the PLC. Various data such as device information is also stored in the storage unit of the PLC. The device information is information indicating an input state from the input device, an output state to the output device, and states of an internal relay (auxiliary relay), a timer, a counter, a data memory, and the like set on the ladder program. A device is a name indicating an area on a memory provided for storing device information. By connecting the program creation support apparatus to the PLC, the device information (device value) held by the PLC can be displayed on the program creation support apparatus for visual recognition.
ところで、PLCは、リアルタイムクロック(RTC)を備え、時刻情報をRTCから取得して、各種の制御をすることがある。RTCは、PLCの本体からは直接的には電力を供給されずに、電池やキャパシタなどの電源によって電力を供給されて動作している。よって、PLCの電源OFF中に、RTCの動作に起因して電池の残量が少なくなってくると、電池の出力電圧がRTCの動作限界電圧未満となり、RTCが正しい時刻情報を提供できなくなる。時刻情報が被制御機器の制御にとって重要な情報である場合、PLCの制御も誤ってしまうこともある。たとえば、異常が起きたときの時刻を把握したい場合や、1日のうちの所定時刻に処理を実行させたい場合等である。よって、PLCの時刻情報を正確に維持することは重要である。特許文献1によれば、ネットワークを介して複数の端末装置をGPS受信機に接続し、GPS受信機により受信した時刻データによって複数の端末装置の時刻を同期させることが提案されている。特許文献2によれば、GPS衛星やAM・FM・短波などのラジオの電波により搬送される標準時刻信号を受信して、PLCの時刻を同期させる時刻同期装置が提案されている。
By the way, the PLC includes a real-time clock (RTC), acquires time information from the RTC, and performs various controls. The RTC is not supplied with power directly from the main body of the PLC, but is operated with power supplied from a power source such as a battery or a capacitor. Therefore, if the remaining battery level is reduced due to the operation of the RTC while the power of the PLC is turned off, the output voltage of the battery becomes less than the operation limit voltage of the RTC, and the RTC cannot provide correct time information. When the time information is important information for controlling the controlled device, the PLC control may be erroneous. For example, there is a case where it is desired to grasp the time when an abnormality has occurred, or a case where processing is to be executed at a predetermined time of the day. Therefore, it is important to accurately maintain PLC time information. According to
特許文献1の発明では、GPS衛星からの電波を受信できること、および、ネットワークを介して端末装置をGPS受信機に接続することが必要であり、屋内で使用されることが想定されているPLCに適用することは簡単ではない。また、特許文献2の発明も、電波を受信できることが前提となっており、屋内で使用されることが想定されているPLCに適用することは簡単ではない。また、エラーがでたことをオペレータが認識したときに、時刻同期装置を準備してPLCに接続することは、オペレータにとって面倒かもしれない。また、時刻同期装置のような専用の装置を工場などの現場に設置されたPLCに接続することは困難なこともある。PLCは誤操作を防止するために、普通では手の届かないような場所に設置されるためである。一方で、ラダープログラムを作成してPLCに転送するプログラム作成支援装置であれば、PLCの時刻情報を修正できるであろう。しかし、プログラム作成支援装置を現場においてPLCに接続することはやはり簡単なことではない。プログラム作成支援装置は、デスクトップPCなどのパーソナルコンピュータだからである。
In the invention of
そこで、本発明は、従来よりも簡易かつ確実な方法でPLCの時刻情報を補正できるようにすることを目的とする。 Therefore, an object of the present invention is to make it possible to correct PLC time information by a simpler and more reliable method than in the past.
本発明は、プログラマブルロジックコントローラの本体と、前記本体に対して接続された外部機器と、を備えるプログラマブルロジックコントローラの時刻補正システムであって、前記プログラマブルロジックコントローラは、現在時刻を計時する第1の計時部と、前記本体に電力が供給されているか否かとは無関係に、前記第1の計時部に電力を供給する電源と、前記電源の出力電圧を監視する電圧監視部と、前記電源の出力電圧が閾値未満に低下すると、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示すようにフラグを制御して記憶部に記憶させるフラグ制御部と、前記第1の計時部の現在時刻を補正する時刻補正部とを備え、前記外部機器は、現在時刻を計時する第2の計時部と、前記本体の記憶部に保持されている前記フラグを読み出し、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを当該フラグが示しているかどうかを判定する判定部と、前記本体の記憶部から読み出した前記フラグが前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示していると前記判定部が判定すると、前記第2の計時部が計時した現在時刻を示す時刻データを取得して、前記第1の計時部の現在時刻を補正するための補正命令を作成して、該時刻データとともに前記本体に送信する補正命令作成部と、を備え、前記時刻補正部は、前記本体が前記補正命令を受信したときに、前記補正命令とともに受信した時刻データで前記第1の計時部の現在時刻を補正することを特徴とするプログラマブルロジックコントローラの時刻補正システムを提供する。 The present invention is a programmable logic controller time correction system comprising a main body of a programmable logic controller and an external device connected to the main body, wherein the programmable logic controller measures a current time. Regardless of whether or not power is supplied to the main body, a time measuring unit, a power source that supplies power to the first time measuring unit, a voltage monitoring unit that monitors an output voltage of the power source, and an output of the power source A flag control unit that controls a flag to store in a storage unit to indicate that the reliability of the current time measured by the first clock unit may be reduced when the voltage drops below a threshold; A time correction unit that corrects the current time of the first time measuring unit, and the external device stores a second time measuring unit that measures the current time, and a memory of the main body A determination unit that reads out the flag held in the first determination unit and determines whether or not the flag indicates that the reliability of the current time measured by the first time measurement unit may be reduced; When the determination unit determines that the flag read from the storage unit of the main body indicates that there is a possibility that the reliability of the current time measured by the first time measurement unit is reduced, the second A correction command generating unit that acquires time data indicating the current time measured by the time measuring unit, generates a correction command for correcting the current time of the first time measuring unit, and transmits the correction command to the main body together with the time data The time correction unit corrects the current time of the first time measuring unit with the time data received together with the correction command when the main body receives the correction command. The Providing logic controller time correction system.
また、本発明は、本体に外部機器が接続可能なプログラマブルロジックコントローラであって、現在時刻を計時する第1の計時部と、前記本体に電力が供給されているか否かとは無関係に、前記第1の計時部に電力を供給する電源と、前記電源の出力電圧を監視する電圧監視部と、前記電源の出力電圧が閾値未満に低下すると、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示すようにフラグを制御して記憶部に記憶させるフラグ制御部と、前記フラグ制御部の制御に起因して前記外部機器から受信した時刻データで前記第1の計時部の現在時刻を補正する時刻補正部とを備えることを特徴とするプログラマブルロジックコントローラを提供する。 In addition, the present invention is a programmable logic controller in which an external device can be connected to the main body, and the first timekeeping section that measures the current time and whether or not power is supplied to the main body. A power source that supplies power to one timepiece, a voltage monitoring unit that monitors the output voltage of the power supply, and the reliability of the current time that the first timepiece counts when the output voltage of the power supply falls below a threshold value A flag control unit that controls the flag so as to indicate that there is a possibility that the performance is reduced and stores the flag in the storage unit, and the time data received from the external device due to the control of the flag control unit Provided is a programmable logic controller comprising a time correction unit that corrects the current time of a first time measuring unit.
さらに本発明は、現在時刻を計時する第1の計時部を備えたプログラマブルロジックコントローラ用の外部機器であって、現在時刻を計時する第2の計時部と、前記プログラマブルロジックコントローラの本体の記憶部に保持されているフラグを読み出し、当該フラグが前記第1の計時部の計時する現在時刻の信頼性が低下している可能性があることを示しているかどうかを判定する判定部と、前記本体の記憶部から読み出した前記フラグが前記第1の計時部の計時する現在時刻の信頼性が低下している可能性があることを示していると前記判定部が判定すると、前記第2の計時部が計時する現在時刻を示す時刻データを取得して補正命令を作成して前記本体に送信する補正命令作成部とを備えることを特徴とする外部機器を提供する。 Furthermore, the present invention is an external device for a programmable logic controller provided with a first timekeeping unit that measures the current time, a second timekeeping unit that measures the current time, and a storage unit of the main body of the programmable logic controller A determination unit that reads the flag held in the first time unit and determines whether the flag indicates that the reliability of the current time measured by the first time measuring unit may be reduced; When the determination unit determines that the flag read from the storage unit indicates that the reliability of the current time measured by the first time measurement unit may be reduced, the second time measurement An external device is provided, comprising: a correction command generation unit that acquires time data indicating a current time measured by the unit, generates a correction command, and transmits the correction command to the main body.
本発明によれば、PLCの電源OFF中に、PLCの本体に設けられた第1の計時部に電力を供給する電源の出力電圧が低下した場合、PLCの電源ON後に、本体に接続された外部機器の第2の計時部から供給された時刻データで第1の計時部の現在時刻が補正される。外部機器の第2の計時部は、現在時刻を計時でき、この第2の計時部における現在時刻がPLCに送られるため、電波の届かない工場等の現場でもPLCの現在時刻を補正できる。また、ネットワークを介して端末装置をGPS受信機に接続せずに、外部機器の第2の計時部から供給された時刻データで第1の計時部の現在時刻を補正できる。よって、従来よりも簡易かつ確実な方法でPLCの時刻情報を補正できるようになる。 According to the present invention, when the output voltage of the power source that supplies power to the first time measuring unit provided in the main body of the PLC is lowered while the power source of the PLC is turned off, the power source of the PLC is connected to the main body after the power source is turned on. The current time of the first timekeeping unit is corrected with the time data supplied from the second timekeeping unit of the external device. The second time measuring unit of the external device can measure the current time, and the current time in the second time measuring unit is sent to the PLC, so that the current time of the PLC can be corrected even at a site such as a factory where radio waves do not reach. In addition, the current time of the first timekeeping unit can be corrected with the time data supplied from the second timekeeping unit of the external device without connecting the terminal device to the GPS receiver via the network. Therefore, the time information of the PLC can be corrected by a simpler and more reliable method than before.
以下に本発明の一実施形態を示す。以下で説明される個別の実施形態は、本発明の上位概念、中位概念および下位概念など種々の概念を理解するために役立つであろう。また、本発明の技術的範囲は、特許請求の範囲によって確定されるのであって、以下の個別の実施形態によって限定されるわけではない。 An embodiment of the present invention is shown below. The individual embodiments described below will help to understand various concepts, such as the superordinate concept, intermediate concept and subordinate concept of the present invention. Further, the technical scope of the present invention is determined by the scope of the claims, and is not limited by the following individual embodiments.
図1(A)は、プログラマブルロジックコントローラ(PLC)の外観を示す斜視図である。PLCはたんにプログラマブルコントローラと呼ばれることもある。図1において、PLC1は本体2とオペレーションモジュール3とに分離されている。本体2には、リミットスイッチ、センサなどの入力機器と接続するための入力端子群4と、電磁開閉器、ソレノイド、モータ、アクチュエータ、シリンダ、リレー、位置決めシステムなどの出力機器と接続するための出力端子群5とを備えている。また、本体2の外側にはモジュールカセット形態のオペレーションモジュール3を収容する収容部6を備えている。つまり、オペレーションモジュール3は、本体2の収容部6に対して取り付けたり、取り外したりすることが可能である。収容部6には、オペレーションモジュール3を位置決めするためのボス8と、オペレーションモジュール3の内部の制御部や記憶部と通信するためのコネクタ7が設けられている。オペレーションモジュール3の背面には、ボス8が嵌合する不図示の穴部が設けられている。また、オペレーションモジュール3の背面には、コネクタ7の接点と接触する端子が設けられている。
FIG. 1A is a perspective view showing an appearance of a programmable logic controller (PLC). The PLC is sometimes referred to simply as a programmable controller. In FIG. 1, the
なお、本実施形態では、本体2とオペレーションモジュール3とが分離されるタイプのPLCを想定しているが、これらが分離されないタイプ、オペレーションモジュール3が存在しないタイプなど、本発明は、様々なタイプのPLCに適用可能である。
In the present embodiment, a PLC of a type in which the
オペレーションモジュール3の前面には、液晶表示装置や自発光型表示装置などの表示部10が設けられている。表示部10は、オペレーションモジュール3が収容部6に取り付けられているときに、本体2に関する情報などを表示する。オペレーションモジュール3の前面には、オペレータが各種の指示を入力するための操作部11が設けられている。操作部11には、オペレータの操作を受け付けるための複数のボタン(キー)が設けられている。
A
図1(B)は、PLC1の本体2の収容部6にオペレーションモジュール3が取り付けられた様子を示している。図1(B)が示すように、オペレーションモジュール3の前面に表示部10が設けられており、この表示部10が本体2の前面に来るように本体2に対して取り付けられる。このように、オペレーションモジュール3はコネクタを介して本体2と接続されるため、通信ケーブルは不要である。つまり、オペレータは、通信ケーブルを用意して接続する作業が不要となる。また、通信ケーブルが断線すると新しい通信ケーブルを用意するまで、オペレーションモジュールを使用できなくなってしまうが、オペレーションモジュール3であればそのような問題も解決できる。特に、同種の複数のPLC1に対して時刻を設定する際には、本発明のオペレーションモジュール3は作業性の点で有利であろう。
FIG. 1B shows a state in which the
図2は、PLC1に有線接続されるプログラマブル表示器3’を示した図である。図1に示したオペレーションモジュール3は、収容部6に収容される内蔵タイプであったが、プログラマブル表示器3’は、シリアル通信ケーブル、LANケーブル、USBケーブルなどのケーブル12を介してPLC1に接続されている。なお、プログラマブル表示器3’とPLC1は、有線接続されてもよいし、無線LAN、ブルートゥース、IrDAなどで無線接続されてもよい。プログラマブル表示器3’は、オペレーションモジュール3と同様に、表示部10と操作部11を備えている。プログラマブル表示器3’の操作部11は、静電容量式または感圧式のタッチパネル入力デバイスである。図2が示すように、表示部10は、PLC1から読み出したデバイス情報(例:製品番号、温度、速度など)を表示することができる。表示部10は、定期的または非定期的にデバイス情報を読み出してデバイス情報を表示する。どのデバイス情報を読み出すかやデバイス情報の読み出しタイミングは、基本的に、プログラマブル表示器3’内のプログラムによって規定される。ただし、たとえば、PLC1が実行するラダープログラムによって定義されてもよい。なお、表示部10は、たとえば、液晶表示装置や自発光型表示装置などである。操作部11は、操作者(オペレータ)が各種の指示を入力するための複数のボタン(キー)が設けられてもよい。
FIG. 2 is a diagram showing a
プログラマブル表示器3’について更に詳述する。プログラマブル表示器3’は、PLC1に接続された入出力機器やPLC1の動作状態(状態データ)を監視するための機器である。プログラマブル表示器3’の画面上には、画面構成要素として、ランプ、メータ、及びグラフなどの各種部品画像が表示される。プログラマブル表示器3’の画面上に表示される各種部品画像のレイアウトなどは、ユーザが作画エディタなどの画面表示データ作成ソフトウェアを用いて自由に編集することができる。作成された画面表示データが転送されたプログラマブル表示器3’では、PLC1から、たとえばPLC1に接続された入出力機器の状態データが読み出され、その状態データに応じて部品画像(図示せず)が変化する(たとえば、ランプが点灯したり消灯したり、メータの針が左右に振れたりする)。これにより、ユーザは、PLC1に接続された入出力機器の動作状態を監視することが可能になる。
The programmable display 3 'will be described in further detail. The
このように、プログラマブル表示器3’は、PLC1を監視するための独自プログラムを有しており、自己の判断で定期的又は非定期的に、PLC1からデバイス情報を読み出して、表示部10に表示する機能を有している。
As described above, the
なお、デバイスとは、上述したように、デバイス情報を格納するために設けられたメモリ上の領域を指す名称であるが、別の言い方をすれば、PLC1に接続される入出力機器の監視や制御のために制御プログラムで用いられる要素ということもでき、命令で使用するデータを与えたり、命令の実行結果を格納したりするために用いられる。たとえば、リレー、タイマー、カウンタ、データメモリ等が挙げられる。
The device is a name indicating an area on a memory provided for storing device information as described above. In other words, the device is used to monitor input / output devices connected to the
デバイスには、入力機器からの入力信号に基づいてオン/オフされるビットデバイス(入力ビットデバイス)や、出力機器の動作を制御するためにオン/オフされるビットデバイス(出力ビットデバイス)、オン/オフではなく数値データが格納されるワードデバイスなどがある。 The device includes a bit device (input bit device) that is turned on / off based on an input signal from the input device, a bit device that is turned on / off to control the operation of the output device (output bit device), and on. There are word devices that store numerical data instead of / off.
プログラマブル表示器3’の通常動作について説明すると、(1)プログラマブル表示器3’は、画面上でモニタするデバイスについて、デバイスの値を読み出すためのデバイス読み出しコマンドをPLC1に対して発行する。次に、(2)PLC1は、受信したコマンドに指示されたデバイスの値を取得し、プログラマブル表示器3’へのレスポンスを作成して、これを送信する。その後、(3)プログラマブル表示器3’は、受け取ったレスポンスからデバイスの値を読み出し、画面上の表示を更新する。このようにして、プログラマブル表示器3’はPLC1の動作状態を監視することができる。
The normal operation of the
このようにプログラマブルロジックコントローラ用の外部機器は、PLC1に接続可能であれば十分である。よって、内蔵タイプのオペレーションモジュール3であってもよいし、外付けタイプのプログラマブル表示器3’であってもよい。そのため、以下では、プログラマブル表示器3’について説明することにする。また、外部機器は、必ずしも、操作部11や表示部10を必須とせず、オペレーションに関係しない他の外部機器(例:通信インタフェースモジュール、外部記憶装置モジュール、拡張ユニットなど)であってもよい。すなわち、外部機器は、後述するように、PLC1の本体2と通信する通信部61と、制御部60と、電波を受信せずに計時可能な計時ユニット(RTC62、電源63など)を最低限で備えていれば十分である。
Thus, it is sufficient that the external device for the programmable logic controller can be connected to the
図3は、PLC1の本体2のブロック図である。本体2の内部に設けられたコントローラは、CPUやASICなどの論理回路、メモリなどの記憶装置を備えている。
FIG. 3 is a block diagram of the
リアルタイムクロック(RTC)37は、現在時刻を計時する第1の計時部の一例である。RTC電源40は、RTC37に電力を供給する電源である。RTC37は、RTC電源40の出力電圧を監視する電圧監視部38と、現在時刻を示す時刻データと、RTC37が正常に動作しているかどうかを示す制御情報を格納した格納部39を備えている。電圧監視部38は、たとえばPLC1の電源OFF時に、RTC電源40の出力電圧と閾値とを比較し、出力電圧が閾値未満になっているかどうかを示す制御情報を格納部39に格納する。なお、RTC37は、一次電池、二次電池またはキャパシタであるため、本体2に外部電源(商用交流電源など)から電力が供給されているか否かとは無関係に、電力をRTC37に供給する。
The real-time clock (RTC) 37 is an example of a first timer unit that measures the current time. The
制御部20は、記憶部用ドライバ36を介して記憶部30にアクセスする。つまり、制御部20からのライトコマンドやリードコマンドにしたがって、記憶部用ドライバ36は、記憶部30へ情報を書き出す書き出し部、および、記憶部30から情報を読み出す読み出し部として機能する。記憶部30は、プログラム作成支援装置50から通信部35を介して受信したラダープログラム31やデバイス情報34などの設定情報を保持する保持部として機能する。デバイス情報34は、記憶部30に確保された記憶領域であるデバイス33に記憶される。ログデータ32は、制御部20がラダープログラム31を実行した結果を示すデータである。ログデータ32は、エラー等のイベントが発生した時刻データが含まれてもよい。よって、時刻データが誤っていると、ログデータ32の有用性が低下して好ましくない。
The
制御部20は、本体2に接続されている被制御機器を、記憶部30に保持されている設定情報にしたがって制御する被制御機器制御部として機能する。制御部20は、被制御機器を制御する機能に加えて、本実施形態に特有の機能を実現する各種の制御部を備えている。時刻データ判定部21は、リアルタイムクロック(RTC)37が計時する現在時刻が正しいかどうかを判定する。RTC電源40は、一次電池、二次電池またはキャパシタであるため、たとえばPLC1の電源OFF時に電池の残量が少なくなる、すなわち、長い時間にわたって外部から電力が供給されなくなったりすると、RTC37に対して十分な電圧を供給できなくなってしまう。そこで、電圧監視部38がRTC電源40の出力電圧と閾値とを比較し、電池電圧の異常を検知できるようにしている。そして、出力電圧が閾値未満になっている場合には、RTC37が計時する時刻データの信頼性が低下していると判定する。
The
なお、実際の現在時刻が誤っているかどうかとは無関係に、出力電圧が低下したか否かに応じて、時刻補正を実行してもよい。そのため、時刻データ判定部21は、オプションの制御部であり、省略されてもよい。逆に、出力電圧が低下したか否かとは無関係に、実際の現在時刻が誤っているかどうかに応じて、時刻補正を実行してもよい。この場合は、後述するフラグは、現在時刻が誤っているかどうかに応じて変更されるフラグとなる。
Note that time correction may be executed depending on whether or not the output voltage has dropped regardless of whether or not the actual current time is incorrect. Therefore, the time
フラグ制御部22は、RTC37の格納部39から制御情報を読み出し、RTC電源40の出力電圧が閾値未満に低下していることを制御情報が示しているかどうかを判定する。フラグ制御部22は、RTC電源40の出力電圧が閾値未満に低下していることを制御情報が示している場合、レジスタ41の電圧エラーフラグをオンにする(すなわち、電圧エラーフラグに1を設定する)。ここでは、電圧エラーフラグは、RTC電源40の出力電圧が閾値未満か閾値以上かに応じて変化するビットとして実装されることを想定している。このように、電圧エラーフラグが1になっている場合、電圧エラーフラグは、RTC37が計時する現在時刻の信頼性が低下している可能性があることを示している。RTC37が計時する現在時刻の信頼性が低下している可能性があることは、RTC電源40の出力電圧が閾値未満に低下していること、RTC37が計時する現在時刻を補正する必要があること、RTC37が計時する現在時刻が誤っていること等と実質的に同義であろう。
The
一方で、電圧エラーフラグがオフ(すなわち、0)になっている場合、電圧エラーフラグは、RTC37が計時する現在時刻の信頼性が低下していないことを示している。RTC37が計時する現在時刻の信頼性が低下していないことは、RTC電源40の出力電圧が閾値以上であること、RTC37が計時する現在時刻を補正する必要がないこと、RTC37が計時する現在時刻が正しいことと実質的に同義であろう。なお、電圧エラーフラグは、デバイス33に1ビットのデバイス情報34として記憶されていてもよい。つまり、上述したビットデバイスに記憶されていてもよい。勿論、ワードデバイスに記憶されていてもよい。デバイス情報34は、PLC1の外部に公開することを目的とした情報であるため、プログラマブル表示器3’やオペレーションモジュール3などの外部機器やプログラム作成支援装置50は容易に電圧エラーフラグをデバイス情報34として取得できる。以下では、デバイス情報34を電圧エラーフラグとして説明する。
On the other hand, when the voltage error flag is off (that is, 0), the voltage error flag indicates that the reliability of the current time measured by the
時刻補正部23は、電圧エラーフラグがプログラマブル表示器3’によって読み出された後にプログラマブル表示器3’からRTC37の現在時刻を補正するよう補正命令を受信すると、プログラマブル表示器3’から受信した時刻データでRTC37の現在時刻を補正する。
When the
通信部42は、プログラマブル表示器3’やオペレーションモジュール3などの外部機器と通信するためのユニットである。解釈部43は、通信部42により受信されたデータやコマンドなどを解釈し、解釈結果を制御部20に渡す。
The communication unit 42 is a unit for communicating with external devices such as the
図4は、プログラマブル表示器3’のブロック図である。制御部60は、表示部10への表示制御と、操作部11から入力される指示の受け付け制御と、通信部61によるPLC1の本体2との通信制御とを担当している。
FIG. 4 is a block diagram of the programmable display 3 '. The
プログラマブル表示器3’に搭載されたもう1つのリアルタイムクロック(RTC)62は、時刻を示す電波を受信せずに現在時刻を計時する第2の計時部の一例である。つまり、RTC62は、GPS衛星やAM・FM・短波などのラジオの電波により搬送される標準時刻信号を受信して現在時刻を取得する受信機ではない。つまり、RTC62は、PLC1に設けられたRTC37と同様に簡素な時計である。電源63は、RTC62に電力を供給する一次電池、二次電池またはキャパシタなどの電源である。
Another real-time clock (RTC) 62 mounted on the
制御部60は、判定部64、補正命令作成部65および有効・無効制御部24を備えている。判定部64は、本体2の記憶部30またはレジスタ41に保持されている電圧エラーフラグを読み出し、PLC1のRTC37が計時する現在時刻の信頼性が低下している可能性があることを電圧エラーフラグが示しているかどうかを判定する。補正命令作成部65は、本体2から読み出した電圧エラーフラグがPLC1のRTC37が計時する現在時刻の信頼性が低下している可能性があることを示していることを判定部64から通知されると、プログラマブル表示器3’のRTC62が計時した現在時刻を示す時刻データを取得して補正命令(例:時刻補正コマンド)を作成して本体2に送信する。
The
有効・無効制御部24は、PLC1の時刻補正部23が備える現在時刻の補正機能を有効にするか無効にするかを切り替える切り替え部として機能する。有効・無効制御部24は、プログラマブル表示器3’に接続された画面表示データ作成支援装置51(上述した画面表示データ作成ソフトウェアがインストールされたPC、図示せず)からの切り替え指示に基づいて、補正機能の有効/無効を切り替える。有効・無効制御部24は、本体2またはプログラマブル表示器3’に設けられたディップスイッチのオン/オフを監視することで、補正機能を有効にするか無効にするかを切り替えてもよい(オン⇒有効、オフ⇒無効)。オペレータは、RTC37の現在時刻をプログラマブル表示器3’の現在時刻で補正したくないときには、時刻補正機能をオフに設定してもよい。なお、ここでいう画面表示データ作成支援装置51は、PLC1に接続されるプログラム作成支援装置50と同じ装置であっても異なる装置であってもよい。
The valid /
<フラグ制御処理>
図5は、本体2のフラグ制御部22が実行するフラグ制御処理を示すフローチャートである。
<Flag control process>
FIG. 5 is a flowchart showing a flag control process executed by the
S501で、フラグ制御部22は、RTC37の格納部39から、電圧監視部38が出力した電圧監視情報を含む制御情報を読み出す。
In S <b> 501, the
S502で、フラグ制御部22は、RTC電源40の出力電圧が低下したかどうかを判定する。たとえば、フラグ制御部22は、RTC電源40の出力電圧が閾値未満に低下したことを制御情報から抽出した電圧監視情報が示しているかどうかを判定する。RTC電源40の出力電圧が閾値未満に低下していなければ、時刻を補正する必要はないため、本処理を終了する。あるいは、RTC電源40の出力電圧が閾値未満に低下していなければ、S505に進んで、フラグ制御部22は、電圧エラーフラグをオフにしたままである。一方で、RTC電源40の出力電圧が閾値未満に低下していれば、S503に進む。
In S502, the
S503で、フラグ制御部22は、RTC37が計時する現在時刻の信頼性が低下している可能性があることを示すように電圧エラーフラグをオンに設定する。つまり、フラグ制御部22は、デバイス情報34のうち電圧エラーフラグに相当するデバイス情報を1に書き換える。
In step S503, the
S504で、フラグ制御部22は、RTC37の現在時刻が補正されたかどうかを判定する。時刻補正部23がRTC37の現在時刻を補正したことを時刻補正部23から通知されると、フラグ制御部22は、RTC37の現在時刻が補正されたと判定し、S505に進む。RTC37の現在時刻が補正されていなければ、フラグ制御部22は、RTC37の現在時刻の補正が完了するのを待つ。
In S504, the
S505で、フラグ制御部22は、RTC37が計時する現在時刻の信頼性が低下していないことを示すように電圧エラーフラグをオフに設定する。つまり、フラグ制御部22は、デバイス情報34のうち電圧エラーフラグに相当するデバイス情報を0に書き換える。
In S505, the
<時刻補正コマンドの作成処理>
図6は、プログラマブル表示器3’の制御部60が実行する時刻補正コマンドの作成処理を示したフローチャートである。
<Time correction command creation process>
FIG. 6 is a flowchart showing a time correction command creation process executed by the
S601で、判定部64は、電圧エラーフラグの読み出し条件が満たされているかどうかを判定する。電圧エラーフラグの読み出し条件の判定処理の詳細は図7を用いて説明する。なお、前提として、PLC1の電源は投入されているものとする。
In step S601, the
S701で、判定部64は、プログラマブル表示器3’が外部電源から電力を供給されて起動した直後かどうかを判定する。プログラマブル表示器3’が外部電源から電力を供給されて起動した直後であれば、時刻補正を実行するために、S702へ進む。
In S <b> 701, the
プログラマブル表示器3’が本体2または外部電源から電力を供給されて起動した直後でなければ、S701に戻る。
If the
S702で、判定部64は、プログラマブル表示器3’が本体2に対して接続されているかどうかを判定する。プログラマブル表示器3’が本体2に接続されていれば、このタイミングで時刻を補正する。
In S <b> 702, the
具体的には、たとえば、プログラマブル表示器3’とPLC1との間で通信コマンドが正常にやり取りできるようになったか否かが判定される。たとえば、プログラマブル表示器3’がPLC1に対して通信確立コマンドに対して、PLC1から適切な応答コマンド(ACK等)が帰ってきたか否かが判定される。
Specifically, for example, it is determined whether or not a communication command can be normally exchanged between the
ようするに、PLC1内に記憶されたデバイス情報を読み出せる状態になったか否かが判定される。プログラマブル表示器3’が本体2に対して接続されていることで、PLC1内に記憶されたデバイス情報を読み出せる状態になっていれば、S602に進む。そうでなければ、このような状態になるまで待機することになる。
Thus, it is determined whether or not the device information stored in the
図6の説明に戻る。S602で、判定部64は、電圧エラーフラグに相当するデバイス情報34を読み出す。デバイス情報34は外部に公開されているため、プログラマブル表示器3’はこれを簡単に読み出すことができる。プログラマブルロジックコントローラにおいては、内部のRTCの制御情報を直接的に外部には公開していない。そこで、PLC1の外部からRTC37の動作状態を取得できるようにするために、外部に公開された記憶領域であるデバイス33に、電圧エラーフラグに相当するデバイス情報34を格納している。
Returning to the description of FIG. In S602, the
S603で、判定部64は、電圧エラーフラグがオンになっているかどうかを判定する。つまり、判定部64は、本体2に保持されている電圧エラーフラグがRTC37の計時する現在時刻の信頼性が低下している可能性があることを示しているかどうかを判定する。電圧エラーフラグがオンになっていなければ、本処理を終了する。一方で、電圧エラーフラグがオンになっていれば、S604に進む。つまり、判定部64は、本体2に保持されている電圧エラーフラグがRTC37の計時する現在時刻の信頼性が低下している可能性があることを補正命令作成部65に通知する。
In S603, the
S604で、補正命令作成部65は、RTC62から現在時刻を示す時刻データを読み出す。 In step S <b> 604, the correction command generation unit 65 reads time data indicating the current time from the RTC 62.
S605で、補正命令作成部65は、RTC62から取得した時刻データを含む時刻補正コマンドを作成し、通信部61を介して本体2に送信する。
In step S <b> 605, the correction command generation unit 65 generates a time correction command including the time data acquired from the RTC 62 and transmits the time correction command to the
<時刻補正処理>
図8は、PLC1の時刻補正部23が実行する時刻補正処理を示すフローチャートである。
<Time correction processing>
FIG. 8 is a flowchart showing time correction processing executed by the
S801で、時刻補正部23は、プログラマブル表示器3’から時刻補正コマンドを受信したかどうかを判定する。解釈部43は、通信部42が受信したコマンドを解釈し、時刻補正コマンドを見つけると、時刻補正部23に時刻データとともに時刻補正命令を出力する。解釈部43から時刻補正命令を受信すると、時刻補正部23は、プログラマブル表示器3’から時刻補正コマンドを受信したと判定し、S802に進む。
In S801, the
S802で、時刻補正部23は、受信した時刻データをRTC37に設定することで、RTC37の計時する現在時刻を補正する。
In step S <b> 802, the
S803で、時刻補正部23は電圧エラーフラグをオフにする。つまり、時刻補正部23は時刻の補正が終了したことをフラグ制御部22に通知する。フラグ制御部22は、この通知にしたがって電圧エラーフラグをオフにする。
In step S803, the
<時刻補正機能の有効と無効との切り替え>
プログラマブル表示器3’のRTC62の現在時刻よりも、PLC1が取得可能な他の現在時刻が信頼できるときがある。たとえば、PLC1がネットワーク上で動作する時刻サーバ(NTPサーバなど)から現在時刻の時刻データを取得できることがある。また、操作部11を通じて手動で現在時刻をオペレータが設定したいと希望することもあるだろう。このような場合には、上述した時刻補正部23によるプログラマブル表示器3’を利用した時刻補正機能を無効化できると便利である。
<Switching the time correction function between enabled and disabled>
There are times when other current times that can be acquired by the
図9は、プログラマブル表示器3’に接続される画面表示データ作成支援装置51の表示装置に表示されるユーザインタフェースの一例である。ユーザインタフェース90は、PLC1のRTC37が計時する現在時刻を、画面表示データ作成支援装置51が有するカレンダタイマに合わせるかどうかを決定するチェックボックス91が含まれている。また、PLC1のRTC電源40の出力電圧が低下したときにRTC37の現在時刻を修正するか否か、つまり、時刻補正部23の時刻補正機能を有効にするか無効にするかを選択するチェックボックス92が設けられている。画面表示データ作成支援装置51は、チェックボックス92にチェックがつけられたことを検知すると、有効・無効制御部24に時刻補正部23の時刻補正機能を有効にするよう命令する。一方で、画面表示データ作成支援装置51は、チェックボックス92からチェックが外されたことを検知すると、有効・無効制御部24に時刻補正部23の時刻補正機能を無効にするよう命令する。このときに、チェックボックス91にチェックがつけられていること検知すると、画面表示データ作成支援装置51は、カレンダタイマから時刻データを取得し、これを含む時刻補正命令を作成して制御部20へ送信する。制御部20は、時刻補正命令にしたがってRTC37の現在時刻をカレンダタイマに合わせる。カレンダタイマは一例にすぎず、制御部20は、直接的にNTPサーバにアクセスして時刻同期を実行してもよい。
FIG. 9 is an example of a user interface displayed on the display device of the screen display data
なお、ここではチェックボックスをつける/外すという動作に連動して時刻補正命令が制御部20に送られるようにしたが、別の方法も可能である。具体的には、画面表示データ作成支援装置51の表示画面で、ユーザが有効・無効を選択し、これが設定情報として保存される。そして、この設定情報がプログラマブル表示器3’に転送されたとき、この設定情報はプログラマブル表示器3’内のメモリに格納される。そして、有効・無効制御部24によって時刻補正機能の有効・無効が切り替わる。
Here, the time correction command is sent to the
以上説明したように、本発明によれば、PLC1の本体2に設けられたRTC37に電力を供給するRTC電源40の出力電圧が低下してくると、本体2に接続されたプログラマブル表示器3’のRTC62から供給された時刻データでRTC37の現在時刻が補正される。プログラマブル表示器3’のRTC62は、時刻を示す電波を受信せずに現在時刻を計時できるため、電波の届かない工場等の現場でもPLC1の現在時刻を補正できる。また、ネットワークを介して端末装置をGPS受信機に接続せずに、プログラマブル表示器3’のRTC62から供給された時刻データでRTC37の現在時刻を補正できる。よって、従来よりも簡易かつ確実な方法でPLC1の時刻情報を補正できるようになる。
As described above, according to the present invention, when the output voltage of the
PLC1とプログラマブル表示器3’の時刻補正システムのシステム動作について纏めると、以下のようになる。まず、(1)PLC1とプログラマブル表示器3’の電源を投入する。(2)PLC1は、PLC1内部のRTCから時刻データおよび制御情報を読み出し、時刻データの信頼性を確認できなかった場合には、デバイスの「RTC電圧低下エラー」フラグをONする。(3)PLC1はラダープログラムの実行を開始する。(4)プログラマブル表示器3’は、内部の不揮発性メモリに保持していた設定データに応じてPLC1との通信を開始する。(5)プログラマブル表示器3’は、PLCに対して「RTC電圧低下エラー」フラグを読み出す通信コマンドを発行する。(6)PLC1は、受信したコマンドに従って、「RTC電圧低下エラー」フラグの値を取得し、レスポンスを返す。(7)プログラマブル表示器3’は、受け取ったレスポンスを確認し、「RTC電圧低下エラー」フラグがONしていたら、PLC1の時刻データを補正するために、プログラマブル表示器3’内部のRTCから時刻データを取得する。(8)プログラマブル表示器3’は、(7)で取得した時刻データをもとに、PLC1への時刻設定コマンドを発行する。(9)PLC1は受け取ったコマンドから時刻データを取得し、PLC1内部のRTCに対して時刻を設定する。同時に、デバイスの「RTC電圧低下エラー」フラグをOFFする。これらのうち、(3)と(4)〜(9)は非同期に実行される。
The system operation of the time correction system of the
このように動作する時刻補正システムによれば、従来よりも簡易かつ確実な方法でPLC1の時刻情報を補正できるようになる。
According to the time correction system that operates in this way, the time information of the
また、本発明によれば、PLC1の外部に公開されたデバイス33に電圧エラーフラグをデバイス情報34として記憶させるため、PLC1の外部から容易に電圧エラーフラグを読み出せるようになる。
In addition, according to the present invention, the voltage error flag is stored as the
また、本発明によれば、PLC1が起動したときやプログラマブル表示器3’が起動したときなどに、電圧エラーフラグを解析して時刻補正を実行するため、誤った現在時刻がPLC1の制御に及ぼす影響を低減できる。
In addition, according to the present invention, when the
また、本発明によれば、プログラマブル表示器3’やオペレーションモジュール3、シリアル通信モジュールなど、PLC1に頻繁に接続される外部機器と連携して現在時刻を補正するため、オペレータが特に意識することなく、現在時刻を自動で補正できるようになる。
In addition, according to the present invention, the current time is corrected in cooperation with external devices that are frequently connected to the
また、本発明によれば、外部機器を利用した時刻補正機能を無効に切り替えることができる。そのため、オペレータが手動で時刻を補正したり、より高精度な時刻サーバから時刻を入手して補正したりしたい場合には、時刻補正機能を無効化は便利であろう。 According to the present invention, the time correction function using an external device can be switched to invalid. Therefore, if the operator manually corrects the time or obtains and corrects the time from a more accurate time server, it is convenient to disable the time correction function.
また、外部機器に備えられた計時部もRTCとすることで、本発明の適用範囲が広がる。一般にRTCは多くのモジュールに搭載されている。そのため、既存の外部機器のファームウエアをアップデートすることで、本発明を実現することも可能となる。PLC1については、ファームウエアのアップデートまたはラダープログラムによって本発明を実装できる。
Moreover, the scope of application of the present invention can be expanded by using an RTC for the timekeeping unit provided in the external device. Generally, the RTC is mounted on many modules. Therefore, the present invention can be realized by updating the firmware of an existing external device. For the
Claims (9)
前記プログラマブルロジックコントローラは、
現在時刻を計時する第1の計時部と、
前記本体に電力が供給されているか否かとは無関係に、前記第1の計時部に電力を供給する電源と、
前記電源の出力電圧を監視する電圧監視部と、
前記電源の出力電圧が閾値未満に低下すると、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示すようにフラグを制御して記憶部に記憶させるフラグ制御部と、
前記第1の計時部の現在時刻を補正する時刻補正部と
を備え、
前記外部機器は、
現在時刻を計時する第2の計時部と、
前記本体の記憶部に保持されている前記フラグを読み出し、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを当該フラグが示しているかどうかを判定する判定部と、
前記本体の記憶部から読み出した前記フラグが前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示していると前記判定部が判定すると、前記第2の計時部が計時した現在時刻を示す時刻データを取得して、前記第1の計時部の現在時刻を補正するための補正命令を作成して、該時刻データとともに前記本体に送信する補正命令作成部と、
を備え、
前記時刻補正部は、前記本体が前記補正命令を受信したときに、前記補正命令とともに受信した時刻データで前記第1の計時部の現在時刻を補正することを特徴とするプログラマブルロジックコントローラの時刻補正システム。 A programmable logic controller time correction system comprising a programmable logic controller body and an external device connected to the body,
The programmable logic controller is
A first timekeeping section that measures the current time;
Regardless of whether power is supplied to the main body, a power supply that supplies power to the first timekeeping unit;
A voltage monitoring unit for monitoring the output voltage of the power supply;
When the output voltage of the power source falls below a threshold value, the flag is controlled and stored in the storage unit so as to indicate that the reliability of the current time measured by the first timer unit may be reduced. A flag controller;
A time correction unit for correcting the current time of the first time measuring unit,
The external device is
A second timekeeping section for measuring the current time;
The flag held in the storage unit of the main body is read, and it is determined whether or not the flag indicates that the reliability of the current time measured by the first timing unit may be lowered A determination unit;
When the determination unit determines that the flag read from the storage unit of the main body indicates that there is a possibility that the reliability of the current time measured by the first time measuring unit is lowered, the second A correction command for acquiring the time data indicating the current time measured by the timer unit, creating a correction command for correcting the current time of the first time measuring unit, and transmitting the correction command to the main body together with the time data And
With
When the main body receives the correction command, the time correction unit corrects the current time of the first timekeeping unit with the time data received together with the correction command. system.
前記外部機器が電力を供給されて前記外部機器が起動したとき、
前記外部機器が前記本体に対して有線接続または無線接続されたとき、
前記外部機器の表示部に表示する前記フラグとは異なるデバイス情報を定期的または非定期的に読み出すとき、
前記外部機器が前記本体に結合された状態で前記本体に電力が供給されて前記本体および前記外部機器が起動したとき、
の少なくとも1つのタイミングで前記フラグを前記本体から読み出すことを特徴とする請求項1または2に記載のプログラマブルロジックコントローラの時刻補正システム。 The determination unit of the external device is
When the external device is activated when power is supplied to the external device,
When the external device is wired or wirelessly connected to the main body,
When reading the device information different from the flag displayed on the display unit of the external device periodically or irregularly,
When the main body and the external device are activated by supplying power to the main body in a state where the external device is coupled to the main body,
The time correction system for a programmable logic controller according to claim 1, wherein the flag is read from the main body at least at one timing.
現在時刻を計時する第1の計時部と、
前記本体に電力が供給されているか否かとは無関係に、前記第1の計時部に電力を供給する電源と、
前記電源の出力電圧を監視する電圧監視部と、
前記電源の出力電圧が閾値未満に低下すると、前記第1の計時部が計時する現在時刻の信頼性が低下している可能性があることを示すようにフラグを制御して記憶部に記憶させるフラグ制御部と、
前記フラグ制御部の制御に起因して前記外部機器から受信した時刻データで前記第1の計時部の現在時刻を補正する時刻補正部と
を備えることを特徴とするプログラマブルロジックコントローラ。 A programmable logic controller that can be connected to an external device.
A first timekeeping section that measures the current time;
Regardless of whether power is supplied to the main body, a power supply that supplies power to the first timekeeping unit;
A voltage monitoring unit for monitoring the output voltage of the power supply;
When the output voltage of the power source falls below a threshold value, the flag is controlled and stored in the storage unit so as to indicate that the reliability of the current time measured by the first timer unit may be reduced. A flag controller;
A programmable logic controller comprising: a time correction unit that corrects the current time of the first timekeeping unit with time data received from the external device due to control of the flag control unit.
現在時刻を計時する第2の計時部と、
前記プログラマブルロジックコントローラの本体の記憶部に保持されているフラグを読み出し、当該フラグが前記第1の計時部の計時する現在時刻の信頼性が低下している可能性があることを示しているかどうかを判定する判定部と、
前記本体の記憶部から読み出した前記フラグが前記第1の計時部の計時する現在時刻の信頼性が低下している可能性があることを示していると前記判定部が判定すると、前記第2の計時部が計時する現在時刻を示す時刻データを取得して補正命令を作成して前記本体に送信する補正命令作成部と
を備えることを特徴とする外部機器。 An external device for a programmable logic controller having a first timekeeping unit that measures the current time,
A second timekeeping section for measuring the current time;
Whether the flag held in the storage unit of the main body of the programmable logic controller is read, and whether the flag indicates that the reliability of the current time measured by the first timing unit may be reduced A determination unit for determining
If the determination unit determines that the flag read from the storage unit of the main body indicates that there is a possibility that the reliability of the current time measured by the first time measurement unit is reduced, the second An external device comprising: a correction command generation unit that acquires time data indicating a current time measured by the time measurement unit, generates a correction command, and transmits the correction command to the main body.
本体と、
前記本体に対して有線接続または無線接続された外部機器と
を備え、
前記本体は、
現在時刻を計時する第1の計時部と、
前記本体に電力が供給されているか否かとは無関係に、前記第1の計時部に電力を供給する電源と、
前記電源の出力電圧を監視する電圧監視部と、
前記電源の出力電圧が閾値未満か閾値以上かに応じて変化するビットを記憶した記憶部と、
前記ビットが前記外部機器から読み出された後に前記外部機器から前記第1の計時部の現在時刻を補正するよう補正命令を受信すると、前記外部機器から前記補正命令とともに受信した時刻データで前記第1の計時部の現在時刻を補正する時刻補正部と
を備え、
前記外部機器は、
現在時刻を計時する第2の計時部と、
前記本体の記憶部に保持されている前記ビットを読み出し、前記電源の出力電圧が閾値未満に低下したことを当該ビットが示している場合、前記第2の計時部が計時した現在時刻を示す時刻データを取得して前記補正命令を作成して前記本体に送信する補正命令作成部と
を備えることを特徴とするプログラマブルロジックコントローラの時刻補正システム。 A time correction system for a programmable logic controller,
The body,
An external device wired or wirelessly connected to the main body,
The body is
A first timekeeping section that measures the current time;
Regardless of whether power is supplied to the main body, a power supply that supplies power to the first timekeeping unit;
A voltage monitoring unit for monitoring the output voltage of the power supply;
A storage unit storing bits that change depending on whether the output voltage of the power source is less than a threshold value or more than a threshold value;
When a correction command is received from the external device to correct the current time of the first timekeeping unit after the bit is read from the external device, the time data received together with the correction command from the external device A time correction unit that corrects the current time of the timekeeping unit of 1,
The external device is
A second timekeeping section for measuring the current time;
When the bit stored in the storage unit of the main body is read and the bit indicates that the output voltage of the power source has dropped below a threshold, the time indicating the current time measured by the second clock unit A time correction system for a programmable logic controller, comprising: a correction command generation unit that acquires data, generates the correction command, and transmits the correction command to the main body.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012194554A JP2014052189A (en) | 2012-09-04 | 2012-09-04 | Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012194554A JP2014052189A (en) | 2012-09-04 | 2012-09-04 | Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014052189A true JP2014052189A (en) | 2014-03-20 |
Family
ID=50610799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012194554A Pending JP2014052189A (en) | 2012-09-04 | 2012-09-04 | Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014052189A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108226756A (en) * | 2018-01-29 | 2018-06-29 | 深圳市兴威帆电子技术有限公司 | The test system and its test method of a kind of clock chip |
KR101977959B1 (en) * | 2017-12-04 | 2019-05-13 | 현대오트론 주식회사 | An Apparatus and a Method For Providing Real Time Clock For Vehicles |
JP6664547B1 (en) * | 2018-10-29 | 2020-03-13 | 三菱電機株式会社 | Programmable logic controller system and data analysis method |
JP2020159853A (en) * | 2019-03-26 | 2020-10-01 | パナソニックIpマネジメント株式会社 | Time switch |
-
2012
- 2012-09-04 JP JP2012194554A patent/JP2014052189A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101977959B1 (en) * | 2017-12-04 | 2019-05-13 | 현대오트론 주식회사 | An Apparatus and a Method For Providing Real Time Clock For Vehicles |
CN108226756A (en) * | 2018-01-29 | 2018-06-29 | 深圳市兴威帆电子技术有限公司 | The test system and its test method of a kind of clock chip |
CN108226756B (en) * | 2018-01-29 | 2020-06-02 | 深圳市兴威帆电子技术有限公司 | Test system and test method of clock chip |
JP6664547B1 (en) * | 2018-10-29 | 2020-03-13 | 三菱電機株式会社 | Programmable logic controller system and data analysis method |
CN112997123A (en) * | 2018-10-29 | 2021-06-18 | 三菱电机株式会社 | Programmable logic controller, programmable logic controller system, and data analysis method |
CN112997123B (en) * | 2018-10-29 | 2021-12-03 | 三菱电机株式会社 | Programmable logic controller system and data analysis method |
JP2020159853A (en) * | 2019-03-26 | 2020-10-01 | パナソニックIpマネジメント株式会社 | Time switch |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6626315B2 (en) | Monitoring device for programmable logic controller and programmable logic controller system | |
JP5760661B2 (en) | Sensor device and sensor system | |
CN104423367A (en) | Method for providing data for a mobile device from a field device, computer program and arrangement for executing same | |
JP2014052189A (en) | Programmable logic controller, time correction system for the same, and external apparatus for the programmable logic controller | |
KR20190011617A (en) | sensor mounted wafer, and apparatus for storaging thereof | |
CN105393551B (en) | Wireless device and interface module | |
CN102135426A (en) | Laser swinger based on bidirectional remote control mode and remote control method thereof | |
JP5260613B2 (en) | Air conditioner | |
US10282013B2 (en) | Programmable display device | |
JP2015162893A (en) | wireless communication device | |
KR20160034732A (en) | Internet of things system and method for changing battery of sensor node in the same | |
US11987384B2 (en) | Timing apparatus | |
JP5663678B2 (en) | Frame generation device, reception device, data transmission / reception system, frame generation method and reception method | |
KR101452692B1 (en) | Iot-based termination apparatus of assembly type | |
JP5452754B2 (en) | Air conditioner | |
JP6199202B2 (en) | Wireless communication device | |
JP5186421B2 (en) | Method for changing operation mode of wireless measurement system and wireless communication device | |
KR100961614B1 (en) | Wireless strain measurement device having power saving functions and system using thereof | |
JP5427286B2 (en) | Air conditioner | |
JP2010108417A (en) | Radio meter reading system and handy terminal for radio meter reading | |
JP5427311B2 (en) | Air conditioner | |
JP2021005274A (en) | Wireless communication equipment for measuring instrument, measuring instrument, measuring system, and program for measuring system | |
JP2013210186A (en) | Air conditioner | |
JP2003272075A (en) | Radio transmission system | |
JP6468730B2 (en) | Wireless communication system |