JPH07120176B2 - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH07120176B2 JPH07120176B2 JP16976687A JP16976687A JPH07120176B2 JP H07120176 B2 JPH07120176 B2 JP H07120176B2 JP 16976687 A JP16976687 A JP 16976687A JP 16976687 A JP16976687 A JP 16976687A JP H07120176 B2 JPH07120176 B2 JP H07120176B2
- Authority
- JP
- Japan
- Prior art keywords
- sequence
- emergency
- programmable controller
- group
- sequences
- 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.)
- Expired - Fee Related
Links
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Numerical Control (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、NC装置に一体的に組み込まれて使用されるプ
ログラマブルコントローラに関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a programmable controller that is used by being integrally incorporated in an NC device.
(従来の技術) NC装置に組み込まれて使用されるプログラマブルコント
ローラにあっては、前記NC装置の主制御部及び外部機器
と接続される入出力装置との間で所定の信号の授受を行
いつつ多数のシーケンスをサイクリックに実行する。外
部機器とは、非常停止ボタン、オーバトラベル検出スイ
ッチ、原点復帰リミットスイッチなどセンサ類や、各種
ソレノイド、各種ランプなどアクチュエータ類である。(Prior Art) In a programmable controller used by being incorporated in an NC device, a predetermined signal is transmitted and received between the main control unit of the NC device and an input / output device connected to an external device. Executes a large number of sequences cyclically. The external devices are sensors such as an emergency stop button, an overtravel detection switch, a home position return limit switch, actuators such as various solenoids and various lamps.
従来のプログラマブルコントローラにあっては、多数の
シーケンスに順次のアドレスを付け、先頭アドレスから
末尾アドレスにかけて順次実行してゆくものである。In a conventional programmable controller, sequential addresses are added to a large number of sequences, and the sequences are sequentially executed from a start address to an end address.
この場合、例えば、単位シーケンスの実行時間を10μ
s、シーケンス(ステップ)数を900とすると、サイク
ル時間は9msとなる。In this case, for example, the execution time of the unit sequence is 10μ
If s and the number of sequences (steps) are 900, the cycle time is 9 ms.
(発明が解決しようとする問題点) しかしながら、上記の如き従来よりのプログラマブルコ
ントローラにあっては、多数のシーケンスを順次サイク
リックに実行してゆく構成であったため、シーケンス数
の増加に伴って処理速度が遅れるという問題点があっ
た。(Problems to be Solved by the Invention) However, the conventional programmable controller as described above has a configuration in which a large number of sequences are sequentially and cyclically executed. There was a problem that the speed was delayed.
例えば、前記のシーケンス数が900の例では、非常停止
に最大9msの遅れが生じている。又、前記原点復帰リミ
ットスイッチにあっては、処理速度の遅れによって停止
誤差が生じている。For example, in the example in which the number of sequences is 900, the emergency stop has a maximum delay of 9 ms. Further, in the origin return limit switch, a stop error occurs due to a delay in processing speed.
そこで、本発明は、NC装置に一体的に組み込まれるプロ
グラマブルコントローラにおいて、緊急を有するシーケ
ンスについて処理速度を速めることを目的とする。Therefore, it is an object of the present invention to speed up the processing speed of a sequence having an emergency in a programmable controller integrated in an NC device.
[発明の構成] (問題点を解決するための手段) 上記問題点を解決するための本発明は、NC装置の主制御
部及び外部機器と接続され入出力装置との間で所定の信
号の授受を行いつつ多数のシーケンスをサイクリックに
実行してゆくプログラマブルコントローラにおいて、前
記多数のシーケンスを緊急を要する緊急シーケンスグル
ープと緊急を要さない複数の通常シーケンスグループと
に分けてグループ形成し、前記緊急シーケンスグループ
を各通常シーケンスグループの間に介在させつつ全シー
ケンスをサイクリックに実行してゆくことをを特徴とす
る。[Structure of the Invention] (Means for Solving the Problems) The present invention for solving the above problems is to provide a predetermined signal between an input / output device connected to a main control unit of an NC device and an external device. In a programmable controller that cyclically executes a large number of sequences while transmitting and receiving, the large number of sequences are divided into an emergency sequence group that requires an emergency and a plurality of normal sequence groups that do not require an emergency to form a group, and The feature is that the entire sequence is cyclically executed while interposing the emergency sequence group between each normal sequence group.
(作用) 本発明では、緊急を要するシーケンスグループが複数の
通常のシーケンスグループの各間に挿入されるので、グ
ループ数をn、各グループのシーケンス数をm、単位の
シーケンスを実行するのに要する時間をΔt、緊急を要
するグループの処理サイクル時間をCt、全シーケンスの
サイクル時間をCTとすると、 Ct=2・m・Δt …(1) CT=2・(n−1)m・ΔT …(2) となり、この場合、緊急を要するシーケンスの処理速度
が、従来のものに対し、 S=n/2 (3) 倍速くなる。(Operation) In the present invention, since an urgent sequence group is inserted between each of a plurality of normal sequence groups, the number of groups is n, the number of sequences of each group is m, and it is necessary to execute a unit sequence. If the time is Δt, the processing cycle time of the urgent group is Ct, and the cycle time of the entire sequence is C T , then Ct = 2 · m · Δt (1) C T = 2 · (n−1) m · ΔT (2) In this case, the processing speed of the urgent sequence is S = n / 2 (3) times faster than the conventional one.
(実施例) 以下、添字図面を用いて本発明の実施例を説明する。(Examples) Examples of the present invention will be described below with reference to the accompanying drawings.
第1図はNC装置に対するプログラマブルコントローラ
(以下PCと省略する)の位置づけを示すブロック図であ
る。FIG. 1 is a block diagram showing the positioning of a programmable controller (hereinafter abbreviated as PC) with respect to the NC device.
図示のように、PC1は、NC装置3のメインソフト5と接
続されると共に、機械7に対しDi(デジタルインプッ
ト)9及びDo(デジタルアウトプット)11を介して接続
されている。機械7は、具体的には、非常停止ボタン、
オーバトラベル検出スイッチ、原点復帰リミットスイツ
チなどセンサ類や、各種ソレノイド、各種ランプなどア
クチュエータ類の各機器に細分される。As shown in the figure, the PC 1 is connected to the main software 5 of the NC device 3 and is also connected to the machine 7 via Di (digital input) 9 and Do (digital output) 11. The machine 7 is, specifically, an emergency stop button,
It is subdivided into sensors such as overtravel detection switches and home return limit switches, and actuators such as solenoids and lamps.
PC1は、CPU13とメモリ(ROM及びRAM)15を内蔵してい
る。The PC 1 has a CPU 13 and a memory (ROM and RAM) 15 built therein.
メモリ15は、第2図にメモリマップで示すように、コン
トローラプログラム(シーケンス)エリア15a、ビット
展開用RAMエリア15b、コミュニケーションエリア15c、D
i及びDoエリア15d、メモリマップドI/Oエリア15eなどに
区分されている。The memory 15 includes a controller program (sequence) area 15a, a bit expansion RAM area 15b, a communication area 15c, and a D area, as shown in the memory map in FIG.
It is divided into an i / Do area 15d, a memory mapped I / O area 15e, and the like.
上記構成のPCにおいて、NC装置3に電源が投入される
と、メインソフト5によりPC1に起動がかけられ、PC1は
ループ状態となり、周期的にシーケンスプログラムの実
行を行う。In the PC having the above configuration, when the NC device 3 is powered on, the main software 5 activates the PC1, the PC1 enters a loop state, and the sequence program is periodically executed.
第3図は、本例で適用されるシーケンスのラダー図であ
る。FIG. 3 is a ladder diagram of a sequence applied in this example.
図示のように、本例のシーケンスは、緊急を要する緊急
シーケンスグループG1と、緊急を要さない8種の通常シ
ーケンスグループG2〜G9にグループ分けされている。各
グループのシーケンスのステップ数は100であるとす
る。又、各ステップの実行に要する時間は100μsであ
るとする。As shown in the figure, the sequence of this example is divided into an emergency sequence group G1 that requires an emergency and eight normal sequence groups G2 to G9 that do not require an emergency. The number of steps in the sequence of each group is 100. The time required to execute each step is 100 μs.
第4図は実行サイクルのタイムチャート、第5図は処理
の内容を示すフローチャートである。FIG. 4 is a time chart of the execution cycle, and FIG. 5 is a flowchart showing the contents of processing.
第5図に示すように、本例では、ステップ501でイニシ
ャル処理を行ってのち、ステップ502で緊急シーケンス
グループG1を実行し、ステップ503〜508で前に実行した
次の通常シーケンスグループG2〜G9を実行する。As shown in FIG. 5, in this example, after the initial processing is performed in step 501, the emergency sequence group G1 is executed in step 502, and the next normal sequence group G2 to G9 executed previously in steps 503 to 508. To execute.
従って、本例では、第4図に示すように、緊急シーケン
スグループG1が各通常シーケンスグループG2〜G8の間に
介在されて実行されるので、2msの単位で1回実行さ
れ、全通常シーケンスG2〜G9を実行してのち緊急シーケ
ンスグループG1を実行するのに対し、その処理速度は4.
5倍速くなる。Therefore, in this example, as shown in FIG. 4, since the emergency sequence group G1 is executed by being interposed between the normal sequence groups G2 to G8, the emergency sequence group G1 is executed once in a unit of 2 ms and the entire normal sequence G2 is executed. ~ G9 is executed and then the emergency sequence group G1 is executed, while the processing speed is 4.
5 times faster.
言い換えれば、従来、非常停止の際、最大9msの遅れを
生じていたのに対し、この遅れを4.5倍少なくすること
ができる訳である。又、原点復帰リミットスイッチ信号
が出されてからの停止制御に際に最大9msの遅れを生じ
ていたのに対し、これを最大2msに押えることができ、
停止位置をそれだけ正確にできる訳である。In other words, in the past, a maximum delay of 9 ms occurred during an emergency stop, but this delay can be reduced by 4.5 times. Also, while there was a maximum delay of 9 ms in stop control after the home return limit switch signal was output, this can be suppressed to a maximum of 2 ms,
The stop position can be made so accurate.
一方、通常シーケンスグループG2〜8は、従来9msのサ
イクルで実行されていたのに対し、これが18msとなる
が、これらシーケンスは緊急を要さないランプ類などで
あるので、この程度の遅れは何ら支障がないものであ
る。On the other hand, the normal sequence groups G2 to 8 are conventionally executed in a cycle of 9 ms, but this is 18 ms, but since these sequences are lamps that do not require emergency, there is no delay of this extent. There is no obstacle.
上記実施例では、各グループにおけるシーケンス数を同
一とした例を拳げたが、この数は必ずしも同一でなくと
も良い。In the above embodiment, the number of sequences in each group is the same, but this number does not necessarily have to be the same.
又、上記実施例では、緊急シーケンスグループの数が単
数である例を示したが、緊急度に応じ緊急グループ数を
複数とし、例えば、これらグループを各通常シーケンス
グループの間と一つ飛ばしの通常シーケンスグループの
間に介在させるようにしても良い。Further, in the above embodiment, an example in which the number of emergency sequence groups is singular is shown, but the number of emergency groups is plural according to the degree of urgency, and for example, these groups are normally skipped between each normal sequence group. You may make it interpose between sequence groups.
なお、本発明は、上記実施例に限定されるものではな
く、適宜の設計的変更を行うことにより、他の態様でも
実施し得るものである。The present invention is not limited to the above embodiment, but can be implemented in other modes by making appropriate design changes.
[発明の効果] 以上の通り、本発明は、処理シーケンスを緊急を要する
緊急シーケンスグループと緊急を要さない複数の通常シ
ーケンスグループとに分けてグループ形成し、緊急シー
ケンスグループを各通常シーケンスグループの間に介在
させつつ全シーケンスをサイクリックに実行してゆくプ
ログラマブルコントローラであるから、緊急を要するシ
ーケンスをグループ数に応じて迅速に実行することがで
き、非常停止、原点復帰信号の検出、オーバトラベル位
置検出など緊急を要する処理を速かに行うことができ、
NC装置の性能をそれだけ向上させることができる。[Effects of the Invention] As described above, the present invention divides a processing sequence into an emergency sequence group that requires an emergency and a plurality of normal sequence groups that do not require an emergency, and forms a group. Since this is a programmable controller that cyclically executes all sequences while intervening between them, it is possible to quickly execute urgent sequences according to the number of groups, and detect emergency stop, home return signal detection, and overtravel. You can quickly perform urgent processing such as position detection,
The performance of the NC device can be improved accordingly.
第1図はNC装置内に対するプログラマブルコントローラ
の位置づけを示すブロック図、第2図はプログラマブル
コントローラのメモリマップ、第3図は本例で適用され
るシーケンスのラダー図、第4図は実行サイクルのタイ
ムチャート、第5図は処理の内容を示すフローチャート
である。 図面中、1はプログラマブルコントローラ、3はNC装
置、5はメインソフト、7は機械、9はデジタルインプ
ット、11はデジタルアウトプット、13はCPU、15はメモ
リである。FIG. 1 is a block diagram showing the positioning of the programmable controller in the NC device, FIG. 2 is a memory map of the programmable controller, FIG. 3 is a ladder diagram of the sequence applied in this example, and FIG. 4 is the execution cycle time. The chart and FIG. 5 are flowcharts showing the contents of the processing. In the drawing, 1 is a programmable controller, 3 is an NC device, 5 is main software, 7 is a machine, 9 is a digital input, 11 is a digital output, 13 is a CPU, and 15 is a memory.
Claims (1)
入出力装置との間で所定の信号の授受を行いつつ多数の
シーケンスをサイクリックに実行してゆくプログラマブ
ルコントローラにおいて、前記多数のシーケンスを緊急
を要する緊急シーケンスグループと緊急を要さない複数
の通常シーケンスグループとに分けてグループ形成し、
前記緊急シーケンスグループを各通常シーケンスグルー
プの間に介在させつつ全シーケンスをサイクリックに実
行してゆくことを特徴とするプログラマブルコントロー
ラ。1. A programmable controller which is connected to a main control section of an NC device and an external device and cyclically executes a large number of sequences while exchanging predetermined signals with an input / output device. The sequence is divided into an urgent sequence group that requires urgency and a plurality of normal sequence groups that do not require urgency to form a group,
A programmable controller which cyclically executes all sequences while interposing the emergency sequence group between each normal sequence group.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16976687A JPH07120176B2 (en) | 1987-07-09 | 1987-07-09 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16976687A JPH07120176B2 (en) | 1987-07-09 | 1987-07-09 | Programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6414608A JPS6414608A (en) | 1989-01-18 |
| JPH07120176B2 true JPH07120176B2 (en) | 1995-12-20 |
Family
ID=15892456
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16976687A Expired - Fee Related JPH07120176B2 (en) | 1987-07-09 | 1987-07-09 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07120176B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6870234B2 (en) * | 2016-08-02 | 2021-05-12 | 富士電機株式会社 | Control device, control system and control method |
-
1987
- 1987-07-09 JP JP16976687A patent/JPH07120176B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6414608A (en) | 1989-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2121222A (en) | Interruption handling in data transmission system | |
| US8281051B2 (en) | Method and device for determining time in a bus system and corresponding bus system | |
| EP3869745B1 (en) | Production system, communication method, and program | |
| JP4396077B2 (en) | Servo control system | |
| US5487013A (en) | System and method for reading operating parameters into an operationally ready proximity switch | |
| JPH07120176B2 (en) | Programmable controller | |
| US6529785B1 (en) | Jog control for industrial control network | |
| EP3869744A1 (en) | Production system, communication method, and program | |
| CA2463778A1 (en) | Station device for a high performance communication system | |
| KR101504903B1 (en) | Virtual slave for industrial distributed network | |
| EP0111251A1 (en) | Data transmission system | |
| JP6878705B1 (en) | Communication devices, communication systems, communication methods, and programs | |
| US20080126497A1 (en) | Controller Apparatus with Shared Expansion Connection and Method for the same | |
| EP0416330B1 (en) | Programmable controller | |
| JPH0683223B2 (en) | Programmable controller link unit | |
| US5818351A (en) | Data transfer system | |
| JPH0584547B2 (en) | ||
| JPS5827494A (en) | Time division multiplex transmission system | |
| JP3069409B2 (en) | Self-diagnosis method of interrupt response time of multiplex transmission system | |
| SU955093A1 (en) | Device for processing pickup data | |
| JP2511856B2 (en) | Micro Processor | |
| SU1575219A2 (en) | Device for transmission of telemetric information | |
| JPH038617B2 (en) | ||
| JPS61259495A (en) | Lighting control system | |
| JP2020071520A (en) | Controller and method for controlling communication control unit included in controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |