JPH10150454A - Control meter communication system - Google Patents
Control meter communication systemInfo
- Publication number
- JPH10150454A JPH10150454A JP8306255A JP30625596A JPH10150454A JP H10150454 A JPH10150454 A JP H10150454A JP 8306255 A JP8306255 A JP 8306255A JP 30625596 A JP30625596 A JP 30625596A JP H10150454 A JPH10150454 A JP H10150454A
- Authority
- JP
- Japan
- Prior art keywords
- station
- slave stations
- slave
- master station
- response
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、一般計装制御に利
用される調節計の通信システムに関し、特に複数の調節
計とパーソナルコンピュータ(以下パソコンと呼ぶ)と
の間の通信に関するものである。The present invention relates to a communication system for a controller used for general instrumentation control, and more particularly to communication between a plurality of controllers and a personal computer (hereinafter referred to as a personal computer).
【0002】[0002]
【従来の技術】従来より一般計装制御、例えば流量比率
制御やカスケード制御、反応缶カスケード制御、バック
アップ制御、ユニバーサル2入力選択制御、温湿度制御
等に利用される調節計はよく知られている。2. Description of the Related Art Conventionally, controllers used for general instrumentation control, for example, flow rate control and cascade control, reactor cascade control, backup control, universal two-input selection control, and temperature / humidity control are well known. .
【0003】そして、このような調節計に通信インタフ
ェースを装備し、様々な機器との間で通信を行うことが
できるように構成したものがある。例えばこの種の複数
の調節計を子局とし、親局としてパソコンを接続し、通
信により調節計のレジスタの読出しや書込みを行うデー
タリンクを構築したものがある。[0003] Some of such controllers are provided with a communication interface so as to be able to communicate with various devices. For example, there is one in which a plurality of controllers of this type are used as slave stations, a personal computer is connected as a master station, and a data link for reading and writing registers of the controllers by communication is constructed.
【0004】このような場合、図5に示すように、親局
10と子局20(A,B,C,D,Eをまとめて20と
する)を通信回線30を介して物理的に1対nの関係で
接続し、子局(A〜E)のステーション番号(STn
o)が重ならないようにそれぞれ01,02,03,0
4,05として、1台ずつパソコンリンク通信を行い、
パラメータを設定するように構成している。In such a case, as shown in FIG. 5, a master station 10 and slave stations 20 (A, B, C, D, and E are collectively referred to as 20) are physically connected to each other via a communication line 30. The station numbers (STn) of the slave stations (A to E)
01), 02, 03, 0 respectively so that o) does not overlap
As 4,05, PC link communication is performed one by one,
It is configured to set parameters.
【0005】このような構成において、例えば、子局
A,C、Eの調節計のパラメータを同じ設定とする場合
には、親局10からAについてのコマンドを送信し、そ
のレスポンスを受信した後、C,Eにも同様の手順で通
信を行う。In such a configuration, for example, when the parameters of the controllers of the slave stations A, C, and E are set to the same value, a command for A is transmitted from the master station 10 and the response is received. , C, and E are communicated in a similar procedure.
【0006】なお、パソコンリンク通信コマンドのフォ
ーマットは図6に示すようになっており、STXはコマ
ンド文字列の始まりを示すコントロールコード、CPU
番号は例えば01である。応答待ち時間はここでは無視
される。また、コマンドは親局からの命令、コマンドに
対するデータにはデバイス名やデータ点数、パラメータ
等をコマンドに応じて指定する。The format of the personal computer link communication command is as shown in FIG. 6, and STX is a control code indicating the beginning of a command character string, a CPU
The number is, for example, 01. The response waiting time is ignored here. The command specifies a command from the master station, and the data corresponding to the command specifies a device name, the number of data points, parameters, and the like according to the command.
【0007】チェックサムはSTXの次の文字からチェ
ックサムの手前までチェックサムであり、ETXはコマ
ンド文字列の終わりを示すコントロールコードであり、
CRはコマンドの終端を示すコントロールコードであ
る。[0007] The checksum is a checksum from the next character of STX to the position before the checksum, and ETX is a control code indicating the end of the command character string.
CR is a control code indicating the end of the command.
【0008】[0008]
【発明が解決しようとする課題】ところで、上記のよう
なシステムでは、子局のステーション番号が互いに独立
していなければ通信ができないようになっている。その
ため親局からの送信コマンドも一度に1つの子局に対し
てしか行うことができない。In the above system, communication is not possible unless the station numbers of the slave stations are independent of each other. Therefore, the transmission command from the master station can be issued to only one slave station at a time.
【0009】したがって、複数の調節計、例えばA,
C,Eの子局グループとB,Dの子局グループをそれぞ
れグループごとに同じ設定にしたい場合でも、A〜Eの
調節計に対して1台1台別々に通信を行う必要がある。Therefore, a plurality of controllers, for example, A,
Even if it is desired to set the slave station groups C and E and the slave station groups B and D to the same setting for each group, it is necessary to separately communicate with the controllers A to E one by one.
【0010】従来の構成において、1つのコマンドで複
数の子局に対して同時に通信を行うためにそれら子局に
同一のステーション番号を設定すると、コマンドを受信
した子局が親局にレスポンスを返そうとするため複数の
子局が同時に親局に送信処理を行ってしまい、正常な通
信ができなくなってしまうという問題があった。In the conventional configuration, if the same station number is set to a plurality of slave stations in order to simultaneously communicate with a plurality of slave stations with one command, the slave station receiving the command returns a response to the master station. In order to do so, there has been a problem that a plurality of slave stations simultaneously perform transmission processing to the master station, and normal communication cannot be performed.
【0011】パソコンリンク通信の概念としてコマンド
を受信したら必ずレスポンスを返すという方式が従来の
考え方であったため、この種のシステムにおいてはブロ
ードキャストモードのような方式を採り入れていなかっ
た。[0011] As a concept of personal computer link communication, a method of always returning a response when a command is received has been a conventional idea, and a system such as a broadcast mode has not been adopted in this type of system.
【0012】本発明の目的は、このような点に鑑み、1
対nの通信で子局が同時に受信できると共に、同時に受
信したこれら子局が親局にレスポンスを返さないように
することにより、子局のパラメータの設定を容易かつ素
早く行えるようにした調節計通信システムを提供するこ
とにある。In view of the above, an object of the present invention is to
Controller communication that allows the slave stations to receive simultaneously in pair-to-n communication, and that these simultaneously received slave stations do not return a response to the master station, thereby enabling easy and quick setting of slave station parameters. It is to provide a system.
【0013】[0013]
【課題を解決するための手段】このような目的を達成す
るために本発明では、1つの親局に対して複数の調節計
を子局として接続してなる調節計通信システムであっ
て、特定のステーション番号の子局は親局からの通信コ
マンドを同時に受信できると共に前記親局にレスポンス
を返送しないように構成したことを特徴とする。According to the present invention, there is provided a controller communication system in which a plurality of controllers are connected as slave stations to one master station. The slave station having the station number of (1) can simultaneously receive a communication command from the master station and does not return a response to the master station.
【0014】[0014]
【作用】子局は親局からのコマンドを受けて内部処理を
行うが、設定されたステーション番号が特定のステーシ
ョン番号である場合にはその後の送信処理において親局
へのレスポンスを返送しない。特定のステーション番号
でない場合は、レスポンスを親局へ返送する。The slave station performs the internal processing in response to the command from the master station, but does not return a response to the master station in the subsequent transmission processing if the set station number is a specific station number. If it is not a specific station number, a response is returned to the master station.
【0015】したがって、複数の子局に同一の特定ステ
ーション番号が設定されている場合には、複数の子局に
対し素早く容易にパラメータを設定することができる。
また、当該子局からの親局に対するレスポンスの返送が
省略されるため、レスポンスの衝突は発生せず、正常な
通信が保証される。Therefore, when the same specific station number is set in a plurality of slave stations, parameters can be set for the plurality of slave stations quickly and easily.
In addition, since the return of the response from the slave station to the master station is omitted, the collision of the response does not occur, and the normal communication is guaranteed.
【0016】[0016]
【発明の実施の形態】以下図面を用いて本発明を詳しく
説明する。いま、図1に示すように、子局A,B,Dの
グループと子局C,Eのグループの各グループごとに同
じパラメータを設定するものとし、グループA,B,D
の子局にはステーション番号91を、またグループC,
Eの子局にはステーション番号90をそれぞれ設定す
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. Now, as shown in FIG. 1, it is assumed that the same parameter is set for each of the groups of the slave stations A, B, D and the groups of the slave stations C, E, and the groups A, B, D
Station number 91 to the slave stations of
A station number 90 is set for each slave station of E.
【0017】ステーション番号の割付例を図2に示す。
ステーション番号01〜89を通常のパソコンリンク通
信を行う実在アドレスとし、ステーション番号90〜9
9をブロードキャストモード通信を行う架空アドレスと
している。なお、子局のステーション番号は、親局10
からパソコンリンク通信コマンドにより設定することが
できる。FIG. 2 shows an example of assigning station numbers.
Station numbers 01 to 89 are set as real addresses for performing ordinary personal computer link communication, and station numbers 90 to 9 are used.
9 is a virtual address for performing broadcast mode communication. Note that the station number of the slave station is the master station 10
Can be set by a PC link communication command.
【0018】このような状態において、親局10から各
ステーション番号の子局に対してコマンドを送信する。
子局での受信処理を、図3のフローを参照して次に説明
する。 (1) コマンド(図6参照)の中のステーション番号が9
0以上の場合はブロードキャストモードフラグを1と
し、90未満の場合はブロードキャストモードフラグを
0にセットする。 (2) 次に、受信したコマンドの内容をチェックして、所
定の処理を行う。 (3) レスポンスを作成する。In such a state, a command is transmitted from the master station 10 to the slave stations of each station number.
The reception process in the slave station will be described next with reference to the flow in FIG. (1) The station number in the command (see FIG. 6) is 9
If it is 0 or more, the broadcast mode flag is set to 1, and if it is less than 90, the broadcast mode flag is set to 0. (2) Next, the content of the received command is checked, and a predetermined process is performed. (3) Create a response.
【0019】その後、子局は図4に示すフローのように
送信処理を行う。すなわち、ブロードキャストモードフ
ラグが1であればそのまま終了し、0であれば先に作成
したレスポンスを送信して終了する。Thereafter, the slave station performs transmission processing as shown in the flow chart of FIG. That is, if the broadcast mode flag is 1, the process ends as it is, and if it is 0, the previously created response is transmitted and the process ends.
【0020】例えば、子局A,B,Dの調節計に対して
親局10よりコマンドを送信したとき、A,B,Dは上
記受信処理を行い、それぞれがブロードキャストモード
であることを認識する。For example, when a command is transmitted from the master station 10 to the controllers of the slave stations A, B, and D, A, B, and D perform the above-described reception processing and recognize that each is in the broadcast mode. .
【0021】次に送信処理を行うが、A,B,Dはブロ
ードキャストモードであるから親局に対してのレスポン
スを返さずに送信処理を終了する。したがって、子局
A,B,Dのレスポンスがぶつかるようなことはなく、
通信動作に異常が生じることもない。なお、子局C,E
についても上記と同様な動作が行われる。Next, transmission processing is performed, and since A, B, and D are in the broadcast mode, the transmission processing ends without returning a response to the master station. Therefore, the responses of the slave stations A, B, and D do not collide,
No abnormality occurs in the communication operation. Note that slave stations C and E
, The same operation as described above is performed.
【0022】本発明の以上の説明は、説明および例示を
目的として特定の好適な実施例を示したに過ぎない。し
たがって本発明はその本質から逸脱せずに多くの変更、
変形をなし得ることは明らかである。The foregoing description of the present invention has been presented by way of illustration and example only of a particular preferred embodiment. Accordingly, the present invention has many modifications, without departing from its essence,
Clearly, variations can be made.
【0023】[0023]
【発明の効果】以上説明したように本発明によれば次の
ような効果がある。ブロードキャストモードで同一ステ
ーション番号を持つ調節計に対して1対nの接続関係で
通信が可能となり、複数の調節計に対するパラメータを
素早く容易に設定することができる。ただし、ブロード
キャストモードの子局は親局に対してレスポンスを送信
しないため、コマンドおよびパラメータに誤りがあって
もエラーは返送されない。したがって、設定時には十分
な注意が必要である。As described above, according to the present invention, the following effects can be obtained. In the broadcast mode, communication with controllers having the same station number can be performed in a one-to-n connection relationship, and parameters for a plurality of controllers can be set quickly and easily. However, since the slave station in the broadcast mode does not send a response to the master station, no error is returned even if there are errors in commands and parameters. Therefore, sufficient care must be taken at the time of setting.
【図1】本発明に係る調節計通信システムの一実施例を
示す構成図FIG. 1 is a configuration diagram showing one embodiment of a controller communication system according to the present invention.
【図2】ステーション番号割付例を示す図FIG. 2 is a diagram showing an example of station number assignment.
【図3】受信処理フローチャートFIG. 3 is a reception processing flowchart.
【図4】送信処理フローチャートFIG. 4 is a flowchart of a transmission process.
【図5】従来の調節計通信システムにおけるステーショ
ン番号設定例を示す図FIG. 5 is a diagram showing an example of station number setting in a conventional controller communication system.
【図6】パソコンリンク通信コマンドのフォーマットを
示す図である。FIG. 6 is a diagram showing a format of a personal computer link communication command.
10 親局 20,A,B,C,D,E 子局 10 master station 20, A, B, C, D, E slave station
Claims (3)
して接続してなる調節計通信システムであって、 特定のステーション番号の子局は親局からの通信コマン
ドを同時に受信できると共に前記親局にレスポンスを返
送しないように構成してなる調節計通信システム。A controller communication system in which a plurality of controllers are connected to one master station as slave stations, wherein a slave station having a specific station number can simultaneously receive communication commands from the master station. And a controller communication system configured not to return a response to the master station.
たステーション番号を判断しブロードキャストモードの
ステーション番号であればその後の送信処理においてレ
スポンスを返送しないで終了する機能を備えたことを特
徴とする請求項1記載の調節計通信システム。2. The slave station has a function of judging a station number specified by communication from the master station and, if the station number is a broadcast mode station number, terminating a subsequent transmission process without returning a response. The controller communication system according to claim 1, wherein
モード用ステーション番号を設定することができるよう
にしたことを特徴とする請求項1記載の調節計通信シス
テム。3. The controller communication system according to claim 1, wherein the same broadcast mode station number can be set to a plurality of slave stations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8306255A JPH10150454A (en) | 1996-11-18 | 1996-11-18 | Control meter communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8306255A JPH10150454A (en) | 1996-11-18 | 1996-11-18 | Control meter communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10150454A true JPH10150454A (en) | 1998-06-02 |
Family
ID=17954879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8306255A Pending JPH10150454A (en) | 1996-11-18 | 1996-11-18 | Control meter communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10150454A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003046559A (en) * | 2001-07-26 | 2003-02-14 | Nec Corp | Atm communication device and cell receiving method |
-
1996
- 1996-11-18 JP JP8306255A patent/JPH10150454A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003046559A (en) * | 2001-07-26 | 2003-02-14 | Nec Corp | Atm communication device and cell receiving method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4809217A (en) | Remote I/O port for transfer of I/O data in a programmable controller | |
CA1263759A (en) | Arrangement for on-line diagnostic testing of an off- line standby processor in a duplicated processor configuration | |
CA1235228A (en) | Polling method for data processing system | |
US5416908A (en) | Interface between industrial controller components using common memory | |
JPH0525332B2 (en) | ||
US20020141438A1 (en) | Data communication controller and method | |
JPS6043767A (en) | Interface circuit | |
JPH0451788B2 (en) | ||
JPH09508743A (en) | Data bus controller and process | |
US20020144038A1 (en) | Data communication prioritization method and bus controller | |
JPH11194977A (en) | Simulation system to test and display data transmission function of peripheral device integrated circuit | |
EP0436458A2 (en) | Programmable connector | |
JPH10150454A (en) | Control meter communication system | |
JP2000049891A (en) | Programmable logic controller and communication condition setting method and communication condition setting device therefor | |
JPS60201461A (en) | System configuration recognizing system | |
US20030159102A1 (en) | Method for testing a universal serial bus host controller | |
JPH01135150A (en) | Node address setting system for network | |
US7020600B2 (en) | Apparatus and method for improvement of communication between an emulator unit and a host device | |
CN117111539B (en) | Control method and device for Ethernet physical layer chip | |
JPS60194647A (en) | Data transmission system | |
US4806927A (en) | Communication control method | |
JP2000227803A (en) | Method and system for controlling transmission in data link system of programmable controller | |
JPS63133204A (en) | Interface for data transmission of sequencer | |
JP3339556B2 (en) | Terminal device for remote monitoring device | |
JPS63197144A (en) | Information communication system |