JPH11122277A - Multiplex communication control method and communication controller - Google Patents

Multiplex communication control method and communication controller

Info

Publication number
JPH11122277A
JPH11122277A JP9282113A JP28211397A JPH11122277A JP H11122277 A JPH11122277 A JP H11122277A JP 9282113 A JP9282113 A JP 9282113A JP 28211397 A JP28211397 A JP 28211397A JP H11122277 A JPH11122277 A JP H11122277A
Authority
JP
Japan
Prior art keywords
data
transmission
type information
flag
communication control
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.)
Granted
Application number
JP9282113A
Other languages
Japanese (ja)
Other versions
JP3178804B2 (en
Inventor
Nobuki Nagahama
暢紀 長浜
Hisao Ogawa
尚雄 小川
Hideaki Masuko
英昭 益子
Hiroshi Wataya
洋 綿谷
Tomoaki Nakamura
智明 中村
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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP28211397A priority Critical patent/JP3178804B2/en
Publication of JPH11122277A publication Critical patent/JPH11122277A/en
Application granted granted Critical
Publication of JP3178804B2 publication Critical patent/JP3178804B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PROBLEM TO BE SOLVED: To send/receive device data independently of a controller in a control system where pluralities of devices such as sensors and actuators are partially multiplexed. SOLUTION: Device model information assigned definitely by a model and an operation is set to a register 16 with respect to devices 20-1-20-n connected by device connection sections 14-1-14-n of the communication controller 2. An MPU 4 stores the device model information corresponding to the devices 20-1-20-n to a table 101 for each IF/No and in the case of receiving data of a reception buffer 18 of each device I/F section 15, corresponding device model information is provided and copied to a transmission buffer 103 and sent to a network 1 via a communication protocol control section 8. When the device model information corresponds to pluralities of IF/Nos, only data of the priority device side are sent. Furthermore, the device model information provided in data received from the network 1 corresponds to pluralities of IF/Nos, data are transferred to pluralities of corresponding devices 20-1-20-n.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、制御システムなど
で部分的多重化を含む複数の機器とネットワークを接続
する通信制御装置、及び多重化通信制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication control apparatus for connecting a plurality of devices including partial multiplexing to a network in a control system or the like, and a multiplexing communication control method.

【0002】[0002]

【従来の技術】多種類の製品を扱う物流システムにおい
て、ベルトコンベア上を流れる製品は、コンベアに沿っ
て設置されるセンサによって検知され、物流の各工程に
応じた専用装置により、バーコードの読み取り、梱包、
仕分けなどが行われる。たとえば、梱包工程では、製品
を検知すると一旦コンベアを停止し、梱包の完了後にコ
ンベア動作を再開させるなど、工程に応じた操作がコン
トローラによって行われる。
2. Description of the Related Art In a logistics system that handles various types of products, products flowing on a belt conveyor are detected by sensors installed along the conveyor, and barcodes are read by dedicated devices corresponding to each process of the physical distribution. ,packing,
Sorting is performed. For example, in the packing process, an operation according to the process is performed by the controller, such as once stopping the conveyor once a product is detected and restarting the conveyor operation after packing is completed.

【0003】センサ、ベルトコンベアの駆動モータ、各
工程の専用装置などはPI/Oを介してコントローラに
接続され、各コントローラはネットワークを介してデー
タを送受信する。すなわち、センサはコンベア上の所定
位置を製品が通過したのを検知してコントローラにデー
タを送信し、モータや梱包用装置などのアクチュエータ
は、コントローラから製品の通過を検知した旨のデータ
を受信して、回転・停止あるいは梱包などを行う。これ
ら各機器の制御は、機器が接続されるコントローラに搭
載されたアプリケーションプログラムによって行われ
る。
A sensor, a drive motor for a belt conveyor, a dedicated device for each process, and the like are connected to a controller via a PI / O, and each controller transmits and receives data via a network. That is, the sensor detects that the product has passed a predetermined position on the conveyor and transmits data to the controller, and an actuator such as a motor or a packing device receives data indicating that the product has been detected from the controller. To rotate / stop or pack. Control of each of these devices is performed by an application program installed in a controller to which the devices are connected.

【0004】物流システムにおける安全性や信頼性を確
保するため、センサを多重化してコンベアの両端に設置
し、少なくともその1つが製品の通過を検知すれば、物
流の各工程に応じた処理が行われる。また、ベルトコン
ベアには複数のモータを備え、各モータはコントローラ
からの同一の指示(データ)によって、同一回転数で動
作を開始してコンベアを駆動し、かつ同時に停止する。
In order to ensure the safety and reliability of a physical distribution system, sensors are multiplexed and installed at both ends of a conveyor, and if at least one of them detects the passage of a product, a process according to each physical distribution process is performed. Will be Further, the belt conveyor is provided with a plurality of motors, and each motor starts operation at the same number of rotations to drive the conveyor and stops at the same time according to the same instruction (data) from the controller.

【0005】物流システム等におけるセンサやアクチュ
エータなどの制御機器の一部を多重化する場合、その多
重化制御は該当機器を接続するコントローラのアプリケ
ーションプによっている。
[0005] When a part of control equipment such as a sensor and an actuator in a distribution system or the like is multiplexed, the multiplexing control depends on an application of a controller for connecting the equipment.

【0006】[0006]

【発明が解決しようとする課題】上述の物流システムの
ように、センサやモータなどの制御機器やコントローラ
がネットワークに接続され、ネットワークを介して制御
機器間あるいは制御機器とコントローラ間でデータのや
り取りを行うシステムでは、制御機器の多重化制御を行
うコントローラのアプリケーションプログラムは、多重
化制御を行う制御機器の種類やコントローラから見た接
続位置などを意識して作成される。
As in the above-described distribution system, control devices and controllers such as sensors and motors are connected to a network, and data is exchanged between the control devices or between the control device and the controller via the network. In such a system, an application program for a controller that performs multiplexing control of a control device is created in consideration of a type of the control device that performs multiplexing control, a connection position viewed from the controller, and the like.

【0007】ところで、物流システム等では、取り扱う
製品に応じてラインの組替えやセンサ類の取換えなどが
頻繁に発生する。したがって、システムでの機種や接続
位置の変更、1重系から2重系あるいはその逆へと多重
化構成に変更が生じる度に、多重化制御を行うアプリケ
ーションを作り替えなければならないという問題が生じ
る。
By the way, in a distribution system or the like, the rearrangement of lines and the replacement of sensors and the like frequently occur in accordance with the products to be handled. Therefore, there is a problem that the application for performing the multiplexing control needs to be remodeled every time the multiplexing configuration is changed from the change of the model or the connection position in the system to the single system to the double system or vice versa. .

【0008】本発明の目的は上記の問題を解決し、多重
化構成など機器構成の変更によるアプリケーションの変
更を不要にし、システムの変更に柔軟に対応できる汎用
の通信制御装置と多重化通信制御方法を提供することに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems, eliminate the need to change applications by changing the equipment configuration such as a multiplexing configuration, and flexibly cope with system changes and a multiplexed communication control method. Is to provide.

【0009】[0009]

【課題を解決するための手段】上記の目的は、通信イン
ターフェースを介してネットワーク内の他の装置とフレ
ームの送受信を行うとともに、接続インターフェースを
介して複数の接続機器とデータの授受を行う通信制御装
置で、前記接続機器が部分的に多重化されている場合の
多重化通信制御方法において、前記接続機器の種類及び
使用態様に対応して一意に割り当てられ、多重化機器の
場合は同一情報となる機器種別情報を前記機器毎に登録
しておき、データの送信時、前記接続機器中のデータ発
信機器(たとえば、センサ)からのデータを順番に取り
込み、当該機器に登録されている機器種別情報を前記デ
ータに付与するとともに、宛先アドレスを含む所定のフ
レームを形成してネットワークに送出することにより達
成される。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a communication control system for transmitting / receiving a frame to / from another device in a network via a communication interface and transmitting / receiving data to / from a plurality of connected devices via a connection interface. In the device, in the multiplexing communication control method when the connected devices are partially multiplexed, the multiplexed communication control method is uniquely assigned according to the type and use mode of the connected device, and in the case of a multiplexed device, the same information is assigned. Device type information is registered for each device, and at the time of data transmission, data from a data transmission device (for example, a sensor) in the connected device is fetched in order, and device type information registered in the device is transmitted. Is added to the data, and a predetermined frame including the destination address is formed and transmitted to the network.

【0010】また、前記接続機器中のデータ受信機器
(たとえば、アクチュエータ)で、同一のデータを受信
する機器には同一の機器種別情報を登録しておき、ネッ
トワークから受信した自己宛のフレームよりデータと機
器種別情報を取りだし、当該機器種別情報と同一の情報
が登録されている1または複数の接続機器に対して当該
データを送出することを特徴とする。
In the data receiving device (eg, actuator) in the connected device, the same device type information is registered in the device receiving the same data, and the data receiving device (eg, actuator) receives the same data from the frame received from the network. And the device type information is extracted, and the data is transmitted to one or more connected devices in which the same information as the device type information is registered.

【0011】また、データの送信時、前記多重化機器の
場合は優先設定のある機器側のデータのみを送信処理す
ることを特徴とする。
[0011] Further, when transmitting data, in the case of the multiplexed device, only the data of the device having priority setting is transmitted.

【0012】本発明の多重化通信方法に好適な通信制御
装置は、ネットワークに接続され、所定の通信プロトコ
ルにしたがってデータの送受信を行う通信インターフェ
ース部と、システムの制御用機器を接続し、それら接続
機器とデータの授受を行う複数の接続インターフェース
部と、これらインターフェース部を制御してデータの送
受信処理を行う中央処理装置と、前記データや制御用情
報などを記憶する記憶装置を備えるものにおいて、前記
接続インターフェース部に接続された前記機器の種類及
び使用態様に対応して一意に割り当てられる機器種別情
報を、前記接続インターフェース部の識別番号毎に登録
し、かつ多重化機器には同一となる1の機器種別情報
に、非多重化機器には各々の機器種別情報に、それぞれ
優先送信を設定する機器種別情報テーブルを前記記憶装
置に設け、前記中央処理装置は、前記接続機器から取り
込んだデータに付与する該当の機器種別情報に前記優先
送信の設定がある場合、当該データを前記通信インター
フェース部に転送することを特徴とする。
A communication control device suitable for the multiplex communication method according to the present invention connects a communication interface unit connected to a network for transmitting and receiving data in accordance with a predetermined communication protocol, and a control device of the system. A plurality of connection interface units that exchange data with devices, a central processing unit that controls these interface units to perform data transmission / reception processing, and a storage device that stores the data and control information. Device type information that is uniquely assigned in correspondence with the type and use mode of the device connected to the connection interface unit is registered for each identification number of the connection interface unit, and one of the multiplexed devices is the same. Priority transmission is set for the device type information and for each device type information for non-multiplexed devices. If the device type information table is provided in the storage device, and the central processing unit has the setting of the priority transmission in the corresponding device type information to be added to the data acquired from the connected device, the data is transmitted to the communication interface unit. It is characterized by transferring.

【0013】また、前記多重化機器が2重化の場合、前
記機器種別情報に対応し、多重化機器に対してON、非
多重化機器に対してOFFを設定するカウンタ使用フラ
グと送信回数の積算値を記憶する送信カウンターテーブ
ルを前記記憶装置に備え、前記中央処理装置は、前記優
先送信の設定がある機器からのデータは前記送信カウン
タを+1して送信処理を行い、前記優先送信の設定がな
い機器からのデータは前記送信カウンタを−1して送信
処理を行わず、かつ前記送信カウンタの積算値と前記カ
ウンタ使用フラグのON/OFFの組合せに応じて、前
記多重化機器の故障や復旧等による構成変更に追従した
送信処理を行うことを特徴とする。
When the multiplexing device is a duplex device, a counter use flag for setting ON for the multiplexing device and OFF for the non-multiplexing device and a transmission count of the number of times of transmission correspond to the device type information. The storage device includes a transmission counter table for storing an integrated value, and the central processing unit performs transmission processing by incrementing the transmission counter by +1 for data from a device having the priority transmission setting, and sets the priority transmission setting. No data is sent from the device without the counter, the transmission counter is decremented by one, and the transmission process is not performed. Also, depending on the combination of the integrated value of the transmission counter and ON / OFF of the counter use flag, failure of the multiplexing device or It is characterized by performing transmission processing following configuration changes due to recovery or the like.

【0014】したがって、2重化機器の場合は優先側と
非優先側が正常に動作していれば、その送信タイミング
の終了時の積算値は常に0であり、もし、非優先側が異
常であれば積算値がやがてしきい値Nを超えるので、当
該機種別情報に対応した2重化通信処理をキャンセルす
る(送信カウンタ使用フラグをOFF)。
Therefore, in the case of a duplex device, if the priority side and the non-priority side are operating normally, the integrated value at the end of the transmission timing is always 0. If the non-priority side is abnormal, Since the integrated value eventually exceeds the threshold value N, the duplex communication processing corresponding to the model-specific information is canceled (the transmission counter use flag is turned off).

【0015】また、非優先側からデータの送信処理で、
カウンタ使用フラグがOFFの場合は、非優先側の復旧
であるので再び2重化通信処理に移行する(送信カウン
タ使用フラグをON)。さらに、非優先側からデータの
送信処理で積算値が0、かつカウンタ使用フラグがON
の場合は優先側に異常があるときで、優先/非優先を交
替して(優先送信フラグの変更設定)、2重化通信処理
を継続する。なお、3重化機器の場合でも、たとえば非
優先側となる2つの機器の送信イベントを論理ORで取
り込めば、同様な管理が可能になる。
In the data transmission process from the non-priority side,
If the counter use flag is OFF, the process returns to the duplex communication process because the non-priority side is restored (the transmission counter use flag is turned ON). Further, the integrated value is 0 in the data transmission processing from the non-priority side and the counter use flag is ON.
In the case of (2), when there is an abnormality on the priority side, priority / non-priority is switched (priority transmission flag change setting), and the duplex communication processing is continued. Even in the case of a triple device, the same management is possible if, for example, the transmission events of the two devices on the non-priority side are taken in by a logical OR.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施形態につい
て、図面を用いて詳細に説明する。図2は、本発明の多
重化通信制御装置(以下、通信制御装置と呼ぶ)を適用
した物流システムの概略構成を示す。通信制御装置2−
1〜2−3およびコントローラ3−1〜3−3はネット
ワーク1に接続され、通信制御装置2には制御機器20
−1〜20−nが接続されている。通信制御装置2とコ
ントローラ3の各々は物流の各工程に対応して構成さ
れ、ネットワーク1を介してメッセージを送受信する。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 shows a schematic configuration of a physical distribution system to which a multiplex communication control device (hereinafter, referred to as a communication control device) of the present invention is applied. Communication control device 2-
1-2 and the controllers 3-1 through 3-3 are connected to the network 1, and the communication control device 2 includes a control device 20.
-1 to 20-n are connected. Each of the communication control device 2 and the controller 3 is configured to correspond to each process of physical distribution, and transmits and receives messages via the network 1.

【0017】通信制御装置2およびコントローラ3は所
定の通信プロトコルによる通信を行うため、それぞれ演
算処理装置とデータ蓄積の記憶装置を内蔵している。コ
ントローラ3は、たとえばコンピュータ(制御用プロセ
スコンピュータ、ワークステーション、パーソナルコン
ピュータ)やPC(プログラマブル・コントローラ)で
ある。ネットワーク1はバス型を示しているが、任意の
形態のネットワークでよく、また無線などの通信手段を
用いてもよい。
The communication control device 2 and the controller 3 each include an arithmetic processing device and a storage device for storing data in order to perform communication according to a predetermined communication protocol. The controller 3 is, for example, a computer (a control process computer, a workstation, or a personal computer) or a PC (programmable controller). Although the network 1 is shown as a bus type, any type of network may be used, and communication means such as wireless may be used.

【0018】ネットワーク1に接続する通信制御装置2
は、物流工程に対応してセンサ、コンベア駆動用のモー
タ、梱包や仕分けの専用機などの制御機器を接続してい
る。
Communication control device 2 connected to network 1
Connects control devices such as sensors, motors for driving the conveyor, and dedicated machines for packing and sorting in accordance with the logistics process.

【0019】たとえば、センサ20−1,20−2は梱
包工程のベルトコンベアの所定位置に2重化設置され、
製品の通過を検知すると通信制御装置2−1にデータを
送信する。通信制御装置2−1は2重化されたセンサ2
0−1,20−2の少なくとも一方からデータを受け取
ると、対応するコントローラ3−1にネットワーク1を
介して送信する。コントローラ3−1は、センサ20−
1(または、20−2)からの製品通過のデータを受信
すると、当該工程のベルトコンベアの駆動モータの停止
命令を通信制御装置2−1に送信し、通信制御装置2−
1は自己に接続しているモータ20−i〜20−jに同
時に通知し、その回転を停止させる。また、通信制御装
置2−1は、2重化されたセンサ20−k,20−(k
+1)が検知した梱包の完了を示すデータを受け取る
と、コントローラ3−1に送信し、コントローラ3−1
から受信した動作開始命令をモータ20−i〜20−j
に同時に伝える。
For example, the sensors 20-1 and 20-2 are installed at predetermined positions on a belt conveyor in a packing process,
When the passage of the product is detected, the data is transmitted to the communication control device 2-1. The communication control device 2-1 has a duplicated sensor 2
When data is received from at least one of 0-1 and 20-2, the data is transmitted to the corresponding controller 3-1 via the network 1. The controller 3-1 includes a sensor 20-
1 (or 20-2), a command to stop the drive motor of the belt conveyor in the process is transmitted to the communication control device 2-1 and the communication control device 2-
1 simultaneously notifies the motors 20-i to 20-j connected thereto and stops their rotation. Further, the communication control device 2-1 includes the duplicated sensors 20-k, 20- (k
When receiving the data indicating the completion of the packing detected in +1), the data is transmitted to the controller 3-1 and the controller 3-1 is transmitted.
From the motors 20-i to 20-j
Tell at the same time.

【0020】通信制御装置2は、センサなどのインプッ
ト機器(上述のデータ発信機器)から受信したデータに
対して、プロトコルヘッダを付与してネットワークにフ
レームとして送信し、また、ネットワーク1から受信し
たフレーム内のデータ(制御命令)を取りだして、自己
に接続する該当のアウトプット機器(上述のデータ受信
機器)に通知する。
The communication control device 2 adds a protocol header to data received from an input device such as a sensor (the above-described data transmission device) and transmits the data to the network as a frame. The data (control command) is taken out and the corresponding output device (the above-mentioned data receiving device) connected to itself is notified.

【0021】なお、データの送受信は通信制御装置2と
コントローラ3間に限られず、複数の通信制御装置間で
あってもよい。たとえば、上記のセンサ20−k,20
−(k+1)が通信制御装置2−2に接続されていて、
梱包の完了を示すデータが通信制御装置2−2から通信
制御装置2−1に送信されてもよい。
The data transmission / reception is not limited to between the communication control device 2 and the controller 3, but may be between a plurality of communication control devices. For example, the sensors 20-k, 20
− (K + 1) is connected to the communication control device 2-2,
Data indicating the completion of packing may be transmitted from the communication control device 2-2 to the communication control device 2-1.

【0022】図3に、本実施例の通信制御装置が送受信
するメッセージのフレームフォーマットを示す。通信フ
レームはフレームの区切りを示す「ヘッダ部」及び「ト
レイラ部」、フレームの宛先アドレスを示す「宛先アド
レス(DA)部」、送信元の通信制御装置2のネットワ
ーク1上でのアドレスを示す「送信元アドレス(SA)
部」、及び「データ部」から構成される。データ部は、
通信制御装置2に接続される各機器に割当てられる「接
続機器の送受信データ部」と、各機器の種類と動作によ
り一意に設定される「機器種別情報部」から構成され
る。
FIG. 3 shows a frame format of a message transmitted and received by the communication control device of this embodiment. The communication frame includes a “header part” and a “trailer part” indicating a frame delimiter, a “destination address (DA) part” indicating a destination address of the frame, and an “address indicating the address of the communication control device 2 of the transmission source on the network 1”. Source address (SA)
Section "and" data section ". The data section is
It is composed of a “transmitted / received data section of the connected device” allocated to each device connected to the communication control device 2 and a “device type information portion” uniquely set according to the type and operation of each device.

【0023】図1は、本発明の一実施例による通信制御
装置の構成を示す。通信制御装置2はMPU4、MPU
4が動作するためのプログラムを格納するROM9、R
AM10、ネットワーク1とフレームを送受信する通信
プロトコル制御部8、内部バス5、割り込み信号線6、
複数の機器接続部14−1〜14−nから構成される。
なお、図示の点線部は、後述する実施例2で付加される
構成である。
FIG. 1 shows the configuration of a communication control device according to an embodiment of the present invention. Communication control device 2 is MPU4, MPU
ROM 9 for storing a program for operating 4
AM 10, a communication protocol controller 8 for transmitting and receiving frames to and from the network 1, an internal bus 5, an interrupt signal line 6,
It is composed of a plurality of device connection units 14-1 to 14-n.
It should be noted that the dotted line portion in the drawing is a configuration added in a second embodiment described later.

【0024】機器接続部14はそれぞれMPU4が識別
するための識別番号(I/FNo)を持ち、通信制御装
置2と接続機器20とのインタフェースとなる機器I/
F部15、機器種別情報レジスタ16、稼働レジスタ1
7から構成される。機器I/F部15には、接続機器2
0から受信したデータを一時蓄える受信バッファ18を
備えている。
The device connection units 14 each have an identification number (I / FNo) for the MPU 4 to identify, and a device I / F that serves as an interface between the communication control device 2 and the connected device 20.
F unit 15, device type information register 16, operation register 1
7 is comprised. The device I / F unit 15 includes the connected device 2
It has a reception buffer 18 for temporarily storing data received from 0.

【0025】以下、本実施例の通信制御装置の詳細な構
成と動作を説明する。まず、接続機器20−1〜20−
nに対応して設定される機器種別情報を説明する。通信
制御装置2に接続した機器の稼働開始に先立つ前処理と
して、機器種別情報レジスタ16に機器種別情報の設定
を行う。たとえば、機器種別情報は16進数4桁の数字
で表わされ、4個の16進ロータリースイッチからなる
機器種別情報設定スイッチ161で設定される。
Hereinafter, the detailed configuration and operation of the communication control device according to this embodiment will be described. First, the connection devices 20-1 to 20-
The device type information set corresponding to n will be described. As preprocessing prior to the start of operation of the device connected to the communication control device 2, device type information is set in the device type information register 16. For example, the device type information is represented by a four-digit hexadecimal number, and is set by a device type information setting switch 161 including four hexadecimal rotary switches.

【0026】機器種別情報は、機器の種類と動作に対応
して一意に割り当てられる情報で、多重化機器群や一つ
の指令に対応して同じ動作をする機器群には同一の機器
種別情報が割り当てられる。しかし、同種類の機器でも
使用目的や動作が異なれば、別の機器種別情報が割り当
てられる。たとえば、同種類のセンサが2台あり、それ
ぞれモニタしている対象が異なるとき、これらセンサに
は別の機器種別情報が割り当てられる。
The device type information is information uniquely assigned according to the type and operation of the device. The same device type information is assigned to a multiplexed device group or a device group that performs the same operation in response to one command. Assigned. However, if the same type of device has a different purpose or operation, different device type information is assigned. For example, when there are two sensors of the same type and the monitored targets are different, different device type information is assigned to these sensors.

【0027】機器種別情報を設定後、機器接続部14に
対して設けられた稼働スイッチ171をONすると、稼
働レジスタ17に接続機器20の稼働開始を示す情報が
書き込まれ、この時にMPU4に対して割り込み信号が
入る。MPU4は割り込み信号を受けると、該当する機
器接続部14のI/FNoを認識して、該I/FNoの機
器種別情報レジスタ16から接続機器20の機器種別情
報を読み込む。以上が、接続機器に対する稼働前処理で
ある。
When the operation switch 171 provided for the device connection unit 14 is turned on after the device type information is set, information indicating the start of operation of the connected device 20 is written in the operation register 17, and at this time, the MPU 4 An interrupt signal is received. Upon receiving the interrupt signal, the MPU 4 recognizes the I / F No of the corresponding device connection unit 14 and reads the device type information of the connected device 20 from the device type information register 16 of the I / F No. The above is the pre-operation processing for the connected device.

【0028】図4に、I/FNoと対応する機器種別情
報を登録した機器種別情報テーブルの一例を示す。機器
種別情報テーブル101はRAM10上に確保され、多
重化機器や同一動作の機器に対して同じ機器種別情報を
登録する。以後、MPU4は機器種別情報テーブル10
1を参照して、自己の接続機器20に対するデータの送
受信処理を行う。
FIG. 4 shows an example of the device type information table in which the device type information corresponding to the I / F No is registered. The device type information table 101 is secured in the RAM 10 and registers the same device type information for multiplexed devices and devices having the same operation. Thereafter, the MPU 4 stores the device type information table 10
With reference to FIG. 1, data transmission / reception processing for the connected device 20 is performed.

【0029】また、稼働スイッチ171をOFFにする
と、稼働レジスタ17に接続機器20の稼働停止を示す
情報が書き込まれ、MPU4に割り込み信号が入る。割
り込み信号が入った後、MPU4はどのI/FNoの機
器接続部14に接続された機器が稼働停止したかを認識
し、機器種別情報テーブル101から当該機器の機器種
別情報を消去する。したがって、機器種別情報テーブル
101のI/FNoで、機器種別情報が未登録の機器接
続部14は、機器が接続されていないか、稼働していな
いことを意味している。
When the operation switch 171 is turned off, information indicating the stop of the operation of the connected device 20 is written in the operation register 17 and an interrupt signal is input to the MPU 4. After receiving the interrupt signal, the MPU 4 recognizes which I / F No of the device connected to the device connection unit 14 has stopped operating, and deletes the device type information of the device from the device type information table 101. Therefore, the device connection unit 14 in which the device type information is not registered in the I / F No of the device type information table 101 means that the device is not connected or is not operating.

【0030】次に、ネットワーク上から受信した通信フ
レーム内のデータを、接続機器に送信する機能について
説明する。
Next, a function of transmitting data in a communication frame received from a network to a connected device will be described.

【0031】通信プロトコル制御部8は、ネットワーク
1から自己宛のフレームを受信すると、MPU4に対し
て受信割り込み信号を発行する。割り込みを受けたMP
U4は、通信プロトコル制御部8が受信したフレームを
RAM10上の受信バッファ104へコピーして、通信
フレームのデータ部にある機器種別情報とデータを読み
込む。その後、機器種別情報テーブル101を参照し、
フレームの機器種別情報と一致する情報を登録している
I/FNoを調べ、そのI/FNoの機器I/F部14を
経由して、該当する接続機器20に読み込んだデータを
送信する。
When receiving the frame addressed to itself from the network 1, the communication protocol control unit 8 issues a reception interrupt signal to the MPU 4. MP interrupted
U4 copies the frame received by the communication protocol control unit 8 to the reception buffer 104 on the RAM 10, and reads the device type information and the data in the data portion of the communication frame. After that, referring to the device type information table 101,
The I / F No that registers information matching the device type information of the frame is checked, and the read data is transmitted to the corresponding connected device 20 via the device I / F unit 14 of the I / F No.

【0032】この場合、フレームから読み込んだ機器種
別情報が機器種別情報テーブル101の複数のI/FN
oに登録されているときは、それぞれのI/FNoに対
応する複数の接続機器20に同一のデータを送信する。
図4に示した機器種別情報テーブルの場合、通信制御装
置2が「機器種別情報=A」の通信フレームを受信した
ときは、I/FNo=0とI/FNo=3に接続している
2つの接続機器20へ、それぞれ同一データを送信す
る。たとえば、図2の物流システムで説明した、同一コ
ンベア駆動用のモータ群などがこれに相当する。
In this case, the device type information read from the frame corresponds to a plurality of I / FNs in the device type information table 101.
When registered in o, the same data is transmitted to a plurality of connected devices 20 corresponding to each I / F No.
In the case of the device type information table shown in FIG. 4, when the communication control device 2 receives the communication frame of “device type information = A”, it is connected to I / FNo = 0 and I / FNo = 3. The same data is transmitted to each of the two connected devices 20. For example, the motor group for driving the same conveyor described in the distribution system of FIG. 2 corresponds to this.

【0033】次に、接続機器20から受信したデータ
を、ネットワーク1へ通信フレームとして送信する機能
について説明する。
Next, a function of transmitting data received from the connection device 20 to the network 1 as a communication frame will be described.

【0034】機器I/F部15は、接続機器20からデ
ータを受信すると受信バッファ18に記憶する。MPU
4は各I/FNoの機器I/F部15を順にサーチし
て、受信バッファ18からデータを取り込み、RAM1
0の送信バッファ103へコピーする。
When the device I / F unit 15 receives data from the connected device 20, the data is stored in the reception buffer 18. MPU
4 sequentially searches the device I / F unit 15 of each I / F No, fetches data from the reception buffer 18, and
0 to the transmission buffer 103.

【0035】この後、MPU4は機器種別情報テーブル
101を参照し、取り込んだデータに対して、対応する
I/FNoの機器種別情報を付加する。さらに、宛先ア
ドレス(SA)・送信元アドレス(DA)を付加して通
信プロトコル制御部8へ渡す。通信プロトコル制御部8
は、ヘッダとトレイラを付加して通信フレームを形成
し、ネットワーク1へ送信する。
After that, the MPU 4 refers to the device type information table 101 and adds the device type information of the corresponding I / F No to the fetched data. Further, a destination address (SA) and a transmission source address (DA) are added and passed to the communication protocol control unit 8. Communication protocol control unit 8
Sends a communication frame to the network 1 by adding a header and a trailer.

【0036】この場合、機器種別情報テーブル101の
複数のI/FNoに、同一の機器種別情報が登録されて
いるときは、それらI/FNoを持つ接続部14に接続
されている機器は多重化されているので、該機器群から
受信した複数のデータのうち1つを選択して、ネットワ
ーク1へ送信する。以下に、優先送信フラグと送信カウ
ンタを用いたデータの選択送出処理を説明する。
In this case, when the same device type information is registered in a plurality of I / F Nos in the device type information table 101, the devices connected to the connection unit 14 having these I / F Nos are multiplexed. Therefore, one of the plurality of data received from the device group is selected and transmitted to the network 1. Hereinafter, a process of selectively transmitting data using the priority transmission flag and the transmission counter will be described.

【0037】MPU4は、機器接続部14から機器の接
続を通知され、機器種別情報テーブル101に機器種別
情報を登録する際、その機器種別情報がテーブル内でユ
ニークであれば対応するI/FNoに優先送信フラグを
ON設定し、登録済みであれば対応するI/FNoの優
先送信フラグをOFFとする。
The MPU 4 is notified of the connection of the device from the device connection unit 14, and registers the device type information in the device type information table 101 if the device type information is unique in the table. The priority transmission flag is set ON, and if registered, the priority transmission flag of the corresponding I / F No is turned OFF.

【0038】図5に、優先送信フラグを含む機器種別情
報テーブルの一例を示す。たとえば、I/FNo=0〜
3の機器接続部14に、機器種別情報がそれぞれA,
B,C,Aの機器が接続されて、この順に稼働を開始し
たとする。この場合、I/FNo=0〜2に対応する機
器の優先送信フラグはON、I/FNo=3の機器に対
応する優先送信フラグはOFFに設定される。
FIG. 5 shows an example of a device type information table including a priority transmission flag. For example, I / FNo = 0 ~
3, device type information is A,
Assume that the devices B, C, and A are connected and start operating in this order. In this case, the priority transmission flag of the device corresponding to I / FNo = 0 to 2 is set to ON, and the priority transmission flag corresponding to the device of I / FNo = 3 is set to OFF.

【0039】さらに、機器種別情報毎にユニークに割り
振られた優先送信機器フラグを、多重化構成の変化に伴
って変更するために、RAM10上に設けた送信カウン
タテーブル102の登録が行われる。ある機器の稼働開
始の前処理時、MPU4は機器種別情報テーブル101
をサーチし、当該機器の機器種別情報が未登録の場合、
その機器種別情報に対応して送信カウンタとカウンタ使
用フラグを登録する。登録時の送信カウンタは0、カウ
ンタ使用フラグはOFFとなる。ただし、機器種別情報
テーブル101に、既に同一の機器種別情報が存在して
いる場合は、その情報のカウンタ使用フラグをONにす
る。
Further, a transmission counter table 102 provided on the RAM 10 is registered in order to change a priority transmission device flag uniquely assigned to each device type information according to a change in the multiplexing configuration. At the time of pre-processing for starting the operation of a certain device, the MPU 4 executes the device type information table 101.
And if the device type information of the device is not registered,
A transmission counter and a counter use flag are registered corresponding to the device type information. The transmission counter at the time of registration is 0, and the counter use flag is OFF. However, if the same device type information already exists in the device type information table 101, the counter use flag of that information is turned ON.

【0040】図6に、カウンターテーブルの一例を示
す。I/FNo=0〜3の機器接続部14に、機器種別
情報がそれぞれA,B,C,Aである機器が接続され、
I/FNo=0〜3の順に稼働を開始した場合、I/FN
o=3の機器種別情報Aはすでに登録済みのため、情報
Aに対応するカウンタ使用フラグがOFFからONに設
定される。この時点の情報Aの送信カウンタはn=0で
ある。これらを前提に、2重化構成の変化をチエックし
ながら行なわれる、送信データの選択送出処理について
説明する。
FIG. 6 shows an example of the counter table. Devices whose device type information is A, B, C, and A are connected to the device connection units 14 of I / FNo = 0 to 3, respectively.
When the operation is started in the order of I / FNo = 0 to 3, the I / FN
Since the device type information A of o = 3 has already been registered, the counter use flag corresponding to the information A is set from OFF to ON. At this time, the transmission counter of the information A is n = 0. On the basis of these, a description will be given of the transmission data selection transmission processing performed while checking the change of the duplex configuration.

【0041】図7に、送信データの選択送出処理のフロ
ーを示す。MPU4は機器接続部14−1〜14−nか
ら送信データとI/FNoを取得する度に、以下の処理
を行う。
FIG. 7 shows the flow of the process of selecting and transmitting transmission data. The MPU 4 performs the following processing each time the transmission data and the I / F No are obtained from the device connection units 14-1 to 14-n.

【0042】まず、機器種別情報テーブルを参照し、取
得したI/FNoに設定されている機器種別情報と優先
送信フラグを読み出し(s101)、優先送信フラグが
ONか判定する(s102)。ONであれば、送信カウ
ンタテーブルを参照し、当該機器種別情報の送信カウン
タn=0か判定する(s103)。n=0であれば、カ
ウンタ使用フラグがONか判定し(s104)、ONで
あれば当該データを発行した機器は2重化されているの
で、当該送信カウンタnを+1し(s105)、ネット
ワーク1へデータを送信して(s106)、終了する。
First, referring to the device type information table, the device type information and the priority transmission flag set in the acquired I / F No are read (s101), and it is determined whether the priority transmission flag is ON (s102). If it is ON, it is determined whether or not the transmission counter n of the device type information is 0 with reference to the transmission counter table (s103). If n = 0, it is determined whether the counter use flag is ON (s104). If ON, since the device that issued the data is duplicated, the transmission counter n is incremented by one (s105), and the network The data is transmitted to No. 1 (s106), and the process ends.

【0043】ステップs104で、カウンタ使用フラグ
がOFFであれば、当該データを発行した機器は2重化
されていないので、送信カウンタを0に保持したまま、
ネットワーク1へデータを送信する。
In step s104, if the counter use flag is OFF, the device that issued the data is not duplicated, so that the transmission counter is kept at 0,
The data is transmitted to the network 1.

【0044】また、ステップs103の判定で、n≠0
であれば、送信カウンタnを+1し(s111)、その
ときのカウンタnが所定値N以上であるか判定し(s1
12)、n<Nであればネットワーク1へデータを送信
する。しかし、n≧Nであれば、2重化の非優先側の機
器(従系)が障害などで機能していないとみれるので、
送信カウンタn=0,カウンタ使用フラグ=OFFに設
定変更して(s113)、1重系の送信処理に移行す
る。
Also, in the determination in step s103, n ≠ 0
, The transmission counter n is incremented by 1 (s111), and it is determined whether the counter n at that time is equal to or more than a predetermined value N (s1).
12) If n <N, transmit data to network 1. However, if n ≧ N, it is considered that the device on the non-priority side of the duplexing (subordinate system) does not function due to a failure or the like.
The setting of the transmission counter n is changed to 0 and the counter use flag is set to OFF (s113), and the processing shifts to a single transmission system.

【0045】一方、ステップs102で、優先送信フラ
グがOFFの場合は、当該データを発行した機器は2重
化の非優先側である。この場合、当該機器種別情報の送
信カウンタnが0か判定し(s121)、0でなけば送
信カウンタnを−1して(s131)、データを送信せ
ずに終了する。このように、送信カウンタnは2重化装
置の優先側の処理s105で+1されたのち、非優先側
の処理s121で−1されてn=0となるので、2重化
機器がともに正常に動作している場合は、送信カウンタ
nが所定値Nを超えることはない。
On the other hand, if the priority transmission flag is OFF in step s102, the device that issued the data is on the non-priority side of duplexing. In this case, it is determined whether the transmission counter n of the device type information is 0 (s121). If the transmission counter n is not 0, the transmission counter n is decremented by 1 (s131), and the process ends without transmitting data. As described above, the transmission counter n is incremented by +1 in the processing s105 on the priority side of the duplexer, and then decremented by −1 in the processing s121 on the non-priority side, so that n = 0. When operating, the transmission counter n does not exceed the predetermined value N.

【0046】ステップs121で、送信カウンタn=0
と判定されるときは、2重化の優先側の機器(主系)の
データが何らかの原因で正常に取り込まれなかったか、
機器構成が1重化から2重化へ変更(復帰)された場合
である。そこで、当該機器種別情報のカウンタ使用フラ
グがONか判定し(s122)、OFFであれば2重化
への変更とみて、当該カウンタ使用フラグをON設定し
て(s141)、終了する。
At step s121, the transmission counter n = 0
If it is determined that the data of the device (main system) on the priority side of the duplication was not normally imported for some reason,
This is a case where the device configuration is changed (returned) from a single configuration to a dual configuration. Therefore, it is determined whether the counter use flag of the device type information is ON (s122). If the counter use flag is OFF, it is regarded as a change to duplexing, the counter use flag is set ON (s141), and the process ends.

【0047】ステップs122で、カウンタ使用フラグ
がONであれば、2重系の優先機器側の問題とみて、当
該I/FNoの優先送信フラグをOFFからON、相手
I/FNoの優先送信フラグをONからOFFに、主系
/従系の入れ替えを行い、送信カウンタnを+1して
(s123)、ネットワーク上へデータを送信する。主
従入替え後、もし、元の主系の機器が故障であれば、送
信カウンタn≧Nとなるので、s113で1重系処理に
移行する。なお、ステップs123で、カウンタ使用フ
ラグをOFFして、直ちに元の従系による1従系処理に
移行することも可能である。
In step s122, if the counter use flag is ON, the priority transmission flag of the I / FNo is turned on from OFF, and the priority transmission flag of the partner I / FNo is considered to be a problem on the priority side of the dual system. The main / slave system is switched from ON to OFF, the transmission counter n is incremented by 1 (s123), and the data is transmitted over the network. After the main-substitution replacement, if the original main-system equipment is out of order, the transmission counter n ≧ N, so that the processing shifts to the single-system processing in s113. In step s123, it is also possible to turn off the counter use flag and immediately shift to the single slave processing by the original slave.

【0048】本実施例によれば、従来はコントローラを
介してネットワークに接続されていた機器が、多重化デ
ータの送受信が可能な通信制御装置を介してネットワー
クに接続されるので、多重化構成の変化によってコント
ローラのアプリケーションを変更する必要がなく、物流
システムなどのように多重化構成の変更を含むシステム
の頻繁な構成変更が容易になる。
According to this embodiment, devices conventionally connected to the network via the controller are connected to the network via a communication control device capable of transmitting and receiving multiplexed data. It is not necessary to change the application of the controller due to the change, and frequent configuration changes of the system including the change of the multiplex configuration such as the distribution system are facilitated.

【0049】また、本実施例の通信制御装置によれば、
機器の種類及び動作に対して一意に割り当てられる機器
種別情報を各接続機器に設定するので、多重化機器から
の送信データの選択送出処理、あるいは1つのデータを
複数の機器に受け渡すときの受信処理が容易に、かつ汎
用的に実現できる。
According to the communication control apparatus of the present embodiment,
Since the device type information uniquely assigned to the type and operation of the device is set in each connected device, the process of selecting and transmitting transmission data from the multiplexing device or the reception when transferring one data to a plurality of devices is performed. Processing can be realized easily and for general purposes.

【0050】さらに、多重化されている機器種別情報の
送信カウンタから機器の故障や回復による多重化構成の
変更にも自動対応できるので、システムの信頼性を向上
できる。
Furthermore, since the transmission counter of the multiplexed device type information can automatically respond to a change in the multiplexing configuration due to device failure or recovery, the reliability of the system can be improved.

【0051】次に、第2の実施例によるデータの選択送
出処理について説明する。上記の第1の実施例によるデ
ータの選択送出処理はデータの取り込みと、通信プロト
コル部11を介したネットワーク1への送信を、一貫処
理している。これに対し、第2の実施例は多重化データ
の場合、データの取り込みとネットワーク1への送信処
理を分離し、非同期に行う。このため、RAM10上に
共通メモリ106の領域を確保している。
Next, a description will be given of a data transmission process according to the second embodiment. In the data selective transmission processing according to the first embodiment, the data fetching and the transmission to the network 1 via the communication protocol unit 11 are performed in an integrated manner. On the other hand, in the second embodiment, in the case of multiplexed data, the process of taking in the data and the process of transmitting the data to the network 1 are separated and performed asynchronously. For this reason, an area of the common memory 106 is secured on the RAM 10.

【0052】MPU4は機器20の接続に伴う稼働前処
理時に、各機器種別情報に対して共通メモリ106の領
域登録を行なう。すなわち、機器種別情報テーブル10
1への登録時に、その機器種別情報に対する共通メモリ
使用フラグと共通メモリ領域を共通メモリテーブル10
5に登録する。この場合、新規登録の機器種別情報に対
する共通メモリ領域は確保せず、その共通メモリ使用フ
ラグはOFFとなる。そして、既登録の機種別情報と同
じ情報をもつ他機器の登録に際して、共通メモリ使用フ
ラグをONにしてRAM10上に共通メモリ領域を確保
し、そのアドレスとサイズを共通メモリテーブル105
に登録する。
The MPU 4 registers an area of the common memory 106 for each device type information at the time of a pre-operation process associated with the connection of the device 20. That is, the device type information table 10
1, the common memory use flag and the common memory area for the device type information are stored in the common memory table 10.
Register to 5. In this case, the common memory area for the newly registered device type information is not secured, and the common memory use flag is turned off. When registering another device having the same information as the registered model-specific information, the common memory use flag is turned on to secure a common memory area in the RAM 10, and its address and size are stored in the common memory table 105.
Register with.

【0053】図8に、共通メモリテーブルの構成を示
す。たとえば、I/FNo=0〜3の機器接続部14−
1〜14−4に、機器種別情報がそれぞれA,B,C,
Aの機器20−1〜20−4を接続し、0〜3の順に稼
働を開始したとする。この場合、I/FNo=0とI/F
No=3の機器接続部14−1と14−4に、同じ機器
種別情報Aを持つ機器20−1と20−4が接続されて
いるため、情報Aに対応する共通メモリ使用フラグがO
Nに設定されて、情報Aの共通メモリ106が確保され
る。
FIG. 8 shows the structure of the common memory table. For example, the device connection unit 14- of I / FNo = 0 to 3
The device type information includes A, B, C,
It is assumed that the devices 20-1 to 20-4 of A are connected and the operation starts in the order of 0 to 3. In this case, I / FNo = 0 and I / F
Since the devices 20-1 and 20-4 having the same device type information A are connected to the device connection units 14-1 and 14-4 of No = 3, the common memory use flag corresponding to the information A is set to O.
N is set, and the common memory 106 for the information A is secured.

【0054】図9に、共通メモリのフォーマットを示
す。RAM10上に確保される共通メモリ106は、書
き込み中フラグ、周期送信中止フラグ、機器から取り込
んだデータを書き込むデータエリアから構成される。共
通メモリ106のアドレスとサイズは、図8のように機
器種別情報毎に設定される。
FIG. 9 shows a format of the common memory. The common memory 106 secured on the RAM 10 includes a writing flag, a periodic transmission stop flag, and a data area in which data taken from the device is written. The address and size of the common memory 106 are set for each device type information as shown in FIG.

【0055】このように、MPU4は多重化された機器
群から取得したデータを、一旦、RAM10上の共通メ
モリ106へ次々と書き込む。一方、タイマ7による一
定時間周期で割り込み処理を起動し、共通メモリ106
のデータを通信プロトコル制御部11へ送出し、ネット
ワーク1にフレームとして送信する。
As described above, the MPU 4 writes the data obtained from the multiplexed device group into the common memory 106 on the RAM 10 one after another. On the other hand, the interrupt processing is started at a fixed time period by the timer 7, and the common memory 106 is activated.
Is transmitted to the communication protocol controller 11 and transmitted to the network 1 as a frame.

【0056】図10に、共通メモリを使用したデータの
選択送出処理フローを示す。(a)は共通メモリへのデ
ータ書き込み処理、(b)はタイマ割り込みによる共通
メモリからのデータの送信処理をそれぞれ示す。2つの
処理は非同期に行われるので、共通メモリ106へのデ
ータ書き込み処理中に、タイマ割り込み処理が行われる
ことがある。
FIG. 10 shows the flow of processing for selecting and transmitting data using the common memory. (A) shows a process of writing data to the common memory, and (b) shows a process of transmitting data from the common memory by a timer interrupt. Since the two processes are performed asynchronously, a timer interrupt process may be performed during the process of writing data to the common memory 106.

【0057】(a)の共通メモリへのデータ書き込み処
理は、同一の機器種別情報を持つ多重化機器からのデー
タ送信時に開始される。I/FNo=xの多重化機器の
接続している受信バッファ18からデータを取得し(S
301)、これを共通メモリ領域へコピーする(S30
3)。多重化機器のデータの書き込みは、稼働順に上書
きされる。なお、コピー処理の前後で共通メモリテーブ
ル105の書き込み中フラグをON/OFFする(S3
02,S304)。
The process (a) of writing data to the common memory is started when data is transmitted from a multiplexing device having the same device type information. Data is acquired from the reception buffer 18 connected to the multiplexing device of I / FNo = x (S
301) and copy it to the common memory area (S30)
3). Data writing of the multiplexing device is overwritten in the operation order. Before and after the copy process, the writing flag of the common memory table 105 is turned ON / OFF (S3).
02, S304).

【0058】データ書き込み終了後、周期送信中止フラ
グがONの場合(S305)、通信プロトコル制御部8
へデータを送出し、ネットワーク1へフレームを送信し
(S306)、周期送信中止フラグをOFFし(S30
7)、終了する。ステップS305で、周期送信中止フ
ラグがONの場合は、データを送出せずに終了する。そ
の後、同一の機器種別情報を持つ他の多重化機器(I/
FNo=x+i)からのデータ送信時に再び書き込み処
理が開始され、同一データが上書きされる。
After the end of data writing, if the periodic transmission stop flag is ON (S305), the communication protocol control unit 8
And sends a frame to the network 1 (S306), and turns off the periodic transmission stop flag (S30).
7), end. If the periodic transmission stop flag is ON in step S305, the process ends without transmitting data. Thereafter, another multiplexing device (I /
When data is transmitted from FNo = x + i), the writing process is started again, and the same data is overwritten.

【0059】一方、(b)のタイマ割り込み処理は、タ
イマ7の設定により周期的に発生する。MPU4はタイ
マ7からの割り込みがあると、共通メモリテーブル10
5の書き込み中フラグをチエックし(S401)、OF
Fであれば、共通メモリ106のデータを通信プロトコ
ル制御部8へ送出する(S402)。しかし、書き込み
中フラグがONであれば、共通メモリ106へのデータ
書き込み中であるので、周期送信中止フラグをONにし
て(S403)、該タイマ割り込みを終了する。この周
期送信中止フラグを、MPU4がステップS305でO
N判定すると、データ書き込み中に発生したタイマー割
り込み処理が中断されていたものと認め、書き込み終了
したデータを通信プロトコル制御部8に送信する。
On the other hand, the timer interrupt processing (b) is periodically generated by setting the timer 7. When the MPU 4 receives an interrupt from the timer 7, the MPU 4
5 is checked (S401), and the OF flag is checked.
If F, the data in the common memory 106 is sent to the communication protocol control unit 8 (S402). However, if the writing flag is ON, it means that data is being written to the common memory 106, so the periodic transmission stop flag is turned ON (S403), and the timer interrupt ends. The MPU 4 sets this periodic transmission stop flag to O in step S305.
When N is determined, it is recognized that the timer interrupt processing that has occurred during data writing has been interrupted, and the written data is transmitted to the communication protocol control unit 8.

【0060】本実施例によれば、多重化データの取り込
みと送出処理が分離されるので、同一の機器種別情報に
対する全多重化データが揃うまで送出処理を待つ必要が
なく、また、多重化データの優先判定も不要となるの
で、実施例1に比べてMPUのオーバヘッドを低減でき
る。
According to this embodiment, the multiplexed data acquisition and transmission processing are separated, so that it is not necessary to wait for the transmission processing until all the multiplexed data for the same device type information are collected. Is unnecessary, and the MPU overhead can be reduced as compared with the first embodiment.

【0061】なお、上記では多重化データについての
み、共通メモリ領域を確保したが、他のデータに対して
も同様に構成して、全ての送信データの取り込みと送信
を分離して、非同期に行うことも可能である。
In the above description, the common memory area is reserved only for the multiplexed data. However, the same configuration is applied to the other data, and the capture and transmission of all transmission data are separated and performed asynchronously. It is also possible.

【0062】[0062]

【発明の効果】本発明の通信制御装置は予め接続機器毎
に、機器の種別及び使用目的(または、動作)に対して
一意の機器種別情報を設定し、多重化機器群からの送信
データのネットワーク上への選択送信や、ネットワーク
からの多重化制御や同一制御などのデータの複数機器に
よる受信を、前記機器種別情報を用いて判別しながら処
理でき、汎用の多重化通信制御装置を提供できる。
According to the communication control apparatus of the present invention, unique device type information is set in advance for each connected device with respect to the device type and the purpose of use (or operation), and transmission data from the multiplexed device group is set. Selective transmission on the network and reception of data such as multiplexing control and the same control from the network by a plurality of devices can be processed while determining using the device type information, and a general-purpose multiplex communication control device can be provided. .

【0063】また、本発明によれば、コントローラなど
のアプリケーションによらない送受信処理が可能になる
ので、多重化機器を含むシステム構成の変更が容易かつ
低コストで実現できる。
Further, according to the present invention, transmission / reception processing independent of an application such as a controller can be performed, so that a system configuration including a multiplexing device can be easily changed at low cost.

【0064】さらに、多重化機器の機器種別情報の送信
カウンタによって、故障や復旧あるいは増設等による多
重化機器の変更を管理できるので、構成の変更が頻繁な
システムに好適で、かつシステムの信頼性を向上でき
る。
Further, the transmission counter of the device type information of the multiplexed device can manage the change of the multiplexed device due to a failure, recovery, or expansion, so that it is suitable for a system in which the configuration is frequently changed, and the reliability of the system is improved. Can be improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例による通信制御装置の構成
図。
FIG. 1 is a configuration diagram of a communication control device according to an embodiment of the present invention.

【図2】本発明の通信制御装置を適用する物流システム
の概略構成図。
FIG. 2 is a schematic configuration diagram of a distribution system to which the communication control device of the present invention is applied.

【図3】通信制御装置が送受信する通信フレームのフォ
ーマット図。
FIG. 3 is a format diagram of a communication frame transmitted and received by a communication control device.

【図4】接続機器の機器種別を管理する機器種別情報テ
ーブルの構成を示す一例図。
FIG. 4 is an example diagram showing a configuration of a device type information table for managing device types of connected devices.

【図5】優先送信フラグを含む機器種別情報テーブルの
構成を示す一例図。
FIG. 5 is an example diagram showing a configuration of a device type information table including a priority transmission flag.

【図6】多重化情報の生死を管理する送信カウンタテー
ブルの構成を示す一例図。
FIG. 6 is an example diagram showing a configuration of a transmission counter table for managing life and death of multiplexed information.

【図7】本発明の第1の実施例によるデータ選択送出処
理を示すフローチャート。
FIG. 7 is a flowchart showing data selection transmission processing according to the first embodiment of the present invention.

【図8】第2の実施例による共通メモリテーブルの構成
を示す一例図。
FIG. 8 is an example diagram showing a configuration of a common memory table according to a second embodiment.

【図9】第2の実施例による共通メモリの構成を示す一
例図。
FIG. 9 is an example diagram showing a configuration of a common memory according to a second embodiment.

【図10】本発明の第2の実施例によるデータ選択送出
処理を示すフローチャート。
FIG. 10 is a flowchart showing data selection transmission processing according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1…ネットワーク、2…通信制御装置、3…コントロー
ラ、4…MPU、5…内部バス、6…割り込み信号線、
7…タイマ、8…通信プロトコル制御部、9…ROM、
10…RAM、14…機器接続部、15…機器I/F
部、16…機器種別情報レジスタ、17…稼働レジス
タ、18…受信バッファ、20…接続機器、101…機
器種別情報テーブル、102…送信カウンタテーブル、
103…送信バッファ、104…受信バッファ、105
…共通メモリテーブル、106…共通メモリ。
REFERENCE SIGNS LIST 1 network 2 communication controller 3 controller 4 MPU 5 internal bus 6 interrupt signal line
7: timer, 8: communication protocol control unit, 9: ROM,
10 RAM, 14 device connection unit, 15 device I / F
Unit, 16: device type information register, 17: operation register, 18: reception buffer, 20: connected device, 101: device type information table, 102: transmission counter table,
103: transmission buffer, 104: reception buffer, 105
... common memory table, 106 ... common memory.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 綿谷 洋 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 中村 智明 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hiroshi Wataya 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Omika Plant, Hitachi, Ltd. (72) Tomoaki Nakamura 5-chome, Omikamachi, Hitachi City, Ibaraki Prefecture No. 1 Inside the Omika Plant of Hitachi, Ltd.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 通信インターフェースを介してネットワ
ーク内の他の装置とフレームの送受信を行うとともに、
接続インターフェースを介して複数の接続機器とデータ
の授受を行う通信制御装置で、前記接続機器が部分的に
多重化されている場合の多重化通信制御方法において、 前記接続機器の種類及び使用態様に対応して一意に割り
当てられ、多重化機器の場合は同一情報となる機器種別
情報を前記機器毎に登録しておき、 データの送信時、前記接続機器中のデータ発信機器(た
とえば、センサ)からのデータを順番に取り込み、当該
機器に登録されている機器種別情報を前記データに付与
するとともに、宛先アドレスを含む所定のフレームを形
成してネットワークに送出することを特徴とする多重化
通信制御方法。
1. While transmitting and receiving a frame to and from another device in a network via a communication interface,
In a multiplex communication control method in a case where the connection device is partially multiplexed in a communication control device that exchanges data with a plurality of connection devices via a connection interface, the type and use mode of the connection device In the case of a multiplexed device, device type information that is uniquely assigned and becomes the same information is registered for each device, and when data is transmitted, data is transmitted from a data transmission device (for example, a sensor) in the connected device. Multiplexed communication control method, wherein the multiplexed communication control method comprises: sequentially taking in data, adding device type information registered in the device to the data, forming a predetermined frame including a destination address, and transmitting the frame to a network. .
【請求項2】 請求項1において、 前記接続機器中のデータ受信機器(たとえば、アクチュ
エータ)で、同一のデータを受信する機器には同一の機
器種別情報を登録しておき、 ネットワークから受信した自己宛のフレームよりデータ
と機器種別情報を取りだし、当該機器種別情報と同一の
情報が登録されている1または複数の接続機器に対して
当該データを送出することを特徴とする多重化通信制御
方法。
2. The device according to claim 1, wherein the same device type information is registered in a data receiving device (for example, an actuator) among the connected devices, the device receiving the same data. A multiplex communication control method comprising: extracting data and device type information from a frame addressed to the device; and transmitting the data to one or more connected devices in which the same information as the device type information is registered.
【請求項3】 請求項1または2において、 データの送信時、前記多重化機器の場合は優先設定のあ
る機器側のデータのみを送信処理することを特徴とする
多重化通信制御方法。
3. The multiplex communication control method according to claim 1, wherein, when transmitting data, in the case of the multiplex device, only the data of the device having priority setting is transmitted.
【請求項4】 請求項3において、 前記接続機器に対して登録されている前記機器種別情報
毎に、前記多重化機器が2重系の場合の先処理側と非多
重化機器の各々に対し優先送信フラグ、かつ前記多重化
機器に対しカウンタ使用フラグをそれぞれONに設定
し、 データの送信時、対応する機器種別情報の優先フラグ
が、ONの場合は送信カウンタを+1して送信処理を行
い、OFFの場合は前記送信カウンタを−1して送信処
理を行わず、 前記送信カウンタの値がしきい値を超えた場合は、前記
カウンタ使用フラグをOFFして非多重化の送信処理に
移行し、 前記優先送信フラグと前記カウンタ使用フラグがともに
OFFの場合は、非優先側の多重化機器に対する前記カ
ウンタ使用フラグをONに設定し、 前記優先送信フラグがOFFで前記カウンタ使用フラグ
がONの場合、多重化機器の非優先側に対する前記優先
送信フラグをONして優先/非優先の交替を行い、 多重化機器の構成の変更に対応して送信処理するをこと
を特徴とする多重化通信制御方法。
4. The apparatus according to claim 3, wherein, for each of the device type information registered with respect to the connected device, the pre-processing side and the non-multiplexing device when the multiplexing device is a dual system. A priority transmission flag and a counter use flag are set to ON for each of the multiplexing devices. When transmitting data, if the priority flag of the corresponding device type information is ON, the transmission counter is incremented by one to perform transmission processing. If the value is OFF, the transmission counter is decremented by one and the transmission process is not performed. If the value of the transmission counter exceeds a threshold value, the counter use flag is turned OFF and the process proceeds to the non-multiplex transmission process If both the priority transmission flag and the counter use flag are OFF, the counter use flag for the non-priority multiplexing device is set to ON, and the priority transmission flag is OFF and When the counter use flag is ON, the priority transmission flag for the non-priority side of the multiplexing device is turned ON to perform priority / non-priority switching, and the transmission process is performed in response to a change in the configuration of the multiplexing device. Characteristic multiplex communication control method.
【請求項5】 通信インターフェースを介してネットワ
ーク内の他の装置とフレームの送受信を行うとともに、
接続インターフェースを介して複数の接続機器とデータ
の授受を行う通信制御装置で、前記接続機器が部分的に
多重化されている場合の多重化通信制御方法において、 前記接続機器の種類及び使用態様に対応して一意に割り
当てられ、多重化機器の場合は同一情報となる機器種別
情報を前記機器毎に登録しておき、 前記接続機器からのデータを周期的に順番に取りみ、こ
のとき多重化機器からのデータは共通メモリ領域に書き
込むとともに、1機器分データの書き込み処理中は送信
処理の割り込みを禁止し、 前記書き込み処理中に前記割り込みの事実があれば、前
記書き込み処理の終了後に前記共通メモリ領域のデータ
に該当の機器種別情報を付与し、宛先アドレスを含む所
定のフレームを形成してネットワークに送出する送信処
理を行い、一方、所定周期で前記送信処理の割り込みを
発生し、前記書き込み処理中でないときは直ちに前記送
信処理を行うことを特徴とする多重化通信制御方法。
5. While transmitting and receiving a frame to and from another device in the network via a communication interface,
In a multiplex communication control method in a case where the connection device is partially multiplexed in a communication control device that exchanges data with a plurality of connection devices via a connection interface, the type and use mode of the connection device In the case of a multiplexed device, device type information which is uniquely assigned and becomes the same information is registered for each device, and data from the connected device is periodically taken in order. The data from the device is written into the common memory area, and the interruption of the transmission process is prohibited during the writing process of the data for one device. If there is a fact of the interrupt during the writing process, the common process is performed after the end of the writing process. A transmission process is performed in which the device type information is added to the data in the memory area, a predetermined frame including the destination address is formed, and the frame is transmitted to the network. On the other hand, generates an interrupt of the transmission processing at a predetermined cycle, multiplex communication control method characterized in that immediately performs the transmission process when not in the writing process.
【請求項6】 ネットワークに接続し、所定の通信プロ
トコルにしたがってデータの送受信を行う通信インター
フェース部と、システムの制御用の機器などを接続し、
それら接続機器とデータの授受を行う複数の接続インタ
ーフェース部と、これらインターフェース部を制御して
データの送受信処理を行う中央処理装置と、前記データ
などを記憶する記憶装置を備える通信制御装置におい
て、 前記接続インターフェース部に接続された前記機器の種
類及び使用態様に対応して一意に割り当てられる機器種
別情報を、前記接続インターフェース部の識別番号毎に
登録し、かつ多重化機器には同一となる1の機器種別情
報に、非多重化機器には各々の機器種別情報に、それぞ
れ優先送信を設定する機器種別情報テーブルを前記記憶
装置に設け、 前記中央処理装置は、前記接続機器から取り込んだデー
タに付与する該当の機器種別情報に前記優先送信の設定
がある場合、当該データを前記通信インターフェース部
に転送することを特徴とする通信制御装置。
6. A communication interface unit for connecting to a network and transmitting and receiving data according to a predetermined communication protocol, and a device for controlling the system, and the like.
A plurality of connection interface units for transmitting and receiving data to and from the connected devices, a central processing unit that controls these interface units to perform data transmission / reception processing, and a communication control device including a storage device that stores the data and the like. Device type information that is uniquely assigned in correspondence with the type and use mode of the device connected to the connection interface unit is registered for each identification number of the connection interface unit, and one of the multiplexed devices is the same. In the device type information, a device type information table for setting priority transmission for each device type information for a non-multiplexed device is provided in the storage device, and the central processing unit attaches the data taken from the connected device to the device. When the priority transmission is set in the corresponding device type information to be transmitted, the data is transmitted to the communication interface unit. Communication control apparatus characterized by transferring.
【請求項7】 請求項6において、 前記多重化機器が2重化の場合、前記機器種別情報に対
応し、多重化機器に対してON、非多重化機器に対して
OFFを設定するカウンタ使用フラグと送信回数の積算
値を記憶する送信カウンターテーブルを前記記憶装置に
備え、 前記中央処理装置は、前記優先送信の設定がある機器か
らのデータは前記送信カウンタを+1して送信処理を行
い、前記優先送信の設定がない機器からのデータは前記
送信カウンタを−1して送信処理を行わず、かつ前記送
信カウンタの積算値と前記カウンタ使用フラグのON/
OFFの組合せに応じて、前記多重化機器の故障や復旧
等による構成変更に追従した送信処理を行うことを特徴
とする通信制御装置。
7. The use of a counter according to claim 6, wherein when the multiplex device is a duplex device, a counter corresponding to the device type information is set to ON for the multiplex device and OFF for the non-multiplex device. The storage device includes a flag and a transmission counter table that stores an integrated value of the number of transmissions.The central processing unit performs transmission processing by incrementing the transmission counter by +1 for data from a device having the priority transmission setting, Data from a device that does not have the priority transmission setting is decremented by the transmission counter to perform no transmission processing, and the integrated value of the transmission counter and ON / OFF of the counter use flag are set.
A communication control device that performs a transmission process following a configuration change due to a failure or recovery of the multiplex device according to a combination of OFF.
【請求項8】 請求項6または7において、 前記多重化機器からのデータを書き込むデータエリア、
書き込み中フラグのエリア及び周期送信中止フラグのエ
リアをもつ共通メモリを前記記憶装置に、また前記中央
処理装置に周期送信処理の割り込みを行うタイマを備
え、 前記中央処理装置は、前記多重化機器からのデータを前
記共通メモリに書き込み処理中は前記書き込み中フラグ
をONにして前記割り込みを禁止し、書き込み終了後に
前記周期送信中止フラグがONの場合は前記データエリ
アのデータを前記通信インターフェース部に転送し、一
方、前記タイマから前記割り込みを受けた場合に、前記
書き込み中フラグがOFFの場合は前記データエリアの
データを前記通信インターフェース部に転送し、また、
前記書き込み中フラグがONの場合は前記周期送信フラ
グをONにして当該割り込み処理を終了することを特徴
とする通信制御装置。
8. The data area according to claim 6, wherein data from the multiplexing device is written.
A common memory having an area of a writing flag and an area of a periodical transmission stop flag is provided in the storage device, and a timer is provided for interrupting the periodical transmission process to the central processing unit. While writing the data to the common memory, the writing flag is turned on to disable the interrupt, and after the writing is completed, if the periodic transmission stop flag is turned on, the data in the data area is transferred to the communication interface unit. On the other hand, when the interrupt is received from the timer, if the writing flag is OFF, the data in the data area is transferred to the communication interface unit, and
A communication control device, wherein when the writing flag is ON, the periodic transmission flag is turned ON and the interrupt processing is terminated.
JP28211397A 1997-10-15 1997-10-15 Multiplexed communication control method and communication control device Expired - Fee Related JP3178804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28211397A JP3178804B2 (en) 1997-10-15 1997-10-15 Multiplexed communication control method and communication control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28211397A JP3178804B2 (en) 1997-10-15 1997-10-15 Multiplexed communication control method and communication control device

Publications (2)

Publication Number Publication Date
JPH11122277A true JPH11122277A (en) 1999-04-30
JP3178804B2 JP3178804B2 (en) 2001-06-25

Family

ID=17648306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28211397A Expired - Fee Related JP3178804B2 (en) 1997-10-15 1997-10-15 Multiplexed communication control method and communication control device

Country Status (1)

Country Link
JP (1) JP3178804B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840659B2 (en) 2003-08-04 2010-11-23 At&T Intellectual Property I, L.P. System and method to identify devices employing point-to-point-over ethernet encapsulation
JP2019135580A (en) * 2018-02-05 2019-08-15 アズビル株式会社 Communication controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7840659B2 (en) 2003-08-04 2010-11-23 At&T Intellectual Property I, L.P. System and method to identify devices employing point-to-point-over ethernet encapsulation
US10735254B2 (en) 2003-08-04 2020-08-04 At&T Intellectual Property I, L.P. System and method to identify devices employing point-to-point-over ethernet encapsulation
JP2019135580A (en) * 2018-02-05 2019-08-15 アズビル株式会社 Communication controller

Also Published As

Publication number Publication date
JP3178804B2 (en) 2001-06-25

Similar Documents

Publication Publication Date Title
CN101536423B (en) Double ring network system, communication control method thereof, transmission station, and communication control program of double ring network system
US6757777B1 (en) Bus master switching unit
JP4154853B2 (en) A redundant programmable controller and an equalization method for equalizing control data.
JPH11341020A (en) Multiplex communication system
JP3178804B2 (en) Multiplexed communication control method and communication control device
EP1696604B1 (en) Communication control system
JP2002073121A (en) Network control system and its communication module and remote control method
JP3294256B2 (en) Data communication method and device
JP3293089B2 (en) PLC remote I / O system and PLC remote I / O system execution method
JP3566057B2 (en) Monitoring and control equipment
JP2004078425A (en) Duplex switching method of duplex control system
JPH11127179A (en) Duplicate communication controller
CN101645195B (en) Recognizing telegram boundaries
JP3217086B2 (en) Message Communication Method between Standby Controller and Message Device in Redundant System
JP2001086129A (en) Control data transmitter
JPH05292555A (en) Switch control method and switch system
JP2000132210A (en) Controller and cooperation controlling method
JPH11341019A (en) Multiplex communication system
JPH11341023A (en) Multiplex communication system
JP2612053B2 (en) Degradation method in case of failure
JP2541647B2 (en) Fault repair device and its data transfer method
JP3294305B2 (en) Data processing method for remote monitoring and control system
JP2725385B2 (en) Data transfer method of information processing system
JPH10293698A (en) Double system device
JPH01102700A (en) Fault information collection processing system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees