JP2005063357A - Cable disconnection detection method - Google Patents

Cable disconnection detection method Download PDF

Info

Publication number
JP2005063357A
JP2005063357A JP2003296084A JP2003296084A JP2005063357A JP 2005063357 A JP2005063357 A JP 2005063357A JP 2003296084 A JP2003296084 A JP 2003296084A JP 2003296084 A JP2003296084 A JP 2003296084A JP 2005063357 A JP2005063357 A JP 2005063357A
Authority
JP
Japan
Prior art keywords
communication
plc
engineering
engineering tool
cable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003296084A
Other languages
Japanese (ja)
Inventor
Hiroo Haraguchi
浩朗 原口
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2003296084A priority Critical patent/JP2005063357A/en
Publication of JP2005063357A publication Critical patent/JP2005063357A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that a user is not aware of the state of communication till a software timer detects a time-out and unable to execute any engineering operations while the communication is not established due to the disagreement of communication speeds, cable disconnection, omission, the power disconnection of a partner PLC or the like. <P>SOLUTION: In a control device, an engineering tool operating on a personal computer is connected to a PLC in one-to-one correspondence through an RS-232C cable. In this case, the engineering tool checks the state of communication with the partner PLC and detects a communication error with a software timer when the engineering is operated. The control device executes dummy communications with the partner PLC when the engineering tool is started, and stores the state of the communication on a memory inside the engineering tool. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、パソコン上で動作するエンジニアリングツールとPLCがRS-232Cケーブルで1対1に接続される制御システムであって、エンジニアリングツール起動時に相手PLCとの通信状態を自動的にチェックし、通信不能状態である場合パソコン画面に通信状態を表示し、エンジニアリング操作を行うユーザに対して警告を発し、エラー要因を早期に取り除くことを促すケーブル断線検出方法に関する。   The present invention is a control system in which an engineering tool operating on a personal computer and a PLC are connected one-to-one with an RS-232C cable, and automatically checks the communication status with the partner PLC when the engineering tool is started. The present invention relates to a cable disconnection detection method that displays a communication state on a personal computer screen when it is in an impossible state, issues a warning to a user who performs an engineering operation, and prompts the error factor to be removed early.

従来、パソコンで動作するエンジニアリングツールとPLCがRS-232Cで1対1に接続された制御装置において、エンジニアリング操作を行う場合、ユーザのエンジニアリング操作をトリガとして、エンジニアリングツールからPLCに対し指令データを送信し、エンジニアリングツール内部でPLCからの応答伝文が受信されるまでをソフトウェアタイマで監視おり、一定時間内に応答が受信されない場合に通信不能状態であると判断し、ユーザに対してエラー通知を行っていた(例えば、特許文献1参照)。
図4は、従来のエンジニアリングツールにおけるフローチャートである。
図4に示す従来のエンジニアリングツールでは、エンジニアリングツール起動時、RS-232Cポートの初期化を行う。その後、ユーザからのエンジニアリング操作をトリガとし、PLCに対して指令データを送信する。このとき、エンジニアリングツールはソフトウェアタイマを使用しPLCからの応答データを受信するまでのタイムアウト時間を設定する。PLCへの指令データ送信後、一定時間内にPLCからの応答データが受信出来ない場合、タイムアウトと判断し、ユーザに対してエラーを通知する。そのためRS-232Cケーブル断線、抜け、通信速度不一致、PLC電源断等で通信不能状態の場合、エンジニアリングツールはソフトウェアタイマのタイムアウトが検出されるまで待たされ、他のエンジニアリング操作を行うことが出来ない。
特開平7−63805号公報
Conventionally, when engineering operation is performed in a control device in which the engineering tool running on a personal computer and the PLC are connected one-to-one via RS-232C, the engineering tool sends the command data to the PLC using the user's engineering operation as a trigger. Until the response message from the PLC is received within the engineering tool, it is monitored by the software timer, and if no response is received within a certain time, it is determined that communication is not possible and an error notification is sent to the user. (For example, refer to Patent Document 1).
FIG. 4 is a flowchart of a conventional engineering tool.
In the conventional engineering tool shown in FIG. 4, the RS-232C port is initialized when the engineering tool is activated. Then, command data is transmitted to the PLC using the engineering operation from the user as a trigger. At this time, the engineering tool uses a software timer to set a timeout period until receiving response data from the PLC. If the response data from the PLC cannot be received within a certain time after sending the command data to the PLC, it is determined as a timeout and an error is notified to the user. Therefore, if communication is not possible due to RS-232C cable disconnection, disconnection, communication speed mismatch, PLC power supply disconnection, etc., the engineering tool will wait until a software timer timeout is detected and no other engineering operations can be performed.
JP-A-7-63805

従来のユーザのエンジニアリング操作をトリガとし、PLCと指令/応答型の通信を行う場合、エンジニアリングツール内部のソフトウェアタイマでPLCからの応答データの受信を監視していたため、通信速度不一致、ケーブル断線、抜け、相手PLC電源断などの要因で通信不能状態にある場合、ソフトウェアタイマでタイムアウトを検出するまで通信状態が分からず、その間ユーザは他のエンジニアリング操作が何もできないといった問題があった。
そこで、本発明はこのような問題点を解決するケーブル断線検出方法を提供することを目的とする。
When performing command / response communication with a PLC using a conventional user engineering operation as a trigger, the reception of response data from the PLC was monitored by the software timer in the engineering tool, resulting in a communication speed mismatch, cable disconnection, or disconnection. When the communication is not possible due to the other party's PLC power being cut off, the communication state is not known until a timeout is detected by the software timer, during which the user cannot perform any other engineering operation.
Accordingly, an object of the present invention is to provide a cable disconnection detection method that solves such problems.

上記課題を解決するために、本発明では、パソコン上で動作するエンジニアリングツールとPLCがRS-232Cケーブルで1対1に接続される制御装置において、エンジニアリングツール起動時にエンジニアリングツールからPLCに対してダミーの指令データを送信し、正常に応答データが返されるかをチェックする。PLCから正常にダミーの応答データが返された場合通信可能状態であり、PLCからのダミーの応答データが正常に受信出来ない場合通信不可状態であると判断し、その通信状態をエンジニアリングツール内のメモリ上に保存する。その後の、ユーザのエンジニアリング操作時、エンジニアリングツール内に記憶している通信状態をチェックし、通信不能状態である場合、パソコン画面上に通信不能状態であるという警告のダイアログボックスを表示する。
これにより、ユーザは通信不能状態であるということがわかり、エンジニアリングツールの通信タイムアウト検出まで待つ必要が無く、エラー要因を早期に取り除くことが出来る。通信可能状態である場合、RS-232C通信、PLCが正常であると判断し、ユーザからのエンジニアリング操作をそのまま実行する。
In order to solve the above problems, in the present invention, in the control device in which the engineering tool operating on the personal computer and the PLC are connected one-to-one with the RS-232C cable, when the engineering tool is started, the engineering tool performs a dummy operation on the PLC. The command data is sent and it is checked whether the response data is returned normally. If the dummy response data is returned normally from the PLC, it is in a communicable state. If the dummy response data from the PLC cannot be received normally, it is determined that the communication is not possible. Save to memory. Thereafter, when the user performs an engineering operation, the communication state stored in the engineering tool is checked. If the communication state is incapable, a warning dialog box indicating that the communication is incapable is displayed on the personal computer screen.
As a result, it can be seen that the user is in a communication disabled state, and it is not necessary to wait until the communication tool detects a communication timeout, and the error factor can be removed early. If the communication is possible, it is determined that the RS-232C communication and PLC are normal, and the engineering operation from the user is executed as it is.

本発明によれば、パソコン上で動作するエンジニアリングツールとPLCがRS-232Cケーブルで1対1で接続された制御装置において、エンジニアリングツール起動直後にPLCとのダミー通信を行うことで、ケーブル断線、抜け、通信速度不一致、相手PLC電源断等のエラー要因があるどうかを判断することが出来る。これにより、エンジニアリング操作を行う前にユーザに対して通信状態を通知することができ、実際に通信を行う前にエラー要因を取り除くことが可能となる。また、エンジニアリングツールのソフトウェアタイマのタイムアウト検出まで待たされるということが無くなり、その間他のエンジニアリング操作が出来ないといった状況が改善される。   According to the present invention, in a control device in which an engineering tool operating on a personal computer and a PLC are connected one-to-one with an RS-232C cable, a dummy communication with the PLC is performed immediately after the engineering tool is started. It is possible to determine whether there is an error factor such as missing, communication speed mismatch, partner PLC power off. As a result, the communication state can be notified to the user before the engineering operation is performed, and the error factor can be removed before the actual communication is performed. In addition, it is no longer necessary to wait until the time-out detection of the software timer of the engineering tool, and the situation in which no other engineering operation can be performed during that time is improved.

以下、本発明について図を用いて説明する。   The present invention will be described below with reference to the drawings.

図1は、本発明のシステム構成例である。
図2は、本発明におけるフローチャートである。
図3は、通信不可状態であることを表示するダイアログボックスの例である。
図1において、制御装置を構成するエンジニアリングツールとPLCはRS-232Cケーブルで1対1に接続される。
図2に示すように本発明では、エンジニアリングツール起動時、RS-232Cポートの初期化およびPLCに対してダミーの指令データを送信する。一定時間内にPLCからのダミーの応答データが受信された場合通信可能状態であると判断し、応答データが受信されない場合通信不可状態であると判断し、通信状態をエンジニアリングツール内のメモリ上に記憶する。
エンジニアリングツール起動後の、ユーザのエンジニアリング操作による指令データ送信時、エンジニアリング内のメモリ内に記憶された通信状態をチェックし、通信不可状態であれば図3に示す警告のダイアログをパソコン画面上に表示し、ユーザに対してエラー要因があることを通知する。この警告のダイアログボックスでユーザは、[OK]または[Cancel]を選択する。[OK]ボタンが選択された場合は、従来のソフトウェアタイマを使用し、PLCに対して指令データを送信し、PLCからの応答データの受信を行う。[Cancel]ボタンが選択された場合は、通信を行わない。エンジニアリングツール起動時のダミーの通信が正常に完了し、通信可の状態であると判断された場合は、警告のダイアログボックスは表示せず、PLCへ指令データを送信する。またエンジニアリングツール起動時のダミー通信におけるタイムアウト検出は、RS-232Cの通信速度とPLCの応答性能からタイムアウト時間を設定する。これによりタイムアウト検出は数秒で行うことができ、ユーザに対しては待ち時間を感じさせることはない。
FIG. 1 is a system configuration example of the present invention.
FIG. 2 is a flowchart in the present invention.
FIG. 3 is an example of a dialog box that displays that communication is not possible.
In FIG. 1, the engineering tool and the PLC constituting the control device are connected one-to-one with an RS-232C cable.
As shown in FIG. 2, in the present invention, when the engineering tool is activated, the RS-232C port is initialized and dummy command data is transmitted to the PLC. If dummy response data from the PLC is received within a certain period of time, it is determined that communication is possible, and if response data is not received, it is determined that communication is not possible, and the communication status is stored in the memory in the engineering tool. Remember.
When the command data is sent by the user's engineering operation after starting the engineering tool, the communication status stored in the memory in engineering is checked. If communication is not possible, the warning dialog shown in Fig. 3 is displayed on the PC screen. Then, the user is notified that there is an error factor. In this warning dialog box, the user selects [OK] or [Cancel]. When the [OK] button is selected, the conventional software timer is used, command data is transmitted to the PLC, and response data is received from the PLC. If the [Cancel] button is selected, no communication is performed. If it is determined that the dummy communication at the time of starting the engineering tool is completed normally and communication is possible, the warning dialog box is not displayed and command data is sent to the PLC. In addition, timeout detection in dummy communication when starting the engineering tool sets the timeout time based on the RS-232C communication speed and PLC response performance. As a result, the timeout detection can be performed in a few seconds, and the user does not feel the waiting time.

システム構成例System configuration example 本発明におけるフローチャートFlow chart in the present invention 警告のダイアログボックス例Example warning dialog box 従来のエンジニアリングツールのフローチャートConventional engineering tool flowchart

符号の説明Explanation of symbols

10 エンジニアリングツール
20 RS-232Cケーブル
30 PLC
10 Engineering tool 20 RS-232C cable 30 PLC

Claims (2)

パソコン上で動作するエンジニアリングツールとPLCがRS-232Cケーブルで1対1に接続される制御装置であって、エンジニアリング操作時に相手PLCとの通信状態をチェックしソフトウェアタイマで通信エラーを検出するエンジニアリングツールにおいて、
エンジニアリングツール起動時に相手PLCとダミーの通信を行い通信状態をエンジニアリングツール内部のメモリ上に記憶することを特徴としたケーブル断線検出方法。
An engineering tool that runs on a personal computer and a PLC that is connected to the PLC one-to-one with an RS-232C cable, checks the communication status with the other PLC during engineering operation, and detects a communication error with a software timer In
A cable disconnection detection method characterized by performing dummy communication with the other PLC when the engineering tool is started and storing the communication status in the memory inside the engineering tool.
ケーブル断線、抜け、通信速度不一致、相手PLC電源断などの要因により通信不能状態ある場合、ユーザのエンジニアリング操作時にパソコン画面上に通信状態を表示、エラー要因を早期に取り除くことを警告することを特徴としたケーブル断線検出方法。 When communication is not possible due to factors such as cable disconnection, disconnection, communication speed mismatch, partner PLC power interruption, etc., the communication status is displayed on the PC screen during the user's engineering operation, and a warning is given to remove the error factor early. Cable disconnection detection method.
JP2003296084A 2003-08-20 2003-08-20 Cable disconnection detection method Pending JP2005063357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003296084A JP2005063357A (en) 2003-08-20 2003-08-20 Cable disconnection detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003296084A JP2005063357A (en) 2003-08-20 2003-08-20 Cable disconnection detection method

Publications (1)

Publication Number Publication Date
JP2005063357A true JP2005063357A (en) 2005-03-10

Family

ID=34372108

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003296084A Pending JP2005063357A (en) 2003-08-20 2003-08-20 Cable disconnection detection method

Country Status (1)

Country Link
JP (1) JP2005063357A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014095563A (en) * 2012-11-07 2014-05-22 Mitsutoyo Corp Shape measurement device, impedance detector, and impedance detection method
KR101438341B1 (en) * 2010-09-27 2014-09-05 미쓰비시덴키 가부시키가이샤 Programmable control system
CN107907919A (en) * 2017-12-15 2018-04-13 合肥国为电子有限公司 A kind of Distributed seismic prospecting instrument Cable Test Platform and its test method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101438341B1 (en) * 2010-09-27 2014-09-05 미쓰비시덴키 가부시키가이샤 Programmable control system
JP2014095563A (en) * 2012-11-07 2014-05-22 Mitsutoyo Corp Shape measurement device, impedance detector, and impedance detection method
CN107907919A (en) * 2017-12-15 2018-04-13 合肥国为电子有限公司 A kind of Distributed seismic prospecting instrument Cable Test Platform and its test method
CN107907919B (en) * 2017-12-15 2024-01-26 合肥国为电子有限公司 Distributed seismic prospecting instrument cable testing platform and testing method thereof

Similar Documents

Publication Publication Date Title
JP4424303B2 (en) In-vehicle hands-free device and in-vehicle hands-free system
WO2005103623A1 (en) Navigation system and navigation unit
JP2006293420A (en) Distributed control apparatus
US9826047B2 (en) Information processing apparatus, method of controlling the same, and storage medium, for transmitting packet despite blockage
CN105743981B (en) Monitoring method, monitoring terminal and monitoring system
JP2004362543A (en) Safety power disconnection system and its method
JP2005063357A (en) Cable disconnection detection method
CN101458642A (en) Computer monitoring terminal and monitoring method
JP2006309408A (en) Abnormality monitoring system, abnormality monitoring server, abnormality monitoring method, and abnormality monitoring program
JP2009248711A (en) On-vehicle communication system
JP3658325B2 (en) NETWORK INTERFACE DEVICE, DEVICE TERMINAL DEVICE, AND NETWORK INTERFACE DEVICE CONTROL METHOD
JP2006311032A (en) State information management program for image forming apparatus, management apparatus, and supervisory system
KR100387327B1 (en) An apparatus for remote control of boiler
CN105224479A (en) For the POE drive system of POE switch
KR200185123Y1 (en) An apparatus for remote control of boiler
CN114333231B (en) Emergency call management method, device, vehicle and storage medium
JP4476010B2 (en) Serial communication processing device
CN104040513A (en) Display device management system, server apparatus therefor, programmable display device, and operation control method
JP2011028734A (en) Debugging system, emulator, debugging method, and debugging program
JP2009111800A (en) Network connection device, and network connection notification method
JP2008059531A (en) Computer system failure notification method
JP6776697B2 (en) Communication module discrimination device, communication module discrimination method and its program
JP5573213B2 (en) Information processing apparatus and method for executing the same
JPH10312235A (en) Usb keyboard provided with state notifying function
JP2006268330A (en) Equipment provided with power saving function, printer, power saving status shift notification method, and storage medium