JPH0833055A - Device and method for processing data transmission/ reception of inverter - Google Patents

Device and method for processing data transmission/ reception of inverter

Info

Publication number
JPH0833055A
JPH0833055A JP6164016A JP16401694A JPH0833055A JP H0833055 A JPH0833055 A JP H0833055A JP 6164016 A JP6164016 A JP 6164016A JP 16401694 A JP16401694 A JP 16401694A JP H0833055 A JPH0833055 A JP H0833055A
Authority
JP
Japan
Prior art keywords
data
inverter
communication
computer
host computer
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
JP6164016A
Other languages
Japanese (ja)
Inventor
Yasuhiro Shiraishi
康裕 白石
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 JP6164016A priority Critical patent/JPH0833055A/en
Publication of JPH0833055A publication Critical patent/JPH0833055A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/10Technologies improving the efficiency by using switched-mode power supplies [SMPS], i.e. efficient power electronics conversion e.g. power factor correction or reduction of losses in power supplies or efficient standby modes

Landscapes

  • Inverter Devices (AREA)
  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

PURPOSE:To improve response while reducing cost and to prevent normal data from being sacrificed just after data error. CONSTITUTION:A communication circuit 200A of an inverter 300A as a representative station serially linked with a host computer 10 is composed of a communication driver 22A, a communication receiver 23A, interfaces 26A and 27A for communication, a data transmitting/receiving part 40A, a data processing part 44A, sockets 28aA and 28bA and plug 29. Communication control and inverter control is composed of a single computer 310 for inverter, high-speed communication with the highest priority of PWM waveform generating processing is enabled by managing the time of a software, and the time for responding is shortened. Further, when there is any control code at the head in the case of reading data, those data are decided as new data. Therefore, even when any abnormal data are mixed, the communication is immediately restarted from the next normal data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ホスト計算機からの制
御指令データによって、誘導電動機等を駆動するインバ
ータのデータ送受信処理装置及びその処理方法に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission / reception processing device for an inverter that drives an induction motor or the like in accordance with control command data from a host computer, and a processing method thereof.

【0002】[0002]

【従来の技術】まず、従来の通信装置を備えたインバー
タのシステム構成について図6を参照して説明する。図
6は、ホスト計算機10とのシリアル通信によって、P
WM波形生成する複数のインバータ30A,30B,
…,30Nが各々に接続された誘導電動機39A,39
B,…,39Nを駆動するためのシステム構成図であ
る。なお、各局の通信装置20A,20B,…,20N
及びインバータ30A,30B,…,30Nは同様の構
成からなるため、以下の説明では、局番を示すA,B,
…,Nの記号を省略して述べる。図6において、ホスト
計算機10は主として、CPU11と通信ドライバ12
及び通信レシーバ13とからなる。通信装置20は主と
して、CPUを有する通信用計算機21と通信ドライバ
22及び通信レシーバ23と通信用インタフェース2
6,27とからなり、この通信用計算機21の内部構成
はデータ送受信部40、データ処理部41及び対インバ
ータ通信部42等からなる。この通信装置20は通信用
インタフェース26,27を介してホスト計算機10と
シリアルリンクされている。インバータ30は主とし
て、CPUを有するインバータ用計算機31からなり、
その内部構成は通信装置20の対インバータ通信部42
とのデータ交信のための対オプション通信部43、デー
タ処理部44、インバータ制御部45及び誘導電動機3
9のインバータ制御のためのPWM波形を生成するPW
M波形生成部46等からなる。
2. Description of the Related Art First, a system configuration of an inverter having a conventional communication device will be described with reference to FIG. FIG. 6 shows that P is obtained by serial communication with the host computer 10.
A plurality of inverters 30A, 30B for generating a WM waveform,
..., induction motors 39A, 39 with 30N connected to each
It is a system block diagram for driving B, ..., 39N. Note that the communication devices 20A, 20B, ..., 20N of each station
Since the inverters 30A, 30B, ..., 30N have the same configuration, in the following description, A, B, and
..., the symbol N is omitted. In FIG. 6, the host computer 10 mainly includes a CPU 11 and a communication driver 12.
And a communication receiver 13. The communication device 20 mainly includes a communication computer 21 having a CPU, a communication driver 22, a communication receiver 23, and a communication interface 2.
6, 27, and the internal configuration of the communication computer 21 includes a data transmission / reception unit 40, a data processing unit 41, an inverter communication unit 42, and the like. The communication device 20 is serially linked to the host computer 10 via communication interfaces 26 and 27. The inverter 30 is mainly composed of an inverter computer 31 having a CPU,
The internal configuration is the inverter-to-inverter communication unit 42 of the communication device 20.
Option communication unit 43, data processing unit 44, inverter control unit 45, and induction motor 3 for data communication with
PW for generating PWM waveform for inverter control of 9
The M waveform generator 46 and the like are included.

【0003】インバータ30にはホスト計算機10との
リンク運転の際、それぞれホスト計算機10との通信用
オプションである通信装置20が装着され、その通信装
置20とホスト計算機10とは通信装置20の通信用イ
ンタフェース26,27を介してシリアルリンクされ、
必要とされるインバータ30と誘導電動機39とのセッ
トが任意に追加できるように構成されている。つまり、
図6に示すように、インバータ30が複数台の場合に
は、互いに異なった局番A,B,…,Nに設定された通
信装置20が各々のインバータ30に装着され、その通
信装置20のうちの1台とホスト計算機10とが時分割
的に随時接続制御される。通信装置20同士は、通信用
インタフェース27から通信用インタフェース26へと
順次接続され、最後の局番Nの通信装置20には終端抵
抗用端子24に接続片25が取付けられ、終端処理がな
されてシステムが構成されている。
In the link operation with the host computer 10, the inverter 30 is equipped with a communication device 20 which is an option for communication with the host computer 10. The communication device 20 communicates with the host computer 10 by the communication device 20. Serially linked through the interfaces 26, 27 for
The required set of the inverter 30 and the induction motor 39 can be added arbitrarily. That is,
As shown in FIG. 6, when there are a plurality of inverters 30, communication devices 20 set to different station numbers A, B, ... 1 and the host computer 10 are time-divisionally connected and controlled. The communication devices 20 are sequentially connected to each other from the communication interface 27 to the communication interface 26, and the terminal device 24 is attached to the termination resistance terminal 24 of the communication device 20 having the last station number N, and the system is terminated. Is configured.

【0004】次に、その動作概要を、ホスト計算機10
に対して通信装置20、インバータ30及び誘導電動機
39がそれぞれA,B,Nの3台接続された場合につい
て図6を参照して説明する。ホスト計算機10からは、
制御すべき特定のインバータ30に対して、図9(a)
に示すように、データの先頭を意味するコントロールコ
ード70を先頭に、制御すべき特定のインバータ30の
交信したい局番71や指令コード72等の情報を持った
送信データが送信される。通信装置20はインバータ3
0と独立した独自のCPUを有する通信用計算機21を
備えており、そのデータ送受信部40にて、先頭のコン
トロールコード70が受信されると、それに応じたバイ
ト数分のデータを受信し終わるまでデータが取込み続け
られる。このとき、全ての局番A,B,…,Nの通信装
置20は連結されているため、他局へのデータも受取る
ことになるが、受信終了後に通信用計算機21のデータ
処理部41でそのデータが自局に対するデータであるか
どうかが判定され、他局へのデータであればそのデータ
は読捨てられる。そして、自局に対するデータであれ
ば、サムチェックを行い、エラーがなければ、指令コー
ドに応じて通信用計算機21の対インバータ通信部42
からインバータ30側にデータが送られる。
Next, an outline of the operation will be described with reference to the host computer 10.
On the other hand, a case where the communication device 20, the inverter 30, and the induction motor 39 are connected to three units A, B, and N, respectively, will be described with reference to FIG. From the host computer 10,
For a specific inverter 30 to be controlled, FIG.
As shown in, the transmission data having information such as the station number 71 and the command code 72 to be communicated with the specific inverter 30 to be controlled is transmitted with the control code 70, which means the beginning of the data, as the head. The communication device 20 is the inverter 3
It is equipped with a communication computer 21 having its own CPU independent of 0, and when the data transmission / reception unit 40 receives the leading control code 70, it receives the data for the number of bytes corresponding to it. Data continues to be acquired. At this time, since the communication devices 20 having all the station numbers A, B, ..., N are connected, data for other stations will be received, but after the reception is completed, the data processing unit 41 of the communication computer 21 It is determined whether or not the data is for the own station, and if the data is for another station, the data is discarded. Then, if it is the data for the own station, a sum check is performed, and if there is no error, the inverter-to-inverter communication unit 42 of the communication computer 21 according to the command code
The data is transmitted from the inverter 30 side.

【0005】インバータ30と通信装置20もシリアル
リンクされており、インバータ30側の独自のCPUを
有するインバータ用計算機31によって作られるクロッ
クで、通信用計算機21の対インバータ通信部42とイ
ンバータ用計算機31の対オプション通信部43とがデ
ータ交信される。通常、インバータ30ではそのインバ
ータ用計算機31のインバータ制御部45でインバータ
制御に関わる諸々の処理が行われているが、所定の周期
毎に確実にそのPWM波形生成部46にて出力波形を生
成するという重要な処理をしなければならないため、通
信装置20からの送信データの読込みを通信装置20側
の送信タイミングによる割込みで行うことができない。
即ち、この場合のデータ交信のタイミングの主導権はイ
ンバータ30側に委ねられているのである。このデータ
交信が完了して始めてホスト計算機10から送られたデ
ータに対するインバータ30の受信完了であり、インバ
ータ30は、そのインバータ用計算機31のデータ処理
部44でデータ受信完了を識別すると、そのデータがイ
ンバータ用計算機31のインバータ制御部45に送られ
指令コードに従ったPWM(周波数・電圧)波形生成の
ための処理が開始されると共に、データ処理部44では
指令された局番が正常にデータ受信完了した旨を表す返
信用データを作成する。この作成された返信用データ
は、受信時と逆の手順でインバータ30から通信装置2
0を介してホスト計算機10に送信される。
The inverter 30 and the communication device 20 are also serially linked, and a clock generated by an inverter computer 31 having its own CPU on the side of the inverter 30 is used to generate an inverter communication part 42 of the communication computer 21 and the inverter computer 31. Data is communicated with the option communication unit 43. Normally, in the inverter 30, the inverter control unit 45 of the inverter computer 31 performs various processes related to the inverter control, but the PWM waveform generation unit 46 surely generates the output waveform at every predetermined cycle. Therefore, it is impossible to read the transmission data from the communication device 20 by an interrupt due to the transmission timing on the communication device 20 side.
That is, the initiative for the data communication timing in this case is entrusted to the inverter 30 side. Only when this data communication is completed, the reception of the data sent from the host computer 10 by the inverter 30 is completed, and when the inverter 30 identifies the data reception completion by the data processing unit 44 of the inverter computer 31, the data is The process for generating the PWM (frequency / voltage) waveform according to the command code is sent to the inverter control unit 45 of the inverter computer 31, and the data processing unit 44 completes the data reception of the commanded station number normally. Data for reply indicating that it was done is created. The created reply data is transferred from the inverter 30 to the communication device 2 in the reverse procedure of the reception.
It is transmitted to the host computer 10 via 0.

【0006】次に、インバータ30のインバータ用計算
機31のインバータ制御部45で実行される従来のソフ
トウェアの概要を図7を用い、図6を参照しながら説明
する。ここで、図7では、インバータ制御部45で通
常、実行される一続きの処理ルーチンが、後述のタイマ
割込みによるインターラプト50によって結果的に複数
のメイン51〜メイン54の処理ルーチンに分断されて
いる。図7において、プログラム構成のうちブロック状
に表されているメイン51からメイン54までの処理ル
ーチンに基づいて図6のインバータ30のインバータ用
計算機31のインバータ制御部45における処理が行わ
れる。また、図7のインターラプト50は図6のインバ
ータ用計算機31のPWM波形生成部46の処理ルーチ
ンを示し、タイマ割込みによって起動される。即ち、タ
イマ割込みによるインターラプト50のために、図7に
示すように、一続きの処理ルーチンが不特定の箇所でメ
イン51〜メイン54の処理ルーチンに分断されてい
る。また、図7のデータ送受信処理56は図6のインバ
ータ用計算機31の対オプション通信部43のための処
理ルーチン、図7のデータ処理55は図6のインバータ
用計算機31のデータ処理部44のための処理ルーチン
を示し、このようにデータ送受信処理56及びデータ処
理55はメインルーチンのフローの中に位置している。
Next, an outline of conventional software executed by the inverter control unit 45 of the inverter computer 31 of the inverter 30 will be described with reference to FIG. 7 and with reference to FIG. Here, in FIG. 7, a series of processing routines normally executed by the inverter control unit 45 is eventually divided into a plurality of processing routines of the main 51 to the main 54 by an interrupt 50 by a timer interrupt described later. There is. In FIG. 7, the processing in the inverter control unit 45 of the inverter computer 31 of the inverter 30 in FIG. 6 is performed based on the processing routine from the main 51 to the main 54, which is represented by blocks in the program configuration. Further, the interrupt 50 of FIG. 7 shows a processing routine of the PWM waveform generation unit 46 of the inverter computer 31 of FIG. 6, which is activated by a timer interrupt. That is, because of the interrupt 50 caused by the timer interrupt, as shown in FIG. 7, the series of processing routines is divided into the processing routines of the main 51 to the main 54 at unspecified points. Further, the data transmission / reception processing 56 of FIG. 7 is a processing routine for the option communication unit 43 of the inverter computer 31 of FIG. 6, and the data processing 55 of FIG. 7 is for the data processing unit 44 of the inverter computer 31 of FIG. The data transmission / reception processing 56 and the data processing 55 are positioned in the flow of the main routine.

【0007】次に、図6に示す通信装置20のデータ送
受信部40における処理手順を図8のフローチャートに
基づいて、図6に示すシステム全体の流れとの関係から
説明する。まず、ステップS1で受信モードであるかが
判定され、受信モードでないと送信処理の図示しないル
ーチンに移行する。受信モードであるとステップS2に
移行し、ホスト計算機10からの受信データが有るかが
判定され、受信データがないときには本ルーチンを終了
する。ここで、受信データが有ると、ステップS3に移
行し、そのデータを読込んだのちステップS4に移行す
る。ステップS4では現在自局がデータ取込みの最中で
あるかが取込み中のフラグにて判定され、データ取込み
中のフラグがセットされていると、ステップS5に移行
し、データが格納され受信データカウンタがインクリメ
ントされる。次にステップS6に移行して、受信データ
カウンタ(データ数)が規定データ数(規定バイト数)
分に達するまで、ステップS1〜ステップS6の処理が
繰返され、無条件にホスト計算機10からの受信データ
が格納し続けられる。そして、ステップS6で受信デー
タカウンタが規定データ数に達すると、ステップS7に
移行し、データ取込み中のフラグをリセットし、受信デ
ータカウンタがクリアされ、本ルーチンを終了する。一
方、ステップS4でデータ取込み中のフラグがセットさ
れていなければ、ステップS8に移行し、受信データが
コントロールコードであるかが判定され、コントロール
コードであるとステップS9に移行する。ステップS9
では、その受信データが格納されデータ取込み中のフラ
グがセットされ、受信データカウンタが1とされ、本ル
ーチンを終了する。なお、ステップS8で、ホスト計算
機10からの受信データがコントロールコードでないと
きには、その受信データが読捨てられ、本ルーチンを終
了する。
Next, the processing procedure in the data transmitting / receiving unit 40 of the communication device 20 shown in FIG. 6 will be described based on the flow chart of FIG. 8 in relation to the flow of the entire system shown in FIG. First, in step S1, it is determined whether or not the reception mode is set. If the reception mode is not set, the routine shifts to a routine (not shown) of the transmission process. If it is in the reception mode, the process proceeds to step S2, it is determined whether there is received data from the host computer 10, and if there is no received data, this routine is ended. If there is received data, the process proceeds to step S3, the data is read, and then the process proceeds to step S4. In step S4, it is determined whether or not the own station is in the process of data acquisition at present by the flag of data acquisition. If the flag of data acquisition is set, the process proceeds to step S5, the data is stored and the reception data counter Is incremented. Next, the process proceeds to step S6, where the reception data counter (number of data) is the specified number of data (specified number of bytes).
The processes of steps S1 to S6 are repeated until the number of minutes is reached, and the reception data from the host computer 10 is unconditionally continued to be stored. Then, when the received data counter reaches the specified number of data in step S6, the process proceeds to step S7, the flag being taken in is reset, the received data counter is cleared, and this routine is ended. On the other hand, if the data acquisition flag is not set in step S4, the process proceeds to step S8, it is determined whether the received data is the control code, and if it is the control code, the process proceeds to step S9. Step S9
Then, the reception data is stored, the data acquisition flag is set, the reception data counter is set to 1, and this routine is finished. In step S8, when the received data from the host computer 10 is not the control code, the received data is discarded and the present routine ends.

【0008】このようにして、図6に示すシステム構成
において、通信装置20はホスト計算機10からの受信
データを1バイト毎に割込み処理で拾っていき、規定バ
イト数分の受信データを受信し終えたのちに、インバー
タ30からの合図に基づいてその受信データを通信装置
20からインバータ30に送信される。ここで、通信装
置20がホスト計算機10とデータのやりとりをしてい
る間は、インバータ30はその交信とは無関係に、独自
のソフトウェアを動かしているのである。このように、
通信装置20とインバータ30とのデータ交信のきっか
けはインバータ30に委ねられているのであるから、イ
ンバータ30によるPWM波形生成が通信装置20とホ
スト計算機10とのデータ交信によって妨げられるよう
なことはない。
In this way, in the system configuration shown in FIG. 6, the communication device 20 picks up the received data from the host computer 10 for each byte by interrupt processing, and finishes receiving the specified number of received data. After that, the received data is transmitted from the communication device 20 to the inverter 30 based on the signal from the inverter 30. Here, while the communication device 20 is exchanging data with the host computer 10, the inverter 30 runs its own software regardless of its communication. in this way,
Since the trigger for the data communication between the communication device 20 and the inverter 30 is entrusted to the inverter 30, the PWM waveform generation by the inverter 30 is not disturbed by the data communication between the communication device 20 and the host computer 10. .

【0009】[0009]

【発明が解決しようとする課題】このように、上記従来
技術では、インバータとホスト計算機とをシリアル交信
させるためその間に、一旦、インバータ側のインバータ
用計算機と独立の通信用計算機を持った通信装置を介在
させている。その際、通信装置とインバータとの間もシ
リアルリンクされている。このため、インバータはホス
ト計算機との交信に時間がかかり、応答性が悪いという
不具合があった。この不具合を解決する方法としては、
通信装置とインバータとの間を、シリアルリンクではな
くバス結合にすることで、ある程度の時間短縮、即ち、
多少の応答性の改善は見込まれる。しかし、通信装置が
介在されていることによる交信時間の必要不可欠分が存
在しており、なお一層の交信時間の短縮が望まれてい
た。
As described above, according to the above-mentioned prior art, in order to serially communicate the inverter and the host computer, the communication device having the inverter computer on the inverter side and the communication computer independent from each other is provided during the serial communication. Is intervening. At that time, the communication device and the inverter are also serially linked. For this reason, the inverter takes a long time to communicate with the host computer and has a problem that the responsiveness is poor. To solve this problem,
By connecting the communication device and the inverter with a bus instead of a serial link, it is possible to save some time, that is,
Some improvement in responsiveness is expected. However, there is an indispensable amount of communication time due to the presence of the communication device, and it has been desired to further shorten the communication time.

【0010】この交信時間を短縮するための対策とし
て、1個のCPUを有する計算機でインバータ制御とシ
リアル通信制御との両方を行うことが考えられる。とこ
ろが、インバータ本来の役割であるPWM波形生成の処
理を最優先させながら高速通信に対応させるというの
は、単にCPUを有する計算機の乗せ替えでは不可能で
あった。なぜなら、インバータ制御とシリアル通信制御
とを1個のCPUを有する計算機で処理するには、例え
ば、通信変調速度を38.4Kボー、通信データの1パ
ケットを11ビット/1バイトとした場合、1バイトの
データが送られる時間間隔は286μs〔=(11×1
6 )/(38.4×103 )〕であり、この間にデー
タを取りにいかなければ、次の1バイトデータによって
先のデータが壊されてしまうからである。つまり、この
際、PWM波形生成のためのインターラプトは最優先で
あるという大原則があるため、286μs毎にデータ送
受信処理を割込み処理を用いることなく、確実に受取り
にいかねばならないのである。
As a measure for shortening the communication time, it is conceivable that a computer having one CPU performs both inverter control and serial communication control. However, it is impossible to simply support the high-speed communication while giving priority to the PWM waveform generation process, which is the original role of the inverter, by simply replacing the computer having the CPU. This is because, in order to process the inverter control and the serial communication control by a computer having one CPU, for example, when the communication modulation rate is 38.4 K baud and one packet of communication data is 11 bits / 1 byte, 1 The time interval for sending byte data is 286 μs [= (11 × 1
0 6 ) / (38.4 × 10 3 )], and if the data cannot be retrieved during this period, the previous data is destroyed by the next 1-byte data. That is, at this time, since there is a general principle that the interrupt for generating the PWM waveform has the highest priority, the data transmission / reception process must be surely received without using the interrupt process every 286 μs.

【0011】更に、図6に示す通信装置20の通信用計
算機21のデータ送受信部40では、一旦、図9(a)
に示す送信データのコントロールコード70を受信する
と、図8のフローチャートで述べたように、ステップS
1〜ステップS6の処理が繰返され、受信データカウン
タ(データ数)が規定データ数(規定バイト数)分とな
るまで無条件にホスト計算機10からの受信データを取
込もうとする。このため、図9(b)に示す受信データ
における最初のデータαのようにデータが不完全で途中
で尻切れになってしまっているときには、通信用計算機
21のデータ送受信部40の内部判定では図9(b)に
示す次のデータβの先頭から前回不足したデータのバイ
ト数分が前回のデータの一部として読込まれてしまうこ
ととなる。したがって、図9(b)に示す最初のデータ
αと次のデータβの一部とに対応する図9(c)に示す
内部判定の先頭データには、コントロールコード70が
2つあることでサムチェックエラーとなり、図9(b)
の2つ目の本来、正常なデータβは、図9(c)の内部
判定では先頭コマンドなしとみなされて無視され読取ら
れず、図9(b)の3つ目のデータγから交信再開とな
っていた。このように、通信用計算機21のデータ送受
信部40の内部判定では、受信データの段階では正常な
データβまで失われてしまうという不具合があった。
Further, in the data transmission / reception section 40 of the communication computer 21 of the communication device 20 shown in FIG.
When the control code 70 of the transmission data shown in is received, as described in the flowchart of FIG.
The processing from 1 to step S6 is repeated, and the reception data from the host computer 10 is unconditionally attempted to be received until the reception data counter (the number of data) reaches the predetermined number of data (the number of specified bytes). Therefore, when the data is incomplete and cut off in the middle like the first data α in the received data shown in FIG. 9B, the internal determination of the data transmitting / receiving unit 40 of the communication computer 21 indicates From the beginning of the next data β shown in 9 (b), the number of bytes of the data that was lacking last time will be read as a part of the previous data. Therefore, since there are two control codes 70 in the initial data of the internal determination shown in FIG. 9C corresponding to the first data α and a part of the next data β shown in FIG. A check error has occurred, and Fig. 9 (b)
In the internal determination of FIG. 9C, the second normally valid data .beta. Is regarded as having no head command, is ignored, and is not read, and the communication restarts from the third data .gamma. Of FIG. 9B. It was. As described above, in the internal determination of the data transmitting / receiving unit 40 of the communication computer 21, there is a problem that even normal data β is lost at the stage of received data.

【0012】そこで、本発明は、かかる不具合を解決す
るためになされたもので、インバータとホスト計算機と
のシリアル交信において、その間にオプションとしての
通信装置の介在を不要としてコストを削減しつつデータ
交信時間を短縮することで応答性の向上を図ると共にデ
ータにエラーがあった場合にもその次の正常なデータを
犠牲にすることなく速やかな交信が再開可能なインバー
タのデータ送受信処理装置及びその処理方法の提供を課
題としている。
Therefore, the present invention has been made to solve such a problem, and in serial communication between an inverter and a host computer, there is no need for an optional communication device to intervene between them, and data communication is possible while reducing costs. In addition to improving the responsiveness by shortening the time, even if there is an error in the data, prompt data communication can be restarted without sacrificing the next normal data, and the data transmission / reception processing device of the inverter and its processing The challenge is to provide a method.

【0013】[0013]

【課題を解決するための手段】請求項1にかかるインバ
ータのデータ送受信処理装置は、通信ドライバ及び通信
レシーバを有し、制御指令データを出力するホスト計算
機と、前記ホスト計算機とシリアルリンクするための通
信用インタフェース、通信ドライバ及び通信レシーバと
前記ホスト計算機からの自局に対する前記制御指令デー
タを取込み、その制御指令データに基づいてインバータ
制御を行うインバータ用計算機とを有するインバータと
を具備するインバータのデータ送受信処理装置におい
て、前記インバータ用計算機の処理プログラムのメイン
ルーチンにおける連続の処理時間が所定時間内となるよ
うに前記メインルーチンを分割し、その分割ルーチン毎
に前記所定時間内のデータ送受信処理を時間管理するイ
ンターラプト待機ループを設けるものである。
A data transmission / reception processing device for an inverter according to claim 1 has a communication driver and a communication receiver, and a host computer for outputting control command data, and a serial link for the host computer. Inverter data including a communication interface, a communication driver and a communication receiver, and an inverter having an inverter computer that takes in the control command data from the host computer to the local station and performs inverter control based on the control command data In the transmission / reception processing device, the main routine is divided so that the continuous processing time in the main routine of the processing program of the inverter computer is within a predetermined time, and the data transmission / reception processing within the predetermined time is timed for each divided routine. Manage interrupt wait It is intended to provide a flop.

【0014】請求項2にかかるインバータのデータ送受
信処理装置は、請求項1の具備する手段に加えて、前記
所定時間を、通信変調速度及び通信データの1パケット
の大きさに基づいて算出される時間を越えないように設
定するものである。
According to a second aspect of the present invention, in addition to the means of the first aspect, the data transmission / reception processing device for an inverter calculates the predetermined time based on the communication modulation rate and the size of one packet of communication data. It is set so as not to exceed the time.

【0015】請求項3にかかるインバータのデータ送受
信処理装置は、請求項1の具備する手段に加えて、前記
インバータ用計算機が、誘導電動機と接続され、前記制
御指令データに基づいてインバータ制御された周波数及
び電圧を前記誘導電動機に出力するものである。
According to a third aspect of the present invention, there is provided an inverter data transmission / reception processing device, wherein the inverter computer is connected to an induction motor, and the inverter is controlled based on the control command data. The frequency and voltage are output to the induction motor.

【0016】請求項4にかかるインバータのデータ送受
信処理方法は、通信ドライバ及び通信レシーバを有し、
制御指令データを出力するホスト計算機と、前記ホスト
計算機とシリアルリンクするための通信用インタフェー
ス、通信ドライバ及び通信レシーバと前記ホスト計算機
からの自局に対する前記制御指令データを取込み、その
制御指令データに基づいてインバータ制御を行うインバ
ータ用計算機とを有するインバータとを具備するものに
おいて、前記制御指令データの1バイトのデータ受信毎
にデータの先頭を示すコントロールコードの有無を判別
する判別工程と、前記判別工程で前記コントロールコー
ドが判別されると、それまでの受信データをクリアする
と共に改めて交信開始するデータ交信工程とからなるも
のである。
A data transmission / reception processing method for an inverter according to claim 4 has a communication driver and a communication receiver,
A host computer that outputs control command data, a communication interface for serially linking with the host computer, a communication driver and a communication receiver, and the control command data for the own station from the host computer are fetched and based on the control command data. And an inverter having an inverter computer that performs inverter control, the determining step of determining the presence or absence of a control code indicating the beginning of data for each 1-byte data reception of the control command data, and the determining step. When the control code is discriminated in step 2, the data communication step of clearing the received data up to that point and starting communication again is performed.

【0017】[0017]

【作用】請求項1においては、通信ドライバ及び通信レ
シーバを有し、制御指令データを出力するホスト計算機
と通信用インタフェース、通信ドライバ及び通信レシー
バを介してシリアルリンクされ、取込まれた制御指令デ
ータに基づいてインバータ制御されるインバータ用計算
機とを有するインバータとにおけるインバータのデータ
送受信処理装置であって、このインバータのインバータ
用計算機で実行されるプログラムのメインルーチンにお
ける連続の処理時間が所定時間内となるようにそのメイ
ンルーチンが分割され、その分割ルーチン毎に設けられ
たインターラプト待機ループによりデータ送受信処理が
所定時間内となるように時間管理される。
According to the present invention, the control command data, which has the communication driver and the communication receiver and is serially linked with the host computer for outputting the control command data, through the communication interface, the communication driver and the communication receiver, is taken in. An inverter data transmission / reception processing device in an inverter having an inverter computer controlled by the inverter according to, and a continuous processing time in a main routine of a program executed by the inverter computer of the inverter within a predetermined time The main routine is divided as described above, and an interrupt standby loop provided for each divided routine manages the time so that the data transmission / reception process is within a predetermined time.

【0018】請求項2のインバータのデータ送受信処理
装置では、請求項1の作用に加えて、所定時間が通信変
調速度及び通信データの1パケットの大きさに基づいて
算出された時間を越えないように設定されることで、先
に取込んだデータが次のデータで壊されることなく通信
制御されると共に、そのデータに基づくインバータ制御
が実行される。
In the data transmission / reception processing device for an inverter according to a second aspect, in addition to the operation of the first aspect, the predetermined time does not exceed the time calculated based on the communication modulation rate and the size of one packet of communication data. By setting to, communication control is performed without destroying the previously captured data with the next data, and the inverter control based on the data is executed.

【0019】請求項3のインバータのデータ送受信処理
装置におけるインバータ用計算機では、請求項1の作用
に加えて、接続された誘導電動機に対してホスト計算機
からの制御指令データに基づきインバータ制御された周
波数及び電圧が出力される。
In the inverter computer in the inverter data transmission / reception processing device of claim 3, in addition to the operation of claim 1, the frequency at which the inverter is controlled based on the control command data from the host computer to the connected induction motor. And the voltage is output.

【0020】請求項4においては、通信ドライバ及び通
信レシーバを有し、制御指令データを出力するホスト計
算機と通信用インタフェース、通信ドライバ及び通信レ
シーバを介してシリアルリンクされ、取込まれた制御指
令データに基づいてインバータ制御されるインバータ用
計算機とを有するインバータとにおけるインバータのデ
ータ送受信処理方法であって、判別工程では制御指令デ
ータの1バイトのデータ受信毎にデータの先頭を示すコ
ントロールコードの有無が判別される。そして、このコ
ントロールコードがあると、データ交信工程では新たな
受信データであるとしてそれまでの受信データをクリア
し交信が開始される。
According to another aspect of the present invention, the control command data, which has a communication driver and a communication receiver, is serially linked to the host computer that outputs the control command data via the communication interface, the communication driver and the communication receiver, and is taken in. A method for transmitting and receiving data of an inverter in an inverter having a computer for inverter control based on the above, wherein in the determining step, the presence or absence of a control code indicating the beginning of data is received for each 1-byte data reception of the control command data. To be determined. Then, when this control code is present, it is regarded as new reception data in the data communication step, the reception data up to that point is cleared, and communication is started.

【0021】[0021]

【実施例】以下、本発明のインバータのデータ送受信処
理装置及びその処理方法を具体的な実施例に基づいて説
明する。図1は本発明の一実施例にかかるインバータの
データ送受信処理装置において、局番A,B,…,Nと
する複数のインバータ300A,300B,…,300
Nがホスト計算機10とのシリアル通信によって、各々
に接続された誘導電動機39A,39B,…,39Nを
PWM駆動するための構成図である。なお、各局のイン
バータ300A,300B,…,300Nは同様の構成
からなるため、以下の説明では、局番を示すA,B,
…,Nの記号を省略して述べる。また、前述の従来装置
と同様の構成または相当部分からなるものについては同
一符号及び同一記号を付して示す。図1において、10
はホスト計算機であり、ホスト計算機10は主として、
CPU11と通信ドライバ12及び通信レシーバ13と
からなる。300はインバータであり、インバータ30
0は主として、単独のCPUを有するインバータ用計算
機310と通信ドライバ22及び通信レシーバ23と通
信用インタフェース26,27とからなり、この通信用
計算機310の内部構成はデータ送受信部40、データ
処理部44、インバータ制御部45及び誘導電動機39
のインバータ制御のためのPWM波形を生成するPWM
波形生成部46等からなる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A data transmission / reception processing device for an inverter and a processing method thereof according to the present invention will be described below with reference to specific embodiments. 1 shows a plurality of inverters 300A, 300B, ..., 300 having station numbers A, B, ..., N in an inverter data transmission / reception processing apparatus according to an embodiment of the present invention.
FIG. 4 is a configuration diagram for PWM driving the induction motors 39A, 39B, ..., 39N connected to each N by serial communication with the host computer 10. Since the inverters 300A, 300B, ..., 300N of each station have the same configuration, the station numbers A, B, and
..., the symbol N is omitted. Also, the same reference numerals and symbols are given to those having the same configurations or corresponding portions as those of the above-described conventional apparatus. In FIG. 1, 10
Is a host computer, and the host computer 10 is mainly
It is composed of a CPU 11, a communication driver 12, and a communication receiver 13. 300 is an inverter, and the inverter 30
Reference numeral 0 mainly includes an inverter computer 310 having a single CPU, a communication driver 22, a communication receiver 23, and communication interfaces 26 and 27. The internal configuration of the communication computer 310 includes a data transmission / reception unit 40 and a data processing unit 44. , Inverter control unit 45 and induction motor 39
PWM to generate PWM waveform for inverter control
The waveform generator 46 and the like are included.

【0022】インバータ300はホスト計算機10との
リンク運転をするための独自の通信回路200を有し、
その通信回路200を介してインバータ300はホスト
計算機10とシリアルリンクされている。つまり、図1
に示すように、インバータ300が複数台の場合には、
互いに異なった局番A,B,…,Nに設定された通信回
路200のうちの1台とホスト計算機10とが時分割的
に随時接続制御される。通信回路200同士は、通信用
インタフェース27から通信用インタフェース26へと
順次接続され、最後の局番Nの通信回路200にはソケ
ット28a側にプラグ29が取付けられ、終端処理がな
されてシステムが構成されている。
The inverter 300 has its own communication circuit 200 for link operation with the host computer 10,
The inverter 300 is serially linked to the host computer 10 via the communication circuit 200. That is, FIG.
As shown in, when there are a plurality of inverters 300,
One of the communication circuits 200 set to different station numbers A, B, ..., N and the host computer 10 are time-divisionally connected and controlled. The communication circuits 200 are sequentially connected to each other from the communication interface 27 to the communication interface 26, and the plug 29 is attached to the socket 28a side of the communication circuit 200 of the last station number N, and the termination process is performed to configure the system. ing.

【0023】次に、図1及び図9を参照し、ホスト計算
機10とインバータ300との間の動作概要について説
明する。図1おいて、通信回路200には、ホスト計算
機10の通信ドライバ12及び通信レシーバ13と通信
用インタフェース26を介して通信レシーバ23及び通
信ドライバ22とがそれぞれ接続されている。ホスト計
算機10からはシリアルリンクされたインバータ300
に対して、図9(a)に示すように、データの先頭を意
味するコントロールコード70を先頭に、制御すべき特
定のインバータを指定する局番71や指令コード72等
の情報を持った送信データが送信される。通信回路20
0とインバータ300とは共有のCPUを有するインバ
ータ用計算機310を備えており、そのインバータ用計
算機310のデータ送受信部40にて、送信データの先
頭のコントロールコード70が受信されると、それに応
じたバイト数分のデータを受信し終わるまでデータが取
込み続けられる。全ての局番A,B,…,Nの通信回路
200は連結されているため、ホスト計算機10から他
局への送信データも受取ることになるが、受信終了後に
インバータ用計算機310のデータ処理部44でその送
信データが自局に対する送信データであるかどうかが判
定され、他局への送信データであれば読捨てられる。自
局に対する送信データであれば、サムチェックを行い、
エラーがなければ、指令コードに応じてインバータ用計
算機310のインバータ制御部45に受信データとして
送られ、所定の周期毎にPWM波形生成部46にて出力
波形が生成され、この出力波形に応じて誘導電動機39
が制御されることとなる。
Next, the outline of the operation between the host computer 10 and the inverter 300 will be described with reference to FIGS. 1 and 9. In FIG. 1, the communication circuit 200 is connected to the communication driver 12 and the communication receiver 13 of the host computer 10 and the communication receiver 23 and the communication driver 22 via the communication interface 26. Inverter 300 serially linked from the host computer 10
On the other hand, as shown in FIG. 9A, transmission data having information such as a station code 71 and a command code 72 that specify a specific inverter to be controlled, starting with a control code 70 that means the beginning of the data. Will be sent. Communication circuit 20
0 and the inverter 300 are provided with an inverter computer 310 having a shared CPU, and when the data transmission / reception unit 40 of the inverter computer 310 receives the control code 70 at the head of the transmission data, it responds accordingly. Data is continuously fetched until the number of bytes of data is received. Since the communication circuits 200 of all station numbers A, B, ..., N are connected, the data transmitted from the host computer 10 to other stations will be received, but after the reception is completed, the data processing unit 44 of the inverter computer 310. Then, it is judged whether or not the transmission data is the transmission data for the own station, and if it is the transmission data for another station, it is discarded. If it is transmission data for your station, check the sum,
If there is no error, it is sent as received data to the inverter control unit 45 of the inverter computer 310 according to the command code, and an output waveform is generated by the PWM waveform generation unit 46 at every predetermined cycle, and according to this output waveform. Induction motor 39
Will be controlled.

【0024】このデータ交信が完了してはじめてホスト
計算機10から送られたデータに対するインバータ30
0の受信完了となり、インバータ300は、データ処理
部44でデータ受信完了を識別すると、指令コードに従
った処理を開始し、指令された局番が正常にデータ受信
完了した旨を表す返信用のデータを作成する。この作成
された返信用データは、受信時と逆の手順でインバータ
300の通信回路200を介してホスト計算機10に送
信される。このように、インバータ用計算機310に、
シリアル通信機能を保有したものを用いることにより、
通信用のオプションを不要としており、通信回路200
はインバータ300に内蔵され一体化されている。
Only after this data communication is completed, the inverter 30 for the data sent from the host computer 10
When the data processing unit 44 identifies that the data reception is completed, the inverter 300 starts the process according to the command code, and the return data indicating that the commanded station number is normally received. To create. The created reply data is transmitted to the host computer 10 via the communication circuit 200 of the inverter 300 in the reverse procedure of the reception. Thus, in the inverter computer 310,
By using one that has a serial communication function,
No communication option is required, and the communication circuit 200
Are built in and integrated in the inverter 300.

【0025】次に、本実施例装置におけるインバータ3
00がインバータ用計算機310の単独のCPUのみで
ホスト計算機10とのデータ交信とPWM波形生成とが
誤りなく実行されるかについて説明する。まず、図2及
び図3を用いてインバータ300の内部処理の説明を行
う。図2は図1のインバータ300のインバータ用計算
機310のインバータ制御部45で実行されるソフトウ
ェアの概要を示す概略図である。ここで、図2では、イ
ンバータ制御部45で通常、実行される一続きの処理ル
ーチンが、後述のインターラプト待機ループ66によっ
て複数のメインA61〜メインD64の処理ルーチンに
分割されている。前述したように、通信変調速度38.
4Kボーを実現するためには、インバータ300のイン
バータ用計算機310のインバータ制御部45では1バ
イトデータを286μs毎に読込まなければならない。
そのため、PWM波形生成処理を行うインターラプト6
0の時間t0 を286μs以内(t0 <286μs)と
なるように設計し、更に、インバータ制御のプログラム
のメインルーチン(メインA61〜メインD64)の連
続の処理時間が286μs以内になるように分割する。
図2に示すメインA61〜メインD64は、286μs
以内(t1,t2,t3,t4 <286μs)になるように分
割されたメインルーチンの各ブロックである。
Next, the inverter 3 in the apparatus of this embodiment
00 will be described as to whether data communication with the host computer 10 and PWM waveform generation are executed without error by only a single CPU of the inverter computer 310. First, the internal processing of the inverter 300 will be described with reference to FIGS. 2 and 3. FIG. 2 is a schematic diagram showing an outline of software executed by the inverter control unit 45 of the inverter computer 310 of the inverter 300 of FIG. Here, in FIG. 2, a series of processing routines normally executed by the inverter control unit 45 is divided into a plurality of main A61 to main D64 processing routines by an interrupt standby loop 66 described later. As described above, the communication modulation rate 38.
In order to realize 4 K baud, the inverter control unit 45 of the inverter computer 310 of the inverter 300 must read 1-byte data every 286 μs.
Therefore, the interrupt 6 that performs the PWM waveform generation process
The time t0 of 0 is designed to be within 286 μs (t0 <286 μs), and further divided so that the continuous processing time of the main routine (main A61 to main D64) of the inverter control program is within 286 μs.
The main A61 to main D64 shown in FIG. 2 are 286 μs.
It is each block of the main routine divided so as to be within (t1, t2, t3, t4 <286 μs).

【0026】各々のブロックの最後には、図3のステッ
プS101〜ステップS103に示すような、データ送
受信処理ルーチンを含んだインターラプト60を待つた
めのインターラプト待機処理を行うインターラプト待機
ループ66がおかれている。このように、インターラプ
ト待機ループ66の中と、インターラプト処理を抜出た
ところに、1バイトデータを送受信するデータ送受信処
理サブルーチン(図3のステップS101及びステップ
S103)をおくことで、286μsに少なくとも1度
はサブルーチンコールが実行され、通信変調速度38.
4Kボーのデータ受信時にもデータを取りこぼすことは
ない。また、図2のように、分割されたインバータ制御
区間の数カ所にデータ処理ルーチン65をおくことで受
信完了後、データ処理までの応答時間を短縮することが
可能となる。
At the end of each block, an interrupt waiting loop 66 for performing an interrupt waiting process for waiting for the interrupt 60 including a data transmission / reception processing routine, as shown in steps S101 to S103 of FIG. It is set. In this way, by providing a data transmission / reception processing subroutine (step S101 and step S103 in FIG. 3) for transmitting / receiving 1-byte data in the interrupt waiting loop 66 and at the place where the interrupt processing is extracted, the 286 μs is reached. The subroutine call is executed at least once, and the communication modulation speed 38.
No data is missed when receiving 4K baud data. Further, as shown in FIG. 2, by providing the data processing routine 65 at several places in the divided inverter control section, it is possible to shorten the response time until the data processing after the reception is completed.

【0027】次に、通信回路200のデータ送受信部4
0におけるデータ送受信処理の手順を、図1に示すシス
テム全体の動作の流れを参照しながら図4のフローチャ
ートに基づいて説明する。まず、ステップS201で受
信モードであるかが判定され、受信モードでないと送信
処理の図示しないルーチンに移行する。受信モードであ
るとステップS202に移行し、ホスト計算機10から
の受信データが有るかが判定され、受信データがないと
きには本ルーチンを終了する。受信データが有ると、ス
テップS203に移行し、そのデータを読込んだのちス
テップS204に移行する。ステップS204では受信
したデータがコントロールコードであるかが判定され、
コントロールコードであるとステップS205に移行す
る。ステップS205ではデータが格納されデータ取込
み中のフラグがセットされ、受信データカウンタが1と
され、本ルーチンを終了する。
Next, the data transmitting / receiving section 4 of the communication circuit 200
The procedure of the data transmission / reception process in 0 will be described with reference to the flow of the operation of the entire system shown in FIG. First, in step S201, it is determined whether or not the reception mode is set, and if it is not the reception mode, the process proceeds to a routine (not shown) of the transmission process. If it is in the reception mode, the process proceeds to step S202, it is determined whether there is received data from the host computer 10, and if there is no received data, this routine ends. If there is received data, the process proceeds to step S203, the data is read, and then the process proceeds to step S204. In step S204, it is determined whether the received data is a control code,
If it is a control code, the process proceeds to step S205. In step S205, the data is stored, the data acquisition flag is set, the reception data counter is set to 1, and this routine ends.

【0028】一方、ステップS204で受信したデータ
がコントロールコードでないときには、ステップS20
6に移行し、現在自分がデータ取込みの最中かが取込み
中のフラグにて判定され、データ取込み中のフラグがセ
ットされていると、ステップS207に移行し、データ
が格納され受信データカウンタがインクリメントされ
る。次にステップS208に移行して、受信データカウ
ンタ(データ数)が規定データ数(規定バイト数)分に
達するまで、ステップS201〜ステップS208の処
理が繰返され、無条件にホスト計算機10からの受信デ
ータが格納し続けられる。そして、ステップS208で
受信データカウンタが規定データ数に達すると、ステッ
プS209に移行し、データ取込み中のフラグをリセッ
トし、受信データカウンタがクリアされ、本ルーチンを
終了する。なお、ステップS206でデータ取込み中の
フラグがセットされていなければ、本ルーチンを終了す
る。
On the other hand, when the data received in step S204 is not the control code, step S20
If the flag indicating that the data is being captured is currently set and the flag indicating that the data is being captured is set, the process proceeds to step S207 and the received data counter stores the data. Incremented. Next, the process proceeds to step S208, and the processes of steps S201 to S208 are repeated until the reception data counter (data count) reaches the specified data count (specified byte count), and unconditional reception from the host computer 10 is performed. Data will continue to be stored. Then, when the received data counter reaches the specified number of data in step S208, the process proceeds to step S209, the flag being taken in is reset, the received data counter is cleared, and this routine is ended. It should be noted that if the flag indicating that the data is being fetched is not set in step S206, this routine is ended.

【0029】このように、図1に示すシステム構成にお
いて、インバータ300の通信回路200のデータ送受
信部40ではホスト計算機10からの受信データを読込
む毎にデータの先頭であるコントロールコードであるか
が判定され、コントロールコードであると無条件にそれ
を先頭データとして読込み開始となるため、従来装置の
内部判定として図9(c)に示されるように、コントロ
ールコードが前回のデータの途中の一部として読込まれ
ることはない。
As described above, in the system configuration shown in FIG. 1, every time the data transmission / reception unit 40 of the communication circuit 200 of the inverter 300 reads the received data from the host computer 10, whether the control code is the head of the data or not. Since it is determined that the control code is unconditionally started to be read as the head data, as shown in FIG. 9C as internal determination of the conventional apparatus, the control code is part of the middle of the previous data. Is never read as.

【0030】ここで、図1に示す通信回路200Nの終
端処理について、図5を参照して説明する。通信装置間
の接続は従来例と同様であるが、終端抵抗部分はソケッ
ト28a,28bになっている。図5に示すように、プ
ラグ29は内部で短絡されており、ソケット28bはダ
ミー用であり、ソケット28aと28bとは互いに絶縁
されており、プラグ29はどちら側にも装着することが
できる。ここで、プラグ29をソケットの28a側に装
着すれば終端抵抗が短絡され、取外せば開放される仕組
みになっている。なお、終端抵抗が不要な場合にはプラ
グ29を外しておけばよく、そのプラグ29をダミー用
ソケット28bにつけておくことで紛失防止することが
できる。
Here, the termination process of the communication circuit 200N shown in FIG. 1 will be described with reference to FIG. The connection between the communication devices is the same as in the conventional example, but the terminating resistance portions are sockets 28a and 28b. As shown in FIG. 5, the plug 29 is internally short-circuited, the socket 28b is for dummy, the sockets 28a and 28b are insulated from each other, and the plug 29 can be mounted on either side. Here, if the plug 29 is attached to the socket 28a side, the terminating resistance is short-circuited, and if removed, it is opened. If the terminating resistor is unnecessary, the plug 29 may be removed, and the plug 29 may be attached to the dummy socket 28b to prevent loss.

【0031】このように、本発明の一実施例のインバー
タのデータ送受信処理装置は、通信ドライバ12及び通
信レシーバ13を有し、制御指令データを出力するホス
ト計算機10と、ホスト計算機10とシリアルリンクす
るための通信用インタフェース26,27、通信ドライ
バ22及び通信レシーバ23とホスト計算機10からの
自局に対する前記制御指令データを取込み、その制御指
令データに基づいてインバータ制御を行うインバータ用
計算機310とを有するインバータ300とを具備する
ものであって、インバータ用計算機310のプログラム
のメインルーチンにおける連続の処理時間を286μs
未満とする所定時間内となるように前記メインルーチン
を分割し、その分割された処理ルーチンであるメインA
61,メインB62,メインC63,メインD64等か
らなる分割ルーチン毎に前記所定時間内のデータ送受信
処理を時間管理するインターラプト待機ループ66を設
ける実施例とすることができる。
As described above, the data transmission / reception processing device for the inverter according to the embodiment of the present invention has the communication driver 12 and the communication receiver 13, and outputs the control command data to the host computer 10, the host computer 10 and the serial link. The communication interfaces 26 and 27, the communication driver 22 and the communication receiver 23 for operating the control command data for the own station from the host computer 10, and the inverter computer 310 that performs inverter control based on the control command data. And a continuous processing time in the main routine of the program of the inverter computer 310 is 286 μs.
The main routine is divided so as to be within a predetermined time to be less than, and the divided main routine A is a processing routine.
An embodiment may be provided in which an interrupt standby loop 66 for time-controlling the data transmission / reception processing within the predetermined time is provided for each divided routine including 61, main B62, main C63, main D64.

【0032】したがって、インバータ300ではそのイ
ンバータ用計算機310により通信ドライバ22及び通
信レシーバ23、通信用インタフェース26を介してシ
リアルリンクされたホスト計算機10との高速通信及び
PWM波形生成するインバータ制御のプログラムが実行
される。このとき、インバータ用計算機310では、そ
のプログラムのメインルーチンにおける連続の処理時間
を286μs未満とする所定時間内となるようにプログ
ラムのメインルーチンがメインA61,メインB62,
メインC63,メインD64のように分割され、その分
割ルーチン毎にインターラプト待機ループ66が設けら
れ所定時間内のデータ送受信処理が時間管理される。
Therefore, in the inverter 300, a program for high speed communication with the host computer 10 serially linked by the inverter computer 310 via the communication driver 22, the communication receiver 23, and the communication interface 26 and an inverter control program for generating a PWM waveform is provided. To be executed. At this time, in the inverter computer 310, the main routine of the program is executed by the main A61, the main B62, and the main routine of the program so that the continuous processing time in the main routine of the program is less than 286 μs.
The main C63 and the main D64 are divided, and an interrupt standby loop 66 is provided for each of the divided routines to time-control data transmission / reception processing within a predetermined time.

【0033】故に、シリアルリンクされたホスト計算機
10からの制御指令データをインバータ300のインバ
ータ用計算機310が所定時間内に直接取込むことで交
信時間が短縮され、その受信データ内容が壊されること
なく正確となる。
Therefore, since the inverter computer 310 of the inverter 300 directly takes in the control command data from the serially linked host computer 10 within a predetermined time, the communication time is shortened and the content of the received data is not destroyed. Be accurate.

【0034】また、上記実施例を、所定時間は通信変調
速度の38.4Kボー及び通信データの1パケットの大
きさの11ビット/1バイトに基づいて算出される時間
である286μsを越えないように設定される実施例と
することができる。
In the above embodiment, the predetermined time does not exceed 286 μs, which is the time calculated based on the communication modulation rate of 38.4 K baud and the size of one packet of communication data of 11 bits / 1 byte. Can be set to.

【0035】このため、先に取込んだデータが次のデー
タで壊されることなく通信制御されると共に、そのデー
タに基づくインバータ制御が実行される。
Therefore, the previously fetched data is communication-controlled without being destroyed by the next data, and the inverter control based on the data is executed.

【0036】また、上記実施例を、インバータ用計算機
310が誘導電動機39と接続され、制御指令データに
基づいてインバータ制御された周波数及び電圧をその誘
導電動機39に出力する実施例とすることができる。
In addition, the above-described embodiment can be an embodiment in which the inverter computer 310 is connected to the induction motor 39 and the frequency and voltage controlled by the inverter based on the control command data are output to the induction motor 39. .

【0037】このように、ホスト計算機10とシリアル
リンクされた上述のインバータ300のインバータ用計
算機310とが直接接続されることで、誘導電動機39
のPWM制御が高速で、且つ正確となる。
In this way, the host computer 10 is directly connected to the inverter computer 310 of the above-described inverter 300, which is serially linked, so that the induction motor 39 is connected.
The PWM control of is fast and accurate.

【0038】更に、上記実施例を、通信ドライバ12及
び通信レシーバ13を有し、制御指令データを出力する
ホスト計算機10と、ホスト計算機10とシリアルリン
クするための通信用インタフェース26,27、通信ド
ライバ22及び通信レシーバ23とホスト計算機10か
らの自局に対する前記制御指令データを取込み、その制
御指令データに基づいてインバータ制御を行うインバー
タ用計算機310とを有するインバータ300とを具備
するインバータのデータ送受信処理方法において、前記
制御指令データの1バイトのデータ受信毎にデータの先
頭を示すコントロールコードの有無を判別する図4のデ
ータ送受信処理のステップS204にて達成される判別
工程と、その判別工程でコントロールコードが判別され
ると、それまでの受信データをクリアすると共に改めて
交信開始する図4のデータ送受信処理のステップS20
5にて達成されるデータ交信工程とからなる実施例とす
ることができる。
Further, in the above embodiment, the host computer 10 having the communication driver 12 and the communication receiver 13 for outputting the control command data, the communication interfaces 26 and 27 for serially linking with the host computer 10, and the communication driver. Data transmission / reception processing of an inverter equipped with an inverter 300 including a control command data 22 and a communication receiver 23 for the own station from the host computer 10, and an inverter computer 310 that performs inverter control based on the control command data. In the method, a determination step achieved in step S204 of the data transmission / reception process of FIG. 4 for determining the presence or absence of a control code indicating the beginning of data every time 1-byte data of the control command data is received, and control in the determination step Once the code is determined, the previous Step data transmission and reception processing of FIG. 4 which again communicates begins with clearing signal data S20
And the data communication process achieved in 5.

【0039】したがって、受信データの先頭にコントロ
ールコードがあるものが読込まれると、その都度、それ
までのデータ内容はクリアされ、新たな受信データとし
て交信開始されることとなる。
Therefore, every time the control code at the beginning of the received data is read, the data contents up to that point are cleared and communication is started as new received data.

【0040】故に、コントロールコードが先頭にあるデ
ータが前回のデータの一部として読込まれることがなく
なり、不完全なデータが受信された直後の正常な受信デ
ータから速やかに交信開始されるため高速通信が可能と
なる。
Therefore, the data having the control code at the head is not read as a part of the previous data, and the communication is promptly started from the normal received data immediately after the incomplete data is received, so that the high speed operation is possible. Communication becomes possible.

【0041】[0041]

【発明の効果】以上説明したように、請求項1のインバ
ータのデータ送受信処理装置によれば、ホスト計算機と
データリンクされ、通信制御及びインバータ制御のプロ
グラムがインバータ用計算機にて実行される。このと
き、インバータ用計算機によるプログラムのメインルー
チンにおける連続の処理時間が通信変調速度に見合った
所定時間内となるようにそのメインルーチンが分割さ
れ、その分割ルーチン毎に設けられたインターラプト待
機ループによりデータ送受信処理が所定時間内となるよ
うに時間管理される。したがって、単独のCPUを有す
るインバータ用計算機で制御指令データが所定時間内に
確実に取込まれると共に、次のデータで先のデータが壊
されることのないように通信制御され、その取込まれた
制御指令データに基づいてインバータ制御が実行され
る。これにより、ホスト計算機とインバータとの間に従
来介在していた制御指令データを送受信制御するための
通信装置が不要となりコストの削減が図られると共に、
通信経路の短縮及び単純化によりデータのやりとりに余
分な時間がかからないため通信の応答性を大幅に改善す
ることができる。また、ホスト計算機からの正常な制御
指令データが無視されることなく確実に所定のインバー
タ用計算機に取込まれるため、データ交信時間を高速な
ものとすることができる。
As described above, according to the data transmission / reception processing device for an inverter of the first aspect, data communication is performed with the host computer, and the communication control and inverter control programs are executed by the inverter computer. At this time, the main routine is divided so that the continuous processing time in the main routine of the program by the inverter computer is within a predetermined time corresponding to the communication modulation speed, and the interrupt standby loop provided for each divided routine Time management is performed so that the data transmission / reception process is performed within a predetermined time. Therefore, the control command data is surely taken in by the inverter computer having a single CPU within a predetermined time, and communication control is performed so that the previous data is not destroyed by the next data, and the data is taken in. Inverter control is executed based on the control command data. As a result, a communication device for controlling transmission and reception of control command data, which is conventionally interposed between the host computer and the inverter, is not required and cost can be reduced.
By shortening and simplifying the communication path, no extra time is required for exchanging data, so that the responsiveness of communication can be greatly improved. Further, since the normal control command data from the host computer is surely taken into the predetermined inverter computer without being ignored, the data communication time can be shortened.

【0042】請求項2のインバータのデータ送受信処理
装置によれば、請求項1の効果に加えて、所定時間が通
信変調速度及び通信データの1パケットの大きさに基づ
いて算出された時間を越えないように設定されること
で、ホスト計算機からインバータへの制御指令データ内
容を高速に確実に伝達することができる。
According to the inverter data transmission / reception processing device of claim 2, in addition to the effect of claim 1, the predetermined time exceeds the time calculated based on the communication modulation speed and the size of one packet of communication data. By setting so that it does not exist, the contents of the control command data from the host computer to the inverter can be surely transmitted at high speed.

【0043】請求項3のインバータのデータ送受信処理
装置によれば、請求項1の効果で述べたように、ホスト
計算機からの制御指令データがインバータ用計算機に高
速に伝達されることにより、そのインバータ用計算機に
接続された誘導電動機へのインバータ制御された周波数
及び電圧の出力を高速なものとすることができる。
According to the data transmission / reception processing device for an inverter of claim 3, as described in the effect of claim 1, the control command data from the host computer is transmitted at high speed to the inverter computer, so that the inverter is processed. The frequency and voltage output controlled by the inverter to the induction motor connected to the computer can be made high speed.

【0044】請求項4のインバータのデータ送受信処理
方法によれば、判別工程でホスト計算機とのデータリン
クに際し、制御指令データの1バイトのデータ受信毎に
データの先頭を示すコントロールコードの有無が判別さ
れる。そして、データ交信工程でコントロールコードが
あると、新たな受信データであるとしてそれまでの受信
データをクリアし交信が開始される。これにより、通信
異常等で不完全なデータが受信された後の、受信データ
がコントロールコードであるかを判定することにより速
やかに正常な交信を再開することができる。
According to the data transmission / reception processing method for an inverter of claim 4, in the data link with the host computer in the discrimination step, it is discriminated whether or not there is a control code indicating the head of the data every reception of one byte of the control command data. To be done. Then, if there is a control code in the data communication step, the received data up to that point is cleared as new received data and communication is started. As a result, it is possible to quickly resume normal communication by determining whether the received data is the control code after the incomplete data is received due to communication abnormality or the like.

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

【図1】 図1は本発明の一実施例にかかるインバータ
のデータ送受信処理装置を示す構成図である。
FIG. 1 is a configuration diagram showing a data transmission / reception processing device of an inverter according to an embodiment of the present invention.

【図2】 図2は本発明の一実施例にかかるインバータ
のデータ送受信処理装置のインバータ用計算機における
プログラム構成図である。
FIG. 2 is a program configuration diagram in an inverter computer of a data transmission / reception processing device for an inverter according to an embodiment of the present invention.

【図3】 図3は本発明の一実施例にかかるインバータ
のデータ送受信処理装置のインバータ用計算機で使用さ
れているインターラプト待機処理の手順を示すフローチ
ャートである。
FIG. 3 is a flowchart showing a procedure of an interrupt standby process used in the inverter computer of the inverter data transmission / reception processing apparatus according to the embodiment of the present invention.

【図4】 図4は本発明の一実施例にかかるインバータ
のデータ送受信処理装置のインバータ用計算機で使用さ
れているデータ送受信処理の手順を示すフローチャート
である。
FIG. 4 is a flow chart showing a procedure of data transmission / reception processing used in an inverter computer of an inverter data transmission / reception processing apparatus according to an embodiment of the present invention.

【図5】 図5は本発明の第一実施例にかかるインバー
タのデータ送受信処理装置におけるインバータの終端抵
抗用プラグを示す図である。
FIG. 5 is a diagram showing a terminating resistor plug of the inverter in the inverter data transmission / reception processing apparatus according to the first embodiment of the present invention.

【図6】 図6は従来の通信装置を備えたインバータと
ホスト計算機とのシリアルリンク状態を示すブロック図
である。
FIG. 6 is a block diagram showing a serial link state between an inverter equipped with a conventional communication device and a host computer.

【図7】 図7は従来の通信装置を備えたインバータの
プログラム構成図である。
FIG. 7 is a program configuration diagram of an inverter including a conventional communication device.

【図8】 図8は従来の通信装置を備えたインバータで
使用されているデータ送受信処理の手順を示すフローチ
ャートである。
FIG. 8 is a flowchart showing a procedure of data transmission / reception processing used in an inverter equipped with a conventional communication device.

【図9】 図9は従来の通信装置内部での尻切れの不完
全なデータに対するデータ解析の様子を示す説明図であ
る。
FIG. 9 is an explanatory diagram showing a state of data analysis for incomplete data with trailing edges inside a conventional communication device.

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

10 ホスト計算機、11 (ホスト計算機の)CP
U、12 通信ドライバ、13 通信レシーバ、22
A,22B,22N 通信ドライバ、23A,23B,
23N 通信レシーバ、26A,26B,26N,27
A,27B,27N通信用インタフェース、28aA,
28bA,28aB,28bB,28aN,28bN
ソケット、29 プラグ、39A,39B,39N 誘
導電動機、200A,200B,200N 通信回路、
300A,300B,300N インバータ、310
A,310B,310N インバータ用計算機、40
A,40B,40N データ送受信部、44A,44
B,44N データ処理部、45A,45B,45N
インバータ制御部、46A,46B,46N PWM波
形生成部、60 インターラプト、61 メインA、6
2 メインB、63 メインC、64 メインD、66
インターラプト待機ループ、70 コントロールコー
ド。
10 host computer, 11 CP (of host computer)
U, 12 communication driver, 13 communication receiver, 22
A, 22B, 22N communication driver, 23A, 23B,
23N communication receiver, 26A, 26B, 26N, 27
A, 27B, 27N communication interface, 28aA,
28bA, 28aB, 28bB, 28aN, 28bN
Socket, 29 plug, 39A, 39B, 39N induction motor, 200A, 200B, 200N communication circuit,
300A, 300B, 300N inverter, 310
A, 310B, 310N Inverter computer, 40
A, 40B, 40N data transmitter / receiver, 44A, 44
B, 44N data processing unit, 45A, 45B, 45N
Inverter controller, 46A, 46B, 46N PWM waveform generator, 60 interrupt, 61 main A, 6
2 Main B, 63 Main C, 64 Main D, 66
Interrupt wait loop, 70 control code.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04L 29/02 // H02M 7/48 J 9181−5H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location H04L 29/02 // H02M 7/48 J 9181-5H

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 通信ドライバ及び通信レシーバを有し、
制御指令データを出力するホスト計算機と、前記ホスト
計算機とシリアルリンクするための通信用インタフェー
ス、通信ドライバ及び通信レシーバと前記ホスト計算機
からの自局に対する前記制御指令データを取込み、その
制御指令データに基づいてインバータ制御を行うインバ
ータ用計算機とを有するインバータとを具備するインバ
ータのデータ送受信処理装置において、 前記インバータ用計算機のプログラムのメインルーチン
における連続の処理時間が所定時間内となるように前記
メインルーチンを分割し、その分割ルーチン毎に前記所
定時間内のデータ送受信処理を時間管理するインターラ
プト待機ループを設けることを特徴とするインバータの
データ送受信処理装置。
1. A communication driver and a communication receiver are provided,
A host computer that outputs control command data, a communication interface for serially linking with the host computer, a communication driver and a communication receiver, and the control command data for the own station from the host computer are fetched and based on the control command data. In an inverter data transmission / reception processing device including an inverter having an inverter computer that performs inverter control, the main routine is configured so that a continuous processing time in a main routine of the program for the inverter is within a predetermined time. A data transmission / reception processing device for an inverter, characterized by comprising an interrupt standby loop for dividing, and for each division routine, managing the data transmission / reception processing within the predetermined time.
【請求項2】 前記所定時間は、通信変調速度及び通信
データの1パケットの大きさに基づいて算出される時間
を越えないように設定することを特徴とする請求項1記
載のインバータのデータ送受信処理装置。
2. The data transmission / reception of the inverter according to claim 1, wherein the predetermined time is set so as not to exceed a time calculated based on a communication modulation rate and a size of one packet of communication data. Processing equipment.
【請求項3】 前記インバータ用計算機は、誘導電動機
と接続され、前記制御指令データに基づいてインバータ
制御された周波数及び電圧を前記誘導電動機に出力する
ことを特徴とする請求項1記載のインバータのデータ送
受信処理装置。
3. The inverter computer according to claim 1, wherein the inverter computer is connected to an induction motor and outputs a frequency and a voltage controlled by the inverter based on the control command data to the induction motor. Data transmission / reception processing device.
【請求項4】 通信ドライバ及び通信レシーバを有し、
制御指令データを出力するホスト計算機と、前記ホスト
計算機とシリアルリンクするための通信用インタフェー
ス、通信ドライバ及び通信レシーバと前記ホスト計算機
からの自局に対する前記制御指令データを取込み、その
制御指令データに基づいてインバータ制御を行うインバ
ータ用計算機とを有するインバータとを具備するインバ
ータのデータ送受信処理方法において、 前記制御指令データの1バイトのデータ受信毎にデータ
の先頭を示すコントロールコードの有無を判別する判別
工程と、 前記判別工程で前記コントロールコードが判別される
と、それまでの受信データをクリアすると共に改めて交
信開始するデータ交信工程とからなることを特徴とする
インバータのデータ送受信処理方法。
4. A communication driver and a communication receiver are provided,
A host computer that outputs control command data, a communication interface for serially linking with the host computer, a communication driver and a communication receiver, and the control command data for the own station from the host computer are fetched and based on the control command data. A data transmission / reception processing method of an inverter having an inverter computer for controlling the inverter by means of an inverter, and a step of determining the presence or absence of a control code indicating the beginning of the data every reception of 1-byte data of the control command data. And a data communication step of clearing received data up to that point and restarting communication when the control code is judged in the judging step.
JP6164016A 1994-07-15 1994-07-15 Device and method for processing data transmission/ reception of inverter Pending JPH0833055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6164016A JPH0833055A (en) 1994-07-15 1994-07-15 Device and method for processing data transmission/ reception of inverter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6164016A JPH0833055A (en) 1994-07-15 1994-07-15 Device and method for processing data transmission/ reception of inverter

Publications (1)

Publication Number Publication Date
JPH0833055A true JPH0833055A (en) 1996-02-02

Family

ID=15785190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6164016A Pending JPH0833055A (en) 1994-07-15 1994-07-15 Device and method for processing data transmission/ reception of inverter

Country Status (1)

Country Link
JP (1) JPH0833055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014018665A1 (en) * 2014-12-13 2016-06-16 Baumüller Nürnberg GmbH inverter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102014018665A1 (en) * 2014-12-13 2016-06-16 Baumüller Nürnberg GmbH inverter
US9762172B2 (en) 2014-12-13 2017-09-12 Baumueller Nuernberg Gmbh Converter

Similar Documents

Publication Publication Date Title
US20060098682A1 (en) High level message priority assignment by a plurality of message-sending nodes sharing a signal bus
US5640602A (en) Transferring digital data in units of 2 bytes to increase utilization of a 2-byte-wide bus
CN112003954B (en) Data communication method, data communication system, and computer-readable storage medium
US6122280A (en) Packet output device and packet output method
EP1145132A2 (en) Improved inter-device serial bus protocol
JPH0833055A (en) Device and method for processing data transmission/ reception of inverter
JPH08316973A (en) Communication processing means
US20040221148A1 (en) Hardware initialization with or without processor intervention
TWI829474B (en) Slave device and addressing method for communication system
JPH0522365A (en) Communication processor
CN115834970B (en) Light sensing module control method and device, display equipment and storage medium
JP2852095B2 (en) Serial bus interface power control method
CN118796609A (en) I3C controller verification method, device, equipment and storage medium
JPH1145227A (en) Method and device for data transmission
CN114296799A (en) Code generation method, method for accessing memory chip, bus interface and storage medium
JP3146864B2 (en) Unidirectional loop transmission circuit
JP2699782B2 (en) Transmission / reception system
JPH1049109A (en) Liquid crystal display device
JP2001077800A (en) Serial transmission transmission/reception circuit
CN118264556A (en) Communication system and address configuration method thereof
KR20050107159A (en) Bus controller for serial interface of system
JP2773637B2 (en) Line test pulse generator
SU938277A2 (en) Multiplexor channel
JP3442685B2 (en) Remote monitoring and control system
CN111654422A (en) Data communication method, device, equipment and storage medium