Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5654418B2 - Inverter device - Google Patents
[go: Go Back, main page]

JP5654418B2 - Inverter device - Google Patents

Inverter device Download PDF

Info

Publication number
JP5654418B2
JP5654418B2 JP2011130113A JP2011130113A JP5654418B2 JP 5654418 B2 JP5654418 B2 JP 5654418B2 JP 2011130113 A JP2011130113 A JP 2011130113A JP 2011130113 A JP2011130113 A JP 2011130113A JP 5654418 B2 JP5654418 B2 JP 5654418B2
Authority
JP
Japan
Prior art keywords
data
unit
time
control
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2011130113A
Other languages
Japanese (ja)
Other versions
JP2012257153A (en
Inventor
惇 新家
惇 新家
博道 西村
博道 西村
Original Assignee
東芝シュネデール・インバータ株式会社
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 東芝シュネデール・インバータ株式会社 filed Critical 東芝シュネデール・インバータ株式会社
Priority to JP2011130113A priority Critical patent/JP5654418B2/en
Publication of JP2012257153A publication Critical patent/JP2012257153A/en
Application granted granted Critical
Publication of JP5654418B2 publication Critical patent/JP5654418B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Inverter Devices (AREA)
  • Bidirectional Digital Transmission (AREA)

Description

本発明の実施形態は、インバータ装置に関する。   Embodiments described herein relate generally to an inverter device.

インバータ装置と、インバータ装置を制御するPLC(Programmable Logic Controller)などの上位側コントローラとの間では、通信によりデータを送受信してパラメータの設定やインバータの駆動制御などが行われる。その通信としては、例えばRS485通信などの一対の差動信号を用いた半二重通信方式が広く用いられている。半二重通信方式は、データの送受信を同時に行うことはできない。また、通信に差動信号が用いられるため、差動信号とデータ(ディジタル信号)との相互変換を行うためのレシーバ/ドライバが必要となる。そのため、送受信が切り替わる際にはレシーバ/ドライバの切り替えが行われる。このような通信の際、インバータ装置および上位側コントローラの双方が送信状態であると、コリジョンの発生により通信データ(送信データ)が破損する。   Between the inverter device and a higher-order controller such as a PLC (Programmable Logic Controller) that controls the inverter device, data is transmitted / received by communication to perform parameter setting, inverter drive control, and the like. As the communication, for example, a half-duplex communication method using a pair of differential signals such as RS485 communication is widely used. The half-duplex communication method cannot transmit and receive data simultaneously. In addition, since a differential signal is used for communication, a receiver / driver for performing mutual conversion between the differential signal and data (digital signal) is required. Therefore, when the transmission / reception is switched, the receiver / driver is switched. During such communication, if both the inverter device and the host controller are in a transmission state, communication data (transmission data) is damaged due to the occurrence of a collision.

例えば、上位側コントローラからインバータ装置に対し、所定のデータを送信した後、インバータ装置から上位側コントローラに対し、返信データを送信する状況を想定する。この場合、インバータ装置がデータを受信してから返信データを送信するまでの時間よりも、上位側コントローラのレシーバ/ドライバの切り替えに要する時間のほうが長いと、双方が送信状態となる期間が生じてコリジョンが発生することになる。従って、インバータ装置と、レシーバ/ドライバの切り替え時間が比較的長い上位側コントローラとの間で通信が行われる際、コリジョンが多発して伝送効率が著しく低下することが懸念される。   For example, a situation is assumed in which after the predetermined data is transmitted from the host controller to the inverter device, reply data is transmitted from the inverter device to the host controller. In this case, if the time required for switching the receiver / driver of the host controller is longer than the time from when the inverter device receives the data to when the reply data is transmitted, there is a period during which both devices are in the transmission state. Collisions will occur. Therefore, when communication is performed between the inverter device and the higher-level controller with a relatively long receiver / driver switching time, there is a concern that collisions frequently occur and transmission efficiency is significantly reduced.

そのため、インバータ装置には、データを受信した後、上位側コントローラに対する返信データの送信を所定の待ち時間だけ待機する機能が設けられていることが多い。その機能により、通信データのコリジョンの発生を未然に防ぐことを可能としている。上記待ち時間は、例えばパラメータなどの設定を通じてユーザにより指定されるようになっている。その理由は、通信対象の上位側コントローラの仕様などにより、レシーバ/ドライバの切り替え時間は様々であり、待ち時間を一義的に決定することが難しいからである。なお、このような半二重通信を行う際における送信待ち時間を設定する機能については、例えば特許文献1に記載されている。   Therefore, in many cases, the inverter device is provided with a function of waiting for a predetermined waiting time for transmission of reply data to the host controller after receiving the data. With this function, it is possible to prevent the occurrence of collision of communication data. The waiting time is specified by the user through, for example, parameter settings. This is because the receiver / driver switching time varies depending on the specifications of the higher-order controller to be communicated, and it is difficult to uniquely determine the waiting time. Note that a function for setting a transmission waiting time when performing such half-duplex communication is described in Patent Document 1, for example.

上記構成においては、インバータ装置および上位側コントローラの仕様を十分に理解したユーザでなければ、適切な待ち時間を設定することが難しい。しかし、毎回、各装置に関する知識を豊富に持つユーザ(熟練者)により待ち時間の設定が行われるとは限らず、知識を十分に持たないユーザ(初心者)により待ち時間が設定されることも有り得る。このような場合、コリジョンの発生を防止できなかったり、あるいは、むやみに長い待ち時間が設定されてしまい逆に通信効率が低下したりするといった問題の発生が考えられる。   In the above configuration, it is difficult to set an appropriate waiting time unless the user fully understands the specifications of the inverter device and the host controller. However, a waiting time is not always set by a user (expert) who has a lot of knowledge about each device, and a waiting time may be set by a user (beginner) who does not have enough knowledge. . In such a case, there may be a problem that the occurrence of collision cannot be prevented, or a long waiting time is unnecessarily set, and conversely the communication efficiency is lowered.

特開2010−178199号公報JP 2010-178199 A

そこで、外部機器との間で行われる半二重通信における通信データのコリジョンの発生を容易に且つ効果的に防止することができるインバータ装置を提供する。   Therefore, an inverter device is provided that can easily and effectively prevent the occurrence of communication data collision in half-duplex communication performed with an external device.

本実施形態のインバータ装置は、インバータ主回路、制御手段、送信信号変換手段、受信信号変換手段および観測信号変換手段を備えている。制御手段は、一対の通信線を通じた半二重通信により外部機器との間でデータの送受信を行うとともにインバータ主回路の制御を行う。送信信号変換手段は、制御手段から与えられる送信用データを一対の差動信号に変換して一対の通信線に出力する。受信信号変換手段は、一対の通信線から取得される一対の差動信号を受信用データに変換して制御手段に出力する。観測信号変換手段は、一対の通信線から取得される一対の差動信号を観測用データに変換する。また、制御手段は、待機手段、検出手段および待ち時間設定手段を備えている。待機手段は、送信信号変換手段が送信可能状態とされて送信用データの送信が指令される第1時点から所定の待ち時間だけ、送信用データの出力を待機させ待ち時間が経過すると送信用データを出力する。検出手段は、送信用データと、その送信用データに対応した観測用データとを比較し、各データが一致しない場合、半二重通信においてコリジョンが発生していると判断する。待ち時間設定手段は、待機手段により待ち時間が経過して送信用データが出力された後、検出手段によりコリジョンの発生が検出されると、そのコリジョンの発生が検出された第2時点より前であり且つ送信信号変換手段が出力可能な状態になった時点以降の第3時点から、そのコリジョンの発生が検出されなくなる第4時点までの時間を待ち時間として設定する時間設定制御を実行する。
The inverter device of this embodiment includes an inverter main circuit, control means, transmission signal conversion means, reception signal conversion means, and observation signal conversion means. The control means transmits / receives data to / from an external device by half-duplex communication through a pair of communication lines and controls the inverter main circuit. The transmission signal conversion means converts the transmission data given from the control means into a pair of differential signals and outputs them to the pair of communication lines. The reception signal converting means converts a pair of differential signals acquired from the pair of communication lines into reception data and outputs the data to the control means. The observation signal conversion means converts a pair of differential signals acquired from the pair of communication lines into observation data. The control unit includes a standby unit, a detection unit, and a waiting time setting unit. Waiting means, a predetermined waiting time from the first time when the transmission signal conversion means is commanded transmission of the transmission data is transmittable state, the transmission data and the waiting time to wait for the output of the transmission data has elapsed Is output . The detection means compares the transmission data with the observation data corresponding to the transmission data, and determines that collision has occurred in half-duplex communication if the data do not match. The waiting time setting means, after the waiting time elapses by the waiting means and the transmission data is output , when the occurrence of the collision is detected by the detecting means, before the second time point when the occurrence of the collision is detected. A time setting control is performed in which the time from the third time point after the time point when the transmission signal converting unit is ready to output to the fourth time point when the occurrence of the collision is not detected is set as the waiting time.

第1の実施形態を示すもので、インバータ装置およびPLCの構成を概略的に示すブロック図The block diagram which shows 1st Embodiment and shows the structure of an inverter apparatus and PLC roughly インバータ装置の通信に関する動作の流れを示すフローチャートFlow chart showing the flow of operations related to communication of the inverter device 時間設定制御の内容を示すフローチャートFlow chart showing contents of time setting control 時間設定制御によって設定される待ち時間を示す図Diagram showing waiting time set by time setting control 一対の通信線間の電圧波形を示す図The figure which shows the voltage waveform between a pair of communication lines 第2の実施形態を示す図1相当図FIG. 1 equivalent diagram showing the second embodiment 図2相当図2 equivalent diagram 第3の実施形態を示す図1相当図FIG. 1 equivalent view showing the third embodiment

(第1の実施形態)
以下、本発明の第1の実施形態について図1〜図5を参照しながら説明する。
図1は、インバータ装置およびPLCの構成を示すブロック図であり、主に通信に関する部分を示している。インバータ装置1は、ドライバ2(送信信号変換手段に相当)、レシーバ3(受信信号変換手段に相当)、レシーバ4(観測信号変換手段に相当)、制御回路5(制御手段に相当)、インバータ主回路6などを備えている。PLC7(外部機器に相当)は、ドライバ8、レシーバ9、制御回路10などを備えている。インバータ装置1の通信端子11、12とPLC7の通信端子13、14とは一対の通信線15、16(差動信号伝送路)により互いに接続されている。インバータ装置1およびPLC7の間では、通信線15、16を通じた半二重通信方式の通信(例えばRS485通信)が行われる。上記通信によりデータの送受信が行われることで、各種パラメータの設定やインバータ主回路6の駆動制御など、PLC7によるインバータ装置1の制御が実施される。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram showing the configuration of the inverter device and the PLC, and mainly shows the part related to communication. The inverter device 1 includes a driver 2 (corresponding to transmission signal conversion means), a receiver 3 (corresponding to reception signal conversion means), a receiver 4 (corresponding to observation signal conversion means), a control circuit 5 (corresponding to control means), an inverter main A circuit 6 is provided. The PLC 7 (corresponding to an external device) includes a driver 8, a receiver 9, a control circuit 10, and the like. The communication terminals 11 and 12 of the inverter device 1 and the communication terminals 13 and 14 of the PLC 7 are connected to each other by a pair of communication lines 15 and 16 (differential signal transmission path). Between the inverter device 1 and the PLC 7, half-duplex communication (for example, RS485 communication) is performed through the communication lines 15 and 16. By transmitting and receiving data through the communication, control of the inverter device 1 by the PLC 7 such as setting of various parameters and drive control of the inverter main circuit 6 is performed.

インバータ装置1において、ドライバ2は、制御回路5から与えられる送信用ディジタル信号Sd1を一対の差動信号に変換して出力する。それら差動信号は、通信端子11、12を介して通信線15、16に与えられる。具体的には、ドライバ2は、制御回路5から与えられる送信用ディジタル信号Sd1を互いに逆位相となる一対の差動信号に変換し、それら差動信号が伝送されるように通信線15、16をドライブする。一対の差動信号は、例えば一方が+5.0Vであるときには他方が0Vになるものである。   In the inverter device 1, the driver 2 converts the transmission digital signal Sd <b> 1 provided from the control circuit 5 into a pair of differential signals and outputs the pair of differential signals. These differential signals are given to the communication lines 15 and 16 via the communication terminals 11 and 12. Specifically, the driver 2 converts the transmission digital signal Sd1 provided from the control circuit 5 into a pair of differential signals having opposite phases to each other, and the communication lines 15, 16 so that these differential signals are transmitted. Drive. For example, when one of the pair of differential signals is + 5.0V, the other is 0V.

レシーバ3は、通信端子11、12を介して通信線15、16から取得される一対の差動信号を受信用ディジタル信号Sd3に変換して出力する。受信用ディジタル信号Sd3は、制御回路5に与えられる。レシーバ4は、通信端子11、12を介して通信線15、16から取得される一対の差動信号を観測用ディジタル信号Sd2に変換して出力する。観測用ディジタル信号Sd2は、制御回路5に与えられる。なお、本実施形態では、ドライバ2およびレシーバ3、4は、それぞれ個別に構成されているが、ドライバ2およびレシーバ3として、ドライバ/レシーバが一体構成された一般的なトランシーバICなどを用いてもよい。また、レシーバ4として、トランシーバICのレシーバを用いてもよい。各ディジタル信号Sd1〜Sd3は、いずれもシリアルデータを示すものである。具体的には、送信用ディジタル信号Sd1は後述する送信用データD1を表す信号であり、観測用ディジタル信号Sd2は後述する観測用データD2を表す信号であり、受信用ディジタル信号Sd3は後述する受信用データD3を表す信号である。   The receiver 3 converts a pair of differential signals acquired from the communication lines 15 and 16 via the communication terminals 11 and 12 into a reception digital signal Sd3 and outputs the received digital signal Sd3. The reception digital signal Sd3 is given to the control circuit 5. The receiver 4 converts a pair of differential signals acquired from the communication lines 15 and 16 via the communication terminals 11 and 12 into an observation digital signal Sd2 and outputs the observation digital signal Sd2. The observation digital signal Sd2 is given to the control circuit 5. In this embodiment, the driver 2 and the receivers 3 and 4 are individually configured. However, as the driver 2 and the receiver 3, a general transceiver IC in which a driver / receiver is integrally configured may be used. Good. Further, a receiver of a transceiver IC may be used as the receiver 4. Each of the digital signals Sd1 to Sd3 indicates serial data. Specifically, the transmission digital signal Sd1 is a signal representing transmission data D1 described later, the observation digital signal Sd2 is a signal representing observation data D2 described later, and the reception digital signal Sd3 is received later. This is a signal representing the business data D3.

ドライバ2は、差動信号を出力可能な状態、つまり通信線15、16をドライブする送信可能状態と、差動信号を出力できない状態、つまり通信線15、16をドライブしない送信不可状態とを切り替え可能に構成されている。インバータ装置1は、ドライバ2が送信可能状態に設定されることにより、ドライバ2を通じてPLC7にデータを送信する送信状態となる。また、インバータ装置1は、ドライバ2が送信不可状態に設定されることにより、レシーバ3を通じてPLC7から送信されるデータを受信する受信状態となる。このようなドライバ2およびレシーバ3の状態切り替え、つまりインバータ装置1におけるレシーバ/ドライバの切り替えは、制御回路5により制御される。   The driver 2 switches between a state in which a differential signal can be output, that is, a transmittable state in which the communication lines 15 and 16 are driven, and a state in which the differential signal cannot be output, that is, a state in which the communication lines 15 and 16 cannot be driven It is configured to be possible. The inverter device 1 is in a transmission state in which data is transmitted to the PLC 7 through the driver 2 when the driver 2 is set in a transmission enabled state. Moreover, the inverter apparatus 1 will be in the receiving state which receives the data transmitted from PLC7 through the receiver 3, when the driver 2 is set to a transmission impossible state. The state switching of the driver 2 and the receiver 3, that is, the switching of the receiver / driver in the inverter device 1 is controlled by the control circuit 5.

制御回路5は、例えばCPUやメモリなどの基本構成の他、A/D変換器、I/Oポート、通信I/Fなどの周辺回路を備えたマイクロコンピュータを主体として構成されている。制御回路5は、フラッシュメモリなどの不揮発性メモリに記憶されたプログラムを実行することにより、制御部17、データ送信部18、データ受信部19、観測用データ受信部20、通信データ処理部21、待機部22(待機手段に相当)、記憶部23、パラメータ設定部24、検出部25(検出手段に相当)、待ち時間設定部26(待ち時間設定手段に相当)、リトライ部27(リトライ手段に相当)などの機能を実現するようになっている。制御部17は、PLC7との間において通信によりデータの送受信を行うとともに、インバータ主回路6の駆動などを制御する。   The control circuit 5 is mainly configured by a microcomputer including peripheral circuits such as an A / D converter, an I / O port, and a communication I / F in addition to a basic configuration such as a CPU and a memory. The control circuit 5 executes a program stored in a non-volatile memory such as a flash memory, whereby a control unit 17, a data transmission unit 18, a data reception unit 19, an observation data reception unit 20, a communication data processing unit 21, Standby unit 22 (corresponding to standby unit), storage unit 23, parameter setting unit 24, detection unit 25 (corresponding to detection unit), waiting time setting unit 26 (corresponding to waiting time setting unit), retry unit 27 (retry unit) Etc.) is realized. The control unit 17 transmits and receives data to and from the PLC 7 by communication, and controls driving of the inverter main circuit 6 and the like.

データ送信部18、データ受信部19および観測用データ受信部20は、マイクロコンピュータのI/Oポートがそれぞれ次のように割り当てられることで実現されている。すなわち、データ送信部18は、通信データ処理部21から待機部22を介して与えられる送信用データD1を送信用ディジタル信号Sd1に変換して出力するための出力ポートとして割り当てられている。データ送信部18から出力される送信用ディジタル信号Sd1は、ドライバ2に与えられる。データ受信部19は、レシーバ3から与えられる受信用ディジタル信号Sd3を受信用データD3に変換して入力するための入力ポートとして割り当てられている。データ受信部19から出力される受信用データD3は、通信データ処理部21に与えられる。観測用データ受信部20は、レシーバ4から与えられる観測用ディジタル信号Sd2を観測用データD2に変換して入力するための入力ポートとして割り当てられている。観測用データ受信部20から出力される観測用データD2は、記憶部23に順次記憶される。   The data transmission unit 18, the data reception unit 19, and the observation data reception unit 20 are realized by assigning the I / O ports of the microcomputer as follows. That is, the data transmission unit 18 is assigned as an output port for converting the transmission data D1 given from the communication data processing unit 21 via the standby unit 22 into a transmission digital signal Sd1 and outputting it. The transmission digital signal Sd1 output from the data transmission unit 18 is given to the driver 2. The data receiving unit 19 is assigned as an input port for converting the receiving digital signal Sd3 given from the receiver 3 into receiving data D3 and inputting it. The reception data D3 output from the data receiving unit 19 is given to the communication data processing unit 21. The observation data receiving unit 20 is assigned as an input port for converting the observation digital signal Sd2 given from the receiver 4 into the observation data D2 and inputting it. The observation data D2 output from the observation data receiving unit 20 is sequentially stored in the storage unit 23.

通信データ処理部21は、制御部17からデータの送信を指令するコマンドが与えられると、送信用データD1を待機部22に出力する。また、このとき、その送信用データD1は、記憶部23に順次記憶される。待機部22は、送信用データD1が与えられると、所定の待ち時間Twだけ待機した後、その送信用データD1をデータ送信部18に出力する。通信データ処理部21は、データ受信部19から受信用データD3が与えられると、その受信用データD3に応じた内容のコマンドを制御部17に出力する。   The communication data processing unit 21 outputs the transmission data D1 to the standby unit 22 when a command for instructing data transmission is given from the control unit 17. At this time, the transmission data D1 is sequentially stored in the storage unit 23. When the transmission data D1 is given, the standby unit 22 waits for a predetermined waiting time Tw, and then outputs the transmission data D1 to the data transmission unit 18. When the reception data D3 is given from the data reception unit 19, the communication data processing unit 21 outputs a command having contents corresponding to the reception data D3 to the control unit 17.

記憶部23は、不揮発性のメモリにより構成されており、その記憶内容はインバータ装置1に対する電源供給が遮断されても消去されないようになっている。記憶部23には、インバータ主回路6の駆動制御に関する各種パラメータ、通信に関する各種パラメータを含む種々のパラメータの値が記憶される。また、記憶部23には、前述したとおり、送信用データD1および観測用データD2も記憶される。   The storage unit 23 is configured by a non-volatile memory, and the stored contents are not erased even when the power supply to the inverter device 1 is interrupted. The storage unit 23 stores various parameter values including various parameters related to drive control of the inverter main circuit 6 and various parameters related to communication. Further, as described above, the storage unit 23 also stores the transmission data D1 and the observation data D2.

記憶部23に記憶される各種パラメータの値は適宜変更可能になっている。すなわち、ユーザによる操作に応じてパラメータの値が変更され、その変更後の値が記憶部23に記憶されるようになっている。このようなパラメータ値の変更は、パラメータ設定部24により実施される。パラメータ設定部24は、ユーザによりパラメータを設定するための操作が行われると、その操作に応じてパラメータの値を変更し、その変更後の値を記憶部23に記憶する。   The values of various parameters stored in the storage unit 23 can be changed as appropriate. That is, the parameter value is changed according to the operation by the user, and the changed value is stored in the storage unit 23. Such parameter value change is performed by the parameter setting unit 24. When an operation for setting a parameter is performed by the user, the parameter setting unit 24 changes the parameter value according to the operation, and stores the changed value in the storage unit 23.

送信用データD1(送信用ディジタル信号Sd1)と、その送信用データD1に対応する観測用データD2(観測用ディジタル信号Sd2)とは、通信に何らかの不具合が生じていない限り一致するはずである。検出部25は、このようなことを利用して通信におけるコリジョンの発生を検出するようにしている。すなわち、検出部25は、送信用データD1と、その送信用データD1に対応する観測用データD2とを比較し、各データが一致しない場合、通信においてコリジョンが発生していると判断する。具体的には、検出部25は、送信用データD1と、その送信用データD1が送信されたタイミングから所定の遅延時間だけ経過した後のタイミングで受信された観測用データD2とを記憶部23から順次読み出し、それら各データD1、D2を比較する。上記した遅延時間は、待ち時間Twの設定値、ドライバ2、レシーバ4などにおける信号処理に要する時間などに基づいて求められる。また、本実施形態では、送信用データD1が1バイト単位で送信されるようになっているとともに、送信用データD1および観測用データD2の比較が1バイト毎に行われるようになっている。   The transmission data D1 (transmission digital signal Sd1) and the observation data D2 (observation digital signal Sd2) corresponding to the transmission data D1 should match as long as there is no problem in communication. The detection unit 25 detects occurrence of a collision in communication using such a fact. That is, the detection unit 25 compares the transmission data D1 with the observation data D2 corresponding to the transmission data D1, and determines that collision has occurred in communication when the data does not match. Specifically, the detection unit 25 stores the transmission data D1 and the observation data D2 received at a timing after a predetermined delay time has elapsed from the transmission timing of the transmission data D1. Are sequentially read out, and the data D1 and D2 are compared. The delay time described above is obtained based on the set value of the waiting time Tw, the time required for signal processing in the driver 2, the receiver 4, and the like. In this embodiment, the transmission data D1 is transmitted in units of 1 byte, and the transmission data D1 and the observation data D2 are compared for each byte.

検出部25は、上記比較の結果を表す検出信号Saを出力する。本実施形態では、検出信号Saは、各データD1、D2が一致する場合(コリジョン発生していないと判断された場合)にはLレベルになり、各データD1、D2が一致しない場合(コリジョンが発生していると判断された場合)にはHレベルになる。検出部25から出力される検出信号Saは、待ち時間設定部26およびリトライ部27に与えられる。   The detection unit 25 outputs a detection signal Sa representing the result of the comparison. In the present embodiment, the detection signal Sa becomes L level when the data D1 and D2 match (when it is determined that no collision has occurred), and when the data D1 and D2 do not match (collision occurs). When it is determined that the error has occurred, it becomes H level. The detection signal Sa output from the detection unit 25 is given to the waiting time setting unit 26 and the retry unit 27.

待ち時間設定部26は、検出部25から与えられる検出信号Saのレベルなどに基づいて、待ち時間Twを設定する時間設定制御(詳細は後述する)を実行可能に構成されている。待ち時間設定部26は、制御部17から与えられる指令に応じて上記時間設定制御を実行するようになっている。すなわち、制御部17は、待ち時間設定部26による時間設定制御の実行を許可または禁止する時間設定制御可否手段として機能する。待ち時間設定部26により設定された待ち時間Twは、記憶部23に記憶される。また、待ち時間設定部26は、時間設定制御において用いるためのカウンタ28を備えている。   The waiting time setting unit 26 is configured to be able to execute time setting control (details will be described later) for setting the waiting time Tw based on the level of the detection signal Sa given from the detection unit 25 and the like. The waiting time setting unit 26 performs the time setting control according to a command given from the control unit 17. That is, the control unit 17 functions as a time setting control enable / disable means for permitting or prohibiting execution of the time setting control by the waiting time setting unit 26. The waiting time Tw set by the waiting time setting unit 26 is stored in the storage unit 23. The waiting time setting unit 26 includes a counter 28 for use in time setting control.

リトライ部27は、検出部25から与えられる検出信号Saのレベルなどに基づいて、コリジョン発生期間に送信された送信用データD1を再度送信するリトライ制御(詳細は後述する)を実行可能に構成されている。リトライ部27は、制御部17から与えられる指令に応じて上記リトライ制御を実行するようになっている。すなわち、制御部17は、リトライ部27によるリトライ制御の実行を許可または禁止するリトライ制御可否手段として機能する。なお、制御部17は、記憶部23に記憶されるパラメータの値に応じてリトライ制御の実行を許可または禁止する。なお、そのパラメータ値は、インバータ装置1の仕様として固定値にしてもよいし、ユーザによる値の変更が可能なパラメータとしてもよい。   The retry unit 27 is configured to be able to execute retry control (details will be described later) for retransmitting the transmission data D1 transmitted in the collision occurrence period based on the level of the detection signal Sa given from the detection unit 25 and the like. ing. The retry unit 27 performs the retry control in accordance with a command given from the control unit 17. That is, the control unit 17 functions as a retry control permission / prohibition unit that permits or prohibits the execution of the retry control by the retry unit 27. The control unit 17 permits or prohibits execution of the retry control in accordance with the parameter value stored in the storage unit 23. The parameter value may be a fixed value as the specification of the inverter device 1 or may be a parameter whose value can be changed by the user.

インバータ主回路6は、交流電源29に接続される整流回路30、直流電源線31、32間に接続される平滑用のコンデンサ33、負荷である電動機34が接続されるインバータ部35などを備えている。整流回路30は、直流電源線31、32間にダイオードをブリッジ接続して構成されている。インバータ部35は、直流電源線31、32間にスイッチング素子をブリッジ接続して構成されている。インバータ部35のスイッチング素子の制御端子には、制御部17から図示しない駆動回路を介して制御信号が与えられている。   The inverter main circuit 6 includes a rectifier circuit 30 connected to an AC power supply 29, a smoothing capacitor 33 connected between the DC power supply lines 31 and 32, an inverter unit 35 connected to an electric motor 34 as a load, and the like. Yes. The rectifier circuit 30 is configured by bridge-connecting a diode between the DC power supply lines 31 and 32. The inverter unit 35 is configured by bridging a switching element between the DC power supply lines 31 and 32. A control signal is given from the control unit 17 to the control terminal of the switching element of the inverter unit 35 via a drive circuit (not shown).

PLC7において、ドライバ8は、制御回路10から与えられる送信用ディジタル信号を一対の差動信号に変換して出力する。それら差動信号は、通信端子13、14を介して通信線15、16に与えられる。ドライバ8の具体的な動作としてはインバータ装置1のドライバ2と同様である。レシーバ9は、通信端子13、14を介して通信線15、16から取得される一対の差動信号を受信用ディジタル信号に変換して出力する。その受信用ディジタル信号は、制御回路10に与えられる。なお、本実施形態では、ドライバ8およびレシーバ9は、それぞれ個別に構成されているが、ドライバ8およびレシーバ9として、ドライバ/レシーバが一体構成された一般的なトランシーバICなどを用いてもよい。また、上記した送信用ディジタル信号および受信用ディジタル信号は、いずれもシリアルデータを示すものである。   In the PLC 7, the driver 8 converts the transmission digital signal given from the control circuit 10 into a pair of differential signals and outputs them. These differential signals are given to the communication lines 15 and 16 via the communication terminals 13 and 14. The specific operation of the driver 8 is the same as that of the driver 2 of the inverter device 1. The receiver 9 converts a pair of differential signals acquired from the communication lines 15 and 16 via the communication terminals 13 and 14 into a digital signal for reception and outputs the digital signal. The received digital signal is given to the control circuit 10. In the present embodiment, the driver 8 and the receiver 9 are individually configured. However, as the driver 8 and the receiver 9, a general transceiver IC in which a driver / receiver is integrally configured may be used. Further, both the transmission digital signal and the reception digital signal described above indicate serial data.

ドライバ8は、インバータ装置1のドライバ2と同様に、差動信号を出力可能な送信可能状態と、差動信号を出力できない送信不可状態とを切り替え可能に構成されている。PLC7は、ドライバ8が送信可能状態に設定されることにより、ドライバ8を通じてインバータ装置1にデータを送信する送信状態となる。また、PLC7は、ドライバ8が送信不可状態に設定されることにより、レシーバ9を通じてインバータ装置1から送信されるデータを受信する受信状態となる。このようなドライバ8およびレシーバ9の状態切り替え、つまりPLC7におけるレシーバ/ドライバの切り替えは、制御回路10により制御される。   Similar to the driver 2 of the inverter device 1, the driver 8 is configured to be able to switch between a transmittable state in which a differential signal can be output and a transmit disabled state in which a differential signal cannot be output. The PLC 7 is in a transmission state in which data is transmitted to the inverter device 1 through the driver 8 when the driver 8 is set in a transmittable state. Further, the PLC 7 is in a reception state in which data transmitted from the inverter device 1 is received through the receiver 9 when the driver 8 is set in a transmission disabled state. The state switching of the driver 8 and the receiver 9, that is, the switching of the receiver / driver in the PLC 7 is controlled by the control circuit 10.

制御回路10は、インバータ装置1の制御回路5と同様に、マイクロコンピュータを主体として構成されている。制御回路10は、不揮発性メモリに記憶されたプログラムを実行することにより、制御部36、データ送信部37、データ受信部38、通信データ処理部39などの機能を実現するようになっている。制御部36は、インバータ装置1との間において通信によりデータの送受信を行うとともに、PLC7の動作全般を制御する。   Similar to the control circuit 5 of the inverter device 1, the control circuit 10 is configured mainly with a microcomputer. The control circuit 10 implements functions such as a control unit 36, a data transmission unit 37, a data reception unit 38, and a communication data processing unit 39 by executing a program stored in a nonvolatile memory. The control unit 36 transmits / receives data to / from the inverter device 1 through communication, and controls the overall operation of the PLC 7.

データ送信部37およびデータ受信部38は、マイクロコンピュータのI/Oポートがそれぞれ次のように割り当てられることで実現されている。すなわち、データ送信部37は、通信データ処理部39から与えられる送信用データを送信用ディジタル信号に変換して出力するための出力ポートとして割り当てられている。データ送信部37から出力される送信用ディジタル信号は、ドライバ8に与えられる。データ受信部38は、レシーバ9から与えられる受信用ディジタル信号を受信用データに変換して入力するための入力ポートとして割り当てられている。データ受信部38から出力される受信用データは、通信データ処理部39に与えられる。   The data transmitting unit 37 and the data receiving unit 38 are realized by assigning the I / O ports of the microcomputer as follows. That is, the data transmission unit 37 is assigned as an output port for converting the transmission data provided from the communication data processing unit 39 into a transmission digital signal and outputting it. The transmission digital signal output from the data transmission unit 37 is given to the driver 8. The data receiving unit 38 is assigned as an input port for converting a receiving digital signal given from the receiver 9 into receiving data and inputting it. The reception data output from the data receiving unit 38 is given to the communication data processing unit 39.

通信データ処理部39は、制御部36からデータの送信を指令するコマンドが与えられると、送信用データをデータ送信部37に出力する。通信データ処理部39は、データ受信部38から受信用データが与えられると、その受信用データに応じた内容のコマンドを制御部36に出力する。   The communication data processing unit 39 outputs data for transmission to the data transmission unit 37 when a command for commanding data transmission is given from the control unit 36. When receiving data is received from the data receiving unit 38, the communication data processing unit 39 outputs a command having contents corresponding to the receiving data to the control unit 36.

次に、本実施形態の作用および効果について図2〜図5も参照して説明する。
ここでは、PLC7からインバータ装置1に対し、インバータ装置1を制御するための制御データが送信された後、インバータ装置1からPLC7に対し、返信データが送信される、という状況におけるインバータ装置1側の動作を主体に説明する。図2は、上記状況におけるインバータ装置1の通信に関する動作の流れを表すフローチャートである。
Next, the operation and effect of this embodiment will be described with reference to FIGS.
Here, after the control data for controlling the inverter device 1 is transmitted from the PLC 7 to the inverter device 1, the response data is transmitted from the inverter device 1 to the PLC 7. The operation will be mainly described. FIG. 2 is a flowchart showing a flow of operations related to communication of the inverter device 1 in the above situation.

まず、PLC7の制御回路10から制御データが出力されると、ドライバ8からその制御データを表す差動信号が出力される。なお、このとき、インバータ装置1は受信状態であり、ドライバ2は送信不可状態に設定されている。このようにして差動信号が出力されると、インバータ装置1の制御回路5には、通信線15、16およびレシーバ3などを通じて制御データを表す受信用ディジタル信号Sd3が与えられる(ステップS1)。そして、これを受けて、制御回路5において返信データが生成される(ステップS2)。   First, when control data is output from the control circuit 10 of the PLC 7, a differential signal representing the control data is output from the driver 8. At this time, the inverter device 1 is in a receiving state, and the driver 2 is set in a transmission disabled state. When the differential signal is output in this way, the receiving circuit digital signal Sd3 representing the control data is given to the control circuit 5 of the inverter device 1 through the communication lines 15 and 16 and the receiver 3 (step S1). In response to this, reply data is generated in the control circuit 5 (step S2).

続いて、ドライバ2が送信可能状態に設定されるとともに、制御部17が返信データである送信用データD1の送信を指令する(ステップS3)。ただし、送信用データD1の実際の送信は、待機部22の機能によって、受信用データD3(制御データ)を受信した時点(第1時点に相当)から待ち時間Twの間だけ待機される(ステップS4)。なお、待ち時間Twの初期値はゼロ(=待ち時間無し)に設定されている。待ち時間Twが経過すると(ステップS4で「YES」になると)、待機部22から送信用データD1が出力される。これにより、データ送信部18を通じてドライバ2から返信データを表す差動信号が出力される。また、この際、制御回路5は、レシーバ4などを介して観測用ディジタル信号Sd2を取得する(ステップS5)。その後、検出部25において、送信用データD1およびそれに対応した観測用データD2が比較されることにより、コリジョンの発生が監視される(ステップS6)。   Subsequently, the driver 2 is set in a transmittable state, and the control unit 17 instructs transmission of the transmission data D1 that is return data (step S3). However, the actual transmission of the transmission data D1 is waited for the waiting time Tw from the time point (corresponding to the first time point) when the reception data D3 (control data) is received by the function of the standby unit 22 (step). S4). The initial value of the waiting time Tw is set to zero (= no waiting time). When the waiting time Tw elapses (“YES” in step S4), the transmission data D1 is output from the standby unit 22. As a result, a differential signal representing reply data is output from the driver 2 through the data transmission unit 18. At this time, the control circuit 5 acquires the observation digital signal Sd2 via the receiver 4 or the like (step S5). Thereafter, the detection unit 25 compares the transmission data D1 with the observation data D2 corresponding to the transmission data D1, thereby monitoring the occurrence of a collision (step S6).

上記監視の結果、コリジョンの発生が検出されない場合(ステップS6で「NO」)、ステップS7に進む。ステップS7では、ドライバ2が送信不可状態に設定され(インバータ装置1が受信状態に設定され)、処理が終了する(END)。一方、上記監視の結果、コリジョンの発生が検出された場合(ステップS6で「YES」)、ステップS8に進む。ステップS8では、時間設定制御の実行が許可されているか否かが判断される。   If no collision is detected as a result of the monitoring ("NO" in step S6), the process proceeds to step S7. In step S7, the driver 2 is set in a transmission disabled state (the inverter device 1 is set in a receiving state), and the process ends (END). On the other hand, when occurrence of collision is detected as a result of the monitoring (“YES” in step S6), the process proceeds to step S8. In step S8, it is determined whether execution of time setting control is permitted.

本実施形態では、インバータ装置1の起動後、最初にデータ送信が行われる際、つまり図2のフローチャートに示す制御が実行される際には必ず時間設定制御の実行が許可される。その後は、時間設定制御が実行された結果、待ち時間Twの更新がN回(Nは1以上の整数)無ければ、次からは時間設定制御の実行が禁止されるようになっている。また、Nの値は、インバータ装置1の仕様として固定値にしてもよいし、ユーザによる値の変更が可能なパラメータとして記憶部23に記憶するようにしてもよい。また、待ち時間Twの更新回数の判定については、累積回数でもよいし、連続回数でもよい。   In this embodiment, when data transmission is performed for the first time after the inverter device 1 is activated, that is, when the control shown in the flowchart of FIG. Thereafter, as a result of the execution of the time setting control, if the waiting time Tw is not updated N times (N is an integer of 1 or more), the execution of the time setting control is prohibited from the next time. The value of N may be a fixed value as the specification of the inverter device 1 or may be stored in the storage unit 23 as a parameter that can be changed by the user. The determination of the number of updates of the waiting time Tw may be an accumulated number or a continuous number.

時間設定制御の実行が許可されている場合(ステップS8で「YES」)、時間設定制御が実行される(ステップS9)。図3は、時間設定制御の内容を表すフローチャートである。時間設定制御が開始されると、ステップT1において、カウンタ28のカウント値cntがゼロに初期化される(cnt=0)。続くステップT2では、カウント値cntがインクリメントされる(cnt=cnt+1)。   When execution of time setting control is permitted (“YES” in step S8), time setting control is executed (step S9). FIG. 3 is a flowchart showing the contents of the time setting control. When the time setting control is started, the count value cnt of the counter 28 is initialized to zero (cnt = 0) in step T1. In the subsequent step T2, the count value cnt is incremented (cnt = cnt + 1).

そして、制御部17は、さきほど送信した送信用データD1の先頭1バイト分のデータの送信を指令する(ステップT3)。この際、待機部22においてデータの送信は待機されず、直ちにドライバ2から送信用データD1の先頭1バイト分のデータに対応した差動信号が出力される。また、この際、制御回路5は、レシーバ4などを介して観測用ディジタル信号Sd2を取得する。なお、ここで送信される送信用データD1の先頭1バイト分のデータは、例えば送信バッファに残されたものを利用すればよい。その後、検出部25において、送信用データD1の先頭1バイト分のデータと、それに対応した1バイト分の観測用データD2とが比較されることにより、コリジョンの発生が監視される(ステップT4)。   Then, the control unit 17 instructs transmission of data for the first byte of the transmission data D1 transmitted earlier (step T3). At this time, the waiting unit 22 does not wait for data transmission, and the driver 2 immediately outputs a differential signal corresponding to the data for the first byte of the transmission data D1. At this time, the control circuit 5 acquires the observation digital signal Sd2 via the receiver 4 or the like. Note that the data for the first byte of the transmission data D1 transmitted here may be the data left in the transmission buffer, for example. Thereafter, the detection unit 25 compares the data for the first 1 byte of the transmission data D1 with the observation data D2 for 1 byte corresponding thereto, thereby monitoring the occurrence of collision (step T4). .

上記監視の結果、コリジョンの発生が検出された場合(ステップT4で「YES」)、ステップT5に進む。ステップT5では、カウント値cntがしきい値nより大きいか否かが判断される。カウント値cntがしきい値n以下である場合(ステップT5で「NO」)、ステップT2に戻り、ステップT2〜T4の処理が再度実行される。一方、コリジョンの発生が検出されない場合(ステップT4で「NO」)、あるいは、カウント値cntがしきい値nより大きい場合(ステップT5で「YES」)、ステップT6に進む。ステップT6では、ドライバ2が送信可能状態に設定された時点から現時点までの時間が待ち時間Twに設定され、処理が終了する(RETURN)。   If collision is detected as a result of the monitoring ("YES" in step T4), the process proceeds to step T5. In step T5, it is determined whether or not the count value cnt is larger than the threshold value n. When the count value cnt is equal to or smaller than the threshold value n (“NO” in step T5), the process returns to step T2 and the processes of steps T2 to T4 are executed again. On the other hand, if no collision is detected (“NO” in step T4), or if the count value cnt is greater than the threshold value n (“YES” in step T5), the process proceeds to step T6. In step T6, the time from the time when the driver 2 is set to the transmittable state to the current time is set as the waiting time Tw, and the process ends (RETURN).

時間設定制御が終了した場合、あるいは、時間設定制御の実行が禁止されている場合(ステップS8で「NO」)、ステップS10に進む。ステップS10では、リトライ制御の実行が許可されているか否かが判断される。リトライ制御の実行が禁止されている場合(ステップS10で「NO」)、リトライ制御が実行されることなく、ステップS7に進む。一方、リトライ制御の実行が許可されている場合(ステップS10で「YES」)、リトライ制御が実行される(ステップS11)。リトライ制御においては、さきほど送信を試みた返信データである送信用データD1の送信が再度実行される。なお、ここで送信される送信用データD1は、例えば送信バッファに残されたものを利用すればよい。リトライ制御の実行後はステップS7に進み、その後処理が終了する(END)。   When the time setting control is completed or when execution of the time setting control is prohibited (“NO” in step S8), the process proceeds to step S10. In step S10, it is determined whether execution of retry control is permitted. When execution of retry control is prohibited (“NO” in step S10), the process proceeds to step S7 without executing retry control. On the other hand, when the execution of the retry control is permitted (“YES” in step S10), the retry control is executed (step S11). In the retry control, the transmission of the transmission data D1, which is the reply data that was previously attempted to be transmitted, is executed again. Note that the transmission data D1 transmitted here may use, for example, data left in the transmission buffer. After executing the retry control, the process proceeds to step S7, and then the process ends (END).

図4は、上記処理により設定される待ち時間Twを表すタイミング図である。なお、図4では、PLC7側のレシーバ/ドライバの切り替え、つまりドライバ8およびレシーバ9の状態切り替え時間が比較的長い場合を想定しており、このときに設定されている待ち時間Tw(例えば初期値であるゼロ)ではコリジョンが発生する、と仮定している。図4の時刻t1の時点は、図2におけるステップS3の時点であり、ドライバ2が送信可能状態に設定される時点である。この時刻t1の時点においては、インバータ装置1から返信データに相当する差動信号が出力されていないため、PLC7側の状態にかかわらず、コリジョンは発生していない。そして、時刻t2の時点は、図2におけるステップS4で「YES」となる時点であり、待機部22から送信用データD1が出力される時点である。この時刻t2の時点においても、未だ差動信号は出力されていないため、コリジョンは発生していない。   FIG. 4 is a timing chart showing the waiting time Tw set by the above processing. In FIG. 4, it is assumed that the receiver / driver switching on the PLC 7 side, that is, the state switching time of the driver 8 and the receiver 9 is relatively long, and the waiting time Tw set at this time (for example, an initial value) It is assumed that collision occurs. The time point t1 in FIG. 4 is the time point of step S3 in FIG. 2, and is the time point when the driver 2 is set to the transmittable state. At the time t1, since the differential signal corresponding to the return data is not output from the inverter device 1, no collision occurs regardless of the state on the PLC 7 side. The time t2 is a time when “YES” is determined in step S4 in FIG. 2 and is a time when the transmission data D1 is output from the standby unit 22. Even at this time t2, since no differential signal has been output yet, no collision has occurred.

時刻t3の時点は、図3におけるステップS5の時点であり、ドライバ2から差動信号の出力が開始される時点である。この時刻t3の時点以降は、PLC7側が送信状態である限りコリジョンが発生することになる。そして、時刻t4の時点は、図3におけるステップS6で「YES」となる時点であり、最初にコリジョンが検出される時点(第2時点に相当)である。この時刻t4の時点以降、時間設定制御が実行されることになる。その時間設定制御において、時刻t5の時点までコリジョンが検出される。そして、時刻t6の時点は、PLC7においてレシーバ/ドライバの切り替えが完了し、PLC7が受信状態となる時点である。従って、この時刻t6の時点以降は、コリジョンが発生しない。そのため、時刻t7の時点(第4時点に相当)では、コリジョンが検出されなくなる。   The time point t3 is the time point of step S5 in FIG. 3, and is the time point when the output of the differential signal from the driver 2 is started. After the time t3, as long as the PLC 7 is in the transmission state, a collision occurs. The time t4 is a time when “YES” is determined in step S6 in FIG. 3, and is a time when collision is first detected (corresponding to a second time). After this time t4, the time setting control is executed. In the time setting control, the collision is detected until the time t5. The time point t6 is a time point when the switching of the receiver / driver is completed in the PLC 7 and the PLC 7 enters the reception state. Accordingly, no collision occurs after the time t6. Therefore, the collision is not detected at time t7 (corresponding to the fourth time).

本実施形態の時間設定制御によれば、ドライバ2が送信可能状態に設定される時刻t1の時点から、時間設定制御が開始された後に初めてコリジョンが検出されなくなる時刻t7の時点までの期間が待ち時間Twとして設定される。一方、このときのコリジョン発生期間は、図4の時刻t3〜時刻t6までの期間となる。すなわち、設定される待ち時間Twは、このときのコリジョン発生期間に比べて確実に長い期間となる。このようにして設定された待ち時間Twが次回以降の通信において用いられることにより、コリジョンの発生を回避することが可能となる。   According to the time setting control of the present embodiment, a period from the time t1 when the driver 2 is set to the transmittable state to the time t7 when no collision is detected for the first time after the time setting control is started is waited. It is set as time Tw. On the other hand, the collision occurrence period at this time is a period from time t3 to time t6 in FIG. That is, the set waiting time Tw is surely a longer period than the collision occurrence period at this time. Since the waiting time Tw set in this way is used in subsequent communications, it is possible to avoid the occurrence of collision.

図5は、通信線15、16間の電圧波形、つまり差動信号の波形を示している。図5において、(a)はコリジョンが発生する通信異常状態を示し、(b)はコリジョンが発生しない通信正常状態を示している。なお、ここでも、PLC7からインバータ装置1に対して制御データが送信された後、インバータ装置1からPLC7に対して返信データが送信されるという状況を想定している。   FIG. 5 shows a voltage waveform between the communication lines 15 and 16, that is, a differential signal waveform. 5A shows a communication abnormal state in which collision occurs, and FIG. 5B shows a normal communication state in which collision does not occur. In this case as well, it is assumed that after the control data is transmitted from the PLC 7 to the inverter device 1, the response data is transmitted from the inverter device 1 to the PLC 7.

従来技術では、待ち時間をユーザが設定するため、PLC7側のレシーバ/ドライバの切り替え時間に対し、設定された待ち時間が十分長くない場合には、図5(a)に示すようにコリジョンが発生するおそれがある。図5(a)では、2度目の通信時、PLC7側のレシーバ/ドライバの切り替えが完了する前に、インバータ装置1から返信データを表す差動信号が送信されてしまい、コリジョンが発生している。一方、本実施形態によれば、時間設定制御により自動的に最適な待ち時間が設定されるため、コリジョンの発生を防止できる。図5(b)に示すように、時間設定制御により設定される待ち時間がPLC7側のレシーバ/ドライバの切り替え時間よりも十分に長いため、1度目の通信時および2度目の通信時のいずれにおいても返信データを表す差動信号が正常に送信されている。   In the prior art, since the waiting time is set by the user, if the set waiting time is not sufficiently long with respect to the switching time of the receiver / driver on the PLC 7, a collision occurs as shown in FIG. There is a risk. In FIG. 5A, at the time of the second communication, before the switching of the receiver / driver on the PLC 7 side is completed, the differential signal representing the return data is transmitted from the inverter device 1, and a collision occurs. . On the other hand, according to the present embodiment, since the optimum waiting time is automatically set by the time setting control, the occurrence of collision can be prevented. As shown in FIG. 5B, since the waiting time set by the time setting control is sufficiently longer than the switching time of the receiver / driver on the PLC 7 side, either in the first communication or in the second communication Also, the differential signal representing the reply data is transmitted normally.

以上説明したように、本実施形態のインバータ装置1は、PLC7からのデータを受信した後、PLC7に対して返信データを送信する際、上記データを受信した時点から待ち時間Twだけ待機した後、返信データを送信するようになっている。また、待ち時間Twは、データ送信時に時間設定制御が実行されることにより、その際にコリジョンが発生している期間よりも確実に長く、且つ、むやみに長くない時間に自動的に設定される。つまり、本実施形態のインバータ装置1は、PLC7側のレシーバ/ドライバの切り替え時間に合わせて最適な待ち時間Twを設定する。そのため、PLC7側のレシーバ/ドライバの切り替え時間に関係なく、インバータ装置1とPLC7との間で行われる半二重通信における通信データのコリジョンの発生を容易に且つ効果的に防止することができる。   As described above, the inverter device 1 according to the present embodiment waits for the waiting time Tw from the time when the data is received when the reply data is transmitted to the PLC 7 after receiving the data from the PLC 7. Reply data is sent. Further, the waiting time Tw is automatically set to a time that is surely longer than the period in which the collision occurs at that time and is not unnecessarily long by performing time setting control at the time of data transmission. . That is, the inverter device 1 of the present embodiment sets an optimal waiting time Tw in accordance with the switching time of the receiver / driver on the PLC 7 side. Therefore, regardless of the switching time of the receiver / driver on the PLC 7 side, it is possible to easily and effectively prevent the occurrence of communication data collision in the half-duplex communication performed between the inverter device 1 and the PLC 7.

通信において、遅延が生じる要因としては待ち時間Twの設定ミスだけでなく、他のパラメータ(例えば、ボーレート、通信対象とするインバータ装置を表す番号など)の設定ミス、通信経路の断線、通信経路において重畳する外乱ノイズの影響など、様々な要因が考えられる。このように数多く存在する要因の中から、通信遅延がコリジョンによるものであるか否かを正確に判断することは極めて困難である。本実施形態のインバータ装置1によれば、前述したように最適な待ち時間が自動的に設定されるので、仮に通信遅延が生じた場合には、待ち時間Twの設定以外の要因を調査すればよい。そのため、通信遅延の原因究明を比較的容易に行い得るようになるという効果も得られる。   In communication, the cause of delay is not only a setting error of the waiting time Tw but also a setting error of other parameters (for example, a baud rate, a number indicating an inverter device to be communicated), a disconnection of a communication path, a communication path Various factors such as the influence of disturbance noise to be superimposed can be considered. It is extremely difficult to accurately determine whether or not the communication delay is caused by collision among the many factors. According to the inverter device 1 of the present embodiment, since the optimum waiting time is automatically set as described above, if a communication delay occurs, if factors other than the setting of the waiting time Tw are investigated. Good. Therefore, the effect that the cause of the communication delay can be investigated comparatively easily can be obtained.

コリジョン発生期間の長さは、同一のシステム構成であっても、毎回同じ長さであるとは限らない。本実施形態の時間設定制御においては、前回よりもコリジョン発生期間が長い場合には待ち時間Twが随時更新される。そのため、待ち時間Twは、その時点における最も長いコリジョン発生期間よりも確実に長い時間に設定されることになる。従って、時間設定制御が繰り返し実行されることにより、コリジョンの発生を防止するという効果を一層確実に得ることが可能な待ち時間Twが設定されることになる。   The length of the collision generation period is not necessarily the same length every time even in the same system configuration. In the time setting control of the present embodiment, the waiting time Tw is updated as needed when the collision occurrence period is longer than the previous time. Therefore, the waiting time Tw is surely set to a longer time than the longest collision occurrence period at that time. Therefore, by repeatedly executing the time setting control, the waiting time Tw that can more reliably obtain the effect of preventing the occurrence of collision is set.

また、時間設定制御が実行された結果、待ち時間Twの更新がN回無ければ、次からは時間設定制御の実行が禁止されるようになっている。このような構成により、次のような効果が得られる。すなわち、時間設定制御が何度か実行されたにもかかわらず、待ち時間Twが更新されない場合、待ち時間Twは、想定される最も長いコリジョン発生期間よりも長い時間に既に設定されている可能性が高い。このような場合、時間設定制御を実行する必要性が低い。このような条件でもって時間設定制御の実行を禁止することで、例えば、コリジョン以外の通信異常(例えば通信経路における断線やノイズによる影響など)が生じたことにより、意図せず時間設定制御が実行されてしまう事態を未然に防止できる。   If the waiting time Tw is not updated N times as a result of the time setting control being executed, execution of the time setting control is prohibited from the next time. With such a configuration, the following effects can be obtained. That is, when the waiting time Tw is not updated even though the time setting control is executed several times, the waiting time Tw may be already set to a time longer than the longest possible collision occurrence period. Is expensive. In such a case, the necessity for executing the time setting control is low. By prohibiting the execution of time setting control under such conditions, for example, a communication error other than collision (for example, the influence of disconnection or noise in the communication path) has occurred and time setting control is executed unintentionally. Can be prevented in advance.

リトライ部27は、コリジョン発生期間に送信が試みられた送信用データD1を再度送信するリトライ制御を実行可能に構成されている。このリトライ制御が実行されることにより、コリジョンの発生により破棄されるはずであったデータをPLC7に対し正常に送信することが可能となる。また、リトライ部27によるリトライ制御の実行は、制御部17から与えられる指令に応じて許可または禁止されるようになっている。インバータ装置1とPLC7との間にて送受信されるデータが、リアルタイム性が要求されるものである場合、リトライ制御により正常にデータ送信が行われたとしても、データ送信に遅延があるため、そのデータが意味をなさない可能性が高い。そして、再送信されるデータは、リトライ制御が繰り返されるほど意味をなさないことになる。このような場合、リトライ制御の実行を完全に禁止したり、あるいは、リトライ制御の実行回数を制限したりするとよい。これにより、コリジョンが発生している期間は正常にデータが送信されない可能性が高くなるが、コリジョンの発生が解消されれば、直ちにデータがリアルタイムで送信されることになる。   The retry unit 27 is configured to be able to execute retry control for transmitting again the transmission data D1 that was attempted to be transmitted in the collision occurrence period. By executing this retry control, data that should have been discarded due to the occurrence of a collision can be normally transmitted to the PLC 7. In addition, execution of retry control by the retry unit 27 is permitted or prohibited in accordance with a command given from the control unit 17. If the data transmitted and received between the inverter device 1 and the PLC 7 is required to be real-time, even if data transmission is normally performed by retry control, there is a delay in data transmission. The data is likely to make no sense. The retransmitted data does not make sense as the retry control is repeated. In such a case, execution of retry control may be completely prohibited, or the number of executions of retry control may be limited. As a result, there is a high possibility that data is not normally transmitted during the period in which the collision occurs. However, if the occurrence of the collision is eliminated, the data is immediately transmitted in real time.

待ち時間設定部26が備えるカウンタ28は、時間設定制御の実行中、検出部25によるコリジョンの検出動作(ステップT4)の実行回数をカウントするためのものである。そして、待ち時間設定部26は、カウント値cntが所定のしきい値nを超えると(ステップT5での「YES」)、ドライバ2を送信状態に設定した時点からカウント値cntがしきい値nを超えた時点(第5時点に相当)までの時間を待ち時間Twに設定して時間設定制御を強制的に終了する。このようにすれば、コリジョン以外の通信異常(通信経路における断線やノイズによる影響)が原因で正常に通信できない状態が継続するような事態が生じている場合に、時間設定制御において無限ループに陥ることを回避することができる。なお、しきい値nは、想定される最も長いコリジョン発生期間に合わせて設定すればよい。   The counter 28 included in the waiting time setting unit 26 is for counting the number of executions of the collision detection operation (step T4) by the detection unit 25 during execution of the time setting control. When the count value cnt exceeds the predetermined threshold value n (“YES” in step T5), the waiting time setting unit 26 sets the count value cnt to the threshold value n from the time when the driver 2 is set to the transmission state. The time until the time point exceeding (corresponding to the fifth time point) is set as the waiting time Tw, and the time setting control is forcibly ended. In this way, when there is a situation in which communication cannot be normally performed due to a communication abnormality other than collision (influence of disconnection or noise in the communication path), the time setting control falls into an infinite loop. You can avoid that. The threshold value n may be set in accordance with the longest possible collision occurrence period.

(第2の実施形態)
以下、本発明の第2の実施形態について図6および図7を参照しながら、第1の実施形態と異なる部分を主体に説明する。
図6は、第1の実施形態における図1相当図であり、本実施形態の構成を示すブロック図である。本実施形態のインバータ装置41は、第1の実施形態のインバータ装置1に対し、制御回路5に代えて制御回路42(制御手段に相当)を備えている点が異なっている。制御回路42は、基本的な構成については制御回路5と同様であるが、観測用データ受信部20に代えて受信信号切替部43(ポート設定切替手段に相当)を備えている点が異なっている。
(Second Embodiment)
Hereinafter, the second embodiment of the present invention will be described mainly with respect to portions different from the first embodiment with reference to FIGS. 6 and 7.
FIG. 6 is a view corresponding to FIG. 1 in the first embodiment, and is a block diagram showing a configuration of the present embodiment. The inverter device 41 of the present embodiment is different from the inverter device 1 of the first embodiment in that a control circuit 42 (corresponding to control means) is provided instead of the control circuit 5. The control circuit 42 has the same basic configuration as that of the control circuit 5 except that the control circuit 42 includes a reception signal switching unit 43 (corresponding to a port setting switching unit) instead of the observation data reception unit 20. Yes.

受信信号切替部43は、レシーバ3から与えられる受信用ディジタル信号Sd3およびレシーバ4から与えられる観測用ディジタル信号Sd2を同一のI/Oポート(入力ポート)を通じて受信するために設けられたものである。具体的には、受信信号切替部43は、インバータ装置41が受信状態に設定される場合には受信用ディジタル信号Sd3をデータ受信部19に与え、インバータ装置41が送信状態に設定される場合には観測用ディジタル信号Sd2をデータ受信部19に与える。このように、本実施形態のデータ受信部19は、PLC7からのデータを受信する際に受信用ディジタル信号Sd3を受信用データD3に変換して入力するための入力ポートとして割り当てられ、PLC7に対しデータを送信する際に観測用ディジタル信号Sd2を観測用データD2に変換して入力するための入力ポートとして割り当てられる。データ受信部19から出力される受信用データD3は、通信データ処理部21に与えられる。また、データ受信部19から出力される観測用データD2は、記憶部23に順次記憶される。   The reception signal switching unit 43 is provided to receive the reception digital signal Sd3 given from the receiver 3 and the observation digital signal Sd2 given from the receiver 4 through the same I / O port (input port). . Specifically, the reception signal switching unit 43 provides the reception digital signal Sd3 to the data reception unit 19 when the inverter device 41 is set to the reception state, and when the inverter device 41 is set to the transmission state. Gives the observation digital signal Sd2 to the data receiver 19. As described above, the data receiving unit 19 according to the present embodiment is assigned as an input port for receiving the data from the PLC 7 by converting the receiving digital signal Sd3 into the receiving data D3 and inputting it. When transmitting data, the observation digital signal Sd2 is assigned as an input port for converting to observation data D2 and inputting it. The reception data D3 output from the data receiving unit 19 is given to the communication data processing unit 21. The observation data D2 output from the data receiving unit 19 is sequentially stored in the storage unit 23.

次に、本実施形態の作用および効果について図7も参照して説明する。
図7は、第1の実施形態における図2相当図であり、インバータ装置41の通信に関する動作の流れを表すフローチャートである。図2に示すフローチャートは、図1に示すフローチャートに対し、ステップS2、S3間にステップU1が追加されている点と、ステップS6、S7間にステップU2が追加されている点とが異なっている。
Next, the operation and effect of this embodiment will be described with reference to FIG.
FIG. 7 is a flowchart corresponding to FIG. 2 in the first embodiment, and is a flowchart showing a flow of operation related to communication of the inverter device 41. The flowchart shown in FIG. 2 differs from the flowchart shown in FIG. 1 in that step U1 is added between steps S2 and S3 and that step U2 is added between steps S6 and S7. .

図7のフローチャートが実行される際、受信信号切替部43は、受信用ディジタル信号Sd3をデータ受信部19に与えられる状態となっている。そして、ステップS2が実行された後、受信信号切替部43は、観測用ディジタル信号Sd2をデータ受信部19に与える状態に切り替えられる(ステップU1)。なお、ステップS3が実行された後にステップU1が実行されるように変更してもよい。また、ステップS6で「NO」となった後、ステップS10で「NO」となった後、または、ステップS11が実行された後、ステップU2が実行される。ステップU2において、受信信号切替部43は、受信用ディジタル信号Sd3をデータ受信部19に与える状態に切り替えられる。なお、ステップS7が実行された後にステップU2が実行されるように変更してもよい。   When the flowchart of FIG. 7 is executed, the reception signal switching unit 43 is in a state in which the reception digital signal Sd3 is given to the data reception unit 19. After step S2 is executed, the reception signal switching unit 43 is switched to a state in which the observation digital signal Sd2 is supplied to the data reception unit 19 (step U1). In addition, you may change so that step U1 may be performed after step S3 is performed. Further, after “NO” in step S6, after “NO” in step S10, or after step S11 is executed, step U2 is executed. In step U <b> 2, the reception signal switching unit 43 is switched to a state in which the reception digital signal Sd <b> 3 is supplied to the data reception unit 19. In addition, you may change so that step U2 may be performed after step S7 is performed.

以上説明したように、本実施形態のインバータ装置41は、マイクロコンピュータを主体として構成された制御回路42を備えている。そして、レシーバ3から出力される受信用ディジタル信号Sd3と、レシーバ4から出力される観測用ディジタル信号Sd2とを、データ受信部19を通じて受信するように構成されている。このような構成によれば、第1の実施形態と同様の作用および効果が得られる。さらに、観測用ディジタル信号Sd2および受信用ディジタル信号Sd3を同一のI/Oポートを通じて受信可能となるため、制御回路42を構成するマイクロコンピュータにおいて使用される通信リソースが削減されるという効果が得られる。   As described above, the inverter device 41 of the present embodiment includes the control circuit 42 configured mainly with a microcomputer. The reception digital signal Sd3 output from the receiver 3 and the observation digital signal Sd2 output from the receiver 4 are received through the data reception unit 19. According to such a configuration, the same operation and effect as in the first embodiment can be obtained. Furthermore, since the observation digital signal Sd2 and the reception digital signal Sd3 can be received through the same I / O port, the communication resource used in the microcomputer constituting the control circuit 42 can be reduced. .

(第3の実施形態)
以下、本発明の第3の実施形態について図8を参照しながら、第1の実施形態と異なる部分を主体に説明する。
図8は、第1の実施形態における図1相当図であり、本実施形態の構成を示すブロック図である。本実施形態のインバータ装置51は、第1の実施形態のインバータ装置1に対し、制御回路5に代えて制御回路52(制御手段に相当)を備えている点と、ドライバ2およびレシーバ3に代えてドライバ53(送信信号変換手段に相当)およびレシーバ54(受信信号変換手段および観測信号変換手段に相当)を備えている点と、レシーバ4が省かれている点とが異なっている。制御回路52は、基本的な構成については制御回路5と同様であるが、データ受信部19に代えてデータ受信部55を備えている点と、観測用データ受信部20が省かれている点とが異なっている。
(Third embodiment)
Hereinafter, the third embodiment of the present invention will be described mainly with respect to portions different from the first embodiment with reference to FIG.
FIG. 8 is a view corresponding to FIG. 1 in the first embodiment, and is a block diagram showing a configuration of the present embodiment. The inverter device 51 of the present embodiment is different from the inverter device 1 of the first embodiment in that a control circuit 52 (corresponding to control means) is provided instead of the control circuit 5, and the driver 2 and the receiver 3 are replaced. The difference is that a driver 53 (corresponding to transmission signal conversion means) and a receiver 54 (corresponding to reception signal conversion means and observation signal conversion means) are provided, and the receiver 4 is omitted. The control circuit 52 has the same basic configuration as that of the control circuit 5, but includes a data receiving unit 55 instead of the data receiving unit 19, and the observation data receiving unit 20 is omitted. Is different.

本実施形態のドライバ53およびレシーバ54は、一体的に構成された1チップのトランシーバ56であり、ドライバ53側で通信線15、16をドライブしながらレシーバ54側で通信線15、16から差動信号を取得することが可能となっている。そのため、レシーバ54は、インバータ装置51が受信状態に設定される場合には受信用ディジタル信号Sd3をデータ受信部55に与え、インバータ装置51が送信状態に設定される場合には観測用ディジタル信号Sd2をデータ受信部55に与えることができる。   The driver 53 and the receiver 54 of the present embodiment are a one-chip transceiver 56 configured integrally, and the communication lines 15 and 16 are driven on the driver 53 side, and the differential from the communication lines 15 and 16 on the receiver 54 side. It is possible to acquire a signal. Therefore, the receiver 54 gives the reception digital signal Sd3 to the data receiving unit 55 when the inverter device 51 is set to the reception state, and the observation digital signal Sd2 when the inverter device 51 is set to the transmission state. Can be provided to the data receiver 55.

データ受信部55は、受信用ディジタル信号Sd3および観測用ディジタル信号Sd2を受信用データD3および観測用データD2に変換して入力するための入力ポートとして割り当てられている。データ受信部55は、インバータ装置51が受信状態に設定されている状態で与えられるディジタル信号(受信用ディジタル信号Sd3)を受信用データD3に変換して通信データ処理部21に出力する。また、データ受信部55は、インバータ装置51が送信状態に設定されている状態で与えられるディジタル信号(観測用ディジタル信号Sd2)を観測用データD2に変換して記憶部23に順次記憶する。本実施形態では、このような構成により、レシーバ54から与えられる受信用ディジタル信号Sd3および観測用ディジタル信号Sd2を同一のI/Oポート(入力ポート)を通じて受信することを可能としている。   The data receiver 55 is assigned as an input port for converting the reception digital signal Sd3 and the observation digital signal Sd2 into the reception data D3 and the observation data D2 and inputting them. The data reception unit 55 converts a digital signal (reception digital signal Sd3) given in a state where the inverter device 51 is set to the reception state into reception data D3 and outputs the reception data D3 to the communication data processing unit 21. In addition, the data receiving unit 55 converts a digital signal (observation digital signal Sd2) given in a state where the inverter device 51 is set to the transmission state into observation data D2 and sequentially stores them in the storage unit 23. In the present embodiment, with such a configuration, the reception digital signal Sd3 and the observation digital signal Sd2 given from the receiver 54 can be received through the same I / O port (input port).

以上説明したように、本実施形態のインバータ装置51は、マイクロコンピュータを主体として構成された制御回路52およびトランシーバ56を備えている。トランシーバ56は、ドライバ53側で通信線15、16をドライブしながらレシーバ54側で差動信号を取得することが可能となっている。そして、レシーバ54から出力される受信用ディジタル信号Sd3および観測用ディジタル信号Sd2は、データ受信部55を通じて受信される。このような構成によれば、第1の実施形態と同様の作用および効果が得られる上、次のような効果が得られる。すなわち、本実施形態によれば、レシーバ4を省いた分だけ回路構成が簡素化されるという効果が得られる。また、本実施形態によれば、観測用ディジタル信号Sd2および受信用ディジタル信号Sd3を同一のI/Oポートを通じて受信可能となるため、制御回路52を構成するマイクロコンピュータにおいて使用される通信リソースが削減されるという効果が得られる。   As described above, the inverter device 51 of the present embodiment includes the control circuit 52 and the transceiver 56 that are configured mainly with a microcomputer. The transceiver 56 can acquire a differential signal on the receiver 54 side while driving the communication lines 15 and 16 on the driver 53 side. Then, the reception digital signal Sd3 and the observation digital signal Sd2 output from the receiver 54 are received through the data reception unit 55. According to such a configuration, the same effects and advantages as in the first embodiment can be obtained, and the following effects can be obtained. In other words, according to the present embodiment, an effect that the circuit configuration is simplified by the amount that the receiver 4 is omitted can be obtained. Further, according to the present embodiment, since the observation digital signal Sd2 and the reception digital signal Sd3 can be received through the same I / O port, communication resources used in the microcomputer constituting the control circuit 52 are reduced. The effect that it is done is acquired.

(その他の実施形態)
以上、本発明のいくつかの実施形態を説明したが、これら実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。
必ずしも送信用データD1および観測用データD2を記憶部23に記憶させるような構成とする必要はなく、検出部25において、送信用データD1と、その送信用データD1に対応した観測用データD2との比較ができる構成であればよい。
(Other embodiments)
As mentioned above, although some embodiment of this invention was described, these embodiment is shown as an example and is not intending limiting the range of invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention.
It is not always necessary to store the transmission data D1 and the observation data D2 in the storage unit 23. In the detection unit 25, the transmission data D1 and the observation data D2 corresponding to the transmission data D1 Any configuration that can be compared is acceptable.

待ち時間設定部26による時間設定制御の実行を常に許可してもよい。つまり、図2および図7におけるステップS8による判断を省いてもよい。リトライ部27によるリトライ制御の実行を常に許可してもよい。つまり、図2および図7におけるステップS10による判断を省いてもよい。また、リトライ部27によるリトライ制御の実行を常に禁止してもよい。つまり、リトライ部27としての機能自体(図2および図7におけるステップS10、S11)を省いてもよい。   The execution of the time setting control by the waiting time setting unit 26 may be always permitted. That is, the determination in step S8 in FIGS. 2 and 7 may be omitted. You may always permit execution of retry control by the retry unit 27. That is, the determination in step S10 in FIGS. 2 and 7 may be omitted. Further, execution of retry control by the retry unit 27 may always be prohibited. That is, the function itself (steps S10 and S11 in FIGS. 2 and 7) as the retry unit 27 may be omitted.

インバータ装置1の起動後、データが所定回(少なくとも1回)送信されるまで時間設定制御の実行を許可し、その後に禁止するようにしてもよい。すなわち、インバータ装置1の起動後、待ち時間設定制御がM回(Mは1以上の整数)実行されると、時間設定制御の実行が禁止されるようにしてもよい。なお、Mの値は、インバータ装置1の仕様として固定値にしてもよいし、ユーザによる値の変更が可能なパラメータとして記憶部23に記憶するようにしてもよい。また、装置の起動直後は、CPUの動作負荷が軽くなる傾向があるため、通信においてコリジョンが発生し難い。そこで、インバータ装置1の起動後、実際にインバータ主回路6の駆動制御が開始されてから(インバータを実動作させてから)所定回数は時間設定制御の実行が許可され、その後に禁止するようにしてもよい。また、ステップS6で「NO」となる(コリジョンが検出されない)ケースが所定回数続いた場合には、待ち時間Twが既に最適値である可能性が高いため、時間設定制御の実行が禁止されるようにしてもよい。   After the inverter device 1 is activated, the execution of the time setting control may be permitted until the data is transmitted a predetermined number of times (at least once), and then prohibited. That is, when the waiting time setting control is executed M times (M is an integer equal to or greater than 1) after the inverter device 1 is activated, the execution of the time setting control may be prohibited. The value of M may be a fixed value as the specification of the inverter device 1 or may be stored in the storage unit 23 as a parameter that can be changed by the user. In addition, immediately after the device is started up, the operation load of the CPU tends to be reduced, so that collision is unlikely to occur in communication. Therefore, after the inverter device 1 is started, the time setting control is allowed to be executed for a predetermined number of times after the drive control of the inverter main circuit 6 is actually started (after the inverter is actually operated), and then prohibited. May be. Also, if the case of “NO” in step S6 (no collision is detected) continues for a predetermined number of times, the waiting time Tw is likely to be an optimal value, and execution of the time setting control is prohibited. You may do it.

待ち時間Twの初期値は適宜変更可能である。
待ち時間Twは、受信用データD3を受信した後であり且つコリジョンの発生が検出される時点より前の時点(第3時点に相当)から、時間設定制御が開始された後に初めてコリジョンが検出されなくなる時点(図4の時刻t7の時点)までの時間に設定されればよい。例えば、待機部22から送信用データD1が出力される時点(図4の時刻t2の時点)から時間設定制御が開始された後に初めてコリジョンが検出されなくなる時点までの期間を待ち時間Twとして設定してもよい。
The initial value of the waiting time Tw can be appropriately changed.
The waiting time Tw is the first time after the time setting control is started from the time after receiving the reception data D3 and before the time when the occurrence of the collision is detected (corresponding to the third time). What is necessary is just to set to the time to the time of disappearance (time t7 of FIG. 4). For example, the period from the time when the transmission data D1 is output from the standby unit 22 (time t2 in FIG. 4) to the time when the collision is not detected for the first time after the time setting control is started is set as the waiting time Tw. May be.

送信用データD1の送信単位は、例えば1ワード、1ブロックなど、他のデータ単位であってもよい。また、送信用データD1の送信単位を変更した場合には、送信用データD1および観測用データD2の比較についても、その変更に合わせてデータ単位を変更すればよい。図3におけるステップT3では、送信用データD1の先頭1バイト分のデータの送信を指令するようになっていたが、例えば1ワードや1ブロックなど、他のデータ単位であってもよい。   The transmission unit of the transmission data D1 may be another data unit such as 1 word or 1 block. Further, when the transmission unit of the transmission data D1 is changed, the data unit may be changed in accordance with the change in the comparison of the transmission data D1 and the observation data D2. In step T3 in FIG. 3, transmission of data for the first byte of the transmission data D1 is instructed. However, other data units such as one word or one block may be used.

上記各実施形態では、1台のPLCと1台のインバータ装置との間の通信動作について本発明を適用した例を説明したが、本発明は1台のPLCと複数のインバータ装置との間の通信動作についても適用可能である。
これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
In each of the above-described embodiments, the example in which the present invention is applied to the communication operation between one PLC and one inverter device has been described. However, the present invention provides a communication between one PLC and a plurality of inverter devices. It can also be applied to communication operations.
These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

図面中、1、41、51はインバータ装置、2、53はドライバ(送信信号変換手段)、3はレシーバ(受信信号変換手段)、4はレシーバ(観測信号変換手段)、5、42、52は制御回路(制御手段、マイクロコンピュータ)、6はインバータ主回路、7はPLC(外部機器)、15、16は通信線、17は制御部(時間設定制御可否手段、リトライ制御可否手段)、22は待機部(待機手段)、25は検出部(検出手段)、26は待ち時間設定部(待ち時間設定手段)、27はリトライ部(リトライ手段)、28はカウンタ、43は受信信号切替手段(ポート設定切替手段)、54はレシーバ(受信信号変換手段、観測信号変換手段)、56はトランシーバを示す。   In the drawing, 1, 41, 51 are inverter devices, 2, 53 are drivers (transmission signal conversion means), 3 is a receiver (reception signal conversion means), 4 is a receiver (observation signal conversion means), 5, 42, 52 is Control circuit (control means, microcomputer), 6 is an inverter main circuit, 7 is a PLC (external device), 15 and 16 are communication lines, 17 is a control unit (time setting control enable / disable means, retry control enable / disable means), 22 Standby unit (standby unit), 25 detection unit (detection unit), 26 wait time setting unit (wait time setting unit), 27 retry unit (retry unit), 28 counter, 43 reception signal switching unit (port) Setting switching means), 54 is a receiver (reception signal conversion means, observation signal conversion means), and 56 is a transceiver.

Claims (7)

インバータ主回路と、
一対の通信線を通じた半二重通信により外部機器との間でデータの送受信を行うとともに前記インバータ主回路の制御を行う制御手段と、
前記制御手段から与えられる送信用データを一対の差動信号に変換して前記一対の通信線に出力する送信信号変換手段と、
前記一対の通信線から取得される一対の差動信号を受信用データに変換して前記制御手段に出力する受信信号変換手段と、
前記一対の通信線から取得される一対の差動信号を観測用データに変換する観測信号変換手段と、を備え、
前記制御手段は、
前記送信信号変換手段が送信可能状態とされて前記送信用データの送信が指令される第1時点から所定の待ち時間だけ、前記送信用データの出力を待機させ前記待ち時間が経過すると前記送信用データを出力する待機手段と、
前記送信用データと、その送信用データに対応した前記観測用データとを比較し、各データが一致しない場合、前記半二重通信においてコリジョンが発生していると判断する検出手段と、
前記待機手段により前記待ち時間が経過して前記送信用データが出力された後、前記検出手段により前記コリジョンの発生が検出されると、そのコリジョンの発生が検出された第2時点より前であり且つ前記送信信号変換手段が送信可能状態になった時点以降の第3時点から、そのコリジョンの発生が検出されなくなる第4時点までの時間を前記待ち時間として設定する時間設定制御を実行する待ち時間設定手段と、を備えていることを特徴とするインバータ装置。
An inverter main circuit;
Control means for transmitting and receiving data to and from an external device by half-duplex communication through a pair of communication lines and controlling the inverter main circuit;
Transmission signal conversion means for converting the transmission data given from the control means into a pair of differential signals and outputting them to the pair of communication lines;
A reception signal converting means for converting a pair of differential signals acquired from the pair of communication lines into reception data and outputting the data to the control means;
Observation signal conversion means for converting a pair of differential signals acquired from the pair of communication lines into observation data,
The control means includes
When the transmission signal converting means is in a transmittable state and the transmission of the transmission data is instructed, the transmission data is waited for a predetermined waiting time, and when the waiting time elapses , the transmission data is converted . A waiting means for outputting data ;
Detecting means for comparing the transmission data and the observation data corresponding to the transmission data, and determining that a collision has occurred in the half-duplex communication if the data do not match;
When the occurrence of the collision is detected by the detection means after the waiting time has elapsed and the transmission data has been output by the waiting means, it is before the second time point when the occurrence of the collision is detected. The waiting time for executing the time setting control for setting the waiting time as the waiting time from the third time after the time when the transmission signal converting means becomes ready to transmit to the fourth time when the occurrence of the collision is not detected. An inverter device comprising: setting means.
前記制御手段は、前記待ち時間設定手段による前記時間設定制御の実行を許可または禁止する時間設定制御可否手段を備えていることを特徴とする請求項1に記載のインバータ装置。   The inverter device according to claim 1, wherein the control unit includes a time setting control permission / rejection unit that permits or prohibits execution of the time setting control by the waiting time setting unit. 前記制御手段は、前記コリジョンの発生が検出された際における送信用データを再度送信するリトライ制御を実行するリトライ手段を備えていることを特徴とする請求項1または2に記載のインバータ装置。   3. The inverter device according to claim 1, wherein the control unit includes a retry unit that executes retry control for transmitting transmission data again when the occurrence of the collision is detected. 前記制御手段は、前記リトライ手段による前記リトライ制御の実行を許可または禁止するリトライ制御可否手段を備えていることを特徴とする請求項3に記載のインバータ装置。   The inverter device according to claim 3, wherein the control unit includes a retry control permission / prohibition unit that permits or prohibits execution of the retry control by the retry unit. 前記待ち時間設定手段は、
前記時間設定制御の実行中、前記検出手段による前記コリジョンの検出動作の実行回数をカウントするカウンタを備え、
前記カウンタのカウント値が所定のしきい値を超えると、前記第3時点から前記カウント値が前記しきい値を超えた第5時点までの時間を前記待ち時間に設定して前記時間設定制御を終了することを特徴とする請求項1〜4のいずれか一つに記載のインバータ装置。
The waiting time setting means includes:
A counter that counts the number of times the collision detection operation is performed by the detection unit during the time setting control;
When the count value of the counter exceeds a predetermined threshold value, the time from the third time point to the fifth time point when the count value exceeds the threshold value is set as the waiting time, and the time setting control is performed. The inverter device according to claim 1, wherein the inverter device is terminated.
前記制御手段は、
マイクロコンピュータであり、
前記受信信号変換手段から出力される前記受信用データと、前記観測信号変換手段から出力される前記観測用データとを同一の入力ポートを通じて受信するように構成され、
前記外部機器からのデータを受信する際に前記入力ポートを前記受信用データの受信用に設定し、前記外部機器に対しデータを送信する際に前記入力ポートを前記観測用データの受信用に設定するポート設定切替手段を備えていることを特徴とする請求項1〜5のいずれか一つに記載のインバータ装置。
The control means includes
A microcomputer,
The reception data output from the reception signal conversion means and the observation data output from the observation signal conversion means are configured to be received through the same input port,
When receiving data from the external device, the input port is set to receive the reception data, and when transmitting data to the external device, the input port is set to receive the observation data. The inverter device according to claim 1, further comprising a port setting switching unit that performs the operation.
前記送信信号変換手段、前記受信信号変換手段および前記観測信号変換手段は、1組のドライバおよびレシーバを有するトランシーバにより構成されていることを特徴とする請求項1〜5のいずれか一つに記載のインバータ装置。   6. The transmission signal conversion unit, the reception signal conversion unit, and the observation signal conversion unit are configured by a transceiver having a pair of drivers and receivers. Inverter device.
JP2011130113A 2011-06-10 2011-06-10 Inverter device Expired - Fee Related JP5654418B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011130113A JP5654418B2 (en) 2011-06-10 2011-06-10 Inverter device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011130113A JP5654418B2 (en) 2011-06-10 2011-06-10 Inverter device

Publications (2)

Publication Number Publication Date
JP2012257153A JP2012257153A (en) 2012-12-27
JP5654418B2 true JP5654418B2 (en) 2015-01-14

Family

ID=47528270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011130113A Expired - Fee Related JP5654418B2 (en) 2011-06-10 2011-06-10 Inverter device

Country Status (1)

Country Link
JP (1) JP5654418B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201311248D0 (en) * 2013-06-25 2013-08-14 Amantys Ltd Low-skew communication system
JP2015211545A (en) 2014-04-25 2015-11-24 ローム株式会社 Power supply device, AC adapter, AC charger, electronic device, and power supply system
JP6619546B2 (en) * 2014-04-25 2019-12-11 ローム株式会社 Power supply device, AC adapter, AC charger, electronic device, and power supply system
EP3025589B1 (en) 2014-11-28 2019-07-24 ALI GROUP S.r.l. - CARPIGIANI Machine for making liquid or semi-liquid products equipped with fieldbus controlled inverter

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0332133A (en) * 1989-06-28 1991-02-12 Nec Corp Packet transmission controller
JPH0821941B2 (en) * 1991-04-26 1996-03-04 富士ゼロックス株式会社 Communication method
JP3882354B2 (en) * 1998-08-31 2007-02-14 ブラザー工業株式会社 Wireless communication method and wireless communication system
JP2001292150A (en) * 2000-04-05 2001-10-19 Fujitsu Ltd Communication control method
JP4680128B2 (en) * 2006-05-19 2011-05-11 シャープ株式会社 Half-duplex communication device, half-duplex communication system, electronic device, communication program, and recording medium recording the communication program
JP4930223B2 (en) * 2007-06-28 2012-05-16 富士電機株式会社 Wireless communication system, transmitting wireless terminal, receiving wireless terminal, program

Also Published As

Publication number Publication date
JP2012257153A (en) 2012-12-27

Similar Documents

Publication Publication Date Title
EP2879332A1 (en) Communication apparatus, communication relay apparatus and communication system
JP5654418B2 (en) Inverter device
JP5811140B2 (en) Communications system
JP2019083663A (en) Power reception device and control method therefor, and program
US12199875B2 (en) Communication device, transmission method, and computer program
JP5601357B2 (en) Electronic control unit
JP4766349B2 (en) Field equipment
KR101561889B1 (en) Battery pack monitoring system and method for assigning a binary id to a microprocessor in the battery pack monitoring system
US11342960B2 (en) Relay device, relay method, and computer program
US8145812B1 (en) Line driving and receiving system
KR102233824B1 (en) Harmonic suppression device and harmonic suppression system
JP2014191724A (en) Input/output control device
JP6202196B2 (en) Power system
US11757799B2 (en) Line monitor device and network switch
US10908664B2 (en) POE power supply system
JP6496747B2 (en) TX / RX mode control in a serial half-duplex transceiver away from the communicating host
US20130223455A1 (en) Electronic device, communication control method, and recording medium
JP6471619B2 (en) Electronic equipment
US9465565B2 (en) Image forming apparatus and image formation method suitable for changing between the normal mode and sleep mode
KR101733817B1 (en) Plc system for choosing between input or output contact
JP2021064855A (en) Electronic control device
US11960432B2 (en) Serial data communication device and serial data communication method
JP2009171310A (en) Communication apparatus, and fault determination method in communication apparatus
JP6040952B2 (en) Communication system, electronic control device
US20200014553A1 (en) Prioritized serial communication

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140328

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140722

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140902

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140918

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141028

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141120

R150 Certificate of patent or registration of utility model

Ref document number: 5654418

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees