JPH07210232A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH07210232A
JPH07210232A JP6002895A JP289594A JPH07210232A JP H07210232 A JPH07210232 A JP H07210232A JP 6002895 A JP6002895 A JP 6002895A JP 289594 A JP289594 A JP 289594A JP H07210232 A JPH07210232 A JP H07210232A
Authority
JP
Japan
Prior art keywords
program
numerical
controller
pmc
programmable machine
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
JP6002895A
Other languages
Japanese (ja)
Inventor
Yasushi Onishi
靖史 大西
Hirosuke Chiba
弘介 千葉
Toshinori Murakami
都志徳 村上
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 JP6002895A priority Critical patent/JPH07210232A/en
Publication of JPH07210232A publication Critical patent/JPH07210232A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a numerical controller containing a programmable machine controller which can set the control specifications of the machine controller equal to the axial control specifications of the numerical controller. CONSTITUTION:A programmable machine controller 20 possesses an NC program calling function instruction 21 to retrieve an NC program 11 of a number designated by a parameter out of the registered NC programs and to set the coincident program 11 in an executable state.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は数値制御装置に関し、特
にラダーシーケンスプログラムを実行するプログラマブ
ル・マシン・コントローラを内蔵した数値制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical controller, and more particularly to a numerical controller incorporating a programmable machine controller for executing a ladder sequence program.

【0002】[0002]

【従来の技術】プログラマブル・マシン・コントローラ
(以下PMCという)を内蔵した数値制御装置において
は、PMC管理ソフトウェアと数値制御(以下NCとい
う)ソフトウェアとが2種類独立に存在している。PM
C管理ソフトウェアは主に、ラダー、パスカルあるいは
Cなどの言語によって組まれた工作機械を制御するシー
ケンスプログラムを実行させるためのもので、NCプロ
グラムは主に、GコードのNCプログラムで軸を制御す
るなどの仕事をしている。これらのソフトウェアにおい
て、NCプログラムについては数値制御装置のプロセッ
サで実行され、PMCのシーケンスプログラムはPMC
がプロセッサを持っていないものについては数値制御装
置のプロセッサで実行され、PMCがプロセッサを持っ
ているものについてはそのPMCのプロセッサが、独立
に、非同期で実行されている。
2. Description of the Related Art In a numerical controller incorporating a programmable machine controller (hereinafter referred to as PMC), two types of PMC management software and numerical control (hereinafter referred to as NC) software exist independently. PM
The C management software is mainly for executing a sequence program for controlling a machine tool built in a language such as ladder, pascal or C, and the NC program is mainly for controlling an axis by a G code NC program. And other jobs. In these software, the NC program is executed by the processor of the numerical controller, and the PMC sequence program is executed by the PMC.
If the PMC does not have a processor, it is executed by the processor of the numerical controller, and if the PMC has a processor, the processor of the PMC is executed independently and asynchronously.

【0003】ところで、アプリケーションによっては数
値制御装置の制御軸数では不足する場合や、後になって
もう1軸追加したいというような場合がある。このよう
な場合、数値制御装置自体が制御軸をオプションで追加
できる仕様になっているものは数値制御装置による付加
軸の制御ができるが、そうでない場合にはPMCで付加
軸の制御をすることがある。
By the way, depending on the application, there are cases where the number of control axes of the numerical control device is insufficient, or there is a case where it is desired to add another axis later. In such a case, if the numerical control device itself has a specification that a control axis can be added as an option, the additional axis can be controlled by the numerical control device, but if not, control the additional axis by PMC. There is.

【0004】このPMCによる軸制御を行う場合には、
数値制御装置との複雑な信号のハンドシェイク処理を伴
う制御処理はPMC側で負担している。また、数値制御
装置によってラダープログラムの制御を行う場合には、
PMCと数値制御装置とのインタフェースを利用し、数
値制御装置の制御と連係したラダープログラムの作成を
行うようにしている。
When performing axis control by this PMC,
The PMC side bears the control processing involving the handshake processing of complicated signals with the numerical control device. In addition, when controlling the ladder program with the numerical controller,
The interface between the PMC and the numerical controller is used to create a ladder program linked to the control of the numerical controller.

【0005】[0005]

【発明が解決しようとする課題】しかし、PMCの側で
も軸制御を行おうとすると、NCの軸制御する本来のソ
フトウェアとPMCの側で軸を動かすために処理するソ
フトウェアとを別々に作る必要がある。このように、P
MCの側で独立した処理を追加している場合には、数値
制御装置の側の同等機能との仕様が異なるため、仕様統
一が困難であるという問題点があった。
However, if the axis control is to be performed on the PMC side as well, it is necessary to separately prepare the original software for controlling the axis of the NC and the software for processing to move the axis on the side of the PMC. is there. Thus, P
When independent processing is added on the MC side, there is a problem in that it is difficult to unify the specifications because the specifications are the same as the equivalent functions on the numerical control device side.

【0006】また、従来のPMCの制御方式では、数値
制御装置側で同等の機能を有する使用頻度の低い機能の
処理までもPMC側で負担することになるため、それら
の処理のためのラダープログラムの領域あるいは必要な
パラメータを記憶しておくための領域などが必要にな
り、PMCのメモリの使用効率を圧迫させているととも
にラダープログラム全体の処理時間(スキャンタイム)
が無駄になっているという問題点があった。
Further, in the conventional PMC control method, the PMC side also bears the processing of the infrequently used functions having the equivalent functions on the numerical controller side. Area or a storage area for storing necessary parameters is required, which puts pressure on the use efficiency of the PMC memory and the processing time (scan time) of the entire ladder program.
There was a problem that was wasted.

【0007】本発明はこのような点に鑑みてなされたも
のであり、PMCでの制御の仕様を数値制御装置の軸制
御の仕様と同じようにするとともに、数値制御装置およ
びPMCの各プログラムの制御を効率化した数値制御装
置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and makes the control specifications of the PMC the same as the axis control specifications of the numerical control device, and also enables the programs of the numerical control device and the PMC to operate. An object is to provide a numerical control device with efficient control.

【0008】[0008]

【課題を解決するための手段】本発明では上記課題を解
決するために、プログラマブル・マシン・コントローラ
を内蔵した数値制御装置において、前記プログラマブル
・マシン・コントローラは、パラメータで指定された番
号のNCプログラムを登録済のNCプログラムから検索
し、一致したNCプログラムを実行可能状態にするNC
プログラム呼び出し用機能命令手段を有することを特徴
とする数値制御装置が提供される。
According to the present invention, in order to solve the above problems, in a numerical controller having a built-in programmable machine controller, the programmable machine controller is an NC program having a number designated by a parameter. From the registered NC programs to make the matching NC program executable
There is provided a numerical control device having a program call function instruction means.

【0009】[0009]

【作用】上述の手段によれば、PMCのラダープログラ
ムの中でNCプログラム呼び出し用機能命令手段が実行
されると、そのNCプログラム呼び出し用機能命令手段
に設定されているNCプログラム番号のパラメータに従
って、登録されているNCプログラムの中からプログラ
ム番号の一致するNCプログラムを検索し、一致したN
Cプログラムがあればこれをメインメモリに転送して実
行可能状態にする。そしてNCプログラムが転送完了さ
れて実行可能状態にされると、ラダープログラムはその
転送完了を受けて、メインメモリに転送されたNCプロ
グラムを起動する。
According to the above means, when the NC program calling function command means is executed in the ladder program of the PMC, according to the NC program number parameter set in the NC program calling function command means, The NC program with the same program number is searched from the registered NC programs, and the matching N program is searched.
If there is a C program, it is transferred to the main memory and made executable. When the transfer of the NC program is completed and the executable state is set, the ladder program receives the transfer completion and activates the NC program transferred to the main memory.

【0010】[0010]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。まず、ラダープログラムによるNCプログラム
の制御について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. First, the control of the NC program by the ladder program will be described.

【0011】図1はラダープログラムによるNCプログ
ラムの制御構造を示す図である。この図において、10
は数値制御装置であり、NCプログラム11およびその
NCプログラム11を実行するための領域であるメイン
メモリ12を有している。20は数値制御装置10に内
蔵されているPMCであり、その中にはラダープログラ
ムの例が示されている。
FIG. 1 is a diagram showing a control structure of an NC program by a ladder program. In this figure, 10
Is a numerical control device and has an NC program 11 and a main memory 12 which is an area for executing the NC program 11. Reference numeral 20 is a PMC built in the numerical controller 10, and an example of a ladder program is shown therein.

【0012】PMCの命令には基本命令と機能命令とが
あり、基本命令は論理積、論理和などの演算を行う命令
であり、一方、機能命令は基本命令だけでプログラムす
るには困難な工作機械の動作を容易にプログラムできる
ようにした命令であって、たとえば、タイマ処理、デコ
ード処理、論理積後データ転送などがある。
The PMC instruction includes a basic instruction and a functional instruction. The basic instruction is an instruction for performing operations such as logical product and logical sum. On the other hand, the functional instruction is a work that is difficult to program with only the basic instruction. These instructions are instructions that allow the operation of the machine to be easily programmed, and include, for example, timer processing, decoding processing, and data transfer after logical product.

【0013】ラダープログラムの機能命令としてNCプ
ログラム呼び出し用機能命令21が使用されており、こ
のNCプログラム呼び出し用機能命令21は「SUB
xx」と表示された命令の部分と、「0001」と表示
されたパラメータの部分とで構成されている。このパラ
メータには、NCプログラム11の中で呼び出ししたい
O番号、すなわちプログラム番号が設定される。したが
って、この例では、プログラム番号「0001」番のN
Cプログラムを指定していることになる。
An NC program calling function instruction 21 is used as a ladder program function instruction, and this NC program calling function instruction 21 is "SUB".
It is composed of a command part indicated by "xx" and a parameter part indicated by "0001". In this parameter, an O number to be called in the NC program 11, that is, a program number is set. Therefore, in this example, N of the program number "0001"
It means that the C program is specified.

【0014】ここで、実行命令ACTがONされると、
NCプログラム呼び出し用機能命令21は、パラメータ
とともに数値制御装置10に制御が渡される。数値制御
装置10では、これにあらかじめ登録されているNCプ
ログラム11の中から、パラメータで指定された「00
01」番のNCプログラムがO番号検索という機能で検
索されて、これがメインメモリ12にロードされ、指定
されたNCプログラムが実行可能な状態にされる。
When the execution instruction ACT is turned on,
The NC program calling function instruction 21 is passed to the numerical controller 10 together with the parameters. In the numerical control device 10, the "00" specified by the parameter is selected from the NC programs 11 registered in advance.
The "01" NC program is retrieved by a function called O number retrieval, and this is loaded into the main memory 12 to make the designated NC program executable.

【0015】NCプログラムのメインメモリ12への転
送が完了すると、PMC20に通知されて、W1がON
にされる。すると、次のネットにあるW1がONにさ
れ、サイクルスタート信号STがONにされて、数値制
御装置10のメインメモリ12にロードされたNCプロ
グラムが実行される。
When the transfer of the NC program to the main memory 12 is completed, the PMC 20 is notified and W1 is turned on.
To be Then, W1 in the next net is turned on, the cycle start signal ST is turned on, and the NC program loaded in the main memory 12 of the numerical controller 10 is executed.

【0016】この時、数値制御装置10のモードは、A
UTO、MEM、JOGのいずれかのモードに設定済で
あるとする。なお、これらのモードへの変更について
は、第2パラメータとしてNCプログラム呼び出し用機
能命令21の中にモードを取り込んで、モードまでをも
PMC20の側から強制的に変更できるようにすること
も可能である。
At this time, the mode of the numerical controller 10 is A
It is assumed that the mode has been set to any one of UTO, MEM, and JOG. Regarding the change to these modes, it is also possible to incorporate the mode into the NC program call function instruction 21 as the second parameter so that even the mode can be forcibly changed from the PMC 20 side. is there.

【0017】次に、NCプログラムによるラダープログ
ラムの制御について説明する。ここでは、NCプログラ
ムによりラダープログラムのサブプログラム(基本命
令)の制御と、PMCの機能命令の制御とを説明し、こ
のPMCの機能命令の制御については数値制御装置とP
MCとでプロセッサを共有している場合と、それぞれ専
用のプロセッサを持っている場合とに分けて説明する。
Next, the control of the ladder program by the NC program will be described. Here, the control of the subprogram (basic instruction) of the ladder program and the control of the functional instruction of the PMC by the NC program will be described. Regarding the control of the functional instruction of the PMC, the numerical controller and the P
Description will be made separately for the case where the processor is shared with the MC and the case where each has its own processor.

【0018】図2はNCプログラムで指定したサブプロ
グラムの先頭アドレスを取得する方法を示す図である。
図示の例は特に、NCプログラムからラダープログラム
のサブプログラムを制御する場合の実施例であり、図
中、11aは数値制御装置のNCソフトウェアによって
実行されるNCプログラム、30はサブプログラムアド
レステーブルを示している。
FIG. 2 is a diagram showing a method of acquiring the start address of the subprogram designated by the NC program.
The illustrated example is particularly an embodiment in the case of controlling a subprogram of a ladder program from an NC program, in which 11a indicates an NC program executed by NC software of a numerical controller, and 30 indicates a subprogram address table. ing.

【0019】NCプログラム11aには、「Gxx P
1;」と記載されている行がある。これが、数値制御装
置からPMCに対してラダープログラムのサブプログラ
ムの実行を要求する実行要求手段を構成している。この
例において、「Gxx」はサブプログラムの実行を要求
するGコード、「P1」は実行したいサブプログラムの
プログラム番号を示している。
In the NC program 11a, "Gxx P
1; ”is included in the line. This constitutes an execution requesting unit that requests the PMC to execute the subprogram of the ladder program from the numerical controller. In this example, “Gxx” indicates a G code requesting execution of a subprogram, and “P1” indicates a program number of a subprogram to be executed.

【0020】サブプログラムアドレステーブル30はラ
ダープログラムのサブプログラムの存在場所を表したも
ので、サブプログラムのプログラム番号Pnと、そのサ
ブプログラムが書かれている先頭のアドレス(xxxx
xNNH)とで表されている。このサブプログラムアド
レステーブル30は、数値制御装置の電源投入時に、数
値制御装置およびPMCの両方からアクセスすることが
できる固定番地のランダムアクセスメモリに作成される
か、あるいは、ラダープログラムのコンパイル時に作成
され、数値制御装置の電源投入時に、数値制御装置の固
定番地のランダムアクセスメモリに転送される。
The sub-program address table 30 shows the location of the sub-program of the ladder program. The program number Pn of the sub-program and the head address (xxxx) in which the sub-program is written.
xNNH). This subprogram address table 30 is created in a random access memory at a fixed address that can be accessed from both the numerical controller and the PMC when the power of the numerical controller is turned on, or is created when the ladder program is compiled. When the power of the numerical control device is turned on, the data is transferred to the random access memory at the fixed address of the numerical control device.

【0021】NCソフトウェアがNCプログラム11a
を逐次実行してきて、「Gxx P1;」のブロックを
実行すると、数値制御装置は固定番地のランダムアクセ
スメモリに形成されているサブプログラムアドレステー
ブル30で指定されたサブプログラム番号、ここでは
「P1」を検索してそのサブプログラムの先頭アドレス
を取得し、PMCの側にはそのサブプログラムのアドレ
スを伴ってそのサブプログラムの実行要求を通知する。
The NC software is the NC program 11a.
When the block of "Gxx P1;" is executed, the numerical control device causes the numerical controller to specify the subprogram number specified in the subprogram address table 30 formed in the random access memory of the fixed address, here "P1". Is acquired to obtain the start address of the subprogram, and the PMC side is notified of the execution request of the subprogram along with the address of the subprogram.

【0022】図3はサブプログラム実行要求時の実行状
態概要図である。図において、左側は数値制御装置のN
Cソフトウェアによって実行されるNCプログラム11
a、右側はPMCのPMC管理ソフトウェアによって実
行されるラダープログラム22を示している。
FIG. 3 is a schematic diagram of an execution state when a subprogram execution request is made. In the figure, the left side is N of the numerical control device.
NC program executed by C software 11
a, the right side shows the ladder program 22 executed by the PMC management software of PMC.

【0023】数値制御装置においてNCソフトウェアが
NCプログラム11aを実行していって、「Gxx P
1;」のブロックに来ると、PMCの方へサブプログラ
ムP1の実行要求と、サブプログラムアドレステーブル
30に記憶されているサブプログラムP1のアドレスと
を通知する。サブプログラムP1の実行要求を受けたP
MCのPMC管理ソフトウェアは、その実行要求を受け
たときに実行しているラダープログラム22の実行状態
を記憶したまま一時中断する。続いて、数値制御装置か
ら通達されたサブプログラムP1のアドレスを確認し、
そのサブプログラムP1を1回だけ実行し、サブプログ
ラムP1の実行が終了すると、数値制御装置側へサブプ
ログラム実行終了を通達する。その後、PMCの側は記
憶していた実行状態からラダープログラム22の実行を
再開し、数値制御装置の側は次のNCプログラムの実行
に復帰することになる。
In the numerical controller, the NC software is executing the NC program 11a, and the "Gxx P
When the block "1;" is reached, the PMC is notified of the execution request of the subprogram P1 and the address of the subprogram P1 stored in the subprogram address table 30. P that received a request to execute subprogram P1
The PMC management software of the MC temporarily suspends the execution state of the ladder program 22 that is being executed when the execution request is received. Then, confirm the address of the subprogram P1 notified from the numerical control device,
The subprogram P1 is executed only once, and when the execution of the subprogram P1 is completed, the completion of subprogram execution is notified to the numerical controller. After that, the PMC side resumes the execution of the ladder program 22 from the stored execution state, and the numerical control device side returns to the execution of the next NC program.

【0024】このように、従来のNCプログラムのGコ
ード体系に、ラダープログラムのサブプログラムを呼び
出して実行させる機能を追加し、具体的には、NCプロ
グラムを「Gxx Pn(Pnはサブプログラム番
号)」の形式でプログラムすることにより、従来と同様
のNCプログラミング方式で各ブロックに対応したラダ
ープログラムの実行を行うことができる。
As described above, a function for calling and executing a subprogram of a ladder program is added to the G code system of the conventional NC program. Specifically, the NC program is called "Gxx Pn (Pn is a subprogram number). By programming in the format "," it is possible to execute the ladder program corresponding to each block by the NC programming method similar to the conventional one.

【0025】次に、NCプログラムによるラダープログ
ラムの制御の内、PMCの機能命令の制御を説明する
が、まず、数値制御装置およびPMCが1つのプロセッ
サで一括して制御されているハードウェア構成の場合に
ついて説明する。
Next, among the control of the ladder program by the NC program, the control of the functional instruction of the PMC will be described. First, the numerical controller and the PMC are controlled collectively by one processor. The case will be described.

【0026】図4は1つのプロセッサによる数値制御装
置およびPMCの処理を示す図である。1つのプロセッ
サによって数値制御装置およびPMCの制御を行うと
き、プロセッサはある周期内でNCソフトウェアとPM
C管理ソフトウェアとに時間を割り振って実行してい
る。たとえば、図示の例では、8ミリ秒の周期内で、最
初の6ミリ秒をNCソフトウェアの処理に割り当てら
れ、残りの2ミリ秒をPMCのPMC管理ソフトウェア
の処理に割り当てられている。PMCは通常、この2ミ
リ秒の時間内ですべて処理している。
FIG. 4 is a diagram showing the processing of the numerical controller and PMC by one processor. When the numerical controller and PMC are controlled by one processor, the processor is controlled by NC software and PM within a certain cycle.
It is executed by allocating time to the C management software. For example, in the illustrated example, within the cycle of 8 milliseconds, the first 6 milliseconds are allocated to the processing of the NC software, and the remaining 2 milliseconds are allocated to the processing of the PMC management software of the PMC. The PMC is typically processing everything within this 2 millisecond time period.

【0027】図5はPMCの機能命令の制御を行うNC
プログラムの一例を示す図である。図示のNCプログラ
ム11bには、「GMOVE」と記載されているブロッ
クがある。これが、数値制御装置にてPMCのラダープ
ログラムの機能命令を実行する機能命令実行手段を構成
している。
FIG. 5 shows an NC for controlling the functional instructions of the PMC.
It is a figure which shows an example of a program. In the illustrated NC program 11b, there is a block described as "GMOVE". This constitutes a function command executing means for executing the function command of the ladder program of the PMC in the numerical controller.

【0028】この例において、「GMOVE」はPMC
の機能命令の実行を要求するGコードである。なお、こ
れに相当するPMCの機能命令である「MOVE」は、
論理積データと入力データとの論理積を行い、その結果
を指定したアドレスへ出力する論理積後転送の機能を有
し、4つのパラメータが指定される。すなわち、第1パ
ラメータには上位4ビット論理積データ、第2パラメー
タには下位4ビット論理積データ、第3パラメータには
入力データアドレス、そして第4パラメータには出力ア
ドレスが指定される。したがって、この機能に相当する
Gコード「GMOVE」においても、4つのパラメータ
「011,01,X0,D0」が指定されている。
In this example, "GMOVE" is the PMC
It is a G code requesting execution of the functional instruction of. In addition, "MOVE" which is a functional instruction of PMC equivalent to this is
It has a function of a logical product of logical product data and input data and outputs the result to a designated address, and has a function of transfer after logical product, and four parameters are designated. That is, upper 4-bit logical product data is designated as the first parameter, lower 4-bit logical product data is designated as the second parameter, input data address is designated as the third parameter, and output address is designated as the fourth parameter. Therefore, four parameters "011, 01, X0, D0" are also specified in the G code "GMOVE" corresponding to this function.

【0029】図6はPMCの機能命令およびそのアドレ
スを表した機能命令テーブルの例を示す図である。この
機能命令テーブル31は数値制御装置の電源投入時に、
NCソフトウェアおよびPMC管理ソフトウェアからア
クセス可能なランダムアクセスメモリに作成される。機
能命令テーブル31には、機能命令とその機能命令が存
在するアドレスとが示されている。
FIG. 6 is a diagram showing an example of a functional instruction table showing the functional instructions of the PMC and their addresses. This function command table 31 is used when the power of the numerical controller is turned on.
Created in random access memory accessible from NC software and PMC management software. The functional instruction table 31 shows the functional instruction and the address at which the functional instruction exists.

【0030】図7はNCプログラムによる機能命令の処
理を示す図である。この図によれば、NCプログラム1
1bにおいて機能命令のブロックが実行されると、NC
ソフトウェアの実行に割り振られた6ミリ秒の内、NC
プログラム11bの実行時間であるAミリ秒がその機能
命令の実行に割り振られることを示している。
FIG. 7 is a diagram showing the processing of a functional instruction by the NC program. According to this figure, NC program 1
When the block of functional instructions is executed in 1b, NC
NC out of 6 ms allocated for software execution
It indicates that the execution time A millisecond of the program 11b is allocated to the execution of the function instruction.

【0031】NCソフトウェアが図5の例のNCプログ
ラム11bを逐次実行するとき、ブロック111および
112については、図4のように、ある周期内の最初に
割り振られた時間内で通常通りに処理される。そして、
ブロック113の「GMOVE」の実行時には、まず、
「SUB 1 END 00001H」で始まる機能命
令テーブル31が参照される。「GMOVE」はこの機
能命令テーブル31の中で「SUB 8 MOVE 0
0100H」を検索し、該当する機能命令「MOVE」
をNCプログラム11bの実行時間であるAミリ秒を使
ってPMC管理ソフトウェアが実行する。この例によれ
ば、「011,01」の論理積データとアドレス「X
0」の入力データとの論理積を行い、その結果を指定の
アドレス「D0」へ出力する処理を行う。ブロック11
3の実行が終了すると、NCソフトウェアおよびPMC
ソフトウェアの実行時間は図4のような時間の割り振り
に戻され、NCプログラム11bの次のブロック114
の実行に復帰される。
When the NC software sequentially executes the NC program 11b of the example of FIG. 5, blocks 111 and 112 are processed normally within the first allocated time within a cycle, as shown in FIG. It And
When executing "GMOVE" of block 113, first,
The function instruction table 31 starting with “SUB 1 END 00001H” is referred to. In the function command table 31, "GMOVE" is "SUB 8 MOVE 0".
"0100H" and search for the corresponding function command "MOVE"
Is executed by the PMC management software using A millisecond which is the execution time of the NC program 11b. According to this example, the logical product data of "011,01" and the address "X
The logical product of the input data of "0" is performed, and the result is output to the designated address "D0". Block 11
When the execution of 3 is completed, NC software and PMC
The execution time of the software is returned to the time allocation shown in FIG. 4, and the next block 114 of the NC program 11b is returned.
Is returned to execution.

【0032】最後に、NCプログラムによるラダープロ
グラムの制御の内、同じくPMCの機能命令の制御を説
明するが、ここでは、数値制御装置およびPMCがそれ
ぞれ専用のプロセッサを有しているハードウェア構成の
場合について説明する。
Finally, among the control of the ladder program by the NC program, the control of the functional instruction of the PMC will be described. Here, the numerical controller and the PMC have a hardware configuration in which each has a dedicated processor. The case will be described.

【0033】NCプログラムによるPMCの機能命令の
制御に関し、上述の数値制御装置およびPMCのプロセ
ッサが共通である場合には、NCソフトウェアとPMC
管理ソフトウェアとが同時に動作することはないが、数
値制御装置およびPMCがそれぞれのプロセッサを有す
る場合には、NCソフトウェアとPMC管理ソフトウェ
アとは独立に走っているため、相互に干渉する場合があ
る。たとえば、PMC管理ソフトウェアがラダープログ
ラム内の機能命令「MOVE」を実行中に、NCソフト
ウェアがNCプログラム11bのG機能命令「GMOV
E」を実行する場合があり、このときにはPMC管理ソ
フトウェアでの処理が重複することになる。
Regarding the control of the PMC function commands by the NC program, when the above numerical controller and the PMC processor are common, the NC software and the PMC are used.
Although the management software does not operate at the same time, when the numerical control device and the PMC have their own processors, the NC software and the PMC management software run independently of each other, so that they may interfere with each other. For example, while the PMC management software is executing the function command “MOVE” in the ladder program, the NC software is executing the G function command “GMOV” of the NC program 11b.
In some cases, the processing by the PMC management software will be duplicated.

【0034】そこで、NCソフトウェアおよびPMC管
理ソフトウェアは同等の機能命令の実行時において排他
制御するようにする。また、NCソフトウェアは、或る
G機能命令を実行しようとする時にPMC管理ソフトウ
ェアが同等の機能命令を実行しているときには、その機
能命令の処理をPMCでの実行終了まで待機するように
し、一方、PMC管理ソフトウェアは、或る機能命令を
実行しようとしている時にNCソフトウェアが同等のG
機能命令を実行しているときには、その機能命令の処理
を飛ばして次の処理を行うようにする。
Therefore, the NC software and the PMC management software are exclusively controlled during the execution of equivalent functional instructions. Further, when the PMC management software is executing an equivalent function command when trying to execute a certain G function command, the NC software waits for the processing of the function command until the execution by the PMC is completed. , PMC management software is the same as NC software when executing a certain function command.
When a functional instruction is being executed, the processing of the functional instruction is skipped and the next processing is performed.

【0035】図8はNCソフトウェアの処理を示すフロ
ーチャートである。NCソフトウェアがNCプログラム
11bの「GMOVE」を含むブロック113を実行す
るときには、PMC管理ソフトウェアが同等の機能命令
である「SUB 8」という命令を実行しているかどう
かを判断する(ステップS1)。ここで、PMCが「S
UB 8」を実行していたとすれば、NCソフトウェア
はその場で実行が終了するまで待機している。
FIG. 8 is a flow chart showing the processing of the NC software. When the NC software executes the block 113 including "GMOVE" of the NC program 11b, it is determined whether or not the PMC management software is executing the equivalent function instruction "SUB 8" (step S1). Here, PMC is "S
Assuming it was running UB 8 ", the NC software is waiting on-the-fly for execution to end.

【0036】その後、NCソフトウェアはPMC管理ソ
フトウェアに対し、「SUB 8」の占有権を取得し
(ステップS2)、「SUB 8」を実行し(ステップ
S3)、実行が終了すると「SUB 8」の占有権を放
棄して(ステップS4)、次ブロックの処理に進む(ス
テップS5)。
After that, the NC software acquires the exclusive right of "SUB 8" with respect to the PMC management software (step S2), executes "SUB 8" (step S3), and when the execution is completed, the "SUB 8" The exclusive right is abandoned (step S4), and the process proceeds to the next block (step S5).

【0037】図9はPMC管理ソフトウェアの処理を示
すフローチャートである。PMC管理ソフトウェアが
「SUB 8」の機能命令「MOVE」を実行するとき
には、NCソフトウェアが同等の機能命令である「SU
B 8」という命令を実行しているかどうかを判断する
(ステップS6)。ここで、NCソフトウェアが「SU
B 8」を実行していたとすれば、PMC管理ソフトウ
ェアは処理を飛ばして次の処理をする。
FIG. 9 is a flow chart showing the processing of the PMC management software. When the PMC management software executes the function command "MOVE" of "SUB 8", the NC software is the equivalent function command "SU".
It is determined whether the command "B 8" is being executed (step S6). Here, NC software is "SU
If "B 8" is executed, the PMC management software skips the process and performs the next process.

【0038】NCソフトウェアが「SUB 8」を実行
していなければ、PMC管理ソフトウェアは、「SUB
8」の占有権を取得し(ステップS7)、「SUB
8」を実行し(ステップS8)、実行が終了すると「S
UB 8」の占有権を放棄して(ステップS9)、次ネ
ットの処理に進む(ステップS10)。
If the NC software is not running "SUB 8", the PMC management software will run "SUB 8".
8 ”is acquired (step S7), and“ SUB ”is acquired.
8 "(step S8), and when the execution is completed," S "
The exclusive right of UB 8 ”is abandoned (step S9), and the process proceeds to the next net (step S10).

【0039】このように、従来のNCプログラムのGコ
ード体系に、「G+機能命令」と必要なパラメータとか
ら成る形式を付加することにより、NCプログラムから
PMCの機能命令相当の動作を実行させることができる
ようになる。
As described above, by adding a format consisting of "G + function instruction" and necessary parameters to the G code system of the conventional NC program, the operation equivalent to the function instruction of PMC is executed from the NC program. Will be able to.

【0040】また、PMCの中には、PMCを制御する
プロセッサの他に、ラダープログラムのオブジェクトだ
けを実行させる専用のPMC用高速演算プロセッサを備
えたものがある。このPMC用高速演算プロセッサは処
理を高速に行うことができるが、ハードウェアなので、
このPMC用高速演算プロセッサの命令セットにない新
しい機能命令、たとえば上述の例の「GMOVE」など
の命令については、PMC用高速演算プロセッサの演算
を止めて、PMCのプロセッサに処理を委ねることにな
る。したがって、ラダープログラムの中にこのような新
しい機能命令があると、PMC用高速演算プロセッサの
演算は中断されるので、高速性は損なわれることにな
る。本発明では、このような新しい機能命令も含めてN
Cプログラムから制御することができるので、ラダープ
ログラムにPMC用高速演算プロセッサの命令セットに
ない新しい機能命令を含めないようにして、実行を中断
させることなく効率よく行うことができ、PMC用高速
演算プロセッサの高速性を活かしたプログラミングをす
ることが可能になる。
Some PMCs include a processor for controlling the PMC and a dedicated PMC high-speed arithmetic processor for executing only the objects of the ladder program. This PMC high-speed processor can perform processing at high speed, but since it is hardware,
For new functional instructions that are not in the instruction set of the PMC high-speed arithmetic processor, for example, instructions such as "GMOVE" in the above example, the operation of the PMC high-speed arithmetic processor is stopped and the processing of the PMC processor is entrusted. . Therefore, if there is such a new function instruction in the ladder program, the operation of the PMC high-speed arithmetic processor is interrupted, and the high speed performance is impaired. In the present invention, N including the new function instruction is also included.
Since it can be controlled from the C program, it is possible to efficiently perform without interrupting execution by not including new function instructions that are not in the instruction set of the PMC high-speed arithmetic processor in the ladder program. It is possible to program by taking advantage of the high speed of the processor.

【0041】図10は本発明を実施する数値制御装置全
体のハードウェア構成を示すブロック図である。この例
は特に、数値制御装置およびPMCにそれぞれ専用のプ
ロセッサを有するタイプの構成例である。
FIG. 10 is a block diagram showing the hardware configuration of the entire numerical control device for implementing the present invention. This example is, in particular, a configuration example of a type having a dedicated processor for each of the numerical controller and PMC.

【0042】数値制御装置10はこの装置全体の制御を
行うプロセッサ101と、システム制御のためのNCソ
フトウェアが格納される読取り専用メモリ(ROM)1
02と、プログラムが実行されるメインメモリとするラ
ンダムアクセスメモリ(RAM)103と、NCプログ
ラム、各種パラメータ、工具補正量、ピッチ誤差補正量
などが格納される不揮発性メモリ104と、PMC20
と共有して使用されランダムアクセスメモリで構成され
る共有メモリ105とを有し、さらに、CRT/MDI
(Cathode Ray Tube / Manual Data Input)ユニット4
0の表示装置41およびキーボード42との接続を行う
グラフィック制御回路(CRTC)106およびインタ
フェース回路(INT)107と、紙テープリーダなど
の外部機器50との接続を行うインタフェース回路(I
NT)108とを有し、これらはバス109によって相
互に結合されている。なお、図ではサーボモータなどを
制御する軸制御回路、サーボアンプ、スピンドル制御回
路、スピンドルアンプ、手動パルス発生器インタフェー
スなどは省略してある。
The numerical control device 10 includes a processor 101 for controlling the entire device and a read-only memory (ROM) 1 for storing NC software for system control.
02, a random access memory (RAM) 103 as a main memory for executing the program, a non-volatile memory 104 for storing an NC program, various parameters, a tool correction amount, a pitch error correction amount, and the like, and a PMC 20.
And a shared memory 105 configured by a random access memory that is used in common with the CRT / MDI.
(Cathode Ray Tube / Manual Data Input) Unit 4
0 display device 41 and keyboard 42, a graphic control circuit (CRTC) 106 and an interface circuit (INT) 107, and an interface circuit (I) for connecting an external device 50 such as a paper tape reader.
NT) 108, which are coupled to each other by a bus 109. In the figure, an axis control circuit for controlling a servo motor, a servo amplifier, a spindle control circuit, a spindle amplifier, a manual pulse generator interface, etc. are omitted.

【0043】数値制御装置10に内蔵のPMC20は、
PMC用のプロセッサ201と、PMC20を制御する
ためのPMC管理ソフトウェアとラダープログラムとが
格納されている読取り専用メモリ(ROM)202と、
ラダープログラムの実行に従って内容が書き換えられて
いくランダムアクセスメモリ(RAM)203と、機能
命令の条件データなどのデータが格納される不揮発性メ
モリ204とを有し、これらはバス205によって相互
に結合されている。また、バス205には入出力制御回
路(IOC)206が結合され、入出力ユニット207
を介して機械側の油圧機器、空圧機器、電磁機器などに
接続されている。さらに、バス205は数値制御装置1
0側にある共有メモリ105に接続されている。
The PMC 20 built in the numerical controller 10 is
A processor 201 for PMC, a read-only memory (ROM) 202 in which PMC management software for controlling the PMC 20 and a ladder program are stored,
It has a random access memory (RAM) 203 whose contents are rewritten according to the execution of the ladder program, and a non-volatile memory 204 in which data such as condition data of functional instructions is stored. These are interconnected by a bus 205. ing. An input / output control circuit (IOC) 206 is coupled to the bus 205, and an input / output unit 207 is connected.
It is connected to hydraulic equipment, pneumatic equipment, electromagnetic equipment, etc. on the machine side via. Further, the bus 205 is the numerical controller 1.
It is connected to the shared memory 105 on the 0 side.

【0044】作用について説明すると、数値制御装置1
0のプロセッサ101はバス109を介して、読取り専
用メモリ102に格納されたNCソフトウェアを読み出
し、このNCソフトウェアに従って数値制御装置10全
体の制御を実行する。
To explain the operation, the numerical controller 1
The processor 101 of 0 reads the NC software stored in the read-only memory 102 via the bus 109, and executes the control of the entire numerical controller 10 according to the NC software.

【0045】不揮発性メモリ104に格納されたNCプ
ログラムはバス109を介してランダムアクセスメモリ
103に読み出しされ、NCソフトウェアによって実行
される。
The NC program stored in the non-volatile memory 104 is read out to the random access memory 103 via the bus 109 and executed by the NC software.

【0046】共有メモリ105は数値制御装置10とP
MC20とのデータの授受を行うためのメモリであり、
この共有メモリ105を経由して、互いにデータの授受
を行う。また、同時に双方からのアクセスに必要なデー
タを格納する。たとえば、数値制御装置10の電源投入
時に作成されるサブプログラムアドレステーブル30ま
たは機能命令テーブル31を格納する。
The shared memory 105 is connected to the numerical controller 10 and P
A memory for exchanging data with the MC 20,
Data is exchanged with each other via the shared memory 105. At the same time, it stores the data required for access from both sides. For example, the subprogram address table 30 or the function instruction table 31 created when the numerical control device 10 is powered on is stored.

【0047】グラフィック制御回路106は各軸の現在
位置、アラーム、パラメータ、画像データなどのディジ
タルデータを画像信号に変換して出力する。この画像信
号はCRT/MDIユニット40の表示装置41に送ら
れ、表示装置41に表示される。表示装置41には、P
MC20側のパラメータ、ラダーダイヤグラムなども表
示することができる。このときのデータはPMC20か
ら共有メモリ105を経由して送られてくる。
The graphic control circuit 106 converts digital data such as the current position of each axis, alarms, parameters and image data into an image signal and outputs it. This image signal is sent to the display device 41 of the CRT / MDI unit 40 and displayed on the display device 41. The display device 41 has a P
Parameters on the MC 20 side, ladder diagrams, etc. can also be displayed. The data at this time is sent from the PMC 20 via the shared memory 105.

【0048】インタフェース回路107はCRT/MD
Iユニット40内のキーボード42からのデータを受け
て、プロセッサ101に渡す。また、PMC20側への
データもキーボード42から入力することができ、その
データは共有メモリ105を経由して、PMC20側へ
送られる。
The interface circuit 107 is a CRT / MD
The data from the keyboard 42 in the I unit 40 is received and passed to the processor 101. Also, data to the PMC 20 side can be input from the keyboard 42, and the data is sent to the PMC 20 side via the shared memory 105.

【0049】外部機器50用のインタフェース回路10
8はたとえば、紙テープリーダ、紙テープパンチャー、
紙テープリーダ・パンチャー、プリンタなどが接続さ
れ、紙テープリーダからNCプログラムが読み込まれた
り、数値制御装置10内で編集されたNCプログラムを
紙テープパンチャーに出力したりすることができる。
Interface circuit 10 for external device 50
8 is, for example, a paper tape reader, a paper tape puncher,
A paper tape reader / puncher, a printer, etc. are connected, the NC program can be read from the paper tape reader, and the NC program edited in the numerical controller 10 can be output to the paper tape puncher.

【0050】PMC20はプログラマブル・コントロー
ラの一種であり、プロセッサ201が読取り専用メモリ
202に格納されているPMC用管理ソフトウェアを読
み出し、このPMC用管理ソフトウェアによってPMC
20が制御される。また、PMC用管理ソフトウェアは
読取り専用メモリ202に格納されているラダープログ
ラムをランダムアクセスメモリ203に読み出して実行
することができる。
The PMC 20 is a kind of programmable controller, and the processor 201 reads the PMC management software stored in the read-only memory 202, and the PMC management software reads the PMC management software.
20 is controlled. Further, the PMC management software can read the ladder program stored in the read-only memory 202 into the random access memory 203 and execute it.

【0051】入出力制御回路206はバス205に接続
され、ランダムアクセスメモリ203に格納された出力
信号を入出力ユニット207にシリアル信号に変換して
送る。また、入出力ユニット207からのシリアルな入
力信号をパラレル信号に変換してバス205に送る。そ
の信号はプロセッサ201によって、ランダムアクセス
メモリ203に格納される。ランダムアクセスメモリ2
03に格納された入出力信号や不揮発性メモリ204に
格納されたデータは、CRT/MDIユニット40の表
示装置41に表示することができる。
The input / output control circuit 206 is connected to the bus 205, converts the output signal stored in the random access memory 203 into a serial signal and sends it to the input / output unit 207. Also, a serial input signal from the input / output unit 207 is converted into a parallel signal and sent to the bus 205. The signal is stored in the random access memory 203 by the processor 201. Random access memory 2
The input / output signal stored in 03 and the data stored in the nonvolatile memory 204 can be displayed on the display device 41 of the CRT / MDI unit 40.

【0052】プロセッサ201は数値制御装置10から
共有メモリ105を経由して、M機能指令、T機能指令
などの指令信号を受け、一旦、ランダムアクセスメモリ
203に格納し、その指令を読取り専用メモリ202に
格納されたラダープログラムに従って処理し、入出力制
御回路206を経由して、入出力ユニット207に出力
する。この出力信号によって、機械側の油圧機器、空圧
機器、電磁機器が制御される。
The processor 201 receives a command signal such as an M function command or a T function command from the numerical controller 10 via the shared memory 105, temporarily stores it in the random access memory 203, and stores the command in the read only memory 202. It is processed according to the ladder program stored in, and output to the input / output unit 207 via the input / output control circuit 206. The output signal controls hydraulic equipment, pneumatic equipment, and electromagnetic equipment on the machine side.

【0053】また、プロセッサ201は入出力ユニット
207からの機械側のリミットスイッチ信号、機械操作
盤の操作スイッチの信号などの入力信号を受けて、この
入力信号を一旦、ランダムアクセスメモリ203に格納
する。PMC20で処理する必要のない入力信号は共有
メモリ105を経由してプロセッサ101に送られる。
その他の信号はラダープログラムで処理し、一部の信号
は数値制御装置側へ、他の信号は出力信号として、入出
力制御回路206を経由して、入出力ユニット207か
ら機械側へ出力される。
Further, the processor 201 receives an input signal such as a machine side limit switch signal from the input / output unit 207 and a signal of an operation switch of the machine operation panel, and temporarily stores this input signal in the random access memory 203. . Input signals that do not need to be processed by the PMC 20 are sent to the processor 101 via the shared memory 105.
Other signals are processed by the ladder program, some signals are output to the numerical controller side, and other signals are output signals to the machine side from the input / output unit 207 via the input / output control circuit 206. .

【0054】以上の例は、数値制御装置およびPMCに
それぞれ専用のプロセッサを有するタイプの構成例であ
るが、PMCの制御を数値制御装置のプロセッサが兼ね
る構成では、図10の構成のPMC20のプロセッサ2
01、読取り専用メモリ202、ランダムアクセスメモ
リ203および不揮発性メモリ204は、数値制御装置
10のものと兼用される。また、数値制御装置10の共
有メモリ105はランダムアクセスメモリ103の中に
確保され、入出力制御回路206は数値制御装置10の
バス109に結合される。
The above example is a configuration example of a type in which the numerical control device and the PMC each have a dedicated processor. However, in the configuration in which the processor of the numerical control device also controls the PMC, the processor of the PMC 20 of the configuration of FIG. Two
01, the read-only memory 202, the random access memory 203, and the non-volatile memory 204 are also used as those of the numerical controller 10. Further, the shared memory 105 of the numerical control device 10 is secured in the random access memory 103, and the input / output control circuit 206 is coupled to the bus 109 of the numerical control device 10.

【0055】[0055]

【発明の効果】以上説明したように本発明では、数値制
御装置およびPMCのプログラムの実行を相互に制御で
きる構成にしたので、各機能の仕様統一を図ることがで
きる。また、既に稼働しているシステムにおいて、シー
ケンス上何らかの追加をしたいというような場合、ラダ
ープログラムの追加・変更をすることなく、NCプログ
ラムの追加・変更だけで可能となり、よりフレキシブル
な数値制御システムの構築が可能となる。
As described above, according to the present invention, the execution of the programs of the numerical control device and the PMC can be mutually controlled, so that the specifications of each function can be unified. In addition, if you want to add something to the sequence in an already operating system, you can add or change the NC program without adding or changing the ladder program. It is possible to build.

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

【図1】ラダープログラムによるNCプログラムの制御
構造を示す図である。
FIG. 1 is a diagram showing a control structure of an NC program by a ladder program.

【図2】NCプログラムで指定したサブプログラムの先
頭アドレスを取得する方法を示す図である。
FIG. 2 is a diagram showing a method of acquiring a start address of a subprogram designated by an NC program.

【図3】サブプログラム実行要求時の実行状態概要図で
ある。
FIG. 3 is a schematic diagram of an execution state when a subprogram execution request is made.

【図4】1つのプロセッサによる数値制御装置およびP
MCの処理を示す図である。
FIG. 4 Numerical controller and P with one processor
It is a figure which shows the process of MC.

【図5】PMCの機能命令の制御を行うNCプログラム
の一例を示す図である。
FIG. 5 is a diagram showing an example of an NC program for controlling a functional instruction of PMC.

【図6】PMCの機能命令およびそのアドレスを表した
機能命令テーブルの例を示す図である。
FIG. 6 is a diagram showing an example of a functional instruction table showing a functional instruction of the PMC and its address.

【図7】NCプログラムによる機能命令の処理を示す図
である。
FIG. 7 is a diagram showing processing of a functional instruction by an NC program.

【図8】NCソフトウェアの処理を示すフローチャート
である。
FIG. 8 is a flowchart showing processing of NC software.

【図9】PMC管理ソフトウェアの処理を示すフローチ
ャートである。
FIG. 9 is a flowchart showing a process of PMC management software.

【図10】本発明を実施する数値制御装置全体のハード
ウェア構成を示すブロック図である。
FIG. 10 is a block diagram showing a hardware configuration of an entire numerical control device that implements the present invention.

【符号の説明】[Explanation of symbols]

10 数値制御装置 11 NCプログラム 11a NCプログラム 11b NCプログラム 12 メインメモリ 20 PMC(プログラマブル・マシン・コントロー
ラ) 21 NCプログラム呼び出し用機能命令 22 ラダープログラム 30 サブプログラムアドレステーブル 31 機能命令テーブル
10 Numerical Control Unit 11 NC Program 11a NC Program 11b NC Program 12 Main Memory 20 PMC (Programmable Machine Controller) 21 NC Program Calling Function Command 22 Ladder Program 30 Sub Program Address Table 31 Function Command Table

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 プログラマブル・マシン・コントローラ
を内蔵した数値制御装置において、 前記プログラマブル・マシン・コントローラは、パラメ
ータで指定された番号のNCプログラムを登録済のNC
プログラムから検索し、一致したNCプログラムを実行
可能状態にするNCプログラム呼び出し用機能命令手段
を有することを特徴とする数値制御装置。
1. A numerical controller including a programmable machine controller, wherein the programmable machine controller has a registered NC program of an NC program having a number designated by a parameter.
A numerical controller characterized by having NC program calling function command means for retrieving from a program and putting a matched NC program into an executable state.
【請求項2】 前記NCプログラム呼び出し用機能命令
手段は、数値制御装置のモードを設定するパラメータを
有することを特徴とする請求項1記載の数値制御装置。
2. The numerical controller according to claim 1, wherein said NC program calling function command means has a parameter for setting a mode of the numerical controller.
【請求項3】 プログラマブル・マシン・コントローラ
を内蔵した数値制御装置において、 前記プログラマブル・マシン・コントローラで実行され
るラダープログラムの中のサブプログラムの存在場所を
表したサブプログラムアドレステーブルと、 数値制御装置のNCプログラムで使用され、前記サブプ
ログラムアドレステーブルを参照して前記NCプログラ
ムから前記ラダープログラムのサブプログラムの実行を
前記サブプログラムのアドレスを伴って前記プログラマ
ブル・マシン・コントローラに要求する実行要求手段
と、 前記実行要求手段からサブプログラムの実行の要求を受
けて前記NCプログラムで指定されたサブプログラムを
実行する間は、前記ラダープログラムの実行状態を記憶
してその実行を中断するサブプログラム実行手段と、 を有することを特徴とする数値制御装置。
3. A numerical control device having a programmable machine controller built-in, and a subprogram address table showing a location of a subprogram in a ladder program executed by the programmable machine controller, and a numerical control device. And an execution requesting means for requesting execution of the subprogram of the ladder program from the NC program to the programmable machine controller together with the address of the subprogram, which is used in the NC program of FIG. During execution of the subprogram designated by the NC program in response to a request to execute the subprogram from the execution requesting means, a subprogram execution unit that stores the execution state of the ladder program and suspends its execution A numerical control device comprising: a step.
【請求項4】 前記サブプログラムアドレステーブル
は、数値制御装置の電源投入時に、前記数値制御装置お
よびプログラマブル・マシン・コントローラに共有のメ
モリに作成されることを特徴とする請求項3記載の数値
制御装置。
4. The numerical control according to claim 3, wherein the subprogram address table is created in a memory shared by the numerical control device and the programmable machine controller when the numerical control device is powered on. apparatus.
【請求項5】 前記サブプログラムアドレステーブル
は、前記ラダープログラムのコンパイル時に作成され、
数値制御装置の電源投入時に、前記数値制御装置のメモ
リに転送されることを特徴とする請求項3記載の数値制
御装置。
5. The subprogram address table is created when the ladder program is compiled,
4. The numerical controller according to claim 3, wherein the numerical controller is transferred to a memory of the numerical controller when the power of the numerical controller is turned on.
【請求項6】 プログラマブル・マシン・コントローラ
を内蔵した数値制御装置において、 前記プログラマブル・マシン・コントローラで実行され
るラダープログラムの機能命令の存在場所を表した機能
命令テーブルと、 数値制御装置のNCプログラムで使用され、前記機能命
令テーブルを参照して該当する前記ラダープログラムの
機能命令を前記NCプログラムから実行させる機能命令
実行手段と、 を有することを特徴とする数値制御装置。
6. A numerical control device having a programmable machine controller built-in, and a functional instruction table showing a location of a functional instruction of a ladder program executed by the programmable machine controller, and an NC program of the numerical control device. And a function command executing means for executing the function command of the corresponding ladder program from the NC program by referring to the function command table.
【請求項7】 前記機能命令テーブルは、数値制御装置
の電源投入時に、前記数値制御装置およびプログラマブ
ル・マシン・コントローラに共有のメモリに作成される
ことを特徴とする請求項6記載の数値制御装置。
7. The numerical controller according to claim 6, wherein the functional instruction table is created in a memory shared by the numerical controller and the programmable machine controller when the numerical controller is powered on. .
【請求項8】 前記数値制御装置およびプログラマブル
・マシン・コントローラがそれぞれ専用のプロセッサを
有している場合、前記数値制御装置およびプログラマブ
ル・マシン・コントローラは、前記機能命令の実行時に
排他制御する手段と、前記プログラマブル・マシン・コ
ントローラが或る機能命令を実行している時に前記数値
制御装置が同等の機能命令を実行しようとするときに
は、当該機能命令の処理を前記プログラマブル・マシン
・コントローラの実行終了まで待機する手段と、前記数
値制御装置が或る機能命令を実行している時に前記プロ
グラマブル・マシン・コントローラが同等の機能命令を
実行しようとするときには、当該機能命令の処理をパス
する手段とを有することを特徴とする請求項6記載の数
値制御装置。
8. The numerical controller and the programmable machine controller, when the numerical controller and the programmable machine controller each have a dedicated processor, the numerical controller and the programmable machine controller perform exclusive control when the functional instruction is executed. When the programmable machine controller is executing a certain functional instruction and the numerical control device tries to execute an equivalent functional instruction, the processing of the functional instruction is executed until the end of the execution of the programmable machine controller. And a means for passing the processing of the functional instruction when the programmable machine controller tries to execute an equivalent functional instruction while the numerical controller is executing a certain functional instruction. 7. The numerical control device according to claim 6, wherein
JP6002895A 1994-01-17 1994-01-17 Numerical controller Pending JPH07210232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6002895A JPH07210232A (en) 1994-01-17 1994-01-17 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6002895A JPH07210232A (en) 1994-01-17 1994-01-17 Numerical controller

Publications (1)

Publication Number Publication Date
JPH07210232A true JPH07210232A (en) 1995-08-11

Family

ID=11542099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6002895A Pending JPH07210232A (en) 1994-01-17 1994-01-17 Numerical controller

Country Status (1)

Country Link
JP (1) JPH07210232A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000067083A1 (en) * 1999-04-28 2000-11-09 Kabushiki Kaisha Yaskawa Denki Method of programming motion controller
JP2005131775A (en) * 2003-10-31 2005-05-26 Horkos Corp Axially processing system of machine tool
JP2019053397A (en) * 2017-09-13 2019-04-04 オムロン株式会社 Control apparatus and control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000067083A1 (en) * 1999-04-28 2000-11-09 Kabushiki Kaisha Yaskawa Denki Method of programming motion controller
JP2005131775A (en) * 2003-10-31 2005-05-26 Horkos Corp Axially processing system of machine tool
JP4549051B2 (en) * 2003-10-31 2010-09-22 ホーコス株式会社 Machine tool axis control device, machine tool axis control program
JP2019053397A (en) * 2017-09-13 2019-04-04 オムロン株式会社 Control apparatus and control method

Similar Documents

Publication Publication Date Title
JPH08123515A (en) Display system for sequence program
EP0845721B1 (en) Numerical controller
US4722043A (en) Control system with changable time-shared execution of ladder and non-ladder programs
JPH07210232A (en) Numerical controller
JPS59114602A (en) Programmable controller
JP2880330B2 (en) Programming device for programmable controller
JPS6333168B2 (en)
JP3781112B2 (en) Programmable controller system
JPH0460805A (en) Sequence program generating method
JP2728256B2 (en) Numerical control method
JPH08286712A (en) Editing system for sequence program
JP2642451B2 (en) Numerical control unit
JPH03288906A (en) Instruction executing system for pc
JPH11249715A (en) Automatic generating method for sequence program and motion controller
JPH08166805A (en) Editing system for sequence program
JPH01228003A (en) Processing information supplying device in numerically controlled machine tool
JPH08286717A (en) Numerical control device
JPS63250705A (en) Numerical controller
JPH01129303A (en) Numerical controller
JPH06324717A (en) Edit system for sequence program
JP2000099120A (en) Method and device for servo switching for three- dimensional machine
JPS61150010A (en) Program control system of numerically controlled machine tool
JPH03246602A (en) Programmable controller
JPS63311506A (en) Programmable controller
JPH0869307A (en) Signal control system for cnc

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees