JP3085403B2 - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JP3085403B2 JP3085403B2 JP02328926A JP32892690A JP3085403B2 JP 3085403 B2 JP3085403 B2 JP 3085403B2 JP 02328926 A JP02328926 A JP 02328926A JP 32892690 A JP32892690 A JP 32892690A JP 3085403 B2 JP3085403 B2 JP 3085403B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- programmable controller
- communication parameter
- connected device
- data
- 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 - Lifetime
Links
Landscapes
- Programmable Controllers (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、入出力ポートの通信パラメータ(伝送速
度、データ構成、伝送制御手順)の設定変更手段を有す
るプログラマブルコントローラに関する。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller having means for changing settings of communication parameters (transmission speed, data configuration, transmission control procedure) of input / output ports.
[従来の技術] 従来の装置は、接続機器とのデータの送受信を行なう
ための送受信ポートの通信パラメータを変更する手段と
しては、 (1)第4図に示すように通信パラメータ設定用のSWを
用意し、ユーザーのSW操作によって接続相手の持つ通信
パラメータに合わせる。[Prior Art] In a conventional device, as means for changing communication parameters of a transmission / reception port for transmitting / receiving data to / from a connected device, (1) a communication parameter setting SW as shown in FIG. Prepare and match with the communication parameters of the connection partner by the user's SW operation.
(2)接続機器よりあらかじめ定められたビットパター
ン(1ビットだけ1となるデータ)のデータを受信し、
そのデータを直接調べて通信パラメータの伝送速度を算
出し、受信装置側のパラメータを合わせる(特開昭57−
190445)。という技術があった。(2) receiving data of a predetermined bit pattern (data in which only one bit becomes 1) from the connected device;
By directly examining the data, calculating the transmission speed of the communication parameters, and matching the parameters on the receiving device side
190445). Technology.
[発明が解決しようとする問題] 上記従来技術は、まず(1)では、最近の小形化され
たプログラマブルコントローラへのSWの実装が困難であ
り、結局通信パラメータの変更ができないという問題が
あった。[Problem to be Solved by the Invention] In the above-mentioned conventional technology, first, in (1), it is difficult to mount a SW on a recent miniaturized programmable controller, and there is a problem that a communication parameter cannot be changed after all. .
また(2)では、SWの実装が不用で通信パラメータの
うち伝送速度を自動的に変更可能だが、データ構成、伝
送制御手順の変更に関し考慮がされていないため、デー
タ構成、伝送制御手順が固定かされてしまう欠点があっ
た。In (2), the implementation of SW is unnecessary and the transmission speed among the communication parameters can be changed automatically, but the data configuration and transmission control procedure are fixed because changes in data configuration and transmission control procedure are not considered. There was a drawback that it was hidden.
本発明の目的は、実装困難な小形プログラマブルコン
トローラでも、通信パラメータの設定を接続機器の持つ
通信パラメータに合わせる事が可能なプログラマブルコ
ントローラを提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable controller that can set communication parameters to the communication parameters of a connected device even with a small-sized programmable controller that is difficult to mount.
さらに、設定SWをなくしたことにより、ユーザーをSW
の設定操作のわずらわしさから開放し、使い勝手のよい
プログラマブルコントローラを提供することにある。In addition, by eliminating the setting switch, users can be switched
An object of the present invention is to provide an easy-to-use programmable controller that is free from the hassle of setting operations.
[課題を解決するための手段] 上記目的を達成するために、プログラマブルコントロ
ーラとその接続機器とのデータの送受信を行うための通
信インタフェースと、該データの送受信を行う際の通信
プロトコルに関する通信パラメータを設定変更できる手
段を持ったプログラマブルコントローラにおいて、前記
通信インタフェースに接続相手からの通信パラメータの
変更要求信号を入力検出する入力手段と、該入力手段に
よる変更要求検出に基づき通信パラメータの変更を指示
する指示手段と、さらに該指示手段からの指示に基づ
き、送信された接続相手からのデータ構成と伝送制御手
段をパラメータとして持った通信パラメータ変更コマン
ドで通信パラメータのデータ構成、伝送制御手段の少な
くとも一方を変更するように構成したものである。[Means for Solving the Problems] In order to achieve the above object, a communication interface for transmitting and receiving data between the programmable controller and the connected device and a communication parameter relating to a communication protocol for transmitting and receiving the data are defined. In a programmable controller having means for changing the setting, an input means for inputting and detecting a communication parameter change request signal from a connection partner to the communication interface, and an instruction for instructing a communication parameter change based on the change request detection by the input means Means, and further, at least one of the data configuration of the communication parameter and the transmission control means is changed by the communication parameter change command having the transmitted data configuration from the connection partner and the transmission control means as parameters based on the instruction from the instruction means. Is configured to You.
[作用] 上記検出手段での通信パラメータ変更要求信号の受信
に基づき、接続機器とプログラマブルコントローラの通
信パラメータ変更の同期がとられ、これに依って接続機
器及びプログラマブルコントローラの両者の通信パラメ
ータがあらかじめ決められた通信パラメータに設定し直
され、通信による通信パラメータ変更を行なっても、接
続機器が出した通信パラメータ変更要求コマンドをプロ
グラマブルコントローラ側で正しく受信することがで
き、プログラマブルコントローラの通信パラメータを接
続機器の要求通りに設定し直すことができる。また、な
んらかの外部要因(ノイズ等)で、通信コマンドが正し
く受入れなくとも、接続機器側に再度、上記検出手段か
ら繰り返す処理を付けることにより、確実に変更するこ
とができる。[Operation] Based on the reception of the communication parameter change request signal by the detection means, the communication parameter change between the connected device and the programmable controller is synchronized, whereby the communication parameters of both the connected device and the programmable controller are determined in advance. Even if the communication parameters are reset to the specified communication parameters and the communication parameters are changed by communication, the communication parameter change request command issued by the connected device can be correctly received on the programmable controller side, and the communication parameters of the programmable controller are changed to the connected device. Can be reset as required. Further, even if a communication command is not correctly received due to some external factor (noise or the like), it can be surely changed by adding a process to be repeated from the detection unit to the connected device side.
[実施例] 以下、本発明の一実施例を図面を参照して説明する。Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
第1図は、本発明を実施するためのプログラマブルコ
ントローラの基本的な構成である。このプログラマブル
コントローラは演算制御を行なうMPU4、システムROM/RA
M5、ユーザープログラムメモリ6、入出力部7、接続機
器2とのデータの入出力を行なう通信インタフェース部
8を備えている。FIG. 1 shows a basic configuration of a programmable controller for implementing the present invention. This programmable controller is an MPU4 that performs arithmetic control, a system ROM / RA
An M5, a user program memory 6, an input / output unit 7, and a communication interface unit 8 for inputting and outputting data to and from the connected device 2 are provided.
MPU4は、ユーザプログラムメモリ6に記憶されている
シーケンスプログラムを読み出し、シーケンス演算を順
次実行して、入出力部7を介してシーケンス制御対象3
を制御する。また、MPU4は、通信インタフェース部8の
入出力ポート12を介して接続された接続機器2からのコ
マンドでユーザープログラムメモリ6の内容を書換えた
り、入出力部7のモニタを行なったりするサービス処理
を実行する。The MPU 4 reads out a sequence program stored in the user program memory 6, sequentially executes a sequence operation, and executes the sequence control target 3 via the input / output unit 7.
Control. The MPU 4 performs a service process of rewriting the contents of the user program memory 6 and monitoring the input / output unit 7 by a command from the connection device 2 connected via the input / output port 12 of the communication interface unit 8. Execute.
以上のようなプログラマブルコントローラに於いて、
通信インタフェース部8と接続機器との間でデータの送
受信制御を行なう通信制御部9の通信パラメータ(伝送
速度、データ構成、伝送制御手順)の設定変更は次のよ
うにしてなされる。通信インタフェース8内に指示手段
10を設け、入出力ポート12に接続された接続機器2から
の通信パラメータ変更要求信号を通信パラメータ変更入
力信号検出手段11で常に監視し、本信号の入力を検出し
たら検出手段11からの検出信号に基づいて指示手段10か
らフラグを出力させ、MPU4に通信パラメータ変更指示を
与える。本フラグにより、接続機器とプログラマブルコ
ントローラの通信パラメータ変更開始の同期をとること
ができる。In the above programmable controller,
The setting change of the communication parameters (transmission speed, data configuration, transmission control procedure) of the communication control unit 9 that controls transmission and reception of data between the communication interface unit 8 and the connected device is performed as follows. Instruction means in communication interface 8
The communication parameter change request signal from the connection device 2 connected to the input / output port 12 is constantly monitored by the communication parameter change input signal detection means 11, and when the input of the signal is detected, the detection signal from the detection means 11 is provided. And outputs a flag to the MPU 4 based on the flag. This flag can synchronize the start of communication parameter change between the connected device and the programmable controller.
第2図がMPU4による通信パラメータ変更処理のフロー
チャートである。接続機器側がスタート28すると、始め
に通信パラメータ変更要求信号の出力29を行ない、次に
第3図に示す通信パラメータの設定側で通信パラメータ
の初期設定30を行なう。プログラマブルコントローラ側
では通信パラメータ変更開始フラグON20でスタート21す
ると、まず、接続機器側と同じ第3図に示す通信パラメ
ータの設定例で通信パラメータの初期設定22を行なう。FIG. 2 is a flowchart of a communication parameter changing process by the MPU 4. When the connected device starts 28, it first outputs a communication parameter change request signal 29, and then performs initial setting 30 of communication parameters on the communication parameter setting side shown in FIG. When the programmable controller side starts 21 with the communication parameter change start flag ON20, first, the communication parameter initial setting 22 is performed using the same communication parameter setting example shown in FIG. 3 as the connected device side.
ここまでの手順で、プログラマブルコントローラ側
と、接続機器側の通信パラメータが同一となり、以降、
接続機器とプログラマブルコントローラ間のデータの授
受が正しく行なえるようになる。By the procedure up to this point, the communication parameters on the programmable controller side and the connected device side become the same, and thereafter,
Data can be correctly exchanged between the connected device and the programmable controller.
次に接続機器側によるプログラマブルコントローラ側
への通信パラメータ変更要求コマンドの送信処理31及
び、プログラマブルコントローラ側の通信変更要求コマ
ンドの受信処理23を行ない、接続機器の目的とする通信
パラメータをプログラマブルコントローラへ伝える。受
信したデータは、誤りがないかどうかを確認する目的で
受信データのチェックを行い、チェック結果を応答デー
タとして、接続機器側へ送信する。25が正常応答処理、
36が異常応答処理で、32が接続機器側の応答受信処理で
ある。また、接続機器側でも応答データのチェックを行
ない、応答データに異常がある場合は、再度通信パラメ
ータ変更要求信号の出力29から実行させることにより接
続機器からプログラマブルコントローラへ目的とする通
信パラメータが正しく伝わる。Next, the connected device side performs a communication parameter change request command transmission process 31 to the programmable controller side and the programmable controller side communication change request command reception process 23, and transmits the target communication parameters of the connected device to the programmable controller. . The received data checks the received data for the purpose of confirming whether there is an error, and transmits the check result as response data to the connected device side. 25 is normal response processing,
36 is an abnormal response process, and 32 is a response receiving process on the connected device side. Also, the response data is checked on the connected device side, and if there is an error in the response data, the target communication parameter is correctly transmitted from the connected device to the programmable controller by executing again from the communication parameter change request signal output 29. .
チェック結果が正常な場合は、接続機器の目的とする
通信パラメータへ通信パラメータの変更処理26、34を実
行する。If the check result is normal, the communication parameters change processing 26 and 34 are executed to the target communication parameters of the connected device.
[発明の効果] 本発明によれば、SWが実装困難な小形プログラマブル
コントローラでも、入出力ポートの通信パラメータの設
定を接続機器が目的賭する通信パラメータに変更するこ
とができる。[Effects of the Invention] According to the present invention, it is possible to change the communication parameter setting of the input / output port to the communication parameter to be bet by the connected device even in a small-sized programmable controller in which the SW is difficult to mount.
また、設定SWをなくしたことにより、ユーザーをSWの
設定操作のわずらわしさから開放し、使い勝手のよいプ
ログラマブルコントローラとさすことができる。In addition, the elimination of the setting switch frees the user from the hassle of setting operation of the switch, and can be regarded as an easy-to-use programmable controller.
第1図は本発明の一実施例のプログラマブルコントロー
ラの基本的な構成図、第2図は通信パラメータ変更処理
のフローチャート図、第3図は通信パラメータ設定例説
明図、第4図は通信パラメータ設定SWの設定例説明図で
ある。 1……プログラマブルコントローラ、2……接続機器、
3……シーケンス制御対象、4……MPU、5……システ
ムROM/RAM、6……ユーザプログラムメモリ、7……入
出力部、8……通信インタフェース部、9……通信制御
部、10……指示手段、11……通信パラメータ変更要求信
号検出手段、12……入出力ポート、21……プログラマブ
ルコントローラ側の通信パラメータ変更処理、28……接
続機器側の通信パラメータ変更処理FIG. 1 is a basic configuration diagram of a programmable controller according to one embodiment of the present invention, FIG. 2 is a flowchart of a communication parameter changing process, FIG. 3 is an explanatory diagram of a communication parameter setting example, and FIG. FIG. 6 is an explanatory diagram of a setting example of SW. 1 ... programmable controller, 2 ... connected equipment,
3 ... sequence control target, 4 ... MPU, 5 ... system ROM / RAM, 6 ... user program memory, 7 ... input / output unit, 8 ... communication interface unit, 9 ... communication control unit, 10 ... ... instruction means, 11 ... communication parameter change request signal detection means, 12 ... input / output port, 21 ... communication parameter change processing on the programmable controller side, 28 ... communication parameter change processing on the connected device side
───────────────────────────────────────────────────── フロントページの続き (72)発明者 伊東 厚 千葉県習志野市東習志野7丁目1番1号 株式会社日立製作所習志野工場内 (56)参考文献 特開 昭62−26560(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 ──────────────────────────────────────────────────続 き Continuation of the front page (72) Inventor Atsushi Ito 7-1-1 Higashi Narashino, Narashino City, Chiba Prefecture Inside the Narashino Factory of Hitachi, Ltd. (56) References ) Surveyed field (Int.Cl. 7 , DB name) G05B 19/04-19/05
Claims (1)
器とのデータの送受信を行うための通信インタフェース
と、該データの送受信を行う際の通信プロトコルに関す
る通信パラメータを設定変更できる手段を持ったプログ
ラマブルコントローラにおいて、 前記通信インタフェースに接続相手からの通信パラメー
タの変更要求信号を入力検出する入力手段と、 該入力手段による変更要求検出に基づき通信パラメータ
の変更を指示する指示手段と、 さらに該指示手段からの指示に基づき、送信された接続
相手からのデータ構成と伝送制御手段をパラメータとし
て持った通信パラメータ変更コマンドで通信パラメータ
のデータ構成、伝送制御手段の少なくとも一方を変更す
るように構成したことを特徴とするプログラマブルコン
トローラ。1. A programmable controller having a communication interface for transmitting and receiving data between a programmable controller and a connected device, and means for setting and changing communication parameters related to a communication protocol for transmitting and receiving the data. Input means for inputting and detecting a communication parameter change request signal from a connection partner to the communication interface; instruction means for instructing communication parameter change based on detection of the change request by the input means; and further based on an instruction from the instruction means A data structure of the transmitted connection partner and a communication parameter change command having the transmission control means as parameters, wherein at least one of the data structure of the communication parameters and the transmission control means is changed. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP02328926A JP3085403B2 (en) | 1990-11-30 | 1990-11-30 | Programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP02328926A JP3085403B2 (en) | 1990-11-30 | 1990-11-30 | Programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04205106A JPH04205106A (en) | 1992-07-27 |
| JP3085403B2 true JP3085403B2 (en) | 2000-09-11 |
Family
ID=18215639
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP02328926A Expired - Lifetime JP3085403B2 (en) | 1990-11-30 | 1990-11-30 | Programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3085403B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10312202A (en) * | 1997-05-12 | 1998-11-24 | Sharp Corp | Programmable controller |
| CN104601722B (en) * | 2015-02-02 | 2018-07-24 | 西安酷派软件科技有限公司 | Messaging parameter synchronous method and device |
-
1990
- 1990-11-30 JP JP02328926A patent/JP3085403B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04205106A (en) | 1992-07-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6055464A (en) | Electronic device and operating mode control method thereof | |
| JP3085403B2 (en) | Programmable controller | |
| US5898512A (en) | Link establishing system and link establishing method | |
| JPH07200010A (en) | Programmable controller and exclusive control communication method thereof | |
| JP2002101147A (en) | Communications system | |
| KR100329652B1 (en) | Remote board control method using packet network | |
| JPH0764472A (en) | Remote I / O system of programmable controller | |
| JP2718763B2 (en) | Self-diagnosis activation method | |
| KR100474638B1 (en) | Method of controlling a computer power using a power switch of a monitor | |
| JP2709720B2 (en) | Line connection method between the numerical controller and its peripheral devices | |
| JP2830318B2 (en) | Two-way remote control device | |
| JPH08307478A (en) | Serial communication equipment | |
| JPH0728511A (en) | Robot system | |
| JPH04296904A (en) | Programmable controller | |
| JP2898025B2 (en) | Input/Output Terminal | |
| JP2687548B2 (en) | Signal repeater | |
| JP2924135B2 (en) | Switching system circuit test method | |
| JPH05292146A (en) | Communication protocol determination method | |
| KR100266591B1 (en) | Data communication apparatus and method between personal computer and camera | |
| JP2637829B2 (en) | Power supply control method and device | |
| JPH0378400A (en) | Transmission control device | |
| JPH0630506B2 (en) | Serial communication device | |
| JPH05244216A (en) | Transfer mode setting system | |
| JPH04170618A (en) | Automatic power supply control system corresponding to token ring lan | |
| JPS61121630A (en) | Data transmission system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080707 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080707 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090707 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090707 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100707 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110707 Year of fee payment: 11 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110707 Year of fee payment: 11 |