JP2001222308A - Numerical control system - Google Patents

Numerical control system

Info

Publication number
JP2001222308A
JP2001222308A JP2000031933A JP2000031933A JP2001222308A JP 2001222308 A JP2001222308 A JP 2001222308A JP 2000031933 A JP2000031933 A JP 2000031933A JP 2000031933 A JP2000031933 A JP 2000031933A JP 2001222308 A JP2001222308 A JP 2001222308A
Authority
JP
Japan
Prior art keywords
data
unit
operation board
communication
synchronization
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
JP2000031933A
Other languages
Japanese (ja)
Other versions
JP4320495B2 (en
Inventor
Hironori Ito
博範 伊藤
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 JP2000031933A priority Critical patent/JP4320495B2/en
Publication of JP2001222308A publication Critical patent/JP2001222308A/en
Application granted granted Critical
Publication of JP4320495B2 publication Critical patent/JP4320495B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an NC system capable of reducing the number of connectors or wiring necessary for connection with outside equipment, and miniaturizing an NC unit. SOLUTION: This numerical control system is provided with a control board 8 for inputting data and displaying the data, an NC unit 1 for operating numerical arithmetic operation based on the data inputted from the control board 8 and generating control data, and controllers 2, 3 and 4 for controlling a machine tool based on the control data generated by the NC unit 1. In this system, the control board 8, the NC unit 1, and the controllers 2, 3 and 4 are respectively provided with a communication interface, and those communication interfaces are serially connected through transmission paths 41, 42, 43, 44 and 45, and the same data are allowed to flow on the transmission paths so that the transmission and reception of data among the control board 8, the NC unit 1, and the controllers 2, 3 and 4 can be realized.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は数値制御(Num
erical Control;以下NCという)シス
テムに関するもので、特に、数値制御演算を行なうNC
ユニットと、このNCユニットにデータの入出力を行な
う操作ボードやこのNCユニットによって制御される工
作機械等の外部機器との接続性に優れたNCシステムに
関するものである。
The present invention relates to a numerical control (Num).
The present invention relates to an electronic control (hereinafter referred to as NC) system, and particularly to an NC which performs numerical control operation
The present invention relates to an NC system having excellent connectivity between a unit, an operation board for inputting / outputting data to / from the NC unit, and an external device such as a machine tool controlled by the NC unit.

【0002】[0002]

【従来の技術】図9は、従来のNCシステムの全体構成
を表すシステムブロック図であり、図において、1は数
値制御演算を行なうNCユニット、2、3および4は、
それぞれ、例えば、工作機械に取り付けられたサーボモ
ータ(図示せず)および主軸モータ(図示せず)をNC
ユニット1から送出されたデータに基いて駆動、制御す
るサーボアンプおよび主軸アンプ、5は手動パルス生成
ダイヤル(図示せず)やXY軸移動ボタン(図示せず)
等の外部入出力装置が接続され、NCユニット1との間
でデータの入出力を行なうリモートI/O(Remot
e Input/Output;以下RIOという)、
6はNCユニット1に加工データや各種加工指令を入力
するキーボード、7はNCユニット1を含むこのNCシ
ステム全体の状態やキーボード6から入力されたデータ
等を表示する表示器であり、NCユニット1は、それぞ
れ、コネクタ25およびシリアルペアケーブル35を介
してRIO5に、コネクタ26およびキースキャン信号
ケーブル36を介してキーボード6に、コネクタ27お
よび表示信号ケーブル37を介して表示器7と接続され
ている。また、サーボアンプ2、3および主軸アンプ4
は、コネクタ24とシリアルペアケーブル32、シリア
ルペアケーブル33およびシリアルペアケーブル34を
介して、NCユニット1にディジーチェーン接続されて
いる。
2. Description of the Related Art FIG. 9 is a system block diagram showing an entire configuration of a conventional NC system. In FIG. 9, reference numeral 1 denotes an NC unit for performing numerical control operation,
For example, a servo motor (not shown) and a spindle motor (not shown) attached to a machine
Servo amplifier and spindle amplifier, which are driven and controlled based on the data sent from the unit 1, are a manual pulse generation dial (not shown) and XY axis movement buttons (not shown)
An external input / output device such as a remote I / O (Remote I / O) for inputting / outputting data to / from the NC unit 1 is connected.
e Input / Output; hereinafter referred to as RIO),
Reference numeral 6 denotes a keyboard for inputting processing data and various processing commands to the NC unit 1. Reference numeral 7 denotes a display for displaying the state of the entire NC system including the NC unit 1, data input from the keyboard 6, and the like. Are connected to the RIO 5 via the connector 25 and the serial pair cable 35, to the keyboard 6 via the connector 26 and the key scan signal cable 36, and to the display 7 via the connector 27 and the display signal cable 37, respectively. . The servo amplifiers 2 and 3 and the spindle amplifier 4
Are daisy-chain connected to the NC unit 1 via the connector 24 and a serial pair cable 32, a serial pair cable 33 and a serial pair cable 34.

【0003】図10には、この従来のNCユニット1の
詳細な内部構成図を示す。図において、10は数値演算
を行なうCPU、11はCPU10に接続されたデータ
バスであり、このデータバス11を介して、NCシステ
ムの制御ソフトウェアを内蔵するROM(Read O
nly Memory)12、CPU10のワークエリ
アとなるRAM(Random Access Mem
ory)13、サーボアンプ2、3および主軸アンプ4
とのデータ通信を制御するサーボ通信インターフェース
14、RIO5とのデータ通信を制御するRIOインタ
ーフェース15、キーボード6とのデータの入出力を制
御するキーボードコントローラ16、表示器7とのデー
タの入出力を制御する表示器コントローラ17が、CP
U10に接続されている。なお、上記したように、サー
ボ通信インターフェース14、RIOインターフェース
15、キーボードコントローラ16および表示器コント
ローラ17には、各通信用ケーブルと接続するためのコ
ネクタ24、25、26、27が接続されている。
FIG. 10 shows a detailed internal configuration diagram of this conventional NC unit 1. As shown in FIG. In the figure, reference numeral 10 denotes a CPU for performing a numerical operation, and 11 denotes a data bus connected to the CPU 10. Via this data bus 11, a ROM (Read O / O) incorporating control software for the NC system is provided.
nly Memory) 12 and a random access memory (RAM) serving as a work area for the CPU 10.
ory) 13, servo amplifiers 2, 3 and spindle amplifier 4
A servo communication interface 14 for controlling data communication with the RIO 5, a RIO interface 15 for controlling data communication with the RIO 5, a keyboard controller 16 for controlling data input / output with the keyboard 6, and a data input / output with the display 7. The display controller 17 that performs
It is connected to U10. As described above, the connectors 24, 25, 26, and 27 for connecting to the communication cables are connected to the servo communication interface 14, the RIO interface 15, the keyboard controller 16, and the display controller 17, respectively.

【0004】以下、この従来のNCシステムの動作につ
いて説明する。キーボード6からキースキャン信号ケー
ブル36およびキーボードコントローラ16を介して加
工データや加工指令がNCユニット1に入力されると、
NCユニット1のCPU10はこれらのデータおよび指
令を演算処理し、所定の加工を行なうために必要な制御
データを生成して、サーボ通信インターフェース14、
コネクタ24、シリアルペアケーブル32、シリアルペ
アケーブル33およびシリアルペアケーブル34を介し
て、サーボアンプ2、3および主軸アンプ4に送出す
る。一方、ディジーチェーン接続されたサーボアンプ
2、3および主軸アンプ4では、この制御データに基い
てサーボモータおよび主軸モータが駆動、制御され、加
工が行われる。また、この間、キーボード6から入力さ
れたデータやサーボアンプ2、3および主軸アンプ4等
から収集された工作機械の状態が、表示器コントローラ
17、コネクタ27および表示信号ケーブル37を介し
て表示器7に送出、表示され、入力データやNCシステ
ムの状態が確認される。さらに、RIO5に接続された
各種外部入出力装置は、必要に応じてRIO5およびR
IOインターフェース15を介してCPU10との間で
データの入出力を行う。なお、上記の各動作において、
CPU10はRAM13をワークエリアとして使用しつ
つ、ROM12内に記憶された制御ソフトウェアに従っ
て加工データや加工指令の演算処理を行なうとともに、
データバス11を介して各インターフェースとの間でこ
れらのデータの入出力を制御する。
[0004] The operation of the conventional NC system will be described below. When processing data or a processing command is input to the NC unit 1 from the keyboard 6 via the key scan signal cable 36 and the keyboard controller 16,
The CPU 10 of the NC unit 1 arithmetically processes these data and commands, generates control data necessary for performing predetermined processing, and generates
The signals are transmitted to the servo amplifiers 2 and 3 and the spindle amplifier 4 via the connector 24, the serial pair cable 32, the serial pair cable 33 and the serial pair cable 34. On the other hand, in the servo amplifiers 2 and 3 and the spindle amplifier 4 connected in a daisy chain, the servo motor and the spindle motor are driven and controlled based on the control data to perform machining. During this time, the data inputted from the keyboard 6 and the state of the machine tool collected from the servo amplifiers 2 and 3 and the spindle amplifier 4 are displayed on the display 7 via the display controller 17, the connector 27 and the display signal cable 37. Is transmitted and displayed, and input data and the state of the NC system are confirmed. Further, various external input / output devices connected to the RIO 5 may be connected to the RIO 5 and R
Data is input / output to / from the CPU 10 via the IO interface 15. In each of the above operations,
While using the RAM 13 as a work area, the CPU 10 performs processing of processing data and processing instructions in accordance with control software stored in the ROM 12, and
The input / output of these data to / from each interface via the data bus 11 is controlled.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記図
9および図10に示した従来のNCシステムにおいて
は、NCユニット1を各機器間の通信のマスタとして設
定し、サーボアンプ2、3と主軸アンプ4、RIO5、
キーボード6および表示器7等の外部機器をこのNCユ
ニット1に並列(NCユニット1を中心とする星型)に
接続していたため、NCユニット1と外部機器との接続
に必要なコネクタや通信ケーブルの数が、接続される機
器の数に比例して増加し、コネクタの取り付けにスペー
スを取られる他、通信ケーブルの配線が複雑になるとい
った問題点があった。特に、近年はNCユニット1の小
型化のため、コネクタを実装するスペースを確保するの
が困難な状況にあり、コネクタ数およびケーブル配線数
の削減が重要な課題となっていた。
However, in the conventional NC system shown in FIGS. 9 and 10, the NC unit 1 is set as a master for communication between the devices, and the servo amplifiers 2, 3 and the spindle amplifier are set. 4, RIO5,
Since external devices such as the keyboard 6 and the display 7 are connected in parallel to the NC unit 1 (star-shaped centering on the NC unit 1), connectors and communication cables required for connection between the NC unit 1 and the external device are provided. The number of devices increases in proportion to the number of devices to be connected, so that there is a problem that a space is required for mounting a connector and that wiring of a communication cable becomes complicated. In particular, in recent years, it has been difficult to secure a space for mounting a connector due to the miniaturization of the NC unit 1, and reducing the number of connectors and the number of cable wirings has become an important issue.

【0006】また、全ての外部機器がNCユニット1を
介して相互に接続され、NCユニット1のみをマスタと
して通信を行なうよう構成されているため、外部機器が
スレーブとしてしか動作せず、例えば、保守等でNCユ
ニット1の電源を入れられない場合には、キーボード6
からサーボアンプ2、3のパラメータを設定したり、確
認あるいは変更することができないといった問題点があ
った。
Further, since all the external devices are connected to each other via the NC unit 1 and are configured to perform communication using only the NC unit 1 as a master, the external devices operate only as slaves. If the power of the NC unit 1 cannot be turned on for maintenance, etc., the keyboard 6
Therefore, there is a problem that the parameters of the servo amplifiers 2 and 3 cannot be set, confirmed or changed.

【0007】この発明は、従来装置の上記のような問題
点を解消するためになされたもので、この発明の第1の
目的は、外部機器との接続に必要なコネクタやケーブル
配線の数を削減でき、NCユニットの小型化およびケー
ブル配線の簡素化が可能なNCシステムを得ることを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the conventional apparatus, and a first object of the present invention is to reduce the number of connectors and cable wires required for connection with an external device. It is an object of the present invention to provide an NC system that can reduce the size of the NC unit and reduce the size of the NC unit and simplify the cable wiring.

【0008】また、この発明の第2の目的は、NCユニ
ットの電源がOFFの状態にあっても、キーボード6か
らサーボアンプ2、3等に対するパラメータの設定や確
認あるいは変更が可能なNCシステムを得ることを目的
とする。
A second object of the present invention is to provide an NC system capable of setting, checking, or changing parameters for the servo amplifiers 2, 3 and the like from the keyboard 6 even when the power supply of the NC unit is OFF. The purpose is to gain.

【0009】[0009]

【課題を解決するための手段】この発明に係るNCシス
テムは、上記の目的を達成するために、データを入力す
るデータ入力装置と、前記データ入力装置によって入力
されたデータを表示する表示装置と、前記データ入力装
置によって入力されたデータに基いて数値演算を行ない
制御データを生成するNCユニットと、前記NCユニッ
トによって生成された制御データに基いて工作機械を制
御する制御装置とを備えた数値制御システムにおいて、
前記データ入力装置、前記表示装置、前記NCユニット
および前記制御装置のそれぞれに通信インターフェース
を設けるとともに、これらの通信インターフェースを伝
送路によって直列に接続し、前記伝送路上に同一のデー
タを流すことにより、前記データ入力装置、前記表示装
置、前記NCユニットおよび前記制御装置間でデータの
送受信を行なうよう構成したものである。
To achieve the above object, an NC system according to the present invention comprises a data input device for inputting data, and a display device for displaying data input by the data input device. A numerical unit comprising: an NC unit that performs numerical operation based on data input by the data input device to generate control data; and a control device that controls a machine tool based on the control data generated by the NC unit. In the control system,
By providing a communication interface to each of the data input device, the display device, the NC unit, and the control device, connecting these communication interfaces in series by a transmission line, and flowing the same data on the transmission line, The data input device, the display device, the NC unit, and the control device are configured to transmit and receive data.

【0010】また、この発明に係るNCシステムは、デ
ータを入力するデータ入力装置およびこのデータ入力装
置によって入力されたデータを表示する表示装置を備え
た操作ボードと、前記操作ボードによって入力されたデ
ータに基いて数値演算を行ない制御データを生成するN
Cユニットと、前記NCユニットによって生成された制
御データに基いて工作機械を制御する制御装置とを備え
た数値制御システムにおいて、前記操作ボード、前記N
Cユニットおよび前記制御装置のそれぞれに通信インタ
ーフェースを設けるとともに、これらの通信インターフ
ェースを伝送路によって直列に接続し、前記伝送路上に
同一のデータを流すことにより、前記操作ボード、前記
NCユニットおよび前記制御装置間でデータの送受信を
行なうよう構成したものである。
[0010] An NC system according to the present invention comprises an operation board provided with a data input device for inputting data, a display device for displaying data input by the data input device, and a data input device. N that performs numerical operation based on
A numerical control system comprising a C unit and a control device for controlling a machine tool based on control data generated by the NC unit;
A communication interface is provided for each of the C unit and the control device, and these communication interfaces are connected in series by a transmission line, and the same data is flowed on the transmission line, whereby the operation board, the NC unit and the control unit are controlled. It is configured to transmit and receive data between devices.

【0011】また、この発明に係るNCシステムは、前
記NCユニット以外の少なくともひとつの装置が、前記
伝送路上に各機器間の通信の同期を取るための同期デー
タを出力する同期信号出力手段を備えたものである。
Further, the NC system according to the present invention has at least one device other than the NC unit provided with a synchronizing signal output means for outputting synchronizing data for synchronizing communication between devices on the transmission path. It is a thing.

【0012】また、この発明に係るNCシステムは、前
記操作ボードが、前記伝送路上に各機器間の通信の同期
を取るための同期データを出力する同期信号出力手段を
備えたものである。
Further, in the NC system according to the present invention, the operation board includes synchronization signal output means for outputting synchronization data for synchronizing communication between devices on the transmission path.

【0013】また、この発明に係るNCシステムは、前
記NCユニットおよび前記操作ボードに、前記伝送路上
に各機器間の通信の同期を取るための同期データを出力
する同期信号出力手段を備えるとともに、前記操作ボー
ドに経過時間を計測するタイマーを備え、前記操作ボー
ドの起動後、所定時間内に前記NCユニットの同期信号
出力手段から同期データの出力がない場合に、前記操作
ボードの同期信号出力手段から同期データを出力するよ
う構成したものである。
Further, the NC system according to the present invention includes, on the NC unit and the operation board, synchronization signal output means for outputting synchronization data for synchronizing communication between devices on the transmission path, The operation board includes a timer for measuring an elapsed time, and when the operation signal is not output from the synchronization signal output means of the NC unit within a predetermined time after the operation board is started, the synchronization signal output means of the operation board Is configured to output synchronous data from the.

【0014】[0014]

【発明の実施の形態】実施の形態1.図1は、この発明
の実施の形態1であるNCシステムの全体構成を表すブ
ロック構成図であり、図において、1は数値制御演算を
行なうNCユニット、2、3および4は、それぞれ、例
えば、工作機械に取り付けられたサーボモータ(図示せ
ず)および主軸モータ(図示せず)をNCユニット1か
ら送出されたデータに基いて駆動、制御するサーボアン
プおよび主軸アンプ、5は外部入出力装置が接続され、
この外部入出力装置とNCユニット1との間でデータの
入出力を行なうリモートI/O(RIO)、8はNCユ
ニット1に加工データや各種加工指令を入力するキーボ
ード(KB)6とNCユニット1を含むこのNCシステ
ム全体の状態やキーボード6から入力されたデータ等を
表示する表示器7を備えた操作ボードである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiment 1 FIG. 1 is a block diagram showing an entire configuration of an NC system according to a first embodiment of the present invention. In the drawing, reference numeral 1 denotes an NC unit for performing numerical control operation, and 2, 3, and 4, for example, A servo amplifier and a spindle amplifier for driving and controlling a servo motor (not shown) and a spindle motor (not shown) attached to the machine tool based on data sent from the NC unit 1, and an external input / output device 5. Connected
A remote I / O (RIO) 8 for inputting / outputting data between the external input / output device and the NC unit 1, a keyboard (KB) 6 for inputting processing data and various processing commands to the NC unit 1, and an NC unit 1 is an operation board provided with a display 7 for displaying the state of the entire NC system including the data No. 1 and data input from the keyboard 6 and the like.

【0015】また、NCユニット1は、加工データや加
工指令の数値演算を行なうCPU10、CPU10に接
続されたデータバス11、NCシステムの制御ソフトウ
ェアを内蔵し、データバス11を介してCPU10に接
続されたROM(ReadOnly Memory)1
2、データバス11を介してCPU10に接続され、C
PU10のワークエリアとなるRAM(Random
Access Memory)13を備えるとともに、
この実施の形態1の特徴的な構成要素として、外部機器
との間でシリアル通信を行なうための高速HDLC通信
インターフェース9を備えている。
The NC unit 1 incorporates a CPU 10 for performing numerical calculations of machining data and machining commands, a data bus 11 connected to the CPU 10, and control software for the NC system. The NC unit 1 is connected to the CPU 10 via the data bus 11. ROM (Read Only Memory) 1
2. Connected to the CPU 10 via the data bus 11,
RAM (Random) which is the work area of PU10
Access Memory 13
As a characteristic component of the first embodiment, a high-speed HDLC communication interface 9 for performing serial communication with an external device is provided.

【0016】また、サーボアンプ2、3、主軸アンプ
4、RIO5、操作ボード8の各々にも、この高速HD
LC通信インターフェースに対応したシリアル通信イン
ターフェース(図示せず)が備えられており、こうし
て、この高速HDLC通信インターフェース9の一方を
データバス11を介してCPU10に接続するととも
に、他方には、単一のコネクタ29と伝送路である高速
シリアル通信ペアケーブル41、42、43、44、4
5を介して、それぞれ、サーボアンプ2、3、主軸アン
プ4、RIO5および操作ボード8をディジーチェーン
形式でNCユニット1に順次直列に接続することによ
り、NCユニット1、サーボアンプ2、3、主軸アンプ
4、RIO5および操作ボード8間で、同一のデータが
送受信されるよう構成されている。
Each of the servo amplifiers 2 and 3, the spindle amplifier 4, the RIO 5, and the operation board 8 also has the high-speed HD.
A serial communication interface (not shown) corresponding to the LC communication interface is provided. Thus, one of the high-speed HDLC communication interfaces 9 is connected to the CPU 10 via the data bus 11 and the other is a single high-speed HDLC communication interface. High-speed serial communication pair cables 41, 42, 43, 44, 4
5, the servo amplifiers 2, 3, the spindle amplifier 4, the RIO 5, and the operation board 8 are connected in series to the NC unit 1 in a daisy chain format, respectively, so that the NC unit 1, the servo amplifiers 2, 3, the spindle The same data is transmitted and received between the amplifier 4, the RIO 5, and the operation board 8.

【0017】図2には、この実施の形態1における操作
ボード8の詳細な構成を表すブロック図を示す。上記し
たように、この実施の形態1では、NCユニット1に加
工データや各種加工指令を入力するキーボード6とこの
キーボード6を制御するキーボードコントローラ16、
および、NCシステム全体の状態やキーボード6から入
力されたデータ等を表示する表示器7とこの表示器7を
制御する表示器コントローラ17が操作ボード8内に収
納されている。また、キーボード6および表示器7は、
それぞれ、シリアル通信インターフェースとして高速H
DLC通信インターフェースである表示器用HDLC通
信インタフェース18およびキーボード用HDLC通信
インターフェース19を介して、サーボアンプ2、3や
RIO5、NCユニット1の高速HDLC通信インター
フェースに直列に接続されており、こうして、キーボー
ド6および表示器7が、NCユニット1を介しないでサ
ーボアンプ2、3等の各機器と通信を行なうことがで
き、NCユニット1の電源OFF時にも、この操作ボー
ド8が各外部機器との通信のマスタとして動作すること
により、操作ボード8と各機器との間で互いにデータの
送受信が可能となるよう構成されている。
FIG. 2 is a block diagram showing a detailed configuration of the operation board 8 according to the first embodiment. As described above, in the first embodiment, the keyboard 6 for inputting processing data and various processing commands to the NC unit 1, the keyboard controller 16 for controlling the keyboard 6,
A display 7 for displaying the state of the entire NC system, data input from the keyboard 6, and the like, and a display controller 17 for controlling the display 7 are housed in the operation board 8. The keyboard 6 and the display 7 are
High-speed H as serial communication interface
It is connected in series to the high-speed HDLC communication interfaces of the servo amplifiers 2 and 3 and the RIO 5 and the NC unit 1 via the display HDLC communication interface 18 and the keyboard HDLC communication interface 19 which are DLC communication interfaces. And the display 7 can communicate with each device such as the servo amplifiers 2 and 3 without passing through the NC unit 1. Even when the power of the NC unit 1 is turned off, the operation board 8 communicates with each external device. By operating as a master, the operation board 8 and each device can transmit and receive data to and from each other.

【0018】また、この実施の形態1では、手動パルス
生成ダイヤル20とこの手動パルス生成ダイヤル20を
制御するパルスダイヤルコントローラ21、および、X
Y軸移動ボタン22とこのXY軸移動ボタン22を制御
する移動ボタンコントローラ23も操作ボード8内に収
納されており、キーボード用HDLC通信インターフェ
ース19を介して、サーボアンプ2、3やRIO5、N
Cユニット1との間でデータの入出力が可能となるよう
構成されている。なお、キーボードコントローラ16、
パルスダイアルコントローラ21、移動ボタンコントロ
ーラ23およびキーボード用HDLC通信インターフェ
ース19は、全体として、これらの外部入出力装置とN
Cユニット1等との間で高速HDLC通信を行なう機械
入出力インターフェースコントローラ24を構成してい
る。
In the first embodiment, the manual pulse generation dial 20, a pulse dial controller 21 for controlling the manual pulse generation dial 20, and X
A Y-axis movement button 22 and a movement button controller 23 for controlling the XY-axis movement button 22 are also housed in the operation board 8, and the servo amplifiers 2, 3, RIO 5, N
It is configured so that data can be input and output to and from the C unit 1. Note that the keyboard controller 16,
The pulse dial controller 21, the moving button controller 23, and the HDLC communication interface 19 for the keyboard are generally connected
A machine input / output interface controller 24 for performing high-speed HDLC communication with the C unit 1 and the like is configured.

【0019】図3には、この実施の形態1において、高
速シリアル通信ペアケーブル41、42、43、44、
45により、NCユニット1とサーボアンプ2、3や操
作ボード8等の外部機器間で送受信されるデータの構成
例を示す。図に示すように、高速シリアル通信ペアケー
ブル41、42、43、44、45は、外部機器からN
Cユニット1へ入力される方向(以下、上り方向と呼
ぶ)とNCユニット1から外部機器に出力される方向
(以下、下り方向と呼ぶ)の2本の伝送路を有してお
り、それぞれの伝送路で異なったデータが送られる。ま
た、この高速シリアル通信ペアケーブル41、42、4
3、44、45を用いた通信の基本周期は、111μs
であり、上り方向、下り方向とも、基本周期内のデータ
構成が異なる2種類の転送パターンを交互に繰り返すこ
とにより、通信が行われる。
FIG. 3 shows a high-speed serial communication pair cable 41, 42, 43, 44,
Reference numeral 45 indicates a configuration example of data transmitted and received between the NC unit 1 and external devices such as the servo amplifiers 2 and 3 and the operation board 8. As shown in the figure, the high-speed serial communication pair cables 41, 42, 43, 44, 45
It has two transmission paths, a direction input to the C unit 1 (hereinafter referred to as an up direction) and a direction output from the NC unit 1 to an external device (hereinafter referred to as a down direction). Different data is sent on the transmission path. The high-speed serial communication pair cables 41, 42, 4
The basic cycle of communication using 3, 44 and 45 is 111 μs
Communication is performed by alternately repeating two types of transfer patterns having different data structures in the basic period in both the up direction and the down direction.

【0020】まず、下り方向の基本周期のデータ構成は
次の2種類である。すなわち、第1のパターンでは、ま
ず、NCシステムに接続された各機器の通信の同期を取
るため、NCユニット1から各機器に対して同期データ
70が送出され、この同期データ70の立ち上がり時間
によって基本周期の基準点が決定される。こうして、同
期データ70によって各機器の同期が取られると、次
に、NCユニット1からサーボアンプ2、3および主軸
アンプ4に対してデータ71が基本周期の1μs〜35
μsに期間に送出され、続いて、NCユニット1からR
IO5へデータ72が35μs〜69μsに、さらに、
NCユニット1から操作ボード8へデータ73が69μ
s〜111μsの期間に送出される。
First, there are the following two types of data structures of the basic period in the down direction. That is, in the first pattern, first, the synchronization data 70 is transmitted from the NC unit 1 to each device in order to synchronize the communication of each device connected to the NC system. A reference point of the basic cycle is determined. When each device is synchronized with the synchronization data 70 in this manner, the data 71 is transmitted from the NC unit 1 to the servo amplifiers 2 and 3 and the spindle amplifier 4 in the basic period of 1 μs to 35 μs.
μs during the period, followed by NC unit 1
Data 72 to IO5 is 35 μs to 69 μs.
The data 73 is 69μ from the NC unit 1 to the operation board 8.
It is transmitted in a period of s to 111 μs.

【0021】また、第2のパターンは、まず、NCユニ
ット1から同期データ74(1μs)が送出された後、
NCユニット1からサーボアンプ2、3(主軸アンプ4
を含む)へのデータ75(1μs〜35μs)が、続い
てNCユニット1からRIO50へデータ76(35μ
s〜69μs)が、さらに、サーボアンプ2、3(主軸
アンプ4を含む)から操作ボード8へのデータ77(6
9μs〜111μs)が送出される。なお、上記したよ
うに、これらの2つのデータ構成のパターンは交互に生
成され、また、アイドル状態ではアイドル状態を示すデ
ータパターンがNCユニット1から出力される。
The second pattern is as follows. First, after the synchronization data 74 (1 μs) is transmitted from the NC unit 1,
From the NC unit 1 to the servo amplifiers 2 and 3 (spindle amplifier 4
) To the RIO 50 from the NC unit 1 (35 μs).
s to 69 μs) further includes data 77 (6 to 6) from the servo amplifiers 2 and 3 (including the spindle amplifier 4) to the operation board 8.
9 μs to 111 μs). As described above, these two data configuration patterns are generated alternately, and a data pattern indicating the idle state is output from the NC unit 1 in the idle state.

【0022】一方、上り方向の基本周期のデータ構成は
次の2種類となる。すなわち、第1のパターンでは、ま
ず、同期データ用の待機時間(1μs)が確保される。
ここで、NCユニット1が稼動している場合には、この
待機時間中にNCユニット1から各機器に対して前述し
た同期データ70が送出されることにより、各機器の同
期が取られる。また、NCユニット1が稼動しておら
ず、同期データ70が出力されない場合は、NCシステ
ムに接続された各機器の通信の同期を取るため操作ボー
ド8が通信のマスタとなってこの上り方向の同期データ
80を伝送路に送出する。なお、その動作の詳細は後述
する。こうして、同期データ70または80によって各
機器の同期が取られると、次に、サーボアンプ2、3お
よび主軸アンプ4からNCユニット1に対してデータ8
1が基本周期の1μs〜35μsの期間に送出され、続
いて、RIO5からNCユニット1へデータ82が35
μs〜69μsに、さらに、操作ボード8からNCユニ
ット1へデータ83が69μs〜111μsの期間に送
出される。
On the other hand, the data structure of the basic cycle in the upward direction is of the following two types. That is, in the first pattern, first, a standby time (1 μs) for synchronous data is secured.
Here, when the NC unit 1 is operating, the synchronization data 70 is transmitted from the NC unit 1 to each device during the standby time, so that each device is synchronized. When the NC unit 1 is not operating and the synchronization data 70 is not output, the operation board 8 becomes a communication master to synchronize the communication of each device connected to the NC system, and this uplink is used. The synchronous data 80 is transmitted to the transmission path. The details of the operation will be described later. When each device is synchronized by the synchronization data 70 or 80 in this way, next, the servo amplifiers 2 and 3 and the spindle amplifier 4 transmit data 8 to the NC unit 1.
1 is transmitted in the period of 1 μs to 35 μs of the basic cycle, and subsequently, 35 data 82 are sent from the RIO 5 to the NC unit 1.
The data 83 is transmitted from the operation board 8 to the NC unit 1 in the period of 69 μs to 111 μs.

【0023】また、第2のパターンは、同期データ84
に続いてサーボアンプ2、3および主軸アンプ4からN
Cユニット1へのデータ85が1μs〜35μsに、次
にRIO5からNCユニット1へのデータ86が35μ
s〜69μsに、さらに、操作ボード8からサーボアン
プ2、3(主軸アンプ4を含む)へのデータ87が69
μs〜111μsの期間に送出される。なお、下り方向
と同様に、これらの2つのデータ構成のパターンは交互
に生成され、また、基本周期中にこれらのデータが送出
されていない時にはアイドル状態を表すデータパターン
が操作ボード8から出力される。
The second pattern is the synchronous data 84
Then, the servo amplifiers 2 and 3 and the spindle amplifier 4
The data 85 to the C unit 1 is 1 μs to 35 μs, and the data 86 from the RIO 5 to the NC unit 1 is 35 μs.
s to 69 μs, and data 87 from the operation board 8 to the servo amplifiers 2 and 3 (including the spindle amplifier 4)
It is sent in a period of μs to 111 μs. As in the case of the downward direction, these two data configuration patterns are generated alternately, and when these data are not transmitted during the basic cycle, a data pattern indicating an idle state is output from the operation board 8. You.

【0024】なお、NCユニット1とサーボアンプ2、
3および主軸アンプ4間で送受信されるデータ71、7
5、81、85の具体的な例としては、工具やワークの
座標、目的とする移動速度などの制御情報、アラーム等
のステータス情報およびサーボアンプ2、3および主軸
アンプ4のパラメータなどがある。また、NCユニット
1と操作ボード8およびRIO5との間で送受信される
データ72、73、76、82、83、86としては、
機械接点情報等がある。さらに、操作ボード8とサーボ
アンプ2、3および主軸アンプ4間では、サーボアンプ
2、3および主軸アンプ4のパラメータやアラーム等の
ステータス情報がデータ77、87により送受信され
る。
Note that the NC unit 1 and the servo amplifier 2
3 and data 71 and 7 transmitted and received between the spindle amplifier 4
Specific examples of 5, 81, 85 include control information such as coordinates of a tool or a work, a target moving speed, status information such as an alarm, and parameters of the servo amplifiers 2 and 3 and the spindle amplifier 4. The data 72, 73, 76, 82, 83, and 86 transmitted and received between the NC unit 1 and the operation board 8 and the RIO 5 include:
There is mechanical contact information and the like. Further, status information such as parameters and alarms of the servo amplifiers 2 and 3 and the spindle amplifier 4 is transmitted and received between the operation board 8 and the servo amplifiers 2 and 3 and the spindle amplifier 4 by data 77 and 87.

【0025】また、NCユニット1、サーボアンプ2、
3、主軸アンプ4、RIO5および操作ボード8間のデ
ータの送受信は、基本的に、HDLC手順による通信を
用いており、例えば、キーボード6からキーボード用H
DLC通信インターフェース19を介してNCユニット
1へ、「現在実行中の加工プログラムを表示せよ」とい
った表示指令をパケット83で送ると、この要求に対す
るデータ(加工プログラム)がパケット73によって一
定バイトづつNCユニット1から操作ボード8に送ら
れ、表示器用HDLC通信インターフェース18を介し
て表示器7によって表示される。また、例えば、操作ボ
ード8からサーボアンプ2、3や主軸アンプ4に対し
て、パラメータ等を要求する指令をパケット87で送る
と、その要求を満たすデータ77がサーボアンプ2、3
および主軸アンプ4から操作ボード8へと出力される。
Further, an NC unit 1, a servo amplifier 2,
3. Transmission and reception of data between the spindle amplifier 4, the RIO 5, and the operation board 8 basically use communication according to the HDLC procedure.
When a display command such as "display the currently executed machining program" is sent to the NC unit 1 via the DLC communication interface 19 in the packet 83, the data (machining program) corresponding to this request is sent by the packet 73 to the NC unit 1 in fixed bytes. 1 is sent to the operation board 8 and displayed on the display 7 via the HDLC communication interface 18 for the display. For example, when a command requesting parameters and the like is sent from the operation board 8 to the servo amplifiers 2 and 3 and the spindle amplifier 4 in a packet 87, data 77 satisfying the request is transmitted to the servo amplifiers 2 and 3.
And output from the spindle amplifier 4 to the operation board 8.

【0026】図4には、NCユニット1と各外部機器間
で送受信される同期データ以外のデータ(71、72、
73、75、76、77、81、82、83、85、8
6、87)のデータ構造を示す。図に示すように、各デ
ータは、開始フラグ91、局アドレス92、送信データ
93、CRC(Cyclic Redundancy Check:巡回冗長検
査)94、終了フラグ95の順番でデータが構成されて
おり、受信側の高速HDLC通信インタフェースは、局
アドレス92を読み取ってそれが自分に一致している場
合に、自分宛てのデータと判断して続きの送信データ9
3、CRC94および終了フラグ95を受信し、一致し
ない場合は、自分宛てではないものと判断し、次の開始
フラグ91を受信するまで待機する。例えば、サーボア
ンプ2の局アドレスがFF00で、データ中の局アドレ
ス92がFF00であれば、サーボアンプ2は局アドレ
ス92に続くデータ93〜95を受信した後メモリに取
り込み、局アドレス92がFF00以外であれば次の開
始フラグ91を待つ。なお、それぞれの機器には、予め
固有の局アドレスを設定しておく。
FIG. 4 shows data (71, 72,...) Other than synchronous data transmitted and received between the NC unit 1 and each external device.
73, 75, 76, 77, 81, 82, 83, 85, 8
6, 87). As shown in the figure, each data is composed of a start flag 91, a station address 92, transmission data 93, a CRC (Cyclic Redundancy Check) 94, and an end flag 95 in this order. The high-speed HDLC communication interface reads the station address 92, and if it matches with itself, determines that it is the data addressed to itself and continues the transmission data 9
3. When the CRC 94 and the end flag 95 are received and they do not match, it is determined that the message is not addressed to itself, and the process waits until the next start flag 91 is received. For example, if the station address of the servo amplifier 2 is FF00 and the station address 92 in the data is FF00, the servo amplifier 2 receives the data 93 to 95 subsequent to the station address 92, loads the data 93 to 95 into the memory, and sets the station address 92 to FF00. If not, it waits for the next start flag 91. A unique station address is set in advance for each device.

【0027】以下では、上記図3、図4および図5を用
いてこの実施の形態1の動作について説明する。なお、
図5は、NCユニット1、操作ボード8、サーボアンプ
2、3(主軸アンプ4を含む)およびRIO5の動作の
流れを示したフローチャートであり、上記図3に示した
データ構成の第1のパターンと第2のパターンは送受信
されるデータ内容が異なるのみで、動作としては同一で
あるため、以下では最初の基本周期(111μs)間の
動作を中心に説明する。
The operation of the first embodiment will be described below with reference to FIGS. 3, 4, and 5. In addition,
FIG. 5 is a flowchart showing the operation flow of the NC unit 1, the operation board 8, the servo amplifiers 2, 3 (including the spindle amplifier 4), and the RIO 5, and the first pattern of the data configuration shown in FIG. The second and third patterns are different in only the data content to be transmitted and received, and have the same operation. Therefore, the following description focuses on the operation during the first basic period (111 μs).

【0028】まず、NCユニット1の動作について説明
する。ステップS101において、NCユニット1の電
源がONされると、ステップS102およびステップS
103で高速HDLC通信インターフェース9に内蔵さ
れた基本周期をカウントするタイマーがONおよびリセ
ットされ、ステップS104でNCユニット1の高速H
DLC通信インターフェース9から操作ボード8、サー
ボアンプ2、3、主軸アンプ4およびRIO5に対して
同期データ70が生成、出力される。こうして、同期デ
ータ70がタイマーのリセット後1μs内に出力され、
NCユニット1、サーボアンプ2、3、主軸アンプ4、
RIO5および操作ボード8の同期が取られると、ステ
ップS105で各機器に内蔵されたタイマーによって経
過時間が監視され、1μs後にステップS106に移行
してNCユニット1とサーボアンプ2、3(主軸アンプ
4を含む)間でデータ71、81(第1のパターンの場
合)または75、85(第2のパターンの場合)が送受
信される。
First, the operation of the NC unit 1 will be described. In step S101, when the power supply of the NC unit 1 is turned on, steps S102 and S
At 103, the timer for counting the basic period built in the high-speed HDLC communication interface 9 is turned on and reset, and at step S104, the high-speed H of the NC unit 1 is turned on.
Synchronous data 70 is generated and output from the DLC communication interface 9 to the operation board 8, the servo amplifiers 2, 3, the spindle amplifier 4, and the RIO 5. Thus, the synchronization data 70 is output within 1 μs after resetting the timer,
NC unit 1, servo amplifiers 2, 3, spindle amplifier 4,
When the RIO 5 and the operation board 8 are synchronized, the elapsed time is monitored by a timer built in each device in step S105, and after 1 μs, the process proceeds to step S106, where the NC unit 1 and the servo amplifiers 2, 3 (the spindle amplifier 4) are operated. ), And data 71 and 81 (in the case of the first pattern) or 75 and 85 (in the case of the second pattern).

【0029】次に、このNCユニット1とサーボアンプ
2、3間のデータの送受信が1μs〜35μsの間に完
了すると、ステップS107で経過時間が監視され、3
5μs後にステップS108に移行して、35μs〜6
9μs間にNCユニット1とRIO5間でデータ72、
82または76、86が送受信される。同様に、ステッ
プS109で経過時間が監視され69μsが経過する
と、ステップS110では、NCユニット1と操作ボー
ド8間でデータ73、83が送受信され、ステップS1
11でタイマーの経過時間が基本周期である111μs
を経過した時点で、基本周期の開始点であるステップS
103に戻ることにより、次の基本周期に移行し、以下
同様に、この基本周期の動作が繰り返される。なお、こ
のNCユニット1と操作ボード8間でのデータ73、8
3の送受信は図3に示したように、2基本周期毎に1回
だけ通信される。
Next, when the data transmission / reception between the NC unit 1 and the servo amplifiers 2 and 3 is completed within 1 μs to 35 μs, the elapsed time is monitored in step S107, and
After 5 μs, the process proceeds to step S108, where 35 μs to 6
Data 72 between NC unit 1 and RIO5 in 9 μs,
82 or 76, 86 are transmitted and received. Similarly, when the elapsed time is monitored in step S109 and 69 μs has elapsed, in step S110, the data 73 and 83 are transmitted and received between the NC unit 1 and the operation board 8, and in step S1
At 11, the elapsed time of the timer is 111 μs, which is the basic cycle.
At the point when step S
By returning to 103, the process moves to the next basic cycle, and thereafter, the operation of this basic cycle is repeated. The data 73, 8 between the NC unit 1 and the operation board 8
The transmission / reception of No. 3 is performed only once every two basic periods as shown in FIG.

【0030】次に、操作ボード8の動作について説明す
る。ステップS201において電源がONされると、操
作ボード8は、ステップS202およびステップS20
3において、各高速HDLC通信インターフェースに内
蔵されたタイマーをONおよびリセットし、ステップS
204でタイマーの経過時間が計測される。そして、経
過時間が1μs以下の場合には、ステップS205に移
行し、NCユニット1からの同期データ70の受信待機
状態となり、同期データ70が下り方向の伝送路におい
て受信されるとステップS206に移行してNCユニッ
ト1から出力された同期データ70によって各タイマー
がリセットされ、NCユニット1と操作ボード8の同期
が取られる。また、ステップS205で同期データ70
が受信されない場合、ステップS204に戻り、ステッ
プS204とステップS205を繰り返すことにより経
過時間が1μsになるまでNCユニット1から同期デー
タ70が出力された否かが監視される。
Next, the operation of the operation board 8 will be described. When the power is turned on in step S201, the operation board 8 performs steps S202 and S20.
In step 3, the timer built in each high-speed HDLC communication interface is turned on and reset, and step S
At 204, the elapsed time of the timer is measured. If the elapsed time is 1 μs or less, the process shifts to step S205, and waits for reception of the synchronization data 70 from the NC unit 1. When the synchronization data 70 is received on the downlink transmission path, shifts to step S206. Then, each timer is reset by the synchronization data 70 output from the NC unit 1, and the NC unit 1 and the operation board 8 are synchronized. Also, in step S205, the synchronization data 70
Is not received, the process returns to step S204, and by repeating steps S204 and S205, it is monitored whether or not the synchronization data 70 is output from the NC unit 1 until the elapsed time reaches 1 μs.

【0031】ここで、例えば、NCユニット1の電源が
OFF状態にある場合等で、NCユニット1から同期デ
ータ70が出力されない場合、ステップ205の判定結
果は常に「N」となるため、この結果、経過時間が1μ
sになった時点でステップS204の判定結果が「Y」
となって、ステップS207に移行する。この場合、N
Cユニット1からは同期データ70が出力されないた
め、操作ボード8がマスタとなって、通信の同期を取る
必要があり、操作ボード8は、ステップS207におい
て、例えば、キーボード用HDLC通信インターフェー
ス19のタイマーをリセットするとともに、ステップS
208において各機器を同期させるための同期データ8
0をキーボード用HDLC通信インターフェース19か
ら上り方向の伝送路に出力する。
Here, for example, when the synchronization data 70 is not output from the NC unit 1 such as when the power of the NC unit 1 is in the OFF state, the determination result of step 205 is always "N". , Elapsed time 1μ
s, the result of the determination in step S204 is “Y”
Then, the process proceeds to step S207. In this case, N
Since the synchronization data 70 is not output from the C unit 1, it is necessary to synchronize the communication with the operation board 8 acting as a master. In step S207, the operation board 8 executes, for example, the timer of the HDLC communication interface 19 for the keyboard. Is reset and step S
Synchronization data 8 for synchronizing each device at 208
0 is output from the keyboard HDLC communication interface 19 to the upstream transmission path.

【0032】こうして、NCユニット1が動作している
場合には、ステップS206によってNCユニット1の
タイマーと操作ボード8のタイマーが同期され、NCユ
ニット1が動作していない場合には、ステップ208に
おいて操作ボード8が同期データ80を出力することに
より、ステップS207によってリセットされた操作ボ
ード8のタイマーと各機器のタイマーが同期される。す
なわち、NCユニット1の通信機能が動作している場合
には、NCユニット1の同期データ70によって、ま
た、NCユニット1の通信機能が動作していない場合に
は、操作ボード8から出力された同期データ80を基準
として全機器の同期が取られる。
As described above, when the NC unit 1 is operating, the timer of the NC unit 1 is synchronized with the timer of the operation board 8 in step S206, and when the NC unit 1 is not operating, in step 208 When the operation board 8 outputs the synchronization data 80, the timer of the operation board 8 reset in step S207 and the timer of each device are synchronized. That is, when the communication function of the NC unit 1 is operating, it is output from the synchronization data 70 of the NC unit 1, and when the communication function of the NC unit 1 is not operating, it is output from the operation board 8. All devices are synchronized based on the synchronization data 80.

【0033】上記ステップS206またはステップS2
08において、NCユニット1と操作ボード8の同期が
取られると、ステップS209では、この基準時間に基
いてタイマーの経過時間が計測され、69μsとなった
時点でステップS210に移行して、NCユニット1と
操作ボード8間でデータ73、83(第1のパターンの
場合)が、また、操作ボード8とサーボアンプ2、3お
よび主軸アンプ4間でデータ77、87(第2のパター
ンの場合)が送受信される。そして、これらのデータの
送受信が完了すると、ステップS211で基本周期の完
了が監視され、111μs経過した時点でステップS2
03に戻ることにより、新しい基本周期に移行する。
The above step S206 or step S2
In step 08, when the NC unit 1 and the operation board 8 are synchronized, in step S209, the elapsed time of the timer is measured based on the reference time. 1 and the operation board 8, data 73 and 83 (in the case of the first pattern), and between the operation board 8 and the servo amplifiers 2 and 3 and the spindle amplifier 4, data 77 and 87 (in the case of the second pattern) Is transmitted and received. When the transmission and reception of the data are completed, the completion of the basic cycle is monitored in step S211.
By returning to 03, a new basic cycle is started.

【0034】次に、サーボアンプ2、3、主軸アンプ4
およびRIO5の動作について説明する。ステップS3
01において電源がONされると、サーボアンプ2、
3、主軸アンプ4およびRIO5は、ステップS302
において、それぞれ、内蔵されたタイマーをONする。
そして、ステップS303で同期データの受信が上り方
向および下り方向の両伝送路上で監視され、NCユニッ
ト1が稼動している場合はNCユニット1からの同期デ
ータ70(下り方向の伝送路)を、また、NCユニット
1が動作していない場合は操作ボード8から出力される
同期データ80(上り方向の伝送路)を受信した段階
で、ステップS304に移行し、各機器内、例えば、各
高速HDLC通信インターフェース内のタイマーをリセ
ットすることによりNCユニット1および操作ボード8
の動作と同期が取られる。
Next, the servo amplifiers 2 and 3 and the spindle amplifier 4
And the operation of RIO5 will be described. Step S3
01, when the power is turned on, the servo amplifier 2,
3. The spindle amplifier 4 and the RIO 5 execute Step S302
, The built-in timer is turned on.
Then, in step S303, the reception of the synchronization data is monitored on both the upstream and downstream transmission paths, and when the NC unit 1 is operating, the synchronization data 70 (downstream transmission path) from the NC unit 1 is transmitted. If the NC unit 1 is not operating, the process proceeds to step S304 when the synchronization data 80 (upstream transmission path) output from the operation board 8 is received. The NC unit 1 and the operation board 8 are reset by resetting the timer in the communication interface.
Operation is synchronized.

【0035】また、ステップS305ではタイマーによ
って経過時間が監視され、1μs経過した時点でステッ
プS306に移行し、1μs〜35μsの間にサーボア
ンプ2、3とNCユニット1間でデータ71、81、7
5、85が送受信される。次に、ステップS307で経
過時間が35μs経過するとステップS308に移行
し、35μs〜69μs間にRIO5とNCユニット1
間でデータ72、82、76、86が送受信され、さら
に、ステップS309で経過時間が69μsになるとス
テップS310に移行し、サーボアンプ2、3と操作ボ
ード8間でデータ77、87が送受信される。なお、こ
のサーボアンプ2、3とRIO5に内蔵されたタイマー
は、基本周期111μsまでカウントアップするとステ
ップS303で同期データを受信し、ステップS304
でリセットされるまでその値を保持する。また、データ
77、87の送受信は、図3に示したように、第2のパ
ターンにおいてのみ行われる。
In step S305, the elapsed time is monitored by a timer. When 1 μs elapses, the process proceeds to step S306, and data 71, 81, and 7 are transmitted between the servo amplifiers 2 and 3 and the NC unit 1 during 1 μs to 35 μs.
5, 85 are transmitted and received. Next, when 35 μs has elapsed in step S307, the process proceeds to step S308, and the RIO5 and the NC unit 1 are moved between 35 μs and 69 μs.
The data 72, 82, 76, and 86 are transmitted and received between them, and when the elapsed time reaches 69 μs in step S309, the process proceeds to step S310, where the data 77 and 87 are transmitted and received between the servo amplifiers 2 and 3 and the operation board 8. . When the timers built in the servo amplifiers 2 and 3 and the RIO 5 count up to the basic period of 111 μs, the synchronous data is received in step S303, and step S304 is performed.
Holds that value until reset by. The transmission and reception of the data 77 and 87 are performed only in the second pattern as shown in FIG.

【0036】図6および図7には、それぞれ、NCユニ
ット1の通信機能が停止している場合の、この実施の形
態1の動作を表すフローチャートと送受信されるデータ
の構成を示す。図において、破線部はそのような動作や
データの送受信が行われないことを表している。図6に
示すようにNCユニット1の通信機能が停止している場
合、NCデータ1から同期データ70が出力されないた
め、操作ボード8は、ステップS204においてNCユ
ニット1のOFF状態を検知すると、ステップS207
およびステップS208に移行し、各機器に同期データ
80を出力することにより、NCユニット1に替ってマ
スタとして機能するようになる。
FIGS. 6 and 7 are a flowchart showing the operation of the first embodiment when the communication function of the NC unit 1 is stopped, and the structure of data transmitted and received, respectively. In the figure, the broken line indicates that such an operation or data transmission / reception is not performed. When the communication function of the NC unit 1 is stopped as shown in FIG. 6, since the synchronization data 70 is not output from the NC data 1, the operation board 8 detects the OFF state of the NC unit 1 in step S204. S207
Then, the process proceeds to step S208 to output the synchronization data 80 to each device, thereby functioning as a master instead of the NC unit 1.

【0037】また、図7に示すように、NCユニット1
の通信機能が停止している場合、下り方向のデータ70
〜76はNCユニット1から各機器に向けて出力され
ず、サーボアンプ2、3から操作ボード8に出力される
データ77のみが下り方向の伝送路を使用して送信され
る。
As shown in FIG. 7, the NC unit 1
If the communication function is stopped, the downlink data 70
No. to 76 are not output from the NC unit 1 to each device, and only the data 77 output from the servo amplifiers 2 and 3 to the operation board 8 is transmitted using the downstream transmission path.

【0038】以上、この実施の形態1によれば、NCユ
ニット1、サーボアンプ2、3、主軸アンプ4、RIO
5および操作ボード8にシリアル通信インターフェース
を設けるとともに、これらのシリアル通信インターフェ
ースを高速シリアル通信ペアケーブル41、42、4
3、44、45によってディジーチェーン形式で直列に
接続することにより各機器間のデータの送受信を行なう
よう構成したため、周辺装置とのデータの伝送路を単一
の通信配線にまとめることができ、NCユニット1に接
続される配線の数およびコネクタ数を削減することが可
能となって、NCユニット1の小型化と省配線を実現す
ることができる。
As described above, according to the first embodiment, the NC unit 1, the servo amplifiers 2, 3, the spindle amplifier 4, the RIO
5 and operation board 8 are provided with serial communication interfaces, and these serial communication interfaces are connected to high-speed serial communication pair cables 41, 42, 4
Since data is transmitted and received between the devices by connecting them in series in a daisy-chain manner by means of 3, 44, and 45, the data transmission path with the peripheral device can be integrated into a single communication line. The number of wirings and the number of connectors connected to the unit 1 can be reduced, so that the NC unit 1 can be reduced in size and wiring can be reduced.

【0039】また、NCユニット1、サーボアンプ2、
3、主軸アンプ4、RIO5、キーボード6および表示
器7の各機器間で送受信されるデータが、高速シリアル
通信ペアケーブル41、42、43、44、45によっ
て伝送されるデータの基本周期内に時分割的に含まれる
よう構成したため、1つの伝送路により、複数の機器間
でのデータの送受信が可能となる効果がある。
Further, the NC unit 1, the servo amplifier 2,
3. When data transmitted / received between the spindle amplifier 4, the RIO 5, the keyboard 6, and the display 7 is within the basic period of the data transmitted by the high-speed serial communication pair cables 41, 42, 43, 44, 45. Since it is configured to be divided and included, there is an effect that data can be transmitted and received between a plurality of devices by one transmission path.

【0040】また、NCユニット1、サーボアンプ2、
3、主軸アンプ4、RIO5および操作ボード8を、高
速シリアル通信ペアケーブル41、42、43、44、
45によってディジーチェーン形式で直列に接続すると
ともに、操作ボード8内に、NCユニット1の通信機能
の停止を検知し、この停止時に同期データ80を出力し
て、NCシステムを構成する各機器の通信の同期を取る
よう構成したキーボード用HDLC通信インターフェー
ス19(同期信号出力手段)を備えたため、この操作ボ
ード8が通信動作のマスタとして機能することができ、
NCユニット1の停止時にも、操作ボード8とサーボア
ンプ2、3や主軸アンプ4、RIO5間でデータの送受
信が可能となる効果がある。
Further, the NC unit 1, the servo amplifier 2,
3. Connect the spindle amplifier 4, the RIO 5, and the operation board 8 to the high-speed serial communication pair cables 41, 42, 43, 44,
45, a serial connection is made in a daisy chain format, and a stop of the communication function of the NC unit 1 is detected in the operation board 8, and at the time of this stop, the synchronization data 80 is output, and communication of each device constituting the NC system is performed. The operation board 8 can function as a master of the communication operation because the keyboard HDLC communication interface 19 (synchronization signal output means) configured to synchronize the
Even when the NC unit 1 is stopped, there is an effect that data can be transmitted and received between the operation board 8 and the servo amplifiers 2 and 3, the spindle amplifier 4, and the RIO 5.

【0041】また、操作ボード8にデータを入力するキ
ーボード6およびデータを表示する表示器7を収納した
ため、例えば、保守等でNCユニット1の電源を入れら
れない場合にも、操作ボード8からサーボアンプ2、3
等のパラメータの設定や、サーボアンプ2、3等の各種
状態データの表示が可能となる効果がある。
Further, since the keyboard 6 for inputting data and the display 7 for displaying data are housed in the operation board 8, even if the power supply of the NC unit 1 cannot be turned on for maintenance or the like, the servo from the operation board 8 can be used. Amplifier 2, 3
And the like, and display of various state data of the servo amplifiers 2, 3 and the like can be achieved.

【0042】また、NCユニット1および操作ボード8
に、同期信号出力手段を備えるとともに、操作ボード8
に経過時間を計測するタイマーを備え、操作ボード8の
起動後、所定時間内にNCユニット1から同期データの
出力がない場合に、操作ボード8の同期信号出力手段か
ら同期データを出力するよう構成したため、NCユニッ
ト1の非稼動時に自動的に操作ボード8が通信のマスタ
として動作することができ、操作ボード8の通信機能の
立ち上げが容易になる効果がある。
The NC unit 1 and the operation board 8
And a synchronizing signal output means.
A timer that measures the elapsed time, and outputs the synchronization data from the synchronization signal output means of the operation board 8 when the NC unit 1 does not output the synchronization data within a predetermined time after the operation board 8 is activated. Thus, when the NC unit 1 is not operating, the operation board 8 can automatically operate as a communication master, and there is an effect that the communication function of the operation board 8 can be easily started.

【0043】なお、上記実施の形態1では、操作ボード
8のキーボード用HDLC通信インターフェース19が
同期データ80を出力するよう構成した例を示したが、
表示器用HDLC通信インターフェース18に同期デー
タ80の出力機能(同期信号出力手段)を与えてもよ
く、また、手動パルス生成ダイアル20およびXY軸移
動ボタン22のそれぞれに独立したHDLC通信インタ
ーフェースを設け、キーボード用HDLC通信インター
フェース19を介さずに、直接他の高速HDLC通信イ
ンタフェースに直列に接続するよう構成してもよい。さ
らに、表示器コントローラ17をキーボード用HDLC
通信インターフェース19に接続し、機械入出力インタ
ーフェースコントローラ24を操作ボード8の統合され
たHDLC通信インターフェースとして使用するよう構
成することも可能である。
In the first embodiment, an example has been described in which the HDLC communication interface for keyboard 19 of the operation board 8 outputs the synchronization data 80.
The display HDLC communication interface 18 may be provided with an output function of synchronization data 80 (synchronization signal output means). Further, the manual pulse generation dial 20 and the XY axis movement button 22 are provided with independent HDLC communication interfaces, respectively. It may be configured to connect directly to another high-speed HDLC communication interface in series without using the HDLC communication interface 19 for use. Further, the display controller 17 is connected to an HDLC for a keyboard.
It is also possible to connect to the communication interface 19 and use the machine input / output interface controller 24 as an integrated HDLC communication interface of the operation board 8.

【0044】また、上記実施の形態1では、NCユニッ
ト1および操作ボード8の両方が同期データを出力する
よう構成し、NCユニット1の通信機能が停止している
場合に操作ボード8が同期データを出力し、通信のマス
タ機能を動作させるよう構成した例を示したが、同期信
号出力手段を操作ボード8のみに設け、操作ボード8の
みによって通信の同期を取るよう構成してもよい。
In the first embodiment, both the NC unit 1 and the operation board 8 are configured to output synchronous data, and when the communication function of the NC unit 1 is stopped, the operation board 8 outputs the synchronous data. Has been described so as to operate the master function of communication, but a synchronization signal output means may be provided only on the operation board 8 so as to synchronize communication only by the operation board 8.

【0045】また、操作ボード8以外の、例えば、RI
O5等の機器に同期信号出力手段を設けてもよく、この
場合も、NCユニット1の通信機能停止時にこの機器が
通信動作のマスタとなることにより、各機器間でのデー
タの送受信が可能となる。さらに、複数の機器に同期信
号出力手段を設け、予め設定された優先順位に従って、
順次各機器が同期データの出力の適否を判断し、動作し
ている機器の中で最も優先順位の高い機器が同期データ
を出力するよう構成してもよい。
In addition, other than the operation board 8, for example, RI
A device such as O5 may be provided with a synchronizing signal output means. Also in this case, when the communication function of the NC unit 1 is stopped, this device becomes a master of the communication operation so that data can be transmitted and received between the devices. Become. Further, a synchronization signal output means is provided for a plurality of devices, and according to a preset priority,
Each device may sequentially determine the suitability of the output of the synchronization data, and the device with the highest priority among the operating devices may output the synchronization data.

【0046】さらに、上記実施の形態1では、キーボー
ド6と表示器7を操作ボード8内に収納した例を示した
が、キーボード6および表示器7とこれに対応したコン
トローラ16、17およびHDLC通信インタフェース
19、18を、それぞれ別々に、NCユニット1やサー
ボアンプ2、3等にディジーチェーン形式で接続しても
よい。
Further, in the first embodiment, the example in which the keyboard 6 and the display 7 are stored in the operation board 8 has been described, but the keyboard 6 and the display 7 and the controllers 16 and 17 corresponding thereto and the HDLC communication are provided. The interfaces 19 and 18 may be separately connected to the NC unit 1 and the servo amplifiers 2 and 3 in a daisy-chain manner.

【0047】実施の形態2.図8には、この発明の実施
の形態2であるNCシステムの動作を表すフローチャー
トを示す。図において、NCユニット1のステップS1
21〜ステップS131のステップは、それぞれ、図5
のステップS101〜ステップS111のステップと全
く同様であり、説明を省略する。また、操作ボード8、
サーボアンプ2、3およびRIO5のステップS228
以降およびステップS328以降は、それぞれ、図5の
ステップS209以降およびステップS305以降と同
様の動作であり、説明を省略する。
Embodiment 2 FIG. 8 is a flowchart showing the operation of the NC system according to the second embodiment of the present invention. In the figure, step S1 of the NC unit 1
Steps S21 to S131 are described in FIG.
Are exactly the same as the steps S101 to S111, and the description is omitted. Also, the operation board 8,
Step S228 of servo amplifiers 2, 3 and RIO5
Subsequent and step S328 and subsequent steps are the same as step S209 and subsequent steps and step S305 and subsequent steps in FIG. 5, respectively, and description thereof will be omitted.

【0048】この実施の形態2においては、操作ボード
8の電源がステップS221でONされると、ステップ
S222およびステップS223で操作ボード8内のタ
イマーがONおよびリセットされ、NCユニット1から
の下り方向の同期データ70の受信を待機することな
く、ステップS224に移行して上り方向の同期データ
80を生成し、NCシステム内の各機器に出力する。そ
の後、ステップS225で、NCユニット1からの下り
方向の同期データ70の受信が監視され、ステップS2
25においてNCユニット1からの同期データ70が受
信されない場合、ステップS226に移行して、タイマ
ーが1μs経過するまで、ステップS225での同期デ
ータ70の受信確認が繰り返される。そして、タイマー
が1μs経過しても同期データ70が受信されない場
合、NCユニット1が稼動していないものと判断し、操
作ボード8内のタイマーを基準時間として設定して、ス
テップS228以降のデータ通信を行なう。
In the second embodiment, when the power of the operation board 8 is turned on in step S221, the timer in the operation board 8 is turned on and reset in steps S222 and S223, and the down direction from the NC unit 1 is set. Without waiting for the reception of the synchronization data 70, the process proceeds to step S224 to generate uplink synchronization data 80 and output it to each device in the NC system. Thereafter, in step S225, reception of the downlink synchronization data 70 from the NC unit 1 is monitored, and in step S2
If the synchronization data 70 is not received from the NC unit 1 in step S25, the process proceeds to step S226, and the reception confirmation of the synchronization data 70 in step S225 is repeated until the timer has elapsed by 1 μs. If the synchronization data 70 is not received even after the timer has elapsed for 1 μs, it is determined that the NC unit 1 is not operating, the timer in the operation board 8 is set as the reference time, and the data communication after step S228 is performed. Perform

【0049】一方、ステップS225において、1μs
以内に同期データ70が受信された場合、NCユニット
1が稼動状態にあるため、ステップS227に移行して
この同期データ70によってタイマーをリセットするこ
とにより、操作ボード8のタイマーがNCユニット1の
タイマーに同期され、ステップS228以降において、
NCユニット1のタイマーを基準として各機器間のデー
タ通信が実施される。
On the other hand, in step S225, 1 μs
If the synchronization data 70 is received within this time, the NC unit 1 is in the operating state, and the process proceeds to step S227, and the timer is reset by the synchronization data 70 so that the timer of the operation board 8 is set to the timer of the NC unit 1. And after step S228,
Data communication between the devices is performed based on the timer of the NC unit 1.

【0050】また、サーボアンプ2、3や主軸アンプ4
およびRIO5は、ステップS321で電源がONされ
ると、ステップS322で各タイマーがONされ、ステ
ップS323でNCユニット1からの下りの同期データ
70の受信待機状態となる。そして、ステップS323
で同期データ70が受信されない場合、サーボアンプ
2、3等は、ステップS324に移行して操作ボード8
からの上りの同期データ80が受信されていないか確認
し、いずれの同期データ70、80とも受信されていな
い場合は、ステップS323に戻る。ステップS324
において、上りの同期データ80の受信が確認された場
合は、操作ボード8が稼動していることを意味してお
り、ステップS325でこの同期データ80によってタ
イマーをリセットすることにより、一旦、各機器のタイ
マーを操作ボード8のタイマーに同期させる。
The servo amplifiers 2 and 3 and the spindle amplifier 4
When the power is turned on in step S321, the timers are turned on in step S322, and the RIO 5 is in a standby state for receiving the downlink synchronization data 70 from the NC unit 1 in step S323. Then, step S323
If the synchronization data 70 is not received in step S324, the servo amplifiers 2, 3
It is determined whether or not the upstream synchronization data 80 has been received. If neither of the synchronization data 70 and 80 has been received, the process returns to step S323. Step S324
In step S325, when the reception of the uplink synchronization data 80 is confirmed, it means that the operation board 8 is operating, and by resetting the timer with the synchronization data 80 in step S325, each device is temporarily stopped. Is synchronized with the timer of the operation board 8.

【0051】一方、NCシステムの構成によっては、ス
テップS324で上りの同期データ80を受信した後
に、NCユニット1からの下りの同期データ70を受信
する可能性があるため、サーボアンプ2、3等は、ステ
ップS325で、一旦各機器のタイマーを操作ボード8
のタイマーに同期させた後も、ステップS326で経過
時間を監視しつつ、1μsだけステップS323に戻っ
て下りの同期データ70の受信が監視される。そして、
この間に、下りの同期データ70が受信されない場合、
NCユニット1が稼動していないものと判断され、ステ
ップS326からステップS328に移行して、以後、
操作ボード8からの上りの同期データ80を基準として
データ通信が行われる。なお、ステップS323からス
テップS326の繰り返し動作の中で、一旦ステップS
325においてタイマーが同期された後は、タイマーが
再度リセットされないようステップS325は迂回して
動作される。
On the other hand, depending on the configuration of the NC system, there is a possibility that after receiving the upstream synchronization data 80 in step S324, the downstream synchronization data 70 from the NC unit 1 may be received. In step S325, the timer of each device is temporarily set to the operation board 8
Even after the synchronization with the timer, the process returns to step S323 for 1 μs while monitoring the elapsed time in step S326, and the reception of the downlink synchronization data 70 is monitored. And
During this time, if the downlink synchronization data 70 is not received,
It is determined that the NC unit 1 is not operating, and the process proceeds from step S326 to step S328.
Data communication is performed based on the uplink synchronization data 80 from the operation board 8. In the repetitive operation of steps S323 to S326, step S
After the timer is synchronized in 325, the operation of step S325 is bypassed so that the timer is not reset again.

【0052】また、この1μsの間に、ステップS32
3でNCユニット1からの下りの同期データ70が受信
された場合には、NCユニット1が稼動状態にあるた
め、ステップS323からステップS327に移行し
て、一旦、操作ボード8に同期させたタイマーをこの同
期データ70によってリセットすることにより、サーボ
アンプ2、3等のタイマーがNCユニット1のタイマー
に同期され、以後、この基準時間がステップS328以
降の処理において利用される。
During this 1 μs, step S32
If the downlink synchronization data 70 is received from the NC unit 1 in step 3, the NC unit 1 is in the operating state, and the process proceeds from step S323 to step S327, and the timer once synchronized with the operation board 8 Is reset by the synchronization data 70, the timers of the servo amplifiers 2, 3 and the like are synchronized with the timers of the NC unit 1, and the reference time is used in the processing after step S328.

【0053】なお、上記したように、サーボアンプ2、
3、主軸アンプ4およびRIO5に内蔵されたタイマー
は、マスタとして機能しないため、同期データ70また
は80を受信した段階でリセットされ、時間経過ととも
にカウントアップし、111μsになるとその値を保持
し、再度、同期データ70または80によってリセット
されるまでその値を保持する。
As described above, the servo amplifier 2,
3. Since the spindle amplifier 4 and the timer incorporated in the RIO 5 do not function as a master, they are reset when the synchronization data 70 or 80 is received, count up with the passage of time, hold the value when the time reaches 111 μs, and again. , Is held until reset by the synchronization data 70 or 80.

【0054】以上説明したように、この実施の形態2の
ような動作手順によっても、実施の形態1と同様に動作
させることが可能であり、この他、全く同様の効果を奏
する種々の制御手順を採用することができる。
As described above, the operation can be performed in the same manner as in the first embodiment by the operation procedure as in the second embodiment. In addition, various control procedures having exactly the same effects can be achieved. Can be adopted.

【0055】[0055]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0056】データを入力するデータ入力装置と、前記
データ入力装置によって入力されたデータを表示する表
示装置と、前記データ入力装置によって入力されたデー
タに基いて数値演算を行ない制御データを生成するNC
ユニットと、前記NCユニットによって生成された制御
データに基いて工作機械を制御する制御装置とを備えた
数値制御システムにおいて、前記データ入力装置、前記
表示装置、前記NCユニットおよび前記制御装置のそれ
ぞれに通信インターフェースを設けるとともに、これら
の通信インターフェースを伝送路によって直列に接続
し、前記伝送路上に同一のデータを流すことにより、前
記データ入力装置、前記表示装置、前記NCユニットお
よび前記制御装置間でデータの送受信を行なうよう構成
したため、前記NCユニットに接続される配線の数を削
減することができ、前記NCユニットの小型化と各装置
間の通信配線の接続が容易になるという効果がある。
A data input device for inputting data, a display device for displaying the data input by the data input device, and an NC for performing a numerical operation based on the data input by the data input device to generate control data
A numerical control system comprising a unit and a control device for controlling a machine tool based on control data generated by the NC unit, wherein each of the data input device, the display device, the NC unit and the control device A communication interface is provided, and these communication interfaces are connected in series by a transmission line, and the same data is flowed on the transmission line, so that data can be transmitted between the data input device, the display device, the NC unit, and the control device. , The number of wires connected to the NC unit can be reduced, so that the NC unit can be reduced in size and communication wires between devices can be easily connected.

【0057】また、データを入力するデータ入力装置お
よびこのデータ入力装置によって入力されたデータを表
示する表示装置を備えた操作ボードと、前記操作ボード
によって入力されたデータに基いて数値演算を行ない制
御データを生成するNCユニットと、前記NCユニット
によって生成された制御データに基いて工作機械を制御
する制御装置とを備えた数値制御システムにおいて、前
記操作ボード、前記NCユニットおよび前記制御装置の
それぞれに通信インターフェースを設けるとともに、こ
れらの通信インターフェースを伝送路によって直列に接
続し、前記伝送路上に同一のデータを流すことにより、
前記操作ボード、前記NCユニットおよび前記制御装置
間でデータの送受信を行なうよう構成したため、前記N
Cユニットに接続される配線の数を削減することがで
き、前記NCユニットの小型化と各装置間の通信配線の
接続が容易になるという効果がある。
Also, an operation board provided with a data input device for inputting data and a display device for displaying data input by the data input device, and a control for performing a numerical operation based on the data input by the operation board In a numerical control system including an NC unit that generates data and a control device that controls a machine tool based on control data generated by the NC unit, the numerical control system includes: an operation board, the NC unit, and the control device. By providing a communication interface, these communication interfaces are connected in series by a transmission line, and by flowing the same data on the transmission line,
Since data is transmitted and received between the operation board, the NC unit and the control device, the N
The number of wirings connected to the C unit can be reduced, and there is an effect that downsizing of the NC unit and connection of communication wiring between the devices are facilitated.

【0058】また、この発明に係るNCシステムは、前
記NCユニット以外の少なくともひとつの装置が、前記
伝送路上に各機器間の通信の同期を取るための同期デー
タを出力する同期信号出力手段を備えたため、前記NC
ユニットの通信機能停止時においても、他の機器が通信
動作のマスタとして機能することができ、前記データ入
力装置や前記表示装置あるいは前記制御装置間でデータ
の送受信が可能となる効果がある。
In the NC system according to the present invention, at least one device other than the NC unit includes synchronization signal output means for outputting synchronization data for synchronizing communication between devices on the transmission path. The NC
Even when the communication function of the unit is stopped, another device can function as a master of the communication operation, and there is an effect that data can be transmitted and received between the data input device, the display device, or the control device.

【0059】また、この発明に係るNCシステムは、前
記操作ボードが、前記伝送路上に各機器間の通信の同期
を取るための同期データを出力する同期信号出力手段を
備えたため、前記NCユニットの通信機能停止時におい
ても、前記操作ボードが通信動作のマスタとして機能す
ることができ、前記操作ボードと前記制御装置間でデー
タの送受信が可能となり、前記NCユニットの非動作時
にも、前記操作ボードから前記制御装置に対するパラメ
ータの設定や、各種状態データの表示が可能となる効果
がある。
In the NC system according to the present invention, the operation board includes synchronization signal output means for outputting synchronization data for synchronizing communication between devices on the transmission path. Even when the communication function is stopped, the operation board can function as a master of the communication operation, data can be transmitted and received between the operation board and the control device, and the operation board can be operated even when the NC unit is not operating. Thus, it is possible to set parameters for the control device and display various state data.

【0060】また、この発明に係るNCシステムは、前
記NCユニットおよび前記操作ボードに、前記伝送路上
に各機器間の通信の同期を取るための同期データを出力
する同期信号出力手段を備えるとともに、前記操作ボー
ドに経過時間を計測するタイマーを備え、前記操作ボー
ドの起動後、所定時間内に前記NCユニットの同期信号
出力手段から同期データの出力がない場合に、前記操作
ボードの同期信号出力手段から同期データを出力するよ
う構成したため、前記NCユニットの非動作時に前記操
作ボードが通信動作のマスタとして自動的に機能するた
め、前記操作ボードの立ち上げが容易となる効果があ
る。
Further, the NC system according to the present invention includes a synchronization signal output means for outputting, to the NC unit and the operation board, synchronization data for synchronizing communication between the devices on the transmission path, The operation board includes a timer for measuring an elapsed time, and when the operation signal is not output from the synchronization signal output means of the NC unit within a predetermined time after the operation board is started, the synchronization signal output means of the operation board Since the configuration is such that the synchronization data is output from the control unit, the operation board automatically functions as a master of the communication operation when the NC unit is not operating, so that the operation board can be easily started.

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

【図1】 この発明の実施の形態1であるNCシステム
のシステム構成を表すブロック図。
FIG. 1 is a block diagram illustrating a system configuration of an NC system according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1である操作ボードの
内部構成を示すブロック図。
FIG. 2 is a block diagram showing an internal configuration of the operation board according to the first embodiment of the present invention.

【図3】 この発明の実施の形態1であるNCシステム
の伝送路上を送受信されるデータの構成図。
FIG. 3 is a configuration diagram of data transmitted and received on a transmission path of the NC system according to the first embodiment of the present invention;

【図4】 この発明の実施の形態1であるNCシステム
のデータ構成図。
FIG. 4 is a data configuration diagram of the NC system according to the first embodiment of the present invention;

【図5】 この発明の実施の形態1であるNCシステム
の動作を表すフローチャート。
FIG. 5 is a flowchart showing the operation of the NC system according to the first embodiment of the present invention.

【図6】 この発明の実施の形態1であるNCシステム
の、NCユニット非動作時の動作を表すフローチャー
ト。
FIG. 6 is a flowchart showing an operation of the NC system according to the first embodiment of the present invention when the NC unit is not operating;

【図7】 この発明の実施の形態1であるNCシステム
の、NCユニット非動作時の伝送路上を送受信されるデ
ータの構成図。
FIG. 7 is a configuration diagram of data transmitted and received on a transmission path when the NC unit is not operating in the NC system according to the first embodiment of the present invention;

【図8】 この発明の実施の形態2であるNCシステム
の動作を表すフローチャート。
FIG. 8 is a flowchart showing the operation of the NC system according to the second embodiment of the present invention.

【図9】 従来のNCシステムのシステム構成を表すブ
ロック図。
FIG. 9 is a block diagram showing a system configuration of a conventional NC system.

【図10】 従来のNCユニットの内部構成を表すブロ
ック図。
FIG. 10 is a block diagram showing an internal configuration of a conventional NC unit.

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

1 NCユニット 2 サーボアンプ(制御装置) 3 サーボアンプ(制御装置) 4 主軸アンプ(制御装置) 5 RIO 6 キーボード(データ入力装置) 7 表示器(表示装置) 8 操作ボード 9 高速HDLC通信インターフェース(通信インター
フェース、同期信号出力手段) 10 CPU 11 データバス 12 ROM 13 RAM 16 キーボードコントローラ 17 表示器コントローラ 18 表示器用HDLC通信インターフェース(通信イ
ンターフェース) 19 キーボード用HDLC通信インターフェース(通
信インターフェース、同期信号出力手段) 20 手動パルス生成ダイアル 21 パルスダイアル用コントローラ 22 XY軸移動ボタン 23 移動ボタン用コントローラ 24 機械入出力インターフェースコントローラ 29 コネクタ 41、42、43、44、45 高速シリアル通信ペア
ケーブル(伝送路) 70、74 NCユニットが出力する同期データ 71、75 NCユニットからサーボアンプへ送信され
るデータ(制御データ) 72、76 NCユニットからRIOへ送信されるデー
タ 73 NCユニットから操作ボードへ送信されるデータ 77 サーボアンプから操作ボードへ送信されるデータ 80、84 操作ボードが出力する同期データ 81、85 サーボアンプからNCユニットへ送信され
るデータ 82、86 RIOからNCユニットへ送信されるデー
タ 83 操作ボードからNCユニットへ送信されるデータ 87 操作ボードからサーボアンプへ送信されるデータ
Reference Signs List 1 NC unit 2 Servo amplifier (control device) 3 Servo amplifier (control device) 4 Spindle amplifier (control device) 5 RIO 6 Keyboard (data input device) 7 Display (display device) 8 Operation board 9 High-speed HDLC communication interface (communication) Interface, synchronization signal output means) 10 CPU 11 data bus 12 ROM 13 RAM 16 keyboard controller 17 display controller 18 HDLC communication interface for display (communication interface) 19 HDLC communication interface for keyboard (communication interface, synchronization signal output means) 20 manual Pulse generation dial 21 Pulse dial controller 22 XY axis move button 23 Move button controller 24 Machine input / output interface controller 29 Connect 41, 42, 43, 44, 45 High-speed serial communication pair cable (transmission line) 70, 74 Synchronous data 71, 75 Synchronous data output from NC unit Data (control data) transmitted from NC unit to servo amplifier 72, 76 NC unit 73 Data transmitted from the NC unit to the operation board 77 Data transmitted from the NC unit to the operation board 80, 84 Synchronous data output from the operation board 81, 85 Transmitted from the servo amplifier to the NC unit 82, 86 Data transmitted from RIO to NC unit 83 Data transmitted from operation board to NC unit 87 Data transmitted from operation board to servo amplifier

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 データを入力するデータ入力装置と、前
記データ入力装置によって入力されたデータを表示する
表示装置と、前記データ入力装置によって入力されたデ
ータに基いて数値演算を行ない制御データを生成するN
Cユニットと、前記NCユニットによって生成された制
御データに基いて工作機械を制御する制御装置とを備え
た数値制御システムにおいて、前記データ入力装置、前
記表示装置、前記NCユニットおよび前記制御装置のそ
れぞれに通信インターフェースを設けるとともに、これ
らの通信インターフェースを伝送路によって直列に接続
し、前記伝送路上に同一のデータを流すことにより、前
記データ入力装置、前記表示装置、前記NCユニットお
よび前記制御装置間でデータの送受信を行なうよう構成
したことを特徴とする数値制御システム。
1. A data input device for inputting data, a display device for displaying data input by the data input device, and a control device for performing a numerical operation based on the data input by the data input device to generate control data N
A numerical control system comprising a C unit and a control device for controlling a machine tool based on control data generated by the NC unit, wherein each of the data input device, the display device, the NC unit and the control device In addition to providing a communication interface, these communication interfaces are connected in series by a transmission line, and by flowing the same data on the transmission line, the data input device, the display device, the NC unit and the control device A numerical control system configured to transmit and receive data.
【請求項2】 データを入力するデータ入力装置および
このデータ入力装置によって入力されたデータを表示す
る表示装置を備えた操作ボードと、前記操作ボードによ
って入力されたデータに基いて数値演算を行ない制御デ
ータを生成するNCユニットと、前記NCユニットによ
って生成された制御データに基いて工作機械を制御する
制御装置とを備えた数値制御システムにおいて、前記操
作ボード、前記NCユニットおよび前記制御装置のそれ
ぞれに通信インターフェースを設けるとともに、これら
の通信インターフェースを伝送路によって直列に接続
し、前記伝送路上に同一のデータを流すことにより、前
記操作ボード、前記NCユニットおよび前記制御装置間
でデータの送受信を行なうよう構成したことを特徴とす
る数値制御システム。
2. An operation board having a data input device for inputting data, a display device for displaying data input by the data input device, and performing a numerical operation on the basis of the data input by the operation board. In a numerical control system including an NC unit that generates data and a control device that controls a machine tool based on control data generated by the NC unit, the numerical control system includes: an operation board, the NC unit, and the control device. A communication interface is provided, and these communication interfaces are connected in series by a transmission line, and the same data is flowed on the transmission line to transmit and receive data between the operation board, the NC unit, and the control device. A numerical control system characterized by comprising.
【請求項3】 前記NCユニット以外の少なくともひと
つの装置が、前記伝送路上に各機器間の通信の同期を取
るための同期データを出力する同期信号出力手段を備え
たことを特徴とする請求項1または請求項2に記載の数
値制御システム。
3. The apparatus according to claim 1, wherein at least one device other than the NC unit includes a synchronization signal output unit for outputting synchronization data for synchronizing communication between the devices on the transmission path. The numerical control system according to claim 1 or 2.
【請求項4】 前記操作ボードが、前記伝送路上に各機
器間の通信の同期を取るための同期データを出力する同
期信号出力手段を備えたことを特徴とする請求項2に記
載の数値制御システム。
4. The numerical control according to claim 2, wherein the operation board includes a synchronization signal output unit that outputs synchronization data for synchronizing communication between the devices on the transmission path. system.
【請求項5】 前記NCユニットおよび前記操作ボード
に、前記伝送路上に各機器間の通信の同期を取るための
同期データを出力する同期信号出力手段を備えるととも
に、前記操作ボードに経過時間を計測するタイマーを備
え、前記操作ボードの起動後、所定時間内に前記NCユ
ニットの同期信号出力手段から同期データの出力がない
場合に、前記操作ボードの同期信号出力手段から同期デ
ータを出力するよう構成したことを特徴とする請求項4
に記載の数値制御システム。
5. The control unit according to claim 1, wherein the NC unit and the operation board include synchronization signal output means for outputting synchronization data for synchronizing communication between the devices on the transmission line, and measure an elapsed time on the operation board. A timer for outputting synchronization data from the synchronization signal output means of the operation board when no synchronization data is output from the synchronization signal output means of the NC unit within a predetermined time after the operation board is activated. 5. The method according to claim 4, wherein
Numerical control system according to 1.
JP2000031933A 2000-02-09 2000-02-09 Numerical control system Expired - Fee Related JP4320495B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000031933A JP4320495B2 (en) 2000-02-09 2000-02-09 Numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000031933A JP4320495B2 (en) 2000-02-09 2000-02-09 Numerical control system

Publications (2)

Publication Number Publication Date
JP2001222308A true JP2001222308A (en) 2001-08-17
JP4320495B2 JP4320495B2 (en) 2009-08-26

Family

ID=18556611

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000031933A Expired - Fee Related JP4320495B2 (en) 2000-02-09 2000-02-09 Numerical control system

Country Status (1)

Country Link
JP (1) JP4320495B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244489A (en) * 2005-03-03 2006-09-14 Dr Johannes Heidenhain Gmbh Modular numerical control
JP2008067487A (en) * 2006-09-07 2008-03-21 Matsushita Electric Ind Co Ltd Motor drive device
DE102008033354A1 (en) 2007-07-17 2009-01-22 Denso Wave Inc. Communication device for robots
WO2009063565A1 (en) * 2007-11-16 2009-05-22 Fujitsu Limited Control system, control method, master device, and controller
CN102789205A (en) * 2011-05-17 2012-11-21 大连光洋科技工程有限公司 Position information processing device with multiple interfaces and capable of supporting semi-closed loop control and entire closed-loop control
JP2015203965A (en) * 2014-04-14 2015-11-16 ファナック株式会社 serial communication system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244489A (en) * 2005-03-03 2006-09-14 Dr Johannes Heidenhain Gmbh Modular numerical control
JP2008067487A (en) * 2006-09-07 2008-03-21 Matsushita Electric Ind Co Ltd Motor drive device
JP4661743B2 (en) * 2006-09-07 2011-03-30 パナソニック株式会社 Motor drive device
DE102008033354A1 (en) 2007-07-17 2009-01-22 Denso Wave Inc. Communication device for robots
US8339091B2 (en) 2007-07-17 2012-12-25 Denso Wave Incorporated Communication apparatus for robots
WO2009063565A1 (en) * 2007-11-16 2009-05-22 Fujitsu Limited Control system, control method, master device, and controller
US8295949B2 (en) 2007-11-16 2012-10-23 Fujitsu Limited Control system, control method, master device, and control device
JP5218421B2 (en) * 2007-11-16 2013-06-26 富士通株式会社 Control system
CN102789205A (en) * 2011-05-17 2012-11-21 大连光洋科技工程有限公司 Position information processing device with multiple interfaces and capable of supporting semi-closed loop control and entire closed-loop control
JP2015203965A (en) * 2014-04-14 2015-11-16 ファナック株式会社 serial communication system

Also Published As

Publication number Publication date
JP4320495B2 (en) 2009-08-26

Similar Documents

Publication Publication Date Title
JP3297249B2 (en) Control method for distributed remote I / O control system
JP3647955B2 (en) Operation board, remote I / O communication control method
JPH08123520A (en) Driving control commanding device, system and method for controlling synchronism between plural driving control commanders
JP6629361B2 (en) Programmable logic controller
JP2001222308A (en) Numerical control system
CN111885008A (en) Protocol conversion module between robot and welding equipment and conversion method thereof
KR100246906B1 (en) Programmable controller network system
CN105393551A (en) Radio devices and interface module
JP4029617B2 (en) Numerical control system and communication timing setting method in the numerical control system
CN102195805B (en) Communication apparatus and communication method
JP2000049891A (en) Programmable logic controller and communication condition setting method and communication condition setting device therefor
JP3204301B2 (en) Control method between pointing device and computer
KR20060003754A (en) Test device of can telecommunication network on vehicle and method thereof
JPH06319184A (en) Communication system intra controller
JP3870890B2 (en) Operation board, remote I / O communication control method
JP2550076B2 (en) Multiple system controller
JPH08298513A (en) Control communication system
JP2000231403A (en) Remote input and output system and slave device for the same
JPH09319411A (en) Method and equipment for communication
JPH07244625A (en) Handy terminal
JPH0764472A (en) Remote i/o system of programmable controller
JPH0962319A (en) Display device
JP2002022847A (en) Detecting sensor
JPH077770A (en) Remote supervisory equipment
JP2005348224A (en) Radio communication method and radio communication apparatus

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040628

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061027

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090219

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090507

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090520

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

Free format text: PAYMENT UNTIL: 20120612

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130612

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees