JP2005131775A5 - - Google Patents

Download PDF

Info

Publication number
JP2005131775A5
JP2005131775A5 JP2003373818A JP2003373818A JP2005131775A5 JP 2005131775 A5 JP2005131775 A5 JP 2005131775A5 JP 2003373818 A JP2003373818 A JP 2003373818A JP 2003373818 A JP2003373818 A JP 2003373818A JP 2005131775 A5 JP2005131775 A5 JP 2005131775A5
Authority
JP
Japan
Prior art keywords
axis
control
pmc
control unit
data
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.)
Granted
Application number
JP2003373818A
Other languages
Japanese (ja)
Other versions
JP4549051B2 (en
JP2005131775A (en
Filing date
Publication date
Application filed filed Critical
Priority to JP2003373818A priority Critical patent/JP4549051B2/en
Priority claimed from JP2003373818A external-priority patent/JP4549051B2/en
Publication of JP2005131775A publication Critical patent/JP2005131775A/en
Publication of JP2005131775A5 publication Critical patent/JP2005131775A5/ja
Application granted granted Critical
Publication of JP4549051B2 publication Critical patent/JP4549051B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

工作機械の軸制御装置、工作機械の軸制御プログラムMachine tool axis control device, machine tool axis control program

本発明は、工作機械の軸制御装置およびそれに用いられる軸制御プログラムに関する。 The present invention relates to an axis control device for a machine tool and an axis control program used therefor .

従来、特許文献1に示されるごとく、X軸、Y軸、Z軸の直線送り軸と、これら3つの直線送り軸から選定された2つの直線送り軸に平行な軸を中心として、それぞれの軸周りに回転する方向の2つの回転送り軸たるA軸・B軸と、主軸の軸線を中心としてその軸周りに回転する方向の回転送り軸たるC軸とを備えた6軸NC工作機械を制御するために5軸制御プログラムを利用した6軸制御プログラムがあるが、プログラム生成が非常に難しく簡単には使用しがたい欠点があった。 Conventionally , as shown in Patent Document 1 , the X axis, the Y axis, and the Z axis linear feed axes, and the axes parallel to the two linear feed axes selected from these three linear feed axes, control and two rotational feed axes serving the a-axis · B axis direction, the six-axis NC machine tool having a rotary feed shaft serving C-axis direction which rotates about its axis the axis of the spindle for rotation about In order to do this , there is a 6-axis control program using a 5-axis control program, but there is a drawback that it is very difficult to generate the program and it is difficult to use it easily.

また、特許文献2の自動工具交換装置は、工具交換に際して、主軸が干渉エリア内にあるか否かを判定し、主軸が干渉エリア内にないと判定されたときは主軸の工具交換開始位置への移動と工具マガジンの割出しを同時に行うよう指令をす制御装置を備えたものであるが、ATC(自動工具交換)動作をさせながらA軸・B軸を同時に動作させてサイクルタイムを短縮させることはできない。 In addition, the automatic tool changer disclosed in Patent Document 2 determines whether or not the spindle is in the interference area when changing the tool. If it is determined that the spindle is not in the interference area, the automatic tool changer moves to the tool change start position of the spindle. which was provided with a control device to output an instruction to perform indexing of the movement the tool magazine simultaneously, shorten the cycle time at the same time by operating the a-axis · B axis while the ATC (automatic tool changer) operation I can't let you.

NCパートプログラムで、いわゆるBコードと言われている第2補助機能を使ってA軸、B軸とATC動作を行わせようとした場合、A軸の移動量、B軸の移動量、組み合わせ軸の選択をコーディングすると次のようになる。しかしながら、この方法では動作まで4ブロックを経るため、サイクルタイムが長くなる欠点があった。
B100;
B200;
B3;
T01 M17 M76;
In NC part program, when an attempt to perform the A axis, B axis and ATC operates with a second auxiliary function is the so-called B code, the amount of movement of A axis, the movement amount of the B-axis, combined shaft If you choose to code the following: However, this method has a drawback that the cycle time becomes long because four blocks are required for the operation.
B100;
B200;
B3;
T01 M17 M76;

特開2003−5811号公報JP 2003-5811 A 特開2000−126965号公報JP 2000-126965 A

本発明の課題は、これら欠点に鑑み、工作機械の基準軸(X軸、Y軸、Z軸のことをいう)の動作または工作機械側の諸動作と行してA軸・B軸を動作させてサイクルタイムを短縮させる工作機械の軸制御装置を提供することにある。 An object of the present invention has been made in view of these shortcomings, the reference axis of the machine tool A shaft · B axis to various operations and concurrent operation or the machine tool side (X-axis, Y-axis, the means that the Z-axis) An axis control device for a machine tool that shortens the cycle time by operating the machine.

本発明に係る工作機械の軸制御装置は、工作機械を制御するPMC(Programmable Machine Controller)と、工作機械の基準軸であるX軸、Y軸、Z軸および回転軸であるA軸、B軸を制御するためのプログラムが格納されたメモリと、プログラムに従って基準軸および回転軸を制御するNC(Numerical Control)軸制御部とを備えた工作機械の軸制御装置であって、PMCの制御の下でA軸およびB軸の制御を行うPMC軸制御部を更に備える。また、プログラムは、A軸制御データとB軸制御データと軸指定データとを一つの指令ブロックデータとして有している。プログラムの実行により指令ブロックデータの軸指定データがPMCで読み取られると、A軸およびB軸の軸制御の制御権をNC軸制御部側からPMC軸制御部側へ切り換え、PMC軸制御部の制御の下で軸指定データで指定された軸の制御を行うとともに、当該軸制御と並行してNC軸制御部の制御の下で基準軸の制御を行う。そして、軸指定データで指定された軸の制御動作が完了すると、制御権をPMC軸制御部側からNC軸制御部側へ戻す。An axis control device for a machine tool according to the present invention includes a PMC (Programmable Machine Controller) for controlling a machine tool, an X axis, a Y axis, a Z axis that are machine tool reference axes, and an A axis and a B axis that are rotary axes. An axis control device for a machine tool, comprising a memory storing a program for controlling the machine and an NC (Numerical Control) axis control unit for controlling a reference axis and a rotation axis according to the program. And a PMC axis control unit for controlling the A axis and the B axis. The program has A-axis control data, B-axis control data, and axis designation data as one command block data. When the axis designation data of the command block data is read by the PMC by executing the program, the control right of the A axis and B axis control is switched from the NC axis control unit side to the PMC axis control unit side, and the control of the PMC axis control unit is performed. The axis designated by the axis designation data is controlled, and the reference axis is controlled under the control of the NC axis control unit in parallel with the axis control. When the control operation of the axis designated by the axis designation data is completed, the control right is returned from the PMC axis control unit side to the NC axis control unit side.

このように、工作機械のA軸・B軸の制御権をNC軸制御部側から切り離し、PMC軸制御部側に切り換えることにより、A軸・B軸をPMC側で動作させながら、これと並行してNC側基準軸または工作機械諸動作が行われるので、サイクルタイムを短縮することができる。 Thus, control of the A-axis · B axis of the machine tool disconnected from the NC axis control unit side, by switching to the PMC axis control portion, while operating the A-axis · B axis PMC side, parallel to this since various operations of the reference axis or machine tool is carried out in the NC side and can reduce cycle time.

本発明に係る工作機械の軸制御プログラムは、工作機械を制御するPMC(Programmable Machine Controller)と、工作機械の基準軸であるX軸、Y軸、Z軸および回転軸であるA軸、B軸を制御するNC(Numerical Control)軸制御部と、PMCの制御の下でA軸およびB軸の制御を行うPMC軸制御部とを備えた工作機械の軸制御装置を動作させるためのプログラムであって、A軸制御データとB軸制御データと軸指定データとを一つの指令ブロックデータとして有し、以下のステップを軸制御装置に実行させる。An axis control program for a machine tool according to the present invention includes a PMC (Programmable Machine Controller) that controls a machine tool, an X axis, a Y axis, a Z axis that are reference axes of the machine tool, and an A axis and a B axis that are rotation axes. Is a program for operating an axis control device of a machine tool including an NC (Numerical Control) axis control unit that controls the AMC and a PMC axis control unit that controls the A axis and the B axis under the control of the PMC. Thus, the A axis control data, the B axis control data, and the axis designation data are included as one command block data, and the axis control device is caused to execute the following steps.
(a)指令ブロックデータの軸指定データがPMCで読み取られると、A軸およびB軸の軸制御の制御権をNC軸制御部側からPMC軸制御部側へ切り換えるステップ。(A) When the axis designation data of the command block data is read by the PMC, the control right of the axis control of the A axis and the B axis is switched from the NC axis control unit side to the PMC axis control unit side.
(b)PMC軸制御部の制御の下で軸指定データで指定された軸の制御を行うステップ。(B) A step of controlling the axis designated by the axis designation data under the control of the PMC axis control unit.
(c)ステップ(b)の軸制御と並行してNC軸制御部の制御の下で基準軸の制御を行うステップ。(C) A step of controlling the reference axis under the control of the NC axis control unit in parallel with the axis control of step (b).
(d)軸指定データで指定された軸の制御動作が完了すると、制御権をPMC軸制御部側からNC軸制御部側へ戻すステップ。(D) A step of returning the control right from the PMC axis control unit side to the NC axis control unit side when the control operation of the axis designated by the axis designation data is completed.

本発明によれば、A軸・B軸の軸制御をNC軸制御からPMC軸制御に切り換えることによって、PMC側で軸制御が可能となるため、A軸・B軸が工作機械の基準軸または工作機械諸動作と行して同時動作することが可能となり、装置全体のサイクルタイムの短縮が図れる。また、A軸制御データとB軸制御データと軸指定データとを一つの指令ブロックデータとしたため、一つブロックで簡単・容易にA軸・B軸のわかりやすい指令プログラムできる。 According to the present invention, by switching the axis control of the A axis and the B axis from the NC axis control to the PMC axis control , the axis control can be performed on the PMC side. it is possible to operate simultaneously in various operations and the parallel line of machine tools, can be shortened the cycle time of the entire apparatus. Moreover, because of the the A-axis control data and B-axis control data and the shaft specified data and a command block data, can be easily & easily programmed a descriptive command of the A-axis-B-axis in a single block.

以下本発明の一実施形態を図6と図2用いて詳細に説明する。 Hereinafter, an embodiment of the present invention will be described in detail with reference to FIGS. 6 and FIG.

図6に示すシステムは、MDI(手動データ入力部)61とプログラムおよびデータを格納するメモリ62と、各種データ等を表示する表示63、工作機械を制御するPMC(プログラマブルマシンコントローラ)64と軸を制御する軸制御部65とを制御するCPU制御部67からなる。 The system shown in FIG. 6, MDI and (manual data input unit) 61, a memory 62 for storing programs and data, a display unit 63 for displaying various data and the like, PMC for controlling a machine tool (Programmable Machine Controller) 64 When a shaft controller 65 for controlling the axes, a CPU control unit 67 which controls each section.

MDI61で該当プログラムを呼び出し実行すると、CPU制御部67がメモリ62に格納されているNCパートプログラムを呼び出し制御データをメモリ62に格納し、かつデータのやりとりを行いPMC64を介して軸制御65により軸制御を行う。 When call executes a corresponding program in MDI61, call the NC part program by the CPU controller 67 is stored in the memory 62, and stores the control data in the memory 62, and the axis control unit via the PMC64 exchanges of data 65 The axis is controlled by

図2は、主軸のX軸・Y軸・Z軸の3軸(NC基準軸)、A軸・B軸の2軸、およびATC動作を制御するNCパートプログラム(以下、単に「プログラム」という)の例を示す。A軸はチルトテーブルの回転軸、B軸は旋回テーブルの回転軸である。以下、プログラムの機能を符号で説明する。 FIG. 2 shows an X-axis, Y-axis and Z-axis (NC reference axis) of the main axis, two axes of A-axis and B-axis, and an NC part program (hereinafter simply referred to as “program”) for controlling the ATC operation. An example of The A axis is the rotation axis of the tilt table, and the B axis is the rotation axis of the turning table. Hereinafter, the function of the program will be described with reference numerals.

1はZ300.0;のブロックでA軸・B軸と干渉しない領域にZ軸を逃がす機能である。 1 Z300.0; in the block, a function to release the Z-axis in a region that does not interfere with the A axis · B axis.

2はG401A100.0B200.0Q3T01M17;のブロックでマクロプログラム3(名称O9013)を呼び出す。コードG401は、マクロプログラム3の呼び出しであることがパラメータにセットしてある。このブロック2は、A軸とB軸の移動指令値の設定を行うとともに、基準軸(X軸,Y軸,Z軸)およびATC動作と行して同時動作をするA軸・B軸の軸の組み合わせを指定する機能を有する。A軸の移動指令値は変数#1に、B軸の移動指令値は変数#2に格納される。アドレスQの引数は変数#17に格納される。 2 G401A100.0B200.0Q3T01M17; called in block, macro program 3 (name O9013). The code G401 is set in the parameter to indicate that the macro program 3 is called. The block 2, performs the setting of the movement command value of the A-axis and B-axis, the reference axis (X axis, Y axis, Z axis) and ATC operation and concurrent with the A-axis · B axis simultaneous operation It has a function of designating a combination of axes. The movement command value for the A axis is stored in the variable # 1, and the movement command value for the B axis is stored in the variable # 2. The argument of address Q is stored in variable # 17.

アドレスQは、基準軸(X軸,Y軸,Z軸)の動作と行してNC側から切り離してPMC側の軸制御により同時動作をする軸を指定する機能で、つぎの意味をもっている。
Q=1:A軸の制御権をNCからPMC側に切り換えてPMC側の軸制御でA軸を動作させる。
Q=2:B軸の制御権をNCからPMC側に切り換えてPMC側の軸制御でB軸を動作させる。
Q=3:A軸およびB軸の制御権をNCからPMC側に切り換えてPMC側の軸制御でA軸およびB軸を動作させる。
Address Q, the reference axis (X axis, Y axis, Z axis) operating with parallel rows, separately from the NC side ability to specify an axis simultaneous operation by axis control of PMC side, with the meaning of the following Yes.
Q = 1: control of the A-axis is switched from the NC side PMC side, to operate the A-axis in the axis control of PMC side.
Q = 2: switching control of the B-axis from the NC side PMC side, to operate the B-axis in the axis control of PMC side.
Q = 3: The control right of the A axis and the B axis is switched from the NC side to the PMC side, and the A axis and the B axis are operated by the PMC side axis control.

T01M17で示すアドレスTの引数の工具番号01、アドレスMの引数17を後述する変数#20#13にそれぞれ格納する。M17はPMC側の軸制御による工具戻しの準備指令である。 Tool number 01 argument address T shown in T01M17, the argument 17 of the address M, described later variable # 20, and stores and # 13. M17 is a tool return preparation command by axis control on the PMC side .

符号9で示すブロックの指令でA軸もしくはB軸またはA軸・B軸が動作を開始する。 The A-axis or B-axis , or the A-axis / B-axis starts operation in response to a block command indicated by reference numeral 9.

4はG91G30X0Y0Z0;のブロックで基準軸(X軸,Y軸,Z軸)をATC工具交換位置へ移動する機能である。5はM06;のブロックでATC工具交換機能の動作開始指令である。 4 G91G30X0Y0Z0; in the block, the reference axis (X axis, Y axis, Z axis) is a function to move to the ATC tool change position. 5 M06; in the block, the operation start command ATC tool change function.

マクロプログラム3の6は#140=#1;のブロック、7は#141=#2;のブロックで、前記A軸の移動指令値が格納されている変数#1、B軸の移動指令値が格納されている変数#2をコモン変数#140、#141にそれぞれ格納する。 In the macro program 3, 6 is a block of # 140 = # 1 , 7 is a block of # 141 = # 2, and the variable # 1 in which the movement command value of the A axis is stored and the movement command value of the B axis are stored. Stored variable # 2 is stored in common variables # 140 and # 141, respectively.

8は#143=#17;のブロックでNC側の軸制御から切り換えてPMC側の軸制御で動作する軸指定またはPMC軸制御動作完了確認を行う軸指定(アドレスQの引数)を格納する。 8 # 143 = # 17; in the block, storing the axis specified to operate at PMC side of the axis control is switched from the axis control NC side, or PMC axis control operation Confirmation axis assignment to perform (argument address Q) To do.

9はT#20M#13M76;のブロックで変数#20は工具番号(01)が格納されており、アドレスTでマガジン回転して工具選択動作を指令する。変数#13は、数値17を格納しており、M17でPMC側の軸制御による工具戻し準備指令を行う。 9 T # 20M # 13M76; in the block, the variable # 20 and tool number (01) is stored, magazines Address T to direct the tool selection operation to rotate. The variable # 13 stores a numerical value 17, and in M17, a tool return preparation command is performed by axis control on the PMC side .

コードM76は補助機能でNC側とPMC側との間のインタフェース機能を受け持つウインドウ機能を起動するウインドウ起動手段である。 A code M76 is an auxiliary function, and is a window activation means for activating a window function that takes charge of an interface function between the NC side and the PMC side.

ウインドウ起動手段M76によってウインドウ機能が起動すると、PMC側はA軸およびB軸の制御データを読み込むとともにコモン変数#143のデータQを読み込む。アドレスQが数値1〜3のとき、たとえばコモン変数#143=3のときは、軸の制御権がNC側からPMC側へ切り換えられ、PMC側の軸制御によりA軸・B軸の2軸の同時動作と上記工具番号01のATC動作並行して行われる。 If the window function is activated by the window activation means M76, PMC side reads in the control data of the A and B axes, read data Q of the common variable # 143. When the address Q is a numerical value 1 to 3, for example , when the common variable # 143 = 3, the axis control right is switched from the NC side to the PMC side, and the two axes A and B are controlled by the PMC side axis control . ATC operation and co-operation and the tool number 01 are performed in parallel.

10はM99;のブロックでメインプログラムに戻ってつぎのブロックを実行する機能である。 Reference numeral 10 denotes a block of M99; which is a function for returning to the main program and executing the next block.

つぎに11はG401A100.0B200.0Q19;のブロックでマクロプログラム3を呼び出してA軸、B軸の位置が移動指令値と等しくなったかどうかにつき、A軸、B軸の現在位置を位置制御から取り込みPMC軸制御動作完了確認をする。PMC軸制御動作完了確認を行う軸指定は上記のようにアドレスQで行う。Qの引数が数値19であるので、変数#17に数値19が格納される。M76コードの実行によりPMC側でコモン変数#143=19が読み込まれ、A軸、B軸の指令動作位置(G401A100.0B200.0)の確認が行われる。A軸の現在位置がコモン変数#140と等しく、B軸の現在位置がコモン変数#141と等しいとき、ATC動作とA軸・B軸移動動作の行処理の完了確認が終了したとしてA軸・B軸の制御権をNC側に戻 Then, 11 G401A100.0B200.0Q19; in the block, A-axis by calling a macro program 3, the position of the B axis per whether becomes equal to the movement command value, A shaft position control the current position of the B axis To confirm the completion of the PMC axis control operation. The axis designated to perform the PMC axis control operation completion confirmation is performed in the address Q as described above. Since the argument of Q is the numerical value 19, the numerical value 19 is stored in the variable # 17. By executing the M76 code, the common variable # 143 = 19 is read on the PMC side, and the command operation positions (G401A100.0B200.0) of the A axis and the B axis are confirmed. Equal the current position of the A axis as the common variable # 140, A-axis as the current position of the B axis is time equal to the common variable # 141, completion confirmation of concurrent processing of ATC operations and A-axis · B-axis moving operation is completed control of · B axis to return to the NC side.

前記移動指令値A100.0、B200.0はそれぞれA軸・B軸の動作完了確認位置をアブソリュートで指令している。アドレスQの意味は次のとおりである。
Q=17:A軸のPMC軸制御動作完了確認
Q=18:B軸のPMC軸制御動作完了確認
Q=19:A軸・B軸のPMC軸制御動作完了確認
The movement command value A100.0, B200.0 commands operation Confirmation position A axis · B axis absolute value, respectively. The meaning of the address Q is as follows.
Q = 17: A-axis PMC axis control operation completion confirmation Q = 18: B-axis PMC axis control operation completion confirmation Q = 19: A-axis / B-axis PMC axis control operation completion confirmation

上述のプログラムの説明を前提にして、図1、図3を参照して更に本発明の軸制御を詳細に説明する。 On the assumption above description of the program, Fig. 1, further illustrating the axial control of the present invention in detail with reference to FIG.

図1において、12は、A軸移動指令(アブソリュート値)100.0が格納されているメモリである。13はB軸移動指令(アブソリュート値)200.0が格納されているメモリである。14は、アドレスQの引数1〜3(PMC側での軸指定)が格納されているメモリまたはアドレスQの引数17〜19のPMC軸制御動作完了確認指定が格納されているメモリである。15は、ATCの工具番号と工具戻し準備指令のアドレスMの引数が格納されているメモリである。18はこれらデータのメモリを構成するメモリ手段である。 In FIG. 1, 12 is a memory in which an A-axis movement command value (absolute value) 100.0 is stored. 13 is a memory B axis movement command value (absolute value) 200.0 are stored. 14 is a memory that memory argument address Q 1 to 3 (the axis designated in the PMC side) is stored or PMC axis control operation Confirmation specified argument 17-19 address Q is stored. 15 is a memory that ATC tool number and tool return preparation command argument address M is stored. Reference numeral 18 denotes memory means constituting the memory for these data.

図1では、データのやりとりが把握しやすいように、概略的に表しているが、NC制御部50(図3)は、A軸、B軸を制御するI/Oインタフェース25と、PMC28(図6のPMC64)と、X,Y,Z軸のNC基準軸とA軸・B軸ATC動作とを制御するNC軸制御19とPMCインタフェース20とこれら各を制御するCPU制御部21(図6のCPU制御部67)とを含み、またこの他に、図6に示すメモリ62(図3のメモリ手段18を含む)と、各種データの入出力手段であるMDI61と、表示器63とを含んでいる。 In FIG. 1, the NC control unit 50 (FIG. 3) is schematically illustrated so that the exchange of data can be easily understood, but the NC control unit 50 (FIG. 3) includes an I / O interface 25 that controls the A axis and the B axis, and a PMC 28 (FIG. and 6 PMC64 of), X, Y, and NC axis control section 19 for controlling the NC reference axis and a-axis · B axis and ATC operation of the Z-axis, the PMC interface 20, CPU control unit which controls the respective parts 21 (CPU control unit 67 in FIG. 6), in addition to this, the memory 62 shown in FIG. 6 (including the memory means 18 in FIG. 3), the MDI 61 as input / output means for various data, and the display 63 .

前記PMCインタフェース20は、前記ウインドウ機能を起動する補助機能M76とウインドウ機能とインタフェース含み、NC側とPMC側との間で指令ブロックデータをハンドシェイクする。 The PMC interface 20 includes an auxiliary function M76 and the window functions and interfaces for activating the window function, to handshake command block data between the NC side and PMC side.

図1においてプログラムのデータ構成と動作をモデル的に説明すると、プログラム実行部16は、メモリ62(図6)に格納されている図2のプログラムの各ブロック1〜11を読み出して実行する。上記のようにA軸制御データとB軸制御データと軸指定データとをメモリ手段18のメモリ12〜14に格納する。ATCの工具戻し指令準備データ15は、PMCインタフェース20を介してPMC28に出力される。 Referring to FIG. 1, the data configuration and operation of the program will be described in model form. The program execution unit 16 reads and executes each block 1 to 11 of the program of FIG. 2 stored in the memory 62 (FIG. 6). As described above, the A-axis control data and B-axis control data and the shaft specifying data, stored in the memory 12 to 14 of the memory unit 18. The ATC tool return command preparation data 15 is output to the PMC 28 via the PMC interface 20 .

これらのデータすなわちA軸データ12、B軸データ13、軸指定データ14およびATCの工具戻し指令準備データ15は動作指令として一つの指令ブロックデータ17構成る。この指令ブロックデータ17の実行によりA軸制御部23、B軸制御部24、ATC制御部27が、それぞれA軸制御、B軸制御、ATC動作を行うThese data, i.e., A-axis data 12, B-axis data 13, the axis designation data 14 and ATC of the tool return command preparation data 15, that make up a single instruction block data 17 as an operation command. By executing the command block data 17, A-axis control unit 23, B-axis control section 24, ATC controller 27, A-axis control, respectively, B-axis control, performs the ATC operation.

プログラム実行部16は、図2に示す符号4,5または図5に示す符号48,49のNC側(基準軸)動作のブロックを実行する。   The program execution unit 16 executes the NC side (reference axis) operation block indicated by reference numerals 4 and 5 shown in FIG. 2 or reference numerals 48 and 49 shown in FIG.

プログラム実行部16は、A軸・B軸移動動作(A100.0B200.0)と動作完了確認データ(アドレスQ)からなる動作指令として一つのブロックを構成する指令ブロックデータ26(図1)に基づき、A軸、B軸の動作開始後、A軸、B軸の現在位置がA軸・B軸移動動作(A100.0B200.0)の移動指令値と等しくなったかどうかを判定し、PMC軸制御動作完了確認をする。 The program execution unit 16 is based on the command block data 26 (FIG. 1) constituting one block as an operation command composed of the A / B axis movement operation (A100.0B200.0) and the operation completion confirmation data (address Q) . , a axis, after the start of operation of the B-axis, to determine whether the a-axis, the current position of the B axis is equal to the movement command value of the a-axis · B axis movement (A100.0B200.0), PMC axis control to confirm the operation is completed.

このように本発明は、A軸、B軸の動作開始と行してNC側の動作を行い、NCパートプログラムで開始と終了確認を容易に行える点に特徴がある。 Thus, the onset Ming, A axis, have rows the operation of the operation start and concurrent to NC side of the B-axis, it is characterized in that enable easy confirmation of the start and end in the NC part program.

上述したようにA軸、B軸の動作を行う指令ブロックデータ17の実行(図2の符号2)のあと、次のブロックに移ってNC側基準軸動N5を実行する(図2の符号4,5)。即ち、X軸、Y軸、Z軸がATC工具交換位置に移動して、ATC工具交換動作を行う。つぎにA軸、B軸の動作完了確認が動作指令としての一つの指令ブロックデータ26実行(図2の符号11)により行われる。 As described above, A axis, after execution of the command block data 17 for the operation of the B-axis (reference numeral 2 in FIG. 2), to perform the N C side reference axial driving operation N5 moves to the next block (FIG. 2 4 and 5). That is, the X axis, the Y axis, and the Z axis move to the ATC tool change position, and the ATC tool change operation is performed. Then, A-axis, the operation Confirmation of B-axis is carried out by execution of one command block data 26 as operation command (reference numeral 11 in FIG. 2).

指令ブロックデータ17によるA軸、B軸の動作開始と、指令ブロックデータ26によるA軸、B軸の動作完了確認の間でブロックN5(図1)で示すようにNC側の基準軸のATC位置への移動とATC動作による工具交換が行われる。 A shaft according to directives block data 17, operation start and B-axis, A-axis by the command block data 26, with the completion acknowledged the B-axis, as indicated by block N5 (Fig. 1), the reference axis of the NC side the movement of the ATC position of a tool change by the ATC operation is carried out.

図1のブロック構成を簡単にまとめると、図3のようになる。NC制御部50はCPU制御部21、PMCインタフェース20、PMC軸制御部22、I/Oインタフェース25、NC軸制御部19およびPMC28を含む。PMC28は、PMCラダー制御部29を含む。CPU制御部21が記プログラム内容の符号1〜11で示すブロックを実行する。 The block configuration shown in FIG. 1 can be summarized as shown in FIG. The NC control unit 50 includes a CPU control unit 21 , a PMC interface 20, a PMC axis control unit 22 , an I / O interface 25, an NC axis control unit 19 and a PMC 28. The PMC 28 includes a PMC ladder control unit 29 . CPU control unit 21 executes a block indicated by the reference numeral 1 to 11 before Symbol program content.

図2に示すプログラムがプログラム実行部16で読み込まれ実行され、符号2の諸データがメモリ手段18格納される。実際にはCPU制御部21がこの動作を行う。 Program shown in FIG. 2 is being executed read by the program execution unit 16, various data of the code 2 is stored in the memory unit 18. Actually, the CPU control unit 21 performs this operation .

図3の判断30にいて、PMCラダー制御部29がアドレスQの値からA軸、B軸の制御をPMC軸制御22で行うかどうか判断する。YESであれば、PMC軸制御22、I/Oインタフェース25を介してA軸制御部23、B軸制御部4により、モータ31−1、31−2をそれぞれ駆動する。なお、ATC動作は、図2に符号5で示すコードM06の実行によりPMC軸制御22により行われる。 And have you to determine 30 of FIG. 3, PMC ladder control unit 29 from the value of the address Q, A axis, determines whether to control the B axis PMC axis control unit 22. If YES, the via PMC axis control unit 22, I / O interface 25, the A-axis control unit 23, B axis control unit 2 4, and drives the motor 31-1 and 31-2, respectively. Incidentally, ATC operation, the execution of the code M06 indicated at 5 in FIG. 2 are performed by PMC axis control unit 22.

補助機能M76(図2の符号9)の出力時、コモン変数#143がQ=3(2進数では「00011」)の場合、すなわち、指定された軸がA軸およびB軸の場合の動作について、図4のフローチャートを参照して説明する。 When the auxiliary function M76 (reference numeral 9 in FIG. 2) is output, when the common variable # 143 is Q = 3 (binary number “00011”) , that is, when the designated axes are the A axis and the B axis. This will be described with reference to the flowchart of FIG .

判断33で補助機能M76が出力中でないとEND44に移る。判断33で補助機能M76が出力中である(YES)とPMC側では判断34(#143AND160)でコモン変数#143に格納されているアドレスQの引数を読み出し2進数でビット照合し、動作完了確認か軸動作か判断する。5ビット目は0(軸動作)だから、34での判断はYESとなり、判断35(#143AND1≠0)でA軸選択があるかどうかにつき、1ビット目をビット照合する。1ビット目が1であるので、35での判断はYESとなり、処理36でA軸の制御をPMC軸制御22に切り換え、A軸移動指令を開始する。1ビット目が0(A軸なし)であれば、35での判断はNOとなり、処理36を実行しないで次の判断37に移る。 If the auxiliary function M76 is not being output in the decision 33 , the process proceeds to END44. If the auxiliary function M76 is being output in the determination 33 (YES), the PMC side reads the argument of the address Q stored in the common variable # 143 in the determination 34 (# 143 AND16 = 0), and performs bit verification with a binary number. Determine whether the operation is complete or the axis is moving. Since the 5th bit is 0 (axis operation) , the determination at 34 is YES , and the 1st bit is bit-checked based on whether or not the A axis is selected in the determination 35 (# 143AND1 ≠ 0). Since the first bit is 1, determination at 35 is YES, the switching control of the A-axis on the PMC axis control unit 22 side in the process 36, to begin the movement command of the A-axis. If the first bit is 0 (no A-axis), the determination at 35 is NO, and the process proceeds to the next determination 37 without executing the process 36.

つぎに判断37(#143AND2≠0)でB軸選択があるかどうかにつき、2ビット目をビット照合する。2ビット目が1であるので、37での判断はYESとなり、処理38でB軸の制御をPMC軸制御22に切り換え、B軸移動指令を開始する。また、M76の完了信号(FIN)を即座に返し、END44に移る。2ビット目が0(B軸なし)であれば、37での判断はNOとなり、処理38を実行しないで次のEND44に移る。 Next , in the determination 37 (# 143 AND2 ≠ 0) , the second bit is bit-checked as to whether or not the B axis is selected. Since the second bit is 1, determination at 37 is YES, the process 38 switches the control of the B-axis to the PMC axis control unit 22 side, starts movement command B-axis. Also, the completion signal (FIN) of M76 is immediately returned, and the process proceeds to END44. If the second bit is 0 (no B-axis), the determination at 37 is NO, and the process proceeds to the next END 44 without executing the process 38.

つぎにコモン変数#143がQ=19(2進数では「10011」)の場合、すなわち、A軸、B軸の動作完了確認の場合について説明する。 Next , a case where the common variable # 143 is Q = 19 (“10011” in binary) , that is, a case where the operation completion confirmation of the A axis and the B axis is performed will be described.

5ビット目は1(動作完了確認)だから、34での断はNOとなり、判断39(#143AND1≠0)に移り、A軸が対象の動作完了確認かどうかにつき、ビット照合する。1ビット目が1だから39での判断結果はYESとなり、判断40でPMC軸制御部22によるA軸の軸制御の動作完了かどうかチェックする。動作完了していなければ、40での判断結果はNOとなり、END44に移る。動作完了していれば判断41(143AND2≠0)に移り、B軸が対象の動作完了確認かどうかにつき、ビット照合する。2ビット目が1だから41での判断結果はYESとなり、判断42でPMC軸制御部22によるB軸の軸制御の動作完了かどうかチェックする。動作完了していなければ、42での判断結果はNOとなり、END44に移る。動作完了していれば処理43で制御権をPMC軸からNC軸に戻し、補助機能M76の完了信号(FIN)を返す 5th bit So 1 (completion acknowledged), judgment is NO, at 34, moves Ri to decision 39 (# 143AND1 ≠ 0), A shaft per whether completion acknowledged or target, bits match. Since the first bit is 1 , the determination result in 39 is YES , and in determination 40, it is checked whether the AMC axis control operation by the PMC axis control unit 22 is completed. If the operation has not been completed , the determination result at 40 is NO and the process proceeds to END44. If the operation completion, Ri moves to decision 41 (# 143AND2 ≠ 0), B axis per whether operation Confirmation of target bits match. Since the second bit is 1 , the determination result in 41 is YES , and in determination 42, it is checked whether the operation of the B axis control by the PMC axis control unit 22 is completed. If the operation is not completed , the determination result at 42 is NO , and the process proceeds to END44. If the operation is completed, the control right processing 43 returns to the NC axis from PMC axis, return completion signal of the auxiliary function M76 to (FIN).

図5は、他の実施形態NCパートプログラムを示す。図に示すブロックと同じものは同じ符号で示す。 Figure 5 illustrates a NC part program according to another embodiment. The same blocks as those shown in FIG. 2 are denoted by the same reference numerals.

符号45はG401A100.0B200.0Q3;のブロックを示し、A軸・B軸移動指令値を設定し、軸指定をして、マクロプログラム46を呼び出し、符号47で上記と同様に補助機能M76の実行によりA軸・B軸の動作を開始し、M99でメインプログラムに戻る。次のブロックに移りA軸・B軸が動いている間にコードM32(例:トビラ閉めの実行)48、M08(例:クーラント吐出)49のNC側機能の動作を行う。つぎに上記と同様に符号11のブロックが実行される。 Reference numeral 45 indicates a block of G401A100.0B200.0Q3; the A / B axis movement command value is set, the axis is designated, the macro program 46 is called, and the auxiliary function M76 is executed by reference 47 as described above. Starts the operation of the A-axis and B-axis, and returns to the main program in M99. Moving to the next block, while the A-axis and B-axis are moving, the NC side functions of the codes M32 (example: execution of closing of the door) 48 and M08 (example: coolant discharge) 49 are performed. Next , block 11 is executed in the same manner as described above.

このように、図2で説明した符号2と符号11のブロックの間、または図5の符号45と符号11のブロック間にNC側諸機能が動作、A軸・B軸が動作開始したあとNC側機能が実行されて、並行処理が簡単に行える。こうした構成に基づく行処理により待ち制御が解消されサイクルタイム従来より短縮できる。 Thus, during the block of code 2 and code 11 described in FIG. 2, or NC side the functions between the blocks of code 45 and code 11 of Figure 5 operates, A shaft · B axis starts operation after NC side function is executed, concurrent processing can be performed easily. Wait control is eliminated by concurrent processing based on this structure can be shortened compared with the prior art cycle time.

本発明の一実施形態の動作を説明するためのブロック構成図である。 It is a block block diagram for demonstrating operation | movement of one Embodiment of this invention . 本発明の一実施形態NCパートプログラムを説明する図である。 Is a diagram illustrating the NC part program of an embodiment of the present invention. 本発明の一実施形態の動作を説明するための回路構成図である。 It is a circuit block diagram for demonstrating operation | movement of one Embodiment of this invention . 本発明の一実施形態の動作を説明するためのフローチャートである。 It is a flowchart for demonstrating operation | movement of one Embodiment of this invention . 本発明の他の実施形態NCパートプログラムを説明する図である。 Is a diagram illustrating an NC part program according to another embodiment of the present invention. システムの概要を説明する図である。 It is a figure explaining the outline | summary of a system .

符号の説明Explanation of symbols

11・・・NCパートプログラムのコーディングブロック
1215・・・指令ブロックデータを構成するデータ
16・・・プログラム実行部
17・・・指令ブロックデータ
18・・・メモリ手段
19・・・NC軸制御
20・・・PMCインタフェース
21・・・CPU制御部
22・・・PMC軸制御
23・・・A軸制御
24・・・B軸制御
25・・・I/Oインタフェース
26・・・指令ブロックデータ
27・・・ATC制御部
28・・・PMC
29・・・PMCラダー制御部
31・・・駆動用モータ
32・・・Z軸
50・・・NC制御部
N5・・・NC側の諸機能の動作
1 ~ 11 ... NC part program of the coding blocks 12-15 constitute the ... command block data data 16 ... program executing portion 17 ... command block data 18 ... memory means 19 ... NC Axis control unit 20 ... PMC interface 21 ... CPU control unit 22 ... PMC axis control unit 23 ... A axis control unit 24 ... B axis control unit 25 ... I / O interface 26. ..Command block data 27 ... ATC control unit 28 ... PMC
29 ... PMC ladder control unit 31 ... Drive motor 32 ... Z-axis
50 ... NC control unit N5 ... Operation of NC functions

Claims (2)

工作機械を制御するPMC(Programmable Machine Controller)と、PMC (Programmable Machine Controller) for controlling machine tools,
前記工作機械の基準軸であるX軸、Y軸、Z軸および回転軸であるA軸、B軸を制御するためのプログラムが格納されたメモリと、A memory storing a program for controlling the X axis, the Y axis, the Z axis, and the A axis, which is the rotation axis, and the B axis, which are reference axes of the machine tool;
前記プログラムに従って前記基準軸および回転軸を制御するNC(Numerical Control)軸制御部と、を備えた工作機械の軸制御装置において、In an axis control device for a machine tool comprising an NC (Numerical Control) axis control unit that controls the reference axis and the rotation axis according to the program,
前記PMCの制御の下で前記A軸およびB軸の制御を行うPMC軸制御部を更に備え、A PMC axis control unit for controlling the A axis and the B axis under the control of the PMC;
前記プログラムは、A軸制御データとB軸制御データと軸指定データとを一つの指令ブロックデータとして有し、The program has A-axis control data, B-axis control data, and axis designation data as one command block data,
前記プログラムの実行により前記指令ブロックデータの軸指定データが前記PMCで読み取られると、A軸およびB軸の軸制御の制御権をNC軸制御部側からPMC軸制御部側へ切り換え、前記PMC軸制御部の制御の下で前記軸指定データで指定された軸の制御を行うとともに、当該軸制御と並行して前記NC軸制御部の制御の下で基準軸の制御を行い、When the axis designation data of the command block data is read by the PMC by the execution of the program, the control right of the axis control of the A axis and the B axis is switched from the NC axis control unit side to the PMC axis control unit side, and the PMC axis While controlling the axis designated by the axis designation data under the control of the control unit, the reference axis is controlled under the control of the NC axis control unit in parallel with the axis control,
前記軸指定データで指定された軸の制御動作が完了すると、前記制御権をPMC軸制御部側からNC軸制御部側へ戻すことを特徴とする工作機械の軸制御装置。An axis control device for a machine tool, wherein when the control operation of the axis designated by the axis designation data is completed, the control right is returned from the PMC axis control unit side to the NC axis control unit side.
工作機械を制御するPMC(Programmable Machine Controller)と、前記工作機械の基準軸であるX軸、Y軸、Z軸および回転軸であるA軸、B軸を制御するNC(NumericalA PMC (Programmable Machine Controller) that controls the machine tool, and an NC (Numerical) that controls the X-axis, Y-axis, Z-axis, and the A-axis and B-axis that are the rotation axes of the machine tool.
Control)軸制御部と、前記PMCの制御の下で前記A軸およびB軸の制御を行うPMC軸制御部とを備えた工作機械の軸制御装置を動作させるためのプログラムであって、A軸制御データとB軸制御データと軸指定データとを一つの指令ブロックデータとして有し、以下のステップを前記軸制御装置に実行させることを特徴とする工作機械の軸制御プログラム。Control) is a program for operating an axis control device for a machine tool including an axis control unit and a PMC axis control unit that controls the A axis and the B axis under the control of the PMC. An axis control program for a machine tool having control data, B axis control data, and axis designation data as one command block data, and causing the axis control device to execute the following steps.
(a)前記指令ブロックデータの軸指定データが前記PMCで読み取られると、A軸およびB軸の軸制御の制御権をNC軸制御部側からPMC軸制御部側へ切り換えるステップ。(A) When the axis designation data of the command block data is read by the PMC, the control right of the axis control of the A axis and the B axis is switched from the NC axis control unit side to the PMC axis control unit side.
(b)前記PMC軸制御部の制御の下で前記軸指定データで指定された軸の制御を行うステップ。(B) A step of controlling the axis designated by the axis designation data under the control of the PMC axis control unit.
(c)前記ステップ(b)の軸制御と並行して前記NC軸制御部の制御の下で基準軸の制御を行うステップ。(C) A step of controlling the reference axis under the control of the NC axis control unit in parallel with the axis control of the step (b).
(d)前記軸指定データで指定された軸の制御動作が完了すると、前記制御権をPMC軸制御部側からNC軸制御部側へ戻すステップ。(D) A step of returning the control right from the PMC axis control unit side to the NC axis control unit side when the control operation of the axis designated by the axis designation data is completed.
JP2003373818A 2003-10-31 2003-10-31 Machine tool axis control device, machine tool axis control program Expired - Fee Related JP4549051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003373818A JP4549051B2 (en) 2003-10-31 2003-10-31 Machine tool axis control device, machine tool axis control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003373818A JP4549051B2 (en) 2003-10-31 2003-10-31 Machine tool axis control device, machine tool axis control program

Publications (3)

Publication Number Publication Date
JP2005131775A JP2005131775A (en) 2005-05-26
JP2005131775A5 true JP2005131775A5 (en) 2008-08-28
JP4549051B2 JP4549051B2 (en) 2010-09-22

Family

ID=34649722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003373818A Expired - Fee Related JP4549051B2 (en) 2003-10-31 2003-10-31 Machine tool axis control device, machine tool axis control program

Country Status (1)

Country Link
JP (1) JP4549051B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5800869B2 (en) 2013-09-09 2015-10-28 ファナック株式会社 Numerical control device with program restart function
JP6379491B2 (en) * 2014-01-10 2018-08-29 ブラザー工業株式会社 Machine Tools
JP6464211B2 (en) * 2017-02-03 2019-02-06 ファナック株式会社 Programmable controller
JP7444591B2 (en) * 2019-12-04 2024-03-06 ファナック株式会社 Control device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07210232A (en) * 1994-01-17 1995-08-11 Fanuc Ltd Numerical controller
JPH10228306A (en) * 1997-02-17 1998-08-25 Fanuc Ltd Method for interpolating free curve in numerical controller
JP3643098B2 (en) * 2001-10-16 2005-04-27 ファナック株式会社 Numerical controller

Similar Documents

Publication Publication Date Title
JP5766762B2 (en) Numerical control device with operation setting screen
JP4119372B2 (en) Numerical control method and numerical control system
JP4011372B2 (en) Machining program check method and check apparatus for numerically controlled machine tool, and numerically controlled machine tool provided with the same
US6888334B2 (en) Synchronization control method and synchronization control device
JP4629392B2 (en) Protective cover opening / closing device for machine tools
JP4216808B2 (en) Numerical controller
CN109696879B (en) Numerical controller
JP4549051B2 (en) Machine tool axis control device, machine tool axis control program
JP2005131775A5 (en)
JP3893334B2 (en) Multi-system numerical controller
JP3207125B2 (en) Turret tool selection command method
EP0275325A1 (en) Numerical controller
JPH05305540A (en) Tool exchange method for working device
JP2009223779A (en) Control system
JPH08234820A (en) Simultaneous operation commanding system by nc program
CN104772629B (en) Lathe
JPH04237307A (en) Automatic transformation device for coordinate axis
WO2023053349A9 (en) Numerical control device
JP3226459B2 (en) Turret indexing control device for lathe
JP2007233575A (en) Numerical controller and control method for machine tool
JPS6352207A (en) Numerical controller
JP3890462B2 (en) Equipment operation control apparatus and method
JP2022047702A (en) Machining program optimization device and method thereof
JP2003058212A (en) Numerically controlled machine device
JP2797901B2 (en) Machining center controller