JPS63289605A - Sequence control monitor system - Google Patents

Sequence control monitor system

Info

Publication number
JPS63289605A
JPS63289605A JP12447787A JP12447787A JPS63289605A JP S63289605 A JPS63289605 A JP S63289605A JP 12447787 A JP12447787 A JP 12447787A JP 12447787 A JP12447787 A JP 12447787A JP S63289605 A JPS63289605 A JP S63289605A
Authority
JP
Japan
Prior art keywords
program
sequence
sequence program
control
machine tool
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
JP12447787A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Hirosuke Chiba
千葉 弘介
Toru Watanabe
徹 渡辺
Yasuyuki Ino
泰行 伊野
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 JP12447787A priority Critical patent/JPS63289605A/en
Publication of JPS63289605A publication Critical patent/JPS63289605A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To monitor a signal state on an optional position of a program by connecting a sequence program forming device to a programmable control device and inserting a monitoring function instruction to a prescribed position of the program. CONSTITUTION:A monitoring function instruction SUB.MONIT is conversationally inserted into a prescribed position of the program by the sequence program forming device 5 and the program is stored in a program memory 3b of the programmable control device 3 and also in a work RAM 5c of the device 5. Under said status, a numerical control system is started, an NC device 1 is allowed to execute numerical control processing based upon the NC program and the device 3 is allowed to execute sequence control based upon the program. The device 3 reads out the instruction SUB.MONIT during the execution of the control and temporarily stores signals outputted from the NC device 1 and a machine tool 2 at that time in a RAM 3c to execute the succeeding program execution.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明はシーケンス制御モニタ方式に係り、特に数値制
御システムにおけるプログラマブル・コント覧−ル装置
(PMC装置)のシーケンス制御モニタ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a sequence control monitoring system, and particularly to a sequence control monitoring system for a programmable control device (PMC device) in a numerical control system.

〈従来技術〉 数値制御システムにおいてはNC装置側からの指令に基
づいて工作機械の各機械要素が制御される。そして、N
C装置側と工作機械間の信号の授受制御は、NC装置側
に設けられたPMC装置がシーケンスプログラム(ラダ
ープログラム)に基づいて実行する。
<Prior Art> In a numerical control system, each mechanical element of a machine tool is controlled based on commands from an NC device. And N
Control of the transmission and reception of signals between the C device side and the machine tool is executed by a PMC device provided on the NC device side based on a sequence program (ladder program).

かかるシーケンスプログラムはNC装置側と工作機械間
のデータ授受を司どる強電回路の機能を命令コードとオ
ペランドで論理的にプログラムしたものであり、シーケ
ンスプログラム作成装置により作成されてROMに書き
込まれ、該ROMがPMC装置に装着されてシーケンス
制御を実行するようになっている。
Such a sequence program is a logical program of the functions of the high-power circuit that controls data exchange between the NC device side and the machine tool using instruction codes and operands, and is created by a sequence program creation device, written to the ROM, and programmed with the corresponding A ROM is installed in the PMC device to perform sequence control.

〈発明が解決しようとしている問題点〉ところで、作成
したシーケンスプログラムが正しくプログラマの思い通
9に動作するか及びプログラムエラーがないか等をチェ
ックするなめに該シーケンスプログラムを用いてシニミ
レーシヲンする必要がある。
<Problems to be Solved by the Invention> By the way, in order to check whether the created sequence program operates correctly as expected by the programmer and whether there are any program errors, it is necessary to perform synchronization using the sequence program. .

しかし、従来は任意の時点における信号状態がどうなっ
ており、しかも該信号状態においてどのようなシーケン
ス制御が行われるかを識別できなかった。このためシュ
ミレーシ嘗ンが容易に行えないという問題があった。
However, conventionally, it has not been possible to identify what the signal state is at any given time, and what kind of sequence control is to be performed in that signal state. For this reason, there is a problem in that simulation cannot be performed easily.

以上から本発明の目的はシーケンスプログラム上の任意
の位置におけろ信号状態並びに該信号状態におけるシー
ケンス制御をモニタできるシーケンス制御モニタ方式を
提供することである。
From the foregoing, it is an object of the present invention to provide a sequence control monitoring system that can monitor signal states at arbitrary positions on a sequence program and sequence control in the signal states.

く問題点を解決するための手段〉 図は本発明のシーケンス制御モニタ方式にかかる数値制
御システムのブキック図である。
Means for Solving the Problems> The figure is a diagram of a numerical control system according to the sequence control monitor system of the present invention.

1はNC装置、2は工作機械、3はプログラマブル・コ
ントロール装置(PMC装置)、4はデータ授受制御部
、5はシーケンスプログラム作成装置である。
1 is an NC device, 2 is a machine tool, 3 is a programmable control device (PMC device), 4 is a data exchange control unit, and 5 is a sequence program creation device.

又、SQPはシーケンスプログラム、CTPは管理ソフ
トウェアである。
Further, SQP is a sequence program, and CTP is management software.

く作用〉 PMCNC装置3−ケンスプログラム作成装置5をデー
タ授受可能に接続すると共にシーケンスプログラムSQ
Pの所定個所にモニタ用の機能命令(SUB MONI
T)を挿入しておく。
Function> The PMCNC device 3 and the sequence program creation device 5 are connected so that data can be exchanged, and the sequence program SQ is
A monitor function command (SUB MONI
Insert T).

2MC装置3はシーケンス制御実行中にモニタ用機能命
令が読み出されると、その時点におけるNC装置1及び
工作機械2からの信号をシーケンスプログラム作成装置
5に転送する。
When a monitor function command is read out during execution of sequence control, the 2MC device 3 transfers the signals from the NC device 1 and the machine tool 2 at that time to the sequence program creation device 5.

シーケンスプログラム作成装置5は転送されてきた信号
を用いて2MC装置3と同一のシーケンスプログラムを
実行し、リレー接点やリレーコイルのオン/オフが識別
可能なように該シーケンスプログラムに応じたラダー図
を作成してディスプレイ画面に描画する。
The sequence program creation device 5 executes the same sequence program as the 2MC device 3 using the transferred signals, and creates a ladder diagram according to the sequence program so that on/off of relay contacts and relay coils can be identified. Create and draw on the display screen.

〈実施例〉 図はNGシステムのブロック図であり、1は数値制御装
置(NC装置)、2は工作機械、3はプログラマブル・
コントロール装f[(PMC装置1)、4はデータ授受
制御部、5はシーケンスプログラム作成装置である。
<Example> The figure is a block diagram of the NG system, where 1 is a numerical control device (NC device), 2 is a machine tool, and 3 is a programmable
The control device f[(PMC device 1), 4 is a data exchange control unit, and 5 is a sequence program creation device.

NC装置1はNCプログラムデータに基づいて所定のN
C制御を行って機械可動部(工具またはテーブル)を移
動させ、2MC装置3はシーケンスプログラムSQPに
基づいてNC装置1からのM−、S−、T−機能命令及
び工作機械2からの接点信号等に応じた所定のシーケン
ス制御を実行し、該処理結果をNC装置1に転送すると
共に、処理結果に基づいて工作機械2の各機械要素を制
御する。NC装置1とPMC装置3間のデジタル信号の
授受は、たとえば共通RAMとベスアービク(バス制御
部)を備えたデータ授受制御部4を介して行われる。
The NC device 1 performs a predetermined N based on the NC program data.
C control is performed to move the machine movable part (tool or table), and the 2MC device 3 receives M-, S-, and T-function commands from the NC device 1 and contact signals from the machine tool 2 based on the sequence program SQP. A predetermined sequence control is executed according to the above, and the processing results are transferred to the NC device 1, and each mechanical element of the machine tool 2 is controlled based on the processing results. Digital signals are exchanged between the NC device 1 and the PMC device 3 via a data exchange control section 4 that includes, for example, a common RAM and a bus control section.

2MC装置3はコンピュータ構成になっており、プロセ
ッサ3aと、プログラムメモリ3bと、ワークRA M
 3 cと、デジタル信号の入出力装置(DI/DO装
置)3dと、R3232Cインタフエース3eを有して
いる。プログラムメモリ3bにはシーケンスプログラム
SQPや該シーケンスプログラムを走らせたり、その他
の処理を実行させるための管理ソフトウェアCTPが記
憶され、ワークRA M 3 cにはNC装置1や機械
3との間で授受されろ信号のオン/オフが”1”、”0
”で記憶される。
The 2MC device 3 has a computer configuration, and includes a processor 3a, a program memory 3b, and a work RAM.
3c, a digital signal input/output device (DI/DO device) 3d, and an R3232C interface 3e. The program memory 3b stores a sequence program SQP and management software CTP for running the sequence program and executing other processes. Filter signal on/off is “1”, “0”
” will be remembered.

シーケンスプログラムSQPは非常停止等の緊急処理を
要するハイレベル(第ルベル)のプログラム部分と、工
作機械やNC装置からのデータに基づいた処理(NC装
置等との同期処理が要求される処理)を実行する第2レ
ベルのプログラム部分と、メツセージ作成等PMC装置
側で勝手にできる′処理(同期処理が不要)を実行する
ローレベル(第3レベル)のプログラム部分に区分され
ており、所定の位置にモニタ用の機能命令(SUBMO
N I T)が挿入されており、又第2レベルのプロダ
ラム部分PR2は複数のサブプログラム部分SP1〜S
Pnに分割されている。尚、かかるシーケンスプログラ
ムにおいては、所定時間毎にたとえば16m5ec毎に
割込パルス(タイマ割込)が発生すると、まず第ルベル
のプログラム部分PR1が全て実行され、該第1プログ
ラム部分の実行後に第2プログラム部分PR2の所定の
サブプログラム部分S P i  (i = 1 、2
 、  ・・)が実行され、しかろ後16 m5ecの
残時間の間第3レベルのプログラム部分PR3の未実行
位置から該第3レベルのプログラム部分が実行されるよ
うになっている。そして、第2レベルの最後のサブプロ
グラム部分の実行が終了すれば、2MC装置3の管理プ
ログラムはシーケンスプログラムの処理結果をNC装置
1及び機械側2に出力すると共に、これらNC装置や機
械から出されている新たな信号を内蔵のRAMに記憶し
て上記シーケンスプログラム処理を継続する。
The sequence program SQP includes high-level program parts that require emergency processing such as emergency stops, and processing based on data from machine tools and NC equipment (processing that requires synchronization with NC equipment, etc.). It is divided into a second level program part that executes, and a low level (third level) program part that executes processes that can be done on the PMC device side (no synchronization required) such as message creation. Function instructions for monitor (SUBMO)
N I T) is inserted, and the second level program part PR2 has a plurality of subprogram parts SP1 to S
It is divided into Pn. In this sequence program, when an interrupt pulse (timer interrupt) occurs every predetermined time, for example, every 16 m5ec, the entire program portion PR1 of the first level is executed, and after the execution of the first program portion, the second program portion is executed. A predetermined subprogram portion S P i (i = 1, 2
, . . ) are executed, and the third level program portion is then executed from the unexecuted position of the third level program portion PR3 for the remaining time of 16 m5ec. When the execution of the last subprogram part of the second level is completed, the management program of the 2MC device 3 outputs the processing results of the sequence program to the NC device 1 and the machine side 2, and also outputs the processing results from these NC devices and machines. The new signal that has been updated is stored in the built-in RAM, and the above sequence program processing is continued.

シーケンスプログラム作成装置5はコンピュータ構成に
なっており、プロセッサ5aと、プログラムメモリ5b
と、ワークRAM5cと、グラフィックディスプレイ装
置5dと、キーボード5eと、R3232Cインタフエ
ース5fを有している。プログラムメモリ5bにはシー
ケンスプログラム作成用及びシュミレーション実行用の
システムプログラムが記憶され、ワークRAM5cには
2MC装置3のシーケンスプログラムSQPと同一のシ
ーケンス7プログラムが記憶されている。
The sequence program creation device 5 has a computer configuration, and includes a processor 5a and a program memory 5b.
, a work RAM 5c, a graphic display device 5d, a keyboard 5e, and an R3232C interface 5f. The program memory 5b stores a system program for creating a sequence program and executing a simulation, and the work RAM 5c stores a sequence 7 program that is the same as the sequence program SQP of the 2MC device 3.

以下、本発明の全体的動作を説明する。The overall operation of the present invention will be explained below.

シーケンスプログラム作成装置5で対話的に、所定の個
所にモニタ用の機能命令(SUB MONIT)を挿入
して成るシーケンスプログラムSQPを作成し、該シー
ケンスプログラムを2MC装置3のプログラムメモリ3
bに記憶する。又、該シーケンスプログラムはシーケン
スプログラム作成装置5のワークRAM5cに記憶させ
ておく。
The sequence program creation device 5 interactively creates a sequence program SQP by inserting a monitor function command (SUB MONIT) into a predetermined location, and stores the sequence program in the program memory 3 of the 2MC device 3.
Store in b. Further, the sequence program is stored in the work RAM 5c of the sequence program creation device 5.

この状態で、数値制御システムを起動すると、NC装置
1はNCプログラムに基づいて数値制御処理を行い、2
MC装置3はシーケンスプログラムに基づいてシーケン
ス制御を実行する。
When the numerical control system is started in this state, the NC device 1 performs numerical control processing based on the NC program.
The MC device 3 executes sequence control based on a sequence program.

2MC装置3はシーケンス制御実行中にモニタ用機能命
令(SUB MONIT)が読み出されると、その時点
におけるNC装置1及び工作機械2からの信号をワーク
RA M 3 cに一時的に格納すると共に、以降のシ
ーケンスプログラムの実行を継続する。そして、所定の
タイミングで、すなわちモニタ用機能命令(SUB  
MONIT)を読出した後の第3レベルのプログラム部
分で前記ワークRAM3cに格納した信号i2!R32
32Cインタフェース3eを介してシーケンスプログラ
ム作成装置5に転送する。このように、第3レベルのプ
ログラム部分で転送処理を行うように構成したから、優
先度が高い第1、第2レベルのプログラム部分のシーケ
ンス処理がモニタ用機能命令に影響されることな(従来
と同一速度で実行されうろ。
When a monitor function command (SUB MONIT) is read out during sequence control execution, the 2MC device 3 temporarily stores the signals from the NC device 1 and the machine tool 2 at that point in the work RAM 3c, and subsequently Continue execution of the sequence program. Then, at a predetermined timing, that is, a monitor function command (SUB
The signal i2! stored in the work RAM 3c in the third level program portion after reading MONIT). R32
The data is transferred to the sequence program creation device 5 via the 32C interface 3e. In this way, since the configuration is such that the transfer processing is performed in the third level program section, the sequence processing of the first and second level program sections, which have high priority, is not affected by the monitor function command (conventionally). It will run at the same speed.

尚、当然のことながら第3レベルの処理に要する時間は
長くなる。
Note that, as a matter of course, the time required for the third level processing becomes longer.

シーケンスプログラム作成装置5は転送されてきた信号
をワークRAM5cに格納する。しかる後、シーケンス
プログラム作成装置5は該信号を用いてRA M 5 
cに記憶されであるシーケンスプログラムを実行する。
The sequence program creation device 5 stores the transferred signal in the work RAM 5c. After that, the sequence program creation device 5 uses the signal to write the RAM 5
A sequence program stored in c is executed.

そして、前記転送されてきた信号の論理じ1″、′0”
)及びシーケンスプログラムの実行結果に基づいてラダ
ー図上のリレー接点やリレーコイルのオン/オフが識別
可能となるように(たとえば色分けして)シーケンスプ
ログラムに応じたラダー図を作成してディスプレイ装置
5dのディスプレイ画面に描画する。
Then, the logic of the transferred signal is 1'', '0''
) and the display device 5d creates a ladder diagram according to the sequence program so that on/off of relay contacts and relay coils on the ladder diagram can be identified (for example, by color-coding) based on the execution results of the sequence program. draw on the display screen.

シーケンスプログラムのプログラマはオン/オフ識別可
能に描画されたラダー図を参照して、モニタ用機能命令
が押入された場所におけろ信号状態及び該信号状態にお
けるシーケンス制御がどのよう行われなかを把握するこ
とができる。
The programmer of the sequence program refers to the ladder diagram drawn so that ON/OFF can be distinguished, and understands the signal state at the place where the monitor function command is inserted and how the sequence control is performed in that signal state. can do.

尚、シーケンスプログラム作成装置5は先頭からシーケ
ンスプログラムを実行してもよいし、モニタ用機能命令
以降からシーケンスプログラムを実行してラダー図を描
画するようにしてもよい。
The sequence program creation device 5 may execute the sequence program from the beginning, or may execute the sequence program from the monitor function command onward to draw the ladder diagram.

〈発明の効果〉 以上本発明によれば、2MC装置にシーケンスプログラ
ム作成装置を接続すると共にシーケンスプログラムの所
定個所にモニタ用の機能命令を挿入しておき、2MC装
置はモニタ用の機能命令によ1)NC装置及び工作機械
からの信号をシーケンスプログラム作成装置に転送し、
シーケンスプログラム作成装置は転送されてきた信号を
用いて2MC装置と同一のシーケンスプログラムを実行
し、リレー接点やリレーコイルのオン/オフが識別可能
に該シーケンスプログラムに応じたラダー図を作成して
ディスプレイ画面に描画するように構成したから、シー
ケンスプログラム上の任意の位置における信号状態並び
に該信号状態によるシーケンス制御をモニタすることが
できる。
<Effects of the Invention> According to the present invention, a sequence program creation device is connected to the 2MC device, and a function instruction for monitoring is inserted at a predetermined location in the sequence program, and the 2MC device is configured to read the function instruction for monitoring. 1) Transfer signals from the NC device and machine tool to the sequence program creation device,
The sequence program creation device executes the same sequence program as the 2MC device using the transferred signals, creates and displays a ladder diagram according to the sequence program that allows the ON/OFF status of relay contacts and relay coils to be identified. Since it is configured to draw on the screen, it is possible to monitor the signal state at any position on the sequence program and the sequence control based on the signal state.

又、シーケンスプログラム作成装置に転送された信号を
マニュア(コマンド等)で変更した後、上記モニタ処理
の実行及び処理結果の表示をすれば、その次に転送され
る信号に対するモニタ実行も可能になる。そして、この
事によって実際にシーケンスプログラムを変更する前に
シーケンスプログラム作成装置上だけでモニタできるこ
とになる。
In addition, if the signals transferred to the sequence program creation device are changed manually (commands, etc.), and the above monitoring processing is executed and the processing results are displayed, it becomes possible to monitor the next transferred signal. . This allows the sequence program to be monitored only on the sequence program creation device before it is actually changed.

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

図は本発明のシーケンス制御モニタ方式にかかる数値制
御システムのブロック図である。 1・・NC装置、 2・・工作機械、 3・・プログラマブル・コントロール装置、4・・デー
タ授受制御部、
The figure is a block diagram of a numerical control system according to the sequence control monitor method of the present invention. 1. NC device, 2. Machine tool, 3. Programmable control device, 4. Data exchange control unit,

Claims (1)

【特許請求の範囲】 NC装置と、工作機械と、シーケンスプログラムに基づ
いてNC装置と工作機械間のデータ授受を制御するプロ
グラママブル・コントロール装置(PMC装置)を備え
た数値制御システムにおけるシーケンス制御モニタ方式
において、 PMC装置にシーケンスプログラム作成装置を接続する
と共に、前記シーケンスプログラムの所定個所にモニタ
用の機能命令を挿入しておき、PMC装置は前記モニタ
用の機能命令によりNC装置及び工作機械からの信号を
シーケンスプログラム作成装置に転送し、 シーケンスプログラム作成装置は転送されてきた信号を
用いてPMC装置と同一のシーケンスプログラムを実行
すると共に、リレー接点やリレーコイルのオン/オフが
識別可能に該シーケンスプログラムに応じたラダー図を
作成してディスプレイ画面に描画することを特徴とする
シーケンス制御モニタ方式。
[Claims] Sequence control in a numerical control system that includes an NC device, a machine tool, and a programmable control device (PMC device) that controls data exchange between the NC device and the machine tool based on a sequence program. In the monitor method, a sequence program creation device is connected to the PMC device, and a function command for monitoring is inserted at a predetermined place in the sequence program, and the PMC device receives information from the NC device and the machine tool using the function command for monitoring. The signal is transferred to the sequence program creation device, and the sequence program creation device uses the transferred signal to execute the same sequence program as the PMC device, and also identifies the on/off status of the relay contacts and relay coils. A sequence control monitor method characterized by creating a ladder diagram according to a sequence program and drawing it on a display screen.
JP12447787A 1987-05-21 1987-05-21 Sequence control monitor system Pending JPS63289605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12447787A JPS63289605A (en) 1987-05-21 1987-05-21 Sequence control monitor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12447787A JPS63289605A (en) 1987-05-21 1987-05-21 Sequence control monitor system

Publications (1)

Publication Number Publication Date
JPS63289605A true JPS63289605A (en) 1988-11-28

Family

ID=14886485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12447787A Pending JPS63289605A (en) 1987-05-21 1987-05-21 Sequence control monitor system

Country Status (1)

Country Link
JP (1) JPS63289605A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH103307A (en) * 1996-06-17 1998-01-06 Fanuc Ltd Numerical controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH103307A (en) * 1996-06-17 1998-01-06 Fanuc Ltd Numerical controller

Similar Documents

Publication Publication Date Title
US5553297A (en) Industrial control apparatus
US5193189A (en) Programmable controller with multiple priority level task processing
US4742443A (en) Programmable controller with function chart interpreter
US4937777A (en) Programmable controller with multiple task processors
CN110663006B (en) Method for performing failover of programmable logic controller and controlling physical system
US4714999A (en) Numerical control method
JP3456692B2 (en) Data processing device
US6711448B2 (en) Setting display apparatus for a programmable controller
JPS63289605A (en) Sequence control monitor system
JP7419956B2 (en) Information processing device, information processing method and program
JP2690937B2 (en) Multitask monitoring method in PMC device
GB2244828A (en) Programmable controller
JPS63284604A (en) Programmable controller
JPS5941214B2 (en) Condition monitoring method
JPS62243008A (en) Signal trace controlling system for pmc
JP2695930B2 (en) Intelligent I / O module
JPS6170610A (en) Numerical controller
JPH02114302A (en) Numerical control device
CN114137854A (en) Multifunctional robot teaching simulation workstation
KR920003747B1 (en) Nc control method
JPH07120163B2 (en) PMC signal trace control system
JP2002297209A (en) Sequence program storing method in sequence controller
JP2692477B2 (en) I / O device status confirmation method
JPS60134907A (en) Control method of multi-operator system
JPH04142601A (en) Programmable controller