JP2004102386A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP2004102386A
JP2004102386A JP2002259696A JP2002259696A JP2004102386A JP 2004102386 A JP2004102386 A JP 2004102386A JP 2002259696 A JP2002259696 A JP 2002259696A JP 2002259696 A JP2002259696 A JP 2002259696A JP 2004102386 A JP2004102386 A JP 2004102386A
Authority
JP
Japan
Prior art keywords
processing
programmable controller
time
microcomputer
plc
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.)
Granted
Application number
JP2002259696A
Other languages
Japanese (ja)
Other versions
JP4285958B2 (en
Inventor
Kenji Seki
関 賢二
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 JP2002259696A priority Critical patent/JP4285958B2/en
Publication of JP2004102386A publication Critical patent/JP2004102386A/en
Application granted granted Critical
Publication of JP4285958B2 publication Critical patent/JP4285958B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a programmable logic controller PLC (programable logic controller) confirming microcomputer operating situation from the outside by a device indicating which degree the processing to apply a load to the microcomputer is executed, and keeping the ability to perform the processing designated by a user even when the processing to apply the load to the microcomputer of the PLC is frequently performed. <P>SOLUTION: This programmable controller 1 the microcomputer 13 having a software to control the programmable controller and performing the system processing to execute a user program. The programmable controller 1 has a display part 14 for performing the display in proportion to the number of times of processing for a specific time with respect to the specific processing. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、プログラマブルコントローラ(以下、「PLC」という)に適用され、特にPLCに実装されているマイコンの稼動状態を外部にて確認する機能や、自動的に特定の処理に対する処理時間が変化する機能に関する。
【0002】
【従来の技術】
PLCはユーザが作成したプログラム(以下、「ユーザプログラム」という)に従って動作する機器であるが、ユーザプログラムを実行しながらPLC自身のシステムとしての動作(以下、「システム処理」という)も行う。システム処理の代表的なものとしては、PLCの動作を行うためのタイムスケジュールの監視や通信処理、異常監視などが挙げられる。
【0003】
安価なPLCでは上記の処理を1つのマイコンで制御する場合が多い。1つのマイコンで複数の処理を同時に実行することは出来ないため、ほとんどの場合処理ごとに実行時間と優先順位を決め、経過時間に応じて処理の優先順位を切換えるといった方式が用いられている。
【0004】
実行時間が必ず一定になる処理の場合は時間によって処理を切り替えても問題ないが、実行するのが稀な処理や処理時間が可変な処理があるとその不定期な処理を行うための最大時間を設ける必要がある。不定期処理実行用に準備した時間はその処理が行われないまたは短い時間で終了してしまうと余った時間が何も処理しない無駄な時間となる。そのため処理に優先順位をつけ、時間と優先順位の管理によって実行する処理を切換える方法が用いられるが、優先順位が高く不定期に実行される処理が発生すると、不定期処理を実行する時間分だけそれより優先順位の低い処理を行うための時間が短くなる。
【0005】
【発明が解決しようとする課題】
PLCのソフトウェアは、マイコンの作業量が増加して処理が途中で打ち切られたり処理中に優先順位の高い処理に割り込まれても、動作が継続するような作りとなっている。しかしあまりに頻繁に処理が打ち切られるようなことがあると、ユーザプログラムの実行速度が遅くなったり通信に対するレスポンスが遅くなったりするなどユーザにとって望ましくない動作を行うことになる。
【0006】
ユーザの立場で見ると、ユーザプログラムの実行速度が遅くなることや通信のレスポンスが遅くなることはPLC自体の性能が低下したように見え、その動作があまりに著しくなるとPLCに不具合があると感じる。そしてこのような動作となる要因が、PLCのマイコンに特定の処理が集中しているためであることが推測できない。
【0007】
本発明は、従来の問題を解決するものであり、マイコンに負荷を与える処理がどの程度実行されているか表示する装置により外部からマイコン稼動状況を確認することが可能であり、また、ユーザが優先順位を設定することにより、ユーザが指定した処理を行う時間が自動的に増加するため、PLCのマイコンに負荷を与える処理が頻発してもユーザが指定した処理の処理能力を維持できるPLCを提供することを目的とする。
【0008】
【課題を解決するための手段】
本発明は、プログラマブルコントローラ制御用ソフトウエアを有し、システム処理を行うマイコンを備えて、ユーザプログラムを実行するプログラマブルコントローラにおいて、特定の処理についての所定時間の処理回数に比例する表示を行う表示部を有するプログラマブルコントローラである。
【0009】
また、本発明は、上記表示部は、デジタル表示を行うプログラマブルコントローラである。
【0010】
そして、本発明は、上記表示部は、アナログ表示を行うプログラマブルコントローラである。
【0011】
更に、本発明は、上記マイコンは、実行する処理を重要処理群と通常処理群とに分類し、かつ、重要処理群の処理回数が増加すると通常処理群を処理する時間を短くするプログラマブルコントローラである。
【0012】
また、本発明は、処理群毎の終了時又は開始時に動作するカウンタを有するプログラマブルコントローラである。
【0013】
【発明の実施の形態】
本発明の実施の形態を説明する。
本発明のプログラマブルコントローラ(PLC)は、PLC制御用ソフトウエアを有し、システム処理を行うマイコンを備えており、そして、特定の処理についての所定時間の処理回数に比例する表示を行う表示部を有し、ユーザプログラムを実行する。また、本発明のPLCのソフトウェアにおいては、PLCを制御するためのシステム処理を必ず一連の流れで実行する処理群となるようにいくつかに分類し、内部のRAMに分類した処理群毎のカウンタを用意する。分類した処理群の中で不定期に実行されている処理群の先頭に前述の表示装置を消灯する処理を、定期的に実行される処理群で比較的優先順位が低く、ある程度の周期で必ず実行する処理群に表示部を点灯する処理を入れる。また分類した処理群それぞれに処理毎のカウンタを更新する処理を追加する。なお、点灯及び消灯する処理を逆にすることは可能である。
【0014】
PLCが起動するとPLCのソフトウェアは不定期なタイミングで実行する処理群の先頭でマイコン稼動状況表示機を消灯し、定期的に実行する処理群の処理でマイコン稼動状況表示を点灯するため、不定期な処理群が頻繁に実行されるとマイコン稼動状況表示が消灯している時間が長くなる。不定期な処理を頻繁に実行しているということは、言いかえると、通常行うべき定期的な処理を行う時間が短くなっているということであり、マイコンの稼動状況が低下しているといえる。つまり、ユーザはマイコン稼動状況表示を目視することでマイコンの稼動状況を視覚的に判別することが可能となる。
【0015】
PLCのソフトウェアは、単位時間毎に起動する最も優先順位の高い処理群にて次の単位時間で行う処理を管理している。またいくつかの単位時間をひとまとめにして基準時間とし、基準時間内で必ず1単位時間は一つの処理群(ただし不定期な処理群は除く)が実行されるように管理している。この最も優先順位の高い処理群の処理で各処理群のカウンタ経過値を算出し、各カウンタの更新傾向を分析した結果により各処理群に割り当てる基準時間内の時間配分を変更する処理を追加する。追加した処理により各処理群に割り当てる処理時間を自動的に調整することができるため、ユーザが予めPLCに対して自動的な時間調整を行う設定と優先したい処理群を指定すると、指定した処理群に割り当てる処理時間を優先的に増加することができる。これにより、不定期な処理群が実行されるイベントが頻繁に発生してもユーザが優先処理に指定した処理群の処理能力をある程度一定にすることができる。
【0016】
以下、本発明のプログラマブルコントローラの実施例について、図1〜図5を用いて説明する。図1は、実施例のPLCのブロック説明図である。図2は、実施例のPLCにおけるシステム処理のタイムチャートの説明図である。図3は、実施例のPLCにおけるシステム処理実行時の処理概略説明図である。図4は、実施例のPLCの外観説明図である。図5は、実施例のPLCにおけるマイコン稼動状況表示LEDの表示内容の説明図である。
【0017】
実施例を説明する。本実施例のPLC1は、図1に示すように、RAM11、ROM12、MPU13、表示部14、I/F15等からなる。ROM12は、PLC制御用ソフトウエアを格納している。MPU13は、マイコンからなり、ROM12に格納されているPLC制御用ソフトウェアにしたがって動作して、PLCのシステム処理を行う。表示部14は、マイコン稼働状況を表示する。I/F15は、周辺装置2との入出力インタフェースを行う。
【0018】
本実施例のPLCにおけるマイコン稼動状況表示および処理時間の自動割当について、図2〜図5を用いて説明する。PLC制御用ソフトウェア12は、図2及び図3(a)(b)に示すように、優先順位や処理内容に応じてシステム処理群A3a〜D3dの4つに分けて実行する。
【0019】
システム処理群A3aは単位時間毎に必ず実行される最も優先順位の高い処理である。システム処理群A3aではその他の処理群の優先順位を切換える処理52などが実行される。
【0020】
システム処理群B3bはイベントが発生することにより不定期に実行される割込み処理51である。優先順位はシステム処理群A3aの次に高い。システム処理群B3bでは周辺装置2と通信を行うための処理の一部やユーザプログラムの一部である割込み入力処理などが実行される。
【0021】
システム処理群C3cとD3dは時間に応じて優先順位が切り換わる処理である。システム処理群C3cではシステム処理群A3a、B3bよりも優先順位の低いPLCシステムの処理などが実行され、システム処理群D3dではユーザプログラムが実行される。システム処理群C3cの処理時間が長いと周辺装置2との通信などユーザプログラム実行以外の処理能力が向上し、逆にシステム処理群D3dの時間が長いとユーザプログラムの処理能力が向上する。
【0022】
PLC1の基本的な動作は、単位時間42毎にシステム処理群A3aが起動し、予め決められている時間になったらシステム処理群A3aにてシステム処理群C3cとD3dの処理6c、6dを切換える。システム処理群C3cとD3dの両方が1回づつ決められた時間だけ実行する時間を基準時間41とし、以降基準時間41の処理を無限回繰り返す。システム処理群B3bの処理6bはそれを実行するイベントが発生した時に実行されるが、最も優先順位が高いシステム処理群A3aの処理6aを実行している間は中断されるか待たされる。またシステム処理群C3cとD3dはシステム処理群C3c、D3d用に確保されている時間の間何回も実行され、切り換えの時間になったら処理が途中であっても中断され次の基準時間内の処理で処理の続きを行う。
【0023】
本実施例では、システム処理群B3bの処理6bの先頭にマイコン稼動状況表示LED14を消灯する処理64を追加する。また、システム処理群C3c、D3dに対しては一連の処理6c、6dの先頭にシステム処理実行カウンタを更新する処理65を、最後にマイコン稼動状況表示LED14を点灯する処理63を追加する。この状態でPLC1を動作させるとシステム処理群B3bが実行される度にマイコン稼動状況表示LED14が消灯し、システム処理群C3c、D3dの一連の処理が終了するまで点灯しない。システム処理群B3bが頻繁に実行されるとシステム処理群C3c、D3dの処理時間が短くなるので一連の動作が終わるまでに時間がかかるようになりマイコン稼動状況表示LED14が点灯するまでの時間が長くなる。ユーザはマイコン稼動状況表示LED14を目視すると、図5に示すように、▲1▼システム処理群B3bの実行頻度が少ない(マイコンの負担が軽い)と、システム処理群C3c、D3の処理回数が多くなって明るい表示141となり、▲2▼システム処理群B3bの実行頻度がやや多い(マイコンの負担がやや重い)と、システム処理群C3c、D3の処理回数がやや少なくなってやや暗い表示142となり、▲3▼システム処理群B3bが頻繁に実行される(マイコンの負担が重い)と、システム処理群C3c、D3の処理回数が少なくなって暗い表示143となる等、マイコン13の稼動状況が識別できる。
【0024】
また、システム処理群C3c、D3dのカウンタを読み出せばシステム処理群C3c、D3dがそれぞれ何回実行されたか判別が可能である。具体的には基準時間の最初に行うシステム処理群A3aでシステム処理群C3c、D3dのカウンタ値を読出し、前の基準時間41内に読み出した値を引いてシステム処理群C3c、D3dの処理に割り当てている単位時間42で除算する。前の基準時間41内で算出した値と今回算出した値を比較し、大きくなっている場合はそのシステム処理群を実行した量が前の基準時間41内よりも向上した(システム処理群B3bの影響が少なかった)ことを示し、小さくなっている場合は前の基準時間41内よりも低下した(システム処理群B3bの影響が大きかった)ことを示す。このカウンタ値の傾向をシステム処理群A3aで分析し、システム処理群C3cとD3dを切換える時間を変更することで、自動的にシステム処理群C3cまたはD3dの処理時間を変更して基準時間41における仕事量を増やすことが可能である。どちらのシステム処理群を優先させるかをユーザが予め設定しておけば、優先させた方のシステム処理時間だけを増やすこともできる。
【0025】
なお、上記実施例では、表示部14の表示を処理回数(点滅回数)に比例するデジタル表示としたが、例えば針の振れによる量的表示を採用して、処理回数に比例するアナログ表示とすることは可能である。また、処理群毎の終了時又は開始時に動作するカウンタの代りに処理群の途中で動作するカウンタを用いることもできる。
【0026】
【発明の効果】
本発明によれば、PLCのマイコンに負荷を与える処理がどの程度実行されているか表示する装置により外部からマイコン稼動状況を確認することが可能とし、また、ユーザが優先順位を設定することにより、ユーザが指定した処理を行う時間が自動的に増加するため、PLCのマイコンに負荷を与える処理が頻発してもユーザが指定した処理の処理能力を維持できるPLCを得ることができる。
【図面の簡単な説明】
【図1】実施例のPLCのブロック説明図。
【図2】実施例のPLCにおけるシステム処理のタイムチャートの説明図。
【図3】実施例のPLCにおけるシステム処理実行時の処理概略説明図。
【図4】実施例のPLCの外観説明図。
【図5】実施例のPLCにおけるマイコン稼動状況表示LEDの表示内容の説明図。
【符号の説明】
1 プログラマブルコントローラ(PLC)
11 RAM
12 ROM
13 マイクロプロセッサ
14 マイコン稼動状況表示LED
141 処理が集中していない時のLED表示
142 処理がやや集中した時のLED表示
143 処理が集中した時のLED表示
15 I/F
2 周辺装置
3a システム処理群A(最も優先順位の高い処理群)
3b システム処理群B(不定期に実行される処理群)
3cシステム処理群C(システム処理群A、Bに含まれないシステム処理群)
3d システム処理群D(ユーザプログラムの実行を行う処理群)
41 基準時間(各処理群を最低1単位時間は実行する時間)
42 単位時間(PLCの処理群に割り当てられる最低時間)
51 不定期割込み
52 優先順位切換え
6a〜6d システム処理群A〜Dの処理
61 不定期割込み発生
62 不定期割込み処理
63 表示部点灯
64 表示部消灯
65 カウンタ更新処理
[0001]
TECHNICAL FIELD OF THE INVENTION
INDUSTRIAL APPLICABILITY The present invention is applied to a programmable controller (hereinafter, referred to as a "PLC"). In particular, a function for externally checking the operation state of a microcomputer mounted on the PLC and a processing time for a specific processing automatically change. Regarding functions.
[0002]
[Prior art]
The PLC is a device that operates in accordance with a program created by a user (hereinafter, referred to as a “user program”), and also performs an operation as a system of the PLC itself (hereinafter, referred to as “system processing”) while executing the user program. Typical examples of system processing include monitoring of a time schedule for performing the operation of the PLC, communication processing, and abnormality monitoring.
[0003]
Inexpensive PLCs often control the above processing with one microcomputer. Since a single microcomputer cannot execute a plurality of processes at the same time, in most cases, a method is used in which the execution time and the priority are determined for each process, and the priority of the process is switched according to the elapsed time.
[0004]
In the case of processing where the execution time is always constant, there is no problem if the processing is switched according to time, but if there is processing that is rarely executed or processing with variable processing time, the maximum time for performing the irregular processing Need to be provided. If the time prepared for the execution of the irregular processing is not performed or the processing is completed in a short time, the surplus time becomes a useless time in which no processing is performed. Therefore, a method of assigning priorities to the processes and switching the processes to be executed by managing the time and the priority is used. However, when a process having a high priority and being executed irregularly occurs, only the time for executing the irregular process is used. The time for performing a process with a lower priority is shorter.
[0005]
[Problems to be solved by the invention]
The PLC software is designed so that the operation continues even if the amount of work of the microcomputer increases and the processing is interrupted in the middle or interrupted by a higher priority processing during the processing. However, if the processing is aborted too frequently, the user performs an operation that is not desirable for the user, such as slowing down the execution speed of the user program and slowing down the response to communication.
[0006]
From the user's point of view, the slower execution speed of the user program and the slower response of the communication appear to degrade the performance of the PLC itself, and if the operation becomes too significant, it is felt that the PLC is defective. It cannot be inferred that the cause of such an operation is that specific processing is concentrated on the microcomputer of the PLC.
[0007]
The present invention solves the conventional problem, and it is possible to externally check the microcomputer operation status by using a device that displays the degree of execution of the process of applying a load to the microcomputer, and also allows the user to prioritize the operation. By setting the order, the time for performing the process specified by the user is automatically increased. Therefore, a PLC that can maintain the processing capability of the process specified by the user even when the process of applying a load to the microcomputer of the PLC frequently occurs. The purpose is to do.
[0008]
[Means for Solving the Problems]
The present invention provides a programmable controller that has software for controlling a programmable controller, includes a microcomputer that performs system processing, and a display unit that performs a display in proportion to the number of times of a predetermined process for a specific process in a programmable controller that executes a user program. Is a programmable controller.
[0009]
Further, according to the present invention, the display unit is a programmable controller that performs digital display.
[0010]
In the present invention, the display unit is a programmable controller that performs analog display.
[0011]
Furthermore, the present invention provides a programmable controller which classifies the processing to be executed into an important processing group and a normal processing group, and shortens the time for processing the normal processing group when the number of times of processing of the important processing group increases. is there.
[0012]
Further, the present invention is a programmable controller having a counter that operates at the end or start of each processing group.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
An embodiment of the present invention will be described.
A programmable controller (PLC) according to the present invention includes a microcomputer for performing system processing, including software for PLC control, and a display unit for performing a display in proportion to the number of times of a specific process in a predetermined time. And execute the user program. Also, in the PLC software of the present invention, the system processing for controlling the PLC is classified into several processing groups that are always executed in a series of flow, and a counter for each processing group classified in the internal RAM. Prepare. The process of turning off the display device at the beginning of the process group that is being executed irregularly among the grouped process groups has a relatively low priority in the process group that is periodically executed, and must be performed at a certain period. A process for turning on the display unit is included in a process group to be executed. Further, a process of updating a counter for each process is added to each of the classified process groups. It is possible to reverse the process of turning on and off.
[0014]
When the PLC starts up, the PLC software turns off the microcomputer operation status display at the beginning of the processing group to be executed at irregular timing, and turns on the microcomputer operation status display in the processing of the processing group to be executed periodically. When the processing group is frequently executed, the time during which the microcomputer operation status display is turned off becomes longer. Frequent execution of irregular processing means, in other words, that the time for performing regular processing that should be normally performed is shortened, and it can be said that the operation state of the microcomputer is decreasing. . In other words, the user can visually determine the operation status of the microcomputer by looking at the display of the operation status of the microcomputer.
[0015]
The PLC software manages the processing performed in the next unit time in the processing group having the highest priority activated every unit time. In addition, several unit times are collectively set as a reference time, and one unit time is managed so that one processing group (excluding irregular processing groups) is always executed within the reference time. In the processing of the processing group having the highest priority, a counter elapsed value of each processing group is calculated, and a processing of changing a time distribution within a reference time allocated to each processing group is added based on a result of analyzing the update tendency of each counter. . Since the processing time allocated to each processing group can be automatically adjusted by the added processing, if the user specifies in advance the setting for automatically adjusting the time to the PLC and the processing group to be prioritized, the specified processing group Can be preferentially increased. Thereby, even if an event in which the irregular processing group is executed frequently occurs, the processing capacity of the processing group designated by the user as the priority processing can be made constant to some extent.
[0016]
Hereinafter, embodiments of the programmable controller according to the present invention will be described with reference to FIGS. FIG. 1 is a block diagram illustrating a PLC according to an embodiment. FIG. 2 is an explanatory diagram of a time chart of a system process in the PLC according to the embodiment. FIG. 3 is a schematic diagram illustrating a process when the system process is executed in the PLC according to the embodiment. FIG. 4 is an external view of the PLC according to the embodiment. FIG. 5 is an explanatory diagram of display contents of the microcomputer operation status display LED in the PLC of the embodiment.
[0017]
An embodiment will be described. As shown in FIG. 1, the PLC 1 of this embodiment includes a RAM 11, a ROM 12, an MPU 13, a display unit 14, an I / F 15, and the like. The ROM 12 stores PLC control software. The MPU 13 includes a microcomputer, and operates according to PLC control software stored in the ROM 12 to perform PLC system processing. The display unit 14 displays the microcomputer operation status. The I / F 15 performs an input / output interface with the peripheral device 2.
[0018]
The display of the microcomputer operation status and the automatic assignment of the processing time in the PLC according to the present embodiment will be described with reference to FIGS. As shown in FIGS. 2 and 3 (a) and 3 (b), the PLC control software 12 is divided into four groups of system processing groups A3a to D3d and executed according to the priority and the processing content.
[0019]
The system processing group A3a is the processing with the highest priority that is always executed every unit time. In the system processing group A3a, a processing 52 for switching the priority of other processing groups and the like are executed.
[0020]
The system processing group B3b is an interrupt processing 51 that is executed irregularly when an event occurs. The priority is next to the system processing group A3a. In the system processing group B3b, a part of processing for communicating with the peripheral device 2, an interrupt input processing which is a part of a user program, and the like are executed.
[0021]
The system processing groups C3c and D3d are processes in which priorities are switched according to time. The system processing group C3c executes processing of the PLC system having a lower priority than the system processing groups A3a and B3b, and the system processing group D3d executes user programs. If the processing time of the system processing group C3c is long, the processing capability other than the execution of the user program such as communication with the peripheral device 2 is improved, and if the processing time of the system processing group D3d is long, the processing capability of the user program is improved.
[0022]
The basic operation of the PLC 1 is as follows. The system processing group A3a is activated at every unit time 42, and when a predetermined time comes, the system processing group A3a switches the processing 6c and 6d of the system processing groups C3c and D3d. The time during which both of the system processing groups C3c and D3d execute once each time is set as the reference time 41, and thereafter the processing of the reference time 41 is repeated indefinitely. The processing 6b of the system processing group B3b is executed when an event for executing it occurs, but is interrupted or waited while the processing 6a of the system processing group A3a having the highest priority is being executed. Further, the system processing groups C3c and D3d are executed many times during the time reserved for the system processing groups C3c and D3d. The processing is continued in the processing.
[0023]
In the present embodiment, a process 64 for turning off the microcomputer operation status display LED 14 is added at the beginning of the process 6b of the system process group B3b. For the system processing groups C3c and D3d, a processing 65 for updating the system processing execution counter is added at the head of the series of processing 6c and 6d, and a processing 63 for turning on the microcomputer operation status display LED 14 is added last. When the PLC 1 is operated in this state, the microcomputer operation status display LED 14 is turned off each time the system processing group B3b is executed, and is not turned on until a series of processing of the system processing groups C3c and D3d is completed. If the system processing group B3b is frequently executed, the processing time of the system processing groups C3c and D3d becomes short, so that it takes time to complete a series of operations, and the time until the microcomputer operation status display LED 14 is turned on is long. Become. When the user looks at the microcomputer operation status display LED 14, as shown in FIG. 5, (1) if the execution frequency of the system processing group B3b is small (the load on the microcomputer is small), the number of processing times of the system processing groups C3c and D3 is large. (2) When the execution frequency of the system processing group B3b is slightly higher (the load on the microcomputer is slightly higher), the number of processings of the system processing groups C3c and D3 is slightly reduced, and the display 142 becomes slightly darker. {Circle around (3)} When the system processing group B3b is frequently executed (the load on the microcomputer is heavy), the operation status of the microcomputer 13 can be identified, such as the number of times of processing of the system processing groups C3c and D3 is reduced and the display 143 becomes dark. .
[0024]
By reading the counters of the system processing groups C3c and D3d, it is possible to determine how many times the system processing groups C3c and D3d have been executed. Specifically, the counter values of the system processing groups C3c and D3d are read by the system processing group A3a performed at the beginning of the reference time, and the values read during the previous reference time 41 are subtracted and assigned to the processing of the system processing groups C3c and D3d. Is divided by the unit time 42. The value calculated within the previous reference time 41 is compared with the value calculated this time. If the value is larger, the amount of execution of the system processing group is improved as compared with the previous reference time 41 (for the system processing group B3b). The effect is small), and when the value is small, it indicates that the value is lower than that in the previous reference time 41 (the effect of the system processing group B3b is large). The tendency of the counter value is analyzed by the system processing group A3a, and by changing the time for switching between the system processing groups C3c and D3d, the processing time of the system processing group C3c or D3d is automatically changed to change the work time at the reference time 41. It is possible to increase the amount. If the user sets in advance which system processing group is to be prioritized, it is also possible to increase only the system processing time of the prioritized one.
[0025]
In the above-described embodiment, the display on the display unit 14 is digitally displayed in proportion to the number of times of processing (the number of times of blinking). It is possible. Further, a counter operating in the middle of the processing group may be used instead of the counter operating at the end or start of each processing group.
[0026]
【The invention's effect】
ADVANTAGE OF THE INVENTION According to this invention, it is possible to confirm the microcomputer operation status from the outside by a device for displaying how much processing for applying a load to the microcomputer of the PLC is performed. Since the time for performing the process specified by the user is automatically increased, it is possible to obtain a PLC capable of maintaining the processing capability of the process specified by the user even when the process of applying a load to the microcomputer of the PLC occurs frequently.
[Brief description of the drawings]
FIG. 1 is a block diagram of a PLC according to an embodiment.
FIG. 2 is an explanatory diagram of a time chart of a system process in the PLC according to the embodiment.
FIG. 3 is a schematic diagram for explaining processing when the system processing is executed in the PLC according to the embodiment.
FIG. 4 is an explanatory view of the appearance of a PLC according to an embodiment.
FIG. 5 is an explanatory diagram of display contents of a microcomputer operation status display LED in the PLC according to the embodiment.
[Explanation of symbols]
1 Programmable controller (PLC)
11 RAM
12 ROM
13 Microprocessor 14 Microcomputer operation status display LED
141 LED display when processing is not concentrated 142 LED display when processing is slightly concentrated 143 LED display 15 when processing is concentrated 15 I / F
2 Peripheral device 3a System processing group A (processing group with highest priority)
3b System processing group B (processing group that is executed irregularly)
3c system processing group C (system processing group not included in system processing groups A and B)
3d system processing group D (processing group for executing user program)
41 Reference time (time to execute each processing group for at least one unit time)
42 Unit time (minimum time allocated to PLC processing group)
51 Irregular interrupt 52 Priority switching 6a to 6d Processing of system processing groups A to D 61 Irregular interrupt occurrence 62 Irregular interrupt processing 63 Display ON 64 Display OFF 65 Counter update processing

Claims (5)

プログラマブルコントローラ制御用ソフトウエアを有し、システム処理を行うマイコンを備えて、ユーザプログラムを実行するプログラマブルコントローラにおいて、
特定の処理についての所定時間の処理回数に比例する表示を行う表示部を有することを特徴とするプログラマブルコントローラ。
A programmable controller that has software for controlling a programmable controller and includes a microcomputer that performs system processing, and executes a user program.
A programmable controller having a display unit for performing display in proportion to the number of times of a specific process in a predetermined time.
請求項1記載のプログラマブルコントローラにおいて、
上記表示部は、デジタル表示を行うことを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1,
A programmable controller, wherein the display unit performs digital display.
請求項1記載のプログラマブルコントローラにおいて、
上記表示部は、アナログ表示を行うことを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1,
A programmable controller, wherein the display unit performs analog display.
請求項1〜3のいずれか1項に記載のプログラマブルコントローラにおいて、
上記マイコンは、実行する処理を重要処理群と通常処理群とに分類し、かつ、重要処理群の処理回数が増加すると通常処理群を処理する時間を短くすることを特徴とするプログラマブルコントローラ。
The programmable controller according to any one of claims 1 to 3,
A programmable controller characterized in that the microcomputer classifies the processing to be executed into an important processing group and a normal processing group, and shortens the time for processing the normal processing group as the number of times of processing of the important processing group increases.
請求項1〜4のいずれか1項に記載のプログラマブルコントローラにおいて、
処理群毎の終了時又は開始時に動作するカウンタを有することを特徴とするプログラマブルコントローラ。
The programmable controller according to any one of claims 1 to 4,
A programmable controller having a counter that operates at the end or start of each processing group.
JP2002259696A 2002-09-05 2002-09-05 Programmable controller Expired - Fee Related JP4285958B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002259696A JP4285958B2 (en) 2002-09-05 2002-09-05 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002259696A JP4285958B2 (en) 2002-09-05 2002-09-05 Programmable controller

Publications (2)

Publication Number Publication Date
JP2004102386A true JP2004102386A (en) 2004-04-02
JP4285958B2 JP4285958B2 (en) 2009-06-24

Family

ID=32260615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002259696A Expired - Fee Related JP4285958B2 (en) 2002-09-05 2002-09-05 Programmable controller

Country Status (1)

Country Link
JP (1) JP4285958B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064413B (en) * 2013-01-08 2014-12-10 台州神能电器有限公司 Programmable logic controller (PLC) and touch screen type water pump controller testing system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5457081A (en) * 1977-10-17 1979-05-08 Toshiba Corp Load indicator for control computer
JPS57194106U (en) * 1981-05-29 1982-12-09
JPH05274011A (en) * 1992-01-23 1993-10-22 Mitsubishi Electric Corp Programmable controller and its control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5457081A (en) * 1977-10-17 1979-05-08 Toshiba Corp Load indicator for control computer
JPS57194106U (en) * 1981-05-29 1982-12-09
JPH05274011A (en) * 1992-01-23 1993-10-22 Mitsubishi Electric Corp Programmable controller and its control method

Also Published As

Publication number Publication date
JP4285958B2 (en) 2009-06-24

Similar Documents

Publication Publication Date Title
US9128475B2 (en) Parallelized program control based on scheduled expiry of time signal generators associated with respective processing units
JPH0869386A (en) Process scheduling system
JP2003345612A5 (en)
JP2007140655A (en) Motion controller
US7168075B1 (en) Automation device and updating method
US6880029B2 (en) Programmable controller
JP2004102386A (en) Programmable controller
JP2001202258A (en) Rear time processor
EP0766156A1 (en) Programmable logic controller
CN106874129A (en) A kind of operating system process scheduling order determines method and control method
US7181741B2 (en) Apparatus and method to minimize blocking overhead in upcall based MxN threads
CN116126491A (en) Time-sharing scheduling method for embedded software tasks
JP2007004334A (en) Programmable controller
JP6796478B2 (en) Memory controller
JP6812727B2 (en) Safety control unit, safety control method, safety control program
JP2006004067A (en) Controller, and computer program
JPS63317834A (en) Ladder program processing system
JPH08166808A (en) Multitask type programmable controller
US20230409001A1 (en) Method and device for controlling the sequence of program parts, programming method, programming device
CN111309123B (en) Fan regulation and control method, device, equipment and medium
JPS62210511A (en) Method for executing sequence program in programmable controller
JPH0568726B2 (en)
JP2007257106A (en) Programmable controller
JP2538040B2 (en) Process priority setting method and multi-process management device
JP3890877B2 (en) Vehicle control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050603

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090317

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090324

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120403

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120403

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130403

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140403

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees