JPS59214908A - Display system of ladder diagram - Google Patents

Display system of ladder diagram

Info

Publication number
JPS59214908A
JPS59214908A JP58088700A JP8870083A JPS59214908A JP S59214908 A JPS59214908 A JP S59214908A JP 58088700 A JP58088700 A JP 58088700A JP 8870083 A JP8870083 A JP 8870083A JP S59214908 A JPS59214908 A JP S59214908A
Authority
JP
Japan
Prior art keywords
relay
sequence
displayed
display
screen
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
JP58088700A
Other languages
Japanese (ja)
Inventor
Sachihiro Nakajima
祥博 中島
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP58088700A priority Critical patent/JPS59214908A/en
Publication of JPS59214908A publication Critical patent/JPS59214908A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC

Abstract

PURPOSE:To retrieve a ladder diagram easily by displaying the picture number of a relay coil in a ladder diagram close to a relay contact. CONSTITUTION:A numerical control device 1 reads a working command from a paper tape 101a and transmits/receives data between the device 1 and a sequence controller 2. The controller 2 executes sequence processing on the basis of each instruction of a sequence program and transmits/receives data between the controller 2 and a working machine 3. The ladder diagrams and messages of the sequence program are displayed on a display device 101i. In the display, picture numbers are successively assigned from the head of the sequence program and the picture number (e.g. AAAA) is displayed. In a relay contact in the displayed ladder, the picture number of a relay coil corresponding to the contact is displayed under the relay contact.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、プログラマブルコントローラのシーケンスプ
ログラムを表示画面にラダー図の形式で表示するための
ラダー図表示方式に関し、特にリレー接点に対応するリ
レーコイルの画面を容易に把握しえることのできるラダ
ー図表示方式に関する0 従来技術 数値制御システムにおいては数値制御装置(操作盤を含
む)からの指令に基いて工作機械における各機械要素が
制御される。ところで、か\る数値制御システムにおい
ては従来、数値制御装置(以後、NC装置という)側と
機械側間に多数のリレ一群からなる強電回路が介在し、
NC指令(M機能命令、8機能命令、操作盤からの指令
等)により所定のリレーを動作させ、これによシ該NC
指令に応じた動作を機械要素に行わせていた。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a ladder diagram display method for displaying a sequence program of a programmable controller on a display screen in the form of a ladder diagram, and in particular to a screen of a relay coil corresponding to a relay contact. Related to a Ladder Diagram Display Method That Can Easily Understand 0 In prior art numerical control systems, each mechanical element in a machine tool is controlled based on commands from a numerical control device (including an operation panel). By the way, in such numerical control systems, conventionally, a strong electric circuit consisting of a group of many relays is interposed between the numerical control device (hereinafter referred to as the NC device) side and the machine side.
A predetermined relay is operated by an NC command (M function command, 8 function command, command from the operation panel, etc.), and the corresponding NC is thereby activated.
It made mechanical elements perform actions according to commands.

しかし、か\る従来のシステムにおいては装置が大型化
すると共に、多数のリレーを必要とすることからコスト
高となり、更にはリレーの誤動作等による信頼性の低下
を来たしていた。
However, in such conventional systems, the device becomes large and requires a large number of relays, resulting in high costs, and furthermore, reliability is lowered due to malfunction of the relays.

そこで、か\る強電回路の機能をプログラム処理による
シーケンスコントローラ(プログラマブル・シーケンス
・コントローラ)で行なう方式が主流を占めるようにな
ってきている。
Therefore, a system in which the functions of such high-power circuits are performed by a sequence controller (programmable sequence controller) based on program processing has become mainstream.

この様なプログラマブルコントローラでは、メモリにシ
ーケンスプログラムが記憶され、ジ−タンスプログラム
をプロセッサが実行することによって機械のシーケンス
制御を行うものである。一方、このプログラマブルコン
トローラにはCRT(陰極線管)等の表示装置が設けら
れており、メモリのシーケンスプログラムのラダー図や
メツセージ等が表示される様になっている。
In such a programmable controller, a sequence program is stored in a memory, and a processor executes the sequence program to perform sequence control of the machine. On the other hand, this programmable controller is provided with a display device such as a CRT (cathode ray tube), on which ladder diagrams, messages, etc. of the sequence program in the memory are displayed.

シーケンス制御のためのシーケンス・プログラムは強電
回路の機能を命令コードで論理的にプログラムしたもの
で、たとえば、第1図に示すリレー接点とリレーコイル
で示される強電回路の一部であるラダー図は、第2図の
如くプログラムされている。尚、シーケンスプログラム
におけるRD。
A sequence program for sequence control is a logical program of the functions of a high-voltage circuit using instruction codes. For example, the ladder diagram of a part of a high-voltage circuit shown by relay contacts and relay coils shown in Figure 1 is , is programmed as shown in Figure 2. Note that RD in the sequence program.

AND、WRT、OR,,0RNOT等はそれぞれ命令
コードで、RDは読出し命令、AND は論理積演算命
令、WRTは書込み命令、ORは論理和演算命令、0R
NOTは否定値との論理和命令である。又、10.0゜
2[10,1・・・は該命令コードを実行するデータメ
モリ上のアドレス(所定番地、所定ビットである。この
シーケンスプログラムの命令群の実行により、(a−b
)+c の論理演算が実行され、その演算結果(11w又はIO
′)が、データメモリの210番地の第1ビツト目に格
納される。
AND, WRT, OR,, 0RNOT, etc. are instruction codes respectively, RD is a read instruction, AND is a logical product operation instruction, WRT is a write instruction, OR is a logical sum operation instruction, 0R
NOT is an OR instruction with a negative value. 10.0°2[10,1... is the address (predetermined location, predetermined bit) on the data memory where the instruction code is executed. By executing the instruction group of this sequence program, (a-b
)+c logical operation is executed, and the operation result (11w or IO
') is stored in the first bit of address 210 of the data memory.

これを強電回路の動作で述べれば、リレー接点a、b、
cの接点状態に応じてリレーコイルdが励磁されるとい
うことになる。
To describe this in terms of the operation of a high-voltage circuit, relay contacts a, b,
This means that relay coil d is excited depending on the state of contact point c.

この様なシーケンスプログラムは、表示装置に第1図の
如く強電回路のリレー接点コイルとして表示され、動作
条件が容易に理解される様になっている。従って障害調
査等において係るシーケンスプログラムのラダー図を表
示装置に表示すれば、障害個所の把握に便利である。
Such a sequence program is displayed on a display device as a relay contact coil of a high-voltage circuit as shown in FIG. 1, so that the operating conditions can be easily understood. Therefore, displaying the ladder diagram of the sequence program on a display device when investigating a fault is convenient for understanding the location of the fault.

近年このシーケンスプログラムは高級化、複雑化してお
シ、例えば、NC工作機械の制御においては、ATC(
自動工具交換)、APC(自動部品交換)等の制御等も
シーケンスプログラムによって制御されている。この様
にシーケンスプログラムが複雑になると、表示装置の画
面に表示できるプログラム量に限シがあることから、全
てのシーケンスプログラムを表示するため、数十画面必
要とすることになる。
In recent years, this sequence program has become sophisticated and complex. For example, in the control of NC machine tools, ATC (
Controls such as automatic tool change) and APC (automatic parts change) are also controlled by sequence programs. When a sequence program becomes complicated in this way, there is a limit to the amount of programs that can be displayed on the screen of a display device, so several dozen screens are required to display all the sequence programs.

一方、リレー接点a、b、cには対応するリレーコイル
が存在し、リレーコイルは別のリレー接点によって動作
制御されることから、障害探索には、問題となりそうな
リレー接点を探し、これに対応するリレーコイルの動作
条件を追っていくことが必要になる。
On the other hand, there are relay coils that correspond to relay contacts a, b, and c, and the operation of the relay coils is controlled by another relay contact. It is necessary to follow the operating conditions of the corresponding relay coil.

従って、シーケンスプログラムが前述の如く複雑且つ大
量となシ、全てが一画面に表示出来なくなると、全ての
画面を順次表示して対応するリレーコイルを探索する必
要があシ、このための手間がかかるという欠点があり、
特に障害探索時には、原因を把握するまで長時間を要し
、オペレータに相当な手間を強いることになるという事
態が生じていた。
Therefore, if the sequence program is complex and large in size as mentioned above, and it becomes impossible to display all of them on one screen, it is necessary to display all the screens sequentially and search for the corresponding relay coil, which requires a lot of time and effort. There is a drawback that it takes
Particularly when searching for a fault, it takes a long time to figure out the cause, resulting in a situation where the operator is forced to spend a considerable amount of time and effort.

発明の目的 本発明の目的は、表示ラダー図のリレー接点に対応する
リレーコイルの画面を容易に把握、選択しうる様にした
ラダー図表示方式を提供するにある。
OBJECTS OF THE INVENTION An object of the present invention is to provide a ladder diagram display method that allows the display of relay coils corresponding to relay contacts in a displayed ladder diagram to be easily grasped and selected.

発明の概要 本発明では、シーケンスプログ2ムを格納するだめのメ
モリと、シーケンスプログ2ムを+Jシレ一点とリレー
コイルとの組合せによるラダー図の形式で表示するだめ
の表示装置との構成において、表示装置の画面に表示し
うるシーケンスプログラムの範囲毎に一連の画面番号を
付すとともにラダー図中のリレー接点に対し当該接点に
対応するリレーコイルに含まれる画面番号をリレー接点
の近傍に付して表示する様にしている。
SUMMARY OF THE INVENTION The present invention includes a memory for storing a sequence program 2 and a display device for displaying the sequence program 2 in the form of a ladder diagram in combination with one +J point and a relay coil. A series of screen numbers are attached to each range of sequence programs that can be displayed on the screen of the display device, and the screen number included in the relay coil corresponding to the relay contact in the ladder diagram is attached near the relay contact. I am trying to display it.

即ち、本発明では、膨大なプログラム中に存在するリレ
ー接点と対応するリレーコイルとの関係を表示画面単位
に付した画面番号によシ対応付け、これをリレー接点と
ともに表示し、対応するりし−コイルの検索を容易にし
ている。
That is, in the present invention, the relationship between the relay contacts existing in a huge program and the corresponding relay coils is associated with the screen number attached to each display screen, and this is displayed together with the relay contacts, and the corresponding relay coils are associated with each other. - Makes it easy to search for coils.

実施例 以下、本発明を図面に従い詳細に説明する。Example Hereinafter, the present invention will be explained in detail with reference to the drawings.

第6図は本発明のプログラマブル・シーケンス・コント
ローラ(以後PCという)の一実施例ブロック図である
FIG. 6 is a block diagram of one embodiment of the programmable sequence controller (hereinafter referred to as PC) of the present invention.

図中、1はNC装置、2はNC装置から別設されている
別置型のPC,3は工作機械である。
In the figure, 1 is an NC device, 2 is a separate PC installed separately from the NC device, and 3 is a machine tool.

数値制御装置1において、101aは加工指令が穿孔さ
れた紙テープ、1013’はこれら紙テープ等を読取る
紙テープリーダ、101bは加工テープに穿孔された加
工指令を記憶するランダムアクセス・メモ!J (RA
M) 、’ 101cは数値制御装置1を制御する制御
プロクラムが記憶されたリードオンリーメモリ (RO
M)、101dは加工指令プログラム又は制御プログラ
ムの各命令に応じた処理を行なう処理装置(CPU)、
101eはシーケンス・コントローラ2とN01間でデ
ータの授受を行なう送受信部でたとえばダイレクト・メ
モリ・アクセス・コントローラ、101fはX軸、Y@
方向移動量Xo、Yo及び送シ速度Fが入力されて公知
のパルス分配演算を実行し、分配パルスxp、 Ypを
図示しないサーボ回路へ出力するパルス分配演算回路、
101gはアドレス・データバス線である。101hは
マニュアル・データ・インプット装置(MDI)で、N
C1の操作パネルに取付けられたとえば加工指令データ
の追加、変更等において1ブロツクの加工指令データを
入力するために使用される。
In the numerical control device 1, 101a is a paper tape with machining commands perforated therein, 1013' is a paper tape reader that reads these paper tapes, etc., and 101b is a random access memo! that stores the machining commands punched in the machining tape. J (R.A.
M), '101c is a read-only memory (RO) in which a control program for controlling the numerical control device 1 is stored.
M), 101d is a processing unit (CPU) that performs processing according to each command of the machining instruction program or control program;
101e is a transmitting/receiving unit that exchanges data between the sequence controller 2 and N01, such as a direct memory access controller, 101f is an X axis, Y@
a pulse distribution calculation circuit that receives the directional movement amounts Xo, Yo and the feed speed F, executes a known pulse distribution calculation, and outputs the distribution pulses xp, Yp to a servo circuit (not shown);
101g is an address/data bus line. 101h is a manual data input device (MDI), N
It is attached to the operation panel of C1 and is used to input one block of machining command data, for example, when adding or changing machining command data.

1011はユニバーサル・ディスプレイ装置で、工具等
の現在位置等を表示する。尚、ディスプレイ装置MDI
を一体に構成してもよい。
1011 is a universal display device that displays the current position of tools and the like. In addition, the display device MDI
may be configured integrally.

一方、PC2では、202aはランダムアクセスメモリ
 (RAM)でアシ、シーケンスプログラムを格納する
ものである。
On the other hand, in the PC 2, 202a is a random access memory (RAM) that stores the sequence program.

202bはデータメモリで、第1図の強電回路の各リレ
ーを1ビツトに対応させそのオン/オフを11″または
10Mで表現して記憶する。たとえば操作盤から自動モ
ードが指令され\ば強電回路ではりv−a(AUT)が
オンするが、PC2ではデータメモリ202bの10番
目の第0ビツト目に111を記憶する。
Reference numeral 202b is a data memory that stores each relay in the high-voltage circuit shown in Fig. 1 corresponding to one bit, and expresses its on/off in 11'' or 10M.For example, if automatic mode is commanded from the operation panel, the high-voltage circuit Then v-a (AUT) is turned on, but the PC 2 stores 111 in the 10th 0th bit of the data memory 202b.

202Cは工作機械6との間でデータの入出力を司どる
データ入出力部、202dはシーケンスコントローラ主
体2を制御する制御プログラムを記憶t ルROM %
 202 eは制御プログラム及びシーケンスプログラ
ムに応じて所定のシーケンス処理を行なう処理装置、2
02fは送受信部でNC装置1との間でデータの授受を
行なうもの、202gはアドレス・データバス線である
202C is a data input/output unit that controls data input and output with the machine tool 6, and 202d is a ROM that stores a control program that controls the sequence controller main body 2.
202e is a processing device that performs predetermined sequence processing according to a control program and a sequence program;
02f is a transmitter/receiver unit that exchanges data with the NC device 1, and 202g is an address/data bus line.

第4図はデータ入出力装置202Cの詳細図で、DIは
データ入力回路で機械6側から送出されてくる各種リミ
ットスイッチ、リレー接点RC1〜RCn等の信号を受
けるレシーバR1〜Rnと、アンドゲート回MtiG+
〜Gnと、アドレスバスABUS上のアドレス信号をデ
コードして所定のアンドゲートを開き、各アンドゲート
出力をデータバスDBUS上に出力するデコーダDEC
,とを備えているO DOはデータ出力回路で、機械3へ出力される主軸正転
信号、主軸逆転信号等が記憶されるフリップ・フロップ
(ラッチ回路でもよい)L1〜Lmと、各7リツプ・7
0ツブL1〜Lmに対応して設けられ各7リツプ・フロ
ップ(FFという)の出力信号を機械3へ送出し°、リ
レーR1〜Rmを動作せしめるドライバD0〜Dmと、
アドレスバスABU8上のアドレス信号をデコードして
所定OFFをセット/リセット可能にすると共に、デー
タバスDBUS上のデータを所定のFFに記憶せしめる
デコーダDEC,とを備なえている。尚、CBUSはコ
ントロール信号授受用のコントロール信号バス、ABU
8はアドレスバス、DBUSはデータバス、t11〜t
1n 、 z、、〜72mはデータ入出力部202Cと
機械3側間を接続しデータ授受を行なうケーブルである
FIG. 4 is a detailed diagram of the data input/output device 202C, where DI is a data input circuit, and receivers R1 to Rn receive signals from various limit switches and relay contacts RC1 to RCn sent from the machine 6 side, and AND gates. timesMtiG+
~Gn, and a decoder DEC that decodes the address signal on the address bus ABUS, opens a predetermined AND gate, and outputs each AND gate output onto the data bus DBUS.
, and is a data output circuit, which includes flip-flops L1 to Lm (which may also be latch circuits) in which the spindle forward rotation signal, spindle reverse rotation signal, etc. output to the machine 3 are stored, and seven flip-flops each.・7
Drivers D0 to Dm are provided corresponding to the zero tubes L1 to Lm, and send output signals of seven lip-flops (FF) to the machine 3, and operate the relays R1 to Rm;
It is provided with a decoder DEC that decodes the address signal on the address bus ABU8 to enable setting/resetting of a predetermined OFF, and also stores the data on the data bus DBUS in a predetermined FF. Note that CBUS is a control signal bus for sending and receiving control signals, and ABU is a control signal bus for sending and receiving control signals.
8 is an address bus, DBUS is a data bus, t11 to t
Cables 1n, z, . . . 72m connect the data input/output section 202C and the machine 3 side to exchange data.

次にPC2の動作について説明する。Next, the operation of PC2 will be explained.

RAM202 aには、既に作成されたシーケンスプロ
グラムが格納されているので、ROM202dの制御プ
ログラムの制御によpcPU202eはRAM 202
 aからシーケンスプログラムの各命令を1つづつ順次
読出し、最初の命令から最後のシーケンスプログシム命
令までシーケンス処理を実行し、最後の命令処理を終了
すれば再び最初のシーケンスプログラム命令に戻シ、以
後サイクリックにシーケンスプログラム命令の処理を繰
返す0 この状態で、NC装置1からたとえば主軸正転指令MO
3が指令され\はM機能MP及びMコード信号Mi1.
M12を記憶すべきデータメモリ2[12bのアドレス
の対応ビットに11”が記憶される。
Since the sequence program that has already been created is stored in the RAM 202a, the pcPU 202e uses the RAM 202 under the control of the control program in the ROM 202d.
Each instruction of the sequence program is read one by one from a, sequence processing is executed from the first instruction to the last sequence program instruction, and when the last instruction processing is finished, the program returns to the first sequence program instruction, and thereafter. Processing of the sequence program command is repeated cyclically.0 In this state, for example, the main shaft normal rotation command MO is issued from the NC device 1.
3 is commanded and \ is the M function MP and M code signal Mi1.
11'' is stored in the corresponding bit of the address of data memory 2[12b where M12 is to be stored.

この記憶内容によって、CPU2o2eは)くス202
gを介し送受信部202Cに指令を与え、例えば、“1
′がデータ出力回路Do (第4図)の7リツプ・フロ
ップL1に記憶されドライツクD、、mAHを介して工
作機械3へ出力される。これにより、工作機械6のリレ
ーR,がオンし、主軸正転制御が実行される。そして、
主軸が正転すれば、たとえばリレー接点几C1がオンと
な9線1.、 、レシーバR+、 NアンドゲートG1
、データノ(スDBOBを介して主軸正転完了信号が)
くス202gを介しデータメモリ202b  (第6図
)の所定ピットに記憶される。しかる後、シーケンスプ
ログラム処理が継続され主軸正転完了がNC装置1に通
知され主軸正転のためのシーケンス処理が終了する。
Depending on this memory content, the CPU2o2e
A command is given to the transmitter/receiver 202C via g, for example, "1".
' is stored in the 7-lip-flop L1 of the data output circuit Do (FIG. 4) and output to the machine tool 3 via the drives D, . . . mAH. As a result, relay R of the machine tool 6 is turned on, and normal spindle rotation control is executed. and,
If the main shaft rotates in the normal direction, for example, the relay contact C1 will turn on (9 wires 1. , , receiver R+, N and gate G1
, Data No. (spindle normal rotation completion signal is sent via DBOB)
The data is stored in a predetermined pit of the data memory 202b (FIG. 6) via the bus 202g. Thereafter, the sequence program processing is continued, and the NC device 1 is notified of the completion of the spindle normal rotation, and the sequence processing for the spindle normal rotation ends.

上述のRAM202 cは、シーケンスプログラムを格
納するROM(リードオンリーメモリ)で構成しても良
く、NC装置1とPC2とを一体にし、各部を共用する
こともできる。
The RAM 202c described above may be configured with a ROM (read only memory) that stores a sequence program, or the NC device 1 and PC 2 may be integrated and each part may be shared.

さて、係るプログラマブルコントローラにおいテハ、ユ
ニバーサルディスプレイ装H1o1tにRAM202 
cのシーケンスプログラムのラダー図やメツセージを第
1図の如くに表示する機能を有している。
Now, regarding this programmable controller, the universal display device H1o1t has RAM202.
It has the function of displaying the ladder diagram and messages of the C sequence program as shown in FIG.

即ち、MDllolhからの表示指令によ#)NC1の
プロセッサ101dがバス101g、ダイレクトメモリ
アクセスコントローフ1oie%送受信部202f 、
バス202gを介しROM202dのシーケンスプログ
ラムを順次読出し、NC1のRAM1o1bへ格納し、
RAM101bの格納内容をディスプレイ1011へ転
送して、ディスプレイ1011の制御部から対応するパ
ターンを発生せしめ、ディスプレイ1011の画面にシ
ーケンスプログラムに対応するラダー図を第1図の如く
表示させている。
That is, according to the display command from MDllolh, the processor 101d of NC1 connects the bus 101g to the direct memory access controller 1oie% transmitter/receiver 202f,
Sequentially reads the sequence program from the ROM 202d via the bus 202g and stores it in the RAM 1o1b of the NC1,
The contents stored in the RAM 101b are transferred to the display 1011, a corresponding pattern is generated from the control section of the display 1011, and a ladder diagram corresponding to the sequence program is displayed on the screen of the display 1011 as shown in FIG.

この表示には、シーケンスプログラムの内MD1101
hで指定した部分又は障害発生時に自動的に検索された
アラームに該当するラダー図を表示することができる。
This display shows MD1101 of the sequence program.
It is possible to display a ladder diagram corresponding to the part specified in h or the alarm automatically searched for when a failure occurs.

さて、本発明では、ラダー図の表示においてリレー接点
とリレーコイルとの対応関係を明示している。
Now, in the present invention, the correspondence between relay contacts and relay coils is clearly shown in the ladder diagram display.

第5図は本発明の詳細な説明図であり、ディスプレイ1
011の表示画面への表示例を示しである。
FIG. 5 is a detailed explanatory diagram of the present invention, and the display 1
011 is displayed on the display screen.

本発明では、シーケンスプログラムの先頭からディスプ
レイの一画面に表示できる範囲毎に画面番号を順番に付
しである。そしてディスプレイの表示に当って、画面番
号を表示する。例えば、第5図(A)、(B)の左上に
示された[AAAA、J。
In the present invention, screen numbers are sequentially assigned to each range that can be displayed on one screen of the display from the beginning of the sequence program. Then, the screen number is displayed on the display. For example, [AAAA, J] shown in the upper left of FIGS.

I−BBBB Jの如く表示する。次に表示ラダー中の
リレー接点に対しては、その接点に対応するリレーコイ
ルの画面番号をリレー接点の下(近傍)に表示する。第
5図(A)では表示ラダー中のリレー接点MAに対し、
リレー接点MAに対応するリレーコイルの存在する画面
番号「BBBB Jが表示されている。このため、リレ
ー接点MAのリレーコイルの動作条件を調べたい時には
、MDlloliから画面番号「BBBB Jを入力す
れば、対応する画面番号のラダー図が第5図CB)の如
く表示され、リレー接点MAに対応するリレーコイルM
A’を含むラダー図が表示され、その動作条件(リレー
接点Me等)が容易に把握できる。
Display as I-BBBB J. Next, for each relay contact in the display ladder, the screen number of the relay coil corresponding to that contact is displayed below (near) the relay contact. In Fig. 5 (A), for relay contact MA in the display ladder,
The screen number "BBBB J" where the relay coil corresponding to the relay contact MA exists is displayed. Therefore, when you want to check the operating conditions of the relay coil of the relay contact MA, enter the screen number "BBBB J" from MDlloli. , the ladder diagram with the corresponding screen number is displayed as shown in Figure 5 CB), and the relay coil M corresponding to the relay contact MA is displayed.
A ladder diagram including A' is displayed, and its operating conditions (relay contact Me, etc.) can be easily understood.

このため、几0M202dに第2図に示したシーケンス
プログラムの各命令コードに応じリレーコイルの画面番
号領域を第6図(A)の如く設けて、ここに別途シーケ
ンスプログラム作成時に対応する亭 リレーコイルの画面番号をプログラム格納しておく。一
方、画面番号自体はプログラムのステップ番号との対応
関係は第6図(B)の如(RAM202 aにテーブル
として設ける。
For this reason, a relay coil screen number area is provided in the 0M202d as shown in Figure 6 (A) according to each instruction code of the sequence program shown in Figure 2, and a relay coil corresponding to the sequence program is created separately here. The screen number of is stored in the program. On the other hand, the correspondence between the screen number itself and the step number of the program is as shown in FIG. 6(B) (provided as a table in the RAM 202a).

他の方法としては、RAM2Q2a K画面番号とステ
ップ番号の対応テーブルの他に、各命令コードとリレー
コイルの画面番号との対応チー゛プルを設けても良い。
As another method, in addition to the correspondence table between RAM2Q2aK screen numbers and step numbers, a correspondence triple between each instruction code and the screen number of the relay coil may be provided.

又、これらテーブルはNC1のRAM101bに設けて
もよい。
Further, these tables may be provided in the RAM 101b of the NC1.

これらテーブルはプロセッサ202eが編集プログラム
によってROM202 dのシーケンスプログラムから
自動的に作成することができる。
These tables can be automatically created by the processor 202e from the sequence program in the ROM 202d using an editing program.

そして、ラダー図の表示に当っては、NC1のプロセッ
サ101dが、ROM202 dのシーケンスプログラ
ムを読出す他に、RAM202aのテーブルを検索し、
画面番号(及びリレーコイルの画面番号)も読出し、R
AM101bに格納し、画面編集して、ディスプレイ1
011に転送するととにより、第5図(A)又は(B)
の如くの表示が得られる。
When displaying the ladder diagram, the processor 101d of the NC1, in addition to reading the sequence program from the ROM 202d, searches the table in the RAM 202a.
Also read the screen number (and relay coil screen number), R
Store it in AM101b, edit the screen, and display 1
5 (A) or (B) depending on the transfer to 011.
A display like this is obtained.

この画面番号は、別途設けられたノー−トコビー装置に
よりディスプレイ1011のラダー図のノ・−トコピー
を取る際に、ノ・−トコピーのページ番号として記録さ
れ、ハードコピー図面と画面との対応関係を容易にして
いる。
This screen number is recorded as the page number of the notebook copy when a notebook copy of the ladder diagram on the display 1011 is taken using a separately installed notebook copying device, and is used to record the correspondence between the hard copy drawing and the screen. It's easy.

次に、係る画面番号の採番方法として、プログラムの変
更(特に追加)に対し次の様に考慮されている。即ち、
第6図に示す様に、画面番号は複数番号毎(例えば10
番おき)に付し、間に追加されたプログラムには、追加
の画面番号(10番おきの間の番号)をとる様にする。
Next, as a method of assigning screen numbers, the following considerations are taken into consideration for program changes (particularly additions). That is,
As shown in Figure 6, the screen number is divided into multiple numbers (for example, 10
Programs added in between will be assigned an additional screen number (a number between every 10th screen number).

この様にすることによシ、後続のプログラムの画面番号
がずれないから次の効果を生ずる。
By doing this, the screen numbers of subsequent programs will not deviate, resulting in the following effect.

第1に、プログラム追加以前にラダー図のハードコピー
を取っている場合には、画面番号がずれないから、全部
のハードコピーを取シ直す必要がなく、追加分だけのハ
ードコピーを取れば済む。
First, if you have made a hard copy of the ladder diagram before adding the program, the screen numbers will not change, so you do not need to redo all the hard copies, but only need to make a hard copy of the added part. .

第2に、シーケンスプログラムのプログラム量が多く、
数万個のリレー接点がある場合には、プログラムの追加
によシ、画面番号がずれる毎に前述のテーブルを変換し
、リレー接点に対応するリレーコイルの画面番号を取シ
直す必要がある。このため、プロセッサは例え演算速度
の早いもので処理しても、かなりの時間(数分)かかっ
てしまい、操作性が悪化する。本方法によって画面番号
がずれない様にすれば、追加プログラム分だけの処理で
良いから、追加処理のスピードアップが計れる。
Second, the amount of sequence programs is large.
If there are tens of thousands of relay contacts, it is necessary to convert the above-mentioned table every time the screen number shifts due to addition of a program, and to reset the screen number of the relay coil corresponding to the relay contact. For this reason, even if the processor has a high calculation speed, it will take a considerable amount of time (several minutes) and the operability will deteriorate. By using this method to prevent screen numbers from shifting, only the additional programs need to be processed, which can speed up the additional processing.

発明の詳細 な説明した様に、本発明によれば、一画面分のシーケン
スプログラムの範囲毎に先頭から一連の画面番号を付し
て、画面単位の検索を容易にするとともに、ラダー図中
のリレー接点に対し当該接点に対応するリレーコイルの
含まれる画面番号をリレー接点の近傍に付して表示して
いるので、リレー接点に対応するリレーコイルを含むラ
ダー図の検索が容易となるという効果を奏する。従って
障害検索時において障害原因の探索が極めて容易となり
、短時間に障害原因を把握でき、早急な回復、修復が司
能となる。
As described in detail, according to the present invention, a series of screen numbers are assigned from the beginning to each range of a sequence program for one screen, making it easy to search for each screen, and The screen number that includes the relay coil that corresponds to the relay contact is displayed near the relay contact, making it easier to search for ladder diagrams that include the relay coil that corresponds to the relay contact. play. Therefore, when searching for a fault, it is extremely easy to search for the cause of the fault, the cause of the fault can be grasped in a short time, and prompt recovery and repair can be carried out.

又、このだめの構成もテーブルを設けるだけで良く、容
易に実現できると。いう効果も奏する0尚、本発明を一
実施例により説明したが、本発明の主旨の範囲内で種々
の変形が可能であシ、これらを本発明の範囲から排除す
るものではない。
Also, the structure of this tank can be easily realized by simply providing a table. Although the present invention has been described with reference to one embodiment, various modifications may be made within the scope of the present invention, and these are not excluded from the scope of the present invention.

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

第1図は強電回路のラダー図の一例説明図、第2図は第
1図ラダー図のプログラム構成図、第3図は本発明の一
実施例ブロック図、第4図は第3図構成の要部構成図、
第5図は本発明の一実施例表示例説明図、第6図は本発
明による対応テーブル構成図である。 図中、1・・・NC,2・・・プログラマブルコントロ
ーラ、3・・・工作機械、101b、 202a ・R
AM 。 202d ・ROM 、 202e ・=プロセッサ、
1o11・・・ディスプレイ。 特許出願人   ファナック株式会社 代理人   弁理士 辻    實 外1名 第1 図 第 (A) 5図 (β)
Fig. 1 is an explanatory diagram of an example of a ladder diagram of a high-voltage circuit, Fig. 2 is a program configuration diagram of the ladder diagram in Fig. 1, Fig. 3 is a block diagram of an embodiment of the present invention, and Fig. 4 is an illustration of the configuration of Fig. 3. Main part configuration diagram,
FIG. 5 is an explanatory diagram of a display example of an embodiment of the present invention, and FIG. 6 is a diagram showing the configuration of a correspondence table according to the present invention. In the figure, 1...NC, 2...Programmable controller, 3...Machine tool, 101b, 202a・R
A.M. 202d ROM, 202e = processor,
1o11...display. Patent applicant Fanuc Co., Ltd. Agent Patent attorney Sangai Tsuji (1 person) Figure 1 Figure (A) Figure 5 (β)

Claims (2)

【特許請求の範囲】[Claims] (1)シーケンスプログラムが格納されたメモリと、該
シーケンスプログラムをリレー接点とリレーコイルの組
合せによるラダー図の形式で表示するための表示装置と
を有し、該表示装置の画面に表示しうるシーケンスプロ
グラムの範囲毎に一連の画面番号を付すとともに該ラダ
ー図中のリレー接点に対し当該接点に対応するリレーコ
イルの含まれる画面番号を該リレー接点の近傍に付して
表示することを特徴とするラダー図表示方式。
(1) It has a memory in which a sequence program is stored, and a display device for displaying the sequence program in the form of a ladder diagram based on a combination of relay contacts and relay coils, and the sequence can be displayed on the screen of the display device. A series of screen numbers are attached to each range of the program, and a screen number that includes a relay coil corresponding to the relay contact in the ladder diagram is attached and displayed near the relay contact. Ladder diagram display method.
(2)前記画面番号は複数番号毎に取り、画面番号の追
加に苅して該複数番号間の番号を割当てることを特徴と
する特許請求の範囲第(1)項記載のラダー図表示方式
(2) The ladder diagram display method according to claim (1), wherein the screen number is taken for each plurality of numbers, and the numbers between the plurality of numbers are assigned after adding the screen number.
JP58088700A 1983-05-20 1983-05-20 Display system of ladder diagram Pending JPS59214908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58088700A JPS59214908A (en) 1983-05-20 1983-05-20 Display system of ladder diagram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58088700A JPS59214908A (en) 1983-05-20 1983-05-20 Display system of ladder diagram

Publications (1)

Publication Number Publication Date
JPS59214908A true JPS59214908A (en) 1984-12-04

Family

ID=13950140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58088700A Pending JPS59214908A (en) 1983-05-20 1983-05-20 Display system of ladder diagram

Country Status (1)

Country Link
JP (1) JPS59214908A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62219005A (en) * 1986-03-19 1987-09-26 Hitachi Seiki Co Ltd Sequence program processor
JP7241979B1 (en) * 2022-02-01 2023-03-17 三菱電機株式会社 Maintenance support program, maintenance support device, maintenance support system, and maintenance support method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62219005A (en) * 1986-03-19 1987-09-26 Hitachi Seiki Co Ltd Sequence program processor
JP7241979B1 (en) * 2022-02-01 2023-03-17 三菱電機株式会社 Maintenance support program, maintenance support device, maintenance support system, and maintenance support method

Similar Documents

Publication Publication Date Title
US5157595A (en) Distributed logic control system and method
US4616307A (en) Programmable controller alarm display method
US5406473A (en) Programmable controller
US4415965A (en) Programmable sequence controller
US4858102A (en) Distributed logic control system and method
CA1305238C (en) Control system with diagnostic logic
US4994957A (en) System for simultaneously displaying all ladder diagram segments in which an operator designated relay appears as an input or output
JPH0683428A (en) Operation history display system for numerical controller
US4631465A (en) Tool display system of automatic tool changing apparatus
US5126956A (en) Method and apparatus for displaying segments of a ladder diagram which turn on an operator specified relay
JPH08123515A (en) Display system for sequence program
EP0097444A2 (en) Ladder diagram display method
JPH103307A (en) Numerical controller
JP2743622B2 (en) Numerical control unit
JPS59153205A (en) Numerical control system
US4326263A (en) Method and apparatus for controlling a plurality of like equipments
JPS59214908A (en) Display system of ladder diagram
EP0092312B1 (en) Method and apparatus for displaying ladder diagrams
JPH0580815A (en) Message display system for pc
US5189604A (en) Distributed logic control system and method
EP0089194B1 (en) Method and apparatus for displaying ladder diagrams
US5323308A (en) Programmable control system
JPS5851301A (en) Programmable sequence controller
JPS6217805A (en) Display method for program error in nc device
US5257181A (en) Programmable control system