WO1987001832A1 - Method and apparatus of numerical control for drawing the shape of workpiece - Google Patents

Method and apparatus of numerical control for drawing the shape of workpiece Download PDF

Info

Publication number
WO1987001832A1
WO1987001832A1 PCT/JP1986/000474 JP8600474W WO8701832A1 WO 1987001832 A1 WO1987001832 A1 WO 1987001832A1 JP 8600474 W JP8600474 W JP 8600474W WO 8701832 A1 WO8701832 A1 WO 8701832A1
Authority
WO
WIPO (PCT)
Prior art keywords
material shape
scale value
magnification
input
crt screen
Prior art date
Application number
PCT/JP1986/000474
Other languages
French (fr)
Japanese (ja)
Inventor
Teruyuki Matsumura
Takashi Iwagaya
Original Assignee
Fanuc 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 Fanuc Ltd filed Critical Fanuc Ltd
Publication of WO1987001832A1 publication Critical patent/WO1987001832A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/406Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
    • G05B19/4069Simulating machining process on screen

Definitions

  • the present invention relates to an interactive numerical control method and apparatus for drawing a material shape to be processed on a CRT screen of a CRT display device.
  • an interactive numerical controller displays a material shape and the like on a CRT screen and performs a simulation of actual processing.
  • the material shape is automatically scaled and drawn at a magnification that allows it to fit on the CRT screen, so it is always drawn on the CRT screen, and the drawing size is always large. It was not possible to change this freely.
  • the purpose of the present invention is to draw a material shape to be turned on a CRT screen in an interactive numerical control device, and to convert the material shape to an arbitrary designated size on the CRT screen. It is necessary to be able to draw on the screen.
  • a numerical control method provides a material shape data to be subjected to lathe processing and a magnification for drawing the material shape, and The drawing scale value is determined based on the drawing magnification and the drawing magnification.Furthermore, the center coordinate value of the drawing material shape corresponding to the center position of the CRT screen is obtained from the material shape data. A step of drawing the material shape at a magnification given to the CRT screen from the scale value and the center coordinate value of the drawing material shape obtained above. ⁇
  • the numerical controller includes a material shape input means for inputting material shape data, a magnification setting means for setting a size of drawing of the material shape, and a material input from the material shape input means.
  • Scale determination means for determining the scale value at the time of drawing based on the shape data and the magnification input from the magnification setting means, and corresponding to the center of the CRT screen based on the material shape data
  • a center coordinate determining means for determining a center coordinate value of the drawing material shape; material shape data input from the material shape input means; a scale value determined by the scale determining means;
  • a CRT display device that draws the material shape at the magnification that has been input according to the center coordinates determined by the center coordinate determination means, and sets the magnification and the material shape data input by the material shape input means.
  • the scale determination means determines the scale value for displaying the material shape on the CRT screen based on the magnification set in the column, and determines the scale value and the center coordinate determination means.
  • the CRT display device draws a material shape of the size set by the magnification setting means based on the center coordinate value of the material shape corresponding to the center position of the CRT screen and the input material shape data. .
  • the material shape can be arbitrarily switched and displayed on the CRT screen according to the set value to an arbitrary size obtained by reducing the shape of the material from a substantially screen-like size. Therefore, it is possible to display the material shape at the optimum size that is easy to observe.
  • FIG. 1 is a block diagram illustrating the principle of one embodiment of the present invention
  • FIG. 2 is a block diagram of a numerical controller according to one embodiment of the present invention
  • FIG. This is a flow chart of the operation processing in the example.
  • FIG. 1 is a block diagram for explaining the principle of a numerical control method and apparatus according to one embodiment of the present invention.
  • material shape data to be lathe-processed is input to a material shape input means. Enter from A, and enter the magnification for drawing the material shape on the CRT screen of the CRT display device F from the magnification setting step, step B.
  • the scale determination step C is The axis to be used to determine the scale value used to draw the material shape on the CRT screen from the shape data, that is, the drawing scale of the material shape immediately.
  • an axis is determined such that the relevant axial dimension of the drawing material is the same as the entire length of the corresponding axis on the CRT screen, and this axis is used as a reference. Then, on the CRT screen, the material shape is drawn in the direction of the reference axis of the screen. Determine the maximum Shaving Lumpur value Do Let 's that, then that determine the absence Ke Lumpur value be drawn by multiplying the magnification setting means B initializes to input a magnification to said maximum scan cable le value.
  • the center coordinate value of the material shape to be drawn corresponding to the center of the CRT screen is corresponded, and the CRT display is performed.
  • the material shape is displayed at the specified magnification.
  • FIG. 2 is a block diagram of a numerical control device for a four-axis lathe according to one embodiment based on the above principle.
  • the numerical aperture processor (hereinafter referred to as NC) for numerical control is shown in FIG.
  • the CPU 1 is used, via a bus 17, for temporary storage of ROM and data storing a control program for controlling the entire numerical controller.
  • Memory device 4 composed of RAM, etc., key for inputting material shape data to be processed, drawing magnification, various commands, set values, parameters, etc. Board 10, Non-volatile memory 11 for storing various input parameters, etc., X for controlling the X axis and Z axis corresponding to each tool post of the lathe Axis control circuit 13, 15, Z-axis control circuit 14,
  • a shared RAM 7 for transmitting and receiving data to and from a CRT display device, which will be described later, and an automatic programming device. It is connected to a card RAM 8 for sending and receiving data.
  • a micro processor (hereinafter referred to as an AP CPU) 2 for automatic programming is automatically programmed via a bus 18.
  • Memory device 5 consisting of a ROM for storing programs and a RAM for temporarily storing data, and a family device that has already been created.
  • the non-volatile memory 12 which stores the threading file etc. related to the re-program and the tool data, and the above-mentioned shared RAM 8 It is connected .
  • CRT Microprocessor for CRT display
  • the CPU 3 is a bus for storing a program for displaying data on a CRT screen via a bus 19 and a ROM for temporarily storing data. It is connected to a memory device 6 composed of a RAM, a CRT 9, and the above-described shield RAM 7.
  • the material shape data that is, the material diameter D, the length of the material, and the magnification P for drawing are calculated from the keyport 10. And store it in RAM 5 through shared RAM 8.
  • the CPU 2 for AP reads the data from the RAM 5 as shown in the flowchart of FIG. 3 (Step S). 1), the length of the X-axis of the CRT screen, that is, the ratio of the vertical length Xc to the Z-axis length, that is, the horizontal length Zc, Zc / Xc, and the length of the material shape
  • the reference axis for determining the scale value is determined by comparing the ratio L / D between L and the diameter D (step S2). For more information ,
  • the X-axis that is, the vertical image length Xc of the CRT screen, and the diameter D of the material shape are displayed at any time. Even if the length L of the material shape falls within the Z-axis, ie, the horizontal image length Zc of the CRT screen, the scale value is calculated based on the X-axis. . On the other hand, if the above equation (1) does not hold, in other words, in other words, even if the material shape length L is displayed in the horizontal direction of the CRT screen Zc If the diameter D of the material shape can be accommodated in the Relative to the z-axis.
  • the scale value Sc is calculated in consideration of the magnification P for drawing. That is, when the above equation (1) is satisfied, the length Xc of the CRT screen in the vertical direction (X) is divided by the diameter D of the material shape, and the result is multiplied by a factor P ( ⁇ 1). The value Sc is obtained (step S3). If the above equation (1) does not hold, the scale value Sc is obtained by dividing the image length Zc in the horizontal direction (Z) of the CRT screen by the length of the material shape and multiplying by the magnification P. Is calculated, and a scale value is determined (step S4).
  • the center coordinate value of the material shape is mapped to the center position of the CRT screen.
  • the coordinate system of the CRT screen is set so that its origin coincides with the middle point on the left side of the CRT screen, and when drawing the material shape, its diameter is set in the vertical direction of the CRT screen.
  • Input the material shape data D and L so that the origin of the material shape coincides with the center of the chuck mounting surface of the material.
  • the coordinate value is 0 in the X-axis direction and LZ 2 in the Z-axis direction.
  • the center coordinate value (0, LZ2) is obtained from the material shape data (step S5).
  • the scale value Sc obtained in step S3 or step S4 the diameter D, the length L of the material shape of the input data, and the step S5
  • the center CPU (0, LZ 2) obtained in step 2 is used by the AP CPU as a shared RAM. 8 (step S 6), and the CPU 1 for NC reads the above scale value Sc read from the shade RAM 8, the diameter D of the material shape, the length L, and the center.
  • the coordinates (0, L / 2) are output to the shade RAM 7, and the CPU 3 of the CRT display device reads the data and stores the data in the memory 6 for display.
  • scale value Sc of the material shape drawn on the CRT screen may also be displayed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

A method and an apparatus of numerical control for drawing on a CRT screen (F) the shape of a workpiece that is to be processed on a lathe. Data on the shape of the workpiece and the magnification of drawing are input (A), (B) to make it possible to select the size of the shape of workpiece to be drawn on the CRT screen (F), a scale value of drawing is obtained (C) from the data on the shape of workpiece and from the magnification, while a center coordinate of the shape of workpiece corresponding to the center position of the CRT screen (F) is obtained (E), and the shape of workpiece of a selected size is drawn on the CRT screen according to the data on the shape of workpiece, scale value and center coordinate of the shape of workpiece.

Description

明 細 書  Specification
加 工素材形状 を描画す る数値制御方法及び装置  Numerical control method and apparatus for drawing workpiece material shape
技 術 分 野  Technical field
本発明 は 、 加 工 す る素材形状を C R T表示装置の C R T画面に描画す る対話形数値制御方法及び装置に 関 する 。  The present invention relates to an interactive numerical control method and apparatus for drawing a material shape to be processed on a CRT screen of a CRT display device.
背 景 技 術  Background technology
対話形の数値制御装置 に お い て 、 素材形状等を C R T 画面上 に 表示 し 、 実際の加 工 の シ ミ ュ レ ー シ ョ ン を行 う こ と は すで に 公知で あ る 。 従来装置 に お い て 、 素材形状 は C R T画面 に 入る よ う な倍率 に 自動的 に スケ ー リ ン グ さ れ描画さ れる た め 、 常 に C R T画面い っ ぱい に描画さ れ 、 描画の 大き さ を 自 由 に 変 え る こ と はで き な か っ た 。  It is already known that an interactive numerical controller displays a material shape and the like on a CRT screen and performs a simulation of actual processing. In the conventional device, the material shape is automatically scaled and drawn at a magnification that allows it to fit on the CRT screen, so it is always drawn on the CRT screen, and the drawing size is always large. It was not possible to change this freely.
発 明 の 開 示  Disclosure of the invention
本発明 の 目 的 は 、 対話形数値制御装置 に おい て 、 旋盤 加 工 し ょ う と す る素材形状を C R T画面 に 描画する と き 、 任意の指定 し た 大き さ で素材形状を C R T画面上に 描画 でぎる よ う に す る こ と に あ る 。  The purpose of the present invention is to draw a material shape to be turned on a CRT screen in an interactive numerical control device, and to convert the material shape to an arbitrary designated size on the CRT screen. It is necessary to be able to draw on the screen.
上記 目 的を達成 す る た め に 、 本発明 の数値制御方法 は 、 旋盤加 工 す る素材形状デ ー タ と 素材形状を描画する上で の倍率 と を与 え 、 該素材形状デ ー タ と 前記描画倍率 と よ り 描画時の スケール値を決定 し 、 さ ら に 、 素材形状デ ー タ よ り C R T画面の 中心位置 に対応す る描画素材形状の 中心座標値を求め 、 上記素材形状デー タ 、 上記求め ら れ た ス ケ ール値及び描画素材形状の 中心座標値よ り C R T 画面に与え ら れた 倍率で素材形状を描画す る 工程を備え る ο In order to achieve the above object, a numerical control method according to the present invention provides a material shape data to be subjected to lathe processing and a magnification for drawing the material shape, and The drawing scale value is determined based on the drawing magnification and the drawing magnification.Furthermore, the center coordinate value of the drawing material shape corresponding to the center position of the CRT screen is obtained from the material shape data. A step of drawing the material shape at a magnification given to the CRT screen from the scale value and the center coordinate value of the drawing material shape obtained above. Ο
又、 本発明の数値制御装置は素材形状デー タ を入力 す る素材形状入力 手段 と 、 素材形状の描画の大き さ を設定 する倍率設定手段 と 、 上記素材形状入力 手段か ら入力 さ れた 素材形状デ ー タ と 上記倍率設定手段か ら入力 さ れた 倍率 と よ り 描画時のスケー ル値を決定 するスケ ー ル決定 手段 と 、 上記素材形状デー タ よ り C R T 画面の 中心に対 応する描画素材形状の中心座標値を決定する中心座標決 定 手段 と 、 上記素材形状入力 手段か ら 入力 さ れた 素材形 状デ ー タ , 上記ス ケール決定手段で決定さ れたス ケール 値及び上記中心座標決定 手段で決定 さ れた 中心座標 に従 い素材形状を入力 した 倍率で描画す る C R T表示装置 と を備え 、 上記素材形状入力 手段で入力 さ れた 素材形状デ 一 夕 と倍率設定 手段で設定 さ れた 倍率 と よ り 上記スケー ル決定手段 は素材形状を C R T画面上に 表示する た め の ス ケー ル値を決定 し 、 該ス ケ ー ル値 と 上記中心座標決定 手段で決定 さ れ た C R T 画面の 中心位置 に対応す る素材 形状の 中心座標値 と入力素材形状デ ー タ と に よ り C R T 表示装置は倍率設定手段で設定 さ れ た 大き さ の素材形状 の描画を行う 。  Further, the numerical controller according to the present invention includes a material shape input means for inputting material shape data, a magnification setting means for setting a size of drawing of the material shape, and a material input from the material shape input means. Scale determination means for determining the scale value at the time of drawing based on the shape data and the magnification input from the magnification setting means, and corresponding to the center of the CRT screen based on the material shape data A center coordinate determining means for determining a center coordinate value of the drawing material shape; material shape data input from the material shape input means; a scale value determined by the scale determining means; A CRT display device that draws the material shape at the magnification that has been input according to the center coordinates determined by the center coordinate determination means, and sets the magnification and the material shape data input by the material shape input means. The scale determination means determines the scale value for displaying the material shape on the CRT screen based on the magnification set in the column, and determines the scale value and the center coordinate determination means. The CRT display device draws a material shape of the size set by the magnification setting means based on the center coordinate value of the material shape corresponding to the center position of the CRT screen and the input material shape data. .
以上の よ う に 、 本発明 に よ れば、 C R T画面上に素材 形状を画面略い っ ぱい の大き さ か ら 縮小 し た 任意の大き さ に 、 設定値 に よ っ て 任意 に切換表示できる か ら 、 最適 の観察 し や す い大き さ で素材形状を表示する こ と がで き る 0 図面の簡単な説明 As described above, according to the present invention, the material shape can be arbitrarily switched and displayed on the CRT screen according to the set value to an arbitrary size obtained by reducing the shape of the material from a substantially screen-like size. Therefore, it is possible to display the material shape at the optimum size that is easy to observe. BRIEF DESCRIPTION OF THE FIGURES
第 1 図 は 、 本発明の一実施例 の原理を説明 す る プ ロ ッ ク 図 、 第 2 図 は本発明 の一実施例 の数値制御装置のブ ロ ッ ク 図 、 第 3 図 は周実施例 の動作処理の フ ロ ー チ ヤ 一 卜 で あ る 。  FIG. 1 is a block diagram illustrating the principle of one embodiment of the present invention, FIG. 2 is a block diagram of a numerical controller according to one embodiment of the present invention, and FIG. This is a flow chart of the operation processing in the example.
発明 を実施する た め の最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
本発明 の一実施例 を添付図面 に 従 っ て 詳細 に 説明 す る 。 第 1 図 は 、 本発明 の一実施例 の数値制御方法及び装置 の原理を説明 す る プ ロ ッ ク 図で 、 周 図 に お い て 旋盤加 工 すべき素材形状デー タ を素材形状入力 手段 Aよ り 入力 し 、 C R T表示装置 Fの C R T画面 に 素材形状を描画 す る上 で の倍率を倍率設定手,段 B よ り 入力 す る と 、 ス ケ ー ル 決 定 段 Cは 、 上記素材形状デ ー タ よ り C R T画面 に 素材 形状を描画す る た め に 用 いる ス ケ ール値を決定 す る と き に 基準 に す べ き軸 、 即 ち 、 素材形状の 描画 ス ケ ー ルを 漸 増さ せ て い っ た と き に 先 に描画素材の 当該軸方向寸法が C R T画面の対応す る軸 の全長 と 周一 と な る よ う な軸 を 求め 、 こ の軸 を基準 に し て 、 C R T画面 に お い て 該画面 の 当該基準軸方向 に 素材形状が い っ ぱい に 描画さ れる よ う な最大ス ケ ー ル値を求め 、 次いで該最大ス ケー ル値 に 上記倍率設定手段 B よ り 入力 さ れた倍率を乗 じ て 描画す るス ケ ー ル値を 決定 す る 。 又、 中心座標決定手段 E に よ り C R T画面の座標系を描画す る素材形状 に 与え る た め に C R T画面の 中心 に 対応す る描画する素材形状の 中心 座標値を対応 さ せ 、 C R T表示装置 Fの C R T画面 に 設 定 し た倍率で素材形状を表示するもので あ る 。 An embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 is a block diagram for explaining the principle of a numerical control method and apparatus according to one embodiment of the present invention. In the peripheral diagram, material shape data to be lathe-processed is input to a material shape input means. Enter from A, and enter the magnification for drawing the material shape on the CRT screen of the CRT display device F from the magnification setting step, step B. The scale determination step C is The axis to be used to determine the scale value used to draw the material shape on the CRT screen from the shape data, that is, the drawing scale of the material shape immediately. First, an axis is determined such that the relevant axial dimension of the drawing material is the same as the entire length of the corresponding axis on the CRT screen, and this axis is used as a reference. Then, on the CRT screen, the material shape is drawn in the direction of the reference axis of the screen. Determine the maximum Shaving Lumpur value Do Let 's that, then that determine the absence Ke Lumpur value be drawn by multiplying the magnification setting means B initializes to input a magnification to said maximum scan cable le value. Also, in order to assign the coordinate system of the CRT screen to the material shape to be drawn by the center coordinate determination means E, the center coordinate value of the material shape to be drawn corresponding to the center of the CRT screen is corresponded, and the CRT display is performed. Set on the CRT screen of device F The material shape is displayed at the specified magnification.
第 2 図 は 、 上記原理 に 基づ く 一実施例 の 4軸旋盤用 の 数値制御装置のブ ロ ッ ク 図であ り 、 数値制御用 のマ イ ク 口 プ ロ セ ッ サ ( 以下 N C用 C P U と い う ) 1 は 、 バス 1 7 を介 し て 、 数値制御装置全体を制御 する た め の制御 プ ロ グラ ム-を 記億 し た R O M及びデ ー タ の一時記憶等に 利用 される R A M等で構成さ れる メ モ リ 装置 4 , 加工 し よ う と す る 素材形状デ ー タ , 描画す る倍率 , 各種指令 , 設定値 , パラ メ ー タ 等を入力 す るた め のキ ー ボ ー ド 1 0 , 入力 さ れた 各種パ ラ メ 一タ 等を記憶す る不揮発性メ モ リ 1 1 , 旋盤の各刃物台 に対応す る X軸 , Z軸を制御 する た め の X軸制御 回 路 1 3 , 1 5 , Z軸制御 回路 1 4 ,  FIG. 2 is a block diagram of a numerical control device for a four-axis lathe according to one embodiment based on the above principle. The numerical aperture processor (hereinafter referred to as NC) for numerical control is shown in FIG. The CPU 1 is used, via a bus 17, for temporary storage of ROM and data storing a control program for controlling the entire numerical controller. Memory device 4 composed of RAM, etc., key for inputting material shape data to be processed, drawing magnification, various commands, set values, parameters, etc. Board 10, Non-volatile memory 11 for storing various input parameters, etc., X for controlling the X axis and Z axis corresponding to each tool post of the lathe Axis control circuit 13, 15, Z-axis control circuit 14,
6 に接続さ れ 、 さ ら に 、 後述 する C R T表示装置 と の 間で デ ー タ の送受を行 う た め の シ ェ ア ー ド R A M 7及び 自 動プ ロ グラ ミ ング装置 と の 間でデ ー タ の送受を行う た め の シ ヱ ァ ー ド R A M 8 に 接続 さ れて い る。  6 and a shared RAM 7 for transmitting and receiving data to and from a CRT display device, which will be described later, and an automatic programming device. It is connected to a card RAM 8 for sending and receiving data.
又、 自 動 プ ロ グラ ミ ン グ用 のマ イ ク ロ プ ロ セ ッ サ ( 以 下 A P用 C P U と い う ) 2 は 、 バ ス 1 8 を介 し て 、 自動 プ ロ グラ ム す る た め のプ ロ グラ ム を記億 し た R O M及び デ ー タ の 一 時記億の た め の R A Mで構成さ れ た メ モ リ 装 置 5 と 、 すで に作成さ れた フ ァ ミ リ ープ ロ グラ ム , 工具 デ ー タ に 関 す る ツ ー リ ング フ ァ イ ル等を記億 し た 不揮発 性メ モ リ 1 2 と 、 前述 し た シ ェ ア ー ド R A M 8 と に接続 さ れて い る 。  In addition, a micro processor (hereinafter referred to as an AP CPU) 2 for automatic programming is automatically programmed via a bus 18. Memory device 5 consisting of a ROM for storing programs and a RAM for temporarily storing data, and a family device that has already been created. The non-volatile memory 12 which stores the threading file etc. related to the re-program and the tool data, and the above-mentioned shared RAM 8 It is connected .
C R T表示装置のマ イ ク ロ プ ロ セ ッ サ (以下 C R T用 C P U と い う 〉 3 は 、 バス 1 9 を介 し て 、 C R T画面 に デ ー タ を表示す る た め のプ ロ グラ ム を記憶 し た R O M及 びデー タ の一 時記憶の た め の R A Mで構成さ れた メ モ リ 装置 6 と 、 C R T 9 と 、 前述 し た シ I ァ ー ド R A M 7 と に 接続さ れて い る 。 Microprocessor for CRT display (hereinafter referred to as CRT The CPU 3) is a bus for storing a program for displaying data on a CRT screen via a bus 19 and a ROM for temporarily storing data. It is connected to a memory device 6 composed of a RAM, a CRT 9, and the above-described shield RAM 7.
上述の構成の数値制御装置 に お い て 、 ま ず 、 キ ー ポ ー ド 1 0 よ り 素材形状デ ー タ す なわ ち 素材 の直径 D , 長 さ' し 及び描画の た めの倍率 Pを 入力 し 、 シ ェ ア ー ド R A M 8 を通 っ て R A M 5 へ記億さ せ る 。 次 に 、 描画指令 を入 力 する と 、 A P用 C P U 2 は第 3 図 の フ ロ ー チ ヤ一 卜 に 示 す よ う に 該デ ー タ を R A M 5 か ら 読取 り ( ス テ ッ プ S 1 ) 、 C R T画面の X軸 の長さ 即 ち 縦方向の長さ X c と Z軸 の 長さ 即 ち 横方向 の 長さ Z c と の 比 Z c / X c と 素 材形状の長さ L と 直径 D と の比 L / D と を比較 し 、 ス ケ 一ル値を 決め る た め の基準軸 を 求め る ( ス テ ッ プ S 2 ) 。 詳 し く は 、  In the numerical controller having the above-described configuration, first, the material shape data, that is, the material diameter D, the length of the material, and the magnification P for drawing are calculated from the keyport 10. And store it in RAM 5 through shared RAM 8. Next, when a drawing command is input, the CPU 2 for AP reads the data from the RAM 5 as shown in the flowchart of FIG. 3 (Step S). 1), the length of the X-axis of the CRT screen, that is, the ratio of the vertical length Xc to the Z-axis length, that is, the horizontal length Zc, Zc / Xc, and the length of the material shape The reference axis for determining the scale value is determined by comparing the ratio L / D between L and the diameter D (step S2). For more information ,
Z c / X c ≥ L / D … ( 1 ) で あ れば、 換言 す れば、 X軸 即 ち C R T画面の縦方向 の画長 X c い つ ば い に 素材形状の直径 Dを表示 し て も 、 Z軸 即 ち C R T画面の横方向の画長 Z c 内 に 素材形状の 長さ Lが収 ま る場合 に は 、 ス ケ ー ル値の算出 に あ た り X 軸 を基準 と す る 。 一方 、 上記第 ( 1 ) 式 が成立 し な け れ ば、 換言す れば 、 C R T画面の横方向 の画長 Z c い っ ぱ い に 素材形状の 長 さ L を表示 し て も C R T画面内 に 素材 形状の直径 D は収 ま る場合 に は 、 ス ケ ール値の算出 に あ た り z軸を基準 と する 。 さ ら に 、 本発明で は 、 描画する た め の倍率 Pを 考慮 し て スケ ー ル値 S c が算出 さ れる 。 すなわ ち 、 上記第 ( 1 ) 式が成立する と き C R T画面の 縦方向 ( X ) の 画長 X c を素材形状の直径 Dで 除 し 、 倍 ' 率 P ( ≤ 1 ) を掛け て スケ ル値 S c を求め る ( ス テ ツ プ S 3 ) 。 ま た 、 上記第 ( 1 ) 式 が成立 し なけ れば 、 C R T画面の横方向 ( Z ) の画長 Z c を素材形状の長さ し で 除 し倍率 Pを掛け て スケ ー ル値 S c を算出 し 、 スケ ー ル値を決定 す る ( ス テ ッ プ S 4 ) 。 If Zc / Xc ≥ L / D… (1), in other words, the X-axis, that is, the vertical image length Xc of the CRT screen, and the diameter D of the material shape are displayed at any time. Even if the length L of the material shape falls within the Z-axis, ie, the horizontal image length Zc of the CRT screen, the scale value is calculated based on the X-axis. . On the other hand, if the above equation (1) does not hold, in other words, in other words, even if the material shape length L is displayed in the horizontal direction of the CRT screen Zc If the diameter D of the material shape can be accommodated in the Relative to the z-axis. Further, in the present invention, the scale value Sc is calculated in consideration of the magnification P for drawing. That is, when the above equation (1) is satisfied, the length Xc of the CRT screen in the vertical direction (X) is divided by the diameter D of the material shape, and the result is multiplied by a factor P (≤1). The value Sc is obtained (step S3). If the above equation (1) does not hold, the scale value Sc is obtained by dividing the image length Zc in the horizontal direction (Z) of the CRT screen by the length of the material shape and multiplying by the magnification P. Is calculated, and a scale value is determined (step S4).
次に 、 C R T画面上 に画面縦方向及び横方向 の いず れ に も偏る こ と な く 素材形状を描画す る た め に C R T画面 の 中心位置に素材形状の 中心座標値を対応さ せ る 。 本実 施例で は C R T画面の座標系をそ の原点が C R T画面の 左辺中 間点 に合致す る よ う に 設定 さ れ、 素材形状の描画 時 、 そ の直径が C R T画面の縦軸方向 に と ら れる よ う に 素材形状デ ー タ D , L を入力 し 、 さ ら に 素材形状の原点 を素材の チ ャ ッ ク 取付面の 中心 に 合致す る よ う に 設定 し て い る の で 、 C R T画面の 中心位置 ( 0 , L Z 2 ) に 合 致す る描画素材形状の 中心座標値を求め る と 、 該座標値 は X軸方向 の値が 0 , Z軸方向 の値が L Z 2 と な り 、 こ の 中心座標値 ( 0 , L Z 2 ) は素材形状デー タ よ り 求め ら れる ( ス テ ッ プ S 5 ) 。 そ し て 、 ス テ ッ プ S 3 ま た は ス テ ッ プ S 4で求め た スケ ー ル値 S c , 入力 デー タ の素 材形状の直径 D , 長さ L及びス テ ッ プ S 5 で求め た 中心 座標 ( 0 , L Z 2 ) を A P用 C P U は シ ェ ア ー ド R A M 8 に 出力 し ( ス テ ッ プ S 6 〉 、 N C用 C P U 1 は該シ ェ ァ ー ド R A M 8 か ら 読出 し た 上記 スケ ー ル値 S c , 素材 形状の直径 D , 長さ L及び中心座標 ( 0 , L / 2 〉 を シ エ ア ー ド R A M 7 に 出力 し 、 C R T表示装置の C P U 3 は こ のデー タ を読取 り 、 メ モ リ 6 に 記憶 し た表示の た め のプ ロ グ ラ ム に 従 っ て C R T 9 の画面 に 素材形状 を表示 する 。 こ の際、 上記倍率 Pが 「 1 」 で あ れば C R T画面 い っ ぱい に 素材形状が表示さ れ 、 P = 0 . 5 で あ れば P = と し た と き の 素材形状の一辺の長 さ が半分の大き さ で 表示さ れる こ と と な り 、 倍率 Pを変え る こ と に よ つ て C R T画面上 に 任意の大き さ で表示さ せ る こ と がで き る 。 Next, in order to draw the material shape on the CRT screen without being biased both vertically and horizontally, the center coordinate value of the material shape is mapped to the center position of the CRT screen. . In this embodiment, the coordinate system of the CRT screen is set so that its origin coincides with the middle point on the left side of the CRT screen, and when drawing the material shape, its diameter is set in the vertical direction of the CRT screen. Input the material shape data D and L so that the origin of the material shape coincides with the center of the chuck mounting surface of the material. Then, when the center coordinate value of the drawing material shape matching the center position (0, LZ 2) of the CRT screen is obtained, the coordinate value is 0 in the X-axis direction and LZ 2 in the Z-axis direction. That is, the center coordinate value (0, LZ2) is obtained from the material shape data (step S5). Then, the scale value Sc obtained in step S3 or step S4, the diameter D, the length L of the material shape of the input data, and the step S5 The center CPU (0, LZ 2) obtained in step 2 is used by the AP CPU as a shared RAM. 8 (step S 6), and the CPU 1 for NC reads the above scale value Sc read from the shade RAM 8, the diameter D of the material shape, the length L, and the center. The coordinates (0, L / 2) are output to the shade RAM 7, and the CPU 3 of the CRT display device reads the data and stores the data in the memory 6 for display. The material shape is displayed on the screen of the CRT 9 according to the program.If the magnification P is "1", the material shape is displayed on the CRT screen, and P = 0. If it is 5, then the length of one side of the material shape when P = is set will be displayed in half the size, and by changing the magnification P, it will be displayed on the CRT screen. It can be displayed in any size.
な お 、 C R T画面 に 描画 し た 素材形状の スケ ー ル値 S c を も表示 す る よ う に し て も よ い 。  Note that the scale value Sc of the material shape drawn on the CRT screen may also be displayed.

Claims

請 求 Φ 範 囲Claim Φ range
. 対話形数値制御装置に よ り C R T 画面に旋盤加 工 す る素材形状を描画す る数値制御方法 に お い て 、 素材形 状デー タ と 素材形状を描画 す る上での倍率 と を与え 、 該素材形状デ ー タ と 前記描画倍率 よ り 描画時のス ケ ー ル値を決定 し 、 さ ら に ; 素材形状デ ー タ よ り C R T 画 面の 中心位置 に対応す る描画素材形状の 中心座標値を 求め 、 上記素材形状デ ー タ , 上記求め ら れ た ス ケ ール 値及び描画素材形状の 中心座標値を C R T表示装置 に 与え C R T 画面 に与え ら れ た倍率で素材形状を描画 さ せ る 、 加 工素材形状を描画す る数値制御方法。In the numerical control method for drawing the material shape to be turned on the CRT screen by the interactive numerical controller, the material shape data and the magnification for drawing the material shape are given. The scale value at the time of drawing is determined from the material shape data and the drawing magnification, and further; the drawing material shape corresponding to the center position of the CRT screen is determined from the material shape data. The center coordinate value is obtained, and the material shape data, the obtained scale value and the center coordinate value of the drawing material shape are given to the CRT display device, and the material shape is drawn at the magnification given on the CRT screen. A numerical control method that draws the shape of the material to be processed.
. 上記ス ケ ー ル値 は C R T 画面の横軸 の長さ と 縱軸 と の長さ の比を 、 該 C R T画面の横軸; 縦軸 に対応す る 入力 さ れた 素材形状の横軸 の 長 さ と 縦軸 と の長さ の 比 と を比較 し 、 こ の比較の結果 に 従 っ て描画時のス ケ ー ル値を決定 す る た め の軸 を求め 、 求め ら れた 軸 の丁度 全長 に 亘 り 素材形状 の 当該軸方向成分が描画さ れる よ う に す る 最大スケ ー ル値を 求め 、 該最大ス ケ ー ル値 に 上記倍率設定手段で入力 さ れた 倍率を乗 じ て 前記ス ケ 一ル値を求め る請求の範囲第 Ί 項記載の加 工素材形状 を描画す る数値制御方法 。The scale value is the ratio of the length of the horizontal axis to the vertical axis of the CRT screen, the horizontal axis of the CRT screen; the horizontal axis of the input material shape corresponding to the vertical axis. The length and the ratio of the vertical axis to the length are compared, and an axis for determining the scale value at the time of drawing is determined according to the result of the comparison, and the determined axis is determined. The maximum scale value is calculated so that the axial component of the material shape is drawn just over the entire length, and the maximum scale value is multiplied by the magnification input by the magnification setting means. 4. The numerical control method according to claim 3, wherein said scale value is obtained by drawing.
. 素材形状を C R T 画面上 に 表示する数値制御装置に おい て 、 旋盤加工 す る素材形状デー タ を入力 する素材 形状入力 手段 と 、 素材形状の描画の 大き さ を設定 す る 倍率設定手段 と 、 上記素材形状入力 手段か ら 入力 さ れ た 素材形状デ ー タ と 上記倍率設定手段か ら 入力 さ れた 倍率 と よ り 描画時の ス ケ ー ル値を決定 す る ス ケ ー ル決 定手段 と 、 上記素材形状デー タ よ り C R T 画面の 中心 に 対応す る 描画素材形状の 中 心座標値 を 決定 す る 中心 座標決定手段 と 、 上記素材形状入力 手段か ら 入力 さ れ た 素材形状デ ー タ , 上記 ス ケ ー ル決定手段で 決定 さ れ た ス ケー ル値及び上記中心座標決定手段で決定 さ れた 中心座標 に 従い 素材形状を 前記入 力 し た 倍率で描画す る C R T 表示装置 と を備える こ と を特徴 と す る 、 加 工 素材形状を描画 す る数値制御装置。In a numerical controller that displays the material shape on a CRT screen, material shape input means for inputting material shape data to be turned, magnification setting means for setting the size of the material shape drawing, and Input from the above material shape input means Scale determination means for determining the scale value at the time of drawing based on the material shape data and the magnification input from the magnification setting means, and CRT from the material shape data A center coordinate determining means for determining the center coordinate value of the drawing material shape corresponding to the center of the screen; material shape data input from the material shape input means; and the scale determining means A CRT display device that draws the material shape at the input magnification according to the determined scale value and the center coordinates determined by the center coordinate determination means. Processing A numerical control device that draws material shapes.
. 上記ス ケ ー ル決定手段 は 、 C R T 画面の横軸 の長 さ と 縦軸 と の長 さ と の 比 を 、 該 C R T 画面の横軸 , 縦軸 に 対応す る入力 さ れた 素材形状の横軸 の長さ と 縦軸 の 長さ と の 比 と を 比較 し 、 描画時の ス ケ ー ル値を 決定 す る 軸 を決定 す基準軸 決定手段 と 、 決定 さ れた 軸 の丁度 全長 に 亘 り 素材形状の 当該軸方向成分 が描画さ れ る よ う に す る最大ス ケ ー ル値を求め 、 該最大ス ケー ル値 に 上記倍率設定 手段で入力 さ れ た 倍率を 乗 じ て 描画 スケ 一ル値を求め る ス ケ ー ル値算出手段 と よ り な る請求の 範囲第 3 項記載の加 工素材形状 を 描画す る数値制御装 The scale determining means determines the ratio of the length of the horizontal axis of the CRT screen to the length of the vertical axis of the CRT screen by using the input material shape corresponding to the horizontal axis and the vertical axis of the CRT screen. The reference axis determining means for comparing the ratio of the length of the horizontal axis to the length of the vertical axis to determine the axis for determining the scale value at the time of drawing, and the total length of the determined axis. The maximum scale value is determined so that the axial component of the material shape is drawn over the entire area, and the maximum scale value is multiplied by the magnification input by the magnification setting means. Numerical control device for drawing a shape of a work material according to claim 3, wherein said numerical value control means is a scale value calculating means for obtaining a scale value.
PCT/JP1986/000474 1985-09-14 1986-09-12 Method and apparatus of numerical control for drawing the shape of workpiece WO1987001832A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP60/202549 1985-09-14
JP20254985A JPS6265106A (en) 1985-09-14 1985-09-14 Numerical controller

Publications (1)

Publication Number Publication Date
WO1987001832A1 true WO1987001832A1 (en) 1987-07-26

Family

ID=16459340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1986/000474 WO1987001832A1 (en) 1985-09-14 1986-09-12 Method and apparatus of numerical control for drawing the shape of workpiece

Country Status (2)

Country Link
JP (1) JPS6265106A (en)
WO (1) WO1987001832A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5771011A (en) * 1980-10-22 1982-05-01 Mitsubishi Electric Corp Discriminating method for quality of nc command tape
JPS57176417A (en) * 1981-04-23 1982-10-29 Fanuc Ltd Numerical controlling system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5771011A (en) * 1980-10-22 1982-05-01 Mitsubishi Electric Corp Discriminating method for quality of nc command tape
JPS57176417A (en) * 1981-04-23 1982-10-29 Fanuc Ltd Numerical controlling system

Also Published As

Publication number Publication date
JPS6265106A (en) 1987-03-24

Similar Documents

Publication Publication Date Title
WO1993019894A1 (en) Machining condition generation method for numerically controlled machine tool
JPS5882310A (en) Numerical controlling with position display function
JPS6115205A (en) Drawing method of graphic display for numerical controller
WO1989003550A1 (en) Nc data preparation method
JPS60502A (en) Numerical controller with stored stroke limit check by drawing
WO1987000106A1 (en) System for automatically drawing profile of tool
JP2701022B2 (en) Numerical controller with programmable mirror image function
JPH0421208B2 (en)
WO1987001832A1 (en) Method and apparatus of numerical control for drawing the shape of workpiece
JPS60252914A (en) Conversion system between visual sensor coordinate information and robot reference coordinate information
WO1984003960A1 (en) Method of setting date in numerical control apparatus
JP3439812B2 (en) Automatic product arrangement method
JPH0122106B2 (en)
JPS60186906A (en) Automatic programming method
US5278479A (en) Tool path drawing method
WO1987001639A1 (en) Method and apparatus for numerically controlled drawing of shape of workpiece
US5739656A (en) Numerical controlling method with mirror image function
WO1989001198A1 (en) Interactive programming apparatus
JP2545911Y2 (en) NC program video checker
JPH10154040A (en) Image processor
JPH03156506A (en) Nc program generating method for interactive numerical controller or automatic programming device
JP2837927B2 (en) Numerical control device with a function to display the trajectory of the rotation axis
JPH0926810A (en) Numerical controller
JP2854175B2 (en) How to create numerical control information
JPS6391707A (en) Two-picture drawing method

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): KR US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): DE FR GB