JPH11119810A - Control device using personal computer and sequencer - Google Patents

Control device using personal computer and sequencer

Info

Publication number
JPH11119810A
JPH11119810A JP9277513A JP27751397A JPH11119810A JP H11119810 A JPH11119810 A JP H11119810A JP 9277513 A JP9277513 A JP 9277513A JP 27751397 A JP27751397 A JP 27751397A JP H11119810 A JPH11119810 A JP H11119810A
Authority
JP
Japan
Prior art keywords
sequencer
personal computer
input
output
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9277513A
Other languages
Japanese (ja)
Inventor
Teruo Nonaka
輝夫 野中
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.)
IHI Corp
IHI Transport Machinery Co Ltd
Original Assignee
IHI Corp
Ishikawajima Transport Machinery Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by IHI Corp, Ishikawajima Transport Machinery Co Ltd filed Critical IHI Corp
Priority to JP9277513A priority Critical patent/JPH11119810A/en
Publication of JPH11119810A publication Critical patent/JPH11119810A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control By Computers (AREA)
  • Programmable Controllers (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem on an interface by executing an input/output from a controlling object with a computer by way of a sequencer, to make the processing speed higher by simplifying the processing performed by the sequencer, to make the communication speed higher by making communications between the sequencer and the computer a parallel transmission, to make it possible to use a software even if manufacturers are different by expressing the software used by the sequencer and the computer with a structured language, and to turn the software and standardize the software. SOLUTION: This device is a control device that connects an input part 2 of either of a personal computer 1 and a sequencer 7 to an output part 8 of the other, connects an output part of either of them to an input part 10 of the other, furthermore, inputs the amount of condition for indicating condition of control objects 15 and 16 to an input part 11 of the sequencer 7 and an output part 9 uses the personal computer 1 and the sequencer 7 connected to control objects 15 and 16, the amount of condition inputted to the sequencer 7 is transmitted to the personal computer 1 and a control command from the personal computer is transmitted to the control objects 15 and 16 through the output part 9 of the sequencer 7.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、パーソナルコンピ
ュータとシーケンサを用いて制御対象を制御する制御装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device for controlling a control target using a personal computer and a sequencer.

【0002】[0002]

【従来の技術】シーケンサはシーケンス回路(ラダー回
路)をソフトウェアで実現する装置である。従来のリレ
ーと配線による回路に代って内部メモリに書き込まれた
プログラムによりラダー図の処理を行なう。回路の変更
時に配線変更が不要で、プログラムをキー操作で変更す
るのみで容易に対処できるなどの理由から、生産設備の
制御用として急速に普及している。例えば、クレーンの
自動運転制御等でも入出力、制御、演算等全てシーケン
サのラダーソフトで行われている。
2. Description of the Related Art A sequencer is a device for realizing a sequence circuit (ladder circuit) by software. The processing of the ladder diagram is performed by a program written in the internal memory instead of the conventional circuit using relays and wiring. Because of no need to change wiring when changing circuits, it can be easily dealt with only by changing the program by key operation, and is rapidly spreading for controlling production equipment. For example, input / output, control, calculation, and the like in automatic operation control of a crane are also performed by ladder software of a sequencer.

【0003】コンピュータによるクレーンの自動運転制
御も行われており、入出力、制御、演算等全てコンピュ
ータのアセンブラ、C言語等のソフトで行なう。コンピ
ュータはパーソナルコンピュータ(以下パソコンと呼
ぶ)、ワンボード等を使用する。なお、シーケンサとコ
ンピュータとの組み合わせも行われており、クレーンの
制御はシーケンサで行われ、在庫管理、画像処理等がパ
ソコンで処理されている。シーケンサとパソコン間の通
信は、RS−232Cによるシリアル伝送で行われる。
[0003] Automatic operation control of the crane is also performed by a computer, and all of input / output, control, calculation, and the like are performed by software such as a computer assembler and C language. As the computer, a personal computer (hereinafter referred to as a personal computer), a one board, or the like is used. Note that a combination of a sequencer and a computer is also performed, and the control of the crane is performed by the sequencer, and inventory management, image processing, and the like are processed by a personal computer. Communication between the sequencer and the personal computer is performed by serial transmission using RS-232C.

【0004】[0004]

【発明が解決しようとする課題】[Problems to be solved by the invention]

(1)シーケンサのみの場合、高度の演算処理を行なう
ためには、ラダープログラムの容量が大となり、プログ
ラム量に限界がある。また演算処理を多くすると処理速
度が極端に遅くなり、命令語の無い演算も多い。画像処
理、AI(人工知能)処理は不可能に近い。ラダーソフ
トはメーカーにより異なり、伝送系もソフトが異なり、
かつC言語のような構造化言語でないため、ブロック
化、標準化が困難である。 (2)コンピュータのみの場合、専用のインタフェース
が少なく、リアルタイム高速処理をするソフトは、シー
ケンサのラダーソフトに比べ製作が困難で時間もかか
る。 (3)シーケンサとコンピュータとの組み合わせの場
合、シーケンサとパソコン間の伝送が必要となり、RS
−232Cによるシリアル伝送では通信速度が遅く、リ
アルタイム処理が困難であり、さらにメーカーにより通
信ソフトが異なる。
(1) In the case of using only a sequencer, a ladder program has a large capacity to perform advanced arithmetic processing, and the program amount is limited. In addition, when the number of arithmetic processes is increased, the processing speed becomes extremely slow, and there are many arithmetic operations without instruction words. Image processing and AI (Artificial Intelligence) processing are almost impossible. Ladder software differs depending on the manufacturer, and the transmission system also has different software.
In addition, since it is not a structured language such as C language, it is difficult to block and standardize. (2) In the case of using only a computer, there are few dedicated interfaces, and software for real-time high-speed processing is more difficult and time-consuming to produce than ladder software for a sequencer. (3) In the case of a combination of a sequencer and a computer, transmission between the sequencer and the personal computer is required.
In the serial transmission by -232C, the communication speed is slow, real-time processing is difficult, and communication software differs depending on the manufacturer.

【0005】本発明は、上述の問題点に鑑みてなされた
もので、制御対象からの入出力をシーケンサを介してコ
ンピュータで行なうことによりインターフェースの問題
の解決を図り、シーケンサで行なう処理を単純なものと
し処理速度の高速度化を図り、シーケンサとコンピュー
タ間の通信をパラレル伝送とし通信速度の高速化を図
り、シーケンサとコンピュータで使用するソフトを構造
化言語で表しメーカーが異なっても使える用にし、ソフ
トのブロック化、標準化を図ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and solves an interface problem by performing input / output from a control target by a computer via a sequencer, thereby simplifying processing performed by the sequencer. The processing speed was increased, the communication between the sequencer and the computer was made parallel, the communication speed was increased, and the software used in the sequencer and the computer was expressed in a structured language so that it could be used by different manufacturers. The goal is to block and standardize software.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明は、パーソナルコンピュータとシー
ケンサの一方の入力部を他方の出力部に接続し一方の出
力部を他方の入力部に接続し、さらにシーケンサの入力
部には制御対象の状態を表す状態量を入力し出力部は制
御対象へ接続されているパソコンとシーケンサを用いた
制御装置であって、シーケンサに入力された状態量はパ
ーソナルコンピュータに伝送され、パーソナルコンピュ
ータから制御指令がシーケンサの出力部を通して制御対
象に伝送される。
In order to achieve the above object, according to the present invention, one input section of a personal computer and a sequencer is connected to the other output section, and one output section is connected to the other input section. Connected to the input unit of the sequencer and a state quantity representing the state of the control target. The output unit is a control device using a personal computer and a sequencer connected to the control target, and the state quantity input to the sequencer. Is transmitted to the personal computer, and the control command is transmitted from the personal computer to the control target through the output unit of the sequencer.

【0007】パーソナルコンピュータの入力部にシーケ
ンサの出力部を接続し、出力部にシーケンサの入力部を
接続し、シーケンサに制御対象からの入出力を接続する
ことにより、シーケンサはパーソナルコンピュータのイ
ンターフェースとしての働きもすることになり、パーソ
ナルコンピュータのインターフェースの問題は解決され
る。
By connecting the output section of the sequencer to the input section of the personal computer, connecting the input section of the sequencer to the output section, and connecting the input / output from the control target to the sequencer, the sequencer can function as an interface of the personal computer. It will also work and solve the personal computer interface problem.

【0008】請求項2の発明は、前記パーソナルコンピ
ュータは制御対象の状態量の1つのカウント値を目標カ
ウント値としてシーケンサに指示し、シーケンサは入力
した状態量のカウントデータをカウントし、目標カウン
ト値になったときパーソナルコンピュータに報告する
と、パーソナルコンピュータはこの報告に基づき制御指
令をシーケンサの出力部を通して制御対象に伝達する。
According to a second aspect of the present invention, the personal computer instructs the sequencer with one count value of the state quantity to be controlled as a target count value, and the sequencer counts the input count data of the state quantity and outputs the target count value. When the report is made to the personal computer, the personal computer transmits a control command to the control target through the output unit of the sequencer based on the report.

【0009】制御対象の速度とか移動量などの状態量と
してパルス数をカウントして検出する場合が多い。この
ような単純な処理はシーケンサで行い、より高度な演算
処理や判定処理などパーソナルコンピュータで行なうこ
とにより、全体として処理の高速化を実現することがで
きる。このようにそれぞれが得意の処理を行なうように
することによりシーケンサとパーソナルコンピュータの
ユニット構成を最小数とすることができる。つまりシー
ケンサは本体と入出力ユニットのみとなり、パーソナル
コンピュータは本体と入出力ユニットのみとなる。
In many cases, the number of pulses is detected by counting the number of pulses as a state quantity such as a speed or a moving amount of a control object. Such a simple process is performed by a sequencer, and a more sophisticated arithmetic process or determination process is performed by a personal computer, so that the overall process can be speeded up. In this way, by performing each of the special processes, the unit configuration of the sequencer and the personal computer can be minimized. That is, the sequencer has only the main body and the input / output unit, and the personal computer has only the main body and the input / output unit.

【0010】請求項3の発明は、前記パーソナルコンピ
ュータと前記シーケンサはパラレルデータにより通信す
る。
According to a third aspect of the present invention, the personal computer and the sequencer communicate using parallel data.

【0011】パーソナルコンピュータとシーケンサとの
通信をパラレル伝送とすることにより高速通信が可能と
なり、リアルタイムの高速処理が可能になる。
By making the communication between the personal computer and the sequencer parallel transmission, high-speed communication becomes possible and real-time high-speed processing becomes possible.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。図1は本実施形態のパソコ
ンとシーケンサを用いた制御装置のブロック図を示す。
制御対象としてはインバータ制御による電動機の例を説
明するが、これに限定しない。パソコン1本体には拡張
スロットに入力ユニット2と出力ユニット3が取付けら
れている。また通常の部品としてキーボード4、マウス
5が設けられ、モニター用のディスプレー6が設けられ
ている。シーケンサ7はCPU、メモリを有しラダープ
ログラムにより処理を行ない、入力ユニット10,1
1、出力ユニット8,9が設けられている。入力ユニッ
ト2と出力ユニット8、および出力ユニット3と入力ユ
ニット10はパラレル伝送により通信が行われる。なお
配置上パソコン1とシーケンサ7が光伝送を行なう必要
がある場合はパラレル入出力用光伝送装置17〜20を
設ける必要がある。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a control device using a personal computer and a sequencer according to the present embodiment.
An example of an electric motor controlled by inverter control will be described as a control target, but the present invention is not limited to this. The input unit 2 and the output unit 3 are attached to the expansion slot in the main body of the personal computer 1. Further, a keyboard 4 and a mouse 5 are provided as ordinary components, and a monitor display 6 is provided. The sequencer 7 has a CPU and a memory, and performs processing according to a ladder program.
1, output units 8 and 9 are provided. The input unit 2 and the output unit 8 communicate with each other, and the output unit 3 and the input unit 10 communicate with each other by parallel transmission. When the personal computer 1 and the sequencer 7 need to perform optical transmission due to the arrangement, it is necessary to provide parallel input / output optical transmission devices 17 to 20.

【0013】ロータリエンコーダ12は位置とか速度な
どを検出するため制御対象の回転数をパルスで出力す
る。リミットスイッチ13は各種センサの代表として記
載してある。またスイッチ14は各種スイッチ、コント
ローラの代表として記載する。これらロータリエンコー
ダ12、リミットスイッチ13、スイッチ14は制御対
象の状態量を表すものである。
The rotary encoder 12 outputs the number of revolutions of the object to be controlled in pulses to detect a position, a speed, and the like. The limit switch 13 is described as a representative of various sensors. The switch 14 is described as a representative of various switches and controllers. The rotary encoder 12, the limit switch 13, and the switch 14 represent state quantities to be controlled.

【0014】インバータ15は制御対象の誘導電動機1
6の回転数を制御する装置で、商用周波数(50または
50Hz)の交流を一旦直流に変換する直流変換部(コ
ンバータ)と、この直流を誘導電動機16に所望の回転
数を与える周波数の交流に変換する交流変換部(インバ
ータ)とから構成されている。なお、通常の装置では複
数のモーションを行なうので、12〜16の機器がモー
ションの数だけ設けられる。
The inverter 15 is an induction motor 1 to be controlled.
A DC converter (converter) for temporarily converting AC at a commercial frequency (50 or 50 Hz) to DC, and converting the DC into an AC at a frequency that provides the induction motor 16 with a desired rotational speed. And an AC converter (inverter) for conversion. Since a plurality of motions are performed in a normal device, 12 to 16 devices are provided by the number of motions.

【0015】次に上記装置の動作について説明する。な
お誘導電動機16はクレーンを駆動するものとして説明
する。 (1)パソコン1に組み込まれた出力ユニット3よりシ
ーケンサ7の入力ユニット10に、減速位置、停止位置
をパラレル信号で送る。この例では誘導電動機16は1
つしか表示してないが、モーションが複数ある場合はこ
の手順をその数に分けて送る。 (2)入力ユニット10で受け取ったデータは、シーケ
ンサ7の内部レジスタ(メモリ)に記憶される。 (3)シーケンサ7は、記憶したデータの内容によりク
レーンを動かす処理をする。詳細は後述する。 (4)シーケンサ7はクレーンを動かす出力を出力ユニ
ット9よりインバータ15に出力し、誘導電動機16を
駆動させる。 (5)クレーンの動きは入力ユニット11に入力される
ロータリエンコーダ12、センサ、リミットスイッチ1
3の内容をシーケンサ7で判断し、予め定められた簡単
な処理は行うが、複雑な判断や処理は出力ユニット8よ
りパソコン1の入力ユニット2に送りパソコン1で判断
し処理する。
Next, the operation of the above device will be described. The induction motor 16 will be described as driving a crane. (1) The deceleration position and the stop position are sent as parallel signals from the output unit 3 incorporated in the personal computer 1 to the input unit 10 of the sequencer 7. In this example, the induction motor 16 is 1
Although only one is displayed, if there are a plurality of motions, this procedure is divided and sent. (2) The data received by the input unit 10 is stored in an internal register (memory) of the sequencer 7. (3) The sequencer 7 performs a process of moving the crane according to the content of the stored data. Details will be described later. (4) The sequencer 7 outputs an output for moving the crane from the output unit 9 to the inverter 15 to drive the induction motor 16. (5) The movement of the crane is input to the input unit 11 by the rotary encoder 12, the sensor, and the limit switch 1.
Although the content of 3 is determined by the sequencer 7 and predetermined simple processing is performed, complicated determination and processing are sent from the output unit 8 to the input unit 2 of the personal computer 1 and determined and processed by the personal computer 1.

【0016】(6)クレーンの操作は、コントローラ1
4より入力ユニット11に入力され、出力ユニット8よ
り入力ユニット2に送られパソコン1で判断し出力ユニ
ット3より入力ユニット10へ送信し、この信号を出力
ユニット9よりインバータ15へ出力し、誘導電動機1
6を駆動する。この場合は、コントローラ14からの信
号をシーケンサ7をスルーして入力ユニット10に入力
することになり、シーケンサ7はパソコン1のインター
フェースとして機能している。 (7)パソコン1への入力はキーボード4またはマウス
5で行い、画面への出力はディスプレー6で行う。な
お、システムの構成上クレーンと地上で光伝送を行う場
合はパラレル光伝送装置17〜20で伝送する。この場
合パラレルなので伝送手順は不要である。
(6) The operation of the crane is performed by the controller 1
4, input to the input unit 11, sent from the output unit 8 to the input unit 2, judged by the personal computer 1, and sent from the output unit 3 to the input unit 10, and output this signal from the output unit 9 to the inverter 15, so that the induction motor 1
6 is driven. In this case, a signal from the controller 14 is input to the input unit 10 through the sequencer 7, and the sequencer 7 functions as an interface of the personal computer 1. (7) Input to the personal computer 1 is performed by the keyboard 4 or mouse 5, and output to the screen is performed by the display 6. When optical transmission is performed between the crane and the ground due to the configuration of the system, transmission is performed by the parallel optical transmission devices 17 to 20. In this case, since it is parallel, a transmission procedure is unnecessary.

【0017】次に誘導電動機16がクレーンの昇降用に
用いられるものとしてその動作を詳細に説明する。クレ
ーンが目的地に昇降する場合の典型的処理を以下に示
す。 (1)パソコン1の出力ユニット3に64ビット(また
はそれ以上)の信号を出力する。図2にパソコン1の出
力信号20の構成例を示す。信号は1ワード16ビット
の4ワード64ビットで構成され、昇降用電動機と走行
用電動機に対する命令より構成されている。第1ワード
21は昇降の目的地までのカウント値を示す目的カウン
ト値1が記載され、第2ワード22は走行の目的地まで
のカウント値を示す目的カウント値2が記載されてい
る。第3ワード23は昇降速度を指示する指令ビット1
が記載され、第1ビット25は巻上げ指令を示し、第3
ビット26は増速指令を示す。第4ワード24は走行の
速度を示す指令である。このように目的カウント値とと
もに指令ビットを立てて、インバータ15に動作方向
(回転方向)と速度(周波数)の指令を出す。この場合
巻上げと増速指令を出すものとする。
Next, the operation of the induction motor 16 will be described in detail assuming that the induction motor 16 is used for lifting and lowering a crane. A typical process when the crane goes up and down to the destination is shown below. (1) A 64-bit (or more) signal is output to the output unit 3 of the personal computer 1. FIG. 2 shows a configuration example of the output signal 20 of the personal computer 1. The signal is composed of 16 words of 4 words and 64 bits of 4 words, and is composed of commands for the motor for raising and lowering and the motor for traveling. The first word 21 describes a destination count value 1 indicating a count value up to a destination of elevation, and the second word 22 describes a destination count value 2 indicating a count value to a destination of travel. The third word 23 is a command bit 1 for instructing the elevating speed.
, The first bit 25 indicates a winding command, and the third bit 25
Bit 26 indicates a speed increase command. The fourth word 24 is a command indicating the traveling speed. In this way, a command bit is set together with the target count value, and a command for the operation direction (rotation direction) and speed (frequency) is issued to the inverter 15. In this case, it is assumed that a hoisting and speed increasing command is issued.

【0018】(2)クレーンが動作を開始しするとロー
タリエンコーダ12からのパルスがシーケンサ7に送ら
れ、シーケンサ7はカウントを開始し目的カウント値に
達すると(クレーンが目的地にくると)、シーケンサ7
からパソコン1に対し信号が伝送される。図3はシーケ
ンサ7の出力信号30の構成例を示す。信号はパソコン
1の場合と同様に、1ワード16ビットの4ワード64
ビットで構成され、制御対象の状態量を計測する各種セ
ンサからの入力データが記載されている。第1ワード3
1は昇降用のロータリエンコーダ12からのカウント値
と目的カウント値1との比較を示し、一致した場合、第
1ビット35の一致フラグを立てる。第2ワード32は
走行用のロータリエンコーダ12からのカウント値と目
的カウント値2との比較を示し、一致した場合、第1ビ
ット36の一致フラグを立てる。第3ワード33は荷物
を倉庫棚から出し入れするフォークの移動を表す目的カ
ウント値との比較を示し、一致した場合、第1ビット3
7の一致フラグを立てる。第4ワード34はその他のセ
ンサや操作スイッチの入力ビットを示し、第1ビット3
8はフラグビットを示す。なお、カウンタ比較ビット以
外のセンサ入力はパソコン1が極限での減速、停止判
断、バックアップ判断を行うために用いられる。
(2) When the crane starts operating, a pulse from the rotary encoder 12 is sent to the sequencer 7, and the sequencer 7 starts counting. When the target count value is reached (when the crane reaches the destination), the sequencer 7 starts counting. 7
Transmits a signal to the personal computer 1. FIG. 3 shows a configuration example of the output signal 30 of the sequencer 7. The signal is 4 words 64 words of 16 bits per word as in the case of the personal computer 1.
Input data from various sensors configured with bits and measuring the state quantity of the control target is described. First word 3
1 indicates a comparison between the count value from the ascending and descending rotary encoder 12 and the target count value 1. When they match, a match flag in the first bit 35 is set. The second word 32 indicates a comparison between the count value from the traveling rotary encoder 12 and the target count value 2, and when they match, sets a match flag of the first bit 36. The third word 33 indicates a comparison with a target count value indicating the movement of a fork for moving a package in and out of a warehouse shelf.
7 is set. The fourth word 34 indicates input bits of other sensors and operation switches, and the first bit 3
8 indicates a flag bit. Note that sensor inputs other than the counter comparison bit are used by the personal computer 1 to make the ultimate deceleration, stop determination, and backup determination.

【0019】(3)パソコン1が上記のデータを受け取
ると、カウンタ比較ビットの一致フラグより次の目的地
のカウント値及び指令ビットを立てて、インバータ15
に次の動作を指令する。この場合巻上げと一定高速速指
令を出す。2つのモーションが同時に動いている場合
は、ビットが変化したもののみマスクをかけて次の信号
を出力する。この場合、他のビットは現状と同じとな
る。 (4)上記手順の繰り返しにより、クレーンが最終目的
地に到達する。
(3) When the personal computer 1 receives the above data, it sets the count value of the next destination and a command bit from the coincidence flag of the counter comparison bit, and sets the inverter 15
To the next operation. In this case, winding and a constant high speed command are issued. If two motions are moving at the same time, the next signal is output by masking only the bit that has changed. In this case, the other bits are the same as the current state. (4) By repeating the above procedure, the crane reaches the final destination.

【0020】次に上記昇降動作をフローチャートで説明
する。図4はクレーン昇降速度の制御図である。現在位
置より目的地1までは増速して上昇し、目的地1と目的
地2の間は一定高速で上昇し、目的地2と目的地3の間
は減速した後一定速で上昇し、目的地3と目的地4の間
はさらに減速した後一定速で上昇し、目的地4で停止す
る。
Next, the lifting operation will be described with reference to a flowchart. FIG. 4 is a control diagram of the crane lifting speed. From the current position to the destination 1 the speed increases and rises, between the destination 1 and the destination 2 rises at a constant high speed, between the destination 2 and the destination 3 decelerates and then climbs at a constant speed, After further deceleration between the destination 3 and the destination 4, the vehicle rises at a constant speed and stops at the destination 4.

【0021】図5は図4の昇降動作を表すフローチャー
トである。パソコン1からシーケンサ7に目的地1のデ
ータが出力され(S1)、続いて増速上昇指令が出され
る(S2)。シーケンサ7はロータリエンコーダ12か
らのパルス数をカウントし、目的地1までのデータのカ
ウント値となったとき目的地1に到達したと判断する
(S3)。続いてシーケンサ7からパソコン1に一致フ
ラグを出力する(S4)。
FIG. 5 is a flowchart showing the lifting operation of FIG. The data of the destination 1 is output from the personal computer 1 to the sequencer 7 (S1), and then a speed increase command is issued (S2). The sequencer 7 counts the number of pulses from the rotary encoder 12, and determines that the destination 1 has been reached when the count value of the data up to the destination 1 has been reached (S3). Subsequently, a match flag is output from the sequencer 7 to the personal computer 1 (S4).

【0022】パソコン1は目的地1に到達したことを確
認すると、シーケンサ7に目的地2のデータを出力し
(S5)、続いて一定高速上昇指令を出力する(S
6)。シーケンサ7はロータリエンコーダ12からのパ
ルス数をカウントし、目的地2までのデータのカウント
値となったとき目的地2に到達したと判断する(S
7)。続いてシーケンサ7からパソコン1に一致フラグ
を出力する(S8)。
When confirming that the personal computer 1 has arrived at the destination 1, the personal computer 1 outputs the data of the destination 2 to the sequencer 7 (S5), and then outputs a constant high speed ascending command (S5).
6). The sequencer 7 counts the number of pulses from the rotary encoder 12 and determines that the destination 2 has been reached when the count value of the data up to the destination 2 has been reached (S
7). Subsequently, a match flag is output from the sequencer 7 to the personal computer 1 (S8).

【0023】パソコン1は目的地2に到達したことを確
認すると、シーケンサ7に目的地3のデータを出力し
(S9)、続いて減速後一定速上昇指令を出力する(S
10)。シーケンサ7はロータリエンコーダ12からの
パルス数をカウントし、目的地3までのデータのカウン
ト値となったとき目的地3に到達したと判断する(S1
1)。続いてシーケンサ7からパソコン1に一致フラグ
を出力する(S12)。
When confirming that the personal computer 1 has reached the destination 2, the personal computer 1 outputs the data of the destination 3 to the sequencer 7 (S9), and then outputs a command to increase the speed after deceleration (S9).
10). The sequencer 7 counts the number of pulses from the rotary encoder 12, and determines that the destination 3 has been reached when the count value of the data up to the destination 3 has been reached (S1).
1). Subsequently, a match flag is output from the sequencer 7 to the personal computer 1 (S12).

【0024】パソコン1は目的地3に到達したことを確
認すると、シーケンサ7に目的地4のデータを出力し
(S13)、続いて減速後一定速上昇指令を出力する
(S14)。シーケンサ7はロータリエンコーダ12か
らのパルス数をカウントし、目的地4までのデータのカ
ウント値となったとき目的地4に到達したと判断する
(S15)。続いてシーケンサ7からパソコン1に一致
フラグを出力する(S16)。パソコン1は目的地4に
到達したことを確認すると、シーケンサ7に停止指令を
出力する(17)。
When confirming that the personal computer 1 has reached the destination 3, the personal computer 1 outputs data of the destination 4 to the sequencer 7 (S13), and then outputs a command for increasing the constant speed after deceleration (S14). The sequencer 7 counts the number of pulses from the rotary encoder 12, and determines that the destination 4 has been reached when the count value of the data up to the destination 4 has been reached (S15). Subsequently, a match flag is output from the sequencer 7 to the personal computer 1 (S16). When confirming that the personal computer 1 has reached the destination 4, the personal computer 1 outputs a stop command to the sequencer 7 (17).

【0025】以上がパソコン1とシーケンサ7間のデー
タ処理の手順であるが、目的地を32ビットで表した
り、指令のビットが多い場合は、64ビットを2回に送
信したり、64ビット以上のユニットを使うようにして
もよい。なお、上述の信号の内容は一例であり、ビット
の構成、ビット数は装置に応じて設定される。
The data processing procedure between the personal computer 1 and the sequencer 7 has been described above. If the destination is represented by 32 bits, or if there are many command bits, 64 bits are transmitted twice, or 64 bits or more are transmitted. May be used. The content of the above-mentioned signal is an example, and the bit configuration and the number of bits are set according to the device.

【0026】[0026]

【発明の効果】以上の説明より明らかなように、本発明
は、下記の効果を奏する。 (1)シーケンサをパーソナルコンピュータのインター
フェースとしての役割も持たせることにより、パーソナ
ルコンピュータのインターフェースの問題を解決するこ
とができる。 (2)シーケンサには単純な処理を行わせ、他をパーソ
ナルコンピュータで行うようにしたので、シーケンサの
ラダーソフトは単純となる。またパーソナルコンピュー
タは単純作業から解放され、本体や周辺機器の制御をリ
アルタイムで行うことができ、さらに、画像処理、人工
知能処理、データベース処理などの処理を制御の合間に
行うことが可能になる。 (3)シーケンサのメーカーが変わってもソフトを同一
(I/O番号、レジスタ番号のみ異なる)とし、パーソ
ナルコンピュータは構造化言語、例えばC言語を用いる
ことにより、ソフトのブロック化、ブラックボックス化
が可能になり、大幅なソフトの標準化が可能になる。 (4)シーケンサとパーソナルコンピュータとの間をパ
ラレル伝送にすることにより、伝送速度が高速になり迅
速な制御ができ、伝送ソフトも不要になる。 (5)シーケンサは入出力ユニット4点、パーソナルコ
ンピュータは入出力ユニット2点のみで構成できるので
装置がシンプルで安価になる。 (6)ソフトのデバック、現地調整はパーソナルコンピ
ュータ側で一人で処理できるので大幅なコストダウンに
なる。
As is clear from the above description, the present invention has the following effects. (1) The problem of the interface of the personal computer can be solved by having the sequencer also serve as the interface of the personal computer. (2) The ladder software of the sequencer becomes simple because the sequencer is made to perform simple processing and the other is performed by a personal computer. In addition, the personal computer is released from simple operations, and can control the main body and peripheral devices in real time, and can perform processing such as image processing, artificial intelligence processing, and database processing in between the controls. (3) Even if the manufacturer of the sequencer changes, the software is the same (only the I / O number and the register number are different), and the personal computer uses a structured language, for example, the C language, so that the software can be made into blocks and black boxes. It becomes possible, and a great deal of software standardization becomes possible. (4) By performing parallel transmission between the sequencer and the personal computer, the transmission speed is increased, quick control can be performed, and transmission software is not required. (5) Since the sequencer can be configured with only four input / output units and the personal computer can be configured with only two input / output units, the apparatus is simple and inexpensive. (6) Software debugging and on-site adjustment can be processed by one person on the personal computer side, resulting in significant cost reduction.

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

【図1】本発明の実施形態のパソコンとシーケンサの制
御装置のブロック図である。
FIG. 1 is a block diagram of a control device for a personal computer and a sequencer according to an embodiment of the present invention.

【図2】パソコンの出力信号の構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of an output signal of a personal computer.

【図3】シーケンサの出力信号の構成例を示す図であ
る。
FIG. 3 is a diagram illustrating a configuration example of an output signal of a sequencer.

【図4】クレーン昇降速度の制御図である。FIG. 4 is a control diagram of a crane lifting speed.

【図5】クレーン昇降の動作フロー図である。FIG. 5 is an operation flowchart of lifting and lowering the crane.

【符号の説明】[Explanation of symbols]

1 パソコン(パーソナルコンピュータ) 2 入力ユニット 3 出力ユニット 4 キーボード 5 マウス 6 ディスプレー 7 シーケンサ 8,9 出力ユニット 10,11 入力ユニット 12 ロータリエンコーダ 13 リミットスイッチ 14 スイッチ,コントローラ 15 インバータ 16 誘導電動機 17〜20 パラレル入出力用光伝送装置 1 PC (personal computer) 2 Input unit 3 Output unit 4 Keyboard 5 Mouse 6 Display 7 Sequencer 8, 9 Output unit 10, 11 Input unit 12 Rotary encoder 13 Limit switch 14 Switch, controller 15 Inverter 16 Induction motor 17-20 Parallel input Optical transmission device for output

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 パーソナルコンピュータとシーケンサの
一方の入力部を他方の出力部に接続し一方の出力部を他
方の入力部に接続し、さらにシーケンサの入力部には制
御対象の状態を表す状態量を入力し出力部は制御対象へ
接続されているパソコンとシーケンサを用いた制御装置
であって、シーケンサに入力された状態量はパーソナル
コンピュータに伝送され、パーソナルコンピュータから
制御指令がシーケンサの出力部を通して制御対象に伝送
されることを特徴とするパソコンとシーケンサを用いた
制御装置。
1. A personal computer and one input unit of a sequencer are connected to the other output unit, one output unit is connected to the other input unit, and an input unit of the sequencer further includes a state quantity representing a state of a control target. The output unit is a control device using a personal computer and a sequencer connected to the control target, and the state quantity input to the sequencer is transmitted to the personal computer, and a control command is transmitted from the personal computer through the output unit of the sequencer. A control device using a personal computer and a sequencer, which is transmitted to a control target.
【請求項2】 前記パーソナルコンピュータは制御対象
の状態量の1つのカウント値を目標カウント値としてシ
ーケンサに指示し、シーケンサは入力した状態量のカウ
ントデータをカウントし、目標カウント値になったとき
パーソナルコンピュータに報告すると、パーソナルコン
ピュータはこの報告に基づき制御指令をシーケンサの出
力部を通して制御対象に伝達することを特徴とする請求
項1記載のパソコンとシーケンサを用いた制御装置。
2. The personal computer instructs a sequencer with one count value of a state quantity to be controlled as a target count value, and the sequencer counts the count data of the input state quantity, and when the count value reaches the target count value, the personal computer 2. The control device using a personal computer and a sequencer according to claim 1, wherein the personal computer transmits a control command to the control target through an output unit of the sequencer based on the report to the computer.
【請求項3】 前記パーソナルコンピュータと前記シー
ケンサはパラレルデータにより通信することを特徴とす
る請求項1または2記載のパソコンとシーケンサを用い
た制御装置。
3. The control device using a personal computer and a sequencer according to claim 1, wherein the personal computer and the sequencer communicate using parallel data.
JP9277513A 1997-10-09 1997-10-09 Control device using personal computer and sequencer Pending JPH11119810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9277513A JPH11119810A (en) 1997-10-09 1997-10-09 Control device using personal computer and sequencer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9277513A JPH11119810A (en) 1997-10-09 1997-10-09 Control device using personal computer and sequencer

Publications (1)

Publication Number Publication Date
JPH11119810A true JPH11119810A (en) 1999-04-30

Family

ID=17584653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9277513A Pending JPH11119810A (en) 1997-10-09 1997-10-09 Control device using personal computer and sequencer

Country Status (1)

Country Link
JP (1) JPH11119810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013125069A (en) * 2011-12-13 2013-06-24 Olympus Corp Scan type laser microscope system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013125069A (en) * 2011-12-13 2013-06-24 Olympus Corp Scan type laser microscope system

Similar Documents

Publication Publication Date Title
CN1306349C (en) Numerical value controller
KR920006836B1 (en) Control device of elevator
JPH11119810A (en) Control device using personal computer and sequencer
US5270621A (en) Procedure controlling the motor of a crane
JPS62196279A (en) Monitor device for elevator
JPH03259884A (en) Elevator controller
US5323097A (en) Method for producing a speed reference signal for crane motor control
CN212440067U (en) Control system of electric crane
JP3486456B2 (en) Remote control method, local controller and remote control device for injection molding machine
CN111939578A (en) Control system and control method of electric crane
JPH10124443A (en) Plant control system
CN114959166B (en) Control method, device, equipment and medium for steelmaking converter
JPH064135A (en) Positioning device
JPS61206002A (en) Safety device for robot
JP2677672B2 (en) Elevator position detector
JPH0664858A (en) Elevator device
JPS63132344A (en) Abnormality monitoring system in divided processing system by plural computers
JPH10275012A (en) Equipment control method and device therefor
JPH01285589A (en) Operation control system for crane
JPH06165860A (en) Managing device of pachinko game facilities
JPS61267801A (en) Plant control system
JPH067364B2 (en) Plant control equipment
JPS62201780A (en) Monitor device for elevator
JPH05147848A (en) Monitor of elevator
JPH0780654B2 (en) Elevator monitoring equipment