JPH039401A - Numerical controller - Google Patents

Numerical controller

Info

Publication number
JPH039401A
JPH039401A JP14444589A JP14444589A JPH039401A JP H039401 A JPH039401 A JP H039401A JP 14444589 A JP14444589 A JP 14444589A JP 14444589 A JP14444589 A JP 14444589A JP H039401 A JPH039401 A JP H039401A
Authority
JP
Japan
Prior art keywords
external
serial
state
signals
output
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.)
Pending
Application number
JP14444589A
Other languages
Japanese (ja)
Inventor
Shoichi Otsuka
大塚 昭一
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 JP14444589A priority Critical patent/JPH039401A/en
Publication of JPH039401A publication Critical patent/JPH039401A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To output a logical signal corresponding to the state of an individual external I/O source independently of the common states of external I/O sources by controlling the polarity of external signals at the time of serial transfer in accordance with respective common states of receiver circuits and driver circuits. CONSTITUTION:The I/O part 1 is connected to external machines through plural receiver circuits 2, 3 and plural driver circuits 4, 5. Signals inputted from the external machines to the receivers 2, 3 are simultaneously outputted to a parallel /serial converter 6 as parallel signals and the converter 6 converts the parallel signals from the circuits 2, 3 into serial signals and successively outputs the serial signals to a serial interface 7. Signal transfer between the I/O part 1 and a numerical control part 12 is serially executed through the serial interface 7 and the polarity of the serial signals is controlled in accordance with the common states. Consequently, a logical signal corresponding to the state of the I/O source in each external machine can be outputted independently of the common state or polarity state of the external I/O signals.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は工作機械等を制御する数値制御装置に係り、特
にリレー、スイッチ等の外部入出力信号をシリアル転送
で行う数値制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a numerical control device for controlling machine tools and the like, and particularly to a numerical control device that serially transfers external input/output signals from relays, switches, etc.

〔従来の技術〕[Conventional technology]

数値制御装置と外部機械(工作機械又はロボット等)と
の間を結合するインターフェイスは、般に外部入出力(
DI/DO)の信号点数の増加により、シリアル・イン
ターフェイスが使用されている。特に、外部入力CDI
)用のレシーバ回路は+24VコモンとOVコモンとの
2種類が用意されており、外部機械に応じて、いずれの
コモンも選択できるようになっている。従って、外部機
械の信号源(例えば接点等)の状態を読んだ場合に、そ
の論理の「1」とrO」との関係がコモンの状態によっ
て反転してしまう。
An interface that connects a numerical control device and an external machine (machine tool or robot, etc.) generally has external input/output (
Due to the increase in the number of signal points of DI/DO), serial interfaces are being used. In particular, external input CDI
) receiver circuits are available in two types: +24V common and OV common, and either common can be selected depending on the external machine. Therefore, when reading the state of a signal source (for example, a contact) of an external machine, the relationship between the logic "1" and "rO" is reversed depending on the common state.

そこで、従来の数値制御装置ではコモンの選択信号自体
も外部人力(DI)信号として入力し、数値制御装置側
で外部信号源の状態を判断していた。
Therefore, in conventional numerical control devices, the common selection signal itself is also input as an external human input (DI) signal, and the state of the external signal source is determined on the numerical control device side.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、従来技術の場合、コモンを切り換えた場合に、
数値制御装置内部では、そのコモンの状態信号をまず確
認する。その後、外部人力(DI)信号を読み、そのコ
モン状態信号に応じてその外部入力信号(DI)の反転
処理を行ったり、行わなかったりして、外部入力信号の
論理を統一していた。このことは、外部出力(DO)信
号の場合も同様に行われていた。従って、外部の入出力
信号源の数が増加するにともなって数値制御装置の負担
が大きくなり、数値制御装置の処理が複雑になり、論理
ミスが生じ易くなるという問題が生じていた。
However, in the case of the conventional technology, when switching the common,
Inside the numerical control device, first check the common status signal. Thereafter, the logic of the external input signals is unified by reading the external input signal (DI) and inverting or not inverting the external input signal (DI) depending on the common state signal. This was done similarly for external output (DO) signals. Therefore, as the number of external input/output signal sources increases, the load on the numerical control device increases, the processing of the numerical control device becomes complicated, and logic errors are more likely to occur.

本発明はこのような点に鑑みてなされたものであり、外
部入出力のコモンの状態に関係なく外部入出力源の状態
に応じた論理信号を出力することのできる入出力回路を
備えた数値制御装置を提供することを目的とする。
The present invention has been made in view of these points, and provides a numerical value equipped with an input/output circuit that can output a logic signal according to the state of an external input/output source regardless of the state of the external input/output common. The purpose is to provide a control device.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するために、外部機械等に接
続された複数個のレシーバ回路及びドライバ回路を介し
て外部信号の入出力を制御する入出力部と、軸制御等を
行う数値制御部との間で前記外部信号をシリアルに転送
する数値制御装置において、前記レシーバ回路及びドラ
イバ回路のそれぞれのコモン状態に応じて前記シリアル
転送時の前記外部信号の極性を制御する手段を設けたこ
とを特徴とする数値制御装置が、提供される。
In order to solve the above problems, the present invention includes an input/output section that controls the input/output of external signals via a plurality of receiver circuits and driver circuits connected to external machines, etc., and a numerical control section that performs axis control etc. In the numerical control device for serially transmitting the external signal between A numerical control device with features is provided.

〔作用〕[Effect]

入出力部と数値制御部との間の信号転送はシリアル・イ
ンターフェイスを介してシリアル転送で行われているの
で、シリアル信号の極性をコモン状態に応じて制御、即
ちその極性を反転及び非反転してやれば、外部に接続さ
れた機械の信号源の状態がそのコモン状態とは無関係に
一定の関係となる。従って、数値制御部ではコモン状態
とは無関係に機械側の信号源の状態を判断することが可
能となる。
Since the signal transfer between the input/output section and the numerical control section is carried out by serial transfer via the serial interface, the polarity of the serial signal should be controlled according to the common state, that is, the polarity should be inverted or non-inverted. For example, the state of a signal source of an externally connected machine has a fixed relationship regardless of its common state. Therefore, the numerical control section can determine the state of the signal source on the machine side regardless of the common state.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は本発明を実施するための数値制御装置のハード
ウェアの概略構成図である。図において、入出力(DI
/DO)部1は複数個のレシーバ回路2及び3と、ドラ
イバ回路4及び5とを介して図示していない外部機械に
接続される。本図ではレシーバ回路及びドライバ回路は
2個示したがこれ以上接続してもよいことはいうまでも
ない。
FIG. 1 is a schematic diagram of the hardware configuration of a numerical control device for implementing the present invention. In the figure, input/output (DI
/DO) unit 1 is connected to an external machine (not shown) via a plurality of receiver circuits 2 and 3 and driver circuits 4 and 5. Although two receiver circuits and two driver circuits are shown in this figure, it goes without saying that more than two receiver circuits and driver circuits may be connected.

レシーバ回路2及び3は8本の人力信号線を有し、それ
ぞれの入力信号線に外部機械が接続される。レシーバ回
路2及び3に入力された外部機械の信号は並列信号とし
てパラレル・シリアル(P/S)変換器6に同時に出力
される。
The receiver circuits 2 and 3 have eight human input signal lines, and an external machine is connected to each input signal line. External machine signals input to the receiver circuits 2 and 3 are simultaneously output to a parallel/serial (P/S) converter 6 as parallel signals.

パラレル・シリアル変換器6はレシーバ回路2及び3の
パラレル信号をシリアル信号に変換し、シリアル・イン
ターフェイス7に順次出力する。
The parallel-to-serial converter 6 converts the parallel signals of the receiver circuits 2 and 3 into serial signals and sequentially outputs them to the serial interface 7.

また、シリアル・インターフェイス7からのシリアル信
号をパラレル信号に変換し、ドライバ回路4及び5に同
時に出力する。
It also converts the serial signal from the serial interface 7 into a parallel signal and outputs it to the driver circuits 4 and 5 simultaneously.

ドライバ回路4及び5は8本の出力信号線を有し、それ
ぞれの出力信号線に外部機械が接続される。ドライバ回
路4及び5はパラレル・シリアル変換器6からのパラレ
ル信号を外部機械へ制御信号として出力する。
The driver circuits 4 and 5 have eight output signal lines, and an external machine is connected to each output signal line. Driver circuits 4 and 5 output parallel signals from parallel-to-serial converter 6 to external machines as control signals.

シリアル・インターフェイス7は数値制御部I2のシリ
アル・インターフェイス13に反転回路8を介して接続
され、シリアル信号の送受信を行う。従って、シリアル
・インターフェイス7及び13の出力はそれぞれ反転回
路8を介して出力される。反転回路8は反転制御回路9
の制御信号に応じてシリアル信号を反転したり、反転し
なかったりする。即ち、シリアル・インターフェイス7
及び13から出力されるシリアル信号は反転されて出力
されるか、反転されないで直接出力される。
The serial interface 7 is connected to the serial interface 13 of the numerical control section I2 via an inverting circuit 8, and performs transmission and reception of serial signals. Therefore, the outputs of serial interfaces 7 and 13 are outputted via inverting circuit 8, respectively. The inversion circuit 8 is an inversion control circuit 9
The serial signal may or may not be inverted depending on the control signal. That is, serial interface 7
The serial signals output from and 13 are either inverted and output, or directly output without being inverted.

コモン選択回路10及び極性選択回路11はレシーバ回
路2及び3、ドライバ回路4及び5のコモン状態又は極
性状態をテーブルとして記憶しておき、パラレル・シリ
アル変換器6の制御しているレシーバ回路2及び3のコ
モン状態、又はドライバ回路4及び5の極性状態を反転
制御回路9に出力する。このとき、コモン状態及び極性
状態のテーブルはレシーバ回路又はドライバ回路毎に設
けてもよいし、レシーバ回路及びドライバ回路の入出力
信号線毎に設けてもよい。
The common selection circuit 10 and the polarity selection circuit 11 store the common state or polarity state of the receiver circuits 2 and 3 and the driver circuits 4 and 5 as a table, and select the common state or polarity state of the receiver circuits 2 and 3 controlled by the parallel-to-serial converter 6. 3 or the polarity states of the driver circuits 4 and 5 are output to the inversion control circuit 9. At this time, the common state and polarity state tables may be provided for each receiver circuit or driver circuit, or may be provided for each input/output signal line of the receiver circuit and driver circuit.

反転制御回路9はコモン選択回路10及び極性選択回路
11の出力に応じて反転回路8の動作を制御する。
The inversion control circuit 9 controls the operation of the inversion circuit 8 according to the outputs of the common selection circuit 10 and the polarity selection circuit 11.

数値制御部12はシリアル・インターフェイス13を介
して入出力(D I/Do)部1に結合される。数値制
御部12の軸制御部14はシリアル・インターフェイス
13を介してシリアル信号の入出力を行い、軸制御等を
実行する。
Numerical control unit 12 is coupled to input/output (DI/Do) unit 1 via serial interface 13 . The axis control section 14 of the numerical control section 12 inputs and outputs serial signals via the serial interface 13 to execute axis control and the like.

軸制御部14には軸制御機能を実行すると共にシーケン
ス制御機能を実行するPC部を有する。
The axis control section 14 has a PC section that executes an axis control function and a sequence control function.

このPC部は図示していないが、全体を制御するCPU
と、PMCを制御する管理プログラム及び機械を制御す
るラダープログラム等を格納するROMと、入出力信号
及び各種のデータを格納するRAMとからなり、シリア
ル・インターフェイス13及びシリアル・インターフェ
イス7を介して機械側の人力(DI)及び出力(DO)
の授受を行う。
Although this PC section is not shown, the CPU that controls the entire
, a ROM that stores a management program that controls the PMC, a ladder program that controls the machine, and a RAM that stores input/output signals and various data. Side manpower (DI) and output (DO)
Give and receive.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

レシーバ回路2がOVコモン、レシーバ回路3が+24
Vコモンに設定しである場合について説明する。レシー
バ回路2の人力信号線に接続された機械側の接点が開く
オフ)のときは、レシーバ回路2からはハイレベル「1
」が出力され、閉(オン)のときはロウレベル「0」が
出力される。
Receiver circuit 2 is OV common, receiver circuit 3 is +24
The case where it is set to V common will be explained. When the contact on the machine side connected to the human power signal line of the receiver circuit 2 is open (off), the receiver circuit 2 outputs a high level "1".
" is output, and when it is closed (on), a low level "0" is output.

レシーバ回路3の場合はこれとは逆に、機械側の接点が
開(オフ)のときは、レシーバ回路3からはロウレベル
「0」が出力され、閉(オン)のときはハイレベル「1
」が出力されることになる。
In the case of the receiver circuit 3, on the contrary, when the contact on the machine side is open (off), a low level "0" is output from the receiver circuit 3, and when it is closed (on), a high level "1" is output.
' will be output.

一方、数値制御部12の軸制御部14では、ハイレベル
「1」のときに機械側の接点は開(オフ)と判断し、ロ
ウレベル「0」のときに閉(オン)と判断する。
On the other hand, the axis control unit 14 of the numerical control unit 12 determines that the contact on the machine side is open (off) when the high level is "1", and determines that the contact on the machine side is closed (on) when the low level is "0".

パラレル・シリアル変換器6がレシーバ2からのパラレ
ル信号を人力し、数値制御部12に転送するときは、コ
モン選択回路10からはロウレベル「0」が出力され、
レシーバ2がOVコモンであることを反転制御回路9に
出力する。反転制御回路9はこのロウレベル「0」によ
って反転回路8を動作させない。即ち、反転回路8はシ
リアル・インターフェイス7の出力を反転しない。従っ
て、シリアル・インターフェイス7からはパラレル・シ
リアル変換器6のシリアル信号がそのまま数値制御部1
2のシリアル・インターフェイス13に出力される。
When the parallel-serial converter 6 manually inputs the parallel signal from the receiver 2 and transfers it to the numerical control unit 12, the common selection circuit 10 outputs a low level "0",
It outputs to the inversion control circuit 9 that the receiver 2 is OV common. The inversion control circuit 9 does not operate the inversion circuit 8 due to this low level "0". That is, the inverting circuit 8 does not invert the output of the serial interface 7. Therefore, the serial signal from the parallel-to-serial converter 6 is directly transmitted from the serial interface 7 to the numerical control unit 1.
The signal is output to the serial interface 13 of No. 2.

次に、パラレル・シリアル変換器6がレシーバ3からの
パラレル信号を人力し、数値制御部12に転送するとき
は、コモン選択回路10からはハイレベルr1」が出力
され、レシーバ3が+24Vコモンであることを反転制
御回路9に出力する。
Next, when the parallel-serial converter 6 manually inputs the parallel signal from the receiver 3 and transfers it to the numerical control unit 12, the common selection circuit 10 outputs a high level r1, and the receiver 3 receives the +24V common signal. A certain fact is output to the inversion control circuit 9.

反転制御回路9はこのハイレベル「1」によって反転回
路8を動作させる。即ち、反転回路8はシリアル・イン
ターフェイス7の出力を反転する。
The inversion control circuit 9 operates the inversion circuit 8 by this high level "1". That is, the inverting circuit 8 inverts the output of the serial interface 7.

従って、シリアル・インターフェイス7からはパラレル
・シリアル変換器6のシリアル信号が反転されて数値制
御部12のシリアル・インターフェイス13に出力され
る。故に、レシーバ回路3に接続された機械側の接点が
開(オフ)であり、レシーバ回路3からはロウレベル「
0」が出力されたとしても、数値制御部のシリアル・イ
ンターフェイス13にはその反転された出力・即ちハイ
レベル「1」が入力され、軸制御部14は機械側の接点
が開(オフ)であることを判断できる。
Therefore, the serial signal from the parallel-to-serial converter 6 is inverted and output from the serial interface 7 to the serial interface 13 of the numerical control section 12. Therefore, the contact on the machine side connected to the receiver circuit 3 is open (off), and the receiver circuit 3 outputs a low level "
Even if ``0'' is output, the serial interface 13 of the numerical control unit receives the inverted output, that is, a high level ``1'', and the axis control unit 14 inputs the machine-side contact when it is open (off). I can judge something.

以上の動作をドライバ回路4及び5についても行うこと
によって、数値制御部12ではドライバ回路を制御する
機械の極性状態とは無関係に機械側の接点を制御するこ
とが可能となる。
By performing the above operations for the driver circuits 4 and 5 as well, the numerical control section 12 can control the contacts on the machine side regardless of the polarity state of the machine that controls the driver circuits.

尚、上記の実施例では、レシーバ回路又はドライバ回路
毎にコモン選択回路又は極性選択回路が出力される場合
について説明したが、レシーバ回路及びドライバ回路の
入出力信号線毎に反転制御回路へ制御信号を出力するよ
うにしてもよい。また、反転回路8はシリアル・インタ
ーフェイス70前後どちらに設けてもよい。
In the above embodiment, a case was explained in which a common selection circuit or a polarity selection circuit is output for each receiver circuit or driver circuit, but a control signal is sent to an inversion control circuit for each input/output signal line of a receiver circuit or a driver circuit. It may also be possible to output . Furthermore, the inverting circuit 8 may be provided either before or after the serial interface 70.

以上、本実施例によればシリアル信号の極性をコモン状
態又は極性状態に応じて反転してやるだけでよく、また
反転回路はシリアル信号を反転するだけなので1ビット
分という小規模のハードウェアの付加で実現することが
可能となる。
As described above, according to this embodiment, it is only necessary to invert the polarity of the serial signal according to the common state or the polarity state, and since the inverting circuit only inverts the serial signal, the addition of small-scale hardware for one bit is required. It becomes possible to realize this.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、外部入出力信号の
コモン状態又は極性状態に関係なく外部機械の入出力源
の状態に応じた論理信号を出力することのできる入出力
回路を備えた数値制御装置を提供することができる。
As explained above, according to the present invention, a numerical value equipped with an input/output circuit that can output a logic signal according to the state of the input/output source of an external machine regardless of the common state or polarity state of the external input/output signal. A control device can be provided.

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

第1図は本発明を実施するための数値制御装置のハード
ウェアの概略構成図である。 2.3 4.5 7、13 10 ″ 1 2 入出力(DI/D○)部 レシーバ回路 ドライバ回路 パラレル・シリアル変換器 シリアル・インターフェイス 反転回路 反転制御回路 コモン選択回路 極性選択回路 数値制御部 4 軸制御部
FIG. 1 is a schematic diagram of the hardware configuration of a numerical control device for implementing the present invention. 2.3 4.5 7, 13 10 ″ 1 2 Input/output (DI/D○) section Receiver circuit Driver circuit Parallel/serial converter Serial interface Inversion circuit Inversion control circuit Common selection circuit Polarity selection circuit Numerical control section 4 axis control part

Claims (4)

【特許請求の範囲】[Claims] (1)外部機械等に接続された複数個のレシーバ回路及
びドライバ回路を介して外部信号の入出力を制御する入
出力部と、軸制御等を行う数値制御部との間で前記外部
信号をシリアルに転送する数値制御装置において、 前記レシーバ回路及びドライバ回路のそれぞれのコモン
状態及び極性状態に応じて前記シリアル転送時の前記外
部信号の極性を制御する手段を設けたことを特徴とする
数値制御装置。
(1) The external signals are transmitted between an input/output unit that controls the input/output of external signals via multiple receiver circuits and driver circuits connected to external machines, etc., and a numerical control unit that performs axis control, etc. A numerical control device for serial transfer, characterized in that a means is provided for controlling the polarity of the external signal during the serial transfer according to the common state and polarity state of each of the receiver circuit and the driver circuit. Device.
(2)前記コモン状態及び極性状態は前記レシーバ回路
及びドライバ回路毎に設定されることを特徴とする特許
請求の範囲第1項記載の数値制御装置。
(2) The numerical control device according to claim 1, wherein the common state and polarity state are set for each of the receiver circuit and driver circuit.
(3)前記コモン状態及び極性状態は前記レシーバ回路
及びドライバ回路の各グループ毎に設定されることを特
徴とする特許請求の範囲第1項記載の数値制御装置。
(3) The numerical control device according to claim 1, wherein the common state and polarity state are set for each group of the receiver circuit and the driver circuit.
(4)前記入出力部は前記コモン状態及び極性状態に応
じて前記信号の極性を反転及び非反転させることを特徴
とする特許請求の範囲第1項、第2項又は第3項記載の
数値制御装置。
(4) The input/output unit inverts or non-inverts the polarity of the signal depending on the common state and the polarity state. Control device.
JP14444589A 1989-06-07 1989-06-07 Numerical controller Pending JPH039401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14444589A JPH039401A (en) 1989-06-07 1989-06-07 Numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14444589A JPH039401A (en) 1989-06-07 1989-06-07 Numerical controller

Publications (1)

Publication Number Publication Date
JPH039401A true JPH039401A (en) 1991-01-17

Family

ID=15362392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14444589A Pending JPH039401A (en) 1989-06-07 1989-06-07 Numerical controller

Country Status (1)

Country Link
JP (1) JPH039401A (en)

Similar Documents

Publication Publication Date Title
CN85109274A (en) The interface arrangement of device controller
KR100359422B1 (en) Serial communication circuit
US4404556A (en) Bit expansion circuit
JPH039401A (en) Numerical controller
JP2719460B2 (en) Teaching operation panel connection device
KR950015081B1 (en) Switching method and unit of communication mode
JPH0816220A (en) Programmable sequence controller
JPH039498B2 (en)
JPS6136859A (en) Interface controller
JPS61112204A (en) Input/output for remote process
JPH0368007A (en) Information processor
KR910000875B1 (en) A method and an apparatus for transfering serial data without addressing of i/o modules in programmable logic controller
JPH04117507A (en) Communication control circuit and data transmission equipment
JPH0282342A (en) Data communication equipment
JPH03268159A (en) Console connection system for maintenance
KR100244885B1 (en) Multiple interrupt communication circuit
KR900002365B1 (en) Control apparatus of digital input or output
KR0160994B1 (en) High speed interfacing method of numeric control apparatus
KR880000422B1 (en) Matrix key and data selector
JP2663489B2 (en) Power control device
JP3328940B2 (en) I / O expansion equipment
JPS6285365A (en) Information transferring system
JPH08297651A (en) Array processor
French et al. A master-slave controller for a flexible manufacturing system
JPH01307342A (en) Data terminal equipment