JPH05333908A - Input/output device - Google Patents

Input/output device

Info

Publication number
JPH05333908A
JPH05333908A JP4139415A JP13941592A JPH05333908A JP H05333908 A JPH05333908 A JP H05333908A JP 4139415 A JP4139415 A JP 4139415A JP 13941592 A JP13941592 A JP 13941592A JP H05333908 A JPH05333908 A JP H05333908A
Authority
JP
Japan
Prior art keywords
input
output
information
external device
communication means
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
JP4139415A
Other languages
Japanese (ja)
Inventor
Masashi Yagisawa
正史 八木澤
Yukihiro Umehara
幸浩 梅原
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.)
Nitto Seiko Co Ltd
Original Assignee
Nitto Seiko Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nitto Seiko Co Ltd filed Critical Nitto Seiko Co Ltd
Priority to JP4139415A priority Critical patent/JPH05333908A/en
Publication of JPH05333908A publication Critical patent/JPH05333908A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Debugging And Monitoring (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To decide an abnormal operation in a debugging operation state through the collation carried out between two types of information by providing a function to an input/output device to carry out the debugging operation independently of a main controller. CONSTITUTION:The communication is carried out to a main controller and the information received by an upstream communication means 5 is immediately transmitted through a downstream communication means 6. When this information is accordant with the prescribed conditions, the information stored in an arithmetic memory 11 for drive of an external device is outputted to this device via a parallel input/output circuit 7. Thus, the external device is driven. Then, the information received by the means 6 is immediately transmitted through the means 5. Meanwhile, a debugging communication means 12 has the communication with a personal computer to define a downstream input/output device as a debugging subject and to cut the information sent from an upstream device through the means 5. Then, it is possible to actuate a specific external device or to check the input information on the external device with the subsequent debugging commands. Thus, an abnormality during the debugging can be decided.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、産業用ロボット本体か
ら独立して設置される制御装置を補助し、センサ等の入
力や電磁弁等の出力を担当する入出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output device which assists a control device installed independently of an industrial robot main body and takes charge of input of a sensor or the like and output of a solenoid valve or the like.

【0002】[0002]

【従来の技術】近年、多品種小量生産に於ける部品の挿
入、組立等の作業に汎用性に富む産業用ロボットの使用
が増大している。このロボットの制御装置は設置された
機械から独立して配置される自立型が多く、また該機械
も複数の独立した部分から構成される場合が多い。その
場合、制御装置と該機械を結ぶ配線が膨大になりその結
果配線工程が増大するので、それを避けるために該機械
毎に入出力装置を取り付け、制御装置は入出力装置と通
信回線を用いて入出力情報の授受を行う、という方法が
一般的である。
2. Description of the Related Art In recent years, the use of industrial robots having high versatility in the work of inserting and assembling parts in high-mix low-volume production has been increasing. The control device of this robot is often a self-supporting type that is arranged independently of the installed machine, and the machine is also often composed of a plurality of independent parts. In that case, the wiring connecting the control device and the machine becomes enormous, resulting in an increase in the wiring process. To avoid this, an input / output device is attached to each machine, and the control device uses the input / output device and the communication line. A general method is to exchange input / output information.

【0003】[0003]

【発明が解決しようとする課題】ところが従来の入出力
装置は、主制御装置と独立して動作できないために、外
部機器の一部が先に組み上がっても、該機器全体が組み
上がり配線も完了した状態でないと主制御装置を使い個
々の該機器の動作確認ができない。このため、該機器全
てが完成して組み上がった状態まで待つ事になり、納期
が長くなる。それを解決するために入出力機器の一部が
完成するとその都度、入出力装置のON、OFFスイッ
チを使い該機器を駆動して動作確認を行っていたが入出
力機器に近づくために危険な場合があり、しかも入出力
機器が動作しない場合にその原因を調べるために配線か
ら調べるので時間がかかる、という問題点があった。
However, since the conventional input / output device cannot operate independently of the main control device, even if a part of the external device is assembled first, the entire device is assembled and wiring is also performed. Unless it is in a completed state, the operation of each individual device cannot be confirmed using the main controller. For this reason, it is necessary to wait until all the devices are completed and assembled, and the delivery time becomes long. When a part of the input / output device is completed to solve it, the ON / OFF switch of the input / output device is used to drive the device to check the operation each time, but it is dangerous because it approaches the input / output device. In some cases, when the input / output device does not operate, it takes time because the wiring is used to check the cause.

【0004】本発明は、上記問題点に鑑み機器全体が組
み上がらなくても主制御装置と独立してデバッグ動作が
できる機能を入出力装置に持たせる事で、先に組み上が
った外部機器から動作確認を行うことができる入出力装
置を提供することを目的としている。
In view of the above problems, the present invention allows an input / output device to have a function of performing a debugging operation independently of the main control unit even if the entire device is not assembled, so that the external device previously assembled can be used. An object is to provide an input / output device capable of performing operation confirmation.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、外部機器と接続され、該機器の動作状態を確認し該
機器へ動作指令を発する第一の通信手段と、自装置より
上流側の装置と高速で通信する第二の通信手段と、自装
置より下流側の装置と高速で通信する第三の通信手段
と、パソコンと通信する第四の通信手段と、第二の通信
手段を通じて得る動作指令が自装置宛の場合は第一の通
信手段へ出力して外部機器を駆動し、自装置以外の場合
は第三の通信手段を通して下流側へ送信し、下流側装置
で得る動作確認情報に外部機器から得た外部機器動作確
認信号を付加した状態でそのまま上流側へ送信する一方
で第四の通信手段に対してパソコンが接続されている場
合には第二の通信手段の機能を停止し、あたかも最上流
の入出力装置として振舞い、第四の通信手段を介してパ
ソコンと通信するように制御する制御手段とを特徴とす
る。
In order to achieve the above object, first communication means connected to an external device, for confirming the operating state of the device and issuing an operation command to the device, and upstream of the own device. Through the second communication means for communicating at high speed with the device, the third communication means for communicating at high speed with the device on the downstream side of the own device, the fourth communication means for communicating with the personal computer, and the second communication means. When the obtained operation command is addressed to the own device, it is output to the first communication means to drive the external device, and when it is not the own device, it is transmitted to the downstream side through the third communication means, and the operation confirmation obtained by the downstream side device The information is sent to the upstream side with the external device operation confirmation signal obtained from the external device added as it is, while if the personal computer is connected to the fourth communication means, the function of the second communication means is changed. Stop, as if it were the most upstream I / O device Dance, characterized by control means for controlling so as to communicate with the computer via the fourth communication unit.

【0006】[0006]

【作用】本発明の入出力装置は、通常の使用時において
は該装置を制御する主制御装置の制御に基づき外部機器
の制御動作を行い、デバッグ動作時においてはパソコン
からの指令に基づき外部機器を動かし該機器からの出力
情報を受信してパソコンへ送信し表示する。その結果と
して、外部機器の動作状況とパソコンに表示された情報
という2種類の情報を照合し、デバッグ動作時における
異常動作の判断を行う。
The input / output device of the present invention controls the external device under the control of the main control device for controlling the device during the normal use, and the external device under the command from the personal computer during the debug operation. Is operated to receive the output information from the device and send it to the personal computer for display. As a result, two kinds of information, that is, the operation status of the external device and the information displayed on the personal computer are collated, and the abnormal operation is judged during the debug operation.

【0007】[0007]

【実施例】図2は本発明の接続図である。本図におい
て、入出力装置2Cと2Dと2Eと2Fと2Gは連鎖型
に接続されている。つまり、入出力装置2Cの24C端
子と入出力装置2Dの22D端子間に信号線12Cを用
いて両装置間の情報が授受され、入出力装置2Dの24
D端子と入出力装置2Eの22E端子間に信号線12D
を用いて両装置間の情報が授受され、入出力装置2Eの
24E端子と入出力装置2Fの22F端子間に信号線1
2Eを用いて両装置間の情報が授受され、入出力装置2
Fの24F端子と入出力装置の22G端子間に信号線1
2Fを用いて両装置間の情報が授受され、入出力装置2
Gより下方の装置はないので該装置2Gの24G端子か
ら出力される情報は再び同端子に入力されるという短絡
の形をとる。従って主制御装置2Aから送信された情報
は、該装置2Aから信号線12Aを通って入出力装置2
Cの端子22Cに転送され、該装置2Cから入出力装置
2Dへ転送され、該装置2Dから入出力装置2Eへ転送
され、該装置2Eから入出力装置2Fへ転送され、該装
置2Fから入出力装置2Gへ転送される。更に、入出力
装置2Gから主制御装置2Aへ情報を逆に送信すること
もできる。それぞれの入出力装置は、自装置に接続され
ている外部機器を動かし、かつ該機器に付属しているセ
ンサの情報を受信する用途としての入出力端子台を持
つ。この端子台から外部機器を駆動する信号が出力さ
れ、かつ外部機器付属のセンサから出力される情報がこ
の端子台で受信される。例えば、入出力装置2Cは入出
力装置端子台21Cを持ち、この端子台21Cから外部
機器を駆動する信号が信号線13Cを通り外部機器の例
えばモータを駆動し、外部機器のセンサが得た情報は信
号線14Cを通り入出力端子台21Cへ入力される。他
の入出力端子台21D,21E、21F,21Gについ
ては入出力端子台21Cと同じ機能を持つので説明は省
略する。更に信号線13D,13E、13F,13G及
び14C,14E、14F、14Gについても信号線1
3C、14Cと同じ機能を持つので説明は省略する。こ
の様に接続することにより、主制御装置2Aは例えば入
出力装置2Gに接続されている外部機器を駆動できると
同時に、入出力装置2Gに接続されている外部機器の動
作状態を検出できる。更に、それぞれの入出力装置はパ
ソコン2Bと接続するための端子を使ってパソコン2B
と交信を行い、例えばパソコン2Bからデバッグ動作を
開始する指令を受信する。本図では、入出力装置2Eは
端子23Eから信号線12Bを使いパソコン2Bと交信
している。他の入出力装置の端子23Cと23Dと23
Fと23Gは端子23Eと同じ機能を持つのでこれらの
端子の説明は省略する。
FIG. 2 is a connection diagram of the present invention. In this figure, the input / output devices 2C, 2D, 2E, 2F and 2G are connected in a chain. That is, information between the input / output device 2C and the device 22D is exchanged between the 24C terminal of the input / output device 2C and the 22D terminal of the input / output device 2D by using the signal line 12C.
A signal line 12D is provided between the D terminal and the 22E terminal of the input / output device 2E.
Information is exchanged between the two devices by using the signal line 1 between the 24E terminal of the input / output device 2E and the 22F terminal of the input / output device 2F.
2E is used to exchange information between the two devices, and the input / output device 2
Signal line 1 between the 24F terminal of F and the 22G terminal of the input / output device
Information is exchanged between both devices using 2F, and the input / output device 2
Since there is no device below G, the information output from the 24G terminal of the device 2G is input to the same terminal again in the form of a short circuit. Therefore, the information transmitted from the main control device 2A is transmitted from the device 2A through the signal line 12A to the input / output device 2
The data is transferred to the terminal 22C of C, transferred from the device 2C to the input / output device 2D, transferred from the device 2D to the input / output device 2E, transferred from the device 2E to the input / output device 2F, and input / output from the device 2F. It is transferred to the device 2G. Further, information can be transmitted in reverse from the input / output device 2G to the main control device 2A. Each input / output device has an input / output terminal block for the purpose of moving an external device connected to the device itself and receiving information of a sensor attached to the device. A signal for driving an external device is output from this terminal block, and information output from a sensor attached to the external device is received by this terminal block. For example, the input / output device 2C has an input / output device terminal block 21C, and a signal for driving an external device from the terminal block 21C passes through a signal line 13C to drive, for example, a motor of the external device, and information obtained by a sensor of the external device. Is input to the input / output terminal block 21C through the signal line 14C. The other input / output terminal blocks 21D, 21E, 21F, and 21G have the same functions as the input / output terminal block 21C, and a description thereof will be omitted. Furthermore, the signal line 1 is also used for the signal lines 13D, 13E, 13F, 13G and 14C, 14E, 14F, 14G.
Since it has the same function as 3C and 14C, the explanation is omitted. By connecting in this way, the main control device 2A can drive, for example, an external device connected to the input / output device 2G, and at the same time can detect the operating state of the external device connected to the input / output device 2G. Furthermore, each input / output device uses a terminal for connecting with the personal computer 2B.
And a command to start the debug operation is received from the personal computer 2B, for example. In this figure, the input / output device 2E communicates with the personal computer 2B using the signal line 12B from the terminal 23E. Terminals 23C, 23D and 23 of other input / output devices
Since F and 23G have the same function as the terminal 23E, description of these terminals will be omitted.

【0008】図1は各入出力装置の構成図である。本図
において、当該装置を制御するために当該装置制御用C
PU9、及び制御プログラム記憶用プログラムメモリ1
0(内容については後述する)、外部機器の入出力情報
その他を一時的に記憶する演算用メモリ11、モニタ装
置としてのパソコン2Bと情報の転送を行うためのデバ
ッグ用通信手段12、他の入出力装置と情報の転送を行
う上流用高速通信手段5と下流用高速通信手段6、外部
機器と情報転送を行う並列入出力回路7、及び通信コネ
クタ2、3、4及び外部機器例えば電磁弁、センサ等の
信号と接続される入出力端子台1、及び制御用CPU9
を動作させるための5ボルトの電源回路8から構成され
る。デバッグ用通信手段12は、9600bpsの通信
速度を持つRS232C規格を用いて規格対応のレシー
バドライバICとシリアルコントローラICを備え、パ
ソコン2Bと通信する。並列入出力回路7は、一時的に
記憶する例えばバッファ回路や電圧変換回路から構成さ
れる。上流用高速通信手段5は、主制御装置2A又は他
の入出力装置と通信し、高速で情報を素早く送るために
通信手段として通信速度640KbpsのRS422A
通信規格と規格対応のレシーバドライバICとシリアル
コントローラICを備えている。下流用高速通信手段6
は、他の入出力装置と通信し、高速情報を素早く送るた
め上流用高速通信手段5と同じ手段を備えている。上流
用通信手段5へ受信された情報は直ちに下流用通信手段
6から送信されると共に、該情報がある決められた条件
に適合すれば演算用メモリ11に記憶されている外部機
器を駆動するための情報を外部機器に出力し、該機器を
駆動する。更に、下流用高速通信手段6に受信された情
報は、直ちに上流用高速通信手段5から送信されると共
にその後すぐに外部機器からの信号を入力し、上流用高
速通信手段5から送信する。
FIG. 1 is a block diagram of each input / output device. In this figure, the device control C for controlling the device is shown.
PU9 and control program storage program memory 1
0 (contents will be described later), an arithmetic memory 11 for temporarily storing input / output information of an external device, and the like, a personal computer 2B as a monitor device, a debug communication means 12 for transferring information, and other inputs. An upstream high-speed communication unit 5 and a downstream high-speed communication unit 6 that transfer information to and from an output device, a parallel input / output circuit 7 that transfers information to an external device, communication connectors 2, 3 and 4, and an external device such as a solenoid valve. Input / output terminal block 1 connected to signals from sensors and the like, and control CPU 9
Is composed of a 5 volt power supply circuit 8 for operating. The debug communication unit 12 includes a receiver driver IC and a serial controller IC compatible with the standard using the RS232C standard having a communication speed of 9600 bps, and communicates with the personal computer 2B. The parallel input / output circuit 7 is composed of, for example, a buffer circuit or a voltage conversion circuit for temporarily storing. The upstream high-speed communication means 5 communicates with the main control device 2A or another input / output device, and RS422A with a communication speed of 640 Kbps is used as a communication means to quickly send information at high speed.
It is equipped with a communication standard and a receiver driver IC compliant with the standard and a serial controller IC. Downstream high speed communication means 6
Is equipped with the same means as the upstream high speed communication means 5 for communicating with other input / output devices and rapidly sending high speed information. The information received by the upstream communication means 5 is immediately transmitted from the downstream communication means 6, and if the information meets certain predetermined conditions, it drives the external device stored in the arithmetic memory 11. Information is output to an external device and the device is driven. Further, the information received by the downstream high-speed communication means 6 is immediately transmitted from the upstream high-speed communication means 5, and immediately thereafter, a signal from an external device is input and transmitted from the upstream high-speed communication means 5.

【0009】電源を投入すると、主制御装置2A及び各
入出力装置のCPUは、自装置のプログラムメモリより
制御プログラムを読み出して実行を開始すると、自動的
に各入出力装置は自己の固有装置番号を決定するアドレ
ス割付モードとなる。このモードは後で詳述する。該モ
ードにより各入出力装置は自己の固有装置番号を決定
し、その後の通常入出力モードで主制御装置2Aから送
られる制御命令に従い外部機器を動作させる。通常入出
力モードについては後で詳述する。各入出力装置はこの
制御命令を上流用通信手段5で受信して下流用通信手段
6から送信する一方で、該命令に含まれる装置番号と自
己固有装置番号が等しいか否か判断し、等しい場合には
制御命令に含まれる動作指示に従い外部機器を動かす。
主制御装置は該命令を全ての入出力装置に送信した後、
全ての入出力装置に接続されている外部機器の、例えば
センサから出力される情報をもれなく入力する。
When the power is turned on, the main controller 2A and the CPU of each input / output device read the control program from the program memory of its own device and start execution, and then each input / output device automatically sets its own unique device number. The address allocation mode is to determine. This mode will be described in detail later. Each input / output device determines its own unique device number according to the mode, and operates the external device according to the control command sent from the main control device 2A in the subsequent normal input / output mode. The normal input / output mode will be described in detail later. While each input / output device receives this control command by the upstream communication means 5 and transmits it from the downstream communication means 6, it judges whether or not the device number included in the command is equal to the self unique device number and is equal. In some cases, the external device is moved according to the operation instruction included in the control command.
After the main controller sends the command to all input / output devices,
Information output from, for example, sensors of external devices connected to all input / output devices is input without exception.

【0010】各入出力装置はパソコン2Bからデバッグ
開始指令を受信すると自動的にデバッグモード(後で詳
述する)に入り、自装置のプログラムを実行して自装置
より下流の入出力装置をデバッグの対象とし、自装置よ
り上流の入出力装置から送信される情報を上流用通信手
段5でカットする。その後に続いて送信されるデバッグ
指令を使い、特定の外部機器を動かしたり入出力装置に
接続されている外部機器の入力情報を随時調べる。デバ
ッグ指令は5種類あり、出力指令定期入力指令変
化時入力指令随時入力指令入出力領域設定指令の内
の少なくともいずれか1つを持つ。の指令を入出力装
置が受信すると、制御指令中の出力情報を演算用メモリ
11に記憶する。を受信すると、該装置は演算メモリ
3に記憶されている外部機器の入力情報を、定期的にデ
バッグ用通信手段4からパソコン2Bへ出力する。を
受信すると、該装置は演算メモリ11に記憶されている
外部機器の入力情報の変化時に、デバッグ用通信手段1
2からパソコン2Bへ出力する。を受信するとその直
後に、該装置2Eは演算メモリ3に記憶されている外部
機器の入力情報をデバッグ用通信手段12からパソコン
2Bへ出力する。を受信すると、以後指令中に含まれ
た装置番号の範囲の情報に限定する情報に従い、演算メ
モリ11に記憶されている入出力情報の中で上記範囲に
あるものだけを参照するようになる。この範囲を限定す
る情報は、演算メモリ11の中の入出力領域設定用レジ
スタ領域に入出力開始装置番号と入出力終了装置番号と
いう形で記憶されており、この指令はこの領域へ書き込
むことにより2つの装置番号を変更する。
When each I / O device receives a debug start command from the personal computer 2B, it automatically enters a debug mode (described later in detail) and executes the program of its own device to debug the I / O device downstream of its own device. The information transmitted from the input / output device upstream of the own device is cut by the upstream communication means 5. The debug command transmitted subsequently is used to move a specific external device or check the input information of the external device connected to the input / output device at any time. There are five types of debug commands, and at least one of the output commands, the periodical input commands, the input commands when the input command changes, and the input command input / output area setting commands at any time. When the input / output device receives this command, the output information in the control command is stored in the arithmetic memory 11. When the device receives, the input information of the external device stored in the arithmetic memory 3 is periodically output from the debug communication means 4 to the personal computer 2B. When receiving the information, the apparatus receives the debug communication means 1 when the input information of the external device stored in the arithmetic memory 11 changes.
Output from 2 to PC 2B. Immediately after receiving the information, the device 2E outputs the input information of the external device stored in the arithmetic memory 3 from the debug communication means 12 to the personal computer 2B. Then, according to the information limited to the range information of the device number included in the command, only the input / output information stored in the arithmetic memory 11 within the above range is referred to. The information limiting this range is stored in the input / output area setting register area in the arithmetic memory 11 in the form of the input / output start apparatus number and the input / output end apparatus number, and this command is written in this area. Change the two device numbers.

【0011】図3は、本発明の入出力装置の動作のフロ
ーチャートである。入出力装置の電源がONにされる
(S1)と、自動的にアドレス割付モードに入り、自装
置より上流側から送信される装置番号を検出する(S
2)。もし、この装置番号を検出すると、この番号に1
を増やした番号を自己装置番号(S3)とし、自己装置
番号を自装置より下流の装置へ送信(S4)する。そし
て、下流側から送信される装置番号を検出(S5)し、
検出すれば下流より送信されてくる装置番号と自己装置
番号の比較(S6)をして不一致であれば通常入出力モ
ードで動作(S7)し、一致すれば終端入出力モードで
動作(S8)する。もしS2で、上流側より送信される
装置番号を検出する以前に、デバッグ開始指令を検出
(S9)するとデバッグモードに入る。
FIG. 3 is a flow chart of the operation of the input / output device of the present invention. When the power of the input / output device is turned on (S1), the address allocation mode is automatically entered, and the device number transmitted from the upstream side of the self device is detected (S1).
2). If this device number is detected, 1 is added to this number.
Is added to the device number (S3), and the device number is transmitted to the device downstream of the device (S4). Then, the device number transmitted from the downstream side is detected (S5),
If detected, the device number transmitted from the downstream is compared with the own device number (S6), and if they do not match, the normal input / output mode is operated (S7). If they match, the terminal input / output mode is operated (S8). To do. If a debug start command is detected (S9) before the device number transmitted from the upstream side is detected in S2, the debug mode is entered.

【0012】図4は、本発明の入出力装置の通常入出力
モードである。図4において、上流より装置番号と出力
情報を含んだ出力情報を受信(T1)すると、受信した
出力指令を下流側から送信する(T2)と共に自己固有
装置番号と受信した出力指令中の装置番号を比較(T
3)し、一致すれば並列入出力回路より外部機器へ受信
した出力指令中の出力情報を送信して外部機器を動かし
(T4)、下流側より入力情報を受信(T5)すれば受
信した入力指令を上流側へすぐに送信(T6)しその後
外部機器の例えばセンサーからの入力情報を上流側へ送
信(T7)する。
FIG. 4 shows a normal input / output mode of the input / output device of the present invention. In FIG. 4, when the output information including the device number and the output information is received from the upstream (T1), the received output command is transmitted from the downstream side (T2) and the self unique device number and the device number in the received output command are received. Compare (T
3) If they match, the output information in the output command received from the parallel input / output circuit to the external device is transmitted to move the external device (T4), and if the input information is received from the downstream side (T5), the received input is received. The command is immediately transmitted to the upstream side (T6), and then input information from, for example, a sensor of an external device is transmitted to the upstream side (T7).

【0013】図5は、本発明の入出力装置の終端モード
時の動作のフローチャートである。上流側より装置番号
と出力情報を含んだ出力指令を受信(U1)すると、受
信した出力指令中の装置番号と自己固有装置番号を比較
(U2)して、一致すれば出力指令中の出力情報を外部
機器に送信(U3)して外部機器を動かし、その後外部
機器の入力情報を受信し、自己固有装置番号と共に上流
側へ送信(U4)する。
FIG. 5 is a flow chart of the operation of the input / output device of the present invention in the termination mode. When the output command including the device number and the output information is received from the upstream side (U1), the device number in the received output command and the self unique device number are compared (U2), and if they match, the output information in the output command Is transmitted to the external device (U3) to move the external device, and then the input information of the external device is received and transmitted to the upstream side together with the self unique device number (U4).

【0014】図6は、デバッグモード時の動作のフロー
チャートであり、アドレス割付前にパソコンに接続され
ている入出力装置がパソコンからデバッグ開始指令を受
信すると自動的にこの動作に入る。本図において、入出
力装置はパソコン2Bからデバッグ開始指令を受信する
と、デバッグ開始指令中の装置番号に1だけ増やした装
置番号を自己固有装置番号にする(V1)。その開始指
令中に入出力領域設定情報があるので、その情報に基づ
き演算メモリ3に入出力情報記憶領域を確保して入出力
情報、入出力開始装置番号と入出力終了装置番号をその
中に記憶する(V2,この設定情報が例えば入出力動作
は図2の入出力装置2Eから開始し入出力装置2Fで終
了する、という内容であれば入出力記憶領域は装置2
E、2Fだけ確保される)。その後自己固有装置番号を
下流側へ送信(V3)し、下流側より送信されてくる装
置番号を受信(V4)するとその装置番号を終端装置番
号として演算メモリ11の入出力情報記憶領域に記憶
(V5)する。装置番号を記憶後5種類のデバッグ指令
(出力指令定期入力指令変化時入力指令随時入
力指令入出力領域設定指令)のすくなくとも1種類以
上を受信(V6)すれば、その指令に対応する動作をす
る(V16)が、それと共に一定時間間隔毎に自装置よ
り下流側に入出力情報記憶領域に記憶されている出力情
報に出力させる装置番号を付加した出力指令を送信する
(V8)。以下下流側の入出力装置に出力指令が次々と
転送されていくが、このとき下流側の入出力装置はデバ
ッグモードに入っていることは判らないので通常入出力
モード、もしくは最終入出力モードで動作を行う。この
モードの動作は図4及び図5で図示してある通りであ
る。デバッグモードに入っている入出力装置が下流側か
ら入力情報を受信する(V9)とその入力情報が上記の
入出力情報記憶領域に記憶されている設定情報の条件を
満たすか調べる(V10)。設定条件の調べ方として
は、受信した入力情報の中の装置番号が入出力開始装置
番号より大きいか等しく、入出力終了装置番号より小さ
いか等しいかを調べるのであり、もしその条件をみたし
ていれば、入力情報を演算メモリ11の入出力記憶領域
中の対応する所に記憶する。更に受信した入力情報の中
の装置番号が終端装置番号と等しいかを調べ、等しくな
ければ再度入力情報の受信をし、等しければ自己固有装
置番号が設定情報の条件を満たすかを調べる。当然デバ
ッグモードに入っている入出力装置の自己固有装置番号
が、他の通常入出力モードで動作している入出力装置の
自己固有装置に比較し最も小さいと考えれば、入出力情
報記憶領域の入出力開始装置番号が自己固有装置番号と
等しいか、を調べれば充分である。もし、この設定条件
を満たしていれば入力情報を演算メモリ11に書き込み
(V11)、更にその入力情報が終端装置のものか調べ
て(V12)、終端装置のものでなければV9へ戻る
が、終端装置のものであれば引き続いて自己固有装置番
号が設定条件を満たすかを調べる(V13)。もし設定
条件を満たしていれば、出力装置を使い外部機器を駆動
(V14)し、外部機器の入力情報を演算メモリ11に
書き込み(V15)、V6へ戻る。
FIG. 6 is a flowchart of the operation in the debug mode. When the input / output device connected to the personal computer receives a debug start command from the personal computer before address allocation, this operation is automatically started. In the figure, when the input / output device receives a debug start command from the personal computer 2B, the device number increased by 1 from the device number in the debug start command is used as a self unique device number (V1). Since the input / output area setting information is included in the start command, the input / output information, the input / output start device number and the input / output end device number are stored in the input / output information storage area in the arithmetic memory 3 based on the information. Store (V2, if this setting information indicates, for example, that the input / output operation starts from the input / output device 2E and ends at the input / output device 2F in FIG. 2, the input / output storage area is the device 2
Only E and 2F are secured). After that, the self-specific device number is transmitted to the downstream side (V3), and when the device number transmitted from the downstream side is received (V4), the device number is stored in the input / output information storage area of the arithmetic memory 11 as the terminal device number ( V5). After storing the device number, if at least one of 5 types of debug commands (output command, periodic input command, input command when input command changes, input command input / output area setting command) is received (V6), the operation corresponding to the command is performed. At the same time, (V16) transmits an output command to which the device number to be output is added to the output information stored in the input / output information storage area on the downstream side of the own device at regular time intervals (V8). Below, output commands are transferred to the downstream I / O device one after another, but at this time it is not known that the downstream I / O device is in debug mode, so in normal I / O mode or final I / O mode Take action. The operation of this mode is as illustrated in FIGS. When the input / output device in the debug mode receives the input information from the downstream side (V9), it is checked whether the input information satisfies the condition of the setting information stored in the input / output information storage area (V10). The way to check the setting conditions is to check whether the device number in the received input information is greater than or equal to the I / O start device number and less than or equal to the I / O end device number, and if that condition is met. If so, the input information is stored in a corresponding place in the input / output storage area of the arithmetic memory 11. Further, it is checked whether the device number in the received input information is equal to the terminal device number. If they are not equal, the input information is received again. If they are equal, it is checked whether the self-specific device number satisfies the condition of the setting information. Naturally, if the self-specific device number of the I / O device in debug mode is the smallest compared to the self-specific device of the I / O device operating in other normal I / O mode, It is sufficient to check whether the I / O start device number is equal to the self unique device number. If this setting condition is satisfied, the input information is written in the arithmetic memory 11 (V11), and it is further checked whether the input information belongs to the termination device (V12). If it is not the termination device, the process returns to V9. If it belongs to the terminating device, it is subsequently checked whether the self-specific device number satisfies the setting condition (V13). If the set conditions are satisfied, the output device is used to drive the external device (V14), the input information of the external device is written to the arithmetic memory 11 (V15), and the process returns to V6.

【0015】このデバッグモードの終了は、パソコン2
Bの例えば割り込みキー(不図示)を押すことにより強
制終了信号がデバッグモードの入出力装置に送信されて
完了するものとする。
This debug mode is terminated by the personal computer 2
By pressing, for example, the interrupt key (not shown) of B, the forced termination signal is transmitted to the input / output device in the debug mode and is completed.

【0016】[0016]

【発明の効果】上記の説明により、本発明の入出力装置
は、主制御装置に関係なく外部機器の制御が行えるので
外部機器が複数に分かれ、それぞれの外部機器に入出力
装置が接続されているような装置の製作時に、早く組み
上がった外部機器から順に動作テスト及び不都合箇所の
修正ができる。それ故に、従来の全てが完成後にのみ動
作テストが行える、という方式に比較して大幅に製作上
の効率が向上する。
As described above, according to the input / output device of the present invention, the external device can be controlled regardless of the main controller, so that the external device is divided into a plurality of parts and the input / output device is connected to each external device. When manufacturing such a device, it is possible to perform an operation test and correct inconvenient parts in order from the assembled external device. Therefore, the manufacturing efficiency is greatly improved as compared with the conventional method in which the operation test can be performed only after completion.

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

【図1】本発明の入出力装置の構成図である。FIG. 1 is a configuration diagram of an input / output device of the present invention.

【図2】本発明の入出力装置と、他の装置との接続図で
ある。
FIG. 2 is a connection diagram of the input / output device of the present invention and another device.

【図3】本発明の入出力装置の動作のフローチャートで
ある。
FIG. 3 is a flowchart of the operation of the input / output device of the present invention.

【図4】本発明の入出力装置の、通常入出力モード動作
時のフローチャートである。
FIG. 4 is a flowchart when the input / output device of the present invention operates in a normal input / output mode.

【図5】本発明の入出力装置の、終端入出力モード動作
時のフローチャートである。
FIG. 5 is a flowchart when the input / output device of the present invention operates in the terminal input / output mode.

【図6】デバッグモード時の動作のフローチャートであ
る。
FIG. 6 is a flowchart of an operation in a debug mode.

【符号の簡単な説明】[Simple explanation of symbols]

1・・入出力端子台 2、3、4・通信コネクタ 5・
・上流用高速通信手段 6・・下流用高速通信手段 7・・・並列入出力回路
8・・・電源回路 9・・・CPU 10・・・プログラムメモリ 11・
・・演算用メモリ 12・・デバッグ用通信手段 2C、2D,2E,2
F,2G・・入出力装置 21C、21D、21E、21F、21G・・・入出力
端子台 2A・・・主制御装置 2B・・・パソコン 22C,22D,22E、22F,22G・・・上流側
の通信コネクタ 23C,23D,23E、23F、23G・・パソコン
交信用の通信コネクタ 24C,24D,24E、24F,24G・・・下流側
の通信コネクタ
1 ... I / O terminal block 2, 3, 4 Communication connector 5 ...
・ Upstream high-speed communication means 6 ・ ・ Downstream high-speed communication means 7 ・ ・ ・ Parallel input / output circuit
8 ... Power supply circuit 9 ... CPU 10 ... Program memory 11.
..Operation memory 12..Debugging communication means 2C, 2D, 2E, 2
Input / output device 21C, 21D, 21E, 21F, 21G ... Input / output terminal block 2A ... Main control device 2B ... Personal computer 22C, 22D, 22E, 22F, 22G ... Upstream side Communication connector 23C, 23D, 23E, 23F, 23G ··· PC communication communication connector 24C, 24D, 24E, 24F, 24G ... Downstream communication connector

【手続補正書】[Procedure amendment]

【提出日】平成4年6月9日[Submission date] June 9, 1992

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0012[Correction target item name] 0012

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0012】 図4は、本発明の入出力装置の通常入出
力モードである。図4において、上流より装置番号と出
力情報を含んだ出力指令を受信(T1)すると、受信し
た出力指令を下流側から送信する(T2)と共に自己固
有装置番号と受信した出力指令中の装置番号を比較(T
3)し、一致すれば並列入出力回路より外部機器へ受信
した出力指令中の出力情報を送信して外部機器を動かし
(T4)、下流側より入力情報を受信(T5)すれば受
信した入力情報を上流側へすぐに送信(T6)しその後
外部機器の例えばセンサーからの入力情報を上流側へ送
信(T7)する。
FIG. 4 shows a normal input / output mode of the input / output device of the present invention. In FIG. 4, when the output command including the device number and the output information is received from the upstream (T1), the received output command is transmitted from the downstream side (T2) and the self-specific device number and the device number in the received output command are received. Compare (T
3) If they match, the output information in the output command received from the parallel input / output circuit to the external device is transmitted to move the external device (T4), and if the input information is received from the downstream side (T5), the received input is received. Information is immediately transmitted to the upstream side (T6), and then input information from an external device, for example, a sensor is transmitted to the upstream side (T7).

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図6[Name of item to be corrected] Figure 6

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図6】 [Figure 6]

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 外部機器と接続され、該機器の動作状態
を確認し、該機器へ動作指令を発する第一の通信手段
と、自装置より上流側の装置と高速で通信する第二の通
信手段と、自装置より下流側の装置と高速で通信する第
三の通信手段とパソコンと通信する第四の通信手段と、
第二の通信手段を通じて得る動作指令が自装置宛の場合
は第一の通信手段へ出力して外部機器を駆動し、自装置
以外の場合は第三の通信手段を通して下流側へ送信し、
下流側装置で得る動作確認情報に外部機器から得た外部
機器動作確認信号を付加した状態でそのまま上流側へ送
信する一方で第四の通信手段に対してパソコンが接続さ
れている場合には第二の通信手段の機能を停止し、あた
かも最上流の入出力装置として振舞い、第四の通信手段
を介してパソコンと通信するように制御する制御手段と
を特徴とする入出力装置。
1. A first communication means which is connected to an external device, confirms an operation state of the device, and issues an operation command to the device, and a second communication which communicates with a device upstream of the own device at high speed. Means, a third communication means for communicating at high speed with a device on the downstream side of the own device, and a fourth communication means for communicating with a personal computer,
When the operation command obtained through the second communication unit is addressed to the own device, it is output to the first communication unit to drive the external device, and when it is other than the own device, it is transmitted to the downstream side through the third communication unit,
When the external device operation confirmation signal obtained from the external device is added to the operation confirmation information obtained from the downstream side device, it is sent to the upstream side as it is, while the personal computer is connected to the fourth communication means. An input / output device characterized by stopping the function of the second communication means, behaving as if it were the most upstream input / output device, and controlling it to communicate with the personal computer through the fourth communication means.
JP4139415A 1992-05-29 1992-05-29 Input/output device Pending JPH05333908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4139415A JPH05333908A (en) 1992-05-29 1992-05-29 Input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4139415A JPH05333908A (en) 1992-05-29 1992-05-29 Input/output device

Publications (1)

Publication Number Publication Date
JPH05333908A true JPH05333908A (en) 1993-12-17

Family

ID=15244700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4139415A Pending JPH05333908A (en) 1992-05-29 1992-05-29 Input/output device

Country Status (1)

Country Link
JP (1) JPH05333908A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020003847A (en) * 2018-06-25 2020-01-09 アズビル株式会社 I/o module and panel

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020003847A (en) * 2018-06-25 2020-01-09 アズビル株式会社 I/o module and panel

Similar Documents

Publication Publication Date Title
US7912558B2 (en) PLC for distributed control and distributed control system
JP3549116B2 (en) Data interface initial setting device and initial setting method for programmable controller
JPH041840A (en) Data transfer control system
CN108873798B (en) Programmable logic controller
JPH05333908A (en) Input/output device
JPH10315170A (en) Robot controller
JP2000049891A (en) Programmable logic controller and communication condition setting method and communication condition setting device therefor
GB2104685A (en) Programmable controller
JP3090565B2 (en) Operating systems for industrial machines
EP0923010B1 (en) Programmable controller
JPH08136411A (en) Failure diagnostic equipment
JP2816312B2 (en) Fault diagnosis device
KR100656171B1 (en) System for interfacing host computer to multiple communication module
JP3066678U (en) Electronic equipment
JPH10128693A (en) Communication interface device for robot device
JPH01225527A (en) Communication system between injection molding machine and peripheral machinery using identification code
JP2584903B2 (en) External device control method
CN117743246A (en) Backboard bus expansion system, management method and device, server and storage medium
JPH07200045A (en) Controller for input/output
JP2001236104A (en) Distributed control system
JPH10177405A (en) Programmable logic controller
JPH06235475A (en) Solenoid valve control device
JP2597408B2 (en) Controller check system
JPH0652483B2 (en) Remote information management device for machine tools
JP2589599Y2 (en) PC system