JP2709720B2 - Line connection method between the numerical controller and its peripheral devices - Google Patents

Line connection method between the numerical controller and its peripheral devices

Info

Publication number
JP2709720B2
JP2709720B2 JP16911688A JP16911688A JP2709720B2 JP 2709720 B2 JP2709720 B2 JP 2709720B2 JP 16911688 A JP16911688 A JP 16911688A JP 16911688 A JP16911688 A JP 16911688A JP 2709720 B2 JP2709720 B2 JP 2709720B2
Authority
JP
Japan
Prior art keywords
numerical controller
peripheral device
command
communication
response signal
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.)
Expired - Lifetime
Application number
JP16911688A
Other languages
Japanese (ja)
Other versions
JPH0220197A (en
Inventor
光人 宮田
耕太 宮本
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

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

Description

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

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

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

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

これらのオペレータの設定作業は、数値制御装置や周
辺機器のマニアル等を参照しながら行なわねばならず、
さらには、誤りなく設定されているか否か確認する必要
があり、これらオペレータの作業量を多くしている。
The setting work of these operators must be performed while referring to manuals of numerical control devices and peripheral devices, etc.
Further, it is necessary to confirm whether or not the setting has been made without error, and the workload of these operators is increased.

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

課題を解決するための手段 上記課題を解決するために、本発明における数値制御
装置は、該数値制御装置の周辺機器接続ケーブルに回線
設定のための通信条件を順次変えて周辺機器の呼出し指
令を所定時間間隔をおいて送出する。周辺機器では、通
信条件が合致する呼出し指令を検知すると、応答信号を
上記数値制御装置に返信し、数値制御装置は上記所定時
間間隔内に応答信号を受けると応答した時の呼出し指令
の通信条件を数値制御装置の通信条件に設定し、回線設
定を自動的に行うようにした。
Means for Solving the Problems In order to solve the above-mentioned problems, a numerical control device according to the present invention is configured to sequentially change communication conditions for line setting to a peripheral device connection cable of the numerical control device and issue a call command for a peripheral device. It is transmitted at a predetermined time interval. When the peripheral device detects a call command that matches the communication conditions, the peripheral device returns a response signal to the numerical control device, and the numerical control device receives the response signal within the predetermined time interval and responds to the call command when the response is received. Is set as the communication condition of the numerical controller, and the line setting is automatically performed.

作 用 数値制御装置は、周辺機器が接続されたケーブルにボ
ーレートやストップビット数等の通信条件を変えて順次
呼出し指令を送出する。周辺機器側では、この呼出し指
令を受信することとなるが、通信条件が該ケーブルに接
続された周辺機器に合致していなければ、周辺機器は呼
出し指令を認識することができず、応答信号を送出する
ことはない。一方、通信条件が合致し周辺機器が呼出し
指令を検出すると、応答信号を数値制御装置に送信す
る。数値制御装置は応答信号を受けて現時点で通信条件
を固定する。これにより、数値制御装置と周辺機器との
通信回線は通信可能状態に自動的に設定されることとな
る。
The numerical controller changes the communication conditions such as the baud rate and the number of stop bits to the cable to which the peripheral device is connected, and sends out the calling command sequentially. The peripheral device receives the call command. However, if the communication conditions do not match the peripheral device connected to the cable, the peripheral device cannot recognize the call command and output a response signal. It does not send. On the other hand, when the communication conditions are met and the peripheral device detects the call command, a response signal is transmitted to the numerical controller. The numerical controller receives the response signal and fixes the communication condition at the present time. As a result, the communication line between the numerical controller and the peripheral device is automatically set to a communicable state.

実施例 第1図は、本発明の一実施例における数値制御装置の
回線設定処理フローチャートを示す。この第1図に示す
回線設定のプロトコルが数値制御装置、周辺機器間に設
けられている点を除けば、数値制御装置及び周辺機器の
ハードウェアは従来のものと同じ構成であるので、数値
制御装置及び周辺機器の構成は省略する。
Embodiment FIG. 1 shows a flow chart of a line setting process of a numerical controller according to an embodiment of the present invention. Except for the point that the line setting protocol shown in FIG. 1 is provided between the numerical controller and the peripheral device, the hardware of the numerical controller and the peripheral device have the same configuration as that of the conventional device. The configuration of the device and peripheral devices is omitted.

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

すなわち、第2図に一例を示すように、初期設定され
たボーレート,ストップビット数からなるコマンド“ST
N"(STANDBY?)を送出する。第2図においては、2400ボ
ー,2ストップビットで構成されるコマンド“STN"を初期
設定されていたコマンドとして送出している。
That is, as shown in an example in FIG. 2, the command “ST” including the initially set baud rate and the number of stop bits is used.
N "(STANDBY?). In FIG. 2, the command" STN "composed of 2400 bauds and 2 stop bits is transmitted as the initially set command.

そして、タイマTをスタートさせ(ステップS2)、該
タイマTが設定時間t1(第2図参照)を計時しタイムア
ップする前に周辺機器から応答信号が返信されてきた否
か判断し(ステップS3,S4)、応答信号がなくタイマT
がタイムアップすると、すべての設定値でコマンドを送
出したか否か判断し(設定値の異なるコマンドがn種類
あれば、n種類のコマンドを送出したか否か判断する)
(ステップS5)、すべての設定値でコマンドを送出して
いれば、次の設定値によるコマンドを送出する(ステッ
プS6)。なお、第2図においては、4800ボー,2ストップ
ビットでコマンド“STN"を送出している。そして、再び
タイマTをリセットしてスタートさせ(ステップS7)、
タイマTがタイムアップするまで応答信号が周辺機器か
ら送信されてきた否か判断する(ステップS3,S4)。以
下、応答信号が送信されてくるまで、ステップS3〜S7の
処理を繰返し行う。すべての設定値によるコマンド“ST
N"を送出しても応答信号を受信しない場合には、周辺機
器や通信ケーブルの接続異常として、数値制御装置の表
示装置に周辺機器の異常表示を表示する(ステップS
8)。
Then, the timer T is started (step S2), and before the timer T counts the set time t1 (see FIG. 2) and before the time is up, it is determined whether or not a response signal is returned from the peripheral device (step S3). , S4), timer T without response signal
When the time is up, it is determined whether or not commands have been transmitted with all the set values (if there are n types of commands having different set values, it is determined whether or not n types of commands have been transmitted).
(Step S5) If the command has been transmitted with all the set values, the command with the next set value is transmitted (Step S6). In FIG. 2, the command "STN" is transmitted with 4800 baud and 2 stop bits. Then, the timer T is reset and started again (step S7),
Until the timer T times out, it is determined whether a response signal has been transmitted from the peripheral device (steps S3, S4). Hereinafter, the processing of steps S3 to S7 is repeated until a response signal is transmitted. Command "ST" using all setting values
If the response signal is not received even if "N" is transmitted, an error display of the peripheral device is displayed on the display device of the numerical controller as a connection error of the peripheral device or the communication cable (step S).
8).

一方、ある条件のコマンドを送出してタイマTがタイ
ムアップする前に周辺機器から応答信号があると(第2
図中t2<t1)、現在設定されているコマンドの条件に通
信条件を固定し、周辺機器の通信条件として数値制御装
置内のメモリ内に格納する(ステップS9)。即ち、数値
制御装置がボーレートやストップビット数の通信条件を
変えて周辺機器の呼出し信号“STN"を送出し、周辺機器
は自己の通信条件に合致する条件からなる呼出し信号の
コマンド“STN"を受信したとき始めて呼出し信号が送ら
れてきたことを検出し、応答信号を送出する。例えば、
第2図では、通信ケーブルに接続されている周辺機器が
フロッピーディスクドライブ装置(FDD)で、該フロッ
ピーディスクドライブ装置の通信条件が9600ボー,2スト
ップビットの構成であったときの例を示しており、数値
制御装置から、2400ボー,2ストップビットで構成される
呼出し信号のコマンド“STN"を送出し、次に、4800ボ
ー,2ストップビットのコマンド“STN"を送出し、次に、
9600ボー,2ストッピビットのコマンド“STN"を送出した
ときに、周辺機器のフロッピーディスクドライブ装置は
呼出し信号のコマンド“STN"を始めて検出し、数値制御
装置へ9600ボー,2ストップビットで構成される応答信号
のコマンド“OKF"(OK,FLOPPY)を返送し(タイマTの
設定時間t1は周辺機器が応答信号を送出するまでの時間
t2より長く設定されている)、数値制御装置は、この応
答信号のコマンド“OKF"を受信し(ステップS3)、通信
条件の値を現在の値(第2図の例では9600ボー,2ストッ
プビット)に固定し、この値をメモリ中に格納し、か
つ、周辺機器から返信されたコマンドから接続されてい
る周辺機器が何であるか認識しメモリに記憶する(ステ
ップS10)。即ち、第2図の例では返信コマンド“OKF"
よりフロッピーディスクドライブ装置が接続されている
ことを検出し記憶することとなる。こうして、通信回線
が設定された後、該記憶した通信条件によってデータの
やりとりが周辺機器と数値制御装置間で行われる。
On the other hand, if there is a response signal from the peripheral device before the command of the certain condition is transmitted and the timer T times out (second
In the figure, at t2 <t1), the communication condition is fixed to the currently set command condition and stored in the memory of the numerical controller as the communication condition of the peripheral device (step S9). That is, the numerical controller changes the communication conditions such as the baud rate and the number of stop bits, and sends out a call signal “STN” of the peripheral device, and the peripheral device issues a call signal command “STN” consisting of conditions that match its own communication condition. The first time that a call signal has been sent is detected upon reception, and a response signal is sent. 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 baud and 2 stop bits. Then, from the numerical controller, a command signal "STN" of a call signal composed of 2400 baud and 2 stop bits is transmitted, and then a command "STN" of 4800 baud and 2 stop bits is transmitted.
When the 9600 baud, 2 stop bit command “STN” is sent, the floppy disk drive of the peripheral device detects the call signal command “STN” for the first time and sends the 9600 baud, 2 stop bit to the numerical controller. Return the response signal command “OKF” (OK, FLOPPY). (Timer t is the time t1 until the peripheral device sends a response signal.
The numerical controller receives the command “OKF” of the response signal (step S3) and changes the communication condition value to the current value (9600 baud, 2 stops in the example of FIG. 2). Bit), and stores this value in the memory, and recognizes the connected peripheral device from the command returned from the peripheral device and stores it in the memory (step S10). That is, in the example of FIG. 2, the reply command “OKF”
Thus, the fact that the floppy disk drive is connected is detected and stored. After the communication line is set in this way, data is exchanged between the peripheral device and the numerical controller according to the stored communication conditions.

このように、接続された周辺機器との通信条件が自動
的に決定され、かつ、数値制御装置に接続された周辺機
器が何であるか自動的に認識されるから、周辺機器との
回線の設定を手動で設定する必要がない。
As described above, the communication conditions with the connected peripheral device are automatically determined, and the type of the peripheral device connected to the numerical controller is automatically recognized. There is no need to set manually.

発明の効果 本発明において、数値制御装置と接続周辺機器との通
信回線の通信条件の設定が自動的に行われ、通信可能な
状態に自動的に設定されるから、オペレータは、単に数
値制御装置と周辺機器とを通信ケーブルに接続するのみ
でよく、通信回線設定のための操作を他に何もする必要
がなく、オペレータの作業量を減らすことができる。
Effect of the Invention In the present invention, the communication condition of the communication line between the numerical control device and the connected peripheral device is automatically set and automatically set to a communicable state. It is only necessary to connect the communication device and the peripheral device to the communication cable, and there is no need to perform any other operation for setting the communication line, and the amount of work of the operator can be reduced.

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

第1図は本発明の一実施例における数値制御装置の回線
設定処理フローチャート、第2図は同実施例における数
値制御装置と周辺機器の信号送受の一例を説明する説明
図である。
FIG. 1 is a flow chart of a line setting process of a numerical controller according to an embodiment of the present invention, and FIG. 2 is an explanatory diagram for explaining an example of signal transmission and reception between the numerical controller and peripheral devices in the embodiment.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】数値制御装置は、該数値制御装置の周辺機
器接続ケーブルに、回線設定のための通信条件を順次変
えて周辺機器の呼出し指令を所定時間間隔をおいて送出
し、周辺機器では、通信条件が合致する呼出し指令を検
知すると、応答信号を上記数値制御装置に返信し、数値
制御装置は上記所定時間間隔内に応答信号を受けると応
答した時の呼出し指令の通信条件を数値制御装置の通信
条件に設定し、回線設定を自動的に行うようにした数値
制御装置とその周辺機器との回線接続方式。
A numerical controller sends a peripheral device calling command to a peripheral device connection cable of the numerical controller at predetermined time intervals while sequentially changing communication conditions for line setting. When a call command that matches the communication conditions is detected, a response signal is returned to the numerical controller. The numerical controller receives the response signal within the predetermined time interval and numerically controls the communication condition of the call command when responding. A line connection method between a numerical controller and its peripheral devices that is set to the communication conditions of the device and automatically sets the line.
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 JPH0220197A (en) 1990-01-23
JP2709720B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5999403B2 (en) * 2011-11-24 2016-09-28 富士電機株式会社 Electric motor drive

Also Published As

Publication number Publication date
JPH0220197A (en) 1990-01-23

Similar Documents

Publication Publication Date Title
EP0051861A2 (en) Unmanned diagnostic communications system for computer controlled machine tools
JPH03175560A (en) Method of communication between plural programmable logic controllers
JP2709720B2 (en) Line connection method between the numerical controller and its peripheral devices
JP2905075B2 (en) Programmable controller and its exclusive control communication method
JP3054783B2 (en) Numerical control unit
JP3109110B2 (en) Communication device and communication method
JPS62206946A (en) Remote test circuit
JP3171921B2 (en) Control system interface check method
JPH0764472A (en) Remote i/o system of programmable controller
JPH01237821A (en) Data transfer speed setting system for print control
JPH01297591A (en) Setting and processing system for system timepiece
JPS5812460A (en) Automatic transmission form matching device
JP2724572B2 (en) Token passing LAN device
JP3222030B2 (en) Terminal, monitoring device and communication device
JP2561366B2 (en) Data transfer device having function confirmation function
JP2663713B2 (en) Bus connection device
JP3108478B2 (en) Interrupt processing method for multiplex transmission system
JP2669367B2 (en) LAN adapter
JPS6238637A (en) Control system for transmission in multi-drop
JP2941266B1 (en) Encoder data output method for bus communication type encoder device
JPH0628279B2 (en) Substrate processing system communication controller
JPS61228600A (en) Remote monitor controller
JPH02260731A (en) Synchronizing system for electronic computer with terminal equipment
JPS59198049A (en) System for detecting data line speed
JPH07273835A (en) Numerical controller with serial communication state display function