JPH03144806A - Composite controller - Google Patents

Composite controller

Info

Publication number
JPH03144806A
JPH03144806A JP28369889A JP28369889A JPH03144806A JP H03144806 A JPH03144806 A JP H03144806A JP 28369889 A JP28369889 A JP 28369889A JP 28369889 A JP28369889 A JP 28369889A JP H03144806 A JPH03144806 A JP H03144806A
Authority
JP
Japan
Prior art keywords
program
machining
programmable logic
logic controller
control device
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
JP28369889A
Other languages
Japanese (ja)
Inventor
Hisashi Yao
尚志 八尾
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP28369889A priority Critical patent/JPH03144806A/en
Publication of JPH03144806A publication Critical patent/JPH03144806A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To process the works of all types with a single program despite the increase of types of works by providing a BASIC program to automatically process the works in response to the change of the working conditions. CONSTITUTION:The coordinates of a moving destination and the moving speed necessary for a work are held in a single BASIC program 109d as a variable. Then the program 109d is stored in a numerical controller 102 in place of a working program. The coordinates and the speed are automatically written to the variable contained in the program 109d via a programmable logic controller 103 in response to the type of the work. Then the program 109d is carried out and the work is processed based on the contents of the variable. Thus it is possible to process the works of all types via a single program despite the increase of types of works and to eliminate the shortage of capacity of a numerical storage.

Description

【発明の詳細な説明】 〔産業上の利用分野] この発明は数値制御手段とプログラマブルロジックコン
トローラとを備えた複合制御装置に関しより詳細には書
き込まれた移動先座標及び速度に応じて機械の加工処理
を制御する複合制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a composite control device equipped with a numerical control means and a programmable logic controller, and more specifically, the present invention relates to a complex control device that is equipped with a numerical control means and a programmable logic controller, and more particularly, it is a device for processing a machine according to written destination coordinates and speed. The present invention relates to a composite control device that controls processing.

〔従来技術] 従来の複合制御装置として第4図に示す構造のものがあ
る。
[Prior Art] A conventional composite control device has a structure shown in FIG.

この複合制御装置にあっては、制御対象となる機械40
1と、該機械401の数値制御を実行するためのデータ
を演算処理する数値制御装置(NC)402と、該数値
制御装置402及び前記機械401をプログラム制御す
るプログラマブルロジックコントローラ(PLC)40
3と、該プログラマブルロジックコントローラ403と
前記数値制御装置402とを接続するパラレルバス40
7と、所定の加工情報を記録しておく磁気テープ等の記
録手段404と、該記録手段404に記録された加工情
報を入力する入力部405と。
In this composite control device, a machine 40 to be controlled
1, a numerical control device (NC) 402 that processes data for executing numerical control of the machine 401, and a programmable logic controller (PLC) 40 that program-controls the numerical control device 402 and the machine 401.
3, and a parallel bus 40 connecting the programmable logic controller 403 and the numerical control device 402.
7, a recording means 404 such as a magnetic tape for recording predetermined processing information, and an input section 405 for inputting the processing information recorded on the recording means 404.

制御情報を前記プログラマブルロジックコントローラ4
03に設定1表示する設定表示部406とを有し、前記
記録手段4041人力部405.設定表示部406はプ
ログラマブルロジックコントローラ403に接続されて
いる。
control information to the programmable logic controller 4
The recording means 4041 has a setting display section 406 that displays the setting 1 at 03, and the recording means 4041 manual section 405. Setting display section 406 is connected to programmable logic controller 403.

数値制御装置402は、各部に対する制御及び演算処理
を実行するCPU408と、前記プログラマブルロジッ
クコントローラ403によってプログラムされた加工プ
ログラム409r。
The numerical control device 402 includes a CPU 408 that executes control and calculation processing for each part, and a machining program 409r programmed by the programmable logic controller 403.

409、.409h及び該加工プログラム4091.4
09..409.を実行するための加工プログラム実行
手順4091及び加工情報409bを記憶する記憶部4
09と、前記機械401の被制御軸部(図示せず)の移
動量を演算する移動演算部410と、前記CPU408
及びプログラマブルロジックコントローラ403の双方
から続出・書き込みを実行することができる共有メモリ
411と、該共有メモリ411の続出・書き込み動作を
前記CPO408とプログラマブルロジックコントロー
ラ403との間で切り換える切換部412と、前記プロ
グラマブルロジックコントローラ403から前記CPU
40 Bへの割込信号を制御する割込制御部413と、
前記CPU40 Bから前記プログラマブルロジックコ
ントローラ403への割込信号を制御する割込制御部4
14と、前記各割込制御部413,414とプログラマ
ブルロジックコントローラ403との間における信号の
送受信を実行するインターフェース415とを備えてい
る。
409,. 409h and the processing program 4091.4
09. .. 409. Storage unit 4 that stores machining program execution procedure 4091 and machining information 409b for executing
09, a movement calculation unit 410 that calculates the movement amount of a controlled shaft portion (not shown) of the machine 401, and the CPU 408.
a shared memory 411 that can perform continuous read/write operations from both the CPO 408 and the programmable logic controller 403; from the programmable logic controller 403 to the CPU
an interrupt control unit 413 that controls an interrupt signal to 40B;
an interrupt control unit 4 that controls interrupt signals from the CPU 40B to the programmable logic controller 403;
14, and an interface 415 for transmitting and receiving signals between each of the interrupt control units 413, 414 and the programmable logic controller 403.

また、上記プログラマブルロジックコントローラ403
は、制御処理の演算を実行するCPU416と、咳cP
U416の制御処理の演算に必要なシーケンスプログラ
ム417.を記憶する記憶部417と、前記CPU41
6の演算に基づき機械401を制御するための制御信号
を出力する出力部418と、前記CPU416と前記数
値制御装置402との間における信号の送受信を実行す
るインターフェース419とを備えている。
In addition, the programmable logic controller 403
is a CPU 416 that executes calculations for control processing, and a cough cP
Sequence program 417 necessary for calculation of control processing of U416. a storage unit 417 that stores
6, and an interface 419 for transmitting and receiving signals between the CPU 416 and the numerical control device 402.

更に前記数値制御装置402における記憶部409の中
の加工プログラム409.,409゜409、、の内容
は2例えば第7図に示すようなものがある。
Further, a machining program 409 in the storage section 409 in the numerical control device 402. , 409° 409, 2. For example, the contents of 2 are as shown in FIG.

第7図の加工プログラム1(409f)において、GO
は早送り指令、C1は切削送り指令、X。
In machining program 1 (409f) in Fig. 7, GO
is a rapid feed command, C1 is a cutting feed command, and X.

Y、Zは機械の駆動制御軸の名称、x、y、zの直後の
数値は座標(単位mm)、Fは切削送り速度であること
を示す記号であり、Fの直後の数字は切削送り速度(単
位1TIIll/分)を示している。
Y and Z are the names of the drive control axes of the machine, the numbers immediately after x, y, and z are the coordinates (unit: mm), F is a symbol indicating the cutting feed rate, and the number immediately after F is the cutting feed. The speed (unit: 1 TIIll/min) is shown.

従って2 GOX100Y200Z300 (701)は、X座標
100mm、Y座標200mm、Z座標300mmの位
置に早送りで機械401を移動することを示している。
Therefore, 2 GOX100Y200Z300 (701) indicates that the machine 401 is moved in rapid traverse to a position with an X coordinate of 100 mm, a Y coordinate of 200 mm, and a Z coordinate of 300 mm.

また。Also.

GIX150Y220Z370F800 (702)は
、X座標150mm、Y座標200mm、Z座標370
mmの位置に切削送り速度800++un/分で機械4
01を移動する(切削する)ことを示している。
GIX150Y220Z370F800 (702) has an X coordinate of 150 mm, a Y coordinate of 200 mm, and a Z coordinate of 370 mm.
Machine 4 at cutting feed rate 800++un/min at mm position
01 is moved (cut).

更に。Furthermore.

GOX50Y150Z250 (703)は、X座標5
0mm、Y座標150mm、Z座標250mmの位置に
早送りで機械401を移動することを示している。
GOX50Y150Z250 (703) is the X coordinate 5
0 mm, the Y coordinate is 150 mm, and the Z coordinate is 250 mm.

以上の構成において、この従来の複合制御装置の動作を
説明する。
With the above configuration, the operation of this conventional composite control device will be explained.

加工ワークが複数種類存在する場合に、各々の加工ワー
ク毎に移動先の座標や速度が異なるため加工プログラム
も加工ワークの種類分作威し、数値制御装置402の記
憶部409に記憶させておいてから加工ワークの種類に
応じた加工プログラムを実行して加工処理を行う。
When there are multiple types of workpieces, each workpiece has different movement destination coordinates and speeds, so the machining program is created for each type of workpiece and is stored in the storage unit 409 of the numerical control device 402. Then, execute the machining program according to the type of workpiece to perform machining.

加工情報409b、加工プログラム409f。Processing information 409b, processing program 409f.

409、.409hをプログラマブルロジックコントロ
ーラ403の記憶部409に書き込む動作について第5
図のフローチャートを用いて、以下に説明する。
409,. 5th about the operation of writing 409h into the storage unit 409 of the programmable logic controller 403
This will be explained below using the flowchart shown in the figure.

第Iに、プログラマブルロジックコントローラ403に
加工情報4091等の書き込み信号が入力する(ステッ
プ501)と、プログラマブルロジ・ンクコントローラ
403はパラレルバス407゜インターフェース415
を介して割込制御部413に割込信号を出力する(ステ
ップ502)。
First, when a write signal such as processing information 4091 is input to the programmable logic controller 403 (step 501), the programmable logic controller 403 uses the parallel bus 407° interface 415
An interrupt signal is output to the interrupt control unit 413 via the interrupt controller 413 (step 502).

この割込信号の入力により割込制御部413はCPU4
08に割込をかける(ステップ503)。
Upon input of this interrupt signal, the interrupt control unit 413 causes the CPU 4 to
08 (step 503).

CPtJ40 Bは割込制御部413による割込がかけ
られると、切換部412に切換信号を出力しくステップ
504)、切換部412をプログラマブルロジックコン
トローラ403に切り換える(ステップ505)。一方
、CPO408は割込制御部414に対してCPU40
 Bの準備完了の割込信号を出力し1割込制御部414
からプログラマブルロジックコントローラ403に割込
をかける(ステップ506)。その後、プログラマブル
ロジックコントローラ403は、CPU準備完了の割込
信号を入力すると、入力部405から設定表示部406
を介して加工情報4091等をプログラマブルロジック
コントローラ403に読み込ミ(ステップ507L パ
ラレルバス407を介して共有メモリ411に加工情報
4091等を読み込む(ステップ508)。前記共有メ
モリ411に対する加工情報4091等の読み込みが完
了したか否かを判断しくステップ509)完了したと判
断すると、CPU40Bから切換部412に対して切換
信号を出力しくステップ510)、切換部412をCP
U408側に切り換える(ステップ511)。その後、
CPU408は共有メモリ411に読み込まれた加工情
報4095等を記憶部409にに読み込み(ステップ5
12)、一連の動作は完了する。
When the interrupt control unit 413 interrupts, the CPtJ40B outputs a switching signal to the switching unit 412 (step 504), and switches the switching unit 412 to the programmable logic controller 403 (step 505). On the other hand, the CPO 408 sends the CPU 40 to the interrupt control unit 414.
1 interrupt control unit 414 outputs an interrupt signal indicating that B is ready.
An interrupt is issued to the programmable logic controller 403 (step 506). Thereafter, when the programmable logic controller 403 receives an interrupt signal indicating that the CPU is ready, the programmable logic controller 403 inputs an interrupt signal indicating that the CPU is ready.
Processing information 4091 and the like are read into the programmable logic controller 403 via the parallel bus 407 (step 507L). It is determined whether the reading is completed or not (step 509). If it is determined that the reading is completed, the CPU 40B outputs a switching signal to the switching unit 412 (step 510), and the switching unit 412 is switched to the CP.
Switch to the U408 side (step 511). after that,
The CPU 408 reads the processing information 4095 etc. read into the shared memory 411 into the storage unit 409 (step 5).
12), the series of operations is completed.

また、共有メモリ411に対する読み込み動作までで充
分であり、記録部409に対する読み込みまで必要のな
い場合にはステップ509までの動作で完了となる。
Further, if it is sufficient to read the shared memory 411 and there is no need to read the recording unit 409, the operation up to step 509 is completed.

以下、加工情報4096等の記録部409或いは共有メ
モリ411に対する読み込み動作は3上記した如き動作
により実行されることを前提に説明する。
The following description will be made on the premise that the operation of reading processing information 4096 and the like into the recording unit 409 or the shared memory 411 is performed by the operations described above.

次に2例えば、加工ワークNo、1.Nα2.Nα3の
各々に加工プログラム1,2.3が対応しているとした
場合、プログラマブルロジックコントローラ403のシ
ーケンスプログラム4171の実行により加工ワークの
種類を判別しくステップ601)、例えば、加工ワーク
N011であるならば加工プログラム1の実行要求を共
有メモリ411に書き込む(ステップ602)。
Next, 2, for example, processing work No. 1. Nα2. If machining programs 1, 2.3 correspond to each of Nα3, the type of workpiece to be machined is determined by executing the sequence program 4171 of the programmable logic controller 403 (step 601). For example, if the workpiece is machined No. For example, an execution request for machining program 1 is written into shared memory 411 (step 602).

一方、数値制御装置402の加工プログラム実行手順4
09.は、共有メモリ411を参照してプログラマブル
ロジックコントローラ403からの加工プログラム実行
要求が有るか否かを判断しくステップ608)、加工プ
ログラム実行要求が有ると判断する場合には、要求され
た加工プログラム(加工プログラム1)を1行実行しく
ステップ609)、全行実行完了したか否かを調べ(ス
テップ610)、全行実行完了したと判断した場合には
実行完了の割込をCPU408にかける。
On the other hand, machining program execution procedure 4 of the numerical control device 402
09. refers to the shared memory 411 to determine whether there is a machining program execution request from the programmable logic controller 403 (step 608), and if it is determined that there is a machining program execution request, the requested machining program ( The machining program 1) is executed for one line (step 609), and it is checked whether all lines have been executed (step 610). If it is determined that all lines have been executed, an execution completion interrupt is sent to the CPU 408.

CPU408は、該割込信号を割込制御部414インタ
ーフエース415,419を介してプログラマブルロジ
ックコントローラ403の、CPU416へ出力して実
行を完了する(ステップ611)。CPU416は前記
実行完了をシーケンスプログラム4171に知らせ、ス
テップ603で加工プログラム1実行完了と判断し、力
lエワークNo、 1の加工処理を完了する。
The CPU 408 outputs the interrupt signal to the CPU 416 of the programmable logic controller 403 via the interrupt control unit 414 interfaces 415 and 419, and completes the execution (step 611). The CPU 416 notifies the sequence program 4171 of the completion of the execution, and in step 603 determines that the execution of the machining program 1 has been completed, and completes the machining process for the work No. 1.

加工ワークNα2(ステップ604,605)Nα3(
ステップ606,607)の加工処理も上記と同様に実
行されることになる。
Machining work Nα2 (steps 604, 605) Nα3 (
The processing in steps 606 and 607) will also be performed in the same manner as above.

〔発明が解決しようとする課題] しかしながら、加工ワークの種類が増加した場合、増加
した加工ワークの加工処理に必要な移動先の座標や速度
が既存の加工ワークと異なるため。
[Problems to be Solved by the Invention] However, when the types of workpieces to be processed increase, the coordinates and speed of the movement destination required for processing the increased workpieces are different from those of the existing workpieces.

当該加工ワーク用に新しく加工プログラムを作成しなけ
ればならないという問題点があり、また。
There is also the problem that a new machining program must be created for the machining workpiece.

加工プログラムを記憶するための記憶部に加工プログラ
ムの追加を続行してゆくことにより、その記憶容量が限
界に到達してしまい、記憶容量不足が発生するという問
題点があった。
There has been a problem in that as machining programs are continued to be added to a storage unit for storing machining programs, its storage capacity reaches its limit, resulting in a shortage of storage capacity.

この発明は、上記のような問題点を解消するためになさ
れたもので、加工ワークの種類が増加しても、加工プロ
グラムの追加をせずに1本のプログラムで全種類の加工
ワークを加工処理できるようにした複合制御装置を得る
ことを目的とする。
This invention was made to solve the above-mentioned problems, and even if the number of types of workpieces increases, it is possible to process all types of workpieces with one program without adding additional machining programs. The purpose is to obtain a composite control device that can perform processing.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係る複合制御装置は、加工ワークにおける加
工処理を、加工条件の変化に自動的に対応して実施する
ためのBAS I Cプログラムと=lAsIcプログ
ラムを実行するためのBASICプログラム実行手順と
、該BASICプログラムの実行により加工指令が書、
き込まれる加工プログラムバッファと、該加工プログラ
ムバソファに書き込まれた前記加工指令を実行するため
の加工プログラム実行手順と、該加工処理実行時に使用
する加工情報とを前記数値制御手段に設け、プログラマ
ブルロジックコントローラより加工情報に対して加工条
件に応じた制御対象たる機械の移動先座標と速度を書き
込んだ後、前記BASICプログラムを実行することに
より加工情報から読み出される移動先座標と速度に基づ
いて加工処理を実行する複合制御装置を提供するもので
ある。
The composite control device according to the present invention includes a BASIC program execution procedure for executing a BASIC program and an lAsIc program for automatically performing machining processing on a workpiece in response to changes in machining conditions; Processing commands are written by executing the BASIC program,
The numerical control means is provided with a machining program buffer to be loaded, a machining program execution procedure for executing the machining command written in the machining program buffer, and machining information used when executing the machining process, and is programmable. After writing the destination coordinates and speed of the machine to be controlled according to the machining conditions into the machining information from the logic controller, machining is performed based on the destination coordinates and speed read from the machining information by executing the BASIC program. The present invention provides a composite control device that executes processing.

〔作用〕[Effect]

上記のように構成された複合制御装置は、加工ワークに
必要な移動先の座標や速度を1本のBASICプログラ
ム中で変数として保持させHBAsxcプログラムを加
工プログラムの代わりとして数値制御装置に記憶させて
おき、プログラマブルロジックコントローラによって加
工ワークの種類に応じた前記座標と前記速度を前記BA
S I Cプログラム中の前記変数に対して自動的に書
き込んだ後、該BASICプログラムを実行し、前記変
数の内容に基づいて加工処理を実行する。
The composite control device configured as described above holds the coordinates and speed of the movement destination necessary for the machining workpiece as variables in one BASIC program, and stores the HBAsxc program in the numerical control device as a substitute for the machining program. Then, the programmable logic controller sets the coordinates and the speed according to the type of workpiece to the BA.
After automatically writing into the variables in the SIC program, the BASIC program is executed and processing is performed based on the contents of the variables.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明により複合制御装置の全体構成を示して
いるブロック図であり、構成に関しては第4図に示した
従来の複合制御装置の構成と記憶部109を除いて同一
の構成を採用している。
FIG. 1 is a block diagram showing the overall configuration of a composite control device according to the present invention, and the configuration is the same as that of the conventional composite control device shown in FIG. 4 except for the storage unit 109. are doing.

本発明による複合制御装置にあっては、制御対象となる
機械101と、該機械101の数値制御を実行するため
のデータを演算処理する数値制御装置(NC)102と
、該数値制御装置102及び機械101をプログラム制
御するプログラマブルロジックコントローラ(PLO)
103と2該プログラマブルロジツクコントローラ10
3と前記数値制御装置102とを接続するパラレルバス
107と、所定の加工情報を記録しておく磁気テープ等
の記録手段104と、該記録手段104に記録された加
工情報を入力する入力部105と。
In the composite control device according to the present invention, a machine 101 to be controlled, a numerical control device (NC) 102 that processes data for executing numerical control of the machine 101, and a numerical control device 102 and Programmable logic controller (PLO) that programmatically controls the machine 101
103 and 2 the programmable logic controller 10
3 and the numerical control device 102, a recording means 104 such as a magnetic tape for recording predetermined processing information, and an input section 105 for inputting the processing information recorded on the recording means 104. and.

制御情報を前記プログラマブルロジックコントローラ1
03に設定2表示する設定表示部106とを有し、前記
記録手段104.入力部105.設定表示部106はプ
ログラマブルロジックコントローラ403に接続されて
いる。
control information to the programmable logic controller 1
and a setting display section 106 that displays setting 2 at 03, and the recording means 104. Input section 105. The setting display section 106 is connected to the programmable logic controller 403.

数値制御装置102は、各部に対する制御及び演算処理
を実行するCPU108と、加工プログラムの代わりと
なるBAS I Cプログラム1094を実行するため
の実行手順であるBASICプログラム実行手順109
cと、前記BASICプログラム109.の実行により
加工指令が書き込まれる加工プログラムバッファ109
゜と、加工プログラム実行手順109.及び加工情報1
09bを記憶する記憶部109と、前記機械101の被
制御軸部(図示せず)の移動量を演算する移動演算部1
10と、前記CPU108及びプログラマブルロジック
コントローラ103の双方から続出・書き込みを実行す
ることができる共有メモリ111と、該共有メモリ11
1の続出・書き込み動作を前記CPU108とプログラ
マブルロジックコントローラ103との間で切り換える
切換部112と、前記プログラマブルロジックコントロ
ーラ103から前記CP tJ 108への割込信号を
制御する割込制御部113と、前記CPU108かう前
記プログラマブルロジックコントローラ103への割込
信号を制御する割込制御部114と、前記各割込制御部
113,114とプログラマブルロジックコントローラ
103との間における信号の送受信を実行するインター
フェース115とを備えている。
The numerical control device 102 includes a CPU 108 that executes control and arithmetic processing for each part, and a BASIC program execution procedure 109 that is an execution procedure for executing a BASIC program 1094 that replaces a machining program.
c, and the BASIC program 109. Machining program buffer 109 into which machining commands are written by executing
゜ and machining program execution procedure 109. and processing information 1
09b, and a movement calculation unit 1 that calculates the movement amount of the controlled shaft portion (not shown) of the machine 101.
10, a shared memory 111 that can be read/written from both the CPU 108 and the programmable logic controller 103, and the shared memory 11.
a switching unit 112 that switches the successive write/write operation of 1 between the CPU 108 and the programmable logic controller 103; an interrupt control unit 113 that controls an interrupt signal from the programmable logic controller 103 to the CP tJ 108; The CPU 108 includes an interrupt control unit 114 that controls interrupt signals to the programmable logic controller 103, and an interface 115 that executes signal transmission and reception between each of the interrupt control units 113, 114 and the programmable logic controller 103. We are prepared.

また2上記プログラマブルロジツクコントローラ103
は、制御処理の演算を実行するCPU116と、該CP
U116の制御処理の演算に必要なシーケンスプログラ
ム117.を記憶する記憶部117と、前記CPU11
6の演算に基づき2機械工01を制御するための制御信
号を出力する出力部118と、前記CPU116と前記
数値制御装置102との間における信号の送受信を実行
するインターフェース119とを備えている。
In addition, 2 the above programmable logic controller 103
is a CPU 116 that executes calculations for control processing, and
Sequence program 117 necessary for calculation of control processing of U116. a storage unit 117 that stores the CPU 11;
6, and an interface 119 for transmitting and receiving signals between the CPU 116 and the numerical control device 102.

以上の構成において2加エワークの種類が異なっても1
本のBASICプログラム109.により加工ワークに
応じた座標と速度にて加工処理を実行′する動作につい
て第2図及び第3図を用いて説明する。
In the above configuration, even if the type of double work is different, 1
Book BASIC Program 109. The operation of executing the machining process at the coordinates and speed according to the workpiece to be machined will be explained with reference to FIGS. 2 and 3.

尚、ここで、加工情報109b、BASICプログラム
109.を記憶部109に、また必要なデータを共有メ
モリ111に書き込む動作に関しては第5図に示したフ
ローチャートと同じであることを前提として説明する。
Here, processing information 109b, BASIC program 109. The following description assumes that the operation of writing data into the storage unit 109 and necessary data into the shared memory 111 is the same as the flowchart shown in FIG.

プログラマブルロジックコントローラ103における記
憶部117ののシーケンスプログラム117、の実行に
より加工ワークの種類を判別しくステップ201)、例
えば2加エワークNo、 1であるならば、この加工ワ
ークに必要な座標と速度をBAS I Cプログラムエ
09.の中の、第3図301 302 303によって
示すユーザ変数1〜10に書き込む要求と、前記ユーザ
変数1〜10に書き込む座標と速度を共有メモリ111
に書き込む。ここで、加工ワークNα1の加工処理に必
要な座標、速度と前記ユーザ変数1〜10の対応関係は
、第7図に示す様に。
The type of workpiece is determined by executing the sequence program 117 in the storage unit 117 in the programmable logic controller 103 (step 201). BAS I C program 09. A request to write to user variables 1 to 10 indicated by 301 302 303 in FIG.
write to. Here, the correspondence between the coordinates and speed necessary for processing the processing workpiece Nα1 and the user variables 1 to 10 is as shown in FIG.

GOX400Y200Z300 (701)において、
100−・−ユーザ変数1,200・−・ユーザ変数2
,300・−ユーザ変数3であり。
In GOX400Y200Z300 (701),
100--User variable 1,200--User variable 2
,300--user variable 3.

C;lX150Y220Z370F800(702)に
おいて、150・・−ユーザ変数4゜220−ユーザ変
数5.370−ユーザ変数6゜800・・・ユーザ変数
7であり5 GOX50Y150Z250 (703)において、5
0−ユーザ変数8,150−・ユーザ変数9゜250−
・・ユーザ変数lOとなっている。
C; In I
0-User variable 8,150-・User variable 9゜250-
...It is a user variable lO.

また、ユーザ変数の内容は加工情報に109゜に書き込
まれる。
Further, the contents of the user variables are written at 109° in the processing information.

一方、数値制御装置102のBASICプログラム実行
手順109Cの実行によって、第1に共有メモリ111
を参照してステップ202203或いは204による前
記加工ワークNo、 INα2.No、3の加工処理に
必要な座標、速度をユーザ変数1〜10に書き込む要求
があるか否かを判断しくステップ208)、8g要求が
あると判断したならば、共有メモリ111に書き込まれ
ている前記座標、速度を読み出し、加工情報109゜中
のユーザ変数1〜10に書き込み(ステップ209)、
書き込み完了の割込信号を数値制御装置102のCPU
10Bに出力する(ステップ210)。上記割込信号を
人力したCPU108は、該割込信号を割込制御部11
4及びインターフェース115,119を介してプログ
ラマブルロジックコントローラ103のCPU116へ
出力する。CPUI 16は前記書き込み完了を記憶部
117のシーケンスプログラム117aに知らせ、ステ
ップ205で、ユーザ変数1〜10への書き込み完了を
判断し、ステン1206へ進む。
On the other hand, by executing the BASIC program execution procedure 109C of the numerical control device 102, the shared memory 111
With reference to step 202203 or 204, the processed work No. INα2. Step 208) determines whether there is a request to write the coordinates and speed necessary for the processing of No. 3 to user variables 1 to 10. If it is determined that there is a request for 8g, the coordinates and speed necessary for the processing of No. Read out the coordinates and speed at which it is located and write it into user variables 1 to 10 in the processing information 109 (step 209),
The write completion interrupt signal is sent to the CPU of the numerical control device 102.
10B (step 210). The CPU 108 that manually generated the interrupt signal transmits the interrupt signal to the interrupt control unit 11.
4 and interfaces 115 and 119 to the CPU 116 of the programmable logic controller 103. The CPU 16 notifies the sequence program 117a of the storage unit 117 of the completion of the writing, and in step 205 determines that writing to user variables 1 to 10 is complete, and proceeds to step 1206.

このステップ206においては、BASICプログラム
109.の実行要求を共有メモリ111に書き込む。
In this step 206, the BASIC program 109. write the execution request to the shared memory 111.

一方、BASICプログラム実行手順109cでは、共
有メモリ111を参照にして前記のBASrCプログラ
ム1094の実行要求があるか否かを判断しくステップ
211)、実行要求があると判断したぼらば、BAST
Cプログラム109、tを実行する。
On the other hand, in the BASIC program execution procedure 109c, it is determined whether or not there is an execution request for the BASrC program 1094 with reference to the shared memory 111 (step 211).
Execute C program 109, t.

この場合、第3図に示したBASICプログラム109
4を先頭から実行していくが、第1に第1O行の PRINT  Go X(L−ザ変数1) Y (L−
ザ変数2)2(ユーザ変数3)# を実行すると、°で囲まれたGOX(ユーザ変数1〉Y
(ユーザ変数2)Z(ユーザ変数3)を加工プログラム
バッファ109.へ書き込むが、このとき。
In this case, the BASIC program 109 shown in FIG.
4 from the beginning, first, print Go X (L-the variable 1) Y (L-
user variable 2) 2 (user variable 3) # When executed, GOX (user variable 1>Y
(User variable 2) Z (User variable 3) is processed in program buffer 109. However, at this time.

ユーザ変数1〜3の内容を加工情報109.より読み出
し8それらを文字に変換して G90 GOX100 Y2O0X300として加工プ
ログラムバッファ1098に書き込む。第20行、第3
0行の実行も同様であり、第40行のSYSTEMの実
行によりBASICプログラム109.の実行を完了す
る(ステップ212)。
The contents of user variables 1 to 3 are processed as information 109. 8, converts them into characters, and writes them into the machining program buffer 1098 as G90 GOX100 Y2O0X300. Line 20, 3rd
The same goes for the execution of line 0, and BASIC program 109. (step 212).

この後、加工プログラム実行手順1091を呼び出して
実行する(ステップ213)。この加工プログラム実行
手順1098は加工プログラムバッファ1098に書き
込まれた加工指令文字(第′7図における701,70
2,703)を上行ずつ読み出して解析しながら、加工
(移動)処理を実行しくステップ215)、加工プログ
ラムバッファ109oに書き込まれた前記加工指令文字
を全行実行完了したならば(ステップ216)加工プロ
グラム実行手順1091を終了し、ステップ214で、
加工ワークNa 1の加工完了割込信号をCPUI O
8に出力する。CPU 108は該割込信号を割込制御
部114及びインターフェース115,119を介して
プログラマブルロジックコントローラ103のCPUI
 16に出ノjし該CPU116は、前記加工完了を記
憶部117のシーケンスプログラム117aに知らせ、
ステップ207において、加工ワークNo、 1の加工
処理が完了したか否かを判断する。
Thereafter, the machining program execution procedure 1091 is called and executed (step 213). This machining program execution procedure 1098 is performed by machining command characters (701, 70 in FIG. '7) written in the machining program buffer 1098.
2, 703) is read and analyzed line by line to execute the machining (movement) process.Step 215) When the machining command characters written in the machining program buffer 109o have been executed for all lines (Step 216) After completing the program execution procedure 1091, in step 214,
Processing completion interrupt signal of processing workpiece Na 1 is sent to CPUI O.
Output to 8. The CPU 108 sends the interrupt signal to the CPUI of the programmable logic controller 103 via the interrupt control unit 114 and interfaces 115 and 119.
16, the CPU 116 notifies the sequence program 117a of the storage unit 117 of the completion of the machining,
In step 207, it is determined whether the machining process for machining workpiece No. 1 has been completed.

加工ワークNα1の加工処理が完了したと判断した場合
には2次に加工ワークNo、 2 、 No、 3の加
工処理を実行するが、この場合にあっても2上記におい
て説明した動作と同様に1本のBASICプログラム1
09.により加工処理を実行することになる。
When it is determined that the machining process for the workpiece Nα1 has been completed, the machining process for the workpieces No. 2, No. 3, and No. 3 is executed secondarily, but even in this case, the operation described in 2 above is performed. 1 BASIC program 1
09. The processing will be executed by this.

〔発明の効果] 以上のように、この発明によれば、加工ワークに必要な
移動先の座標や速度を1本のBAS I Cプログラム
中で変数として保持させ。
[Effects of the Invention] As described above, according to the present invention, the coordinates and speed of the movement destination required for the processed workpiece are held as variables in one BASIC program.

該BAS I Cプログラムを加工プログラムの代わり
として数値制御装置に記憶させておき、プログラマブル
ロジックコントローラによって加工ワークの種類に応じ
た前記座標と前記速度を前記BAS■Cプログラム中の
前記変数に対して自動的に書き込んだ後、該BASIC
プログラムを実行し、前記変数の内容に基づいて加工処
理を実行するので、加工ワークの種類が増加しても、加
工プログラムの追加をせずに1本のプログラムで全種類
の加工ワークを加工処理し、加工プログラムの追加作成
をなくシ、数値制御装置の記憶容量不足を解消すること
ができる。
The BASIC program is stored in a numerical control device in place of the machining program, and the programmable logic controller automatically changes the coordinates and speed according to the type of workpiece to the variables in the BASIC program. After writing the BASIC
The program is executed and processing is performed based on the contents of the variables, so even if the number of types of workpieces increases, all types of workpieces can be processed with one program without the need for additional machining programs. This eliminates the need to create additional machining programs and solves the problem of insufficient memory capacity in the numerical control device.

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

第1図は本発明による複合制御装置の全体構成を示すブ
ロック図、第2図は本発明による複合制御装置の動作を
示すフローチャート、第3図は本発明に利用するBAS
 I Cプログラムの内容を示す説明図、第4図は従来
の複合制御装置の全体構成を示すブロック図、第5図は
加工情報、加工プログラムをプログラマブルロジックコ
ントローラから数値制御装置へ書き込むときの動作を示
すフローチャート、第6図は第4図に示した従来の複合
制御装置の動作を示すフローチャート第7図は第4図の
従来技術に用いられた加工プログラムの内容を示す説明
図である。 図において。 101−・機械 102・−・数値制御装置103・・
・プログラマブルロジックコントローラ108.116
・−CPU 109a・−加工プログラム実行手順 109b・・・加工情報 109cmBAS I Cプログラム実行手順109、
・−BASICプログラム 109゜・−・加工プログラムバッファなお1図中、同
一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing the overall configuration of the composite control device according to the present invention, FIG. 2 is a flowchart showing the operation of the composite control device according to the present invention, and FIG. 3 is a BAS used in the present invention.
An explanatory diagram showing the contents of an IC program, Fig. 4 is a block diagram showing the overall configuration of a conventional complex control device, and Fig. 5 shows the operation when writing machining information and a machining program from a programmable logic controller to a numerical control device. 6 is a flowchart showing the operation of the conventional composite control device shown in FIG. 4, and FIG. 7 is an explanatory diagram showing the contents of the machining program used in the conventional technique shown in FIG. 4. In fig. 101--Machine 102--Numerical control device 103...
・Programmable logic controller 108.116
・-CPU 109a・-Machining program execution procedure 109b...Machining information 109cm BASIC program execution procedure 109,
- BASIC program 109° - Machining program buffer Note that the same reference numerals in the figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 機械を数値制御するための演算を実行する数値制御手段
と、前記数値制御手段及び前記機械をプログラム制御す
るプログラマブルロジックコントローラとを有し、前記
数値制御手段と前記プログラマブルロジックコントロー
ラとで前記機械を複合制御する複合制御装置において、 前記数値制御手段の記憶部は、加工ワークにおける加工
処理を、加工条件の変化に自動的に対応して実施するた
めのBASICプログラムと、前記BASICプログラ
ムを実行するためのBASICプログラム実行手順と、 前記BASICプログラムの実行により加工指令が書き
込まれる加工プログラムバッファと、前記加工プログラ
ムバッファに書き込まれた前記加工指令を実行するため
の加工プログラム実行手順と、 前記加工処理実行時に使用する加工情報とを含み、前記
プログラマブルロジックコントローラから前記加工情報
に対して前記加工条件に応じた前記機械の移動先座標と
速度を書き込んだ後、前記BASICプログラムを実行
することによって前記加工情報から読み出される前記移
動先座標と速度に基づいて加工処理を実行することを特
徴とする複合制御装置。
[Scope of Claims] Numerical control means for executing calculations for numerically controlling a machine, and a programmable logic controller for program-controlling the numerical control means and the machine, the numerical control means and the programmable logic controller In a composite control device that performs composite control of the machine using a BASIC program execution procedure for executing a program; a machining program buffer into which a machining command is written by executing the BASIC program; a machining program execution procedure for executing the machining command written in the machining program buffer; and machining information used when executing the machining process, and after writing movement destination coordinates and speed of the machine according to the machining conditions from the programmable logic controller to the machining information, executing the BASIC program. A composite control device that executes machining processing based on the movement destination coordinates and speed read from the machining information.
JP28369889A 1989-10-31 1989-10-31 Composite controller Pending JPH03144806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28369889A JPH03144806A (en) 1989-10-31 1989-10-31 Composite controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28369889A JPH03144806A (en) 1989-10-31 1989-10-31 Composite controller

Publications (1)

Publication Number Publication Date
JPH03144806A true JPH03144806A (en) 1991-06-20

Family

ID=17668924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28369889A Pending JPH03144806A (en) 1989-10-31 1989-10-31 Composite controller

Country Status (1)

Country Link
JP (1) JPH03144806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053459A (en) * 2017-09-14 2019-04-04 オムロン株式会社 Control apparatus and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019053459A (en) * 2017-09-14 2019-04-04 オムロン株式会社 Control apparatus and control method

Similar Documents

Publication Publication Date Title
US5150305A (en) Numerical control system providing graphic machining simulation
EP0766154B1 (en) Numerically controlled machine tool and method
US4482968A (en) Method and apparatus for robot control
WO2003067345A1 (en) Numeric control method and numeric control system
JP3211422B2 (en) Robot controller
WO2022034848A1 (en) Numerical control system and robot control method
JPH01146642A (en) Stop control device for cutting tool
JPH03144806A (en) Composite controller
JPH02213905A (en) Input/output control system
JPH02151909A (en) Control device for industrial machine
JPH056213A (en) Method and device for controlling industrial robot
JPH04217009A (en) Method for teaching work program
JP2556963Y2 (en) Numerical control unit
JPS6212528Y2 (en)
JPS6149206A (en) Process operation method
JPH0649263B2 (en) Work coordinate system setting control method
GB2187308A (en) An operation program checking method for a numerical control device
JPH0487760A (en) Transfer method for machining program in dnc system
JP2730041B2 (en) How to create NC data
JP2001159906A (en) Nc working device
JPH0216604A (en) Return control method for pc
JPH02140810A (en) Controller for industrial machine
JPS63184108A (en) Numerical controller
JPH02311251A (en) Switching method for machine control system
JPS63143605A (en) Numerical controller having preprocessing function for block data