JPH0220197A - Line connecting system between numerical control device and its peripheral equipment - Google Patents

Line connecting system between numerical control device and its peripheral equipment

Info

Publication number
JPH0220197A
JPH0220197A JP16911688A JP16911688A JPH0220197A JP H0220197 A JPH0220197 A JP H0220197A JP 16911688 A JP16911688 A JP 16911688A JP 16911688 A JP16911688 A JP 16911688A JP H0220197 A JPH0220197 A JP H0220197A
Authority
JP
Japan
Prior art keywords
numerical control
control device
peripheral equipment
command
communication
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
JP16911688A
Other languages
Japanese (ja)
Other versions
JP2709720B2 (en
Inventor
Mitsuto Miyata
宮田 光人
Kota Miyamoto
耕太 宮本
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP16911688A priority Critical patent/JP2709720B2/en
Publication of JPH0220197A publication Critical patent/JPH0220197A/en
Application granted granted Critical
Publication of JP2709720B2 publication Critical patent/JP2709720B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To reduce the working quantity of an operator by automatically setting the communication condition of a communication line between a numerical control device and connected peripheral equipment, and automatically setting a communicable condition. CONSTITUTION:When the peripheral equipment is connected through a signal cable to the numerical control device, and a communication line setting command is inputted to the numerical control device, the microprocessor of the numerical control device starts a processing, first, peripheral equipment calling command by means of the initially set condition is sent to a communication cable, to which the peripheral equipment is connected. Further, a timer T is started, the command in a certain condition is sent, when a response signal is transmitted from the peripheral equipment before the time of the timer T is up, the communication condition is fixed at the currently set command condition, and stored into the memory in the numerical control device as the communication condition of the peripheral equipment. Thus, since the communication condition with the peripheral equipment is automatically determined, the manual setting of the line with the peripheral equipment is made unnecessary.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、数値制御装置と該数値f、II御装置の周辺
II器との回線接続方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a line connection system between a numerical control device and a peripheral II device of the numerical control device.

従来の技術 従来、数値制御装置に周辺機器を接続する場合、オペレ
ータが数値Il制御装置に周辺機器との通信のだめの回
線の条件を手動で設定しなければならなかった。
2. Description of the Related Art Conventionally, when connecting a peripheral device to a numerical control device, an operator had to manually set the line conditions for communication with the peripheral device in the numerical control device.

例えば、数値制御装置に接続する周辺機器に合わせて、
通信のためのボーレート、ストップビット数、及び接続
する周辺n器がどのような機器か、例えばフロッピーデ
ィスクドライブか紙テープリーダか等の情報をオペレー
タは数値制御装置に手動で設定しなければならなかった
For example, depending on the peripheral equipment connected to the numerical control device,
Operators had to manually set information on the numerical control device, such as the baud rate for communication, the number of stop bits, and the type of peripheral device to be connected, such as a floppy disk drive or a paper tape reader. .

発明が解決しようとする課題 上述したように、周辺機器との通信回線の設定をオペレ
ータが手動で数値1LII御装置に行う方式では、オペ
レータは、数値制御装置や周辺機器の回線について、ど
のような設定事項が必要か知っておく必要がある。さら
にオペレータは、この必要な設定事項に対し、数値制御
装置や周辺機器を通信可能状態に設定する必要がある。
Problems to be Solved by the Invention As mentioned above, in the method in which the operator manually sets the communication line with the numerical control device and the peripheral device, the operator has to set up the communication line with the numerical control device and the peripheral device. You need to know what settings are required. Further, the operator needs to set the numerical control device and peripheral devices to a communicable state for the necessary setting items.

これらのオペレータの設定作業は、数値制御装置や周辺
vi器のマニアル等を参照しながら行なわねばらず、さ
らには、誤りなく設定されているか否か確認する必要も
あり、これらオペレータの作業mを多くしている。
The setting work of these operators must be done while referring to the manuals of the numerical control device and peripheral VI equipment, and it is also necessary to confirm that the settings are correct. I do a lot.

そこで、本発明の目的は、数値制御装置と周辺vs器と
の通信回線の回線設定の諸条件を自動的に設定する回線
接続方式を提供することにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a line connection method that automatically sets conditions for setting up a communication line between a numerical control device and a peripheral device.

課題を解決するための手段 上記課題を解決するために、本発明における数値制御装
置は、該数値制御装置の周辺機器接続ケーブルに回si
!設定のための通信条件を順次変えて周辺機器の呼出し
指令を送出し、周辺機器では、通信条件が合致し呼出し
指令を検知すると、応答信号を上記数値制御l装置に返
信し、数値制御装置は応答信号を受けて応答した呼出し
指令の通信条件に通信条件を固定し、回線設定を自動的
に行うようにした。
Means for Solving the Problems In order to solve the above problems, the numerical control device of the present invention has a peripheral device connecting cable of the numerical control device.
! The communication conditions for setting are changed sequentially and a call command is sent to the peripheral device. When the peripheral device meets the communication conditions and detects the call command, it sends a response signal to the numerical control device, and the numerical control device The communication conditions are fixed to the communication conditions of the paging command responded to after receiving the response signal, and the line settings are automatically performed.

作  用 数値制御装置は、周辺機器が接続されたケーブルにボー
レートやストップビット数等の通信条件を変えて順次呼
出し指令を送出する。周辺Il器側では、この呼出し指
令を受信することとなるが、通信条件が該ケーブルに接
続された周辺機器に合致していなければ、周辺機器は呼
出し指令を認識することができず、応答信号を送出する
ことばない。一方、通信条件が合致し周辺II器が呼出
し指令を検出すると、応答信号を数値制御装置に送信す
る。数値制御装置は応答信号を蔓けて現時点で通信条件
を固定する。これにより、数値制御装置と周辺機器との
通信回線は通信可能状態に自動的に設定されることとな
る。
Operation The numerical control device sequentially sends out paging commands to the cables connected to peripheral devices by changing communication conditions such as baud rate and number of stop bits. The peripheral device side will receive this paging command, but if the communication conditions do not match the peripheral device connected to the cable, the peripheral device will not be able to recognize the paging command and will not receive a response signal. There are no words to send out. On the other hand, when the communication conditions are met and the peripheral II detects the calling command, it transmits a response signal to the numerical control device. The numerical control device outputs a response signal and fixes the communication conditions at the current moment. As a result, the communication line between the numerical control device and the peripheral device is automatically set to a communicable state.

実施例 第1図は、本発明の一実施例における数値制御装置の回
線設定処理フローチ1p −1−を示す。この第1図に
示す回線設定のプロトコルが数値制御装置、周辺機器間
に設けられている点を除けば、数値制御装置及び周辺機
器のハード・フェアは従来のものとfi’jlじ構成で
あるので、数値制御装置及び周辺機器の構成は省略する
Embodiment FIG. 1 shows a line setting processing flow 1p-1- of a numerical control device in an embodiment of the present invention. Except for the fact that the line setting protocol shown in Figure 1 is provided between the numerical control device and peripheral devices, the hardware configuration of the numerical control device and peripheral devices is the same as that of the conventional one. Therefore, the configuration of the numerical control device and peripheral equipment will be omitted.

数値制御装置に信号ケーブルを介して周辺機器を接続し
、数値制御装置に通信回線設定指令を入力すると、数値
制御装置のマイクロプロセッサは第1図の!I!1理を
開始し、まず、初期設定された条f[による周辺機器呼
出し指令としてのコマンドを、周辺機器が接続された通
信ケーブルに送出する(ステップSl)。
When a peripheral device is connected to the numerical control device via a signal cable and a communication line setting command is input to the numerical control device, the microprocessor of the numerical control device performs the ! I! First, a command as a peripheral device call command according to the initially set article f[ is sent to the communication cable to which the peripheral device is connected (step Sl).

すなわら、第2図に一例を示すように、初期設定された
ボーレート、ストップビット数からなるコマンド’ST
N” (STANDBY?)を送出Jる。第2図におい
ては、2400ボー、2ストツプビツトで構成されるコ
マンド“S T N ”を初ill Hu定されたコマ
ンドとして送出している。
In other words, as shown in FIG. 2, a command 'ST' consisting of an initialized baud rate and number of stop bits
In FIG. 2, the command "ST N" consisting of 2400 baud and 2 stop bits is sent as the initial illumination command.

そして、タイマTをスタートさせ(ステップS2)、該
タイマTが設定時間tl  (第2図参照)を計時しタ
イムアツプする前に周辺機器から応答信号が返信されて
ぎたか否か判断しくステップS3.84)、応答信号が
なくタイマTがタイムアツプすると、すべての設定値で
コマンドを送出したか否か判断しく設定値の異なるコマ
ンドがn種類あれば、n種類のコマンドを送出したか否
か判lIiする) (ステップS5)、すべての設定値
でコマンドを送出していなければ、次の設定値によるコ
マンドを送出する(ステップ36)。なお、第2図にa
3いては、4800ボー、2ストップビットでコマンド
” S T N ”を送出している。そして、丙びタイ
マTをリレットしてスタートさけ(ステップS7)、タ
イマTがタイムアツプするまで応?′5信号が周辺機器
から送信されてぎたか否か判断する(ステップ83.8
4)。以下、応答信号が送信されてくるまで、ステップ
83〜S7の処理庖繰返し行う。づべての設定値による
=lマント” S −r N ”を送出しても応答信号
を受信しない場合には、周辺機器や通信ウープルの接続
異常、とじて、数値制御装置の表示装置に周辺機器の異
常表示を表示する(ステップ88)。
Then, the timer T is started (step S2), and the timer T measures a set time tl (see FIG. 2), and it is determined whether or not a response signal has been returned from the peripheral device before the timer T times out (step S3). 84) If there is no response signal and timer T times up, it is difficult to judge whether the command has been sent with all setting values. If there are n types of commands with different setting values, it is judged whether or not the n types of commands have been sent. (step S5), and if a command has not been sent out with all set values, a command with the next set value is sent out (step S36). In addition, in Figure 2 a
3, the command "S T N " is sent at 4800 baud and 2 stop bits. Then, the timer T is reset and started (step S7), and the operation is continued until the timer T times out. '5 signal has been sent from the peripheral device (step 83.8)
4). Thereafter, steps 83 to S7 are repeated until a response signal is transmitted. If you do not receive a response signal even after transmitting =lmant ``S -r N'', there may be a connection error with the peripheral equipment or communication loop. An abnormality indication of the equipment is displayed (step 88).

一方、ある条件のコマンドを送出してタイマ丁がタイム
アツプする前に周辺i器から応答信号があると(第2図
中t2 <tl )、現在設定されているコマンドの条
件に通信条件を固定し、周辺機器の通信条件として数値
制御装置内のメモリ内に格納する(ステップ89)。叩
ら、数値制御装置がボーレートやストップビット数の通
信条件を変えて周辺機器の呼出し信号“S T N ”
を送出し、周辺Ili器は自己の通信条件に合致する条
f1からなる呼出し信号のコマンド’ S T N ”
を受信したとき始めで呼出し信号が送られてきたことを
検出し、応答信号を送出する。例えば、第2図では、通
信ケーブルに接続されている周辺i器がフロッピーディ
スクドライブ装置(FDD)で、該フロッピーディスク
ドライブ装置の通信条件が9600ボ2ストツプビツト
の構成であっIごときの例を示しており、数値制御装置
から、2400ボー2ストツプビツトで構成される叶出
し信号のコマンド゛STN’″を送出し、次に、480
0ボー2ストップビットのコマンド゛S T N ”を
送出し、次に、9600ボー、2ストツプビツトのコマ
ンド“S T N ”を送出したとぎ、周辺機器のフロ
ッピーディスクドライブ装置は呼出し信号のコマンド’
 S T N ”を始めて検出し、数値制御装置へ96
00ボー、2ストツプビツトで構成される応答信号のコ
マンド“’OKF” (OK、FLOPPY)を返信し
くタイマTの設定時間t1は周辺機器が応答信号を送出
するまでの時間t2より良く設定されている)、数値制
御装置は、この応答信号のコマンド’0KI−″′を受
信しくステップS3)、通信条flの値を現在の値(第
2図の例では9600ボー、2ストツプビツト)に固定
し、この値をメモリ内に格納し、かつ、周辺機器から返
信されたコマンドから接続されている周辺機器が何であ
るか認識しメモリに記憶する(ステップ510)。
On the other hand, if a response signal is received from the peripheral device before the timer times up after sending a command with a certain condition (t2 < tl in Figure 2), the communication condition is fixed to the currently set command condition. , and stored in the memory of the numerical control device as communication conditions for peripheral devices (step 89). The numerical control device changes the communication conditions such as baud rate and number of stop bits and outputs the peripheral device calling signal “S T N ”.
The peripheral Ili device sends a call signal command 'S T N '' consisting of the clause f1 that matches its own communication conditions.
When it receives this, it detects that a calling signal has been sent and sends out a response signal. For example, FIG. 2 shows an example in which the peripheral device connected to the communication cable is a floppy disk drive (FDD), and the communication condition of the floppy disk drive is a configuration of 9600 bits and 2 stop bits. The numerical controller sends out the output signal command 〛STN''' consisting of 2400 baud 2 stop bits, and then 480 baud 2 stop bits.
When the 0 baud, 2 stop bit command "S T N" is sent, and then the 9600 baud, 2 stop bit command "S T N" is sent, the floppy disk drive device of the peripheral device receives the call signal command 'S T N'.
96 to the numerical control device.
The set time t1 of the timer T is set to be better than the time t2 until the peripheral device sends out the response signal. ), the numerical control device receives the command '0KI-''' of this response signal (step S3), fixes the value of the communication line fl to the current value (9600 baud, 2 stop bits in the example of FIG. 2), This value is stored in the memory, and the connected peripheral device is recognized from the command returned from the peripheral device and stored in the memory (step 510).

即6、第2図の例では返信コマンド“OK F ”より
フロッピーディスクドライブ装置が接fiされているこ
とを検出し記憶することとなる。こうして、通信回線が
設定された後、該記憶した通信条件によってデータのや
りとりが周辺費器と数値制御装置間でfjわれる。
In other words, in the example shown in FIG. 2, it is detected from the reply command "OK F" that the floppy disk drive device is connected and stored. After the communication line is thus set up, data is exchanged between the peripheral device and the numerical control device according to the stored communication conditions.

このように、接続された周辺機器との通信条イ1が自動
的に決定され、かつ、数(10制御装置に接続された周
辺vi器が何であるか自動的に認識されるから、周辺1
1器との回線の設定を手動で設定する必要がない。
In this way, the communication conditions with the connected peripheral devices are automatically determined, and the number (10) of the peripheral devices connected to the control device is automatically recognized.
There is no need to manually configure the line settings for one device.

発明の効果 本発明においては、数値制御装置と接続周辺機器との通
信回線の通信条件の設定が自動的に行われ、通信可能な
状態に自動的に設定されるから、オペレータは、単に数
値制御装置と周辺i器とを通信クープルで接続するのみ
でよく、通イ3回線設定のための操作を他に何もする必
要がなく、オペレータの作!J吊を減らずことができる
Effects of the Invention In the present invention, the communication conditions of the communication line between the numerical control device and the connected peripheral devices are automatically set, and the communication conditions are automatically set. Therefore, the operator can simply perform the numerical control. All you need to do is connect the device and the peripheral devices using a communication couple, and there is no need to perform any other operations to set up the 3 communication lines. This can be done without reducing J-hang.

【図面の簡単な説明】 第1図は本発明の一実施例における数値制御装置の回線
設定処理フローヂャート、第2図は同実施例における数
値制御装置と周辺機器の信号送受の一例を説明する説明
図である。 特許出願人  ファナック株式会社
[BRIEF DESCRIPTION OF THE DRAWINGS] Fig. 1 is a flowchart of a line setting process for a numerical control device in an embodiment of the present invention, and Fig. 2 is an explanation explaining an example of signal transmission and reception between the numerical control device and peripheral equipment in the same embodiment. It is a diagram. Patent applicant FANUC Corporation

Claims (1)

【特許請求の範囲】[Claims] 数値制御装置は、該数値制御装置の周辺機器接続ケーブ
ルに、回線設定のための通信条件を順次変えて周辺機器
の呼出し指令を送出し、周辺機器では、通信条件が合致
し呼出し指令を検知すると、応答信号を上記数値制御装
置に返信し、数値制御装置は応答信号を受けて応答した
呼出し指令の通信条件に通信条件を固定し、回線設定を
自動的に行うようにした数値制御装置とその周辺機器と
の回線接続方式。
The numerical control device sends a call command for the peripheral device to the peripheral device connection cable of the numerical control device by sequentially changing the communication conditions for line setting, and when the peripheral device detects the call command when the communication conditions match, , a response signal is returned to the numerical control device, and the numerical control device receives the response signal and fixes the communication conditions to the communication conditions of the responded paging command, and automatically performs line settings. Line connection method with peripheral devices.
JP16911688A 1988-07-08 1988-07-08 Line connection method between the numerical controller and its peripheral devices Expired - Lifetime JP2709720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16911688A JP2709720B2 (en) 1988-07-08 1988-07-08 Line connection method between the numerical controller and its peripheral devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16911688A JP2709720B2 (en) 1988-07-08 1988-07-08 Line connection method between the numerical controller and its peripheral devices

Publications (2)

Publication Number Publication Date
JPH0220197A true JPH0220197A (en) 1990-01-23
JP2709720B2 JP2709720B2 (en) 1998-02-04

Family

ID=15880596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16911688A Expired - Lifetime JP2709720B2 (en) 1988-07-08 1988-07-08 Line connection method between the numerical controller and its peripheral devices

Country Status (1)

Country Link
JP (1) JP2709720B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013110904A (en) * 2011-11-24 2013-06-06 Fuji Electric Co Ltd Electric motor drive device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013110904A (en) * 2011-11-24 2013-06-06 Fuji Electric Co Ltd Electric motor drive device

Also Published As

Publication number Publication date
JP2709720B2 (en) 1998-02-04

Similar Documents

Publication Publication Date Title
EP0434288B1 (en) Programmable logic controller and method of operation thereof
EP0336547A2 (en) Computer network and method for operating it
JPH0220197A (en) Line connecting system between numerical control device and its peripheral equipment
JP2905075B2 (en) Programmable controller and its exclusive control communication method
CN113557688B (en) Serial data communication device and serial data communication method
JPH05257515A (en) Radio manual operation panel and method for coupling between this panel and numerical controller
JP3444054B2 (en) Automatic setting method of device interconnection signal
JPH01237821A (en) Data transfer speed setting method for print control
JPS61236466A (en) Production technology information supplying system
JPS58182350A (en) Communication controller
JP2549217B2 (en) Response sequence transmission method
JPH01261707A (en) Programmable controller communication method
JPH03125532A (en) Down-load system for multi-point communication system
JPH0241505A (en) Remote monitoring and control device for NG equipment
JPS62190956A (en) Loop back testing method for communication circuit
JPS63305648A (en) Clock pulse supply system for data transmission and reception of communication controller
JPS63211942A (en) Non-procedure communication control method
JPH04117507A (en) Communication control circuit and data transmission equipment
JPH04336726A (en) Data transmitter
JPS6327135A (en) Transmission control equipment
JPS63181550A (en) Modem device with managing function
JPS63234649A (en) Communication control system
JPH0512206A (en) Derivation job controller
KR20020029551A (en) Method for recognizing controled subject of multiple control system
JPH0468854A (en) Method for automatically setting device set contents with remote operation