JP2522047B2 - Programmable controller for device control - Google Patents

Programmable controller for device control

Info

Publication number
JP2522047B2
JP2522047B2 JP1111708A JP11170889A JP2522047B2 JP 2522047 B2 JP2522047 B2 JP 2522047B2 JP 1111708 A JP1111708 A JP 1111708A JP 11170889 A JP11170889 A JP 11170889A JP 2522047 B2 JP2522047 B2 JP 2522047B2
Authority
JP
Japan
Prior art keywords
servo
information
control
area
positioning
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
JP1111708A
Other languages
Japanese (ja)
Other versions
JPH02146606A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to DE19893925756 priority Critical patent/DE3925756C2/en
Publication of JPH02146606A publication Critical patent/JPH02146606A/en
Application granted granted Critical
Publication of JP2522047B2 publication Critical patent/JP2522047B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Programmable Controllers (AREA)
  • Control Of Position Or Direction (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、位置決め制御のように多量のデータを必
要とする制御を行うプログラマブルコントローラの改良
に関するものである。
TECHNICAL FIELD The present invention relates to an improvement of a programmable controller that performs control that requires a large amount of data, such as positioning control.

〔従来の技術〕 一般にプログラマブルコントローラを用いて位置決め
制御を行う場合、プログラマブルコントローラとサーボ
コントローラとのインターフェースをどのようなものに
するかが重要な問題となる。
[Prior Art] Generally, when performing positioning control using a programmable controller, an important issue is what kind of interface the programmable controller and the servo controller have.

第8図は、プログラマブルコントローラ本体およびサ
ボコントローラユニットを有する従来の機器制御用プロ
グラマブルコントローラを示すブロック図である。図に
おいて、(1)はプログラマブルコントローラ本体(以
後PC本体と称す)を示し、(1−1)はマイクロプロセ
ッサ(CPU)、(1−2)は制御メモリ、(1−3)は
入出力インターフェース、(1−4)は周辺装置用イン
ターフェース、(1−5)はシーケンス制御時のデバイ
ス情報を格納するデバイス情報格納メモリであり、
(2)はサーボコントローラユニット、(3)は入力ユ
ニット、(4)は出力ユニット、(6)はバスである。
サーボコントローラユニット(2)において、(2−
1)はマイクロプロセッサ(CPU)、(2−2)は制御
メモリ、(2−3)はプログラマブルコントローライン
ターフェース、(2−4)はサーボインターフェース、
(2−5)はコモンメモリ、(5)はサーボコントロー
ラユニット(2)に接続されたサーボシステムである。
FIG. 8 is a block diagram showing a conventional device controlling programmable controller having a programmable controller main body and a sabot controller unit. In the figure, (1) shows a programmable controller main body (hereinafter referred to as a PC main body), (1-1) a microprocessor (CPU), (1-2) a control memory, and (1-3) an input / output interface. , (1-4) is a peripheral device interface, (1-5) is a device information storage memory for storing device information at the time of sequence control,
(2) is a servo controller unit, (3) is an input unit, (4) is an output unit, and (6) is a bus.
In the servo controller unit (2), (2-
1) is a microprocessor (CPU), (2-2) is a control memory, (2-3) is a programmable controller interface, (2-4) is a servo interface,
(2-5) is a common memory, and (5) is a servo system connected to the servo controller unit (2).

次に、動作について説明する。PC本体(1)のマイク
ロプロセッサ(1−1)は、入力ユニット(3)を介し
て入力された制御対象(図示せず)からの入力情報、内
部情報、制御対象への出力情報がデバイス名、レジスタ
番号等の変数で記述されているシーケンスプログラムを
スキャン実行し出力情報および内部情報を更新する動作
を繰り返すことにより出力情報および出力ユニット
(4)を介して制御対象をシーケンス制御する。そし
て、入出力インターフェース(1−3)を介して、サー
ボコントローラユニット(2)のマイクロプロセッサ
(2−1)やコモメモリ(2−5)の位置決め開始等の
指令やサーボ制御に必要なデータを送る。マイクロプロ
セッサ(2−1)は、PC本体(1)側よりコモンメモリ
(2−5)に与えられた指令やデータ等の情報によりサ
ーボインターフェース(2−4)を介してサーボシステ
ム(5)の制御を行う。
Next, the operation will be described. In the microprocessor (1-1) of the PC body (1), the input information from the control target (not shown) input via the input unit (3), internal information, and output information to the control target are device names. , A sequence program described by variables such as register numbers is scan-executed and the operation of updating the output information and the internal information is repeated to sequence-control the controlled object via the output information and the output unit (4). Then, via the input / output interface (1-3), commands such as positioning start of the microprocessor (2-1) and como memory (2-5) of the servo controller unit (2) and data necessary for servo control are sent. . The microprocessor (2-1) operates the servo system (5) via the servo interface (2-4) according to information such as commands and data given to the common memory (2-5) from the PC body (1) side. Take control.

なお、制御メモリ(1−2)、(2−2)は各マイク
ロプロセッサ(1−1)、(2−1)を動作させるため
のものであり、デバイス情報格納メモリ(1−5)は入
力ユニット(3)からの入力情報やPC本体(1)のマイ
クロプロセッサ(1−1)の演算結果、すなわち、シー
ケンス処理における演算結果である内部情報や出力情報
を格納するメモリである。
The control memories (1-2) and (2-2) are for operating the respective microprocessors (1-1) and (2-1), and the device information storage memory (1-5) is an input. It is a memory for storing the input information from the unit (3) and the calculation result of the microprocessor (1-1) of the PC body (1), that is, the internal information and the output information which are the calculation results in the sequence processing.

コモンメモリ(2−5)は、入出力インターフェース
(1−3)を通してPC本体(1)のマイクロプロセッサ
(1−1)からと、サーボコントローラユニット(2)
のマイクロプロセッサ(2−1)からアクセスされ、位
置決め制御に必要なデータ等がリード・ライトされるメ
モリである。
The common memory (2-5) is connected to the servo controller unit (2) from the microprocessor (1-1) of the PC body (1) through the input / output interface (1-3).
Is a memory which is accessed from the microprocessor (2-1) and read / write data necessary for positioning control.

従来の、この種の装置で位置決め制御をし、ワークの
加工等を行う場合において、PC本体(1)とサーボコン
トローラユニット(2)の間での情報のやりとりは、入
力ユニット(3)や出力ユニット(4)等の外部入出力
機器とPC本体(1)との間の接続に用いられるバス
(6)、すなわち、入出力インターフェース(1−3)
とプログラマブルコントローラインターフェース(2−
3)とを接続するバス(6)を介して行われていた。
When performing positioning control with this type of conventional device and processing a work, etc., information is exchanged between the PC body (1) and the servo controller unit (2) by the input unit (3) and output. A bus (6) used for connection between an external input / output device such as a unit (4) and the PC body (1), that is, an input / output interface (1-3)
And programmable controller interface (2-
It was done via a bus (6) connecting to 3).

第9図は、このバス(6)を使用して行われるPC本体
(1)とサーボコントローラニット(2)との間の情報
のやりとりとの一例を示す説明図である。
FIG. 9 is an explanatory diagram showing an example of the exchange of information between the PC main body (1) and the servo controller unit (2) performed using the bus (6).

この図に示すように、先ずPC本体(1)側のCPU(1
−1)からサーボコントローラユニット(2)のCPU
(2−1)に対しインターフェース(1−3)、(2−
3)経由してリード・ライトを要求する割込信号を送る
(a)と、この割込信号を受けたサーボコントローラユ
ニット(2)はコモンメモリ(2−5)がバス(6)と
直結されるように切替操作を行い、PC本体(1)に直結
完信号を送る(b)。
As shown in this figure, first, the CPU (1
-1) to CPU of servo controller unit (2)
For (2-1), interfaces (1-3), (2-
3) When an interrupt signal requesting read / write is sent via (a), the common memory (2-5) of the servo controller unit (2) receiving this interrupt signal is directly connected to the bus (6). The switching operation is performed as described above, and a direct connection completion signal is sent to the PC body (1) (b).

PC本体(1)はサーボコントローラユニット(2)の
コモンメモリ(2−5)にデータ転送を行いコモンメモ
リ(2−5)に所定のデータが書き込まれる(c)。例
えば補助点指定の円弧補間位置決め動作の場合において
は、その動作命令コード終点アドレス、補助点アドレ
ス、速度等のデータが多数コモンメモリ(2−5)に送
られる。このデータ転送が終わるとPC本体(1)は完了
割込信号をサーボコントローラユニット(2)に送る
(d)。
The PC main body (1) transfers data to the common memory (2-5) of the servo controller unit (2), and predetermined data is written in the common memory (2-5) (c). For example, in the case of circular interpolation positioning operation with auxiliary point designation, a large number of data such as the operation command code end point address, auxiliary point address and speed are sent to the common memory (2-5). When this data transfer is completed, the PC body (1) sends a completion interrupt signal to the servo controller unit (2) (d).

サーボコントローラユニット(2)はこれを受けてコ
モンメモリ(2−5)とバス(6)との接続を切り離し
(e)、コモンメモリ(2−5)の内容に基づくサーボ
制御を行う。
In response to this, the servo controller unit (2) disconnects the connection (e) between the common memory (2-5) and the bus (6) and performs servo control based on the contents of the common memory (2-5).

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

位置決め制御のように多量のデータを必要とする制御
を行うにもかかわらず従来の機器制御用プログラマブル
コントローラは以上のように構成されており、PC本体
(1)側とサーボコントローラユニット(2)側との信
号のやりとりをバス(6)に頼っているため一度にやり
とりできる情報量(データ)は少なく、しかも、ノイズ
対策等のためにデータ転送に時間がかかるので応答速度
が遅いという問題点があった。
The conventional programmable controller for device control is configured as described above despite performing control that requires a large amount of data, such as positioning control. The PC body (1) side and the servo controller unit (2) side Since the bus (6) relies on the bus (6) for exchanging signals, the amount of information (data) that can be exchanged at one time is small, and it takes time to transfer data due to noise countermeasures, etc., resulting in a slow response speed. there were.

また、第8図に示される従来の機器制御用プログラマ
ブルコントローラは、第9図のようにデータのリード・
ライト毎に割込みをかけ、バスの切替えを行う等、両ユ
ニット間のタイミング合わせが必要である。
In addition, the conventional programmable controller for controlling equipment shown in FIG.
Timing adjustment between both units is required, such as interrupting each write and switching the bus.

このタイミング合わせの問題により、PC本体(1)が
最優先で処理を行うようにした場合にはサーボコントロ
ーラユニット(2)がサーボ制御中にPC本体(1)と交
信するために、サーボ制御を中断する必要が生じたり、
サーボコントローラユニット(2)が最優先で処理を行
うようにした場合にはPC本体(1)側がシーケンス処理
を中断する必要が生じるなどの問題点があった。
Due to this timing alignment problem, if the PC body (1) is set to perform processing with the highest priority, the servo controller unit (2) will perform servo control in order to communicate with the PC body (1) during servo control. You have to stop,
When the servo controller unit (2) is set to perform the processing with the highest priority, there is a problem that the PC body (1) side needs to interrupt the sequence processing.

このため、例えば、PC本体(1)が最優先で処理を行
う場合においては、一定速度で加工を行えば高い工作精
度が得られる場合にも不規則な中断が発生するこにより
低い工作精度しか得られなかった。
Therefore, for example, when the PC main body (1) performs processing with the highest priority, even if high machining accuracy can be obtained if machining is performed at a constant speed, irregular interruptions occur, resulting in only low machining accuracy. I couldn't get it.

特に多軸制御により複雑な運動を行う場合のようにPC
本体(1)とサーボコントローラユニット(2)の間
で、多量の位置データや速度データ等を授受しながら加
工を行う場合において、この不具合が顕著であった。
PC, especially when performing complex movements with multi-axis control
This problem was remarkable when machining was performed while exchanging a large amount of position data, speed data, etc. between the main body (1) and the servo controller unit (2).

さらに、第8図に示す構成の場合には、コモンメモリ
(2−5)の容量により位置決めデータ数が制限される
ので、例えば、システムを改善したり、あるいは対象品
や加工内容を変更するために位置決め条件を変更した
り、位置決めパターンを追加、変更したい様な場合に、
このコモンメモリ(2−5)の容量の問題に基づくプロ
グラムの追加、修正を行わなければならないという問題
点があった。
Furthermore, in the case of the configuration shown in FIG. 8, since the number of positioning data is limited by the capacity of the common memory (2-5), for example, to improve the system or change the target product or processing content. If you want to change the positioning conditions or add or change the positioning pattern,
There is a problem in that a program must be added or modified based on the problem of the capacity of the common memory (2-5).

また、位置決めデータを設定するプログラムは複雑で
煩わしいものであり、しかもデータ数を増加することが
困難であった。
Moreover, the program for setting the positioning data is complicated and cumbersome, and it is difficult to increase the number of data.

また、複数の位置決めパターン等を選択使用する場合
に、これらを格納するために大きなメモリ容量を要する
などの問題点があった。
Further, when a plurality of positioning patterns and the like are selectively used, there is a problem that a large memory capacity is required to store them.

この発明は、このような問題点を解消するためになさ
れたもので、動作の不規則な中断の発生による位置決め
精度の低下やシーケンス処理の中断の発生によるシーケ
ンス制御の応答速度の低下を防止できるとともに、シー
ケンスプログラムにより容易に位置決めデータの設定ま
たは変更ができ、複数の位置決めパターン等を選択使用
する場合に所要メモリ容量の増大化を防止できる機器制
御用プログラマブルコントローラを得ることを目的とす
る。
The present invention has been made in order to solve such a problem, and can prevent a decrease in positioning accuracy due to occurrence of irregular interruption of operation and a decrease in response speed of sequence control due to occurrence of interruption of sequence processing. At the same time, it is an object of the present invention to provide a programmable controller for device control which can easily set or change positioning data by a sequence program and can prevent an increase in required memory capacity when a plurality of positioning patterns and the like are selectively used.

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

この発明に係る機器制御用プログラマブルコントロー
ラは、制御対象をサーボ制御するサーボ制御部と、上記
制御対象からの入力情報、内部情報、上記制御対象への
出力情報等のデバイス情報がデバイス名、レジスタ番号
等の変数で記述されたシーケンスプログラムをスキャン
実行し上記出力情報および上記内部情報を更新する動作
を繰返すことにより上記出力情報を介して上記制御対象
をシーケンス制御するシーケンス制御部と、起動エリア
および制御情報エリアとを有するデュアルポートメモリ
と、を備え、上記シーケンス制御部は上記シーケンスプ
ログラムの実行により所定の上記デバイス情報の値を上
記デバイス情報エリアに書き込むとともに所定の起動情
報を上記起動エリアに書き込み、上記サーボ制御部は上
記起動エリアを監視し上記起動情報が書き込まれると上
記デバイス情報エリアから上記デバイス情報の値を読み
取りこの値によりサーボ制御するようにしたものであ
る。
The device control programmable controller according to the present invention includes a servo control unit that servo-controls a control target, and device information such as input information from the control target, internal information, and output information to the control target as a device name and a register number. And a sequence control unit for performing sequence control of the controlled object through the output information by repeating the operation of scanning the sequence program described by variables and updating the output information and the internal information, and the activation area and control And a dual port memory having an information area, wherein the sequence control unit writes a value of the predetermined device information in the device information area by executing the sequence program and also writes predetermined activation information in the activation area, The servo controller monitors the activation area Said the activation information is written reads the value of the device information from the device information area This value is obtained so as to servo-control.

また、サーボ制御部は位置決めデータが変数で記述さ
れたサーボプログラムが格納されるサーボプログラムメ
モリを有し、この変数がデバイス情報エリアから読出さ
れたデバイス情報の値により置き換えられた上記サーボ
プログラムにもとづき制御対象をサーボ制御するように
したものである。
Further, the servo control section has a servo program memory in which a servo program in which positioning data is described by variables is stored, and based on the servo program in which this variable is replaced by the value of the device information read from the device information area. The control target is servo-controlled.

〔作用〕[Action]

この発明における機器制御用プログラマブルコントロ
ーラは、シーケンス制御部はシーケンスプログラムの実
行により所定のデバイス情報の値をデュアルポートメモ
リのデバイス情報エリアに書き込むとともに所定の起動
情報をデュアルポートメモリの起動エリアに書き込み、
サーボ制御部は起動エリアを監視し起動情報が書き込ま
れるとデバイス情報エリアからデバイス情報の値を読み
取りこの値によりサーボ制御する。
In the programmable controller for device control according to the present invention, the sequence control unit writes the value of the predetermined device information in the device information area of the dual port memory by executing the sequence program and also writes the predetermined activation information in the activation area of the dual port memory,
The servo control unit monitors the activation area, and when the activation information is written, the value of the device information is read from the device information area and servo control is performed based on this value.

また、サーボ制御部に位置決めデータが変数で記述さ
れたサーボプログラムが格納されるサーボプログラムメ
モリを設け、この変数がデバイス情報エリアから読出さ
れたデバイス情報の値により置き換えられたサーボプロ
グラムにもとづき制御対象をサーボ制御する。
In addition, the servo control section is provided with a servo program memory that stores the servo program in which the positioning data is described by variables, and the control target is based on the servo program in which this variable is replaced by the value of the device information read from the device information area. Servo control.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第
1図は、この発明の一実施例による機器制御用プログラ
マブルコントローラの構成図である。この実施例におい
ては、PC本体(1)内にシーケンス処理を行うシーケン
ス制御部、例えば、シーケンス制御演算部とサーボ制御
を行うサーボ制御部を設けるようにしている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a programmable controller for controlling equipment according to an embodiment of the present invention. In this embodiment, a sequence control unit for performing sequence processing, for example, a sequence control calculation unit and a servo control unit for servo control are provided in the PC body (1).

図において、(1−1)はマイクロプロセッサ(CP
U)、(1−2)は制御メモリ、(1−3)は入出力イ
ンターフェース、(1−4)は周辺装置用インターフェ
ース、(3)は入力ユニット、(4)は出力ユニットで
ある。なお、シーケンス制御演算部はマイクロプロセッ
サ(1−1)、制御メモリ(1−2)、入出力インター
フェース(1−3)、および、周辺装置用インターフェ
ース(1−4)から構成される。(1−6)はマイクロ
プロセッサ(CPU)、(1−7)は制御メモリ、(1−
8)はサーボインターフェース、(5)はサーボシステ
ムである。なお、マイクロプロセッサ(1−6)、制御
メモリ(1−7)、および、サーボインターフェース
(1−8)よりサーボ制御部が構成される。(7)はシ
ーケンス制御演算部とサーボ制御部との間の情報受け渡
しを行うコモンメモリ、例えば、デュアルポートメモリ
である。
In the figure, (1-1) is a microprocessor (CP
U) and (1-2) are control memories, (1-3) is an input / output interface, (1-4) is a peripheral device interface, (3) is an input unit, and (4) is an output unit. The sequence control calculation unit is composed of a microprocessor (1-1), a control memory (1-2), an input / output interface (1-3), and a peripheral device interface (1-4). (1-6) is a microprocessor (CPU), (1-7) is a control memory, (1-
8) is a servo interface, and (5) is a servo system. A servo controller is composed of the microprocessor (1-6), the control memory (1-7) and the servo interface (1-8). Reference numeral (7) is a common memory, such as a dual port memory, for passing information between the sequence control calculation unit and the servo control unit.

シーケンス処理時のデバイス情報は、コモンメモリ
(7)に格納される。また、サーボ制御の際の位置決め
情報もやはりコモンメモリ(7)に格納される。
Device information at the time of sequence processing is stored in the common memory (7). Positioning information for servo control is also stored in the common memory (7).

第2図は、コモンメモリ(7)の内容を説明する図で
ある。
FIG. 2 is a diagram for explaining the contents of the common memory (7).

図に示すように、コモンメモリ(7)は起動エリア
(7b)と、制御情報エリア、例えば、位置決めデータエ
リア(7a)と、モニタエリア(7c)とを有している。
As shown in the figure, the common memory (7) has an activation area (7b), a control information area, for example, a positioning data area (7a), and a monitor area (7c).

次に、この実施例の動作において第1図及び第2図に
より説明する。通常、制御パターン等の情報は周辺装置
用インターフェース(1−4)を介し制御メモリ(1−
2)のユーザにより予め入力されている。そしてCPU
(1−1)は、制御メモリ(1−2)に格納されている
シーケンスプログラムを実行し、その結果得られた位置
決めデータはコモンメモリ(7)の位置決めデータエリ
ア(7a)に格納される。入力ユニット(3)から所定の
入力信号が与えられると、CPU(1−1)は起動情報、
例えば、位置決め指令をコモンメモリ(7)の起動エリ
ア(7b)に書き込む。
Next, the operation of this embodiment will be described with reference to FIGS. Normally, information such as a control pattern is sent to the control memory (1-) via the peripheral device interface (1-4).
It is previously input by the user of 2). And CPU
(1-1) executes the sequence program stored in the control memory (1-2), and the positioning data obtained as a result is stored in the positioning data area (7a) of the common memory (7). When a predetermined input signal is given from the input unit (3), the CPU (1-1) starts up information,
For example, the positioning command is written in the activation area (7b) of the common memory (7).

サーボ制御部のマイクロプロセッサ(1−6)は、こ
の位置決め指令が書き込まれるのを起動エリア(7b)を
サンプリングして監視しており、この指令が書き込まれ
ると、位置決めデータエリア(7a)からデータを読出
し、これをサーボインターフェース(1−8)を介して
サーボシステム(5)に送り位置決め制御を行う。位置
決めが完了すると、コモンメモリ(7)のモニタエリア
に位置決めが完了したことを示す情報を格納する。ま
た、位置決め途中のデータや、エラー情報も随時コモン
メモリ(7)のモニタエリア(7c)に格納する。
The microprocessor (1-6) of the servo control unit monitors the writing of this positioning command by sampling the starting area (7b), and when this command is written, the data is read from the positioning data area (7a). Is read out and sent to the servo system (5) through the servo interface (1-8) to perform positioning control. When the positioning is completed, the information indicating that the positioning is completed is stored in the monitor area of the common memory (7). Further, data in the middle of positioning and error information are also stored in the monitor area (7c) of the common memory (7) as needed.

このように構成することにより、各々のマイクロプロ
セッサ(1−1)、(1−6)は完全に独立してそれぞ
れの制御を行えばよくなるので、シーケンス制御演算部
とサーボ制御部との間のインターフェース処理のための
待ち時間をなくすことができる。そして、高速で高精度
な処理が可能にあり、また、プログラム構成がしやく簡
単になる。
With this configuration, each of the microprocessors (1-1) and (1-6) has only to perform their respective control completely independently, so that the sequence control calculation unit and the servo control unit can be controlled. The waiting time for interface processing can be eliminated. Moreover, high-speed and highly-accurate processing is possible, and the program structure is easy and simple.

次に、以上に述べたこの実施例の構成について記述す
る。マイクロプロセッサ(1−1)は、位置決めデータ
エリア(7a)に位置決めアドレス、位置決め高速トルク
制限値、位置決め方式等の位置決めデータを書き込んだ
後、起動エリア(7b)に位置決め指令を書き込む。
Next, the configuration of this embodiment described above will be described. The microprocessor (1-1) writes positioning data such as a positioning address, a positioning high speed torque limit value, and a positioning method in the positioning data area (7a), and then writes a positioning command in the activation area (7b).

マイクロプロセッサ(1−6)は起動エリア(7b)に
位置決め指令が書き込まれたか否かを常に監視してお
り、書き込まれていたら位置決めデータエリア(7a)よ
りデータを取り出して位置決め制御を開始する。
The microprocessor (1-6) constantly monitors whether or not a positioning command is written in the activation area (7b), and if it is written, it takes out data from the positioning data area (7a) and starts positioning control.

なお、起動エリア(7b)を1軸に対し1つ設けるよう
にすることにより多軸の位置決めの場合は位置決めが簡
単に行える。また、位置決めデータエリア(7a)の情報
中に補間運転、円弧補間運転、インクリメント運転等を
示す情報を与えることにより多軸の複雑な動作も容易に
行うことができる。
By providing one starting area (7b) for each axis, positioning can be performed easily in the case of multi-axis positioning. Further, by providing information indicating the interpolation operation, the circular interpolation operation, the increment operation, etc. in the information of the positioning data area (7a), it is possible to easily perform a complicated operation of multiple axes.

また、シーケンス制御演算部がモニタエリア(7c)を
アクセスすることにより容易にサーボ制御部のデータ、
例えば現在値や回転数、動作状態等をモニタすることが
できる。
In addition, the sequence control calculation unit can easily access the data of the servo control unit by accessing the monitor area (7c).
For example, it is possible to monitor the current value, the number of revolutions, the operating state, and the like.

このように、この実施例によれば、情報受け渡し時に
おける両者の動作タイミングをとる必要がなくなり、連
続的な位置決め制御が可能となる。
As described above, according to this embodiment, it is not necessary to set the operation timing of both when transferring information, and continuous positioning control is possible.

なお、この実施例においては、位置決め情報はすべて
シーケンス制御演算部より、コモンメモリ(7)経由で
サーボ制御部に渡すようにしているが、サーボ制御部の
側に周辺装置用インターフェースを設け、この周辺装置
用インターフェースを介して制御メモリ(1−7)に位
置決め情報を予め格納しておくことにより、コモンメモ
リ(7)に対するシーケンス制御演算部からの書き込み
は簡単な内容になり、シーケンスプログラムをより簡単
にすることができる。
In this embodiment, all the positioning information is passed from the sequence control calculation unit to the servo control unit via the common memory (7), but a peripheral device interface is provided on the servo control unit side. By storing the positioning information in the control memory (1-7) in advance via the peripheral device interface, writing from the sequence control calculation unit to the common memory (7) becomes simple, and the sequence program can be stored more easily. Can be easy.

また、この実施例においては位置決め制御について説
明したが、これに限らず、位置決め制御以外の制御を行
う場合についても適用可能である。
Further, although the positioning control has been described in this embodiment, the present invention is not limited to this, and can be applied to a case where a control other than the positioning control is performed.

次に、この発明の他の実施例を第3図、第4図により
説明する。。第3図において、第1図の構成と異なる点
はサーボプログラムメモリ(8)が追加されたことと、
コモンメモリ(7)がコモンメモリ(9)に換わったこ
とである。コモンメモリ(9)はコモンメモリ(7)と
同様にデュアルポートメモリによるコモンメモリであ
り、このコモンメモリ(9)は第4図のようにデバイス
情報エリア(9a)、起動エリア(9b)、モニタエリア
(9c)を備えている。
Next, another embodiment of the present invention will be described with reference to FIGS. . In FIG. 3, a difference from the configuration of FIG. 1 is that a servo program memory (8) is added,
That is, the common memory (7) is replaced with the common memory (9). Like the common memory (7), the common memory (9) is a dual port memory common memory, and this common memory (9) is a device information area (9a), a boot area (9b), a monitor as shown in FIG. It has an area (9c).

第5図はこの実施例におけるデバイス情報エリア(9
a)に格納されるデバイス情報の種類と仕様の一例を示
す図である。デバイス情報エリア(9a)には各デバイス
情報としてサーボ制御に必要なデバイスが書き込まれる
ことになる。また、このデバイス情報エリア(9a)には
制御メモリ(1−2)からのデータも書き込まれる。
FIG. 5 shows the device information area (9
It is a figure which shows an example of the kind and specification of the device information stored in a). In the device information area (9a), devices required for servo control are written as each device information. Further, the data from the control memory (1-2) is also written in the device information area (9a).

この実施例においては、第5図に示されるように内部
リレーは1000点あり、それぞれレジスタ番号M0〜M999が
付されている。この内部リレーにはシーケンスプログラ
ムの演算条件、または演算結果の情報(ONまたはOFFの
情報)が記憶される。
In this embodiment, as shown in FIG. 5, there are 1000 internal relays, which are respectively assigned register numbers M0 to M999. The internal relay stores the calculation condition of the sequence program or the calculation result information (ON or OFF information).

また、データレジスタは1024点あり、それぞれレジス
タ番号D0〜D1023が付されている。このデータレジスタ
はシーケンスプログラムの演算結果の情報を記憶するも
のであり、それぞれ16ビットの記憶容量を有している。
In addition, there are 1024 data registers, which are assigned register numbers D0 to D1023, respectively. This data register stores the information of the operation result of the sequence program, and has a storage capacity of 16 bits each.

上述のように、デバイス情報には、ON,OFFの情報を持
つ1ビットのデバイス情報と、16ビットのデバイスを持
つデバイス情報との2種類がある。
As described above, there are two types of device information: 1-bit device information having ON / OFF information and device information having 16-bit devices.

次に、第3,4図によりこの実施例の動作について説明
する。マイクロプロセッサ(1−1)は入出力インター
フェース(1−3)を介して制御メモリ(1−2)に入
力されたデバイス増俸に基づいてシーケンスプログラム
により、シーケンス処理を実行している。そして、その
際に得られたサーボ制御に必要なデバイス情報はコモン
メモリ(9)のデバイス情報エリア(9a)に格納され
る。サーボコントローラ用のマイクロプロセッサ(1−
6)は周辺装置用インターフェース(1−4)を介して
サーボプログラムメモリ8に格納されいるサーボプログ
ラムにより位置決め制御を実行する。
Next, the operation of this embodiment will be described with reference to FIGS. The microprocessor (1-1) executes the sequence processing by the sequence program based on the device increase input to the control memory (1-2) through the input / output interface (1-3). Then, the device information necessary for the servo control obtained at that time is stored in the device information area (9a) of the common memory (9). Microprocessor for servo controller (1-
6) executes positioning control by the servo program stored in the servo program memory 8 via the peripheral device interface (1-4).

そして、サーボコントローラ用マイクロプロセッサ
(1−6)により位置決め制御状態(現在値など)や、
エラー情報は随時コモンメモリ(9)のモニタエリア
(9c)に格納される。
Then, by the microprocessor for servo controller (1-6), the positioning control state (current value, etc.),
The error information is stored in the monitor area (9c) of the common memory (9) at any time.

次に、第6図(a)に示す「補助点指定の円弧補間位
置決め」の動作を例にとり上述の動作を詳述する。第6
図(a)に示す軌跡Aの動作においては、第6図(b)
に示すようにこの軌跡Aに必要なデバイス情報が指定さ
れており、シーケンス制御演算部により、この指定され
たデバイス情報のデータがコモンメモリ(9)のデバイ
ス情報エリア(9a)に格納される。
Next, the above-mentioned operation will be described in detail by taking the operation of "circular interpolation positioning with auxiliary point designation" shown in FIG. 6 (a) as an example. Sixth
In the operation of the locus A shown in FIG. 6A, FIG.
As shown in, the device information required for the locus A is designated, and the sequence control computing unit stores the designated device information data in the device information area (9a) of the common memory (9).

サーボプログラムメモリ(8)に格納されているサー
ボプログラムでは、第6図(b)に示すように終点アド
レスや速度等の制御に必要な情報がデバイス情報のレジ
スタ番号として、すなわち、アドレスや速度そのものを
示す数値ではなく変数として間接的に指定される。な
お、第6図(b)において は補助点指定円弧補間位置決めであることを示す記号で
ある。
In the servo program stored in the servo program memory (8), as shown in FIG. 6 (b), the information necessary for controlling the end point address, speed, etc. is used as the device information register number, that is, the address and speed itself. It is indirectly specified as a variable instead of a numerical value indicating. In addition, in FIG. 6 (b) Is a symbol indicating auxiliary point-designated circular interpolation positioning.

次に、シーケンスプログラムの実行によりコモンメモ
リ(9)のデバイス情報エリア(9a)に格納された位置
決めデータはマイクロプロセッサ(1−6)により読み
出される。
Next, the positioning data stored in the device information area (9a) of the common memory (9) by executing the sequence program is read by the microprocessor (1-6).

第7図はこの間接的な指定による位置決め制御におい
て、位置決めデータをシーケンス制御演算部のシーケン
スプログラムによりコモンメモリ(9)に書き込む例を
示す。
FIG. 7 shows an example of writing the positioning data in the common memory (9) by the sequence program of the sequence control operation unit in the positioning control by the indirect designation.

第7図(a)に示すシーケンスプログラムは、入力
がONすると、軌跡Aをデバイス1にセットし、また、入
力がONすると、軌跡Bをデバイス1にセットし、ま
た、入力がONすると、軌跡Cをデバイス1にセット
し、入力,,のいずれがONしたことによりデバイ
ス1による位置決めを実行する。
The sequence program shown in FIG. 7 (a) sets the locus A to the device 1 when the input is turned on, sets the locus B to the device 1 when the input is turned on, and sets the locus when the input is turned on. Positioning is performed by the device 1 when C is set in the device 1 and any one of input and ON is turned on.

ここで、デバイス1とは、例えば第6図(b)に示
す、サーボプログラムの終点アドレスを指定するデバイ
スD0,D1と、補助点アドレスを指定するデバイスD3,D
4と、速度を指定するデバイスD2である(軌跡AのD0,
D1,D3,D4として例えば1000,500,200,180がセットされ
る)。そして、入力条件、、を選択することによ
り軌跡を変更するこができる。
Here, the device 1 is, for example, as shown in FIG. 6B, the devices D 0 and D 1 that specify the end point address of the servo program and the devices D 3 and D that specify the auxiliary point address.
4 and the device D 2 that specifies the speed (D 0 of the trajectory A,
For example, 1000, 500, 200, 180 are set as D 1 , D 3 , D 4 . Then, the locus can be changed by selecting the input condition ,.

デバイス情報を設定する簡単なシーケンスプログラム
例を第7図(b)に示す。これはデバイスM0がONであれ
ば、デバイスD0に定数100をセットし、デバイスM1をON
にすることを意味する。
An example of a simple sequence program for setting device information is shown in FIG. If device M0 is on, set device D0 to constant 100 and turn on device M1.
Means to

また、デバイスM0がOFFであれば、この処理は実行さ
れない。上述の入力,,や、M0のONの指定は、事
前にユーザの入力により、指定されるかまたは制御メモ
リ(1−2)に格納されているシーケンスプログラムの
実行により指定される。
If the device M0 is OFF, this process is not executed. The above-mentioned inputs and the designation of turning ON M0 are designated by the user's input in advance or designated by the execution of the sequence program stored in the control memory (1-2).

以上のように、入力ユニット(3)により所定の入力
信号が与えられるとPC用マイクロプロセッサ(1−1)
がコモンメモリ(9)の起動エリア(9b)に位置決め指
令を格納しマイクロプロセッサ(1−6)は、この指令
が書き込まれるのを監視していて、この指令が書き込ま
れると、サーボプログラムで指定した間接的なデバイス
情報に基づきコモンメモリ(9)のデバイス情報エリア
(9a)よりデータを得てマイクロプロセッサ(1−6)
が位置決め制御を実行するというようにして位置決め制
御が行われる。そして、位置決め制御のパターンを変更
する(位置決めデータを変更する)場合は、シーケンス
プログラムにより、デバイス情報の内容を書き換えるだ
けでよく、サーボプログラムを変更する必要はない。デ
バイス情報の内容を変更した後、位置決め指令が入力さ
れると、変更後の内容に基づいて位置決め制御が行われ
る。
As described above, when a predetermined input signal is given by the input unit (3), the PC microprocessor (1-1)
Stores a positioning command in the activation area (9b) of the common memory (9), and the microprocessor (1-6) monitors the writing of this command. When this command is written, it is specified by the servo program. The microprocessor (1-6) obtains data from the device information area (9a) of the common memory (9) based on the indirect device information.
Positioning control is performed by executing the positioning control by the. When changing the pattern of the positioning control (changing the positioning data), it is only necessary to rewrite the contents of the device information by the sequence program, and there is no need to change the servo program. When the positioning command is input after changing the contents of the device information, the positioning control is performed based on the changed contents.

この実施例では、シーケンスプログラムで取り扱うデ
バイス情報により位置決めデータを指定できるため以下
のような効果が得られる。
In this embodiment, since the positioning data can be designated by the device information handled by the sequence program, the following effects can be obtained.

サーボプログラムメモリ(8)のサーボプログラムに
おいて、位置決めデータ(速度や位置決めアドレス等)
が間接的なデバイス情報により指定されるようにしてお
けば、シーケンスプログラムによりデバイス情報の内容
を変更するだけで位置決めデータを変更することができ
る。このため、シーケンスプログラムにより位置決めア
ドレス等を演算させる場合には、演算結果をデバイス情
報の内容としてにセットするだけで、目的の位置決めが
達成される。
Positioning data (speed, positioning address, etc.) in the servo program of the servo program memory (8)
If is specified by the indirect device information, the positioning data can be changed only by changing the contents of the device information by the sequence program. Therefore, when the positioning address or the like is calculated by the sequence program, the target positioning can be achieved simply by setting the calculation result as the content of the device information.

また、このように間接指定により位置決めデータ指定
しておき、デバイス情報の内容をかえることにより多く
のパターンの制御のひとつのサーボプログラムで実行で
きるので、多くのパターンのそれぞれについてサーボプ
ログラムを作成し、記憶させる必要がくなる。
Also, since positioning data can be designated by indirect designation in this way, and one servo program for controlling many patterns can be executed by changing the contents of device information, you can create servo programs for each of many patterns. It becomes necessary to memorize.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、シーケンス制御
部はシーケンスプログラムの実行により所定のデバイス
情報の値をデュアルポートメモリのデバイス情報エリア
に書き込むとともに所定の起動情報をデュアルポートメ
モリの起動エリアに書き込み、サーボ制御部は起動エリ
アを監視し起動情報が書き込まれるとデバイス情報エリ
アからデバイス情報の値を読み取りこの値によりサーボ
制御するようにしたので、データ授受におけるデータ量
の制限の発生やデータ転送速度の低下を防止でき、動作
の不規則な中断の発生による位置決め精度の低下やシー
ケンス処理の中断の発生によるシーケンス制御の応答速
度の低下を防止できるとともにシーケンスプログラムに
より容易に位置決めデータの設定、変更ができる効果が
ある。
As described above, according to the present invention, the sequence control unit writes the value of the predetermined device information in the device information area of the dual port memory by executing the sequence program and also writes the predetermined activation information in the activation area of the dual port memory. , The servo control unit monitors the boot area and reads the device information value from the device information area when the boot information is written to perform servo control based on this value. Therefore, the data amount is limited during data transfer and the data transfer speed. It is possible to prevent deterioration of positioning accuracy due to occurrence of irregular interruption of operation and deterioration of response speed of sequence control due to occurrence of interruption of sequence processing, and to easily set and change positioning data by a sequence program. There is an effect that can be done.

また、サーボ制御部に位置決めデータが変数で記述さ
れたサーボプログラムが格納されるサーボプログラムメ
モリを設け、この変数がデバイス情報エリアから読出さ
れたデバイス情報の値により置き換えられたサーボプロ
グラムにもとづき制御対象をサーボ制御するようにした
ので、さらに、データ転送量の増大化が防止されデータ
転送にもとづく処理速度の低下が防止できるとともに複
数の位置決めパターン等を選択使用する場合に所要メモ
リ容量の増大化を防止できる効果がある。
In addition, the servo control section is provided with a servo program memory that stores the servo program in which the positioning data is described by variables, and the control target is based on the servo program in which this variable is replaced by the value of the device information read from the device information area. Since the servo control is performed, it is possible to prevent an increase in the data transfer amount, prevent a decrease in the processing speed due to the data transfer, and increase the required memory capacity when selecting and using multiple positioning patterns. There is an effect that can be prevented.

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

第1図はこの発明の一実施例であるプログラマブルコン
トローラの構成図、第2図はこの発明のコモンメモリの
説明図、第3図はこの発明の一実施例であるプログラマ
ブルコントローラの構成図、第4図は第3図のコモンメ
モリの説明図、第5図はデバイスの説明図、第6図
(a)は位置決め動作の軌跡を示す説明図、第6図
(b)は第6図(a)に示した軌跡に関するデバイス情
報の例を示す説明図、第7図(a)(b)はシーケンス
プログラムの一例を示す説明図、第8図は従来のプログ
ラマブルコントローラで使用した位置決め制御装置の構
成図、第9図は従来のやりとりの方法説明図である。 (1)はプログラマブルコントローラ、(1−1)はシ
ーケンシャル処理演算部のマイクロプロセッサ、(1−
6)はサーボ制御部のマイクロプロセッサ、(7)
(9)はコモンメモリ、(8)はサーボプログラムメモ
リである。 なお、図中同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram of a programmable controller which is an embodiment of the present invention, FIG. 2 is an explanatory diagram of a common memory of the present invention, and FIG. 3 is a block diagram of a programmable controller which is an embodiment of the present invention. 4 is an explanatory view of the common memory in FIG. 3, FIG. 5 is an explanatory view of the device, FIG. 6 (a) is an explanatory view showing the locus of the positioning operation, and FIG. 6 (b) is FIG. 6 (a). ) Is an explanatory view showing an example of device information regarding the locus shown in FIG. 7, FIGS. 7A and 7B are explanatory views showing an example of a sequence program, and FIG. 8 is a configuration of a positioning control device used in a conventional programmable controller. 9 and 9 are explanatory views of a conventional exchange method. (1) is a programmable controller, (1-1) is a microprocessor of a sequential processing operation unit, (1-
6) is the microprocessor of the servo controller, (7)
(9) is a common memory, and (8) is a servo program memory. In the drawings, the same reference numerals indicate the same or corresponding parts.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭53−16176(JP,A) 特開 昭59−174916(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-53-16176 (JP, A) JP-A-59-174916 (JP, A)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御対象をサーボ制御するサーボ制御部
と、上記制御対象からの入力情報、内部情報、上記制御
対象への出力情報等のデバイス情報がデバイス名、レジ
スタ番号等の変数で記述されたシーケンスプログラムを
スキャン実行し上記出力情報および上記内部情報を更新
する動作を繰返すことにより上記出力情報を介して上記
制御対象をシーケンス制御するシーケンス制御部と、起
動エリアおよび制御情報エリアとを有するデュアルポー
トメモリと、を備え、上記シーケンス制御部は上記シー
ケンスプログラムの実行により所定の上記デバイス情報
の値を上記デバイス情報エリアに書き込むとともに所定
の起動情報を上記起動エリアに書き込み、上記サーボ制
御部は上記起動エリアを監視し上記起動情報が書き込ま
れると上記デバイス情報エリアから上記デバイス情報の
値を読み取りこの値によりサーボ制御することを特徴と
する機器制御用プログラマブルコントローラ。
1. A servo control unit for servo-controlling a control target, and device information such as input information from the control target, internal information, and output information to the control target are described by variables such as a device name and a register number. Having a sequence control unit for performing sequence control of the controlled object via the output information by repeating the operation of scanning the sequence program and updating the output information and the internal information, and a dual area having a start area and a control information area. A port memory, and the sequence control section writes predetermined device information values in the device information area and predetermined start information in the start area by executing the sequence program, and the servo control section When the boot area is monitored and the boot information is written, the device Programmable controller device control, characterized in that the servo-controlled by the value read the value of the device information from the broadcast area.
【請求項2】サーボ制御部は位置決めデータが変数で記
述されたサーボプログラムが格納されるサーボプログラ
ムメモリを有し、この変数がデバイス情報エリアから読
出されたデバイス情報の値により置き換えられた上記サ
ーボプログラムにもとづき制御対象をサーボ制御するこ
とを特徴とする請求項1記載の機器制御用プログラマブ
ルコントローラ。
2. The servo control unit has a servo program memory in which a servo program in which positioning data is described by variables is stored, and the variable is replaced by a value of device information read from a device information area. 2. The programmable controller for controlling equipment according to claim 1, wherein the controlled object is servo-controlled based on a program.
JP1111708A 1988-08-03 1989-04-28 Programmable controller for device control Expired - Lifetime JP2522047B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE19893925756 DE3925756C2 (en) 1988-08-03 1989-08-03 Programmable control unit to control the operation of a connected servo system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP19397188 1988-08-03
JP63-193971 1988-08-03

Publications (2)

Publication Number Publication Date
JPH02146606A JPH02146606A (en) 1990-06-05
JP2522047B2 true JP2522047B2 (en) 1996-08-07

Family

ID=16316818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1111708A Expired - Lifetime JP2522047B2 (en) 1988-08-03 1989-04-28 Programmable controller for device control

Country Status (1)

Country Link
JP (1) JP2522047B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5316176A (en) * 1976-07-30 1978-02-14 Toshiba Corp Nc device loaded with sequential controller
JPS59174916A (en) * 1983-03-25 1984-10-03 Mitsubishi Electric Corp Numerical control device

Also Published As

Publication number Publication date
JPH02146606A (en) 1990-06-05

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
US6629165B1 (en) Programmable controller including intelligent module
JPH09128255A (en) Programable logic controller
JP2522047B2 (en) Programmable controller for device control
JPS5911921B2 (en) numerical control device
US6182207B1 (en) Microcontroller with register system for the indirect accessing of internal memory via auxiliary register
JP2846760B2 (en) Programmable controller
JPS63138403A (en) Data transfer system
JP2713508B2 (en) Multi-path numerical controller
JPH03288906A (en) Instruction executing system for pc
JP2588953B2 (en) Numerical control unit
JPH0261749A (en) Data transfer device
JPS63239511A (en) Robot system
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH0760330B2 (en) Combined control device
JP3085308B2 (en) Processing information management system
JP3793246B2 (en) Positioning system
JPH01224805A (en) Controller
JP2002140103A (en) Servo controller, and control method therefor
JPH08314801A (en) Memory managing system
JPH0477930A (en) Microcomputer
JPH096425A (en) Multi-processor system
JPS62217308A (en) Numerical controller
JPH01205203A (en) Program control system for programmable controller
JPH04120638A (en) Cache memory controlling system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080531

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090531

Year of fee payment: 13

EXPY Cancellation because of completion of term