JP3332061B2 - Control device - Google Patents

Control device

Info

Publication number
JP3332061B2
JP3332061B2 JP06707395A JP6707395A JP3332061B2 JP 3332061 B2 JP3332061 B2 JP 3332061B2 JP 06707395 A JP06707395 A JP 06707395A JP 6707395 A JP6707395 A JP 6707395A JP 3332061 B2 JP3332061 B2 JP 3332061B2
Authority
JP
Japan
Prior art keywords
code
simultaneous
command
general
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP06707395A
Other languages
Japanese (ja)
Other versions
JPH08234820A (en
Inventor
三哉 木村
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.)
Howa Machinery Ltd
Original Assignee
Howa Machinery Ltd
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 Howa Machinery Ltd filed Critical Howa Machinery Ltd
Priority to JP06707395A priority Critical patent/JP3332061B2/en
Publication of JPH08234820A publication Critical patent/JPH08234820A/en
Application granted granted Critical
Publication of JP3332061B2 publication Critical patent/JP3332061B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、NC装置におけるN
Cプログラムにより、複数のアクチュエータを同時動作
させる同時動作指令方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention
The present invention relates to a simultaneous operation command method for simultaneously operating a plurality of actuators by a C program.

【0002】[0002]

【従来の技術】従来のNCプログラムにおいては、汎用
Mコードが順次並べられ、ある動作を指令する汎用Mコ
ードにより1つの動作を指令して、その動作確認を取っ
た後、次の動作を指令する汎用Mコードを読み込んで、
次の動作を指令するというように、各汎用Mコードは、
動作指令とその確認をとりながら、順次実行されるの
で、指令を受けたアクチュエータは順次動作しかでき
ず、NCプログラムによる一連の動作時間は、複数の汎
用Mコードの動作指令と動作確認のための時間の総和に
なり、長くなる問題があった。こうした問題を解決する
ために、NC装置とシーケンサを組み合わせた制御装置
において、NC装置で使用する1つの複合Mコードに、
シーケンサ側のラダーにより例えば3つの動作機能を持
たせて、複数のアクチュエータに同時動作を行わせて、
動作時間を短くするものや、Mコードの機能を、動作指
令とその確認とに分割し、複数のアクチュエータに同時
動作を行わせて、動作時間を短くするもの(特開平6−
270035号)が知られている。
2. Description of the Related Art In a conventional NC program, general-purpose M codes are sequentially arranged, one operation is instructed by a general-purpose M code for instructing a certain operation, and after confirming the operation, the next operation is instructed. Read the general-purpose M code
Each general-purpose M code, such as instructing the next operation,
Actuators are sequentially executed while taking action commands and confirming them, so that the actuators receiving the commands can only operate sequentially, and a series of operating time by the NC program is a plurality of general-purpose M code operation commands and an operation command for the operation confirmation. There was a problem that the total time was long. In order to solve such a problem, in a control device that combines an NC device and a sequencer, one composite M code used in the NC device includes:
The ladder on the sequencer side has, for example, three operation functions to allow multiple actuators to perform simultaneous operations.
One that shortens the operation time or one that divides the function of the M code into an operation command and its confirmation and makes a plurality of actuators perform simultaneous operations to shorten the operation time
No. 270035) is known.

【0003】[0003]

【発明が解決しようとする課題】前者の従来技術では、
シーケンサ側でラダーを複数組み合わせて1つの複合M
コードとしている。このラダープログラムの組み合わせ
は、通常メーカ側で予め設定するので、ラダーの組合せ
の変更は、一般に、ユーザ側では行うことは困難であ
り、そのため、動作の組み合わせが固定されてしまっ
て、ユーザ側で作成するNCプログラムでは、その変更
ができない問題がある。また、後者のものでは、動作時
間が短くなる利点があるが、Mコードを、動作指令と動
作確認とに分割しているので、プログラムを作成する上
で、Mコードの数が極めて多くなり(汎用Mコードで記
述する場合の2倍)、しかも、従来の汎用Mコード(M
コードはJISにより、その使用する番号が概ねきめて
ある)と意味の異なるMコードを多用せねばならず、非
常に判りにくいプログラムとなる問題があった。この発
明の課題は、ごく一部を除いて従来の汎用Mコードを使
用できて、しかも、同時動作を行わせることができ、し
かも、その動作の組み合わせ変更も容易な、NCプログ
ラムによる同時動作指令方式を提供することにある。
In the former prior art,
One compound M by combining multiple ladders on the sequencer side
Code. Since the combination of the ladder programs is usually set in advance by the manufacturer, it is generally difficult for the user to change the combination of the ladders. Therefore, the combination of the operations is fixed and the user is forced to change the combination. There is a problem that the created NC program cannot be changed. The latter has the advantage of shortening the operation time, but since the M code is divided into an operation command and an operation check, the number of M codes becomes extremely large in creating a program ( (Twice that when writing with general-purpose M code) and conventional general-purpose M code (M
(The codes used are generally determined by JIS according to JIS.) M codes having different meanings must be frequently used, and there is a problem that the program becomes very difficult to understand. An object of the present invention is to provide a simultaneous operation command using an NC program that can use a conventional general-purpose M code except for a very small part, and can simultaneously perform operations, and easily change the combination of the operations. It is to provide a method.

【0004】[0004]

【課題を解決するための手段】前記課題の解決のため、
本願では、NCプログラムを読み取り、シーケンサにN
Cプログラムの命令を1つずつ伝えるNC装置と、その
命令を判別して、制御対象となるアクチュエータに動作
指令を出すシーケンサを備えた制御装置において、同時
動作開始及び、その解除を意味する特殊Mコードを夫々
設定し、NCプログラムを、同時動作させる複数の汎用
Mコードの並びの直前に同時動作開始を意味する特殊M
コードを、並びの直後に同時動作解除を意味する特殊M
コードを配列して記述されるNCプログラムとし、シー
ケンサには、NC装置から伝えられるMコードがどのM
コードかを判別するMコード読込判別手段と、同時動作
開始を意味するMコードの場合に同時命令中を記憶する
同時命令記憶手段と、同時動作解除を意味するMコード
の場合に同時命令中をクリヤする同時命令解除手段と、
汎用Mコードの場合に同時命令中であるかどうかを判別
する同時命令中判別手段と、同時命令中判別手段で同時
命令中であった場合に汎用Mコードを記憶する汎用Mコ
ード記憶手段と、汎用Mコード記憶手段に記憶すると直
ちにその汎用Mコードに基づく動作命令を出力する即時
命令手段と、同時命令中判別手段で同時命令中でない場
合に汎用Mコードに基づく動作指令を出力する動作命令
手段と、同時命令解除手段により同時命令中がクリヤさ
れた後,同時動作の完了を確認する同時動作一括確認手
段とを制御プログラムとしてシーケンサに設定する入力
手段を設け,同時動作開始を示す特殊Mコードによる指
令があった時以後の汎用Mコードによる指令時は、上記
汎用Mコード記憶手段により汎用Mコードのみを記憶し
て動作確認をすることなくNC装置から次の汎用Mコー
ドを読み込み、汎用Mコードを記憶すると直ちに、上記
即時命令手段により対象となるアクチュエータに動作指
令を出力し、同時動作解除指令を示す特殊Mコード指令
があったときに、同時命令解除手段により同時命令中を
クリヤした後,同時動作一括確認手段により同時動作の
完了を確認するようにしたことを特徴とする。
In order to solve the above-mentioned problems,
In this application, the NC program is read and N
An NC unit that transmits C program instructions one by one,
Determines the command and operates the actuator to be controlled
In a control device with a sequencer that issues commands,
A special M code for starting and canceling the operation, respectively
Set multiple NC programs to run simultaneously
Special M means simultaneous operation start immediately before M code arrangement
A special M code that means simultaneous operation release immediately after the code
An NC program described by arranging codes is
The M code which is transmitted from the NC unit is assigned to the
M code reading discriminating means for discriminating whether a code
Stores during simultaneous instruction in case of M code meaning start
Simultaneous instruction storage means and M code meaning simultaneous operation cancellation
Simultaneous command canceling means for clearing the simultaneous command in the case of
Determines whether simultaneous instructions are being executed for general-purpose M code
The simultaneous command determination means and the simultaneous command determination means
General-purpose M code that stores a general-purpose M code when an instruction is being executed
Directly stored in the code storage means and the general-purpose M code storage means.
Immediately outputs an operation instruction based on the general-purpose M code
If the instruction means and the simultaneous instruction determination means are not
Instruction to output operation command based on general-purpose M code
Means and simultaneous command release means clear
After confirming, the simultaneous operation batch confirmation
Input to set sequencer as control program in sequencer
A special M code is provided to indicate the start of simultaneous operation.
When a command is issued using a general-purpose M code after the
The general-purpose M code storage means stores only the general-purpose M code
The next general-purpose M code can be
As soon as the code is read and the general-purpose M code is stored,
Operate finger to target actuator by immediate command means
Command, and a special M code command that indicates a simultaneous operation release command
The simultaneous command is released by the simultaneous command release means.
After clearing, the simultaneous operation
It is characterized in that completion is confirmed.

【0005】[0005]

【作用】作成されるNCプログラムでは、複数の汎用M
コードによる同時動作開始を意味する指令と、同時動作
解除を意味する指令とが、特殊Mコードとして設定され
るだけであり、その他は汎用のMコードで記述されるか
ら、プログラムが判り易く、ユーザにおいて、組合せを
容易に替えることができる。また、そのプログラム実行
時には、上記2つの特殊Mコードで囲まれた同時動作ブ
ロック内にある汎用Mコードは、その1つがシーケンサ
の汎用Mコード記憶手段により記憶されると直ちにその
動作指令が出される一方で、その動作指令によるアクチ
ュエータの動作確認をすることなく次の汎用Mコードを
NC装置から読み込んで記憶して、先行する汎用Mコー
ドの動作指令に続いて直ちに動作指令されるため、アク
チュエータが殆ど同時に動作され、また、同時動作解除
の特殊Mコードの指令により、同時動作の確認をまとめ
て行うので、従来、1つの汎用Mコードを実行して動作
確認を取って、つぎのMコードを読み込んでいた場合に
比べ、同時動作させた動作のうち、最も長い動作時間に
のみの動作時間で同時動作ブロックの動作時間が決定さ
れ、大幅な時間短縮となる。
In the created NC program, a plurality of general-purpose M
The command to start simultaneous operation by code and the command to cancel simultaneous operation are only set as special M codes, and the others are described by general-purpose M codes. In, the combination can be easily changed. When the program is executed, one of the general-purpose M codes in the simultaneous operation block surrounded by the two special M codes is a sequencer.
While the operation command is issued immediately after being stored by the general-purpose M code storage means , the next general-purpose M code is stored without confirming the operation of the actuator based on the operation command.
Since the actuator is read and stored from the NC device and immediately operated following the operation command of the preceding general-purpose M code, the actuators are operated almost simultaneously, and the simultaneous operation is canceled by the special M code command for canceling the simultaneous operation. Since the confirmation is performed collectively, compared with the case where conventionally one general-purpose M code is executed and the operation confirmation is performed and the next M code is read, only the longest operation time among the operations performed simultaneously is compared. The operation time of the simultaneous operation block is determined by the operation time, and the time is greatly reduced.

【0006】[0006]

【実施例】本発明を、マシニングセンタ1に適用した例
で説明する。図3に示すように、マシニングセンタ1
は、ワークをワークテーブル上に固定するためのクラン
パを動作させるクランプシリンダ(流体圧作動のアクチ
ュエータ)2と、図示しない回転主軸先端の工具を、工
具マガジンの工具と交換するための工具交換装置(AT
C装置)3と、主軸先端の工具で加工しているときに、
切粉や切削油が外部へ漏れないようにするドアを開閉す
るシリンダ(流体圧駆動のアクチュエータ)4を備えて
おり、前記主軸が、ワークに対して前後、上下左右に移
動して、先端の工具で加工を行うようになっている。A
TC装置3は、例えば、マガジンを旋回させるためのモ
ータ(電気駆動アクチュエータ)や、工具交換アームを
旋回させ、かつ、主軸軸線に沿う方向に往復移動させる
ためのモータ(電気駆動アクチュエータ)を備えてい
る。このマシニングセンタ1は、NC装置5と、シーケ
ンサ6とからなる制御装置7でコントロールされるよう
になっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a machining center 1 will be described. As shown in FIG. 3, the machining center 1
Is a clamp cylinder (fluid pressure operated actuator) 2 for operating a clamper for fixing a work on a work table, and a tool changing device (not shown) for exchanging a tool at a tip end of a rotating spindle with a tool of a tool magazine. AT
C machine) 3 and when machining with the tool at the spindle tip
A cylinder (fluid pressure driven actuator) 4 for opening and closing a door for preventing cutting chips and cutting oil from leaking to the outside is provided. Processing is done with a tool. A
The TC device 3 includes, for example, a motor (electrically driven actuator) for rotating a magazine and a motor (electrically driven actuator) for rotating a tool change arm and reciprocating in a direction along a main shaft axis. I have. The machining center 1 is controlled by a control device 7 including an NC device 5 and a sequencer 6.

【0007】NC装置5は、NCプログラムPを読み取
って、シーケンサ6にその内容を伝えるもので、シーケ
ンサ6からの要求により、NCプログラムPの一つ一つ
の命令(Mコード)を伝える。シーケンサ6は、内部に
NC装置5から送られる命令が何であるかを判別して、
予めメモリ部8にプログラムされたラダープログラム9
を実行して、これにより、前記マシニングセンタ1の各
アクチュエータに動作指令を出す処理部10を備えてい
る。
The NC device 5 reads the NC program P and transmits its contents to the sequencer 6, and transmits each instruction (M code) of the NC program P in response to a request from the sequencer 6. The sequencer 6 determines what the command sent from the NC device 5 is,
Ladder program 9 previously programmed in memory unit 8
And a processing unit 10 for issuing an operation command to each actuator of the machining center 1.

【0008】前記ラダープログラム9には、NCプログ
ラムPの記述に使用する汎用Mコード(汎用の意味は、
JISで概ね決まっていて一般に使用されるMコードと
いう意味である)と対応するラダープログラムが記述さ
れている。即ち、この実施例では、図2に示すように、
M18に対応してはドア閉じ指令プログラムが、M06
に対応してツール交換(ATC)指令プログラムが、M
10に対応してワーククランプ指令プログラムが、M1
1に対応してワークアンクランプ指令プログラムが、M
17に対応してドア開き指令プログラムが夫々プログラ
ムされている。また、一般に使用しないMコード番号
(ここでは、M96、M97)を、夫々同時動作開始
と、同時動作解除を意味する特殊Mコードとして予め設
定してあり、これらの特殊MコードM96,M97を含
んでシーケンサ6に伝えられるNCプログラムPを処理
するために、図1のフローチャートに示す制御プログラ
ムも、ラダープログラムとして記憶してある。この制御
プログラムの各処理ステップは、夫々機能実現手段であ
る。これらのラダープログラムは、入力手段11により
設定される。
The ladder program 9 includes a general-purpose M code used for describing the NC program P (general-purpose meaning is:
A ladder program corresponding to JIS (which is generally defined as M code) is described. That is, in this embodiment, as shown in FIG.
The door closing command program corresponding to M18 is set to M06.
Tool exchange (ATC) command program corresponding to M
Work clamp command program corresponding to M10
The work unclamping command program corresponding to
17, a door opening instruction program is programmed. In addition, M code numbers (M96 and M97 in this case) that are not generally used are set in advance as special M codes that mean simultaneous operation start and simultaneous operation release, respectively. These special M codes M96 and M97 are included. The control program shown in the flowchart of FIG. 1 is also stored as a ladder program in order to process the NC program P transmitted to the sequencer 6. Each processing step of this control program is a function realizing means. These ladder programs are set by the input unit 11.

【0009】NCプログラムPは、前述の汎用Mコード
と、2つの特殊Mコードを用いて記述される。例えば図
2では、ATC動作と、ワーククランプ動作を同時動作
とし、また、加工終了後のワークアンクランプとドア開
き動作を同時動作とし、ドア閉じ動作を単独動作とした
ものであるが、この場合、同時動作させたい汎用Mコー
ドの並び(M06、M10)、(M11、M17)の先
頭のものの直前に、同時動作開始(設定)を示す特殊Mコ
ードM96を、並びの直後に同時動作解除を示す特殊M
コードM97を配列して、単独動作をさせるものは、従
来通り記述してある。この実施例では、2つの動作を同
時に行う場合について説明しているが、3つ、あるい
は、それ以上の動作を同時に行う場合でも同じである。
The NC program P is described using the above-mentioned general-purpose M code and two special M codes. For example, in FIG. 2, the ATC operation and the work clamping operation are performed simultaneously, the work unclamping and the door opening operation are performed simultaneously after the machining is completed, and the door closing operation is performed independently. A special M code M96 indicating simultaneous operation start (setting) is set immediately before the head of the general-purpose M code sequence (M06, M10) and (M11, M17) to be simultaneously operated, and the simultaneous operation is canceled immediately after the sequence. Special M shown
The arrangement in which the codes M97 are arranged so as to operate independently is described in the conventional manner. In this embodiment, the case where two operations are performed simultaneously is described. However, the same applies to the case where three or more operations are performed simultaneously.

【0010】次に、図1を参照しつつ、動作を説明す
る。図2のようにして、作成されたNCプログラムP
を、NC装置5に入力する。NC装置5は、NCプログ
ラムPの先頭から順に、Mコードをシーケンサ6に伝え
る。本実施例では、M18が最初に伝えられ、シーケン
サ6では、これをステップS1(Mコード読込、判別手
段)でどのMコードか判別し、汎用Mコードであるの
で、ステップS4(同時命令中判別手段)で同時命令中
かどうかを判別する。いま、そうでないので、ステップ
S7(動作命令手段)でM18に対応したラダープログ
ラムを実行し、ドア閉じ指令をドア開閉シリンダ4に出
力し、ステップS8(アクチュエータ動作確認手段)で
ドア開閉シリンダが動作したかどうかの確認をとって、
NC装置5から次のMコードを読み込む。
Next, the operation will be described with reference to FIG. The NC program P created as shown in FIG.
Is input to the NC device 5. The NC device 5 transmits the M code to the sequencer 6 in order from the top of the NC program P. In the present embodiment, M18 is transmitted first, and the sequencer 6 determines which M code is used in step S1 (M code reading / determination means). Means) to determine whether a simultaneous instruction is being performed. Since it is not right now, the ladder program corresponding to M18 is executed in step S7 (operation command means), a door closing command is output to the door opening / closing cylinder 4, and the door opening / closing cylinder is operated in step S8 (actuator operation confirmation means). Check that you have done
The next M code is read from the NC device 5.

【0011】シーケンサ6は、NC装置5から伝えられ
る次のMコード(M96)の指令により、ステップS2
(同時命令記憶手段)で”同時命令中”であることを記
憶する。そして、NC装置5から次のMコードを読み込
む。次のMコード(汎用MコードM06)がシーケンサ
6に読み込まれると、ステップS4で同時命令中である
ことが判別され、今度はステップS6(汎用Mコード記
憶手段)へ進み、その汎用MコードM06を記憶し、A
TC装置の動作確認を待つことなく、次の汎用Mコード
をNC装置から読み込む一方、汎用MコードM06を記
憶すると直ちに、ATC装置3にステップS9(即時命
令手段)で動作命令が出される。これにより、ATC装
置3は動作を開始する。M06を記憶して、すぐに読み
込まれた次のMコード(汎用MコードM10)も、前記
M06と同様にシーケンサ6に記憶され(ステップS
6)、直ちにクランプシリンダ2に動作命令が出される
(ステップS10)一方、クランプシリンダ2の動作確
認を待つことなく、また、次のMコードがNC装置5か
ら読み込まれる。今度は特殊コードM97がシーケンサ
6に読み込まれ、これにより、ステップS3(同時命令
解除手段)で”同時命令中であること”がクリアされ
る。
The sequencer 6 responds to the command of the next M code (M96) transmitted from the NC unit 5 in step S2.
(Simultaneous command storage means) stores that "simultaneous command is being executed". Then, the next M code is read from the NC device 5. When the next M code (general-purpose M code M06) is read into the sequencer 6, it is determined in step S4 that a simultaneous instruction is being performed, and the process proceeds to step S6 (general-purpose M code storage means). And A
Without waiting for the operation confirmation of the TC device, the next general-purpose M code is read from the NC device, and as soon as the general-purpose M code M06 is stored, an operation instruction is issued to the ATC device 3 in step S9 (immediate instruction means). As a result, the ATC device 3 starts operating. The next M code (general-purpose M code M10) that stores M06 and is immediately read is also stored in the sequencer 6 in the same manner as M06 (step S
6) An operation command is immediately issued to the clamp cylinder 2 (step S10), while the next M code is read from the NC device 5 without waiting for confirmation of the operation of the clamp cylinder 2. This time, the special code M97 is read into the sequencer 6, thereby clearing "simultaneous command execution" in step S3 (simultaneous command canceling means).

【0012】このように、特殊MコードM96,M97
で挾まれた同時動作ブロックB1では、アクチュエータ
の動作確認をせずに、汎用Mコードを読み込んで、読み
込んだ順に動作命令を出力するので、動作命令は、先の
汎用Mコードを記憶してから、次の汎用Mコードを記憶
するまでの、極めて僅かな処理時間をおいてシーケンサ
6から次々と出力されることになり、ATC動作と、ク
ランプ動作が同時的に行われることになる。そして、A
TC装置3と、クランプシリンダ2とは、その動作時間
の短い方が先に動作を完了するので、その動作確認をシ
ーケンサ6内に記憶し、長い方の動作完了を待って、ス
テップS5(同時動作一括確認手段)で、ATC装置3
と、クランプシリンダ2の動作完了を確認し、次のMコ
ードを読み込むことになる。その後、加工プログラムが
実行され、加工が完了すると、同時動作ブロックB2に
よる同時制御が行われるが、この場合も、同時動作ブロ
ックB1の場合と全く同じに処理される。
As described above, the special M codes M96 and M97
In the simultaneous operation block B1, which is sandwiched between, the general-purpose M code is read without checking the operation of the actuator, and the operation instructions are output in the order in which they are read. Are output one after another from the sequencer 6 after a very short processing time until the next general-purpose M code is stored, so that the ATC operation and the clamp operation are performed simultaneously. And A
Since the operation of the TC device 3 and the clamp cylinder 2 is completed earlier when the operation time is shorter, the operation confirmation is stored in the sequencer 6, and after the operation of the longer operation is completed, the process proceeds to step S5 (simultaneous operation). ATC device 3
Then, the operation completion of the clamp cylinder 2 is confirmed, and the next M code is read. After that, when the machining program is executed and machining is completed, simultaneous control by the simultaneous operation block B2 is performed. In this case, the processing is performed in exactly the same manner as in the case of the simultaneous operation block B1.

【0013】同時動作ブロックB1やB2等を含んだN
CプログラムPのチェックを行うとき、特殊MコードM
96,M97をNCプログラムPから取り除き、これを
NC装置5に入力すれば、図2において、ステップS
1、S4、S7、S8を繰り返すことで、複数のアクチ
ュエータを、動作確認をとりつつ、順次動作をさせるこ
とができるので、プログラムチェックが容易である。そ
して、特殊Mコードを2つ使用するだけで、NCプログ
ラムPの大部分を汎用Mコードで記述してあるので、分
かりやすいプログラムとなり、しかも、ラダープログラ
ムで複数の動作を1つのMコードとしたものでもなく、
汎用Mコードの、同時動作させたい部分を、特殊Mコー
ドで挾むだけでよいから、ユーザ側で、同時動作の組合
せを容易に変更できる。
N including simultaneous operation blocks B1 and B2, etc.
When checking C program P, special M code M
If 96 and M97 are removed from the NC program P and input to the NC device 5, in FIG.
By repeating steps S1, S4, S7 and S8, a plurality of actuators can be sequentially operated while confirming the operation, so that the program check is easy. And, by using only two special M codes, most of the NC program P is described by general-purpose M codes, so that the program becomes easy to understand. In addition, a plurality of operations are made into one M code by a ladder program. Not something,
Since the part of the general-purpose M code that is to be operated simultaneously can be simply sandwiched by the special M code, the user can easily change the combination of simultaneous operations.

【0014】[0014]

【発明の効果】以上のように本願では、同時動作させた
いアクチュエータへの指令を示す汎用Mコードの並びの
直前に同時動作を示す特殊Mコードを、並びの直後に同
時動作解除を示す特殊Mコードを配列して、NCプログ
ラムを作成するので、記述されたNCプログラムは、殆
どが汎用Mコードで記述され、プログラムが分かりやす
く、ユーザにおいて、同時動作の組合せを簡単に変更で
きる。また、このようにして作成されたプログラムの実
行時には、上記2つの特殊Mコードで囲まれた同時動作
ブロック内にある汎用Mコードは、その1つが記憶され
ると直ちにその動作指令が出される一方で、その動作指
令によるアクチュエータの動作確認をすることなく次の
汎用Mコードを読み込んで記憶して、先行する汎用Mコ
ードの動作指令に続いて直ちに次の汎用Mコードに基づ
く動作指令が出力されるため、アクチュエータが殆ど同
時に動作され、また、同時動作解除の特殊Mコードの指
令により、同時動作の確認をまとめて行うので、従来、
1つの汎用Mコードを実行して動作確認を取って、つぎ
のMコードを読み込んでいた場合に比べ、同時動作させ
た動作のうち、最も長い動作時間にのみの動作時間で同
時動作ブロックの動作時間が決定され、大幅な時間短縮
となる。しかも、このような特殊Mコードを使用して作
成したプログラムであっても、その特殊Mコードのみを
NCプログラムから取り除けば、全ての制御動作が、従
来通りのシーケンシャルな動きにできるので、プログラ
ムチェック時における動作確認が、極めて容易になる。
As described above, in the present application, a special M code indicating simultaneous operation immediately before the sequence of general-purpose M codes indicating commands to the actuators to be simultaneously operated, and a special M code indicating cancellation of the simultaneous operation immediately after the sequence are displayed. Since the NC program is created by arranging the codes, most of the described NC program is described in general-purpose M code, the program is easy to understand, and the user can easily change the combination of simultaneous operations. When the program created in this way is executed, the general-purpose M code in the simultaneous operation block surrounded by the above two special M codes is given an operation command as soon as one of them is stored. Then, the next general-purpose M code is read and stored without confirming the operation of the actuator based on the operation instruction, and the operation instruction based on the next general-purpose M code is output immediately after the operation instruction of the preceding general-purpose M code. Therefore, the actuators are operated almost at the same time, and the simultaneous operation is checked together by the special M code command to cancel the simultaneous operation.
Compared to the case where one general-purpose M code is executed to check the operation and the next M code is read, the operation of the simultaneous operation block is performed only in the longest operation time among the operations performed simultaneously. The time is determined and the time is greatly reduced. Moreover, even in a program created using such a special M code, if only the special M code is removed from the NC program, all the control operations can be performed in the same sequential manner as in the conventional program check. It is extremely easy to check the operation at the time.

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

【図1】本願方式を示す制御フローチャートである。FIG. 1 is a control flowchart showing a method of the present invention.

【図2】NCプログラムの説明図である。FIG. 2 is an explanatory diagram of an NC program.

【図3】本願を実施したハードウエア構成図である。FIG. 3 is a hardware configuration diagram that implements the present application.

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

1 マシニングセンタ、 2 クランプシリンダ、 3
ATC装置、4 ドア開閉シリンダ、 5 NC装
置、 6 シ−ケンサ、P NCプログラム、 M9
6、M97 特殊Mコード
1 machining center, 2 clamp cylinder, 3
ATC device, 4 door open / close cylinder, 5 NC device, 6 sequencer, PNC program, M9
6, M97 special M code

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 NCプログラムを読み取り、シーケンサ
にNCプログラムの命令を1つずつ伝えるNC装置と、
その命令を判別して、制御対象となるアクチュエータに
動作指令を出すシーケンサを備えた制御装置において、
同時動作開始及び、その解除を意味する特殊Mコードを
夫々設定し、NCプログラムを、同時動作させる複数の
汎用Mコードの並びの直前に同時動作開始を意味する特
殊Mコードを、並びの直後に同時動作解除を意味する特
殊Mコードを配列して記述されるNCプログラムとし、
シーケンサには、NC装置から伝えられるMコードがど
のMコードかを判別するMコード読込判別手段と、同時
動作開始を意味するMコードの場合に同時命令中を記憶
する同時命令記憶手段と、同時動作解除を意味するMコ
ードの場合に同時命令中をクリヤする同時命令解除手段
と、汎用Mコードの場合に同時命令中であるかどうかを
判別する同時命令中判別手段と、同時命令中判別手段で
同時命令中であった場合に汎用Mコードを記憶する汎用
Mコード記憶手段と、汎用Mコード記憶手段に記憶する
と直ちにその汎用Mコードに基づく動作命令を出力する
即時命令手段と、同時命令中判別手段で同時命令中でな
い場合に汎用Mコードに基づく動作指令を出力する動作
命令手段と、同時命令解除手段により同時命令中がクリ
ヤされた後,同時動作の完了を確認する同時動作一括確
認手段とを制御プログラムとしてシーケンサに設定する
入力手段を設け,同時動作開始を示す特殊Mコードによ
る指令があった時以後の汎用Mコードによる指令時は、
上記汎用Mコード記憶手段により汎用Mコードのみを記
憶して動作確認をすることなくNC装置から次の汎用M
コードを読み込み、汎用Mコードを記憶すると直ちに、
上記即時命令手段により対象となるアクチュエータに動
作指令を出力し、同時動作解除指令を示す特殊Mコード
指令があったときに、同時命令解除手段により同時命令
中をクリヤした後,同時動作一括確認手段により同時動
作の完了を確認するようにしたことを特徴とする制御装
置。
An NC program is read and a sequencer is read.
An NC device for transmitting the instructions of the NC program one by one to
Judge the command and send it to the actuator to be controlled.
In a control device equipped with a sequencer that issues operation commands,
Special M code that means simultaneous operation start and its release
Multiple NC programs are set and run simultaneously.
Immediately before the general-purpose M code,
A special M code is used immediately after
An NC program described by arranging special M codes,
The M code transmitted from the NC unit is included in the sequencer.
M code reading determining means for determining whether the
Stores during simultaneous instruction in case of M code which means operation start
Command storage means to execute
Simultaneous command release means that clears the simultaneous command in case of mode
And whether or not it is during simultaneous instruction in case of general-purpose M code
The simultaneous command determination means and the simultaneous command determination means
General-purpose memory for storing general-purpose M code when a simultaneous instruction is being executed
Store in M code storage means and general-purpose M code storage means
And immediately output an operation instruction based on the general-purpose M code
Immediate instruction means and simultaneous instruction determination means
Operation to output operation command based on general-purpose M code
The simultaneous instruction is cleared by the instruction means and the simultaneous instruction release means.
After the operation is completed, the simultaneous operation
Set the recognition means in the sequencer as a control program
Input means is provided and a special M code is used to indicate the start of simultaneous operation.
When a general-purpose M-code command is issued after a command is issued,
The general-purpose M code storage means stores only the general-purpose M code.
Remember the next general-purpose M from the NC device without checking the operation.
As soon as you read the code and store the generic M code,
Act on the target actuator by the above immediate command means
Special M code that outputs operation command and indicates simultaneous operation release command
When a command is issued, a simultaneous command is issued by the simultaneous command release means.
After clearing the inside, simultaneous operation is performed by the simultaneous operation
The control device is characterized by confirming the completion of the operation
Place.
JP06707395A 1995-02-28 1995-02-28 Control device Expired - Lifetime JP3332061B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06707395A JP3332061B2 (en) 1995-02-28 1995-02-28 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06707395A JP3332061B2 (en) 1995-02-28 1995-02-28 Control device

Publications (2)

Publication Number Publication Date
JPH08234820A JPH08234820A (en) 1996-09-13
JP3332061B2 true JP3332061B2 (en) 2002-10-07

Family

ID=13334334

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06707395A Expired - Lifetime JP3332061B2 (en) 1995-02-28 1995-02-28 Control device

Country Status (1)

Country Link
JP (1) JP3332061B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058212A (en) * 2001-08-21 2003-02-28 Seibu Electric & Mach Co Ltd Numerically controlled machine device
JP4666936B2 (en) * 2004-03-31 2011-04-06 株式会社牧野フライス製作所 NC machine tool control method having indexing table and NC machine tool
JP6281334B2 (en) * 2014-03-12 2018-02-21 株式会社ジェイテクト NC program creation device
JP6950415B2 (en) 2017-09-29 2021-10-13 オムロン株式会社 Control device

Also Published As

Publication number Publication date
JPH08234820A (en) 1996-09-13

Similar Documents

Publication Publication Date Title
WO2003067345A1 (en) Numeric control method and numeric control system
US20140364989A1 (en) Controller for controlling machine tool and robot
US20040236462A1 (en) Numerical control apparatus for machine tool
JP3332061B2 (en) Control device
WO2004074953A1 (en) Numerically controlled device
EP1394642B1 (en) Multi-system numerical control device
GB2083247A (en) A programmable machine
JPS61173842A (en) Numerical control device
EP0328665B1 (en) Numerical controller
JPS6149206A (en) Process operation method
JPS6349803A (en) Nc program production system for nc device
JPS62237508A (en) Numerical controlled punch pressing machine
JPH02172646A (en) Numerical control device
JP2005131775A5 (en)
JPH07319520A (en) Method for controlling machine tool and device therefor
JPH0883113A (en) Controller for nc machine tool
JP2642451B2 (en) Numerical control unit
JPH0482640A (en) Numerical control device
JPH064214B2 (en) Machining sequence control method for numerically controlled machine tools
JPH0786763B2 (en) Numerical control method
JPS6232503A (en) Numerical controller
JPH0682291B2 (en) Numerical control device
JPS63312043A (en) Actual working result tabulator in numerically controlled machine tool
WO1988008764A1 (en) High-efficiency tool selection system
JP2003186514A (en) Numerical control apparatus

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090726

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100726

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100726

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110726

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120726

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130726

Year of fee payment: 11

EXPY Cancellation because of completion of term