Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5558151B2 - Programmable controller, programmable controller management device, and module name determination method program - Google Patents
[go: Go Back, main page]

JP5558151B2 - Programmable controller, programmable controller management device, and module name determination method program - Google Patents

Programmable controller, programmable controller management device, and module name determination method program Download PDF

Info

Publication number
JP5558151B2
JP5558151B2 JP2010062383A JP2010062383A JP5558151B2 JP 5558151 B2 JP5558151 B2 JP 5558151B2 JP 2010062383 A JP2010062383 A JP 2010062383A JP 2010062383 A JP2010062383 A JP 2010062383A JP 5558151 B2 JP5558151 B2 JP 5558151B2
Authority
JP
Japan
Prior art keywords
module
programmable controller
code
name
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010062383A
Other languages
Japanese (ja)
Other versions
JP2011197878A (en
Inventor
信幸 畠中
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 JP2010062383A priority Critical patent/JP5558151B2/en
Publication of JP2011197878A publication Critical patent/JP2011197878A/en
Application granted granted Critical
Publication of JP5558151B2 publication Critical patent/JP5558151B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルコントローラ等に係るものである。特に接続されたモジュールを認識するための処理を行うプログラマブルコントローラ、プログラマブルコントローラ管理装置及びモジュール名称決定方法のプログラムに関するものである。   The present invention relates to a programmable controller and the like. In particular, the present invention relates to a program for a programmable controller, a programmable controller management device, and a module name determination method that perform processing for recognizing a connected module.

プログラマブルコントローラ(以下、PLCという)においては、制御対象の機器からの信号を入出力(送受信)等する装置をモジュール化し、コネクタに挿抜するモジュールを変更することにより、汎用性、拡張性等を高めている(例えば特許文献1参照)。各モジュールとバスを介して各種信号の送受信を行い、各モジュール(制御対象の機器(マシン))を制御する制御手段(制御手段もモジュール化されている場合がある)は、システム構成(どのコネクタにどのようなモジュールが接続されているか)の検出、把握を電源投入の度に行うが、これをできる限り早く(時間保証の範囲内)行う必要がある。特に電源入力状態で活線挿抜(ホットスワップ)を行う場合、制御対象となる機器が動作していることもあるため、よりはやい検出を行う必要がある。   In programmable controllers (hereinafter referred to as "PLCs"), versatility, expandability, etc. are improved by modularizing devices that input / output (transmit / receive) signals from controlled devices and changing the modules that are inserted into and removed from connectors. (For example, refer to Patent Document 1). The control means (the control means may be modularized) that sends and receives various signals to and from each module and controls each module (device to be controlled (machine)) is a system configuration (which connector This is done every time the power is turned on, and this must be done as soon as possible (within the time guarantee). In particular, when hot-swapping (hot swap) is performed in a power input state, a device to be controlled may be operating, so it is necessary to perform detection faster.

そのため、各モジュールは、例えば製品別に定められたモジュールIDコードをデータとして有している。そして、制御手段は、バスを介して送信される信号内のモジュールIDコードに基づいて接続されているモジュールの認識、検出を行う。   Therefore, each module has, for example, a module ID code defined for each product as data. And a control means recognizes and detects the module connected based on the module ID code in the signal transmitted via a bus | bath.

一方で、PLC本体のどのコネクタにどのようなモジュールが接続されているかを認識し、管理をすることは、PLCを管理(監視)をする管理者においても重要である。ここで、基本的にはモジュールIDコードは各モジュールに割りつけられた数字等が単に並べられているだけなので、モジュールIDコードを示されたとしても、監視者は、どのようなモジュールが接続されているかを判断することは困難である。   On the other hand, it is important for an administrator who manages (monitors) a PLC to recognize and manage which module is connected to which connector of the PLC main body. Here, since the module ID code is basically simply a number assigned to each module, even if the module ID code is shown, the monitor can connect any module. It is difficult to judge whether

そこで、有線又は無線によってPLCと接続された、例えばコンピュータ等の制御処理装置が、PLCから送信される信号中のモジュールIDコードに基づいてモジュールの名称を表示手段に表示させる処理を行っている。   Therefore, a control processing device such as a computer connected to the PLC by wire or wireless performs processing for displaying the module name on the display unit based on the module ID code in the signal transmitted from the PLC.

この処理を実現するために、PLCの制御手段は、例えばモジュールIDコードと対応した名称データを、テーブル形式で制御手段が有する記憶部等に有している。そして制御手段は、モジュールIDコードから、対応するモジュールの名称のデータを検索する。そして、PLCから送信される信号に含まれるモジュールの名称のデータを処理し、制御処理装置はモジュールの名称を表示手段に表示させる。この制御処理装置は、例えばソフトウェア(ツール)として提供されているプログラムに基づく処理を実行することで、上記の処理を実現している。   In order to realize this processing, the PLC control means has, for example, name data corresponding to the module ID code in a table or the like in a storage unit included in the control means. And a control means searches the data of the name of a corresponding module from a module ID code. Then, the module name data included in the signal transmitted from the PLC is processed, and the control processing device displays the module name on the display means. This control processing device realizes the above processing by executing processing based on a program provided as software (tool), for example.

特開2001−255910号公報(図1)JP 2001-255910 A (FIG. 1)

ただ、製品毎に付されるモジュールIDコードに規則性がなく、そのため、新しい種類ができる度に、その製品のモジュールIDコードに名称のデータを対応させなければならず、これが開発する側の負担となっていた。特に、上記のように、PLCにモジュールIDコードと名称のデータとが記憶されている場合、新しい製品に対応していないPLC本体(制御手段)に新しいモジュールを接続しても、そのモジュールの名称を表示させることができなくなってしまう。   However, there is no regularity in the module ID code attached to each product, so each time a new type is made, the name data must be associated with the module ID code of the product, which is a burden on the development side. It was. In particular, when the module ID code and the name data are stored in the PLC as described above, the name of the module can be obtained even if a new module is connected to the PLC main body (control means) not compatible with the new product. Cannot be displayed.

そこで、本発明は上記のような課題を解決するためになされたものであり、開発側の負担を少なく、管理者側ではモジュールの接続状況の把握をすぐに行うことができるPLC、その管理装置、名称決定方法のプログラムを得ることを目的とするものである。   Therefore, the present invention has been made to solve the above-described problems, and the PLC that can reduce the burden on the development side and can immediately grasp the module connection status on the administrator side, and its management device The purpose is to obtain a program for determining the name.

本発明に係るプログラマブルコントローラ(PLC)は、1又は複数のモジュールが接続されるプログラマブルコントローラにおいて、各モジュールは、モジュールがそれぞれ備える1又は複数の機能(製造者の情報等も含む)に応じて決定された、モジュールを識別するためのモジュールIDコードをそれぞれ有する。   The programmable controller (PLC) according to the present invention is a programmable controller to which one or a plurality of modules are connected, and each module is determined according to one or a plurality of functions (including manufacturer information and the like) provided in each module. Each having a module ID code for identifying the module.

また、本発明に係るプログラマブルコントローラは、各モジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータを記憶する記憶手段と、モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータを含む信号がモジュールから送信されると、モジュールIDコードに基づいてモジュールが備えた機能を判断し、判断した機能に基づいて記憶手段に記憶されたキャラクタのデータを選択して組み合わせてモジュールの名称のデータを生成する制御手段とを備えたものである。 In addition, the programmable controller according to the present invention is determined according to the storage means for storing the character data corresponding to one or more functions provided in each module and the one or more functions provided in the modules, When a signal including module ID code data for identifying a module is transmitted from the module, the function of the module is determined based on the module ID code, and the character stored in the storage means is determined based on the determined function. And control means for generating data of module names by selecting and combining these data.

また、本発明に係るプログラマブルコントローラのモジュールIDコードは、少なくとも入力又は出力、アナログ(Analog)又はディスクリート(Discrete)、点数及びチャネル数並びに直流型又は交流型に区別された機能に基づいて決定される。   The module ID code of the programmable controller according to the present invention is determined based on at least input or output, analog or discrete, the number of points and the number of channels, and the functions distinguished from DC type or AC type. .

また、本発明に係るプログラマブルコントローラ管理装置は、1又は複数のモジュールが接続されて構成されるプログラマブルコントローラのモジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータを記憶する記憶手段と、各モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータを含む信号がプログラマブルコントローラから送信されると、モジュールIDコードに基づいてプログラマブルコントローラに接続されたモジュールが備えた機能を判断し、判断した機能に基づいて記憶手段に記憶されたキャラクタのデータを選択して組み合わせた名称のデータを生成して、プログラマブルコントローラに接続されたモジュールの名称を表示させるための表示信号を送信する制御手段と、表示信号に基づいた表示を行う表示手段とを備えたものである。   In addition, the programmable controller management device according to the present invention includes a storage unit that stores character data corresponding to one or a plurality of functions respectively provided in a programmable controller module configured by connecting one or a plurality of modules, When a signal including module ID code data for identifying a module, which is determined according to one or a plurality of functions included in each module, is transmitted from the programmable controller, the signal is connected to the programmable controller based on the module ID code. The function of the selected module is determined, the character data stored in the storage means is selected based on the determined function, and the combined name data is generated, and the name of the module connected to the programmable controller is determined. display And control means for transmitting a display signal for causing, in which a display means for performing display based on the display signal.

また、本発明に係るモジュール名称決定方法のプログラムは、プログラマブルコントローラを構成する1又は複数のモジュールに対し、モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータに基づいて、モジュールが備えた機能を判断する工程と、各モジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータが記憶された記憶手段から、判断した機能に基づいてキャラクタのデータを選択して組み合わせ、モジュールの名称のデータを生成する工程とをコンピュータに行わせる。   Moreover, the program of the module name determination method which concerns on this invention is for identifying the module each determined according to the 1 or several function with which a module is respectively provided with respect to the 1 or several module which comprises a programmable controller. Based on the determined function from the step of determining the function provided by the module based on the data of the module ID code and the storage means storing the character data corresponding to one or more functions provided in each module. The character data is selected and combined, and the computer is caused to generate module name data.

本発明によれば、1又は複数のモジュールが接続されるプログラマブルコントローラにおいて、モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータに基づいてモジュールが備えた機能を判断し、判断した機能に基づいて記憶手段に記憶されたキャラクタのデータを選択して組み合わせてモジュールの名称のデータを生成する処理を、例えばプログラムを実行させることにより、プログラマブルコントローラ又はプログラマブルコントローラ管理装置に行わせるようにしたので、それぞれのモジュールが備えた機能に基づいて自動的に名称が決定され、モジュールIDコードと名称とを1対1で対応させなくてもよい。そのため、例えばモジュールIDコードと名称とを対応させるためのプログラム等の更新等を行わなくても、名称を表示できる。そして、名称データは、モジュールが有する機能に対応したキャラクタのデータの組み合わせで表示されるので、表示された名称からモジュールの機能を判断することもできる。また、制御手段がモジュールの把握に必要な機能に関するデータ(情報)をモジュールIDコードとすることにより、制御手段はモジュール接続時に、モジュールに関する必要なデータをすばやく得ることができる。   According to the present invention, in a programmable controller to which one or a plurality of modules are connected, based on data of a module ID code for identifying a module, which is respectively determined according to one or a plurality of functions included in each module. Programmable, for example, by executing a program to determine the function of the module, select the character data stored in the storage means based on the determined function and combine them to generate the module name data Since the controller or the programmable controller management device is made to perform the name, the name is automatically determined based on the function of each module, and the module ID code and the name do not have to be associated one by one. Therefore, for example, the name can be displayed without updating the program for associating the module ID code with the name. Since the name data is displayed as a combination of character data corresponding to the function of the module, the function of the module can be determined from the displayed name. Further, the data (information) relating to the function necessary for the module to grasp the module is used as the module ID code, so that the controller can quickly obtain the necessary data relating to the module when the module is connected.

第1の実施の形態に係るPLCを中心とするPLCシステムの構成を表す図である。It is a figure showing the structure of the PLC system centering on PLC which concerns on 1st Embodiment. 本発明の実施の形態におけるモジュールIDコードの例を表す図である。It is a figure showing the example of the module ID code in embodiment of this invention. モジュールIDコードの下位バイトの構造を表す図である。It is a figure showing the structure of the low-order byte of a module ID code. モジュールIDコードの上位バイトの構造を表す図である。It is a figure showing the structure of the high-order byte of a module ID code. アナログタイプのモジュールIDコードの上位バイトの構造を表す図である。It is a figure showing the structure of the high-order byte of an analog type module ID code.

実施の形態1.
図1は本発明の第1の実施の形態に係るPLCを中心とするPLCシステムの構成を表す図である。図1において、PLC本体1は、接続されたモジュール3−1〜3−nに電力供給をするための電源手段1A、制御手段2とモジュール3−1〜3−nとの間において各種データを含む信号の伝送路となるバス1Bを少なくとも有している。
Embodiment 1 FIG.
FIG. 1 is a diagram showing a configuration of a PLC system centered on a PLC according to a first embodiment of the present invention. In FIG. 1, the PLC main body 1 receives various data between the power supply means 1A for supplying power to the connected modules 3-1 to 3-n, the control means 2 and the modules 3-1 to 3-n. It has at least a bus 1B that serves as a transmission path for the signals it contains.

制御手段2は、記憶部2Aを有しており、バス1Bを介してモジュール3−1〜3−nと各種データを含む信号を送受信し、記憶部2Aに記憶されたプログラム(命令)に基づいてデータの処理を行い、例えばモジュールに接続された機器の動作を制御する。また、PLC外部の制御機器(制御処理装置10)との間での通信制御等、PLC全体の動作を制御するために必要な処理を行う。特に本実施の形態では、モジュール3−1〜3−nに電力が供給される(バス1Bに接続される)ことにより、バス1Bを介して各モジュールから送信される信号に含まれるモジュールIDコードを解析(判断)処理し、各モジュールにモジュールIDコードに対応した名称を付す処理を行う。この処理を行うため、記憶部2Aには、モジュールIDコードを構成するビットが1又は複数集まったグループによって表される値と、名称として付すキャラクタ(文字、数字、記号等)のデータとが関連づけて記憶されている。なお、ここでは制御手段2が制御処理装置10との間で信号の送受信を行うようにしているが、独立した通信用モジュール(図示せず)を設けて、制御処理装置10と通信を行うこともある。   The control unit 2 includes a storage unit 2A, transmits and receives signals including various data to and from the modules 3-1 to 3-n via the bus 1B, and is based on a program (command) stored in the storage unit 2A. For example, data processing is performed, and for example, the operation of a device connected to the module is controlled. Further, processing necessary for controlling the operation of the entire PLC, such as communication control with a control device (control processing device 10) outside the PLC, is performed. In particular, in the present embodiment, the module ID code included in the signal transmitted from each module via the bus 1B when power is supplied to the modules 3-1 to 3-n (connected to the bus 1B). Is analyzed (determined), and a process of assigning a name corresponding to the module ID code to each module is performed. In order to perform this processing, the storage unit 2A associates a value represented by a group of one or more bits constituting a module ID code with data of characters (characters, numbers, symbols, etc.) assigned as names. Is remembered. Here, the control means 2 transmits and receives signals to and from the control processing device 10, but an independent communication module (not shown) is provided to communicate with the control processing device 10. There is also.

モジュール3−1〜3−nは、例えばインプットモジュール、アウトプットモジュール等で構成される。各モジュールは、接続された制御対象の機器(マシン。図示せず)から送信される信号を制御手段2に送信し、また、制御手段2から送信される信号に基づいて機器の制御を行う。また、モジュールによっては、制御手段2を介することなく、接続された制御対象の機器の制御を行う。本実施の形態では、各モジュールは、後述する方法で決定されるモジュールIDコードを有している。なお、ここではモジュール3−1〜3−nと制御手段2、電源手段1Aとを区別しているが、制御手段2、電源手段1Aもモジュール化(CPUモジュール、電源モジュール)されている場合がある。   The modules 3-1 to 3-n are configured by, for example, an input module, an output module, and the like. Each module transmits a signal transmitted from a connected control target device (machine, not shown) to the control unit 2 and controls the device based on the signal transmitted from the control unit 2. Further, depending on the module, the connected control target device is controlled without using the control means 2. In the present embodiment, each module has a module ID code determined by a method described later. Here, the modules 3-1 to 3-n are distinguished from the control means 2 and the power supply means 1A, but the control means 2 and the power supply means 1A may also be modularized (CPU module, power supply module). .

プログラマブルコントローラ管理装置となる制御処理装置10は、データ処理手段11、入力手段12、表示手段13、記憶手段14及び通信手段15で構成される。データ処理手段11は、通信手段15を介して制御手段2から送信される信号に含まれる各種データに基づいてPLCを管理(監視)するための処理を行う。また、場合によっては、制御手段2に行わせる処理命令をプログラム化するための支援処理を行う。本実施の形態では、制御手段2から送信される信号に含まれる名称データを処理し、その名称を表示させるための表示信号を送信し、表示手段13に表示させる。なお、記憶手段14に、従来のモジュールIDコードのデータと関連づけられた名称のデータが例えばテーブル形式で記憶されており、従来の方法によって名称を検索し、表示手段13にその名称を表示させる処理を行うこともできる。   A control processing device 10 serving as a programmable controller management device includes data processing means 11, input means 12, display means 13, storage means 14, and communication means 15. The data processing unit 11 performs processing for managing (monitoring) the PLC based on various data included in a signal transmitted from the control unit 2 via the communication unit 15. In some cases, support processing for programming processing instructions to be executed by the control means 2 is performed. In the present embodiment, name data included in the signal transmitted from the control unit 2 is processed, a display signal for displaying the name is transmitted, and displayed on the display unit 13. In addition, the data of the name linked | related with the data of the conventional module ID code is memorize | stored in the memory | storage means 14, for example in the table format, The name is searched by the conventional method, and the process which displays the name on the display means 13 is performed. Can also be done.

入力手段12はオペレータの指示を信号としてデータ処理手段11に送信する。表示手段13は、データ処理手段11から送信される表示信号に基づく表示を行う。記憶手段14には、データ処理手段11が行う処理手順を示したプログラムが記憶されている。上記のデータ処理手段11で行われる処理は、このプログラムに基づいて実現される。また、通信手段15は、PLCの制御手段2とデータ処理手段11との間で信号による通信を行う際のインターフェースとなる手段である。   The input unit 12 transmits an operator instruction as a signal to the data processing unit 11. The display unit 13 performs display based on the display signal transmitted from the data processing unit 11. The storage unit 14 stores a program that indicates a processing procedure performed by the data processing unit 11. The processing performed by the data processing means 11 is realized based on this program. The communication unit 15 is a unit that serves as an interface when performing communication using signals between the PLC control unit 2 and the data processing unit 11.

図2は本発明の実施の形態におけるモジュールIDコードの例を表す図である。本実施の形態におけるモジュールIDコードは、16ビット(各ビット番号を0〜15とする)からなり、さらに、下位バイト(ビット番号0〜7)と下位バイト(ビット番号8〜15)とでそれぞれ区別するものとする。そして、1又は複数のビットで、そのモジュールの機能(製造者名等、厳密には機能とはいえない事項も含む)を表し、制御手段2が制御等、処理を行うためにあらかじめ把握しておくべきものとする。   FIG. 2 is a diagram illustrating an example of a module ID code in the embodiment of the present invention. The module ID code in the present embodiment is composed of 16 bits (each bit number is 0 to 15), and each of the lower byte (bit numbers 0 to 7) and the lower byte (bit numbers 8 to 15). A distinction shall be made. One or a plurality of bits represent the function of the module (including a manufacturer name and the like, which is not strictly a function), and the control means 2 grasps in advance for processing such as control. It should be left.

図3はモジュールIDコードの下位バイトの構造を表す図である。本実施の形態では、下位バイトにおいては、ビット番号7〜4の4ビットをグループとして製造者コードを表す(例えば「0001」はKOYO製であることを表す)。さらに、図3のようにビット番号3〜0をグループ(まとまることにより2値(1ビット)では表しきれない機能を表す)としてモジュールの種類(タイプ)を表す。ビット番号3が「0」であれば、ディスクリート(Discrete)又はアナログモジュールであることを表す。そして、その場合、ビット番号2において、「0」であればディスクリートモジュール、「1」であればアナログモジュールである。さらに、ビット番号1において出力機能(アウトプットファンクション)の有無を表し、ビット番号1において入力機能(インプットファンクション)の有無を表す。   FIG. 3 is a diagram showing the structure of the lower byte of the module ID code. In the present embodiment, in the lower byte, 4 bits of bit numbers 7 to 4 are grouped to represent a manufacturer code (for example, “0001” represents that it is made by KOYO). Further, as shown in FIG. 3, bit numbers 3 to 0 are grouped (representing functions that cannot be represented by binary (1 bit) by grouping), and the types of modules are represented. If the bit number 3 is “0”, it indicates that it is a discrete or analog module. In this case, in bit number 2, if it is “0”, it is a discrete module, and if it is “1”, it is an analog module. Further, bit number 1 represents the presence / absence of an output function (output function), and bit number 1 represents the presence / absence of an input function (input function).

一方、ビット番号3をが「1」であれば、特別なモジュール(スペシャルモジュール。例えば等)を表す。本実施の形態では、ビット番号2〜0において表される「000」〜「110」は定義しない(機能を表さない)。「111」は、あらかじめ定めたタイプ以外の他のタイプのモジュールであることを表すものとする。   On the other hand, if the bit number 3 is “1”, it represents a special module (special module, for example, etc.). In this embodiment, “000” to “110” represented by bit numbers 2 to 0 are not defined (does not represent a function). “111” represents a module of a type other than a predetermined type.

図4はディスクリートタイプのモジュールIDコードの上位バイトの構造を表す図である。上位バイトはモジュールの種類がディスクリート又はアナログモジュール(ビット番号3が0)の場合において、その表される内容が異なる。図4(a)のようにディスクリートインプットモジュール(下位バイトのビット番号3〜0が「0001」)の場合、ビット番号10〜8の3ビットをグループとして点数を表す。例えば、「000」=2点(ポイント)、「001」=4点、「010」=8点、「011」=16点、「100」=32点、「101」=64点、「110」=128点、「111」=256点となる。ビット番号14〜11は使用されず、ビット番号15をグループとして「0」であればDC(直流)タイプ、「1」であればAC(交流)タイプを表す。   FIG. 4 shows the structure of the upper byte of a discrete type module ID code. When the module type is a discrete or analog module (bit number 3 is 0), the contents of the upper byte are different. As shown in FIG. 4A, in the case of a discrete input module (bit numbers 3 to 0 of the lower byte are “0001”), the score is expressed by grouping 3 bits of bit numbers 10 to 8. For example, “000” = 2 points (point), “001” = 4 points, “010” = 8 points, “011” = 16 points, “100” = 32 points, “101” = 64 points, “110” = 128 points and “111” = 256 points. Bit numbers 14 to 11 are not used. If bit number 15 is “0” as a group, DC (direct current) type is indicated, and “1” indicates AC (alternating current) type.

一方、図4(b)のようにディスクリートアウトプットモジュール(下位バイトのビット番号3〜0が「0010」)の場合、ディスクリートインプットモジュールと同様にビット番号8〜10の3ビットをグループとして点数を表す。ビット番号11、12は使用されず、ビット番号13、14をグループとして「00」であればDCタイプ、「01」であればACタイプ、「10」であればリレータイプを表す。また、ビット番号15が「0」であればヒューズ無し又は共通タイプ、「1」であれば各点(ポイント)毎にヒューズが設けられているタイプを表す。   On the other hand, in the case of a discrete output module as shown in FIG. 4B (bit numbers 3 to 0 of the lower byte are “0010”), the score is calculated by grouping 3 bits of bit numbers 8 to 10 as in the case of the discrete input module. Represent. Bit numbers 11 and 12 are not used, and if bit numbers 13 and 14 are grouped as “00”, they represent a DC type, “01” represents an AC type, and “10” represents a relay type. Further, when the bit number 15 is “0”, there is no fuse or a common type, and when the bit number is “1”, it indicates a type in which a fuse is provided for each point.

図5はアナログタイプのモジュールIDコードの上位バイトの構造を表す図である。次にアナログモジュール(下位バイトのビット番号3〜0が「011×」)の場合、ビット番号9、8の2ビットをグループとして入力チャネル数を表す。例えば、「00」=2チャネル、「01」=4チャネル、「10」=8チャネル、「11」=16チャネルとなる。同様に、ビット番号11、10の2ビットをグループとして出力チャネル数を表す。さらにビット番号12は入力データの種類を表し、「0」であれば24ビットデータ、「1」であれば2の補数による24ビットデータを表す。また、ビット番号13は各チャネルの値の記憶の方法を表し、「0」であればマルチプレクスによる記憶(記憶手段内においてチャネル別に記憶領域が定められていない)、「1」であればメモリマップによる記憶(記憶手段内でチャネル別に記憶領域が定められている)を表す。ビット番号15、14の2ビットのグループはアナログI/Oの種類を表す。「00」であればアナログ入力タイプ、「01」であれば温度入力タイプ、「10」、「11」はその他のタイプを表す。   FIG. 5 is a diagram showing the structure of the upper byte of an analog type module ID code. Next, in the case of an analog module (bit numbers 3 to 0 of the lower byte are “011 ×”), the number of input channels is expressed by grouping 2 bits of bit numbers 9 and 8. For example, “00” = 2 channels, “01” = 4 channels, “10” = 8 channels, and “11” = 16 channels. Similarly, the number of output channels is expressed by taking 2 bits of bit numbers 11 and 10 as a group. Further, the bit number 12 represents the type of input data. If it is “0”, it represents 24-bit data, and if it is “1”, it represents 24-bit data by 2's complement. Bit number 13 represents a method of storing the value of each channel. If “0”, storage by multiplex (a storage area is not defined for each channel in the storage means), and if “1”, memory is stored. This represents storage by a map (a storage area is determined for each channel in the storage means). A 2-bit group of bit numbers 15 and 14 represents the type of analog I / O. “00” represents an analog input type, “01” represents a temperature input type, and “10” and “11” represent other types.

PLCの制御手段2は、バス1Bを介して、モジュール3−1〜3−nから送信される信号に含まれるモジュールIDコードに基づいて、2進数で「0」であるか「1」であるかをビット毎に判断し、モジュールIDコードを認識する。そして、上述のように複数のビットを概念的にグループとして扱い、各グループの値に基づいて記憶部2Aに記憶された文字のデータから対応する文字のデータを検索し、名称のデータを生成する。その際、アナログ/ディスクリート、インプット/アウトプットで上位バイトの判断が異なるため、下位バイトのグループから判断を行う。   The control means 2 of the PLC is “0” in binary or “1” based on the module ID code included in the signal transmitted from the modules 3-1 to 3-n via the bus 1B. Is determined for each bit, and the module ID code is recognized. Then, as described above, a plurality of bits are conceptually treated as a group, and the corresponding character data is searched from the character data stored in the storage unit 2A based on the value of each group, and name data is generated. . At this time, since the determination of the upper byte differs between analog / discrete and input / output, the determination is made from the group of lower bytes.

名称のデータを生成する場合、例えば、T1[1]−[2][3]を名称として付す場合を考える。ここで、最初の「T1」は例えば名称の接頭文字として付されるものである。[1]の部分には前述した製造者コードが付される(例えばKOYO製では「K」が付される)。   In the case of generating name data, for example, consider a case where T1 [1]-[2] [3] is assigned as a name. Here, the first “T1” is added as a prefix of the name, for example. The manufacturer code described above is attached to the part [1] (for example, “K” is attached to KOYO).

[2]の部分には、ディスクリートモジュールの点数又はアナログモジュールにおいてはチャネル数が付される。[3]の部分には以下のように、モジュールのタイプによる文字が付される。
ディスクリート入力タイプ…「ND」(DC入力)、「NA」(AC入力)
ディスクリート出力タイプ…「TD」(DC出力)、「TA」(AC出力)、
「TR」(リレー出力)
アナログ入力タイプ …「AD」、「THM」(温度入力)
アナログ出力タイプ …「DA」
In [2], the number of discrete modules or the number of channels in an analog module is added. The characters according to the module type are attached to the part [3] as follows.
Discrete input type: “ND” (DC input), “NA” (AC input)
Discrete output type: “TD” (DC output), “TA” (AC output),
"TR" (relay output)
Analog input type: "AD", "THM" (temperature input)
Analog output type “DA”

例えば、2進数で「0000 0010 0001 0010」(16進数で「0212」)のモジュールIDコードを含む信号が、バス1Bを介して制御手段2に送信される。制御手段2は、各ビット番号の値を判断し、上記で説明したようにモジュールIDコードを解析する。上記のモジュールIDコードの場合、例えば、T1K−08TDという名称が付される。これは「KOYO製」、8点数のDCタイプディスクリート出力モジュールを表す。   For example, a signal including a module ID code of “0000 0010 0001 0010” in binary (“0212” in hexadecimal) is transmitted to the control unit 2 via the bus 1B. The control means 2 determines the value of each bit number and analyzes the module ID code as described above. In the case of the above module ID code, for example, the name T1K-08TD is given. This represents a “Kyoyo”, 8-point DC type discrete output module.

一方、制御処理装置10(データ処理手段11)から要求がなされる等により、この名称のデータを含む信号が制御処理装置10に送信される。データ処理手段11は、例えば他の管理用のデータとともに名称データを処理し、データ処理手段11が名称のデータに基づく表示信号を送信し、表示手段13に名称を表示させる。管理者は、その名称だけでなく、1又は複数の機能別に分けられたモジュールの種別も、その名称から判断することができる。   On the other hand, when a request is made from the control processing device 10 (data processing means 11), a signal including data of this name is transmitted to the control processing device 10. For example, the data processing unit 11 processes the name data together with other management data, and the data processing unit 11 transmits a display signal based on the name data to cause the display unit 13 to display the name. The administrator can determine not only the name but also the type of module divided by one or more functions from the name.

ここで、全く同じ機能のモジュールが、2つ以上PLC本体1に接続されている場合には、同じ名称が付されることになるが、本実施の形態の制御処理装置10では、モジュール(モジュールIDコード)の管理をベース、スロット毎に行っている。このため、これらが異なることで(基本的に1つのシステム上で同じになることはない)、機能に基づいて設定したモジュールIDコードに基づいて名称を生成したとしても、ベース、スロットとともに区別することができるため、表示には問題が生じないものと考えられる。   Here, when two or more modules having exactly the same function are connected to the PLC main body 1, the same name is given. However, in the control processing device 10 of the present embodiment, the module (module ID code) is managed on a base and slot basis. For this reason, they are different (basically they will not be the same on one system), and even if a name is generated based on a module ID code set based on a function, it is distinguished from the base and slot. Therefore, it is considered that no problem occurs in the display.

以上のように、第1の実施の形態によれば、モジュール3−1〜3−nが有するモジュールIDコードについて、モジュールが備える1又は複数の機能に基づいてモジュールIDコードを定め、制御手段2が、モジュールIDコードを構成する各ビットを判断し、ビット(グループとして扱ったものも含む)が表す値に対応するキャラクタのデータを記憶部2Aから選択(検索)して組み合わせて生成した名称データを生成するようにしたので、制御処理装置10において、表示手段13に名称データに基づく名称の表示を行うことができる。あらかじめ、それぞれのモジュールが備えた機能に基づいて自動的に名称が決定されるので、モジュールIDコードと名称とを1対1で対応させなくてもよい。そして、そのため、例えば、新製品が販売される度にモジュールIDコードと名称データとを関連づけ等しなくてもよく、それに伴うプログラム等の更新等を行わなくても、名称を表示できる。名称データは、モジュールが有する機能に対応したキャラクタのデータの組み合わせで表示されるので、表示された名称からモジュールの機能を判断することもできる。また、制御手段がモジュールの把握に必要な機能に関するデータ(情報)をモジュールIDコードとしたので、制御手段2はモジュール接続時においてモジュールの把握に必要なデータをすばやく得ることができる。   As described above, according to the first embodiment, the module ID code of the modules 3-1 to 3-n is determined based on one or more functions provided in the module, and the control unit 2 However, each bit constituting the module ID code is determined, and the character data corresponding to the value represented by the bit (including those treated as a group) is selected (searched) from the storage unit 2A and combined to generate name data In the control processing device 10, the display unit 13 can display the name based on the name data. Since the name is automatically determined in advance based on the function of each module, the module ID code and the name do not have to be associated one-to-one. Therefore, for example, each time a new product is sold, the module ID code and the name data need not be associated, and the name can be displayed without updating the program associated therewith. Since the name data is displayed as a combination of character data corresponding to the function of the module, the function of the module can be determined from the displayed name. Further, since the data (information) related to the function necessary for the control means to grasp the module is used as the module ID code, the control means 2 can quickly obtain the data necessary for grasping the module when the module is connected.

実施の形態2.
上述の実施の形態では、モジュールIDコードを16ビットで設定するようにしたが、本発明ではこれに限定されるものではなく、モジュールの構成として表すべき事項(制御部2が把握しておく事項)の増減に応じて、モジュールIDコードのビット数を変更するようにしてもよい。
Embodiment 2. FIG.
In the above-described embodiment, the module ID code is set with 16 bits. However, the present invention is not limited to this, and the items to be expressed as the module configuration (the items to be grasped by the control unit 2). ), The number of bits of the module ID code may be changed.

実施の形態3.
また、上述の実施の形態では、PLCの制御手段2がモジュールIDコードに基づいて名称のデータを生成し、制御処理装置10に名称のデータを含む信号を送信して表示手段13に表示させるようにしたが、これに限定されるものではない。例えば、モジュールIDコードのデータを含む信号を制御手段2から制御処理装置10に送信し、データ処理手段11が、第1の実施の形態で制御手段2が行ったような名称データ生成の処理を行い、表示手段13に表示させるようにしてもよい。
Embodiment 3 FIG.
In the above-described embodiment, the control unit 2 of the PLC generates name data based on the module ID code, and transmits a signal including the name data to the control processing device 10 to display it on the display unit 13. However, the present invention is not limited to this. For example, a signal including module ID code data is transmitted from the control means 2 to the control processing apparatus 10, and the data processing means 11 performs a name data generation process as performed by the control means 2 in the first embodiment. This may be displayed on the display means 13.

1 PLC本体
1A 電源手段
1B バス
2 制御手段
2A 記憶部
3−1〜3−n モジュール
10 制御処理装置
11 データ処理手段
12 入力手段
13 表示手段
14 記憶手段
15 通信手段
DESCRIPTION OF SYMBOLS 1 PLC main body 1A Power supply means 1B Bus 2 Control means 2A Storage part 3-1 to 3-n Module 10 Control processing device 11 Data processing means 12 Input means 13 Display means 14 Storage means 15 Communication means

Claims (4)

1又は複数のモジュールが接続されるプログラマブルコントローラにおいて、
各前記モジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータを記憶する記憶手段と、
前記モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータを含む信号が前記モジュールから送信されると、前記モジュールIDコードに基づいて前記モジュールが備えた機能を判断し、判断した機能に基づいて前記記憶手段に記憶されたキャラクタのデータを選択して組み合わせて前記モジュールの名称のデータを生成する制御手段と
を備えたことを特徴とするプログラマブルコントローラ。
In a programmable controller to which one or more modules are connected,
Storage means for storing character data corresponding to one or more functions provided in each of the modules;
When a signal including data of a module ID code for identifying a module, which is determined according to one or a plurality of functions respectively provided in the module, is transmitted from the module, the module is based on the module ID code. And a control means for generating data of the name of the module by selecting and combining character data stored in the storage means based on the determined function. Programmable controller.
モジュールIDコードは、少なくとも入力又は出力、アナログ又はディスクリート、点数及びチャネル数並びに直流型又は交流型に区別された機能に基づいて決定されることを特徴とする請求項1記載のプログラマブルコントローラ。 Module ID code, at least an input or output, analog or discrete, count and the programmable controller of claim 1 Symbol mounting, characterized in that it is determined on the basis of differentiated function in the channel number as well as a DC type or an AC type. 1又は複数のモジュールが接続されて構成されるプログラマブルコントローラの前記モジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータを記憶する記憶手段と、
各前記モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータを含む信号が前記プログラマブルコントローラから送信されると、前記モジュールIDコードに基づいて前記プログラマブルコントローラに接続された前記モジュールが備えた機能を判断し、判断した機能に基づいて前記記憶手段に記憶されたキャラクタのデータを選択して組み合わせた名称のデータを生成して、前記プログラマブルコントローラに接続された前記モジュールの名称を表示させるための表示信号を送信するデータ処理手段と、
前記表示信号に基づいた表示を行う表示手段と
を備えたことを特徴とするプログラマブルコントローラ管理装置。
Storage means for storing character data corresponding to one or more functions of each of the modules of the programmable controller configured by connecting one or more modules;
When a signal including data of a module ID code for identifying a module, which is respectively determined according to one or a plurality of functions included in each of the modules, is transmitted from the programmable controller, based on the module ID code The function of the module connected to the programmable controller is determined, and based on the determined function, the character data stored in the storage means is selected and combined to generate name data, and the programmable controller Data processing means for transmitting a display signal for displaying the name of the module connected to
A programmable controller management device comprising display means for performing display based on the display signal.
プログラマブルコントローラを構成する1又は複数のモジュールに対し、
前記モジュールがそれぞれ備える1又は複数の機能に応じてそれぞれ決定された、モジュールを識別するためのモジュールIDコードのデータに基づいて、前記モジュールが備えた機能を判断する工程と、
各前記モジュールがそれぞれ備える1又は複数の機能に応じたキャラクタのデータが記憶された記憶手段から、判断した機能に基づいて前記キャラクタのデータを選択して組み合わせ、前記モジュールの名称のデータを生成する工程と
をコンピュータに行わせるモジュール名称決定方法のプログラム。
For one or more modules constituting a programmable controller,
Determining a function provided by the module based on data of a module ID code for identifying the module, each determined according to one or more functions provided by the module;
Based on the determined function, the character data is selected and combined based on the determined function from the storage means storing the character data corresponding to one or a plurality of functions included in each module, and the module name data is generated. A program for determining a module name that causes a computer to perform a process.
JP2010062383A 2010-03-18 2010-03-18 Programmable controller, programmable controller management device, and module name determination method program Active JP5558151B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010062383A JP5558151B2 (en) 2010-03-18 2010-03-18 Programmable controller, programmable controller management device, and module name determination method program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010062383A JP5558151B2 (en) 2010-03-18 2010-03-18 Programmable controller, programmable controller management device, and module name determination method program

Publications (2)

Publication Number Publication Date
JP2011197878A JP2011197878A (en) 2011-10-06
JP5558151B2 true JP5558151B2 (en) 2014-07-23

Family

ID=44876024

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010062383A Active JP5558151B2 (en) 2010-03-18 2010-03-18 Programmable controller, programmable controller management device, and module name determination method program

Country Status (1)

Country Link
JP (1) JP5558151B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6373295B2 (en) * 2016-03-23 2018-08-15 三菱電機株式会社 Device configuration management device, control management system, and connected device identification method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07182013A (en) * 1991-04-11 1995-07-21 Ge Fanuc Autom North America Inc Method and apparatus for identifying input / output modules coupled to a programmable logic controller
JPH09212214A (en) * 1996-01-30 1997-08-15 Mitsubishi Electric Corp Unit debug device
JP2000293217A (en) * 1999-04-06 2000-10-20 Hitachi Ltd Plant diagnostic system
JP2001092691A (en) * 1999-09-20 2001-04-06 Matsushita Electric Ind Co Ltd Program execution history management device
JP3899452B2 (en) * 2001-05-09 2007-03-28 株式会社日立製作所 Control apparatus status display method and apparatus
JP4255727B2 (en) * 2003-03-28 2009-04-15 株式会社デジタル HOST COMPUTER, DISTRIBUTION DATA STORAGE PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM

Also Published As

Publication number Publication date
JP2011197878A (en) 2011-10-06

Similar Documents

Publication Publication Date Title
US9645572B2 (en) Device class information support for multi-option devices
JP2981776B2 (en) Method of configuring a module adapted to connect to a programmable logic controller
US8993943B2 (en) Systems for operating multiple plasma and/or induction heating systems and related methods
EP2000246A1 (en) Welding apparatus
JP5826121B2 (en) Machine control program creation device, machine control program creation method, program, and information storage medium
US20180011466A1 (en) Programmable logic controller, method for controlling programmable logic controller, and control program
US20170277172A1 (en) Sim system, control method therefor and production informatization system
US20180011467A1 (en) Plc control data generation device, plc control data generation method, and plc control data generation program
JP2017207830A (en) Information processing device which processes processing information between a plurality of manufacturing cells
JP5558151B2 (en) Programmable controller, programmable controller management device, and module name determination method program
KR101689099B1 (en) Engineering tool and programmable logic controller
JP2020511705A (en) Field device control method and control device
US8295956B2 (en) Control device having an integrated machine model
JP2003202910A (en) Parameter setting apparatus for numerically controlled machine tool
CN102483624A (en) Providing operating data relating to a device using a diagnostic data server as a further field bus master
CN114740739B (en) Methods, devices, systems, and storage media for centralized control of smart home appliances.
JP2014048993A (en) Transfer program generation device
JP7238534B2 (en) Network management device, management method, management program and recording medium
JP4942797B2 (en) Control and monitoring system
JP2019204554A (en) Controller, control system, control method, and control program
JP2016110393A (en) Programmable controller, test method for programmable controller, and program
JP2807584B2 (en) PC programming device
US20140152595A1 (en) Display system for machine using portable display device
CN103064301B (en) For method and the configuration-system of operative configuration system
JP5014094B2 (en) Man-machine interface equipment and drawing equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131126

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140604

R150 Certificate of patent or registration of utility model

Ref document number: 5558151

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250