JPS62152045A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS62152045A
JPS62152045A JP29232085A JP29232085A JPS62152045A JP S62152045 A JPS62152045 A JP S62152045A JP 29232085 A JP29232085 A JP 29232085A JP 29232085 A JP29232085 A JP 29232085A JP S62152045 A JPS62152045 A JP S62152045A
Authority
JP
Japan
Prior art keywords
timer
service processing
time
memory
user program
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
JP29232085A
Other languages
Japanese (ja)
Inventor
Kazuaki Tomita
富田 一彰
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP29232085A priority Critical patent/JPS62152045A/en
Publication of JPS62152045A publication Critical patent/JPS62152045A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the responsibility of a man-machine interface by setting optionally the timer data that prescribes the executing time of a single service processing action. CONSTITUTION:A group of control input signals given to an input circuit 5 are fetched once by a data memory 4 and undergo the arithmetic operations. Then the contents of the memory 4 including those arithmetic results are sent out through an output circuit 6. A CPU 1 carries out repetitively the user program stored in a memory 3 and decides a new logic of the group of control output signals according to the logic change and the history of a group of control input/output signals. Then the CPU 1 has a round of the execution of the user program and starts a timer 11 before the service processing is started. The service processing is stopped temporarily if the timer 11 has a time-up state during execution of the service processing. Then another processing action is carried out. As a result, the executing time of a single service processing action is prescribed by the timer 11.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、各種の機械設備の自動制御に利用されてい
るプログラマブルコントローラ(以下PCと称す)の改
良に関する。 (従来の技術) PCでは、ユーザプログラムを繰返し実行することで、
v制御人出力信号群の論理変化および履歴に応じて制御
出力信号群の新な論理を決定していく。そして、ユーザ
プログラムの実行処理の繰返し周期が短い程、制御入出
力信号間の応答性が高くなり、より良い制御が行なえる
。 ユーザプログラムの実行処理以外にも、プログラミング
コンソールやプリンタとか表示@置といった周辺機器と
結合し、与えられたコンンドを処理したり、データを授
受したりするサービス処理も行なう。また、ウオッチド
グタイマのリセットや、メモリやバスのヂエツクなどの
システムの監視の処理も行なう。さらに機種によっては
、他のPCとの間でデータ授受を行なうものもある。 一般のPCでは、第3図に示すように、ユーザプログラ
ムの実行処理と、サービス処理と、その他の処理とを順
番に高速に繰返す構成となっている。これら全体の1回
の処理時間(Tl+T2十73)がスキ1アンタイムと
呼ばれている。制御の応答性を決めるユーザプログラム
の実行周期はこのスキャンタイムで決まる。したがって
、サービス処理のR11T2やその他の処理の時間T3
を短くすれば、スキ1アンタイムが短くなり、制御応答
性が向上する。 このような設計思想で、従来においては、サービス処理
の割当て時間T2を必要最小限に設定し、一定に固定し
ていた。 サービス処理では、あるまとまった仕事を何回にも分け
て実行する。サービス処理の割当て時間(サービス時間
)が短いと、ある仕事を完rするまでの実行回数が多く
なる。このことは、例えばプログラミングコンソールで
PCにあるデータを要求してから、そのデータがコンソ
ールの表示器に表示されるまでの時局が長くかかるとい
ったことを意味している。つまり、マン・マシン・イン
ターフェイスの反応性があまり良くないのである。 この反応性よりも、PCの主機能である制御の応答性の
方を重視している訳である。 (発明が解決しようとする問題点) PCの制御応答性は高いぼど良い。一般的には確かにそ
うである。しかし、総てのユーザが高速応答性を必要と
する使い方をするとは限らない。 制御対象によっては、PCの応答性はあまり問題になら
ない。そのような使い方をした場合、従来のPCでは、
前述したマン・マシン・インターフェイスの反応の鈍さ
が目立ち、それがユーザの不満になる。 この発明は上述した従来の問題点に鳳みなされたもので
、その目的は、実際の使用状況に合わせて、制御ill
応答性を重視したり、サービス処理によるマン・マシン
・インターフェイスの反応性を重視する、といった使い
分けをユーザレベルで行なえるようにしたPCを提供す
ることにある。 (問題点を解決するための手段) そこでこの発明では、上記サービス処理の1回の実行時
間を規定するタイマデータを任意に可変設定できるよう
に構成した。 (実施例) 第1図はこの発明の一実施例によるPCの全体的な構成
を示している。このPCは、CPU (演算制御部)1
と、システムプログラムメモリ2と、ユーザプログラム
メモリ3と、データメしり4と、入力回路5と、出力回
路6と、インターフェイス回路7および8を備える。 入力回路5に多数の制御入力信号群が接続される。出力
回路6は多数の制御比り信号リレーを有し、これに制御
対象機器が接続される。入力回路5に与えられた制御入
力信号群はデータメモリ4に一度取り込まれて演算に供
され、その演算によってデータメモリ4に生成された制
御出力信号群を出力回路6から外部に出力する。CPU
1はメモリ3に格納されたユーザプログラムを繰返し実
行することで、制御入出力信号群の論理変化および履歴
に応じた制御出力信号群の新たな論理を決定していく。 以上の動作が第2図の71コーチヤードにお【プるステ
ップ101のユーザプログラムの実行処理である。 インターフェイス回路7や8はプログラミングコンソー
ル9.プリンタ10などの周!1機器が接続される。C
PLllはこれら周辺機器とのコミュニケーションのf
f、II御や、与えられたコマンドの処理や、要求され
た内部データの転送処理を行なう。 これがサービス処理で、第2図のステップ103である
。またシステムの監視などの処理は、その他の処理とし
てステップ104に示す。 ユーザプログラム実行処理を−1巡してサービス処理を
開始するに先立って、ステップ102で、第1図のタイ
マ11を起動する。そしてサービス処理を実行中にタイ
マ11がタイムアツプすると、処理を中断してステップ
104のその他の処理に進む。その後ステップ101に
戻り、以上の処理を繰返す。 上記の説明で明かなように、サービス処理の1回の実行
時間(サービス時間)はタイマ11によって規定される
。この発明のPCにおいては、タイマ11の設定時間(
タイマデータ)をニープレベルで任意に可変設定できる
のである。 第1図の実施例では、ディジタルスイッチなどの設定器
12を設け、これの設定内容で上記タイマデータを可変
するようになっている。つまり第2図のイニシャル処理
において、設定器12の内容をCPU1が読み取り、そ
の内容に従ってタイマ11のタイマデータを設定する。 具体的には、タイマデータの基準値を一定に決めておき
、その時間に対して何%増減するかを設定器12で指定
する方式とする。        他の実施例としては、上記タイマデータの増減をプログ
ラミングコンンール9からのコマンドで処理する方式と
しても良い。また、ユーザプログラムでタイマデータを
増減させることも可能である。つまりタイマデータを増
減させるためのユーザ命令を定義し、その命令の実行条
件をもユーザプログラム上で設定し、条件が成立したと
きにタイマデータを指定値に変更するように構成すれば
良い。 (発明の効果) 以上詳細に説明したように、この発明のPCにあっては
、サービス処理の割当て時間を1−ザレベルで可変設定
できるので、制御応答性があまり高くなくても良いよう
な使い方をした場合に、サービス時間を適宜に増加し、
マン・マシン・インターフェイスの反応性を高めること
ができるなど、融通性に冨むPCとなる。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to improvement of a programmable controller (hereinafter referred to as PC) used for automatic control of various mechanical equipment. (Prior art) In a PC, by repeatedly executing a user program,
v The new logic of the control output signal group is determined in accordance with the logic changes and history of the controller output signal group. The shorter the repetition period of the user program execution process, the higher the responsiveness between control input and output signals, and the better control can be performed. In addition to executing user programs, it also connects to peripheral devices such as programming consoles, printers, and displays, and performs service processing such as processing given commands and exchanging data. It also performs system monitoring processes such as resetting the watchdog timer and checking memory and buses. Furthermore, depending on the model, there are some that exchange data with other PCs. As shown in FIG. 3, a general PC is configured to repeat user program execution processing, service processing, and other processing in order at high speed. The total one-time processing time (Tl+T2+73) is called 1 time. The execution cycle of the user program, which determines control responsiveness, is determined by this scan time. Therefore, the time R11T2 of service processing and the time T3 of other processing
By shortening , the gap time will be shortened and control responsiveness will be improved. Based on this design concept, in the past, the allocated time T2 for service processing was set to the minimum necessary and fixed at a constant value. In service processing, a certain set of tasks is divided into multiple executions. When the allocated time (service time) for a service process is short, the number of executions required to complete a certain task increases. This means, for example, that it takes a long time from when a programming console requests data from a PC until the data is displayed on the console's display. In other words, the responsiveness of the man-machine interface is not very good. This means that more emphasis is placed on the responsiveness of control, which is the main function of the PC, than on this responsiveness. (Problems to be Solved by the Invention) The control responsiveness of the PC is high and good. Generally speaking, this is true. However, not all users use devices that require high-speed response. Depending on the object to be controlled, the responsiveness of the PC does not matter much. When using a conventional PC in this way,
The aforementioned man-machine interface is noticeably slow to respond, which causes user dissatisfaction. This invention was made in consideration of the above-mentioned conventional problems, and its purpose is to control illumination according to the actual usage situation.
The purpose of the present invention is to provide a PC that allows the user to use the PC appropriately, such as emphasizing responsiveness or emphasizing the responsiveness of a man-machine interface through service processing. (Means for Solving the Problems) Therefore, in the present invention, the timer data that defines the execution time of one time of the above-mentioned service processing can be set arbitrarily and variably. (Embodiment) FIG. 1 shows the overall configuration of a PC according to an embodiment of the present invention. This PC has a CPU (arithmetic control unit) 1
, a system program memory 2, a user program memory 3, a data memory 4, an input circuit 5, an output circuit 6, and interface circuits 7 and 8. A large number of control input signal groups are connected to the input circuit 5. The output circuit 6 has a large number of control signal relays, to which a device to be controlled is connected. The control input signal group applied to the input circuit 5 is once taken into the data memory 4 and subjected to calculation, and the control output signal group generated in the data memory 4 by the calculation is outputted from the output circuit 6 to the outside. CPU
1 repeatedly executes a user program stored in the memory 3 to determine new logic of the control output signal group in accordance with logic changes and history of the control input/output signal group. The above-mentioned operation is the execution process of the user program in step 101 in the coachyard 71 in FIG. Interface circuits 7 and 8 are programming consoles 9. Around 10 printers! 1 device is connected. C
PLll is the f of communication with these peripheral devices.
f, II control, processing of given commands, and transfer of requested internal data. This is the service process, which is step 103 in FIG. Further, processing such as system monitoring is shown in step 104 as other processing. Before the user program execution process is executed for -1 cycle and service processing is started, in step 102, the timer 11 shown in FIG. 1 is activated. If the timer 11 times up while executing the service process, the process is interrupted and the process proceeds to step 104 for other processes. Thereafter, the process returns to step 101 and the above process is repeated. As is clear from the above description, the time for one execution of service processing (service time) is defined by the timer 11. In the PC of this invention, the setting time of the timer 11 (
(timer data) can be set arbitrarily at the neep level. In the embodiment shown in FIG. 1, a setting device 12 such as a digital switch is provided, and the above-mentioned timer data can be varied according to the setting contents of the setting device 12. That is, in the initial processing shown in FIG. 2, the CPU 1 reads the contents of the setter 12 and sets the timer data of the timer 11 according to the contents. Specifically, the standard value of the timer data is fixed and the setter 12 is used to specify by what percentage the timer data should be increased or decreased. As another embodiment, a method may be adopted in which the increase/decrease in the timer data is processed by commands from the programming console 9. It is also possible to increase or decrease timer data using a user program. In other words, it is sufficient to define a user command for increasing or decreasing timer data, set the execution conditions for the command on the user program, and change the timer data to a specified value when the condition is satisfied. (Effects of the Invention) As explained in detail above, in the PC of the present invention, the allocated time for service processing can be variably set at the 1-the-level, so it can be used in a way that does not require very high control responsiveness. If you do so, we will increase the service time accordingly,
It is a highly flexible PC that can improve the responsiveness of the man-machine interface.

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

第1図はこの発明の一実施例によるPCのブロック図、
第2図は同上PCの動作フローチA7−ト、第3図はP
Cの一般的な作用説明図である。 11・・・タイマ、12・・・設定器。
FIG. 1 is a block diagram of a PC according to an embodiment of the present invention.
Figure 2 is the operation flowchart of the above PC, A7-Chart, and Figure 3 is P
It is a general action explanatory diagram of C. 11...Timer, 12...Setting device.

Claims (1)

【特許請求の範囲】[Claims] ユーザプログラムの実行処理とプログラミングコンソー
ルなどの周辺機器に対するサービス処理やその他の処理
を順番に繰返すプログラマブルコントローラにおいて、
上記サービス処理の1回の実行時間を規定するタイマデ
ータを任意に可変設定できるように構成したことを特徴
とするプログラマブルコントローラ。
In a programmable controller that sequentially repeats user program execution processing, service processing for peripheral devices such as programming consoles, and other processing,
A programmable controller characterized in that the timer data defining the execution time of one service process can be arbitrarily set variably.
JP29232085A 1985-12-26 1985-12-26 Programmable controller Pending JPS62152045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29232085A JPS62152045A (en) 1985-12-26 1985-12-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29232085A JPS62152045A (en) 1985-12-26 1985-12-26 Programmable controller

Publications (1)

Publication Number Publication Date
JPS62152045A true JPS62152045A (en) 1987-07-07

Family

ID=17780247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29232085A Pending JPS62152045A (en) 1985-12-26 1985-12-26 Programmable controller

Country Status (1)

Country Link
JP (1) JPS62152045A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007257106A (en) * 2006-03-22 2007-10-04 Fuji Electric Fa Components & Systems Co Ltd Programmable controller
JP2008146357A (en) * 2006-12-11 2008-06-26 Fuji Electric Fa Components & Systems Co Ltd Programmable controller and support device thereof
JP2015114901A (en) * 2013-12-12 2015-06-22 三菱日立パワーシステムズ株式会社 Controller, design device, control method and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010343A (en) * 1983-06-30 1985-01-19 Fujitsu Ltd Time slice value control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6010343A (en) * 1983-06-30 1985-01-19 Fujitsu Ltd Time slice value control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007257106A (en) * 2006-03-22 2007-10-04 Fuji Electric Fa Components & Systems Co Ltd Programmable controller
JP2008146357A (en) * 2006-12-11 2008-06-26 Fuji Electric Fa Components & Systems Co Ltd Programmable controller and support device thereof
JP2015114901A (en) * 2013-12-12 2015-06-22 三菱日立パワーシステムズ株式会社 Controller, design device, control method and program

Similar Documents

Publication Publication Date Title
JPS62152045A (en) Programmable controller
JPH0420496B2 (en)
JP2861962B2 (en) Computer program simulation apparatus and method
JPH0934518A (en) Control processor
JPS61161507A (en) Direct input/output system of programmable controller
JP3449189B2 (en) Programmable controller
KR100254779B1 (en) Multiple task high speed execution apparatus in the plc system
JPS616704A (en) Programmable controller
JPH0573296A (en) Microcomputer
JPS63284604A (en) Programmable controller
JP4535663B2 (en) State machine control method and state machine
JPS5922145A (en) Interruption control system
JPH02311903A (en) Programmable controller
JPS63153635A (en) Specification system for data transfer speed
JPS62162104A (en) Flow chart type programmable controller
JPH0527991A (en) Electronic processor
JPH09146786A (en) Conflict test system and its method
JPS62152004A (en) Programmable controller
JPS61241843A (en) Information processor
JPS62162106A (en) Program changing method for programmable controller
JPS60205635A (en) Computer control system
JPS62162107A (en) Program changing method for programmable controller
JPS61288232A (en) Output instruction control system
JPH047739A (en) Controlling system for instruction executing time
KR20000046715A (en) Equipment control method using personal computer foundation's multi-tasking