JP2793258B2 - Data setting method for positioning control device - Google Patents

Data setting method for positioning control device

Info

Publication number
JP2793258B2
JP2793258B2 JP13193889A JP13193889A JP2793258B2 JP 2793258 B2 JP2793258 B2 JP 2793258B2 JP 13193889 A JP13193889 A JP 13193889A JP 13193889 A JP13193889 A JP 13193889A JP 2793258 B2 JP2793258 B2 JP 2793258B2
Authority
JP
Japan
Prior art keywords
data
positioning control
area
shared memory
window
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
JP13193889A
Other languages
Japanese (ja)
Other versions
JPH02310606A (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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP13193889A priority Critical patent/JP2793258B2/en
Publication of JPH02310606A publication Critical patent/JPH02310606A/en
Application granted granted Critical
Publication of JP2793258B2 publication Critical patent/JP2793258B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はシーケンサと組み合わされて使用される位置
決め制御装置のデータ設定方法に関するものである。
The present invention relates to a data setting method of a positioning control device used in combination with a sequencer.

[従来の技術] 近年、リレーシーケンスを母体として出発したシーケ
ンサは高機能になり、従来専用装置で専用プログラム言
語を用いていた位置決め制御をシーケンサの機能として
組み込むようになった。特にマザーボードと呼ばれるボ
ードにシーケンサの演算装置を構成する演算ユニット、
I/Oユニット、特殊ユニットを挿着してユーザの仕様に
合ったシーケンサを構成するタイプが増えてきている
が、この中の特殊ユニットとして使用される位置決め制
御ユニットが位置決め制御装置を構成する。このユニッ
トはマーザボードによって演算ユニットに結合されるた
め、従来のオン、オフの接点情報以外に移動量等のデー
タを高速に且つ多量に扱うことができる。
[Related Art] In recent years, a sequencer starting from a relay sequence as a base has become sophisticated, and positioning control, which has conventionally used a dedicated program language with a dedicated device, has been incorporated as a function of the sequencer. In particular, an arithmetic unit that configures the arithmetic unit of the sequencer on a board called a motherboard,
An increasing number of types of I / O units and special units are inserted to form a sequencer that meets the user's specifications. Among them, a positioning control unit used as a special unit constitutes a positioning control device. Since this unit is connected to the arithmetic unit by the marza board, data such as the amount of movement can be handled in a large amount at high speed in addition to the conventional ON / OFF contact information.

第6図は従来の位置決め制御ユニット1の構成を示し
ており、この位置決め制御ユニット1はシーケンサの演
算ユニット2のマイクロプロセッサに対してマザーボー
ドの内部バス3とバス切り替え回路4とを介してシステ
ムメモリ5のバスに接続している。また位置制御ユニッ
ト1内のマイクロプロセッサ6はバス7とバス切り替え
回路4とを通じて上記システムメモリ5のバスに接続す
るとともに、教示装置9との間でデータの授受を行える
ように通信回路8と接続部10とを介して教示装置9に接
続している。
FIG. 6 shows the configuration of a conventional positioning control unit 1. This positioning control unit 1 supplies a system memory to a microprocessor of an operation unit 2 of a sequencer via an internal bus 3 on a motherboard and a bus switching circuit 4. 5 buses. The microprocessor 6 in the position control unit 1 is connected to the bus of the system memory 5 through the bus 7 and the bus switching circuit 4 and is connected to the communication circuit 8 so that data can be exchanged with the teaching device 9. It is connected to the teaching device 9 via the section 10.

[発明が解決しようとする課題] この第6図従来例はバス切り替え回路4を使用してい
るため、構成が複雑で、スペース的にも小型化できない
上に、システムメモリ5全体をシーケンサの演算ユニッ
ト2より書き換えられるため位置決め制御ユニット1の
OS部分への書き込みを禁止する回路が必要などの問題が
あった。
[Problem to be Solved by the Invention] In the conventional example of FIG. 6, since the bus switching circuit 4 is used, the configuration is complicated, the space cannot be reduced in size, and the entire system memory 5 is operated by a sequencer. Since it is rewritten by the unit 2, the positioning control unit 1
There were problems such as the need for a circuit that inhibits writing to the OS part.

そこでバス切り替え回路4を用いず、位置決め制御ユ
ニット1に2つのバスを持ち、演算ユニット2のマイク
ロプロセッサと位置決め制御ユニット1のマイクロプロ
セッサ6から読み書き可能な共有メモリ11を用いた第7
図に示すような位置決め制御ユニット1が提案されるよ
うになっているが、この従来例では共有メモリ11に大容
量の素子が無いため、多量のデータをシーケンサの演算
ユニット2側より設定できないという問題があった。
Therefore, without using the bus switching circuit 4, the positioning control unit 1 has two buses, and uses a shared memory 11 that is readable and writable by the microprocessor of the arithmetic unit 2 and the microprocessor 6 of the positioning control unit 1.
Although the positioning control unit 1 as shown in the figure has been proposed, in this conventional example, since there is no large-capacity element in the shared memory 11, a large amount of data cannot be set from the operation unit 2 side of the sequencer. There was a problem.

請求項1記載の発明は上記の問題点に鑑みて為された
もので、その目的とするところは複雑なバス切り替えが
不要で、しかも大容量の共有メモリが無いことにも影響
を受けることなく、多量のデータの設定がシーケンサ側
より可能な共有メモリを使用した位置決め制御装置のデ
ータ設定方法を提供することを目的とする。
The invention according to claim 1 has been made in view of the above problems, and its purpose is to eliminate the need for complicated bus switching and to be unaffected by the absence of a large-capacity shared memory. It is another object of the present invention to provide a data setting method for a positioning control device using a shared memory capable of setting a large amount of data from a sequencer.

請求項2記載の発明は併せて位置決め制御装置内の処
理が簡単な位置決め制御装置のデータ設定方法を提供す
るにある。
Another object of the present invention is to provide a data setting method for a positioning control device in which processing in the positioning control device is simple.

[課題を解決するための手段] 請求項1記載の発明はシーケンサの演算装置に対して
アドレス信号、データ信号、制御信号を内部バスを介し
て接続され、設定された位置決め制御データに従って位
置決めを行う位置決め制御装置にはマイクロプロセッサ
と、上記内部バスを通じて上記演算装置に接続され且つ
別のバスを介してマイクロプロセッサを接続した共有メ
モリと、システムメモリとを備えるとともに、共有メモ
リに位置決め制御のデータエリアとウインドウナンバー
エリアとを設定し、システムメモリにオールドウインド
ウナンバーエリアと位置決め制御のデータエリアとを設
定したものである。
[Means for Solving the Problems] According to the invention described in claim 1, an address signal, a data signal, and a control signal are connected to an arithmetic unit of a sequencer via an internal bus, and positioning is performed according to set positioning control data. The positioning control device includes a microprocessor, a shared memory connected to the arithmetic unit via the internal bus, and connected to the microprocessor via another bus, and a system memory. And a window number area, and an old window number area and a positioning control data area are set in the system memory.

また請求項2記載の発明はシーケンサの演算装置に対
してアドレス信号、データ信号、制御信号を内部バスを
介して接続され、設定された位置決め制御データに従っ
て位置決めを行う位置決め制御装置にはマイクロプロセ
ッサと、上記内部バスを通じて上記演算装置に接続され
且つ別のバスを介してマイクロプロセッサを接続した共
有メモリと、システムメモリとを備えるとともに、共有
メモリに位置決め制御のデータエリアとウインドウナン
バーエリアとパラメータエリアを設定し、システムメモ
リにパラメータエリアと位置決め制御のデータエリアと
を設定したものである。
According to a second aspect of the present invention, a positioning control device for connecting an address signal, a data signal, and a control signal to an arithmetic device of a sequencer via an internal bus and performing positioning according to set positioning control data includes a microprocessor. A shared memory connected to the arithmetic unit via the internal bus and connected to a microprocessor via another bus, and a system memory, and the shared memory includes a data area for positioning control, a window number area, and a parameter area. The parameter area and the data area for positioning control are set in the system memory.

[作用] 請求項1記載の発明によれば演算装置からの条件接点
情報に基づいて該演算装置からのウインドウナンバーデ
ータを共有メモリのウインドウナンバーエリアに書き込
み、この書き込み後に上記演算装置から送られてくるウ
インドウ切り替え接点情報に基づいて、共有メモリの位
置決め制御のデータエリアから位置決め制御データをシ
ステムメモリのオールドウインドウナンバーのエリアの
ウインドウナンバーデータで指定されたシステムメモリ
の位置決め制御データのエリアに退避させるとともに、
上記共有メモリのウインドウナンバーエリアに書き込ん
だウインドウナンバーデータをシステムメモリのオール
ドウインドウナンバーのエリアに退避させ、且つ該ウイ
ンドウナンバーデータに対応するシステムメモリの位置
決め制御のデータエリアから位置決め制御データを共有
メモリの位置決め制御のデータエリアに転送させ、この
転送後に上記位置決め制御装置からウインドウ切り替え
完了接点情報を上記演算装置へ送出し、上記演算装置で
はウインドウ切り替え完了接点情報に基づいてウインド
ウ切り替え接点情報の保持を解除すると共にシーケンス
命令の中の共有メモリへのデータ転送命令により共有メ
モリの位置決め制御のデータエリアに書き込んだ位置決
め制御データの読み書きを行うのである。
[Operation] According to the first aspect of the present invention, the window number data from the arithmetic unit is written into the window number area of the shared memory based on the conditional contact information from the arithmetic unit. Based on the incoming window switching contact information, the positioning control data is saved from the positioning memory data area of the shared memory to the system memory positioning control data area designated by the window number data of the old window number area of the system memory. ,
The window number data written in the window number area of the shared memory is evacuated to the old window number area of the system memory, and the positioning control data is transferred from the positioning memory data area of the system memory corresponding to the window number data. The data is transferred to the positioning control data area, and after this transfer, the window control completion contact information is sent from the positioning control device to the arithmetic device, and the arithmetic device releases the holding of the window switching contact information based on the window change completion contact information. At the same time, the positioning control data written in the positioning control data area of the shared memory is read and written by the data transfer command to the shared memory in the sequence command.

また請求項2記載の発明では演算装置からの条件接点
情報に基づいて該演算装置からのウインドウナンバーデ
ータを共有メモリのウインドウナンバーエリアに書き込
み、この書き込み後に上記演算装置から送られてくるウ
インドウ切り替え接点情報に基づいて、上記ウインドナ
ンバーデータで指定された位置決め制御のデータエリア
から位置決め制御データを共有メモリに転送するととも
システムメモリのパラメータエリアのパラメータを共有
メモリのパラメータエリアに転送し、この転送後に上記
位置決め制御装置からウインドウ切り替え完了接点情報
を上記演算装置へ送出し、読み出し時には上記演算装置
ではウインドウ切り替え完了接点情報に基づいてウイン
ドウ切り替え接点情報の保持を解除すると共にシーケン
ス命令の中の共有メモリへのデータ転送命令により共有
メモリの位置決め制御のデータエリアに書き込んだ位置
決め制御データの読み出し、書き込み時には上記ウイン
ドウ切り替え完了接点情報に基づいて共有メモリへのデ
ータ転送命令を用いて上記演算装置から書き込むデータ
を転送し、この転送後にデータ書き込み接点情報を演算
装置から位置決め制御装置に与えて、共有メモリの位置
決め制御のデータエリアの位置決め制御データ及びパラ
メータエリアのパラメータをシステムメモリの位置決め
制御のデータエリア及びパラメータエリアに夫々転送
し、データ書き込み完了接点情報を演算装置へ位置決め
制御装置から送出するものである。
According to the second aspect of the present invention, the window number data from the arithmetic unit is written in the window number area of the shared memory based on the conditional contact information from the arithmetic unit, and the window switching contact sent from the arithmetic unit after this writing. Based on the information, the positioning control data is transferred from the positioning control data area specified by the window number data to the shared memory, and the parameters of the system memory parameter area are transferred to the shared memory parameter area. The positioning control device sends the window switching completion contact information to the arithmetic device. At the time of reading, the arithmetic device releases the holding of the window switching contact information based on the window switching completion contact information and shares the shared information in the sequence instruction. The positioning control data written in the data area of the positioning control of the shared memory by the data transfer instruction to the memory is read out, and at the time of writing, the data is written from the arithmetic unit by using the data transfer instruction to the shared memory based on the window switching completion contact information. The data is transferred, and after this transfer, the data write contact information is given from the arithmetic unit to the positioning control device, and the positioning control data and the parameter of the parameter area of the positioning control of the shared memory are transferred to the positioning area of the system memory. The data is transferred to the parameter area, and the data write completion contact information is sent from the positioning control device to the arithmetic unit.

かようにして請求項1の発明は容量の少ない共有メモ
リを用いて回路構成を簡略化しながらも、シーケンサよ
り多量のデータを設定することができるのである。
Thus, the invention of claim 1 can set a larger amount of data than the sequencer while simplifying the circuit configuration using a shared memory having a small capacity.

また請求項2記載の発明は位置決め制御装置内部での
処理を複雑とせず、また新旧のデータが混在することが
なくシーケンサより多量のデータを設定することができ
るのである。
Further, the invention according to claim 2 does not complicate the processing inside the positioning control device, and can set a larger amount of data than the sequencer without mixing old and new data.

[実施例] 以下本発明を実施例により説明する。EXAMPLES The present invention will be described below with reference to examples.

本発明に用いる位置決め制御ユニット1の構成は第7
図構成と同じ構成を為し、請求項1記載の発明の実施例
では共有メモリ11には位置決めパラメータのエリアA1
位置決め制御データのエリアA2とウインドウナンバーの
エリアA3との3つのエリアを第1図に示すように設定
し、システムメモリ5には位置決め制御データのエリア
B1と位置決めのOSを格納してあるシステムエリアB2とを
設定してある。
The configuration of the positioning control unit 1 used in the present invention is the seventh
None the same configuration as FIG configuration, three areas of claim 1 area A 2 and the area A 3 of the window number of the positioning control data and area A 1 of the positioning parameters in the shared memory 11 in the embodiment of the present invention described Are set as shown in FIG. 1, and the area of the positioning control data is stored in the system memory 5.
It is set and the system area B 2 that is storing the OS and positioning B 1.

ここで一般にコンピュータの分野ではウインドウを用
いてメモリの領域を切り替える方法があるが、その場合
は一つのマイクロプロセッサによってバスが管理され、
読み書きのタイミングもメモリ素子で規定されており、
アドレスによって自動的に切り替えが行われるのが普通
であるが、2つの独立したマイクロプロセッサ間でのウ
インドウには適用できない。
Here, in the computer field, there is generally a method of switching a memory area using a window. In this case, a bus is managed by one microprocessor,
Read / write timing is also specified by the memory element,
Switching is usually automatic by address, but is not applicable to windows between two independent microprocessors.

ここで本発明方法では共有メモリ11にウインドウナン
バーエリアA3を設け、またシステムメモリ5のシステム
エリアB2にオールドウインドウナンバーエリアB21を設
け、これとは別にシーケンサの演算ユニット2と、位置
決め制御ユニット1とで受け渡される接点情報にウイン
ドウ切り替え接点情報(シーケンサの演算ユニット2か
ら位置決め制御ユニット1に出力)とウインドウ切り替
え完了接点情報とを設けることで適用を可能としてい
る。
Here the window number area A 3 in the shared memory 11 provided in the present invention method, also the old window number area B 21 provided in the system area B 2 of system memory 5, separately from the operation unit 2 of the sequencer, the positioning control from this Application is possible by providing window switching contact information (output from the operation unit 2 of the sequencer to the positioning control unit 1) and window switching completion contact information to the contact information passed to and from the unit 1.

而して今仮にオールドウインドウナンバーが「3」で
システムメモリ5のデータエリアB1内のエリア(例えば
データナンバー31〜40)aが共有メモリ11の位置決め制
御データのエリアA2に切り替えられたとすると、このと
き位置決め制御で実際に使用されるデータは図中の実線
矢印示される。位置決めパラメータは量が少ない為共有
メモリ11が使われ、切り替えは行われない。
When Thus now assumed Old window number in to the system area of the data area B 1 of the memory 5 (for example, data number 31 to 40) a is switched to the area A 2 of the positioning control data of the shared memory 11 in the "3" The data actually used in the positioning control at this time is indicated by solid arrows in the figure. Since the amount of the positioning parameter is small, the shared memory 11 is used and switching is not performed.

ここで例えばデータナンバー「55」を読み書きする必
要が生じた場合第2図(a)で示すように条件接点をオ
ンすると、シーケンス命令の中の共有メモリ11へのデー
タ転送命令を用いて共有メモリ11のウインドウナンバー
のエリアA3へ例えばウインドウナンバーのデータ「5」
をシーケンサの演算ユニット2側から第2図(b)のよ
うに転送する。この転送が完了すると第2図(c)に示
すようにウインドウ切り替え接点のオンで位置決め制御
ユニット1は第2図(d)に示すように内部処理を開始
し、現在の共有メモリ11のデータをシステムメモリ5の
オールドウインドウナンバーで指定されるデータエリア
B1内のエリア(データナンバー31〜40)bへ退避し、次
に共有メモリ11のウインドウナンバーのエリアA3に書き
込まれたウインドウナンバー「5」をシステムメモリ5
のオールドウインドウナンバーエリアB21へ退避し、更
に設定されたウインドウナンバー「5」に従ってシステ
ムメモリ5のデータナンバー51〜55を共有メモリ11のデ
ータエリアA2に転送し、実際に使用されるデータの制御
を破線矢印で示すように変更してウインドウ切り替え完
了接点(位置決め制御ユニット1よりシーケンサの演算
ユニット2に出力)を第2図(e)に示すようにオンす
る シーケンサの演算ユニット2側ではこのウインドウ切
り替え完了接点のオンでウインドウ切り替え接点の保持
を解除するとともにシーケンス命令の中の共有メモリ11
へのデータ転送命令を用いてデータナンバー「55」の読
み書きを第2図(f)に示すように行う。
Here, for example, when it becomes necessary to read and write the data number "55", when the conditional contact is turned on as shown in FIG. 2A, the shared memory is used by using the data transfer instruction to the shared memory 11 in the sequence instruction. To area A 3 of 11 window number For example, window number data "5"
Is transferred from the operation unit 2 side of the sequencer as shown in FIG. 2 (b). When this transfer is completed, the positioning control unit 1 starts internal processing as shown in FIG. 2D when the window switching contact is turned on as shown in FIG. Data area specified by old window number in system memory 5
The window number “5” written in the area A 3 of the window number of the shared memory 11 is saved to the area (data numbers 31 to 40) b in B 1 and the system memory 5
The retracted to the Old window number area B 21, and further transfers the data number 51 to 55 of the system memory 5 according to the window number "5" set in the data area A 2 of the shared memory 11, the data that is actually used The control is changed as indicated by the dashed arrow to turn on the window switching completion contact (output from the positioning control unit 1 to the operation unit 2 of the sequencer) as shown in FIG. 2 (e). On the operation unit 2 side of the sequencer, When the window switching completion contact is turned on, the holding of the window switching contact is released, and the shared memory 11 in the sequence instruction is released.
The data number "55" is read and written by using a data transfer instruction to write data as shown in FIG. 2 (f).

以上のようにしてシーケンサの演算ユニット2より位
置決め制御ユニット1のシステムメモリ5内の全データ
の読み書きが可能となり、シーケンサのネットワークを
利用したシステムにおいて上位コンピュータからの品種
切り替えデータの転送等が可能となる。
As described above, it is possible to read and write all data in the system memory 5 of the positioning control unit 1 from the arithmetic unit 2 of the sequencer, and to transfer type change data from a host computer in a system using a sequencer network. Become.

ところで第1図に示す実施例の方法では位置決め制御
ユニット1内で旧データとウインドウナンバーの退避と
新データの転送が必要であり、エリアの切り替えを行う
たびに実際に使用されるデータの制御が変わって、位置
決め制御ユニット1内部の処理が複雑になる。また旧デ
ータの退避のみを行うことも可能であるが新データが読
み出されないので共有メモリ11の一部のみを新データに
設定する新旧のデータが混在する為、常に全データを書
き換えなくてはならない。
By the way, in the method of the embodiment shown in FIG. 1, it is necessary to save the old data and the window number and transfer the new data in the positioning control unit 1, and the control of the data actually used every time the area is switched is controlled. Instead, the processing inside the positioning control unit 1 becomes complicated. It is also possible to save only the old data, but since new data is not read out, new and old data that set only a part of the shared memory 11 to new data are mixed, so all data must always be rewritten. No.

この点に鑑みて為されたのが請求項2記載の発明であ
って、実施例では第3図に示すように共有メモリ11に指
定するウインドウナンバーエリアA3を設定するととも
に、システムメモリ5にパラメータエリアB3を設け、更
に別に接点情報にウインドウ切り替え接点情報と、ウイ
ンドウ切り替え完了接点情報と、データ書き込み接点情
報(位置決め制御ユニット1からシーケンサの演算ユニ
ット2へ出力)とを設け、シーケンス言語と組み合わせ
て、上記共有メモリ11に設定された位置決めのデータの
エリアA2と、位置決めパラメータのエリアA1をシステム
メモリ5のバッファメモリとしている。
An invention of was made in view of this point according to claim 2, wherein, in the embodiment sets a window number area A 3 that specifies the shared memory 11 as shown in FIG. 3, the system memory 5 the parameter area B 3 is provided, further a window switching contact information to the contact information separately, and the window switching complete contact information, and a data writing contact information (output from the positioning control unit 1 to the operation unit 2 of the sequencer) is provided, and the sequence language In combination, the area A 2 for positioning data and the area A 1 for positioning parameters set in the shared memory 11 are used as a buffer memory of the system memory 5.

而して今共有メモリ11の位置決め制御データのエリア
A2にはシステムメモリ5の位置決め制御データのエリア
B1のエリアa(例えばデータナンバー「31」〜「40」)
のデータが書き込まれているとすると、この時位置決め
制御で実際に使用される位置決め制御データは図中の実
線矢印で示されるデータとなる。位置決めパラメータも
システムメモリ5のパラメータエリアB3に書き込まれた
値が用いられる。ここでデータエリアB1のエリアbにあ
るデータナンバー「55」を読み出す必要が生じた場合、
つまり第4図(a)で示すように条件接点がオンされる
と、シーケンス命令の中の共有メモリ11へのデータ転送
命令を用いて共有メモリ11のウインドウナンバーエリア
A3へデータとして「5」を第4図(b)に示すように転
送して書き込む。この転送書き込みが完了すればウイン
ドウ切り替え接点を第4図(c)に示すようにオンして
保持する。ウインドウ切り替え接点のオンで位置決め制
御ユニット1は内部処理を開始し、システムメモリ5の
パラメータエリアB3のパラメータと、ウインドウナンバ
ーで指定されたエリアbの「51」〜「60」のデータを共
有メモリ11に転送しウインドウ切り替え完了接点をオン
する。シーケンサ側ではこのウインドウ切り替え完了接
点のオンでウインドウ切り替え接点の保持を解除すると
ともに、シーケンス命令の中の共有メモリ11へのデータ
転送命令を用いてデータナンバー「55」の値を読み出
す。この時に位置決め制御で実際に使用されるデータは
第3図の破線矢印で示される如く前と変わらない。
Thus, the positioning control data area of the shared memory 11 is now
Area of positioning control data of the system memory 5 to A 2
Of B 1 area a (e.g., data number "31" - "40")
Is written, the positioning control data actually used in the positioning control at this time is data indicated by a solid arrow in the drawing. Positioning parameters the values written into the parameter area B 3 of the system memory 5 is used. Here, if the need to read the data number "55" in the area b of the data area B 1 is generated,
That is, when the conditional contact is turned on as shown in FIG. 4 (a), the window number area of the shared memory 11 is
Written by transferring the "5" as the data to A 3 as shown in FIG. 4 (b). When the transfer writing is completed, the window switching contact is turned on and held as shown in FIG. 4 (c). Positioning control unit 1 on the window switching contacts initiates an internal process, shared and parameters Parameter Area B 3 of the system memory 5, data of "51" - "60" in the specified area b in the window number memory Transfer to 11 and turn on the window switching completion contact. The sequencer releases the holding of the window switching contact by turning on the window switching completion contact, and reads the value of the data number “55” using the data transfer instruction to the shared memory 11 in the sequence instruction. At this time, the data actually used in the positioning control is the same as before as indicated by the dashed arrow in FIG.

またデータナンバー「55」を書き込む場合には上記と
同様な操作を行い第5図(e)に示すウインドウ切り替
え完了接点のオンで共有メモリ11へデータ転送命令を用
いて第5図(f)に示すようにデータナンバー「55」の
値を転送書き込み、その転送後第5図(g)に示すよう
にデータ書き込み接点をオンする。このオンにより位置
決め制御ユニット1の内部処理で共有メモリ11の位置決
め制御データと位置決めパラメータが指定のシステムメ
モリ5に転送されて内容が更新され、次いでデータ書き
込み完了接点がオンされる。
When writing the data number "55", the same operation as described above is performed, and when the window switching completion contact shown in FIG. As shown, the value of the data number "55" is transferred and written, and after the transfer, the data write contact is turned on as shown in FIG. 5 (g). When this switch is turned on, the positioning control data and the positioning parameters in the shared memory 11 are transferred to the designated system memory 5 in the internal processing of the positioning control unit 1 to update the contents, and then the data write completion contact is turned on.

以上のようにして複雑なハード構成と内部処理を行な
わずに共有メモリ11の一部のデータの書き換えを含むシ
ステムメモリ5内の全データの書き換えが可能となり、
シーケンのネットワークを利用したシステムで上位コン
ピュータからの品種切り替えデータの転送などが可能に
なる。
As described above, it is possible to rewrite all data in the system memory 5 including rewriting a part of the data in the shared memory 11 without performing a complicated hardware configuration and internal processing.
In a system using a sequence network, it is possible to transfer product change data from a host computer.

[発明の効果] 請求項1記載の発明は上述のように構成して演算装置
からの条件接点情報に基づいて該演算装置からのウイン
ドウナンバーデータを共有メモリのウインドウナンバー
エリアに書き込み、この書き込み後に上記演算装置から
送られてくるウインドウ切り替え接点情報に基づいて、
共有メモリの位置決め制御のデータエリアから位置決め
制御のデータをシステムメモリのオールドウインドウナ
ンバーのエリアのウインドウナンバーデータで指定され
たシステムメモリの位置決め制御データのエリアに退避
させるとともに、上記共有メモリのウインドウナンバー
エリアに書き込んだウインドウナンバーデータをシステ
ムメモリのオールドウインドウナンバーのエリアに退避
させ、且つ該ウインドウナンバーデータに対応するシス
テムメモリの位置決め制御のデータエリアから位置決め
制御データを共有メモリの位置決め制御のデータエリア
に転送させ、この転送後に上記位置決め制御装置からウ
インドウ切り替え完了接点情報を上記演算装置へ送出
し、上記演算装置ではウインドウ切り替え完了接点情報
に基づいてウインドウ切り替え接点情報の保持を解除す
ると共にシーケンス命令の中の共有メモリへのデータ転
送命令により共有メモリの位置決め制御のデータエリア
に書き込んだ位置決め制御データの読み書きを行うか
ら、複雑なバス切り替えが不要で、しかも大容量の共有
メモリが無いことにも影響を受けることなく、多量のデ
ータの設定がシーケンサ側より可能であるという効果を
奏する。
According to the first aspect of the present invention, the window number data from the arithmetic unit is written into the window number area of the shared memory based on the conditional contact information from the arithmetic unit. Based on the window switching contact information sent from the arithmetic unit,
The position control data is saved from the position control data area of the shared memory to the position control data area of the system memory designated by the window number data of the old window number area of the system memory. Saves the window number data written into the old window number area of the system memory and transfers the positioning control data from the positioning control data area of the system memory corresponding to the window number data to the positioning control data area of the shared memory. After the transfer, the positioning control device sends window switching completion contact information to the arithmetic device, and the arithmetic device sends the window switching completion information based on the window switching completion contact information. Since the switching contact information is released and the positioning control data written in the positioning control data area of the shared memory is read and written by the data transfer command to the shared memory in the sequence command, complicated bus switching is unnecessary. Moreover, there is an effect that a large amount of data can be set from the sequencer side without being affected by the absence of a large-capacity shared memory.

また請求項2記載の発明はシーケンサの演算装置に対
してアドレス信号、データ信号、制御信号を内部バスを
介して接続され、設定された位置決め制御データに従っ
て位置決めを行う位置決め制御装置にはマイクロプロセ
ッサと、上記内部バスを通じて上記演算装置に接続され
且つ別のバスを介してマイクロプロセッサを接続した共
有メモリと、システムメモリとを備えるとともに、共有
メモリに位置決め制御のデータエリアとウインドウナン
バーエリアとパラメータエリアを設定し、システムメモ
リにパラメータエリアと位置決め制御のデータエリアと
を設定し、演算装置からの条件接点情報に基づいて該演
算装置からのウインドウナンバーデータを共有メモリの
ウインドウナンバーエリアに書き込み、この書き込み後
に上記演算装置から送られてくるウインドウ切り替え接
点情報に基づいて、上記ウインドウナンバーデータで指
定された位置決め制御のデータエリアから位置決め制御
データを共有メモリに転送するとともシステムメモリの
パラメータエリアのパラメータを共有メモリのパラメー
タエリアに転送し、この転送後に上記位置決め制御装置
からウインドウ切り替え完了接点情報を上記演算装置へ
送出し、読み出し時には上記演算装置ではウインドウ切
り替え完了接点情報に基づいてウインドウ切り替え接点
情報の保持を解除すると共にシーケンス命令の中の共有
メモリへのデータ転送命令により共有メモリの位置決め
制御のデータエリアに書き込んだ位置決め制御データの
読み出し、書き込み時には上記ウインドウ切り替え完了
接点情報に基づいて共有メモリへのデータ転送命令を用
いて上記演算装置から書き込むデータを転送し、この転
送後にデータ書き込み接点情報を演算装置から位置決め
制御装置に与えて、共有メモリの位置決め制御のデータ
エリアの位置決め制御データ及びパラメータエリアのパ
ラメータをシステムメモリの位置決め制御のデータエリ
ア及びパラメータエリアに夫々転送し、データ書き込み
完了接点情報を演算装置へ位置決め制御装置から送出す
るものであるから、請求項1記載の発明の効果と併せて
制御装置内部での処理を複雑とせず、また新旧のデータ
の混在することがなくシーケンサより多量のデータを設
定することができるという効果を奏する。
According to a second aspect of the present invention, a positioning control device for connecting an address signal, a data signal, and a control signal to an arithmetic device of a sequencer via an internal bus and performing positioning according to set positioning control data includes a microprocessor. A shared memory connected to the arithmetic unit via the internal bus and connected to a microprocessor via another bus, and a system memory, and the shared memory includes a data area for positioning control, a window number area, and a parameter area. Setting, setting a parameter area and a data area for positioning control in the system memory, and writing the window number data from the arithmetic unit to the window number area of the shared memory based on the condition contact information from the arithmetic unit. From the above computing device Based on the received window switching contact information, the positioning control data is transferred from the positioning control data area specified by the window number data to the shared memory, and the parameters of the system memory parameter area are transferred to the shared memory parameter area. After the transfer, the positioning control device sends the window switching completion contact information to the arithmetic device. At the time of reading, the arithmetic device releases the holding of the window switching contact information based on the window switching completion contact information, and outputs the sequence instruction. When the positioning control data written to the positioning control data area of the shared memory by the data transfer instruction to the shared memory is read and written, the data is written to the shared memory based on the window switching completion contact information. The data to be written is transferred from the arithmetic unit using the data transfer command, and after this transfer, the data write contact information is given from the arithmetic unit to the positioning control device, and the positioning control data and the parameter area of the data area of the positioning control of the shared memory are transferred. The parameter is transferred to the data area and the parameter area of the positioning control of the system memory, respectively, and the data write completion contact information is transmitted from the positioning control device to the arithmetic unit. This has the effect of making it possible to set a larger amount of data than the sequencer without complicating the processing inside the device and without mixing old and new data.

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

第1図は請求項1記載の発明の実施例方法のメモリマッ
プ説明図、第2図は同上の動作説明用タイムチャート、
第3図は請求項2記載の発明の実施例方法のメモリマッ
プ説明図、第4図,第5図は同上の動作説明用タイムチ
ャート、第6図は従来例の位置決め制御装置の回路構成
図、第7図は本発明の基本となる位置決め制御装置の回
路構成図である。5はシステムメモリ、11は共有メモ
リ、A1は位置決めパラメータエリア、A2は位置決め制御
データエリア、A3はウインドウナンバーエリア、B1は位
置決め制御データエリア、B2はシステムエリア、B21
オールドウインドウナンバーエリア、B3はパラメータエ
リアである。
FIG. 1 is an explanatory view of a memory map of the method according to the first embodiment of the present invention, FIG.
FIG. 3 is an explanatory view of a memory map of the method according to the second embodiment of the present invention, FIGS. 4 and 5 are time charts for explaining the operation of the same, and FIG. 6 is a circuit configuration diagram of a conventional positioning control device. FIG. 7 is a circuit configuration diagram of a positioning control device which is the basis of the present invention. 5 system memory, a shared memory 11, A 1 is positioned parameter area, A 2 is positioning control data area, A 3 is the window number area, B 1 is positioning control data area, B 2 is a system area, B 21 Old window number area, B 3 is a parameter area.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】シーケンサの演算装置に対してアドレス信
号、データ信号、制御信号を内部バスを介して接続さ
れ、設定された位置決め制御データに従って位置決めを
行う位置決め制御装置にはマイクロプロセッサと、上記
内部バスを通じて上記演算装置に接続され且つ別のバス
を介してマイクロプロセッサを接続した共有メモリと、
システムメモリとを備えるとともに、共有メモリに位置
決め制御のデータエリアとウインドウナンバーエリアと
を設定し、システムメモリにオールドウインドウナンバ
ーエリアと位置決め制御のデータエリアとを設定し、上
記演算装置からの条件接点情報に基づいて該演算装置か
らのウインドウナンバーデータを共有メモリのウインド
ウナンバーエリアに書き込み、この書き込み後に上記演
算装置から送られてくるウインドウ切り替え接点情報に
基づいて、共有メモリの位置決め制御のデータエリアか
ら位置決め制御データをシステムメモリのオールドウイ
ンドウナンバーのエリアのウインドウナンバーデータで
指定されたシステムメモリの位置決め制御データのエリ
アに退避させるとともに、上記共有メモリのウンドウナ
ンバーエリアに書き込んだウインドウナンバーデータを
システムメモリのオールドウインドウナンバーのエリア
に退避させ、且つ該ウインドウナンバーデータに対応す
るシステムメモリの位置決め制御のデータエリアから位
置決め制御データを共有メモリの位置決め制御のデータ
エリアに転送させ、この転送後に上記位置決め制御装置
からウインドウ切り替え完了接点情報を上記演算装置へ
送出し、上記演算装置ではウインドウ切り替え完了接点
情報に基づいてウインドウ切り替え接点情報の保持を解
除すると共にシーケンス命令の中の共有メモリへのデー
タ転送命令により共有メモリの位置決め制御のデータエ
リアに書き込んだ位置決め制御データの読み書きを行う
ことを特徴とする位置決め制御装置のデータ設定方法。
An address signal, a data signal, and a control signal are connected to an arithmetic unit of a sequencer via an internal bus, and a positioning control device for performing positioning according to set positioning control data includes a microprocessor; A shared memory connected to the arithmetic unit via a bus and connected to a microprocessor via another bus;
In addition to the system memory, a positioning control data area and a window number area are set in the shared memory, an old window number area and a positioning control data area are set in the system memory, and conditional contact information from the arithmetic unit is set. The window number data from the arithmetic unit is written into the window number area of the shared memory based on the above, and based on the window switching contact information sent from the arithmetic unit after the writing, the data is positioned from the data area of the positioning control of the shared memory. The control data is saved to the positioning control data area of the system memory specified by the window number data of the old window number area of the system memory, and is written to the window number area of the shared memory. The stored window number data is saved in the old window number area of the system memory, and the positioning control data is transferred from the positioning control data area of the system memory corresponding to the window number data to the positioning control data area of the shared memory. After this transfer, the positioning control unit sends window switching completion contact information to the arithmetic unit, and the arithmetic unit releases the holding of the window switching contact information based on the window switching completion contact information and shares the sequence command. A data setting method for a positioning control device, comprising: reading and writing positioning control data written in a positioning control data area of a shared memory by a data transfer instruction to a memory.
【請求項2】シーケンサの演算装置に対してアドレス信
号、データ信号、制御信号を内部バスを介して接続さ
れ、設定された位置決め制御データに従って位置決めを
行う位置決め制御装置にはマイクロプロセッサと、上記
内部バスを通じて上記演算装置に接続され且つ別のバス
を介してマイクロプロセッサを接続した共有メモリと、
システムメモリとを備えるとともに、共有メモリに位置
決め制御のデータエリアとウインドウナンバーエリアと
パラメータエリアを設定し、システムメモリにパラメー
タエリアと位置決め制御のデータエリアとを設定し、上
記演算装置からの条件接点情報に基づいて該演算装置か
らのウインドウナンバーデータを共有メモリのウインド
ウナンバーエリアに書き込み、この書き込み後に上記演
算装置から送られてくるウインドウ切り替え接点情報に
基づいて、上記ウインドウナンバーデータで指定された
位置決め制御のデータエリアから位置決め制御データを
共有メモリに転送するとともにシステムメモリのパラメ
ータエリアのパラメータを共有メモリのパラメータエリ
アに転送し、この転送後に上記位置決め制御装置からウ
インドウ切り替え完了接点情報を上記演算装置へ送出
し、読み出し時には上記演算装置ではウインドウ切り替
え完了接点情報に基づいてウインドウ切り替え接点情報
の保持を解除すると共にシーケンス命令の中の共有メモ
リへのデータ転送命令により共有メモリの位置決め制御
のデータエリアに書き込んだ位置決め制御データの読み
出し、書き込み時には上記ウインドウ切り替え完了接点
情報に基づいて共有メモリへのデータ転送命令を用いて
上記演算装置から書き込むデータを転送し、この転送後
にデータ書き込み接点情報を演算装置から位置決め制御
装置に与えて、共有メモリの位置決め制御のデータエリ
アの位置決め制御データ及びパラメータエリアのパラメ
ータをシステムメモリの位置決め制御のデータエリア及
びパラメータエリアに夫々転送し、データ書き込み完了
接点情報を演算装置へ位置決め制御装置から送出するこ
とを特徴とする位置決め制御装置のデータ設定方法。
2. A positioning control device for connecting an address signal, a data signal, and a control signal to an operation device of a sequencer via an internal bus, and performing positioning in accordance with set positioning control data, includes a microprocessor; A shared memory connected to the arithmetic unit via a bus and connected to a microprocessor via another bus;
A system memory is provided, a data area for positioning control, a window number area, and a parameter area are set in the shared memory; a parameter area and a data area for positioning control are set in the system memory; And writes the window number data from the arithmetic unit into the window number area of the shared memory based on the position control information specified by the window number data based on the window switching contact information sent from the arithmetic unit after the writing. The positioning control data is transferred from the data area to the shared memory and the parameters in the parameter area of the system memory are transferred to the parameter area of the shared memory. The end contact information is sent to the arithmetic unit, and at the time of reading, the arithmetic unit releases the holding of the window switch contact information based on the window switch completion contact information, and releases the shared memory by the data transfer instruction to the shared memory in the sequence instruction. When reading and writing the positioning control data written in the data area of the positioning control, the data to be written is transferred from the arithmetic unit using a data transfer instruction to the shared memory based on the window switching completion contact information. The write contact information is given from the arithmetic unit to the positioning control unit, and the positioning control data and the parameter area parameter of the positioning control data area of the shared memory are transferred to the positioning control data area and parameter area of the system memory, respectively. Data setting method for a positioning control apparatus characterized by sending from the positioning control apparatus data write completion contact information to the computing device.
JP13193889A 1989-05-25 1989-05-25 Data setting method for positioning control device Expired - Lifetime JP2793258B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13193889A JP2793258B2 (en) 1989-05-25 1989-05-25 Data setting method for positioning control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13193889A JP2793258B2 (en) 1989-05-25 1989-05-25 Data setting method for positioning control device

Publications (2)

Publication Number Publication Date
JPH02310606A JPH02310606A (en) 1990-12-26
JP2793258B2 true JP2793258B2 (en) 1998-09-03

Family

ID=15069720

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13193889A Expired - Lifetime JP2793258B2 (en) 1989-05-25 1989-05-25 Data setting method for positioning control device

Country Status (1)

Country Link
JP (1) JP2793258B2 (en)

Also Published As

Publication number Publication date
JPH02310606A (en) 1990-12-26

Similar Documents

Publication Publication Date Title
KR100196333B1 (en) Dma data transferring method using free loading of dma instruction
JP2793258B2 (en) Data setting method for positioning control device
JP2665836B2 (en) Liquid crystal display controller
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPS5938827A (en) Microprocessor ipl system
JPH11110007A (en) Profibus data transmission system
JPH0222748A (en) Non-volatile memory control circuit
JP2581144B2 (en) Bus control device
RU1807495C (en) Process-to-process interface
JPH04148344A (en) Rom emulator
JPH0351929A (en) Information processor and information processing system
JPH02125303A (en) Programmable controller
JPH0370816B2 (en)
JPH0353318A (en) Two-port memory
JPH0261749A (en) Data transfer device
JPH05274248A (en) Direct memory access device
JPH08137662A (en) Data transmission method and data transmitter
JPS62190544A (en) Higher link unit for programmable controller
JPH01248207A (en) Numerical controller
JPS62168246A (en) Memory writing control system
JPS62131356A (en) Peripheral control circuit of microprocessor system
JPH03113503A (en) Industrial computer
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS5818761A (en) Storage controlling system
JPH0330029A (en) Input/output simulation device of computer

Legal Events

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

Free format text: PAYMENT UNTIL: 20090619

Year of fee payment: 11

EXPY Cancellation because of completion of term