JP2011258003A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP2011258003A
JP2011258003A JP2010132148A JP2010132148A JP2011258003A JP 2011258003 A JP2011258003 A JP 2011258003A JP 2010132148 A JP2010132148 A JP 2010132148A JP 2010132148 A JP2010132148 A JP 2010132148A JP 2011258003 A JP2011258003 A JP 2011258003A
Authority
JP
Japan
Prior art keywords
mpu
module
external
output module
reset circuit
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
JP2010132148A
Other languages
Japanese (ja)
Inventor
Katsutoshi Ito
勝敏 伊藤
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co 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 Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2010132148A priority Critical patent/JP2011258003A/en
Publication of JP2011258003A publication Critical patent/JP2011258003A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable controller that allows a user to arbitrarily set a state of data output by an output module when an abnormality is detected in a CPU module.SOLUTION: The programmable controller includes an operation mode selection unit, an MPU reset circuit, and an output module reset circuit. At restart of the CPU module after detection of an abnormality, the operation mode selection unit selects whether to hold data output by an external output module or clear it. The MPU reset circuit resets an MPU based on the selected operation mode. The output module reset circuit clears the data output by the external output module. The programmable controller restarts the CPU module by resetting the MPU in a state that the data output by the external output module is held or cleared based on the selected operation mode when the abnormality is detected in the CPU module.

Description

本発明はプログラマブルコントローラに係り、特にCPUモジュールに重大な異常を検出した場合、出力データを保持若しくはOFFしたままCPUモジュール単体のみの再起動を自動的に行なう技術に関するものである。   The present invention relates to a programmable controller, and more particularly to a technique for automatically restarting only a CPU module while maintaining or turning off output data when a serious abnormality is detected in a CPU module.

プログラマブルコントローラ(以下、PLCという)は、工場などに設置されている多様な機械設備や、プラント設備などを制御するための汎用制御装置として広く普及しており、ユーザが作成するラダープログラムをサイクリックに実行する制御機器である。   Programmable controllers (hereinafter referred to as "PLCs") are widely used as general-purpose control devices for controlling various mechanical equipment and plant equipment installed in factories, etc., and cyclically create ladder programs created by users. It is a control device to be executed.

PLCは、電源を供給する電源モジュール、外部のセンサやスイッチなどから制御信号を入力する入力モジュール、外部のリレーやアクチュエータなどに制御信号を出力する出力モジュール、およびこれらモジュールの制御及びユーザプログラムを演算するCPUモジュールにて構成される。   The PLC is a power supply module that supplies power, an input module that inputs control signals from external sensors and switches, an output module that outputs control signals to external relays and actuators, etc., and controls and user programs for these modules CPU module.

このようなPLCにおいて、演算を継続することが困難、若しくは演算を継続することでユーザプログラムとかけ離れた異常な動作になる、重大な異常が発生した場合は、CPUモジュールにて異常を検出し、ユーザプログラム演算を停止してPLCの動作を停止する。この場合、外部のリレーやアクチュエータなどを異常発生状態で駆動させないフェールセーフの思想により、出力モジュールの出力データをOFF(削除)し、PLCで制御されているシステムを停止させるのが一般的である。そして、保守員が異常が発生したPLCに赴いてエラーの要因を排除し、再起動を実施してシステムの復旧を行なっていた。   In such a PLC, if it is difficult to continue the calculation, or if a serious abnormality occurs that causes abnormal operation far from the user program by continuing the calculation, the CPU module detects the abnormality, The user program calculation is stopped and the operation of the PLC is stopped. In this case, it is general that the output data of the output module is turned off (deleted) and the system controlled by the PLC is stopped by a fail-safe idea that does not drive external relays or actuators in an abnormal state. . The maintenance staff went to the PLC where the abnormality occurred to eliminate the cause of the error, and the system was restored by restarting.

また、CPUモジュールで検出される重大な異常には、CPUモジュール内に使用されているメモリ、IC等の外乱による一過性の誤動作であることも多くエラー要因を排除せずともPLCの再起動(電源の入り切り)で復旧するケースも多々ある。このため、特許文献1に示すように、PLC異常時に自動的に再起動して自動復旧するものもある。   In addition, serious abnormalities detected by the CPU module are often caused by transient malfunctions due to disturbances in the memory, IC, etc. used in the CPU module, and the PLC can be restarted without eliminating the error factor. There are many cases that can be recovered by turning the power on and off. For this reason, as shown in Patent Document 1, there is one that automatically restarts and automatically recovers when the PLC is abnormal.

特開2009−104246号公報JP 2009-104246 A

しかしながら、CPUモジュールが重大な異常を検出しPLC動作を停止させた場合、復旧のために保守員がPLCが設置されている現場に赴き、エラー要因を排除するやり方では、現場に早急に行けない環境下では制御システム全体の復旧に時間がかかってしまう問題がある。   However, if the CPU module detects a serious abnormality and stops the PLC operation, the maintenance staff will go to the site where the PLC is installed for recovery, and the method of eliminating the error factor will not be able to go to the site immediately. Under the environment, there is a problem that it takes time to restore the entire control system.

また、CPUモジュールが重大な異常を検出しPLC動作が停止した場合、前記フェールセーフの思想により出力モジュールの出力データがOFF(削除)されてしまう。一般に制御対象として電動機などの駆動系では停止しても問題無い場合が多いが、プラントなどでは制御機器の動作を停止させると問題である。さらに、制御対象の外部制御機器のテスト運転などでは、異常原因を把握したいなどの理由により、異常発生時に自動復旧を好まない場合もある。   Further, when the CPU module detects a serious abnormality and stops the PLC operation, the output data of the output module is turned off (deleted) due to the fail-safe idea. In general, there are many cases where there is no problem even if the drive system such as an electric motor is stopped as a control target, but it is a problem if the operation of the control device is stopped in a plant or the like. Furthermore, in a test operation of an external control device to be controlled, automatic recovery may not be preferred when an abnormality occurs due to reasons such as wanting to understand the cause of the abnormality.

本発明は、上記した従来の問題点を解決するため、異常検出時の出力モジュールの出力データの状態をユーザで任意に設定できるプログラマブルコントローラを提供するものである。   In order to solve the above-described conventional problems, the present invention provides a programmable controller in which a user can arbitrarily set the state of output data of an output module when an abnormality is detected.

本発明は、従来の問題点を解決するため、各種メモリと、シーケンスプログラムの演算を行なうMPUと、外部のプログラミングツールと通信を行なう周辺装置インタフェースと、外部の入力信号の取込みと演算結果の外部への出力を行なう外部バスインタフェースを備えたCPUモジュールと、外部機器からの入力信号を前記CPUモジュールに伝える外部入力モジュールと、演算結果の出力データを保持して外部機器に出力する外部出力モジュールとを備えて、MPUの演算結果に基いて外部機器の動作を制御するプログラマブルコントローラにおいて、
CPUモジュールでの異常検知時の再起動に際し、前記外部出力モジュールでの出力データを保持するかクリアするかを選択する動作モード選択部を設け、
選択された動作モードに基づいて前記MPUをリセットするMPU用リセット回路と、前記外部出力モジュールの出力データをクリアする出力モジュール用リセット回路を設け、
CPUモジュールでの異常検知時に、選択された動作モードに基づいて、前記外部出力モジュールの出力データを保持状態またはクリア状態で、前記MPUをリセットすることでCPUモジュールを再起動することを特徴とする。
In order to solve the conventional problems, the present invention provides various memories, an MPU that performs an operation of a sequence program, a peripheral device interface that communicates with an external programming tool, an external input signal acquisition, and an external operation result A CPU module having an external bus interface for outputting to the CPU, an external input module for transmitting an input signal from an external device to the CPU module, an external output module for holding output data of a calculation result and outputting it to the external device, In a programmable controller that controls the operation of an external device based on the calculation result of the MPU,
When restarting when an abnormality is detected in the CPU module, an operation mode selection unit is provided for selecting whether to hold or clear the output data in the external output module,
An MPU reset circuit for resetting the MPU based on the selected operation mode, and an output module reset circuit for clearing output data of the external output module;
When an abnormality is detected in the CPU module, the CPU module is restarted by resetting the MPU with the output data of the external output module being held or cleared based on the selected operation mode. .

また、上記に記載のプログラマブルコントローラにおいて、前記MPU用リセット回路と外部出力モジュール用リセット回路は前記CPUモジュール内に設置され、再起動時に際し外部出力モジュールでの出力データを保持する動作モードの場合、外部出力モジュールの出力データを保持し、MPU用リセット回路からのリセット信号をMPUに供給することを特徴とする。   Further, in the programmable controller described above, the MPU reset circuit and the external output module reset circuit are installed in the CPU module, and in the case of an operation mode for holding output data in the external output module at the time of restarting, The output data of the external output module is held, and a reset signal from the MPU reset circuit is supplied to the MPU.

また、上記に記載のプログラマブルコントローラにおいて、前記MPU用リセット回路と出力モジュール用リセット回路は前記CPUモジュール内に設置され、再起動に際し外部出力モジュールの出力データをクリアする動作モードの場合、外部出力モジュール用リセット回路のリセット信号を外部出力モジュールに供給し、MPU用リセット回路からのリセット信号をMPUに供給することを特徴とする。   In the programmable controller described above, the MPU reset circuit and the output module reset circuit are installed in the CPU module, and in the case of an operation mode in which the output data of the external output module is cleared upon restart, the external output module The reset signal of the reset circuit for a circuit is supplied to the external output module, and the reset signal from the reset circuit for the MPU is supplied to the MPU.

また、上記に記載のプログラマブルコントローラにおいて、前記MPUの自動再起動を繰り返す回数をユーザで設定でき、ユーザが設定した回数に達したとき、選択された動作モードに基づいて外部出力モジュールのデータを保持またはクリアした状態で、前記MPUの演算を停止することを特徴とする。   In the programmable controller described above, the number of times the MPU can be automatically restarted can be set by the user, and when the number set by the user is reached, the data of the external output module is held based on the selected operation mode. Alternatively, the MPU operation is stopped in a cleared state.

また、上記に記載のプログラマブルコントローラにおいて、前記MPUの自動再起動を行なう際、前記周辺装置インタフェース経由で接続されている前記プログラミングツール、HMI等に、再起動開始若しくは再起動中である情報を発信することを特徴とする。   In the programmable controller described above, when the MPU is automatically restarted, information indicating that the restart has been started or is being restarted is transmitted to the programming tool, HMI, etc. connected via the peripheral device interface. It is characterized by doing.

本発明によれば、重大な異常発生時に制御対象に合わせてユーザにより出力モジュールの出力データの状態を任意に設定してCPUモジュールを再起動させることができる。   According to the present invention, when a serious abnormality occurs, the state of the output data of the output module can be arbitrarily set by the user according to the control target, and the CPU module can be restarted.

本発明の一実施例であるPLCの構成図である。It is a block diagram of PLC which is one Example of this invention. 異常検出時の動作フロー図である。It is an operation | movement flowchart at the time of abnormality detection.

以下本発明の一実施例について図を参照しながら説明する。図1は本発明の一実施例に関わるPLCの構成図である。   An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a PLC according to an embodiment of the present invention.

1はPLCのCPUモジュールで、各種メモリと、シーケンスプログラムの演算や、通信インタフェース部11を介し接続されるプログラミングツール2であって、パソコンのアプリケーションであるプログラミングツール2との通信処理を行うMPU10と、制御対象となる外部機器からの入力信号を取込むための入力モジュール3や外部機器への出力信号として前記MPU10の演算結果を出力するための出力モジュール4とをインタフェースするための外部バスインタフェース15を内蔵している。各種メモリとは、前記MPU10の制御する内容・手順を記憶した不揮発性のシステムプログラムメモリ12と、ユーザが作成したシーケンスプログラムを格納するための書き換え可能なシーケンスプログラムメモリ13と、前記MPU10が該シーケンスプログラムの演算結果を格納する内部データメモリ14からなる。   Reference numeral 1 denotes a PLC CPU module, which is a programming tool 2 connected to various memories, operation of a sequence program, and a communication interface unit 11, and an MPU 10 that performs communication processing with a programming tool 2 that is an application of a personal computer. An external bus interface 15 for interfacing with an input module 3 for taking in an input signal from an external device to be controlled and an output module 4 for outputting an operation result of the MPU 10 as an output signal to the external device Built in. The various memories are a non-volatile system program memory 12 storing contents and procedures controlled by the MPU 10, a rewritable sequence program memory 13 for storing a sequence program created by a user, and the MPU 10 It consists of an internal data memory 14 for storing the calculation result of the program.

また、CPUモジュール1内に、前記MPU10のみをリセットして再起動できるようにハードウェアリセット回路5が内蔵され、この回路5はMPU10のみをリセットするMPU用リセット回路16と、前記外部出力モジュールをリセットする外部出力モジュール用リセット回路17の2種類を備える。   Further, a hardware reset circuit 5 is built in the CPU module 1 so that only the MPU 10 can be reset and restarted. This circuit 5 includes an MPU reset circuit 16 for resetting only the MPU 10 and the external output module. Two types of external output module reset circuit 17 to be reset are provided.

シーケンスプログラムは、ユーザによってプログラミングツール2で作成され、USB、シリアル、イーサネット(登録商標)等の通信インタフェース部11を介してシーケンスプログラムメモリ13に格納される。プログラミングツール2には、CPUモジュール1での異常検知後の再起動に際し、前記外部出力モジュール4での出力データを保持するかクリアするかを選択する動作モード選択部2aが設けられる。動作モードは、M1、M2、M3で示され、予めユーザによって例えば、制御対象の種類によって任意にいずれか1モードが選択され、選択された動作モードはシステムプログラムメモリ12等に格納される。   The sequence program is created by the user with the programming tool 2 and stored in the sequence program memory 13 via the communication interface unit 11 such as USB, serial, or Ethernet (registered trademark). The programming tool 2 is provided with an operation mode selection unit 2a for selecting whether to hold or clear the output data from the external output module 4 when the CPU module 1 is restarted after an abnormality is detected. The operation modes are indicated by M1, M2, and M3, and any one mode is arbitrarily selected in advance by the user, for example, depending on the type of the control target, and the selected operation mode is stored in the system program memory 12 or the like.

MPU用リセット回路16は、MPU10からの再起動の指示によりリセット信号を発生する。このリセット信号はゲート6を経由してMPU10のリセットに供される。外部出力モジュール用リセット回路17はリセット信号を発生するが、このリセット信号はシステムプログラムメモリ12内の動作モードに基づくMPU10によって制御され、ゲート8を通じてリセット18として外部出力モジュール4に供給されるか、供給が停止される。リセット信号18が供給されたときは外部出力モジュール4の出力データがリセット(クリア)され、リセット信号の供給が停止されたときは外部出力モジュール4の出力ータが通常のリフレッシュ処理により保持される。   The MPU reset circuit 16 generates a reset signal in response to a restart instruction from the MPU 10. This reset signal is supplied to the MPU 10 via the gate 6. The external output module reset circuit 17 generates a reset signal, which is controlled by the MPU 10 based on the operation mode in the system program memory 12 and is supplied to the external output module 4 as a reset 18 through the gate 8. Supply is stopped. When the reset signal 18 is supplied, the output data of the external output module 4 is reset (cleared), and when the reset signal supply is stopped, the output data of the external output module 4 is held by a normal refresh process. .

本実施例での動作モードM1〜M3は下記3種類とする。
動作モードM1:
外部出力モジュール4の異常発生前の出力データを保持(リフレッシュ)し、CPUモジュール1のみをリセットして再起動してPLCの自動復旧を行なう。
動作モードM2:
外部出力モジュール4の異常発生前の出力データをOFF(リセット)し、CPUモジュール1のみをリセットして再起動してPLCの自動復旧を行なう。
動作モードM3:
外部出力モジュール4の異常発生前の出力データをOFF(リセット)し、ユーザプログラム演算を停止して待機する。(従来動作)
動作モードM1の場合は、MPU10はユーザプログラム演算を停止し、外部出力モジュール用リセット回路17のリセット信号18を出力制御せず、外部出力モジュール4での出力リフレッシュ処理を続行させることで、異常発生前の出力データが保持され出力状態が維持される。次いで、この状態で、MPU10自身の指令によりMPU用リセット回路16にリセット信号を発生させ、CPUモジュール1のMPU10のみリセットし、再起動を開始する。MPU10再起動後、ユーザプログラム演算を開始するが、外部出力モジュール4内の出力データは、異常検出時に保持されたデータの状態で演算を開始する。
The operation modes M1 to M3 in this embodiment are the following three types.
Operation mode M1:
The output data before the occurrence of the abnormality of the external output module 4 is held (refreshed), only the CPU module 1 is reset and restarted, and the PLC is automatically restored.
Operation mode M2:
The output data before the occurrence of the abnormality of the external output module 4 is turned off (reset), only the CPU module 1 is reset and restarted, and the PLC is automatically restored.
Operation mode M3:
The output data before the occurrence of the abnormality of the external output module 4 is turned OFF (reset), the user program calculation is stopped, and it waits. (Conventional operation)
In the case of the operation mode M1, the MPU 10 stops the user program calculation, does not control the output of the reset signal 18 of the reset circuit 17 for the external output module, and continues the output refresh process in the external output module 4 to generate an abnormality. The previous output data is retained and the output state is maintained. Next, in this state, a reset signal is generated in the MPU reset circuit 16 by an instruction of the MPU 10 itself, only the MPU 10 of the CPU module 1 is reset, and restarting is started. After the MPU 10 is restarted, the user program calculation is started, but the output data in the external output module 4 starts calculation in the state of the data held when the abnormality is detected.

動作モードM2の場合は、MPU10はユーザプログラム演算を停止し、リセット信号18を出力制御して外部出力モジュール4に供給してリセットし、内部にそれまで記憶されている異常発生前の出力データをOFF(クリア)させ、出力データの出力が停止される。また、周辺装置インタフェース11経由で接続されているプログラミングツール2若しくはHMI(Human Machine Interface)19に対し、CPUモジュール1単体のみ再起動する旨の情報を発信する。この状態で、MPU10自身の指令によりMPU用リセット回路16にリセット信号を発生させ、CPUモジュール1のMPU10のみリセットし再起動を開始する。MPU10再起動後、ユーザプログラム演算を開始するが、外部出力モジュール4に対する出力データはOFFの状態から演算を開始する。   In the case of the operation mode M2, the MPU 10 stops the user program calculation, outputs and controls the reset signal 18 to be supplied to the external output module 4 to be reset, and the output data before the occurrence of abnormality stored in the MPU 10 is stored. It is turned off (cleared), and output of output data is stopped. Further, information indicating that only the CPU module 1 is restarted is transmitted to the programming tool 2 or the HMI (Human Machine Interface) 19 connected via the peripheral device interface 11. In this state, a reset signal is generated in the MPU reset circuit 16 by a command of the MPU 10 itself, and only the MPU 10 of the CPU module 1 is reset and restarting is started. After the MPU 10 is restarted, the user program calculation is started, but the output data for the external output module 4 is started from the OFF state.

上記動作モードM1、M2の場合は、再起動を実施したことを目視で確認できるようCPUモジュール1の正面にLED表示等で確認できる機能を有する。また、再起動した際のログ(エラーコード、タイムスタンプ、再起動回数)等を内部データメモリ14等に残す機能を持ち、後で保守員が確認できるようになっている。   In the case of the operation modes M1 and M2, the CPU module 1 has a function that can be confirmed by an LED display or the like so that the restart can be visually confirmed. In addition, it has a function of leaving a log (error code, time stamp, number of restarts) and the like at the time of restart in the internal data memory 14 and the like so that maintenance personnel can check later.

また、当該異常が一過性のものではなくMPU10の再起動を自動的に数回繰り返しても復旧しない重大な異常の場合、ユーザで設定した「出力データの保持/クリア」の状態でエラー表示を行いユーザプログラム演算を停止する。このようなユーザプログラムの演算停止するまでのMPU10も自動再起動の回数(リトライ回数)は予めユーザで指定可能としている。   In addition, if the abnormality is not a temporary one and is a serious abnormality that does not recover even if the MPU 10 is automatically restarted several times, an error is displayed in the “Output data hold / clear” state set by the user. To stop the user program calculation. The number of automatic restarts (the number of retries) of the MPU 10 until the calculation of the user program is stopped can be designated by the user in advance.

動作モード3の場合は、MPU10はユーザプログラム演算を停止しリセット信号18を出力制御して外部出力モジュール4に対し出力データをOFF(クリア)させる。そして、この状態のまま保守員からの指示(作業)待ちとし、エラー情報を表示し待機となる。   In the case of the operation mode 3, the MPU 10 stops the user program calculation, controls the output of the reset signal 18, and turns off (clears) the output data to the external output module 4. Then, in this state, it waits for an instruction (work) from the maintenance staff, displays error information, and waits.

次に、図2に基づいて動作フローを説明する。先ず、スッテップ100(S100)でCPUモジュール1のMPU10で異常が検出されると、異常内容が解析され(S101)、動作モードが確認(S102)される。この動作モードは、プログラミングツール2でユーザが予め選択し、システムプログラムメモリ12に格納されているモードである。動作モードがM1であれば、S103からS108に移り、外部出力モジュール4の出力データをリフレッシュ処理により保持される。次にS110に移ってエラー表示がなされ、S111でインタフェース11を経由して、外部のプログラミングツール2やHMI19に再起動する旨の情報を発信する。次のS112では、MPU10からMPU用リセット回路16へ再起動指示が出力される。   Next, an operation flow will be described based on FIG. First, when an abnormality is detected in the MPU 10 of the CPU module 1 in step 100 (S100), the abnormality content is analyzed (S101), and the operation mode is confirmed (S102). This operation mode is a mode selected in advance by the user with the programming tool 2 and stored in the system program memory 12. If the operation mode is M1, the process proceeds from S103 to S108, and the output data of the external output module 4 is held by the refresh process. In step S110, an error is displayed. In step S111, information indicating that the program is to be restarted is transmitted to the external programming tool 2 and the HMI 19 via the interface 11. In the next S112, a restart instruction is output from the MPU 10 to the MPU reset circuit 16.

次のS113では、再起動が予めユーザによって指定された指定回数に達しているか否かを判断し、達していればS114でユーザプログラムの演算を停止して終了する。指定回数に達していなければ、S115でMPU用リセット回路16からのリセット信号により、MPU10のみがリセットして再起動が開始する。次いで、S116では、この再起動をログとして内部データメモリ14に記録する。   In the next S113, it is determined whether or not the number of restarts that has been designated in advance by the user has been reached, and if so, the calculation of the user program is stopped and terminated in S114. If the specified number of times has not been reached, only the MPU 10 is reset by the reset signal from the MPU reset circuit 16 in S115 and restarting is started. Next, in S116, this restart is recorded in the internal data memory 14 as a log.

S117で正常な起動が完了しているかのチェックがなされ、完了していればS118でユーザプログラムの演算が開始される。S117で正常な起動が完了しなければ、S101に戻って異常内容が確認される。   In S117, it is checked whether normal startup has been completed. If completed, calculation of the user program is started in S118. If normal startup is not completed in S117, the process returns to S101 and the abnormal content is confirmed.

次に、S103で動作モードがM1で無い場合はS104に移り、ここで動作モードがM2であればS104からS109に移り、外部出力モジュール用リセット回路17からリセット信号18を出力制御して、外部出力モジュール4の出力データをクリアする。その後はS110に移って上記で説明したS110〜S118の動作を行なう。   Next, if the operation mode is not M1 in S103, the process proceeds to S104. If the operation mode is M2, the process proceeds from S104 to S109, and the reset signal 18 is controlled to be output from the external output module reset circuit 17. The output data of the output module 4 is cleared. Thereafter, the process proceeds to S110, and the operations of S110 to S118 described above are performed.

また、S104で動作モードがM2で無い場合はS105に移って動作モードがM3であるとし、S106で外部出力モジュール用リセット回路17からリセット信号18を出力制御して、外部出力モジュール4の出力データをクリアする。次いでS107に移ってエラー表示がなされ、この状態のまま保守員からの指示(作業)待ちの待機状態となる。   If the operation mode is not M2 in S104, it is determined that the operation mode is M3 in S105, and the output signal of the external output module 4 is controlled by outputting the reset signal 18 from the external output module reset circuit 17 in S106. To clear. Next, the process proceeds to S107, where an error is displayed, and in this state, a standby state waiting for instructions (work) from maintenance personnel is entered.

上記フローチャートでは、再起動(S111〜S115)に優先して、ユーザの選択した動作モードに従った外部出力モジュール4の出力データの処理(S108,S109)がなされるので、出力データを保持する場合、異常発生前の正常な出力データを保持することができるとともに、異常発生後の動作で出力データが乱されることが少ない。また、出力データをクリアする場合、いち早くクリアするので、異常発生後の動作で乱されたデータが不用意に出力されることがない。従って、異常発生によって制御対象に危険な動作を起させることがない。   In the above flowchart, the output data of the external output module 4 is processed (S108, S109) according to the operation mode selected by the user in preference to the restart (S111 to S115). Normal output data before the occurrence of an abnormality can be held, and the output data is less likely to be disturbed by the operation after the occurrence of the abnormality. In addition, when the output data is cleared, it is cleared quickly, so that data disturbed by the operation after the occurrence of the abnormality is not inadvertently output. Therefore, a dangerous operation is not caused on the control target due to the occurrence of an abnormality.

以上説明したように、重大な異常発生時に制御対象に合わせてユーザにより出力モジュールの出力データの状態を任意に設定した状態でCPUモジュールを再起動させることができる。   As described above, when a serious abnormality occurs, the CPU module can be restarted in a state where the state of the output data of the output module is arbitrarily set by the user according to the control target.

1…CPUモジュール、2…プログラミングツール(周辺装置)、3…外部入力モジュール、4…外部出力モジュール、5…ハードリセット、10…MPU、11…周辺装置インタフェース、12…システムプログラムメモリ、13…シーケンスプログラムメモリ、14…内部データメモリ、15…外部バスインタフェース、16…MPU用リセット回路、17…外部出力モジュール用リセット回路、18…RESET信号、19…HMI。   DESCRIPTION OF SYMBOLS 1 ... CPU module, 2 ... Programming tool (peripheral device), 3 ... External input module, 4 ... External output module, 5 ... Hard reset, 10 ... MPU, 11 ... Peripheral device interface, 12 ... System program memory, 13 ... Sequence Program memory, 14 ... Internal data memory, 15 ... External bus interface, 16 ... Reset circuit for MPU, 17 ... Reset circuit for external output module, 18 ... Reset signal, 19 ... HMI.

Claims (5)

各種メモリと、シーケンスプログラムの演算を行なうMPUと、外部のプログラミングツールと通信を行なう周辺装置インタフェースと、外部の入力信号の取込みと演算結果の外部への出力を行なう外部バスインタフェースを備えたCPUモジュールと、外部機器からの入力信号を前記CPUモジュールに伝える外部入力モジュールと、演算結果の出力データを保持して外部機器に出力する外部出力モジュールとを備えて、MPUの演算結果に基いて外部機器の動作を制御するプログラマブルコントローラにおいて、
CPUモジュールでの異常検知時の再起動に際し、前記外部出力モジュールでの出力データを保持するかクリアするかを選択する動作モード選択部を設け、
選択された動作モードに基づいて前記MPUをリセットするMPU用リセット回路と、前記外部出力モジュールの出力データをクリアする出力モジュール用リセット回路を設け、
CPUモジュールでの異常検知時に、選択された動作モードに基づいて、前記外部出力モジュールの出力データを保持状態またはクリア状態で、前記MPUをリセットすることでCPUモジュールを再起動することを特徴とするプログラマブルコントローラ。
CPU module having various memories, an MPU for calculating sequence programs, a peripheral device interface for communicating with an external programming tool, and an external bus interface for fetching external input signals and outputting calculation results to the outside And an external input module for transmitting an input signal from the external device to the CPU module, and an external output module for holding the output data of the operation result and outputting the output data to the external device, the external device based on the operation result of the MPU In the programmable controller that controls the operation of
When restarting when an abnormality is detected in the CPU module, an operation mode selection unit is provided for selecting whether to hold or clear the output data in the external output module,
An MPU reset circuit for resetting the MPU based on the selected operation mode, and an output module reset circuit for clearing output data of the external output module;
When an abnormality is detected in the CPU module, the CPU module is restarted by resetting the MPU with the output data of the external output module being held or cleared based on the selected operation mode. Programmable controller.
請求項1記載のプログラマブルコントローラにおいて、
前記MPU用リセット回路と外部出力モジュール用リセット回路は前記CPUモジュール内に設置され、再起動に際し外部出力モジュールでの出力データを保持する動作モードの場合、外部出力モジュールの出力データを保持し、MPU用リセット回路からのリセット信号をMPUに供給することを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1,
The MPU reset circuit and the external output module reset circuit are installed in the CPU module, and in the case of an operation mode in which the output data in the external output module is retained at the time of restart, the output data of the external output module is retained. A programmable controller characterized by supplying a reset signal from a reset circuit to an MPU.
請求項1記載のプログラマブルコントローラにおいて、
前記MPU用リセット回路と出力モジュール用リセット回路は前記CPUモジュール内に設置され、再起動に際し外部出力モジュールの出力データをクリアする動作モードの場合、外部出力モジュール用リセット回路のリセット信号を外部出力モジュールに供給し、MPU用リセット回路からのリセット信号をMPUに供給することを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1,
The MPU reset circuit and the output module reset circuit are installed in the CPU module, and in the operation mode for clearing the output data of the external output module upon restart, the reset signal of the external output module reset circuit is sent to the external output module. And a reset signal from the MPU reset circuit is supplied to the MPU.
請求項1〜3のいずれかに記載のプログラマブルコントローラにおいて、
前記MPUの自動再起動を繰り返す回数をユーザで設定でき、ユーザが設定した回数に達したとき、選択された動作モードに基づいて外部出力モジュールのデータを保持またはクリアした状態で、前記MPUの演算を停止することを特徴とするプログラマブルコントローラ。
In the programmable controller in any one of Claims 1-3,
The number of repetitions of the automatic restart of the MPU can be set by the user, and when the number set by the user is reached, the calculation of the MPU is performed with the data of the external output module held or cleared based on the selected operation mode. A programmable controller characterized by stopping the operation.
請求項1〜4のいずれかに記載のプログラマブルコントローラにおいて、
前記MPUの自動再起動を行なう際、前記周辺装置インタフェース経由で接続されている前記プログラミングツール、HMI等に、再起動開始若しくは再起動中である情報を発信することを特徴とするプログラマブルコントローラ。
In the programmable controller in any one of Claims 1-4,
A programmable controller, wherein when the MPU is automatically restarted, information indicating that the restart has been started or is being restarted is transmitted to the programming tool, HMI, and the like connected via the peripheral device interface.
JP2010132148A 2010-06-09 2010-06-09 Programmable controller Pending JP2011258003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010132148A JP2011258003A (en) 2010-06-09 2010-06-09 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010132148A JP2011258003A (en) 2010-06-09 2010-06-09 Programmable controller

Publications (1)

Publication Number Publication Date
JP2011258003A true JP2011258003A (en) 2011-12-22

Family

ID=45474112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010132148A Pending JP2011258003A (en) 2010-06-09 2010-06-09 Programmable controller

Country Status (1)

Country Link
JP (1) JP2011258003A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013161380A (en) * 2012-02-08 2013-08-19 Mitsubishi Electric Corp Control logic management device
JP2015060377A (en) * 2013-09-18 2015-03-30 株式会社日立産機システム Input/output refresh system of programmable controller
US10884962B2 (en) 2017-10-13 2021-01-05 Omron Corporation Control device, and slave device control method
CN117111534A (en) * 2023-10-16 2023-11-24 长沙先度科技有限公司 Automatic power-on control circuit and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01178603U (en) * 1988-06-07 1989-12-21
JPH05257725A (en) * 1991-12-19 1993-10-08 Mitsubishi Electric Corp Error transmitter for cpu unit
JPH09185403A (en) * 1995-12-27 1997-07-15 Mitsubishi Electric Corp Fail safe circuit for programmable controller
JP2006201932A (en) * 2005-01-19 2006-08-03 Canon Inc Computer starting device, computer starting method, and computer starting program
JP2009104246A (en) * 2007-10-19 2009-05-14 Fuji Electric Systems Co Ltd Programmable controller and abnormal circumstances restoration method therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01178603U (en) * 1988-06-07 1989-12-21
JPH05257725A (en) * 1991-12-19 1993-10-08 Mitsubishi Electric Corp Error transmitter for cpu unit
JPH09185403A (en) * 1995-12-27 1997-07-15 Mitsubishi Electric Corp Fail safe circuit for programmable controller
JP2006201932A (en) * 2005-01-19 2006-08-03 Canon Inc Computer starting device, computer starting method, and computer starting program
JP2009104246A (en) * 2007-10-19 2009-05-14 Fuji Electric Systems Co Ltd Programmable controller and abnormal circumstances restoration method therefor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013161380A (en) * 2012-02-08 2013-08-19 Mitsubishi Electric Corp Control logic management device
JP2015060377A (en) * 2013-09-18 2015-03-30 株式会社日立産機システム Input/output refresh system of programmable controller
US10884962B2 (en) 2017-10-13 2021-01-05 Omron Corporation Control device, and slave device control method
CN117111534A (en) * 2023-10-16 2023-11-24 长沙先度科技有限公司 Automatic power-on control circuit and control method thereof
CN117111534B (en) * 2023-10-16 2024-01-16 长沙先度科技有限公司 Automatic power-on control circuit and control method thereof

Similar Documents

Publication Publication Date Title
JP6127755B2 (en) Information processing apparatus, control method for information processing apparatus, and control program
US9444392B2 (en) Motor control device and motor control system
CN107885305B (en) Control device, control method, and recording medium
JP6481267B2 (en) Programmable display
JP2011258003A (en) Programmable controller
KR101431301B1 (en) Safety extention base and its control method
JP5041290B2 (en) PROGRAMMABLE CONTROLLER AND ITS ERROR RECOVERY METHOD
JP2009042913A (en) Tool device in multi-plc-distributed control system
JP6267026B2 (en) Machine tool control system
US9483045B2 (en) Numerical controller
US9829874B2 (en) Numerical control device
US20160371154A1 (en) Remote control device and control system
JP5365875B2 (en) Industrial controller
JP2016206845A (en) Monitor device for programmable controller
JP5353624B2 (en) Robot control apparatus and robot control method
US10768601B2 (en) Programmable controller
JP2013090550A (en) Digital protection and control device
KR102267485B1 (en) Robot control device, robot system and robot control method
JP6211842B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND FILM OPERATION ABNORMALITY CONTROL METHOD
JP6324831B2 (en) Radiation measurement equipment
JP2012208931A (en) Plc system, information display method, plc, and maintenance device
JP2011008494A (en) Module resetting and system failure display system by watchdog timer
JP5343757B2 (en) Programmable controller
EP3955074A1 (en) Method and system for securely managing operations of a field device in an industrial environment
JP5989687B2 (en) Transmission line relay panel recovery device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120622

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130625

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131029