JP3944752B2 - Command input device of control device - Google Patents

Command input device of control device Download PDF

Info

Publication number
JP3944752B2
JP3944752B2 JP28446095A JP28446095A JP3944752B2 JP 3944752 B2 JP3944752 B2 JP 3944752B2 JP 28446095 A JP28446095 A JP 28446095A JP 28446095 A JP28446095 A JP 28446095A JP 3944752 B2 JP3944752 B2 JP 3944752B2
Authority
JP
Japan
Prior art keywords
command
instruction
communication
communication port
control device
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
JP28446095A
Other languages
Japanese (ja)
Other versions
JPH09101806A (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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP28446095A priority Critical patent/JP3944752B2/en
Publication of JPH09101806A publication Critical patent/JPH09101806A/en
Application granted granted Critical
Publication of JP3944752B2 publication Critical patent/JP3944752B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Control By Computers (AREA)

Description

【0001】
【産業上の利用分野】
本発明は外部装置からの指令を受け付ける機能を持った工作機械制御装置、ロボット制御装置、シーケンス制御装置等の産業用制御装置の命令入力装置に関する。
【0002】
【従来の技術】
従来の産業用制御装置は、図2のロボット制御装置1の例に示すように、通信部2に複数の外部装置との通信ポートS1〜S4を持っているが、特定の通信ポートを介して上位制御装置からの命令を受け付けることが一般的であった。本例では通信ポートS1はシリアル通信回線3を利用して上位の計算機4と接続され、通信ポートS4はシリアル通信回線5を利用してティーチボックス6と接続されている。上位計算機4からロボットの動作指令等の命令が送られると、通信部2によってその命令が取り込まれ、命令解釈部7によってその命令が解読され、実際のロボット9の動作が命令実行部8によって実行される。
【0003】
【発明が解決しようとする課題】
従来の制御装置は特定の通信ポートを介してしか命令を受けとることができなかったため、特定の外部装置からしか命令を受けとることができず、作業に応じて命令を受けとる外部装置を切替えることができないという問題があった。本発明は異なった通信ポートを介して複数の外部装置からの命令を入力出来るようにすることを目的とする。
【0004】
【課題を解決するための手段】
上記課題を解決するため、本発明は、命令解釈部をタスクとして複数生成し、外部機器が接続された通信ポート毎に前記生成された命令解釈部を割り当て、
前記通信ポートから取り込まれた外部機器からの命令をその通信ポートに割り当てられた命令解釈部に解読させることを特徴とするものである。
また、前記通信部の通信ポート毎に命令解釈部の割り当てを許可あるいは拒否する割当許可テーブルを持ち、この割当許可テーブルに従って、割当が許可された通信ポートに対してのみ、前記命令解釈部の生成と通信ポートへの割り当てを行うことを特徴とするものである
【0005】
【作用】
各通信ポートに接続要求が入ると通信部は命令解釈部をその通信ポートに割り当てる。
接続手続きを持たせない通信ポートに関しては、制御装置の起動時に命令解釈部を割り当てる。この結果、接続された外部機器毎に命令解釈部が割り当てられることになり、複数の外部機器から命令を入力し実行することが可能になる。外部機器に対して指令を出す場合や固有の通信プロトコルで通信する場合には、そのような機器との通信ポートに対して命令解釈部を割り当てないようにする必要がある。通信部は命令解釈部の割り当てに際して、割当許可テーブルを参照し、許可された通信ポートのみに命令解釈部を割り当てる。
【0006】
【実施例】
以下、本発明を実施例に基づいて具体的に説明する。図1に本発明によるロボット制御装置1のブロック図を示す。汎用通信ポートとして、RS232Cの通信ポートS1、S2、S3、S4を持ち、さらに、TCP/IPプロトコルのLAN用インタフェース(イーサネット)EIを持つ。本例では、S1ポートにはロボットの動作指令を生成する上位計算機4が接続され、S2ポートにはハンド制御装置10、S3ポートにはティーチボックス6、S4ポートにはモニタ用の計算機11が接続されている。また、LANを介して複数の外部装置(計算機)12と通信可能である。本実施例における命令解釈部の割当許可テーブルの内訳の例を図3に示す。この内訳によるとS2ポート以外の命令解釈部7a〜7dの割当が許可されることが示されている。制御装置が立ち上がると、初期化の後、割当許可テーブル(図1では示していない)を調べる。
そして、接続手続きを持たないインタフェースに対して、割当許可テーブルのエントリが許可であれば命令解釈部7a〜7dを割当る。この例は、RS232Cの通信ポートは全て接続手続きを持たないので、立ち上げ時に命令解釈部7a〜7dがS2を除く各ポートに割り当てられる。命令解釈部7a〜7dは割当許可テーブルの設定を参照、あるいは変更する命令を持っており、制御装置の立ち上げ時以外でも、任意のポートに命令解釈部の割当と解除を行うことができる。
【0007】
LANインタフェースに関しては、外部装置12からの接続要求に応じて接続を確立するとともに、確立した通信路に対して命令解釈部7dを割り当てる。この方法により、LAN上の任意の装置からの命令要求を受け付けることができる。命令解釈部7の割り当ては、命令解釈プログラムを別タスクとして起動することによって行う。このとき、命令を受けとる通信ポート記述子をパラメータとして渡す。命令解釈プログラムのタスクは、命令解釈部7が割り当てられた通信ポートの数だけ起動される。このため、複数の外部装置12からの命令を同時に受け付けて実行することもできる。もちろん、同時実行できる命令は互いに干渉しない命令だけで、移動命令等のロボットの実動作を伴う命令はその実行が排他制御される。また、命令解釈部7a〜7dはロボットの基本命令を実行するだけでなく、複数のロボット動作プログラムのロードやセーブ、実行も行う。命令実行部8は単一のタスクとして起動されており、複数の命令解釈部7のタスクから実行指令のメッセージが渡される。このような複数タスクとの通信は、通常のリアルタイムOSが持つタスク間のメッセージ通信機能を使って容易に実現できる。
【0008】
実施例において、上位計算機4はロボットの動作命令を連続的に出力して常時ロボットを制御する。モニタ用計算機11は現在姿勢や動作状況のモニタ及び、動作プログラムの編集やロード、セーブを行う。
ティーチボックス6はロボットのティーチングとロボットプログラムの簡単な編集を行う。これらには、全く同一の命令解釈部7が割り当てられており、通信ポートの物理的なインタフェースの整合性さえとれれば、どの通信ポートも全く等価に使うことができる。
ハンド制御装置10はロボットハンドの制御を行ない、本ロボット制御装置1から作業命令を受けとる。このため、割当許可テーブルにて、命令解釈部7の割当が禁止されている。また、LANに接続された任意の外部装置12からも全く同様に命令を受け取ることができるので、不特定の装置からロボットの監視や制御が可能である。
【0009】
本実施例ではロボット制御装置1を例として示したが、本発明は工作機械制御装置やシーケンス制御装置等の外部装置2からの指令を入力する制御装置全般に適用可能であることはもちろんである。
【0010】
【発明の効果】
以上述べたように本発明によれば、制御装置に接続されている任意の外部機器から命令を受けとることが可能になり、ある上位装置からの命令を実行中に、別の装置から動作プログラムのロードや現状状態のモニタ等が容易に実現できるという効果がある。また、制御装置内部の設定やプログラムを修正することなしに、外部機器を任意の通信ポートに接続できるという点で、システム構成の修正が容易になるという効果もある。
【図面の簡単な説明】
【図1】本発明の具体的実施例を示すブロック図
【図2】従来の制御装置のブロック図
【図3】命令解釈部の割当を制御する割当許可テーブルの内訳の例を示す図
【符号の説明】
1 ロボット制御装置 2 通信部
3 シリアル通信回線 4 上位制御装置
5 シリアル通信回線 6 ティーチボックス
7 命令解釈部 8 命令実行部
9 ロボット 10 ハンド制御装置
11 モニタ用の計算機12 計算機
S1、S2、S3、S4 汎用通信ポート
EI TCP/IPプロトコルのLAN用インタフェース(イーサネット)
[0001]
[Industrial application fields]
The present invention relates to a command input device for an industrial control device such as a machine tool control device, a robot control device, or a sequence control device having a function of receiving a command from an external device.
[0002]
[Prior art]
As shown in the example of the robot control device 1 in FIG. 2, the conventional industrial control device has communication ports S1 to S4 with a plurality of external devices in the communication unit 2, but via a specific communication port. It has been common to receive commands from the host controller. In this example, the communication port S1 is connected to the host computer 4 using the serial communication line 3, and the communication port S4 is connected to the teach box 6 using the serial communication line 5. When a command such as a robot operation command is sent from the host computer 4, the command is fetched by the communication unit 2, the command is decoded by the command interpretation unit 7, and the actual operation of the robot 9 is executed by the command execution unit 8. Is done.
[0003]
[Problems to be solved by the invention]
Since conventional control devices can only receive commands via a specific communication port, they can only receive commands from specific external devices and cannot switch external devices that receive commands according to work. There was a problem. It is an object of the present invention to input commands from a plurality of external devices via different communication ports.
[0004]
[Means for Solving the Problems]
In order to solve the above problems, the present invention generates a plurality of command interpreting units as tasks , assigns the generated command interpreting unit to each communication port to which an external device is connected ,
The command interpreter assigned to the communication port is made to decode the command from the external device fetched from the communication port .
Moreover, Chi lifting permission or deny allocation permission table allocation instruction interpreting unit for each communication port of the communication unit, in accordance with the allocation permission table assignment only to authorized communication ports, the instruction interpreting unit Generation and assignment to a communication port are performed .
[0005]
[Action]
When a connection request is input to each communication port, the communication unit assigns a command interpretation unit to the communication port.
For a communication port that does not have a connection procedure, a command interpreter is assigned when the control device is activated. As a result, a command interpreter is assigned to each connected external device, and commands can be input and executed from a plurality of external devices. When issuing a command to an external device or communicating with a specific communication protocol, it is necessary not to assign a command interpreter to a communication port with such a device. The communication unit refers to the allocation permission table when allocating the command interpretation unit, and allocates the command interpretation unit only to the permitted communication port.
[0006]
【Example】
Hereinafter, the present invention will be specifically described based on examples. FIG. 1 shows a block diagram of a robot control apparatus 1 according to the present invention. As general-purpose communication ports, RS232C communication ports S1, S2, S3, and S4 are provided, and a TCP / IP protocol LAN interface (Ethernet) EI is provided. In this example, a host computer 4 that generates a robot operation command is connected to the S1 port, a hand control device 10 is connected to the S2 port, a teach box 6 is connected to the S3 port, and a monitor computer 11 is connected to the S4 port. Has been. Further, it can communicate with a plurality of external devices (computers) 12 via a LAN. FIG. 3 shows an example of the breakdown of the allocation permission table of the instruction interpretation unit in this embodiment. According to this breakdown, it is indicated that the assignment of the instruction interpretation units 7a to 7d other than the S2 port is permitted. When the control device starts up, after the initialization, the allocation permission table (not shown in FIG. 1) is examined.
Then, if the entry in the allocation permission table is permitted for the interface having no connection procedure, the command interpreting units 7a to 7d are allocated. In this example, since all communication ports of RS232C do not have a connection procedure, command interpreters 7a to 7d are assigned to each port except S2 at the time of startup. The instruction interpretation units 7a to 7d have an instruction to refer to or change the setting of the assignment permission table, and can assign and release the instruction interpretation unit to any port even when the control device is not started.
[0007]
Regarding the LAN interface, a connection is established in response to a connection request from the external device 12, and a command interpreter 7d is assigned to the established communication path. By this method, a command request from any device on the LAN can be accepted. The instruction interpreter 7 is assigned by starting the instruction interpreter as a separate task. At this time, the communication port descriptor that receives the command is passed as a parameter. The task of the instruction interpretation program is activated by the number of communication ports to which the instruction interpretation unit 7 is assigned. For this reason, it is also possible to simultaneously receive and execute commands from a plurality of external devices 12. Of course, the only commands that can be executed simultaneously are commands that do not interfere with each other, and the commands accompanying the actual operation of the robot, such as movement commands, are exclusively controlled. Further, the instruction interpreting units 7a to 7d not only execute basic instructions of the robot, but also load, save, and execute a plurality of robot operation programs. The instruction execution unit 8 is activated as a single task, and execution instruction messages are passed from the tasks of the plurality of instruction interpretation units 7. Such communication with a plurality of tasks can be easily realized by using a message communication function between tasks of a normal real-time OS.
[0008]
In the embodiment, the host computer 4 continuously outputs robot operation commands to constantly control the robot. The monitor computer 11 monitors the current posture and motion status, and edits, loads, and saves motion programs.
The teach box 6 performs robot teaching and simple editing of the robot program. The same command interpreting unit 7 is assigned to them, and any communication port can be used in an equivalent manner as long as the physical interface of the communication port is consistent.
The hand control device 10 controls the robot hand and receives a work command from the robot control device 1. For this reason, the assignment of the instruction interpreter 7 is prohibited in the assignment permission table. In addition, since an instruction can be received in the same manner from any external device 12 connected to the LAN, it is possible to monitor and control the robot from an unspecified device.
[0009]
In the present embodiment, the robot control device 1 is shown as an example, but the present invention can be applied to all control devices that input commands from the external device 2 such as a machine tool control device and a sequence control device. .
[0010]
【The invention's effect】
As described above, according to the present invention, it is possible to receive a command from an arbitrary external device connected to the control device, and while executing a command from a certain host device, an operation program from another device can be received. There is an effect that loading, monitoring of the current state, etc. can be easily realized. In addition, the system configuration can be easily corrected in that the external device can be connected to an arbitrary communication port without correcting the settings and programs in the control device.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a specific embodiment of the present invention. FIG. 2 is a block diagram of a conventional control apparatus. FIG. 3 is a diagram showing an example of a breakdown of an assignment permission table for controlling assignment of an instruction interpreter. Explanation of]
DESCRIPTION OF SYMBOLS 1 Robot control apparatus 2 Communication part 3 Serial communication line 4 High-order control apparatus 5 Serial communication line 6 Teach box 7 Instruction interpretation part 8 Instruction execution part 9 Robot 10 Hand control apparatus 11 Monitor computer 12 Computer S1, S2, S3, S4 General-purpose communication port EI TCP / IP protocol LAN interface (Ethernet)

Claims (2)

複数の通信ポートを介して複数の外部機器と接続可能な通信部と、
その通信部によって取り込まれた外部機器の命令を予め定められた構文に従って解読する命令解釈部と、
解読された命令を実行する命令実行部からなる産業用機器の制御装置において、
前記命令解釈部をタスクとして複数生成し、
外部機器が接続された通信ポート毎に前記生成された命令解釈部を割り当て、
前記通信ポートから取り込まれた外部機器からの命令をその通信ポートに割り当てられた命令解釈部に解読させる
ことを特徴とする制御装置の命令入力装置。
A communication unit that can be connected to a plurality of external devices via a plurality of communication ports;
A command interpreter that decodes a command of the external device captured by the communication unit according to a predetermined syntax ;
In a control device for industrial equipment consisting of an instruction execution unit for executing decoded instructions,
A plurality of the instruction interpretation units are generated as tasks,
Assign the generated command interpretation unit for each communication port to which an external device is connected ,
An instruction input device for a control device, wherein an instruction interpretation unit assigned to the communication port interprets an instruction from an external device fetched from the communication port .
前記制御装置が立ち上がって初期化をした後に前記通信部の通信ポートに命令解釈部の割り当てを許可あるいは拒否する割当許可テーブルを持ち、この割当許可テーブルに従って、割当が許可された通信ポートに対してのみ、前記命令解釈部の生成と通信ポートへの割り当てを行うようにしたことを特徴とする請求項1記載の制御装置の命令入力装置。Has permission or deny allocation permission table allocation instruction interpreting unit for each communication port of the communication unit after the initialization standing up the control device, in accordance with the allocation permission table, to the communication port assignments is permitted 2. The command input device for a control device according to claim 1 , wherein the command interpreter is generated and assigned to a communication port .
JP28446095A 1995-10-04 1995-10-04 Command input device of control device Expired - Lifetime JP3944752B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28446095A JP3944752B2 (en) 1995-10-04 1995-10-04 Command input device of control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28446095A JP3944752B2 (en) 1995-10-04 1995-10-04 Command input device of control device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2006186367A Division JP2006277770A (en) 2006-07-06 2006-07-06 Control device

Publications (2)

Publication Number Publication Date
JPH09101806A JPH09101806A (en) 1997-04-15
JP3944752B2 true JP3944752B2 (en) 2007-07-18

Family

ID=17678828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28446095A Expired - Lifetime JP3944752B2 (en) 1995-10-04 1995-10-04 Command input device of control device

Country Status (1)

Country Link
JP (1) JP3944752B2 (en)

Also Published As

Publication number Publication date
JPH09101806A (en) 1997-04-15

Similar Documents

Publication Publication Date Title
JP3832517B2 (en) Robot controller and control method thereof
CN107741737B (en) Process controller
EP1288748B1 (en) Controller and operating system
EP3048523B9 (en) Programmable display
EP3361328A1 (en) Heterogeneous field devices control management system based on industrial internet operating system
WO2015136960A1 (en) Controller
CN102880064A (en) Control system of a robot
JP3944752B2 (en) Command input device of control device
CN207209640U (en) A kind of elevator remote monitoring system
JP2015215669A (en) Numerical control device and control system
KR20190029977A (en) A control system for device and process for operationg the control system
WO2021033356A1 (en) Control system and control method
EP0620512A1 (en) Numeric controller
JP2006277770A (en) Control device
JP2001313659A (en) Field device communication apparatus in distributed control system
JP2667042B2 (en) Elevator group management system
US20220413459A1 (en) Method and automation system for controlling and/or monitoring a machine and/or installation
JP7230353B2 (en) Equipment control device
JP2008108123A (en) Module execution device, and modularization program
JP2023049531A (en) Control device
JPH03288255A (en) Network control system for multiprocessor
JP3997410B2 (en) Communications system
JPH05265977A (en) Input/output control system
JPH0662080A (en) Control system for information transmission equipment
JPH01258061A (en) Backup system for decentralized control system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050706

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060706

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070201

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070328

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100420

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110420

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120420

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120420

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130420

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20140420

Year of fee payment: 7

EXPY Cancellation because of completion of term