JP2012099997A - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
JP2012099997A
JP2012099997A JP2010245074A JP2010245074A JP2012099997A JP 2012099997 A JP2012099997 A JP 2012099997A JP 2010245074 A JP2010245074 A JP 2010245074A JP 2010245074 A JP2010245074 A JP 2010245074A JP 2012099997 A JP2012099997 A JP 2012099997A
Authority
JP
Japan
Prior art keywords
identification information
communication device
slave communication
master
communication apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010245074A
Other languages
Japanese (ja)
Inventor
Shigemi Asai
成実 浅井
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.)
Kawamura Electric Inc
Original Assignee
Kawamura Electric Inc
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 Kawamura Electric Inc filed Critical Kawamura Electric Inc
Priority to JP2010245074A priority Critical patent/JP2012099997A/en
Publication of JP2012099997A publication Critical patent/JP2012099997A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication system capable of easily detecting a setting error by a manual switch by automatically adding different kinds of identification information to multiple slave communication apparatuses.SOLUTION: Multiple slave communication apparatuses 3 are connected by multi-drop to one master communication apparatus 2 by communication lines 4. Each slave communication apparatus 3 includes a transmitter-receiver circuit 5, a micro control unit (MCU) 6, and a DIP switch 10. The MCU 6 reads the initial value of a RAM 8 as additional identification information when a power source is supplied, and transmits the value to the master communication apparatus 2 together with identification information by the DIP switch 10. The master communication apparatus 2 determines the propriety of the two kinds of identification information received from the slave communication apparatus 3, detects a setting error by the DIP switch 10 when the RAM value is inappropriate, and allows an error to occur.

Description

本発明は、マスター通信機器に通信線を介して複数のスレーブ通信機器を接続したマルチドロップ方式の通信システムに関する。   The present invention relates to a multi-drop communication system in which a plurality of slave communication devices are connected to a master communication device via a communication line.

この種の通信システムにおいて、従来、マスター通信機器がスレーブ通信機器から受信した識別情報を認証し、双方向の通信を行う技術が知られている。例えば、特許文献1には、一台のパソコンに通信線を介して複数のブレーカをマルチドロップ接続し、各ブレーカに通信回路とアドレス(識別情報)記憶部を設け、パソコンをマスター通信機器とし、ブレーカをスレーブ通信機器として機能させ、パソコンによりブレーカの開閉動作を遠隔制御する通信システムが記載されている。   In this type of communication system, conventionally, a technique is known in which a master communication device authenticates identification information received from a slave communication device and performs bidirectional communication. For example, in Patent Document 1, a plurality of breakers are multidrop-connected to a single personal computer via a communication line, each breaker is provided with a communication circuit and an address (identification information) storage unit, and the personal computer is a master communication device. A communication system is described in which a breaker functions as a slave communication device, and a breaker open / close operation is remotely controlled by a personal computer.

特開2002−171659号公報JP 2002-171659 A

ところで、スレーブ通信機器の識別情報は、通常、DIPスイッチ等の手動スイッチにより設定されている。このため、設定ミスが発生しやすく、例えば、2つのスレーブ通信機器で同じ識別番号を誤って設定してしまう場合がある。この場合、マスター通信機器が2つの電文を同じタイミングで重複して受信する不都合があり、しかも、設定ミスを検知できないため、通信エラーも発生しない。   Incidentally, the identification information of the slave communication device is normally set by a manual switch such as a DIP switch. For this reason, setting mistakes are likely to occur. For example, the same identification number may be set erroneously by two slave communication devices. In this case, there is an inconvenience that the master communication device receives two telegrams at the same timing, and a setting error cannot be detected, so that no communication error occurs.

こうした問題を回避するために、スレーブ通信機器に手動スイッチによる識別番号とは別の識別情報を設定し、この識別情報を応答電文に追加することで、設定ミスを検知する方法が考えられる。しかし、複数のスレーブ通信機器に別々の識別情報を設定するためには、煩雑な入力作業を伴い、少なからず作業時間が発生する。このため、入力による識別情報の追加は、設定ミスに備えるための対策として、手間が掛かり過ぎるという問題点がある。   In order to avoid such a problem, a method of detecting a setting error by setting identification information different from the identification number by the manual switch in the slave communication device and adding this identification information to the response message can be considered. However, in order to set different identification information for a plurality of slave communication devices, a complicated input operation is involved, and not a little work time occurs. For this reason, the addition of identification information by input has a problem that it takes too much time as a measure for preparing for a setting error.

本発明の目的は、複数のスレーブ通信機器に別々の識別情報を自動的に追加し、設定ミスを簡単に検知できる通信システムを提供することにある。   An object of the present invention is to provide a communication system that can automatically detect different setting information by automatically adding different identification information to a plurality of slave communication devices.

上記課題を解決するために、本発明の通信システムは、少なくとも一つのマスター通信機器に通信線を介して複数のスレーブ通信機器を接続し、マスター通信機器がスレーブ通信機器から受信した識別情報を認証して通信を行うシステムにおいて、スレーブ通信機器が自機のマイクロコントローラに搭載されたRAMの初期値を追加の識別情報としてマスター通信機器に送信する手段を備えたことを特徴とする。   In order to solve the above problems, the communication system of the present invention connects a plurality of slave communication devices to at least one master communication device via a communication line, and authenticates identification information received from the slave communication device by the master communication device. In the communication system, the slave communication device includes means for transmitting the initial value of the RAM mounted on the microcontroller of the own device to the master communication device as additional identification information.

本発明の通信システムによれば、RAMの初期値が追加の識別情報としてスレーブ通信機器に個別に自動設定されるので、この識別情報に基づいてマスター通信機器が手動スイッチによる識別情報の適否を判断し、設定ミスを簡単に検知できるという効果がある。   According to the communication system of the present invention, the initial value of the RAM is automatically set individually in the slave communication device as additional identification information. Based on this identification information, the master communication device determines the suitability of the identification information by the manual switch. In addition, there is an effect that a setting mistake can be easily detected.

本発明の一実施形態を示す通信システムのブロック図である。1 is a block diagram of a communication system showing an embodiment of the present invention. スレーブ通信機器の特徴的動作を示すフローチャートである。It is a flowchart which shows the characteristic operation | movement of a slave communication apparatus. マスター通信機器の特徴的動作を示すフローチャートである。It is a flowchart which shows the characteristic operation | movement of a master communication apparatus.

以下、本発明の実施形態を図面に基づいて説明する。図1に示すように、この実施形態の通信システム1では、一台のマスター通信機器2に複数台のスレーブ通信機器3が通信線4(例えばRS485)を介してマルチドロップ接続されている。マスター通信機器2およびスレーブ通信機器3は送受信回路5とMCU(マイクロコントローラ)6を装備し、MCU6にCPU7、揮発性のスタティックRAM(以下RAM)8、ROM9が搭載されている。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. As shown in FIG. 1, in the communication system 1 of this embodiment, a plurality of slave communication devices 3 are multi-drop connected to a single master communication device 2 via a communication line 4 (for example, RS485). The master communication device 2 and the slave communication device 3 are provided with a transmission / reception circuit 5 and an MCU (microcontroller) 6, and a CPU 7, a volatile static RAM (hereinafter referred to as RAM) 8, and a ROM 9 are mounted on the MCU 6.

スレーブ通信機器3には、自機の識別番号を手動設定するためのDIPスイッチ10が設けられている。また、スレーブ通信機器3のMCU6は、電源投入時に、RAM8の初期値を追加の識別情報として読み出し、DIPスイッチ10による識別情報と一緒にマスター通信機器2に送信する。そして、マスター通信機器2に、スレーブ通信機器3から受信した2種類の識別情報を認証するためのプログラム(図3参照)が設けられている。   The slave communication device 3 is provided with a DIP switch 10 for manually setting its own identification number. Further, when the power is turned on, the MCU 6 of the slave communication device 3 reads the initial value of the RAM 8 as additional identification information and transmits it to the master communication device 2 together with the identification information by the DIP switch 10. The master communication device 2 is provided with a program (see FIG. 3) for authenticating two types of identification information received from the slave communication device 3.

次に、通信システム1の動作について説明する。図2に示すように、スレーブ通信機器3に電源が投入されると(S21)、MCU6は、まず、CPU7によりDIPスイッチ10から手動設定による識別番号(DIP値)を読み出し(S22)、RAM8の所定の記憶領域から初期値(RAM値)を読み出す(S23)。次に、DIP値とRAM値を含む電文をマスター通信機器2に送信したのち(S24)、次処理に移行する(S25)。   Next, the operation of the communication system 1 will be described. As shown in FIG. 2, when the slave communication device 3 is powered on (S21), the MCU 6 first reads an identification number (DIP value) by manual setting from the DIP switch 10 by the CPU 7 (S22). An initial value (RAM value) is read from a predetermined storage area (S23). Next, after transmitting a message including the DIP value and the RAM value to the master communication device 2 (S24), the process proceeds to the next process (S25).

図3に示すように、マスター通信機器2がスレーブ通信機器3から電文を受信すると(S31)、MCU6は、受信エラーが発生しているかどうかをチェックし(S32)、受信エラーが発生していない場合は、RAM値を含む電文情報を記憶したのち(S33)、次処理へ移行する(S34)。   As shown in FIG. 3, when the master communication device 2 receives a message from the slave communication device 3 (S31), the MCU 6 checks whether a reception error has occurred (S32), and no reception error has occurred. In this case, after storing the telegram information including the RAM value (S33), the process proceeds to the next process (S34).

一方、手動設定による識別番号が不適正であった場合は、エラー処理に移行する(S35)。手動設定による識別番号が適正であっても、自動設定による追加の識別情報が不適正であった場合も、エラー処理に移行する(S35)。このため、2台のスレーブ通信機器3のDIPスイッチ10に同じ識別番号を誤って設定した場合に、RAM値が不適正な方のスレーブ通信機器3に設定ミスがあると判断し、ランプやメッセージ等によって通信エラーを発生することができる。   On the other hand, if the manually set identification number is inappropriate, the process proceeds to error processing (S35). Even if the identification number by manual setting is appropriate, even when the additional identification information by automatic setting is inappropriate, the process proceeds to error processing (S35). For this reason, when the same identification number is mistakenly set in the DIP switch 10 of the two slave communication devices 3, it is determined that there is a setting error in the slave communication device 3 with the incorrect RAM value, and the lamp or message Etc., a communication error can be generated.

また、RAM8の初期値は、内部回路の特性に応じて変化するため、同一品番のMCU6であっても、通電時に異なる値を示す。従って、電源投入時に、RAM8の特定の記憶領域から初期値を読み出すことで、複数のスレーブ通信機器3にそれぞれ別々の識別情報を自動的に追加することができる。それ故、煩雑な入力作業を省き、DIPスイッチ10による設定ミスを簡単な方法で検知することができる。   Further, since the initial value of the RAM 8 changes according to the characteristics of the internal circuit, even the MCU 6 having the same product number shows a different value when energized. Accordingly, when the power is turned on, different identification information can be automatically added to the plurality of slave communication devices 3 by reading the initial value from the specific storage area of the RAM 8. Therefore, a complicated input operation can be omitted and a setting error by the DIP switch 10 can be detected by a simple method.

なお、本発明は、上記実施形態に限定されるものではなく、発明の趣旨を逸脱しない範囲で、通信システムの構成や通信手順を適宜に変更して実施することも可能である。   The present invention is not limited to the above embodiment, and can be implemented by appropriately changing the configuration and communication procedure of the communication system without departing from the spirit of the invention.

1 通信システム
2 マスター通信機器
3 スレーブ通信機器
4 通信線
5 送受信回路
6 MCU
7 CPU
8 RAM
9 ROM
10 DIPスイッチ
DESCRIPTION OF SYMBOLS 1 Communication system 2 Master communication apparatus 3 Slave communication apparatus 4 Communication line 5 Transmission / reception circuit 6 MCU
7 CPU
8 RAM
9 ROM
10 DIP switch

Claims (1)

少なくとも一つのマスター通信機器に通信線を介して複数のスレーブ通信機器を接続し、マスター通信機器がスレーブ通信機器から受信した識別情報を認証して通信を行うシステムにおいて、
前記スレーブ通信機器が自機のマイクロコントローラに搭載されたRAMの初期値を追加の識別情報としてマスター通信機器に送信する手段を備えたことを特徴とする通信システム。
In a system in which a plurality of slave communication devices are connected to at least one master communication device via a communication line, and the master communication device authenticates identification information received from the slave communication device and performs communication.
A communication system, comprising: means for transmitting an initial value of a RAM mounted on a microcontroller of the slave communication device to the master communication device as additional identification information.
JP2010245074A 2010-11-01 2010-11-01 Communication system Pending JP2012099997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010245074A JP2012099997A (en) 2010-11-01 2010-11-01 Communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010245074A JP2012099997A (en) 2010-11-01 2010-11-01 Communication system

Publications (1)

Publication Number Publication Date
JP2012099997A true JP2012099997A (en) 2012-05-24

Family

ID=46391435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010245074A Pending JP2012099997A (en) 2010-11-01 2010-11-01 Communication system

Country Status (1)

Country Link
JP (1) JP2012099997A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606187B2 (en) 2013-04-05 2017-03-28 Samsung Sdi Co., Ltd. Battery pack
CN113508562A (en) * 2019-03-14 2021-10-15 欧姆龙株式会社 Control system and control device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000357128A (en) * 1999-06-15 2000-12-26 Mitsubishi Electric Corp Backup memory constitution system and communication transmission system
JP2002103735A (en) * 2000-09-29 2002-04-09 Riso Kagaku Corp Printing unit and multi-layer printing device
JP2004274395A (en) * 2003-03-07 2004-09-30 Omron Corp Duplicate address detecting method, slave and master in field bus system, and field bus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000357128A (en) * 1999-06-15 2000-12-26 Mitsubishi Electric Corp Backup memory constitution system and communication transmission system
JP2002103735A (en) * 2000-09-29 2002-04-09 Riso Kagaku Corp Printing unit and multi-layer printing device
JP2004274395A (en) * 2003-03-07 2004-09-30 Omron Corp Duplicate address detecting method, slave and master in field bus system, and field bus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9606187B2 (en) 2013-04-05 2017-03-28 Samsung Sdi Co., Ltd. Battery pack
CN113508562A (en) * 2019-03-14 2021-10-15 欧姆龙株式会社 Control system and control device
CN113508562B (en) * 2019-03-14 2023-08-25 欧姆龙株式会社 Control system and control device

Similar Documents

Publication Publication Date Title
CA2910811C (en) Method for configuring devices in a daisy chain communication configuration
JP2014010575A5 (en) Information terminal, control method therefor, and program
US9874916B2 (en) Device registration apparatus and device registration method
KR102069618B1 (en) System and methods for detecting non-authentic slave components using clock frequency changes
US20170185059A1 (en) Field Bus Module, Machine Controller, and Method for Parameterizing a Field Bus Module, in Particular a Safety-Oriented Field Bus Module
US9762477B2 (en) Network apparatus with loop detection and port shutdown capabilities
JP2020065215A5 (en)
US20140058536A1 (en) Electronic apparatus activation control apparatus, electronic apparatus activation control system, electronic apparatus activation control method, and program
JP6968119B2 (en) Safety switch
JP2012099997A (en) Communication system
RU2017131267A (en) MACHINE CONTROL DEVICE
JP2016208325A5 (en) Image reading apparatus and method for controlling image reading apparatus
CN108353069B (en) Computing device and communication system
JP4992573B2 (en) Layer 2 switch, communication device, data section error detection method used therefor, and program thereof
JP6320563B2 (en) Communication device, communication adapter, communication system, communication parameter response method, and program
JP2017054428A (en) Communication adapter, communication method and program
US10419363B2 (en) Network device, communication method, and recording medium
JP4976726B2 (en) Sensor system and sensor unit
JP2014149755A (en) Communication setting system
US20160134427A1 (en) Gateway, power device controlling method and power device information obtaining method
KR20120089931A (en) Automatic system comprising apparatus for communication interlock
KR102107063B1 (en) Home appliance and communication connecting method thereof
JP6286259B2 (en) Network device, network device control program
JP4946504B2 (en) servo amplifier
WO2014175436A1 (en) Communication adapter, control system, method for controlling communication adapter, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130925

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140307

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140314

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140404

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140408

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140730