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
JP7440485B2 - Programmable controller and communication system - Google Patents
[go: Go Back, main page]

JP7440485B2 - Programmable controller and communication system - Google Patents

Programmable controller and communication system Download PDF

Info

Publication number
JP7440485B2
JP7440485B2 JP2021210017A JP2021210017A JP7440485B2 JP 7440485 B2 JP7440485 B2 JP 7440485B2 JP 2021210017 A JP2021210017 A JP 2021210017A JP 2021210017 A JP2021210017 A JP 2021210017A JP 7440485 B2 JP7440485 B2 JP 7440485B2
Authority
JP
Japan
Prior art keywords
communication
data
communication data
programmable controller
mirror port
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.)
Active
Application number
JP2021210017A
Other languages
Japanese (ja)
Other versions
JP2023094493A (en
Inventor
勝敏 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2021210017A priority Critical patent/JP7440485B2/en
Publication of JP2023094493A publication Critical patent/JP2023094493A/en
Application granted granted Critical
Publication of JP7440485B2 publication Critical patent/JP7440485B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルコントローラ及び通信システムに関する。 TECHNICAL FIELD The present invention relates to programmable controllers and communication systems.

プログラマブルコントローラは、通信回線(RS-232C/RS-485/イーサネット(Ethernet:登録商標)を用いて計測・制御機器と接続しデータの送受信を行うことにより計測・制御機器の制御を行う。 The programmable controller controls the measurement and control equipment by connecting to the measurement and control equipment using a communication line (RS-232C/RS-485/Ethernet (registered trademark)) and transmitting and receiving data.

その通信回線に伝送するデータは、プログラマブルコントローラ若しくは計測・制御機器にて通信データのプログラム若しくは通信設定を行う必要がある。 For data to be transmitted over the communication line, it is necessary to perform communication data programming or communication settings in a programmable controller or measurement/control equipment.

伝送するデータのプロトコル(伝送フォーマット)は、プログラマブルコントローラ、計測・制御機器共に同一にする必要がある。そのため、その様にプログラマブルコントローラ、計測・制御機器で通信プログラム若しくは通信設定を行う。 The protocol (transmission format) of the data to be transmitted needs to be the same for both the programmable controller and the measurement/control equipment. Therefore, communication programs or communication settings are performed in the programmable controller and measurement/control equipment.

プログラマブルコントローラと計測・制御機器を通信回線で接続したシステムを構成し立ち上げた場合、プログラマブルコントローラと計測・制御機器とのデータ送受信が正しく行うことが出来ないケースがある。 When a system in which a programmable controller and measurement/control equipment are connected via a communication line is configured and started up, there are cases where data cannot be sent and received correctly between the programmable controller and the measurement/control equipment.

その理由は、多くが通信ケーブルの接続ミス、通信データのプログラムミス、通信設定のミスである。 The reason for this is often a communication cable connection error, a communication data programming error, or a communication setting error.

ユーザは、プログラマブルコントローラと計測・制御機器を接続している通信回線(ケーブル)上にプロトコルアナライザを接続し通信回線上に正しくデータが流れているか確認し何が問題なのかを検証する(特許文献1参照)。 The user connects a protocol analyzer to the communication line (cable) connecting the programmable controller and measurement/control equipment, checks whether data is flowing correctly on the communication line, and verifies what the problem is (Patent Document (see 1).

特開平9-289510号公報Japanese Patent Application Publication No. 9-289510

特許文献1では、プログラマブルコントローラと計測・制御機器を接続している通信回線(ケーブル)上にプロトコルアナライザを接続し通信回線上に流れているデータを解析し送信データが流れていないのか、送信データに対する回答となる受信データが流れていないのかを確認し問題(データを流していない)となっている機器を探し出す。 In Patent Document 1, a protocol analyzer is connected to a communication line (cable) connecting a programmable controller and measurement/control equipment, and data flowing on the communication line is analyzed to determine whether or not transmitted data is flowing. Check whether the received data that is the answer to the problem is not flowing, and find the device that is causing the problem (not transmitting data).

送信データが流れていない場合は、通信ケーブルの接続ミス、送信データを出す機器の通信回路若しくは送信データを出すべき機器の通信プログラム若しくは通信設定にミスがあると想定される。このため、配線のやり直し、送信側の通信プログラムの修正を行う。 If the transmission data is not flowing, it is assumed that there is an error in the connection of the communication cable, the communication circuit of the device that outputs the transmission data, or the communication program or communication settings of the device that should output the transmission data. Therefore, the wiring needs to be redone and the communication program on the sending side needs to be corrected.

送信データが流れていて、それに対する回答となる受信データが流れていない場合は受信データを出す機器の通信回路若しくは受信データを出すべき機器の通信プログラム若しくは通信設定にミスがあると想定される。このため、受信側の通信プログラムの修正を行う。 If the transmitted data is flowing but the received data that is a response to it is not flowing, it is assumed that there is an error in the communication circuit of the device that outputs the received data, or in the communication program or communication settings of the device that should output the received data. Therefore, the communication program on the receiving side is modified.

特許文献1の手法では、あくまでの通信回線(ケーブル)上のデータで確認を行うため、送信側機器/受信側機器の計測・制御機器内部での問題(通信ICの故障など)による場合は解析が困難となる。 In the method of Patent Document 1, the data on the communication line (cable) is used for confirmation, so if there is a problem within the measurement/control equipment of the transmitter/receiver device (such as a failure of the communication IC), it cannot be analyzed. becomes difficult.

本発明の目的は、プログラマブルコントローラにおいて、計測・制御機器が正しく通信できず制御が出来ない場合でも検証を容易に行うことにある。 An object of the present invention is to easily perform verification in a programmable controller even when measurement/control equipment cannot communicate properly and cannot be controlled.

本発明の一態様のプログラマブルコントローラは、通信回線を介して計測制御機器と通信データの送受信を行うことにより前記計測制御機器の制御を行うプログラマブルコントローラであって、前記プログラマブルコントローラは、前記通信データを制御するマイクロプロセッサと、前記マイクロプロセッサと前記計測制御機器との間で、前記通信データを経由させる通信ICと、前記マイクロプロセッサが制御している前記通信データを外部モニタ用端末に出力するためのミラーポートとを有する。 A programmable controller according to one aspect of the present invention is a programmable controller that controls a measurement control device by transmitting and receiving communication data to and from the measurement control device via a communication line, and the programmable controller controls the measurement control device by transmitting and receiving communication data to and from the measurement control device via a communication line. a controlling microprocessor; a communication IC for passing the communication data between the microprocessor and the measurement control device; and a communication IC for outputting the communication data controlled by the microprocessor to an external monitoring terminal. It has a mirror port.

本発明の一態様によれば、プログラマブルコントローラにおいて、計測・制御機器が正しく通信できず制御が出来ない場合でも検証を容易に行うことができる。 According to one aspect of the present invention, in a programmable controller, verification can be easily performed even when measurement and control equipment cannot communicate properly and cannot be controlled.

プログラマブルコントローラ及び計測・制御機器を通信回線で接続したネットワークの構成図である。FIG. 1 is a configuration diagram of a network in which a programmable controller and measurement/control equipment are connected via a communication line. 実施例1のプログラマブルコントローラの構成図である。1 is a configuration diagram of a programmable controller of Example 1. FIG. 通信不具合の事例を示す図である。FIG. 3 is a diagram showing an example of communication failure. 他の通信不具合事例を示す図である。FIG. 7 is a diagram illustrating another example of communication failure. 他の通信不具合事例を示す図である。FIG. 7 is a diagram illustrating another example of communication failure. 実施例2のプログラマブルコントローラの構成図である。FIG. 2 is a configuration diagram of a programmable controller according to a second embodiment. ミラーポートの出力設定画面を示す図である。FIG. 3 is a diagram showing an output setting screen of a mirror port.

以下、実施例を図面を用いて説明する。 Examples will be described below with reference to the drawings.

図1は、プログラマブルコントローラ及び計測・制御機器を通信回線で接続したネットワーク構成図となる。 FIG. 1 is a network configuration diagram in which a programmable controller and measurement/control equipment are connected via communication lines.

上位レベル(情報レベル)にホストPC21、表示器(HMI)22を構成し通信回線を用いてプログラマブルコントローラ14と接続される。尚、図1ではイーサネット(Ethernet:登録商標)12となっているが、RS-485(11)で構成することもある。 A host PC 21 and a display device (HMI) 22 are configured at the upper level (information level), and are connected to the programmable controller 14 using a communication line. In addition, in FIG. 1, it is Ethernet (registered trademark) 12, but it may also be configured with RS-485 (11).

プログラマブルコントローラ14以下の下位レベル(デバイスレベル)には、計測・制御機器15、表示器(HMI)22を構成とし通信回線を用いて接続される。尚、図1では、RS-232C(10)/RS-485(11)となっているが、イーサネット(Ethernet:登録商標)12で構成することもある。 A lower level (device level) below the programmable controller 14 includes a measurement/control device 15 and a display (HMI) 22, and is connected using a communication line. In FIG. 1, RS-232C (10)/RS-485 (11) is used, but Ethernet (registered trademark) 12 may also be used.

プログラマブルコントローラ14は、通信回線を用いて計測・制御機器15の制御を行い、ホストPC21、表示器22は、通信回線を用いて下位レベルのプログラマブルコントローラ14、計測・制御機器15のデータのモニタ及び制御が可能である。 The programmable controller 14 controls the measurement/control equipment 15 using a communication line, and the host PC 21 and display 22 monitor and monitor data of the lower level programmable controller 14 and the measurement/control equipment 15 using the communication line. Control is possible.

ここでの計測・制御機器15とは、一般的なプログラマブルコントローラ、インバータ、位置決めモーションコントローラ、センサ等を表し、以下計測・制御機器15と称する。 The measurement/control equipment 15 here represents a general programmable controller, an inverter, a positioning motion controller, a sensor, etc., and is hereinafter referred to as the measurement/control equipment 15.

通信回線には、複数種類(RS-232C(10)/RS-485(11)/イーサネット(Ethernet:登録商標)(12)等)があるが、本実施例ではRS-485(11)(2線式、半2重回線)を用いて説明する。 There are multiple types of communication lines (RS-232C (10)/RS-485 (11)/Ethernet (registered trademark) (12), etc.), but in this example, RS-485 (11) (2) This will be explained using a wire system (wire system, half-duplex line).

通信回線上のデータをプロトコルアナライザ13で見る場合、プログラマブルコントローラ14及び計測・制御機器15の内部のマイクロプロセッサが制御している回線データではなく外部配線とのインターフェースに当たる通信ICを介したデータとなる。 When viewing the data on the communication line with the protocol analyzer 13, the data is not the line data controlled by the internal microprocessor of the programmable controller 14 and the measurement/control equipment 15, but is the data via the communication IC that interfaces with external wiring. .

そこで、本発明では、マイクロプロセッサが制御している通信データを直接、リアルタイムに計測することを可能にする。 Therefore, the present invention makes it possible to directly measure communication data controlled by a microprocessor in real time.

図2は、本発明の実施例1のプログラマブルコントローラの構成図である。
図2のように、プログラマブルコントローラ14のマイクロプロセッサ16と通信IC17の回路の他に外部モニタ用PC18に通信データを出力するために別系統の通信ポート(以下、ミラーポート19)を設けるハード構成とする。このハード構成により、マイクロプロセッサ16が制御している回線データを直接、リアルタイムに計測することが可能となる。
FIG. 2 is a configuration diagram of the programmable controller according to the first embodiment of the present invention.
As shown in FIG. 2, in addition to the circuits of the microprocessor 16 and communication IC 17 of the programmable controller 14, a separate communication port (hereinafter referred to as mirror port 19) is provided for outputting communication data to the external monitor PC 18. do. This hardware configuration makes it possible to directly measure the line data controlled by the microprocessor 16 in real time.

プログラマブルコントローラ14は、通信回線を介して計測・制御機器15と通信データの送受信を行うことにより計測・制御機器15の制御を行う。プログラマブルコントローラ14は、通信データを制御するマイクロプロセッサ16と、マイクロプロセッサ16と計測・制御機器15との間で通信データを経由させる通信IC17と、マイクロプロセッサ16が制御している通信データを外部モニタ用PC18に出力するためのミラーポート19を有する。 The programmable controller 14 controls the measurement and control equipment 15 by transmitting and receiving communication data to and from the measurement and control equipment 15 via a communication line. The programmable controller 14 includes a microprocessor 16 that controls communication data, a communication IC 17 that passes communication data between the microprocessor 16 and measurement/control equipment 15, and an external monitor for communication data controlled by the microprocessor 16. It has a mirror port 19 for outputting to a personal computer 18.

マイクロプロセッサ16は、通信データとして、計測・制御機器15から送信された送信データと、送信データに対する計測・制御機器15への回答である受信データを制御する。 The microprocessor 16 controls, as communication data, transmission data transmitted from the measurement/control device 15 and reception data that is a reply to the measurement/control device 15 in response to the transmission data.

外部モニタ用PC18に通信データを出力するミラーポート19には、RS-232C、USB、イーサネット(Ethernet:登録商標)のいずれかにて接続となる。そのため、いずれかの通信IC(インターフェース回路)にて構成する必要がある。 The mirror port 19 that outputs communication data to the external monitor PC 18 is connected to one of RS-232C, USB, and Ethernet (registered trademark). Therefore, it is necessary to configure it using one of the communication ICs (interface circuits).

プログラマブルコントローラ14のマイクロプロセッサ16は、計測・制御機器15と通信している送信データ及び受信データと同じデータをミラーポート19より出力する。 The microprocessor 16 of the programmable controller 14 outputs the same data as the transmission data and reception data communicating with the measurement/control device 15 from the mirror port 19 .

プログラマブルコントローラ14と計測・制御機器15とのデータ送受信が正しく行うことが出来ない場合、このミラーポート19より出力されるデータと、通信回線(ケーブル)上の通信データを比較する。 If data transmission/reception between the programmable controller 14 and the measurement/control equipment 15 cannot be performed correctly, the data output from the mirror port 19 and the communication data on the communication line (cable) are compared.

これにより、通信ケーブルの接続ミス、送信データを出す機器の通信回路不具合、送信データを出すべき機器の通信プログラム若しくは通信設定にミス、受信データを出す機器の通信回路不具合、受信データを出すべき機器の通信プログラム若しくは通信設定にミスかどうか不具合要因を判定できる。 This may result in a communication cable connection error, a communication circuit malfunction in the device that outputs the transmitted data, an error in the communication program or communication settings of the device that should output the transmitted data, a communication circuit malfunction in the device that outputs the received data, or a device that should output the received data. The cause of the problem can be determined whether there is a mistake in the communication program or communication settings.

ミラーポート19より出力されたデータは、外部モニタ用PC上18のコンソールウインド(図7参照)で確認できる。 The data output from the mirror port 19 can be confirmed on the console window of the external monitor PC 18 (see FIG. 7).

正常に動作する場合には、プロトコルアナライザ13によって計測した通信回線(ケーブル)上の通信データとミラーポート19からの通信データが一致することとになる。 In the case of normal operation, the communication data on the communication line (cable) measured by the protocol analyzer 13 and the communication data from the mirror port 19 will match.

ミラーポート19の通信データは、リアルタイムに計測が可能のため即時、通信データの送信、通信データの受信が行われているか容易に判定できる。 Since the communication data of the mirror port 19 can be measured in real time, it can be easily determined immediately whether communication data is being transmitted or received.

不具合要因を判定する一例を下記に示す。プロトコルアナライザ13による通信回線(ケーブル)上の通信データとミラーポート19からの通信データが全く無い場合(反応無し)、通信ケーブルの接続ミスが想定される。 An example of determining the cause of the failure is shown below. If there is no communication data on the communication line (cable) by the protocol analyzer 13 and communication data from the mirror port 19 (no response), a connection error in the communication cable is assumed.

図3のように、プロトコルアナライザ13による通信回線(ケーブル)上の通信データに送信データが計測されるが、ミラーポート19からの通信データが全く無い場合(反応無し)、受信データを出すべき機器(プログラムコントローラ14)の通信回路不具合が想定される。 As shown in Fig. 3, transmission data is measured by the protocol analyzer 13 in the communication data on the communication line (cable), but if there is no communication data from the mirror port 19 (no response), the device that should output the reception data (Program controller 14) communication circuit malfunction is assumed.

図4のように、プロトコルアナライザ13による通信回線(ケーブル)上の通信データに送信データが計測され、ミラーポート19からも送信データが計測されているが応答データが無い場合は受信データを出すべき機器(プログラムコントローラ14)の通信プログラム若しくは通信設定にミス想定される。 As shown in Figure 4, transmission data is measured in the communication data on the communication line (cable) by the protocol analyzer 13, and transmission data is also measured from the mirror port 19, but if there is no response data, the reception data should be output. An error is assumed in the communication program or communication settings of the device (program controller 14).

図5のように、プロトコルアナライザ13による通信回線(ケーブル)上の通信データに送信データが計測され、ミラーポート19からも送信データ及び受信データが計測されるが通信回線(ケーブル)上に受信データが計測できない場合は、受信データを出すべき機器(プログラムコントローラ14)の通信回路不具合が想定される。 As shown in FIG. 5, transmission data is measured as communication data on the communication line (cable) by the protocol analyzer 13, and transmission data and reception data are also measured from the mirror port 19, but the reception data is measured on the communication line (cable). If it cannot be measured, it is assumed that there is a malfunction in the communication circuit of the device (program controller 14) that should output the received data.

図2のように、プロトコルアナライザ13による通信回線(ケーブル)上の通信データに送信データ及び受信データが計測され、ミラーポート19からも送信データ及び受信データが計測されるが、計測・制御機器15が正しく受信出来ていない場合は受信データを出すべき機器(プログラムコントローラ14)の通信プログラム若しくは受信データを受け取る機器の通信プログラムのミスが想定される。 As shown in FIG. 2, transmission data and reception data are measured as communication data on the communication line (cable) by the protocol analyzer 13, and transmission data and reception data are also measured from the mirror port 19, but the measurement/control device 15 If the received data cannot be received correctly, it is assumed that there is a mistake in the communication program of the device that should output the received data (program controller 14) or the communication program of the device that receives the received data.

上記のように、ミラーポート19から通信データをリアルタイムで見えることにより、プログラムコントローラ14と計測・制御機器15の通信が確立できず制御が行えない場合に問題の検証が容易となり早期不具合からの立上げに貢献できる。 As mentioned above, by viewing the communication data from the mirror port 19 in real time, it becomes easier to verify the problem when communication cannot be established between the program controller 14 and the measurement/control equipment 15 and control cannot be performed. You can contribute to the increase.

実施例1では、プログラマブルコントローラ14の通信IC17が故障した場合、ミラーポート19からはプログラマブルコントローラ14側の通信データを見ることが不可能となる。 In the first embodiment, if the communication IC 17 of the programmable controller 14 fails, it becomes impossible to view the communication data on the programmable controller 14 side from the mirror port 19.

そこで、実施例2では、プログラマブルコントローラ14の通信IC17が故障した場合でも、ミラーポート19からプログラマブルコントローラ14側の通信データを見ることを可能にする。 Therefore, in the second embodiment, even if the communication IC 17 of the programmable controller 14 fails, it is possible to view the communication data on the programmable controller 14 side from the mirror port 19.

図6は実施例2のプログラマブルコントローラ14のハードウェア構成を示す。
実施例2のプログラマブルコントローラ14が図2に示す実施例1のプログラマブルコントローラ14と異なる点は、ミラーポート19に専用のミラーポート用通信IC20を新たに設けた点である。その他の構成は、図2に示す実施例1のプログラマブルコントローラ14と同じなのでその説明は省略する。
FIG. 6 shows the hardware configuration of the programmable controller 14 of the second embodiment.
The programmable controller 14 of the second embodiment differs from the programmable controller 14 of the first embodiment shown in FIG. 2 in that a dedicated mirror port communication IC 20 is newly provided in the mirror port 19. The rest of the configuration is the same as the programmable controller 14 of the first embodiment shown in FIG. 2, so a description thereof will be omitted.

このように、実施例2では、ミラーポート19専用にミラーポート用通信IC20を別系統に設けた構成とする。これにより、プログラマブルコントローラ14の通信IC17が故障した場合も、別系統で設けたミラーポート用通信IC20経由で通信回線(ケーブル)上の通信データを見ることが可能となる。 In this manner, in the second embodiment, the mirror port communication IC 20 is provided in a separate system exclusively for the mirror port 19. As a result, even if the communication IC 17 of the programmable controller 14 fails, communication data on the communication line (cable) can be viewed via the mirror port communication IC 20 provided in a separate system.

また、他局の計測・制御機器が行っている回線データも別系統のミラーポート用通信IC20を経由しリアルタイムに計測することが可能となる。 In addition, it becomes possible to measure line data carried out by measurement/control equipment of other stations in real time via the mirror port communication IC 20 of another system.

実施例1、2では、通信データの全てをリアルタイムにミラーポート19より出力するため自局/他局に頻繁な通信データが行われている場合、膨大な通信データが表示されるため必要な通信データを探し出す必要が発生する。 In Embodiments 1 and 2, all communication data is output from the mirror port 19 in real time, so if there is frequent communication data between the local station and other stations, a huge amount of communication data will be displayed, so the necessary communication There is a need to find data.

実施例3では、外部モニタ用PC13上のコンソールウインド等からマイクロプロセッサ16にミラーポート19から出力する通信データの個別設定を可能とする。 In the third embodiment, it is possible to individually set the communication data to be output from the mirror port 19 to the microprocessor 16 from a console window or the like on the external monitor PC 13.

設定パターンの例としては、自局宛に送信されたデータの受信、自局が送信した通信データ、特定他局に送受信された通信データ、通信データ内容に特定(トリガー)の送受信データといった設定パターンを想定する。 Examples of setting patterns include reception of data sent to the own station, communication data sent by the own station, communication data sent/received to a specific other station, and sending/receiving data specific (trigger) to the communication data content. Assume that

設定画面例を図7に示す。ここで、設定された情報をマイクロプロセッサ16に登録することで、マイクロプロセッサ16は頻繁な通信データから設定された条件に合った通信データのみミラーポート19から外部モニタ用PC上に出力する。これにより、必要な通信データのみをリアルタイムに見ることが容易となる。 An example of the setting screen is shown in FIG. By registering the set information in the microprocessor 16, the microprocessor 16 outputs only the communication data that meets the set conditions from the frequent communication data to the external monitoring PC from the mirror port 19. This makes it easy to view only necessary communication data in real time.

上記実施例で説明してきたミラーポート19から出力される通信データは、外部モニタ用PC上18のコンソールウインド等にリアルタイムに表示されるだけである。 The communication data output from the mirror port 19 described in the above embodiments is only displayed in real time on a console window or the like on the external monitor PC 18.

実施例4では、外部モニタ用PC上18のコンソールウインド等からマイクロプロセッサ16にミラーポート19から出力する通信データにタイムスタンプの表示/非表示設定を可能とする。 In the fourth embodiment, it is possible to set whether or not to display a time stamp on the communication data output from the mirror port 19 to the microprocessor 16 from the console window of the external monitor PC 18 or the like.

設定画面を図7に示す。ここで設定されたタイムスタンプの表示/非表示設定をマイクロプロセッサ16に登録することで、マイクロプロセッサ16はミラーポート19から出力する通信データにタイプスタンプ付加する。 The setting screen is shown in FIG. By registering the timestamp display/hide setting set here in the microprocessor 16, the microprocessor 16 adds a timestamp to the communication data output from the mirror port 19.

これにより、タイムスタンプ付きの通信データの表示となるため、通信の開始時刻、通信データ間のアイドル時間(待ち時間)など時間軸での通信データ表示が可能となる。 As a result, communication data with a time stamp is displayed, so communication data can be displayed on a time axis, such as communication start time and idle time (waiting time) between communication data.

また、マイクロプロセッサ16が通信データにタイムスタンプを付加させる方法を説明したが、マイクロプロセッサ側にタイムスタンプを付加させず外部モニタ用PC18がミラーポート19から通信データを受け取った際にタイムスタンプを付加する方法もある。これにより、マイクロプロセッサ16の負荷を低減させることが出来る。 In addition, although we have explained how the microprocessor 16 adds a timestamp to communication data, it is also possible to add a timestamp when the external monitor PC 18 receives communication data from the mirror port 19 without adding a timestamp on the microprocessor side. There is a way to do that. Thereby, the load on the microprocessor 16 can be reduced.

上記実施例では、プログラマブルコントローラ14のマイクロプロセッサ16と通信IC17の回路の他に、外部モニタ用PC18に通信データを出力するために別系統の通信ポートであるミラーポート19を設けたハード構成とする。これにより、マイクロプロセッサ16が制御している回線データ(計測・制御機器15と通信している送信データ、受信データ)を別系統に設けたミラーポート19より出力し、リアルタイムに外部モニタ用PC18上のコンソールウインド等で確認を行える。 In the above embodiment, in addition to the microprocessor 16 and communication IC 17 circuits of the programmable controller 14, the hardware configuration includes a mirror port 19, which is a separate communication port, for outputting communication data to the external monitor PC 18. . As a result, the line data controlled by the microprocessor 16 (transmission data and reception data communicating with the measurement/control equipment 15) is output from the mirror port 19 provided in a separate system, and is displayed on the external monitor PC 18 in real time. You can check this using the console window, etc.

また、プログラマブルコントローラ14のマイクロプロセッサ16と通信IC17の回路とは別系統のミラーポート用通信IC20を設けた構成とし、マイクロプロセッサ16が制御している回線データ及び他局の計測・制御機器が行っている回線データを別系統のミラーポート用通信IC20を経由しリアルタイムに計測することを可能とする。 In addition, a mirror port communication IC 20 is provided in a separate system from the microprocessor 16 and communication IC 17 circuits of the programmable controller 14, and the line data controlled by the microprocessor 16 and the measurement/control equipment of other stations are It is possible to measure line data in real time via a mirror port communication IC 20 of a separate system.

また、外部モニタ用PC13上のコンソールウインド等からマイクロプロセッサ16にミラーポート19から出力する通信データの個別設定を可能とする。 Furthermore, it is possible to individually set communication data to be output from the mirror port 19 to the microprocessor 16 from a console window on the external monitor PC 13 or the like.

また、外部モニタ用PC上18のコンソールウインド等からマイクロプロセッサ16にミラーポート19から出力する通信データにタイムスタンプの表示/非表示設定を可能とする。 Furthermore, it is possible to set whether or not to display a time stamp on the communication data output from the mirror port 19 to the microprocessor 16 from a console window on the external monitor PC 18 or the like.

上記実施例により、マイクロプロセッサが制御している送受信データを直接確認できるため、各計測・制御機器が正しく通信できず制御が出来ない場合でも、計測・制御機器内部での問題(通信ICの故障、通信プログラムミス)か、通信回線のケーブル配線ミスによるものなのかの検証が容易となる。 With the above embodiment, it is possible to directly check the transmitted and received data controlled by the microprocessor, so even if each measurement and control device cannot communicate properly and control cannot be performed, problems within the measurement and control device (communication IC failure) can be avoided. This makes it easy to verify whether the problem is due to a communication program error (such as a communication program error) or a cable wiring error on the communication line.

尚、プログラマブルコントローラと計測・制御機器とのデータ送受信が正しく行うことが出来ない場合において、ミラーポートより出力されるデータと通信回線上の通信データの比較は、目視で行っても良いし、自動的に行っても良い。 In addition, if data cannot be sent and received correctly between the programmable controller and the measurement/control equipment, the data output from the mirror port and the communication data on the communication line may be compared visually or automatically. You can go there as well.

13 プロトコルアナライザ
14 プログラマブルコントローラ
15 計測・制御機器
16 マイクロプロセッサ
17 通信IC
18 外部モニタ用PC
19 ミラーポート
20 ミラーポート用通信IC
21 ホストPC
22 表示器
13 Protocol analyzer 14 Programmable controller 15 Measurement/control equipment 16 Microprocessor 17 Communication IC
18 External monitor PC
19 Mirror port 20 Communication IC for mirror port
21 Host PC
22 Display

Claims (15)

通信回線を介して計測制御機器と通信データの送受信を行うことにより前記計測制御機器の制御を行うプログラマブルコントローラであって、
前記プログラマブルコントローラは、
前記通信データを制御するマイクロプロセッサと、
前記マイクロプロセッサと前記計測制御機器との間で、前記通信データを経由させる通信ICと、
前記マイクロプロセッサが制御している前記通信データを外部モニタ用端末に出力するためのミラーポートと、
を有することを特徴とするプログラマブルコントローラ。
A programmable controller that controls the measurement control device by transmitting and receiving communication data to and from the measurement control device via a communication line,
The programmable controller includes:
a microprocessor that controls the communication data;
a communication IC that allows the communication data to pass between the microprocessor and the measurement control device;
a mirror port for outputting the communication data controlled by the microprocessor to an external monitor terminal;
A programmable controller characterized by having.
前記マイクロプロセッサは、
前記通信データとして、前記計測制御機器から送信された送信データと、前記送信データに対する前記計測制御機器への回答である受信データを制御することを特徴とする請求項1に記載のプログラマブルコントローラ。
The microprocessor includes:
The programmable controller according to claim 1, wherein the programmable controller controls, as the communication data, transmission data transmitted from the measurement control device and reception data that is a response to the measurement control device in response to the transmission data.
前記マイクロプロセッサは、
前記送信データと前記受信データの少なくとも一つのデータと同じデータを前記ミラーポートから出力させること特徴とする請求項2に記載のプログラマブルコントローラ。
The microprocessor includes:
3. The programmable controller according to claim 2, wherein the same data as at least one of the transmission data and the reception data is outputted from the mirror port.
前記ミラーポート用に設けられたミラーポート専用通信ICを更に有し、
前記ミラーポート専用通信ICは、
前記通信ICが故障した場合、前記通信データを前記外部モニタ用端末に出力することを特徴とする請求項1に記載のプログラマブルコントローラ。
further comprising a mirror port dedicated communication IC provided for the mirror port,
The mirror port dedicated communication IC is
The programmable controller according to claim 1, wherein when the communication IC fails, the communication data is output to the external monitoring terminal.
前記ミラーポートは、インターフェース回路により構成されることを特徴とする請求項1に記載のプログラマブルコントローラ。 The programmable controller according to claim 1, wherein the mirror port is configured by an interface circuit. 計測制御機器と、
前記計測制御機器と通信回線を介して接続され、通信データの送受信を行うことにより前記計測制御機器の制御を行うプログラマブルコントローラと、
前記プログラマブルコントローラに接続された外部モニタ用端末と、を有する通信システムであって、
前記プログラマブルコントローラは、
前記通信データを制御するマイクロプロセッサと、
前記マイクロプロセッサと前記計測制御機器との間で、前記通信データを経由させる通信ICと、
前記マイクロプロセッサが制御している前記通信データを外部モニタ用端末に出力するためのミラーポートと、
を有することを特徴とする通信システム。
measurement control equipment,
a programmable controller that is connected to the measurement control device via a communication line and controls the measurement control device by transmitting and receiving communication data;
A communication system comprising: an external monitor terminal connected to the programmable controller;
The programmable controller includes:
a microprocessor that controls the communication data;
a communication IC that allows the communication data to pass between the microprocessor and the measurement control device;
a mirror port for outputting the communication data controlled by the microprocessor to an external monitor terminal;
A communication system comprising:
前記外部モニタ用端末は、
コンソールウインドを有し、
前記ミラーポートから出力される前記通信データを前記コンソールウインドに表示することを特徴とする請求項6に記載の通信システム。
The external monitor terminal is
It has a console window,
7. The communication system according to claim 6, wherein the communication data output from the mirror port is displayed on the console window.
前記外部モニタ用端末は、
前記ミラーポートから出力される前記通信データのすべてのデータを前記コンソールウインドにリアルタイムに表示することを特徴とする請求項7に記載の通信システム。
The external monitor terminal is
8. The communication system according to claim 7, wherein all of the communication data output from the mirror port is displayed in real time on the console window.
前記外部モニタ用端末は、
前記コンソールウインドを介して、前記通信データの中の所定のデータを表示するように個別に設定可能であり、
前記マイクロプロセッサは、
個別に設定された前記所定のデータを前記ミラーポートから前記外部モニタ用端末に出力し、
前記外部モニタ用端末は、
前記ミラーポートから出力された前記所定のデータだけを前記コンソールウインドに表示することを特徴とする請求項7に記載の通信システム。
The external monitor terminal is
Predetermined data in the communication data can be individually configured to be displayed via the console window,
The microprocessor includes:
outputting the individually set predetermined data from the mirror port to the external monitor terminal;
The external monitor terminal is
8. The communication system according to claim 7, wherein only the predetermined data output from the mirror port is displayed on the console window.
前記外部モニタ用端末は、
前記コンソールウインドを介して、前記通信データに対してタイムスタンプの表示又は非表示を設定可能であり、
前記マイクロプロセッサは、
前記タイムスタンプの表示又は非表示の設定を登録し、登録された前記設定に基づいて、前記タイムスタンプが表示された前記通信データ又は前記タイムスタンプが表示されていない前記通信データを前記ミラーポートから前記外部モニタ用端末に出力し、
前記外部モニタ用端末は、
前記ミラーポートから出力された前記タイムスタンプが表示された前記通信データ又は前記タイムスタンプが表示されていない前記通信データを前記コンソールウインドに表示することを特徴とする請求項7に記載の通信システム。
The external monitor terminal is
Via the console window, display or non-display of a timestamp can be set for the communication data,
The microprocessor includes:
The display or non-display setting of the time stamp is registered, and based on the registered setting, the communication data with the time stamp displayed or the communication data without the time stamp displayed is transmitted from the mirror port. Output to the external monitor terminal,
The external monitor terminal is
8. The communication system according to claim 7, wherein the communication data with the time stamp displayed or the communication data without the time stamp outputted from the mirror port is displayed on the console window.
前記外部モニタ用端末は、
前記タイムスタンプが表示された前記通信データとして、通信の開始時刻と前記通信データ間の待ち時間を時間軸で表示することを特徴とする請求項10に記載の通信システム。
The external monitor terminal is
11. The communication system according to claim 10, wherein as the communication data on which the time stamp is displayed, a communication start time and a waiting time between the communication data are displayed on a time axis.
前記外部モニタ用端末は、
前記コンソールウインドを介して、前記通信データにタイムスタンプの表示又は非表示を設定可能であり、
前記外部モニタ用端末は、
前記タイムスタンプの表示又は非表示の設定に基づいて、前記タイムスタンプが表示された前記通信データ又は前記タイムスタンプが表示されていない前記通信データを前記コンソールウインドに表示することを特徴とする請求項7に記載の通信システム。
The external monitor terminal is
Via the console window, display or non-display of a timestamp can be set in the communication data,
The external monitor terminal is
A claim characterized in that the communication data with the timestamp displayed or the communication data without the timestamp displayed is displayed on the console window based on a setting for displaying or not displaying the timestamp. 7. The communication system according to 7.
前記外部モニタ用端末は、
前記タイムスタンプが表示された前記通信データとして、通信の開始時刻と前記通信データ間の待ち時間を時間軸で表示することを特徴とする請求項12に記載の通信システム。
The external monitor terminal is
13. The communication system according to claim 12, wherein as the communication data on which the time stamp is displayed, a communication start time and a waiting time between the communication data are displayed on a time axis.
前記プログラマブルコントローラは、
前記ミラーポート用に設けられたミラーポート専用通信ICを更に有し、
前記ミラーポート専用通信ICは、
前記通信ICが故障した場合、前記通信データを前記外部モニタ用端末に出力することを特徴とする請求項6に記載の通信システム。
The programmable controller includes:
further comprising a mirror port dedicated communication IC provided for the mirror port,
The mirror port dedicated communication IC is
7. The communication system according to claim 6, wherein when the communication IC fails, the communication data is output to the external monitoring terminal.
前記通信回線上の前記通信データを計測するプロトコルアナライザを更に有することを特徴とする請求項6に記載の通信システム。 7. The communication system according to claim 6, further comprising a protocol analyzer that measures the communication data on the communication line.
JP2021210017A 2021-12-23 2021-12-23 Programmable controller and communication system Active JP7440485B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021210017A JP7440485B2 (en) 2021-12-23 2021-12-23 Programmable controller and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2021210017A JP7440485B2 (en) 2021-12-23 2021-12-23 Programmable controller and communication system

Publications (2)

Publication Number Publication Date
JP2023094493A JP2023094493A (en) 2023-07-05
JP7440485B2 true JP7440485B2 (en) 2024-02-28

Family

ID=87001332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021210017A Active JP7440485B2 (en) 2021-12-23 2021-12-23 Programmable controller and communication system

Country Status (1)

Country Link
JP (1) JP7440485B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011035664A (en) 2009-07-31 2011-02-17 Omron Corp Controller
CN205301460U (en) 2015-11-27 2016-06-08 东旭(营口)光电显示有限公司 Electric spare parts detection mechanism
JP2019016932A (en) 2017-07-07 2019-01-31 オムロン株式会社 Control system and control method
JP2020150485A (en) 2019-03-15 2020-09-17 オムロン株式会社 Control system, equipment and control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11338515A (en) * 1998-05-26 1999-12-10 Matsushita Electric Works Ltd Programmable controller and programmable controller system using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011035664A (en) 2009-07-31 2011-02-17 Omron Corp Controller
CN205301460U (en) 2015-11-27 2016-06-08 东旭(营口)光电显示有限公司 Electric spare parts detection mechanism
JP2019016932A (en) 2017-07-07 2019-01-31 オムロン株式会社 Control system and control method
JP2020150485A (en) 2019-03-15 2020-09-17 オムロン株式会社 Control system, equipment and control method

Also Published As

Publication number Publication date
JP2023094493A (en) 2023-07-05

Similar Documents

Publication Publication Date Title
US8374094B2 (en) Methods and systems to verify a communication path between a field device and a process controller in a process control system
US8112565B2 (en) Multi-protocol field device interface with automatic bus detection
US8774204B2 (en) Handheld field maintenance bus monitor
EP1477952B1 (en) Data transmission method for a multiprotocol handheld field maintenance tool
US20010016891A1 (en) Control system
US20130131833A1 (en) Method, computer program, computer-readable medium and processing unit for controlling field devices
WO2003079125A2 (en) Hand held diagnostic and communication device with automatic bus detection
JP2014526095A (en) Portable field maintenance tool with process communication channel
US10007633B2 (en) Field bus coupler for connecting input/output modules to a field bus, and method of operation for a field bus coupler
US20060236189A1 (en) Distributed control apparatus
US11508191B1 (en) Vehicle diagnostic interface device
JP7440485B2 (en) Programmable controller and communication system
US9094295B2 (en) Communication device, and wiring state detection method and non-transitory computer-readable medium storing program using communication device
US20020128986A1 (en) Communication system for franking system
CN107656512B (en) Connection monitoring field maintenance tool
KR100790812B1 (en) Communication error detection device and method of multi-type air conditioner
US11402244B2 (en) Automatic calibration of a measuring circuit
CN113778796B (en) Method for monitoring serial port communication through USB
JP2006065385A (en) Field equipment
US9037909B2 (en) Test apparatus
KR20040089725A (en) Radio-communication-adjustable apparatus, apparatus adjusting method, and apparatus adjusting system
KR100378129B1 (en) Touchscreen examination system including analytical function for protocol and method thereof
KR102857377B1 (en) Web Socket Based Remote Management System for Numerical Control Equipment
JPH0530574A (en) Automatic gauge examination system using catv line
JP2002011927A (en) Imaging apparatus and optional unit and method for detecting abnormality of wiring

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230825

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: 20240206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240215

R150 Certificate of patent or registration of utility model

Ref document number: 7440485

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150