JP2010287034A - Address display system of modbus protocol communication between external equipment and plc - Google Patents

Address display system of modbus protocol communication between external equipment and plc Download PDF

Info

Publication number
JP2010287034A
JP2010287034A JP2009140193A JP2009140193A JP2010287034A JP 2010287034 A JP2010287034 A JP 2010287034A JP 2009140193 A JP2009140193 A JP 2009140193A JP 2009140193 A JP2009140193 A JP 2009140193A JP 2010287034 A JP2010287034 A JP 2010287034A
Authority
JP
Japan
Prior art keywords
modbus
address
plc
memory
display
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
JP2009140193A
Other languages
Japanese (ja)
Inventor
Hiroshi Kuramoto
裕志 倉元
Tatsuji Tanaka
竜ニ 田中
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP2009140193A priority Critical patent/JP2010287034A/en
Publication of JP2010287034A publication Critical patent/JP2010287034A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)
  • Communication Control (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication system by which Modbus master external equipment can transmit a Modbus function code which PLC can recognize and a Modbus address, without computating address when memory location of PLC is specified and accessed by a Modbus protocol communication from external equipment. <P>SOLUTION: As a Modbus master, for example, a programmable display 11 accesses a device address in a memory in a PLC 12 by Modbus protocol communication for obtaining device information. A communication system in which a Modbus function code corresponding to a device address and a Modbus address are sent to the PLC is configured such that on an address picker screen called on the tool screen for programming in the PLC, a list in which all device addressing can be assigned to all Modbus addresses and all Modbus functional codes. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、外部機器がModbusマスタとしてPLC(プログラマブルコントローラ、プログラマブルロジックコントローラ)のメモリ内情報を得るためのModbusプロトコル通信方式に関するものである。   The present invention relates to a Modbus protocol communication method for an external device to obtain in-memory information of a PLC (programmable controller, programmable logic controller) as a Modbus master.

PLCは生産設備に配備され、シーケンスプログラムを実行してそれに接続された生産設備内の各種機械や装置等の制御機器をシーケンス制御するようになっている。PLCは、制御対象の状態に対応したスイッチやセンサ等の入力機器のON/OFF情報を入力し、その入力したON/OFF情報をメモリ内に記憶する一方、ラダー言語などで記述されたシーケンスプログラムに沿って論理演算を実行すると共に、得られた演算結果の情報をメモリ内に記憶すると共に、その記憶した情報を、リレー,バルブ,アクチュエータ等の出力機器に出力することで、制御対象の制御を実行するようになっている。   The PLC is installed in a production facility, executes a sequence program, and performs sequence control of control devices such as various machines and devices in the production facility connected to the PLC. The PLC inputs ON / OFF information of input devices such as switches and sensors corresponding to the state of the control target, and stores the input ON / OFF information in a memory, while a sequence program written in a ladder language or the like In addition to executing logical operations according to the above, storing the information of the obtained operation results in a memory and outputting the stored information to output devices such as relays, valves, actuators, etc. Is supposed to run.

このようなPLCに例えば温度コントローラ、プログラマブル表示器、あるいは他のPLC等の外部機器を接続した制御システムでは、この外部機器がPLCのメモリ内情報を入手して、PLCを有する制御システム全体の制御を行うことがある。そして、外部機器がPLCと通信する場合、一般にModbusプロトコルによる通信が採用されている(特許文献1参照)。MODBUSは、Modicon.IncがPLC用に開発した通信プロトコルである。MODBUSの通信方式は、シングルマスタ−/マルチスレーブ方式であり、マスターのみが要求を発行することができ、スレーブはその要求に応答して応答メッセージを返送する。マスターからの要求は、スレーブ内のデバイスアドレス、ファンクションコード、要求データ、エラーチェックであり、スレーブからの応答は、確認用デバイスアドレス、確認用ファンクションコード、応答データ、エラーチェックである。   In a control system in which an external device such as a temperature controller, a programmable display, or another PLC is connected to such a PLC, the external device obtains information in the memory of the PLC and controls the entire control system having the PLC. May be performed. And when an external apparatus communicates with PLC, generally the communication by Modbus protocol is employ | adopted (refer patent document 1). MODBUS is a Modicon. This is a communication protocol developed by Inc for PLC. The MODBUS communication method is a single master / multi-slave method. Only the master can issue a request, and the slave returns a response message in response to the request. The request from the master is a device address, function code, request data, and error check in the slave, and the response from the slave is a check device address, check function code, response data, and error check.

そして、上記通信では外部機器はModbusマスタデバイスとし、PLCをスレーブデバイスとして、外部機器がPLC内のメモリ位置(デバイスアドレス=Modbusアドレス)を指定し、そこにアクセスしてそのメモリ位置(Modbusアドレス)に記憶しているスイッチやセンサ等の入力機器のON/OFF情報やリレー,バルブ,アクチュエータ等の出力機器のON/OFF情報を得るには、外部機器側のソフトウエアは、PLCが認識できるModbusファンクションコードと、Modbusアドレスとを当該PLCに送信する必要がある。   In the above communication, the external device is a Modbus master device, the PLC is a slave device, the external device designates a memory location (device address = Modbus address) in the PLC, and accesses the memory location (Modbus address). In order to obtain ON / OFF information of input devices such as switches and sensors and ON / OFF information of output devices such as relays, valves, actuators, etc., the software on the external device side can recognize the Modbus that the PLC can recognize. It is necessary to transmit the function code and the Modbus address to the PLC.

この場合、PLC内のModbusアドレスはPLC製造メーカーごとに相違しているため、外部機器側では、PLCからModbusアドレスを得るには、各PLC製造メーカー提供の仕様書に従ってメモリ位置のModbusファンクションコードとModbusアドレスとを知る必要がある。この場合、ユーザに提供する仕様書の中にアドレスが直接、表記されていればよいが、PLCによっては、Modbusアドレスが先頭アドレスのみしか記載されていない場合があり、そのような場合では、ユーザ側が先頭アドレスからアドレスするアドレスを加算するなど、アドレス計算をする必要がある。しかしながら、Modbusアドレスの計算数が膨大になると、ユーザもたいへん面倒であった。なお、Modbusファンクションコードは、例えば01、02、…等の数値であり、PLCへのアクセスが読み出しか、書き込みのいずれであるか、また、アクセス対象がデータポイント1個なのか、あるいはそれらのグループなのかを決めるためのコードである。   In this case, since the Modbus address in the PLC is different for each PLC manufacturer, on the external device side, in order to obtain the Modbus address from the PLC, the Modbus function code of the memory location and the specification provided by each PLC manufacturer are used. It is necessary to know the Modbus address. In this case, the address only needs to be directly described in the specification provided to the user. However, depending on the PLC, only the top address may be described as the Modbus address. It is necessary to calculate the address, for example, by adding the address that the side addresses from the top address. However, when the number of Modbus address calculations becomes enormous, the user is very troublesome. The Modbus function code is, for example, a numerical value such as 01, 02,..., Whether access to the PLC is read or write, whether the access target is one data point, or a group thereof. It is a code for deciding what it is.

特表2002−528980号公報Special Table 2002-528980

本発明において解決すべき課題は、外部機器がPLCとModbusプロトコル通信する場合において、ユーザが面倒なModbusアドレス計算をする必要が無いようにすることである。   The problem to be solved in the present invention is to eliminate the need for the user to perform a complicated Modbus address calculation when the external device communicates with the PLC via the Modbus protocol.

本発明は、Modbusマスタとして外部機器がModbusスレーブとしてのPLCのメモリ内の位置(デバイスアドレス)にアクセスしてデバイス情報を入手するに際して、外部機器がPLCにデバイスアドレスに対応するModbusファンクションコードとModbusアドレスとを送信するModbusプロトコル通信方式において、ユーザによる画面操作で、PLCのプログラミング用ツールの画面上に所定画面を呼び出すと共に、その呼び出した所定画面上に、PLCのメモリ内の全デバイスアドレスを全Modbusアドレスと全Modbusファンクションコードとに対応付けした一覧表を表示できるようにしたことを特徴とするものである。   In the present invention, when an external device as a Modbus master accesses a position (device address) in a memory of a PLC as a Modbus slave to obtain device information, the external device sends a Modbus function code and Modbus corresponding to the device address to the PLC. In the Modbus protocol communication method for transmitting an address, a screen operation by the user calls a predetermined screen on the screen of the PLC programming tool, and all device addresses in the PLC memory are all displayed on the called predetermined screen. A list associated with the Modbus address and all the Modbus function codes can be displayed.

上記所定画面は実施の形態ではアドレスピッカー画面であるが、本発明ではこの名称に限定されるものではない。   The predetermined screen is an address picker screen in the embodiment, but is not limited to this name in the present invention.

本発明では、ユーザは、上記一覧表により、外部機器からPLCのメモリ位置にModbusプロトコル通信で指定してアクセスするに際して、アドレス計算をすることなく、PLCが認識できるModbusファンクションコードと、ModbusアドレスとをModbusマスタ外部機器が送信することができるようになる。   According to the present invention, when the user designates and accesses the memory location of the PLC from the external device by Modbus protocol communication according to the above list, the Modbus function code that can be recognized by the PLC without performing address calculation, the Modbus address, Can be transmitted by the Modbus master external device.

図1は本発明の実施の形態にかかる制御システムの概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a control system according to an embodiment of the present invention. 図2はPLCの内部メモリ内の各デバイスアドレスと、各デバイスアドレスに対応するON/OFF情報とを示す図である。FIG. 2 is a diagram showing each device address in the internal memory of the PLC and ON / OFF information corresponding to each device address. 図3はプログラマブル表示器からPLCへのModbusプロトコル通信の手順を示す図である。FIG. 3 is a diagram showing the procedure of Modbus protocol communication from the programmable display to the PLC. 図4はPLCのメモリ位置指定していないときのアドレスピッカー画面を示す図である。FIG. 4 is a diagram showing an address picker screen when the memory location of the PLC is not designated. 図5はPLCのメモリ位置指定を行いHEX表記のModbusプロトコル通信でのアドレスピッカー画面を示す図である。FIG. 5 is a diagram showing an address picker screen in Modbus protocol communication of HEX notation by specifying the memory location of the PLC. 図6はPLCのメモリ位置指定を行い984表記のModbusプロトコル通信でのアドレスピッカー画面を示す図である。FIG. 6 is a diagram showing an address picker screen in Modbus protocol communication of 984 notation by specifying the memory location of the PLC.

以下、添付した図面を参照して、本発明の実施の形態に係る通信方式を説明する。ただし、以下に示す実施の形態は、本発明の技術思想を具体化するための一方式を例示するものであって、本発明は以下の方式に特定されない。   Hereinafter, a communication method according to an embodiment of the present invention will be described with reference to the accompanying drawings. However, the embodiment described below exemplifies one method for embodying the technical idea of the present invention, and the present invention is not limited to the following method.

図1において、10はコンピュータ、11は外部機器の一例であるプログラマブル表示器、12はプログラマブルコントローラ(PLC)、13a−13dは入出力機器、14は被制御機器、15はバスを示す。   In FIG. 1, 10 is a computer, 11 is a programmable display as an example of an external device, 12 is a programmable controller (PLC), 13a to 13d are input / output devices, 14 is a controlled device, and 15 is a bus.

コンピュータ10は、PLC12のラダープログラム作成編集ツールに用いる汎用パーソナルコンピュータであり、CPU10a、メモリ10b、表示部10c、操作部10d、外部記憶装置10e、通信インターフェース10f、等を有する。   The computer 10 is a general-purpose personal computer used for a ladder program creation / editing tool of the PLC 12, and includes a CPU 10a, a memory 10b, a display unit 10c, an operation unit 10d, an external storage device 10e, a communication interface 10f, and the like.

CPU10aは、コンピュータ10にインストールされているOS(オペレーティングシステム)上でラダープログラム編集プログラムを含む各種のアプリケーションプログラムを動作させる際の各部の制御や演算処理を行う。メモリ10bは、RAM、ROMなどのメモリを備えており、データの格納、一時的なデータ記憶、CPU10aの演算処理時における作業エリアを提供することができるメモリ構成になっている。   The CPU 10a performs control and arithmetic processing of each unit when operating various application programs including a ladder program editing program on an OS (operating system) installed in the computer 10. The memory 10b includes a memory such as a RAM and a ROM, and has a memory configuration capable of providing a work area during data storage, temporary data storage, and arithmetic processing of the CPU 10a.

コンピュータ10の表示部10cは、CRT、LCD、あるいは液晶パネルやELパネルのような平板型のモニタ画面を備える。操作部10dは、キーボード、マウスなどの入力操作を行うための装置であり、特に、GUI環境下で動作するラダープログラム編集プログラムでの入力作業にはマウスなどのポインティングデバイスが好適である。外部記憶装置10eは、ハードディスク装置などの磁気ディスクドライブ、CD−ROMドライブなどの光ディスクドライブといった装置であり、少なくとも、記録媒体に記録されたラダープログラム編集プログラムなどの情報を読み出すことができる装置を含んでいる。インターフェース10fは、PLC12との間でデータ通信を行う入出力部である。ラダープログラム編集プログラムで作成されたラダープログラムは、このインターフェース10fを介してPLC12に転送され、PLC12内のメモリにダウンロードされる。コンピュータ10にインストールされて実行されるラダープログラム編集プログラムは、コンピュータ10のCPU10aで実行される。   The display unit 10c of the computer 10 includes a flat monitor screen such as a CRT, LCD, liquid crystal panel, or EL panel. The operation unit 10d is a device for performing an input operation such as a keyboard and a mouse. In particular, a pointing device such as a mouse is suitable for an input operation using a ladder program editing program that operates in a GUI environment. The external storage device 10e is a device such as a magnetic disk drive such as a hard disk device or an optical disk drive such as a CD-ROM drive, and includes at least a device that can read information such as a ladder program editing program recorded on a recording medium. It is out. The interface 10 f is an input / output unit that performs data communication with the PLC 12. The ladder program created by the ladder program editing program is transferred to the PLC 12 via the interface 10f and downloaded to the memory in the PLC 12. The ladder program editing program installed and executed on the computer 10 is executed by the CPU 10a of the computer 10.

プログラマブル表示器11は、PLC12とのインタフェースを備えており、PLC12に接続された入出力機器13a−13dの稼働状況を表示したり、入出力機器13a−13dへの制御指示を与えるための操作入力を画面から受け付けたりする機能を備えている。このプログラマブル表示器11には表示プログラムがインストールされている。このインストールはコンピュータ10から行うことができる。プログラマブル表示器11は、その表示プログラムに従い、表示動作を行うようになっている。   The programmable display 11 is provided with an interface with the PLC 12, and displays operation statuses of the input / output devices 13a-13d connected to the PLC 12 and operation inputs for giving control instructions to the input / output devices 13a-13d. It has a function to accept from the screen. A display program is installed in the programmable display 11. This installation can be performed from the computer 10. The programmable display 11 performs a display operation according to the display program.

プログラマブル表示器11は、HMI機器として、その表示画面11a上に、入出力機器13a−13dの操作状況を表示したり、入出力機器13a−13dを操作したりする部品11b1−11b4が表示されている。   As the HMI device, the programmable display 11 displays, on its display screen 11a, components 11b1-11b4 that display the operation status of the input / output devices 13a-13d and operate the input / output devices 13a-13d. Yes.

各部品11b1−11b4は様々な形状、カラー、文字、フォント、等の各種プロパティが設定されている。この部品11b1−11b4は、入出力機器13a−13dと操作者とのインターフェースを形成するHMI(Human Machine Interface)部品である。この部品11b1−11b4は入出力機器13a−13dに対応している。   Each component 11b1-11b4 has various properties such as various shapes, colors, characters, fonts, and the like. The components 11b1-11b4 are HMI (Human Machine Interface) components that form an interface between the input / output devices 13a-13d and the operator. The components 11b1-11b4 correspond to the input / output devices 13a-13d.

PLC12は、ラダープログラムを実行するCPU12a、システム制御プログラム(ファームウエア)を格納するシステム制御メモリ12b、ラダープログラムを格納するラダープログラムメモリ12c、制御に使用する変数等のデータを記憶する内部メモリ12d、入出力インターフェース12e、を有し、これらは内部バス12fで相互接続されている。入出力インターフェース12eにはセンサやアクチュエータ等の各種入出力機器13a−13d、および機械や装置等の各種の被制御機器14が接続されている。また、PLC12の内部メモリ12dは、入力メモリX、出力メモリY、内部リレーメモリC、タイマT、カウンタCT、データメモリD、等から構成されている。そして、以上の構成を備えたPLC12は、内蔵するCPU12aによってシステム制御プログラムに従い、ラダープログラム編集プログラムで作成されたラダープログラムで定められた手順で、入出力機器13a−13dの動作を制御することができるようになっている。   The PLC 12 includes a CPU 12a that executes a ladder program, a system control memory 12b that stores a system control program (firmware), a ladder program memory 12c that stores a ladder program, an internal memory 12d that stores data such as variables used for control, There is an input / output interface 12e, which are interconnected by an internal bus 12f. Connected to the input / output interface 12e are various input / output devices 13a-13d such as sensors and actuators and various controlled devices 14 such as machines and devices. The internal memory 12d of the PLC 12 includes an input memory X, an output memory Y, an internal relay memory C, a timer T, a counter CT, a data memory D, and the like. The PLC 12 having the above configuration can control the operations of the input / output devices 13a to 13d according to the procedure defined by the ladder program created by the ladder program editing program according to the system control program by the built-in CPU 12a. It can be done.

図2に、PLC12の内部メモリ12d内のデバイスアドレスX001,X002,X003,X004…と、各デバイスアドレスに対応するON/OFF情報とを示す。図2では、デバイスアドレスX001のON/OFF情報は、ONであり、X002のON/OFF情報はOFFであり,X003のON/OFF情報はONであり、X004のON/OFF情報はONであることが示されている。実施の形態では理解のため、図2に、PLC12におけるデバイスアドレスX001−X004は、入出力機器13a−13dそれぞれに対応している状態で示す。   FIG. 2 shows device addresses X001, X002, X003, X004... In the internal memory 12d of the PLC 12 and ON / OFF information corresponding to each device address. In FIG. 2, the ON / OFF information of the device address X001 is ON, the ON / OFF information of X002 is OFF, the ON / OFF information of X003 is ON, and the ON / OFF information of X004 is ON. It has been shown. In the embodiment, for the sake of understanding, FIG. 2 shows device addresses X001 to X004 in the PLC 12 in a state corresponding to the input / output devices 13a to 13d.

図3を参照してプログラマブル表示器11は、入出力機器13a−13dのON/OFF情報を記憶するPLC12の内部メモリ12dのデバイスアドレスX001−X004を指定し、そのデバイスアドレスX001−X004に記憶する入出力機器13a−13dのON/OFF情報を得るため、PLC12とModbusプロトコル通信を行う。上記デバイスアドレスは、X0001,X0002,X003,X004である。プログラマブル表示器11は、PLC12のデバイスアドレスX001に記憶するデータを得るため、PLC12にはModbusマスタからの要求信号として、HEX表記のModbusアドレス0000と、Modbusファンクションコード02とを送信する。PLC12は、プログラマブル表示器11からデバイスアドレスX001対応のHEX表記のModbusアドレス0000と、Modbusファンクションコード02とが送信されたことを認識するとModbusスレーブからの応答信号として、デバイスアドレスX001に記憶している部品11b1のON/OFF情報(実施の形態ではON)をプログラマブル表示器11に送信する。次に、プログラマブル表示器11は、PLC12のデバイスアドレスX002に記憶するデータを得るため、PLC12にはHEX表記のModbusアドレス0001と、Modbusファンクションコード02とを送信する。PLC12は、プログラマブル表示器11からデバイスアドレスX002対応のHEX表記のModbusアドレス0001と、Modbusファンクションコード02とが送信されたことを認識すると、デバイスアドレスX002に記憶している部品11b2のON/OFF情報(実施の形態ではOFF)をプログラマブル表示器11に送信する。このようにして、プログラマブル表示器11からPLC12に対して通信が行われる。   Referring to FIG. 3, programmable display 11 designates device address X001-X004 of internal memory 12d of PLC 12 for storing ON / OFF information of input / output devices 13a-13d, and stores them in device addresses X001-X004. In order to obtain ON / OFF information of the input / output devices 13a-13d, Modbus protocol communication is performed with the PLC 12. The device addresses are X0001, X0002, X003, and X004. In order to obtain data to be stored at the device address X001 of the PLC 12, the programmable display 11 transmits a Modbus address 0000 in HEX notation and a Modbus function code 02 as a request signal from the Modbus master. When the PLC 12 recognizes that the Modbus address 0000 in HEX notation corresponding to the device address X001 and the Modbus function code 02 are transmitted from the programmable display 11, the PLC 12 stores the response signal from the Modbus slave in the device address X001. The ON / OFF information (ON in the embodiment) of the component 11b1 is transmitted to the programmable display 11. Next, in order to obtain data to be stored in the device address X002 of the PLC 12, the programmable display 11 transmits a Modbus address 0001 in HEX notation and a Modbus function code 02 to the PLC 12. When the PLC 12 recognizes that the Modbus address 0001 in HEX notation corresponding to the device address X002 and the Modbus function code 02 are transmitted from the programmable display 11, the PLC 11b2 ON / OFF information stored in the device address X002 is received. (OFF in the embodiment) is transmitted to the programmable display 11. In this way, communication is performed from the programmable display 11 to the PLC 12.

図4を参照して、コンピュータ10の表示部10cのコンピュータ画面上に、ユーザインターフェースのアドレスピッカー画面APが表示されている。このアドレスピッカー画面APは、ラダープログラムの編集情報、内部メモリ12dのアドレス情報を表示する画面である。アドレスピッカー画面APは、ラダープログラム作成時や、ラダープログラムのデバッグ、補修時、等に用いる画面である。アドレスピッカー画面APにおいて、内部メモリアドレスは変更できない。アドレス付随情報であるニックネーム、コメントはユーザが登録したり、変更したりすることができる。ユーザはこのニックネームやコメントを用いてラダープログラムをプログラミングすることができる。アドレス付随情報にはアドレスの別名であるニックネームがあり、このニックネームは同一の名称は登録できないようになっている。もう1つの付随情報はコメントであり、コメントはニックネームを補足説明するものであり、同一の名称を複数登録することができるようになっている。ラダー図ではこれら付随情報はニックネームとコメントとで2段構成で表示されるようになっている。   Referring to FIG. 4, a user interface address picker screen AP is displayed on the computer screen of the display unit 10 c of the computer 10. This address picker screen AP is a screen for displaying the editing information of the ladder program and the address information of the internal memory 12d. The address picker screen AP is a screen used for creating a ladder program, debugging or repairing a ladder program, and the like. In the address picker screen AP, the internal memory address cannot be changed. The user can register or change the nickname and comment, which are information associated with the address. The user can program a ladder program using the nickname and comment. The address accompanying information includes a nickname that is an alias for the address, and the same nickname cannot be registered. Another accompanying information is a comment. The comment supplementally explains the nickname, and a plurality of the same names can be registered. In the ladder diagram, the accompanying information is displayed in a two-stage configuration with a nickname and a comment.

アドレスピッカー画面は、表示モードがアドレスをピックアップする表示モード(Pickup Mode)であるために、タイトルバーTBに「Address Picker:Pick Mode」が表示されている。もう1つのモードは「Edit Mode」であり、このモードは、アドレス付随情報であるニックネームを「Nick name」欄に、また、同じくアドレス付随情報であるコメントを「Comment」欄に登録する場合に表示されるモードである。画面上は四角形の表示領域と、この表示領域外の左端縦方向一列に「All」「X」「Y」「C」「T」「CT」…と表記されたユーザ操作ボタンが表示されている。「All」は全内部メモリを選択するボタン、「X」は入力メモリXを選択するボタン、「Y」は出力メモリYを選択するボタン、「C」は内部メモリを選択するボタン、「T」はタイマを選択するボタン、「CT」はカウンタを選択するボタンである。表示領域外の下端左側には、「Data Type Filter」の文字と、この文字を含む四角枠内領域に、「Display All Data Types」のチェックボックス(□)が表示されている。表示領域外の下端中央側には「Used/Unused Address」の文字と、この文字を含む四角枠内領域に、「Display both used and unused」のチェックボックス(□)と、「Display only used」チェックボックス(□)と、「Display only unused」チェックボックス(□)とが表示されている。さらに、表示領域外の下端右側には「Display MODBUS Address」の文字と、この文字を含む四角枠内領域に、「MODBUS 984 Addressing」のチェックボックス(□)と、「MODBUS HEX Addressing」チェックボックス(□)と、が表示されている。   Since the address picker screen is a display mode (Pickup Mode) in which an address is picked up, “Address Picker: Pick Mode” is displayed in the title bar TB. Another mode is “Edit Mode”. This mode is displayed when a nickname that is address-associated information is registered in the “Nick name” field and a comment that is also address-associated information is registered in the “Comment” field. Mode. A square display area is displayed on the screen, and user operation buttons labeled “All”, “X”, “Y”, “C”, “T”, “CT”,... Are displayed in a vertical line on the left end outside the display area. . “All” is a button for selecting all internal memories, “X” is a button for selecting input memory X, “Y” is a button for selecting output memory Y, “C” is a button for selecting internal memory, “T” Is a button for selecting a timer, and “CT” is a button for selecting a counter. On the left side of the lower end outside the display area, the characters “Data Type Filter” and the check box (□) of “Display All Data Types” are displayed in the rectangular frame area including these characters. “Used / Unused Address” is displayed at the center of the bottom edge outside the display area, and the “Display both used and unused” check box (□) and the “Display only used” check box are displayed in the area within the square frame including the characters. A box (□) and a “Display only unused” check box (□) are displayed. Furthermore, the characters “Display MODBUS Address” are displayed on the lower right side outside the display area, the check box (□) of “MODBUS 984 Addressing” and the check box of “MODBUS HEX Addressing” ( □) and are displayed.

本実施の形態では、このアドレスピッカー画面に、ユーザ操作により、図4のModbusアドレス、Modbusファンクションコード非表示状態から図5、図6のModbusアドレス、Modbusファンクションコード表示状態で示すように、PLC12の内部メモリ12d内の全デバイスアドレスを全Modbusアドレスと全Modbusファンクションコードとに対応付けした一覧表を表示できるようにしたものである。   In the present embodiment, as shown in the Modbus address and Modbus function code non-display state in FIG. 4 to the Modbus address and Modbus function code display state in FIGS. A list in which all device addresses in the internal memory 12d are associated with all Modbus addresses and all Modbus function codes can be displayed.

図4では、「Display MODBUS Address」の表示は不要とされていて、表示領域外の下端左側には、「Data Type Filter」の「Display All Data Types」のチェックボックス(□)に「レ」が入れられ、かつ、表示領域外の下端中央側には「Used/Unused Address」のチェックボックス(□)に「レ」が入れられているが、表示領域外の下端右側には「Display MODBUS Address」にはチェックボックス(□)に「レ」が入れられていない。また図4では、ユーザ操作ボタン「All」「X」「Y」「C」「T」「CT」…のうち、全メモリに対応するユーザ操作ボタン「All」が選択操作された状態になっている。表示領域外の上側にはアドレス情報やアドレス付随情報、その他を検索するための検索用語記入領域と、それの領域名を示す「Find」表記と、その領域に検索名を記入した後、その検索を実行するための「Find」操作ボタンとが配置されている。   In FIG. 4, “Display MODBUS Address” is not required to be displayed, and “Le” is displayed in the “Display All Data Types” check box (□) on the lower left side outside the display area. The check box (□) of “Used / Unused Address” is put in the lower end center side outside the display area, but “Display MODBUS Address” is put on the lower right side outside the display area. Does not have a check box (□). In FIG. 4, among the user operation buttons “All”, “X”, “Y”, “C”, “T”, “CT”..., The user operation buttons “All” corresponding to all the memories are selected and operated. Yes. On the upper side outside the display area, a search term entry area for searching for address information, address associated information, etc., “Find” notation indicating the area name, and the search name in the area are entered, and then the search is performed. The “Find” operation button for executing the above is arranged.

図4では、表示領域内の上端横方向一列に表示領域外の上横方向一列に「Address」「AZ↓」「DataType」「Nickname」「Used」「Initial Value」「Retentive」「Address Cc」…と文字列表示されている。「Address」の縦方向一列は、アドレスが記述される。このアドレスは、ユーザ操作ボタン「All」「X」「Y」「C」「T」「CT」・・・のいずれかの選択操作で自動的に記述される。図4では全メモリAllに対応するユーザ操作ボタンAllが選択されている。「Address」はPLC12の内部メモリ位置(デバイスアドレス)の記入を示し、図例ではデバイスアドレスは、X001,X002,X003,…となっている。Address内に「RW」と表記されているのは、アドレス読み出し、書き込み可能であることを意味している。「Data type」の縦方向一列は、データ型が自動的に記述される。実施の形態ではデータ型がBIT表記によりビットであることを示している。「Nick name」の縦方向一列は、アドレスの別名がユーザ操作で記述される。「Use」の縦方向一列は、当該アドレスが使用の場合では「YES」、当該アドレスが未使用の場合では「NO」が自動記述される。「Comment」の縦方向一列は、コメントがユーザ操作で記述される。   In FIG. 4, “Address”, “AZ ↓”, “DataType”, “Nickname”, “Used”, “Initial Value”, “Retentive”, “Address Cc” ... Is displayed. Addresses are described in one vertical column of “Address”. This address is automatically described by any selection operation of user operation buttons “All”, “X”, “Y”, “C”, “T”, “CT”,. In FIG. 4, user operation buttons All corresponding to all memories All are selected. “Address” indicates entry of the internal memory location (device address) of the PLC 12, and in the example shown in the figure, the device addresses are X001, X002, X003,. The notation “RW” in the address means that the address can be read and written. The data type is automatically described in the vertical column of “Data type”. The embodiment indicates that the data type is bit by BIT notation. In the vertical row of “Nick name”, an alias of the address is described by a user operation. In the vertical row of “Use”, “YES” is automatically described when the address is used, and “NO” is automatically described when the address is not used. In the vertical column of “Comment”, a comment is described by a user operation.

図5では、表示領域外の下端右側には「Display MODBUS Address」にはチェックボックス(□)に「レ」が入れられて、表示領域には「MODBUS Address(Function Code)」の表示欄が配置され、かつ、「MODBUS HEX Addressing」チェックボックス(□)に「レ」が入れられて、「MODBUS Address(Function Code)」の縦方向一列にModbusアドレスがHEX(16進)表記とされている。   In FIG. 5, “Display MODBUS Address” has a check box (□) put in the check box (□) on the lower right side outside the display area, and a display field of “MODBUS Address (Function Code)” is arranged in the display area. In addition, the “MODBUS HEX Addressing” check box (□) is put with “less”, and the Modbus address is expressed in HEX (hexadecimal) notation in the vertical column of “MODBUS Address (Function Code)”.

これによりユーザは、PLCのデバイスアドレス「X0001」に対応するModbusアドレスはHEX表記で「0000」でModbusファンクションコードが「02」であることが判る。またPLCのデバイスアドレス「X0002」に対応するModbusアドレスはHEX表記で「0001」でModbusファンクションコードが「02」であることが判る。以下も同様である。   As a result, the user knows that the Modbus address corresponding to the PLC device address “X0001” is “0000” in HEX notation and the Modbus function code is “02”. It can also be seen that the Modbus address corresponding to the PLC device address “X0002” is “0001” in HEX notation and the Modbus function code is “02”. The same applies to the following.

図6では、表示領域外の下端右側には「Display MODBUS Address」にはチェックボックス(□)に「レ」が入れられて、表示領域には「MODBUS Address(Function Code)」の表示欄が配置され、かつ、「MODBUS 984 Addressing」チェックボックス(□)に「レ」が入れられて、「MODBUS Address(Function Code)」の縦方向一列にModbusアドレスが984(10進)表記とされている。   In FIG. 6, “Display MODBUS Address” has a check box (□) placed in the check box (□) on the lower right side outside the display area, and a “MODBUS Address (Function Code)” display field is arranged in the display area. In addition, the “MODBUS 984 Addressing” check box (□) is put with “Le”, and the Modbus address is expressed in 984 (decimal) in one vertical column of “MODBUS Address (Function Code)”.

これによりユーザは、PLCのデバイスアドレス「X0001」に対応するModbusアドレスは984表記で「100001」でModbusファンクションコードが「02」であることが判る。またPLCのデバイスアドレス「X0002」に対応するModbusアドレスは984表記で「100002」でModbusファンクションコードが「02」であることが判る。以下も同様である。   As a result, the user knows that the Modbus address corresponding to the device address “X0001” of the PLC is “10000” in 984 notation and the Modbus function code is “02”. Further, it can be seen that the Modbus address corresponding to the device address “X0002” of the PLC is “100002” in 984 notation and the Modbus function code is “02”. The same applies to the following.

以上説明したように本実施の形態では、プログラマブル表示器11がModbusプロトコル通信でPLC12のメモリ内の位置(デバイスアドレス)にアクセスしてデバイス情報を入手する場合において、プログラマブル表示器11が通信ソフトウエアによりPLC12に対してデバイスアドレスに対応するModbusファンクションコードとModbusアドレスとを送信するようになっており、PLC12のプログラミング用ツールであるコンピュータ10の画面上にアドレスピッカー画面APを呼び出し、このアドレスピッカー画面AP上には、図5、図6で示すように、全デバイスアドレスと全Modbusアドレスと全Modbusファンクションコードとを対応付けした一覧表を表示できるようしたから、ユーザは、上記一覧表により、Modbusアドレス計算をする必要なくPLC12に対してModbusファンクションコードと、Modbusアドレスとを送信することができるようになる。   As described above, in the present embodiment, when the programmable display 11 accesses the position (device address) in the memory of the PLC 12 by Modbus protocol communication to obtain device information, the programmable display 11 receives communication software. The Modbus function code corresponding to the device address and the Modbus address are transmitted to the PLC 12 by calling the address picker screen AP on the screen of the computer 10 which is a programming tool of the PLC 12, and this address picker screen. On the AP, as shown in FIGS. 5 and 6, a list in which all device addresses, all Modbus addresses, and all Modbus function codes are associated with each other can be displayed. The table lists the Modbus function codes to PLC12 without the need for Modbus address calculation, it is possible to transmit the Modbus address.

10 コンピュータ
11 プログラマブル表示器
12 PLC
10 Computer 11 Programmable Display 12 PLC

Claims (1)

Modbusマスタとして外部機器がModbusスレーブとしてのPLCのメモリ内の位置(デバイスアドレス)にアクセスしてデバイス情報を入手するに際して、外部機器がPLCにデバイスアドレスに対応するModbusファンクションコードとModbusアドレスとを送信するModbusプロトコル通信方式において、ユーザによる画面操作で、PLCのプログラミング用ツールの画面上に所定画面を呼び出すと共に、その呼び出した所定画面上に、PLCのメモリ内の全デバイスアドレスを全Modbusアドレスと全Modbusファンクションコードとに対応付けした一覧表を表示できるようにした、ことを特徴とするModbusプロトコル通信アドレス表示方式。   When the external device as the Modbus master accesses the location (device address) in the memory of the PLC as the Modbus slave to obtain device information, the external device transmits the Modbus function code and Modbus address corresponding to the device address to the PLC. In the Modbus protocol communication system, the user calls a predetermined screen on the screen of the PLC programming tool by the user's screen operation, and all the device addresses in the PLC memory are displayed on the called predetermined screen. A Modbus protocol communication address display method, characterized in that a list associated with Modbus function codes can be displayed.
JP2009140193A 2009-06-11 2009-06-11 Address display system of modbus protocol communication between external equipment and plc Pending JP2010287034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009140193A JP2010287034A (en) 2009-06-11 2009-06-11 Address display system of modbus protocol communication between external equipment and plc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009140193A JP2010287034A (en) 2009-06-11 2009-06-11 Address display system of modbus protocol communication between external equipment and plc

Publications (1)

Publication Number Publication Date
JP2010287034A true JP2010287034A (en) 2010-12-24

Family

ID=43542685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009140193A Pending JP2010287034A (en) 2009-06-11 2009-06-11 Address display system of modbus protocol communication between external equipment and plc

Country Status (1)

Country Link
JP (1) JP2010287034A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546467A (en) * 2013-10-23 2014-01-29 上海爱控自动化设备有限公司 Method for transmitting Modbus RTU protocol on TCP/IP network
CN104038499A (en) * 2014-06-17 2014-09-10 宁波三星电气股份有限公司 MODBUS RTU protocol based data transmission method
JP2015503136A (en) * 2011-10-24 2015-01-29 シュネーデル、エレクトリック、インダストリーズ、エスアーエスSchneider Electric Industries Sas System and method for managing industrial processes
CN106444657A (en) * 2016-09-14 2017-02-22 长飞光纤光缆股份有限公司 Modbus main station command processing method and master station controller
JP2019135599A (en) * 2018-02-05 2019-08-15 株式会社東芝 Control system, control method, control device and display unit

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015503136A (en) * 2011-10-24 2015-01-29 シュネーデル、エレクトリック、インダストリーズ、エスアーエスSchneider Electric Industries Sas System and method for managing industrial processes
CN103546467A (en) * 2013-10-23 2014-01-29 上海爱控自动化设备有限公司 Method for transmitting Modbus RTU protocol on TCP/IP network
CN103546467B (en) * 2013-10-23 2016-08-17 上海爱控自动化设备有限公司 The method applying Modbus rtu protocol on TCP/IP network
CN104038499A (en) * 2014-06-17 2014-09-10 宁波三星电气股份有限公司 MODBUS RTU protocol based data transmission method
CN106444657A (en) * 2016-09-14 2017-02-22 长飞光纤光缆股份有限公司 Modbus main station command processing method and master station controller
CN106444657B (en) * 2016-09-14 2019-11-22 长飞光纤光缆股份有限公司 A kind of Modbus main website command processing method and main station controller
JP2019135599A (en) * 2018-02-05 2019-08-15 株式会社東芝 Control system, control method, control device and display unit

Similar Documents

Publication Publication Date Title
JP6310076B2 (en) Control system for controlling the operation of numerically controlled machine tools, and backend and frontend control devices for use in such a system
EP1351108A1 (en) Method and apparatus for programming
JP4820265B2 (en) Engineering equipment
KR101889631B1 (en) Device for assisting creation of sequence program
JP2008033573A (en) Programmable display, control program, recording medium recording the same, control system, client program, and recording medium recording the same
JP2010287034A (en) Address display system of modbus protocol communication between external equipment and plc
JP2013257782A (en) Numerical control device for machine tool with operation support control section
JP6339650B2 (en) Machining program management device
JP4842541B2 (en) Display device for control, screen data generation device, and program and recording medium thereof
JP6177455B2 (en) Management system
JP5058246B2 (en) Control unit with built-in machine model
JP4463716B2 (en) Programmable display, display control program, and recording medium recording the same
JP5469510B2 (en) Programmable controller, set value change system, calculation display device, and set value change unit
JP2007011936A (en) Programmable display unit
JP3847601B2 (en) Control display device, control program, and recording medium recording the same
JP2005259079A (en) Tool
JP2010108219A (en) Control system, communication relay device and portable programmable display unit
JP2009230572A (en) Design support device
JP4381793B2 (en) PROGRAMMABLE DISPLAY, DISPLAY CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP6051545B2 (en) PLC system, status display method, PLC, and programmable display
JP4372739B2 (en) PROGRAMMABLE DISPLAY, CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
TW201439699A (en) Programmable controller system, programmable display therefor, assistance device, and program
JP2005084941A (en) Equipment management system
WO2018008094A1 (en) Parameter editing device for industrial equipment control device, industrial equipment control system, method of manufacture of industrial equipment control system, and program
JP2006134098A (en) Programmable display, display control program, and recording medium with the program recorded thereon