JP2010134592A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP2010134592A
JP2010134592A JP2008308381A JP2008308381A JP2010134592A JP 2010134592 A JP2010134592 A JP 2010134592A JP 2008308381 A JP2008308381 A JP 2008308381A JP 2008308381 A JP2008308381 A JP 2008308381A JP 2010134592 A JP2010134592 A JP 2010134592A
Authority
JP
Japan
Prior art keywords
program
cpu
hardware
programmable controller
ladder
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
JP2008308381A
Other languages
Japanese (ja)
Inventor
Masahiko Yokoo
雅彦 横尾
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 JP2008308381A priority Critical patent/JP2010134592A/en
Publication of JP2010134592A publication Critical patent/JP2010134592A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To accelerate the operation of a programmable controller. <P>SOLUTION: The programmable controller includes a ladder program storage memory 5 for storing program instructions configuring a ladder program; and a program execution CPU 3 for sequence-controlling a control object according to the program instructions. This programmable controller is provided with a hardware CPU 8a for generating hardware program instructions from the program instructions on software, and the program execution CPU 3 transfers data to be controlled to the hardware CPU 8a. The hardware CPU 8a performs the logical arithmetic operation of the data according to the hardware program instructions, and transfers the arithmetic results to the program execution CPU 3. The programmable execution CPU 3 controls the control object according to the arithmetic results. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、工作機械等の制御に用いられるプログラマブルコントローラ(PLC)にかかり、特に、その制御動作を高速化することに関するものである。   The present invention relates to a programmable controller (PLC) used for control of a machine tool or the like, and particularly relates to speeding up the control operation.

生産工場等に設置されるファクトリーオートメーション(FA)の制御装置として、プログラマブルコントローラが用いられている。このプログラマブルコントローラは、複数のユニットから構成される。この複数のユニットとしては、電源ユニット、CPUユニット、入力ユニット、出力ユニット、通信ユニット、その他の高機能ユニット、等がある。CPUユニットは、内部にCPU、I/Oメモリ、プログラムメモリ等を有し、このCPUは、入力ユニットで入力した信号をI/Oメモリに取り込むINリフレッシュ処理を行い、プログラムメモリ内のシーケンス制御用のラダープログラムに基づき演算実行し、その演算実行結果をI/Oメモリに書き込んで出力ユニットに送り出すOUTリフレッシュ処理を行い、その後、通信ユニットを介して通信ネットワーク上の他のPLCとデータ送受信を行ったり、CPUユニットに備えられた通信ポートを介して外部のパーソナルコンピュータ等とデータ送受信などを行ったりする周辺処理を行う一連の処理を繰り返す。入力ユニットにはセンサ等が、出力ユニットにはアクチュエータ等が接続される。センサ等は工場内の機械や設備等の状態をセンシングし、その情報を入力ユニットに入力し、アクチュエータ等は出力ユニットからの出力に応答して工場内の機械や設備等を駆動する。   A programmable controller is used as a control device for factory automation (FA) installed in a production factory or the like. This programmable controller is composed of a plurality of units. Examples of the plurality of units include a power supply unit, a CPU unit, an input unit, an output unit, a communication unit, and other high-functional units. The CPU unit includes a CPU, an I / O memory, a program memory, and the like. The CPU performs an IN refresh process for fetching a signal input from the input unit into the I / O memory, and performs sequence control in the program memory. Executes an operation based on the ladder program, writes the result of the operation to the I / O memory and sends it to the output unit, then performs an OUT refresh process, and then transmits and receives data to and from other PLCs on the communication network Or a series of processing for performing peripheral processing such as data transmission / reception with an external personal computer or the like via a communication port provided in the CPU unit is repeated. A sensor or the like is connected to the input unit, and an actuator or the like is connected to the output unit. The sensor or the like senses the state of the machine or equipment in the factory, and inputs the information to the input unit, and the actuator or the like drives the machine or equipment in the factory in response to the output from the output unit.

こうしたプログラマブルコントローラは、上記プログラマブルコントローラ内のユーザプログラムであるラダープログラムの命令(プログラム命令)の羅列を、順次読み出し、解析し、その結果に基づき演算実行するようになっている。このプログラム命令は、接点命令などの基本命令と、数値演算などの応用命令とに大別される。ラダープログラムでは、基本命令の出現比率が高く、この演算を高速に処理することが、全体的な高速演算の実現につながる。基本命令は演算処理が単純であるが出現比率が高く、応用命令は演算処理が基本命令に比べ複雑であるが出現比率が低いため、コストパフォーマンスに優れるからである。基本命令と応用命令の分担は、製品の価格と密接で、シーケンスCPUの集積度によって定められる。集積度のより高いシーケンス演算専用LSIを使用すれば、価格も上昇するが、多くの命令をシーケンスCPUで処理でき、演算性能の高いものにできる。   Such a programmable controller sequentially reads and analyzes a list of instructions (program instructions) of a ladder program, which is a user program in the programmable controller, and executes an operation based on the result. The program instructions are roughly classified into basic instructions such as contact instructions and application instructions such as numerical operations. In the ladder program, the appearance ratio of basic instructions is high, and processing this operation at high speed leads to the realization of the overall high-speed operation. This is because the basic instruction is simple in arithmetic processing but has a high appearance ratio, and the application instruction is more complicated in arithmetic processing than the basic instruction but has a low appearance ratio, so it has excellent cost performance. The allocation of basic instructions and application instructions is closely related to the price of the product and is determined by the degree of integration of the sequence CPU. If a higher-integration LSI for sequence calculation is used, the price will increase, but many instructions can be processed by the sequence CPU, and the calculation performance can be improved.

ところで、上記では、ラダープログラムの実行において基本命令の所で高速になり、応用命令の所で速度低下しているが、近年、プログラマブルコントローラにおいては、その動作全体のより高速化への要求が高まってきている。しかしながら、既存のプログラマブルコントローラでは内蔵CPUの処理能力に依存しているために、このCPUの処理能力が低い場合では、プログラマブルコントローラの高速化には限界があった。なお、プログラマブルコントローラの先行特許文献を下記する。
特開2004−334429号公報
By the way, in the above, in the execution of the ladder program, the speed is increased at the basic instruction, and the speed is decreased at the applied instruction, but in recent years, the demand for higher speed of the entire operation has increased in the programmable controller. It is coming. However, since the existing programmable controller depends on the processing capability of the built-in CPU, there is a limit to increasing the speed of the programmable controller when the processing capability of the CPU is low. Prior patent documents of the programmable controller will be described below.
JP 2004-334429 A

本発明においては、プログラム命令が基本命令、応用命令を区別することなく、扱うことで、プログラム全体の処理高速化を図り、プログラマブルコントローラの動作上の高速化を達成しようとするものである。   In the present invention, a program instruction is handled without distinguishing between a basic instruction and an application instruction, so that the processing speed of the entire program is increased and the operation speed of the programmable controller is increased.

本発明によるプログラマブルコントローラは、ラダープログラムを構成する複数のプログラム命令が格納してあるプログラムメモリと、上記プログラム命令に従い制御対象をシーケンス制御するプログラム実行CPUと、を備えたプログラマブルコントローラであって、ラダープログラムを構成するプログラム命令をハードウエア化するハードウエア化CPUと、ハードウエア化されたプログラム命令を格納するハードウエア化プログラム命令格納部とを有すると共に、プログラム実行CPUは、ハードウエア化CPUに制御対象のデータを渡し、ハードウエア化CPUは、上記ハードウエア化プログラム命令によりデータを論理演算し、その演算結果をプログラム実行CPUに渡し、プログラム実行CPUは、渡された演算結果に従い制御対象を制御することを特徴とするものである。   A programmable controller according to the present invention is a programmable controller comprising a program memory in which a plurality of program instructions constituting a ladder program are stored, and a program execution CPU that performs sequence control on a controlled object in accordance with the program instructions. It has a hardware-ized CPU for hardwareizing program instructions constituting the program and a hardware-based program instruction storage unit for storing the hardwareized program instructions, and the program execution CPU is controlled by the hardware-based CPU. The target data is passed, and the hardware CPU performs a logical operation on the data by the hardware program instruction, and passes the operation result to the program execution CPU. The program execution CPU performs control according to the passed operation result. It is characterized in that to control the elephants.

本発明によれば、ラダープログラムをソフトウエア上ではなく、ハードウエア化したプログラム命令で演算実行させるので、プログラマブルコントローラの高速化を図ることができる。   According to the present invention, since the ladder program is operated and executed not by software but by hardware program instructions, the speed of the programmable controller can be increased.

以下、添付した図面を参照して、本発明の実施の形態に係るプログラマブルコントローラを説明する。   Hereinafter, a programmable controller according to an embodiment of the present invention will be described with reference to the accompanying drawings.

図1を参照して、このプログラマブルコントローラは、CPUモジュール1と、複数のI/Oモジュール2とを含む。CPUモジュール1は、シーケンスプログラムを実行するもので各構成部分を制御するプログラム実行CPU3と、システムプログラム格納メモリ4と、ラダープログラム格納メモリ5と、データメモリ6と、バスインターフェース7と、ラダープロセッサ8とを備える。9はバスを、10はI/O機器を示す。システムプログラム格納メモリ4は、システム制御に必要なシステムプログラムを格納する。ラダープログラム格納メモリ5は、ラダープログラムを格納する。データメモリ6は、プログラム実行CPU3が作業に用いるワークエリアと、プログラム命令を実行した際に、I/O機器10に対する入出力状況を記憶するI/O格納エリアと、その他のエリアとを有する。バスインターフェース7は、CPUモジュール1とI/Oモジュール2とをインターフェースする。   Referring to FIG. 1, this programmable controller includes a CPU module 1 and a plurality of I / O modules 2. The CPU module 1 executes a sequence program, and controls a program execution CPU 3, a system program storage memory 4, a ladder program storage memory 5, a data memory 6, a bus interface 7, and a ladder processor 8. With. 9 indicates a bus and 10 indicates an I / O device. The system program storage memory 4 stores a system program necessary for system control. The ladder program storage memory 5 stores a ladder program. The data memory 6 has a work area used by the program execution CPU 3 for work, an I / O storage area for storing an input / output status for the I / O device 10 when a program command is executed, and other areas. The bus interface 7 interfaces the CPU module 1 and the I / O module 2.

ラダープロセッサ8は、ラダープログラムを構成するプログラム命令をハードウエア化するハードウエア化CPU8aと、ラダープログラム格納メモリ5内のラダープログラムをハードウエア化するためのソフトウエアが格納されるハードウエア化ソフトウエア格納メモリ8bと、ハードウエア化CPU8aによりハードウエア化されたプログラム命令が格納されるハードウエア化プログラム命令格納部8cと、を有する。   The ladder processor 8 includes a hardware CPU 8a for hardwareizing program instructions constituting the ladder program, and hardware software for storing software for making the ladder program in the ladder program storage memory 5 hardware. It has a storage memory 8b and a hardware program instruction storage unit 8c for storing program instructions that are hardwareized by the hardware CPU 8a.

以上の構成を備えた実施の形態のプログラマブルコントローラにおいては、以下の動作を行うようになっている。   In the programmable controller of the embodiment having the above-described configuration, the following operation is performed.

まず、プログラム実行CPU3が、ラダープログラムをラダープロセッサ8内のハードウエア化CPU8aに入力させる。プログラム実行CPU3から送られるラダープログラムは、多数のプログラム命令から構成されている。このプログラム命令には、基本命令(シーケンス命令)、OUT命令、応用命令、END命令、があり、応用命令には、OR命令、AND命令、MOVE命令、等がある。図2で示すように、ステップ1では、ラダープログラムの母線上につながる接点命令X0(LD命令)、接点命令X1(OR命令)、接点命令X2(AND命令)、出力命令Y0(OUT命令)と処理したのち、ステップ2では、母線につながる次の接点命令X3(LD命令)、接点命令X4(AND命令)、接点命令Y1 (OUT命令)を実行していき、…ステップnでは、接点命令Xn(LD命令)、接点命令Yn (OUT命令)を実行していき、ラダープログラムの最後に有る図示略のEND命令を実行して、再び、接点命令X0(LD命令)に戻り、同様な処理を繰り返し行う(スキャン処理)。   First, the program execution CPU 3 inputs a ladder program to the hardware CPU 8 a in the ladder processor 8. The ladder program sent from the program execution CPU 3 is composed of a large number of program instructions. The program instructions include basic instructions (sequence instructions), OUT instructions, application instructions, END instructions, and application instructions include OR instructions, AND instructions, MOVE instructions, and the like. As shown in FIG. 2, in step 1, contact instruction X0 (LD instruction), contact instruction X1 (OR instruction), contact instruction X2 (AND instruction), output instruction Y0 (OUT instruction) connected to the bus line of the ladder program After processing, in step 2, the next contact command X3 (LD command), contact command X4 (AND command), contact command Y1 (OUT command) connected to the bus is executed, and in step n, contact command Xn (LD command) and contact command Yn (OUT command) are executed, the END command (not shown) at the end of the ladder program is executed, and the process returns to the contact command X0 (LD command) again. Repeatedly (scan process).

ラダープロセッサ8内のハードウエア化CPU8aは、プログラム実行CPU3から入力された図2で示すラダープログラムをハードウエア化ソフトウエア格納メモリ8b内のソフトウエアにより、例えば図3で示すようにステップn1、n2,…に含む接点命令、出力命令をハードウエア化した論理ブロック群H1,H2,…,Hnに変換する。こうしてラダープログラムの各ステップをハードウエア化してなるハードウエア化プログラム命令8cが生成される。このハードウエア化プログラム命令8cは、ラダープログラムを構成する各ステップのプログラム命令をハードウエア化したものである。   The hardware CPU 8a in the ladder processor 8 converts the ladder program shown in FIG. 2 inputted from the program execution CPU 3 by the software in the hardware software storage memory 8b, for example, steps n1 and n2 as shown in FIG. ,... Are converted into hardware logical block groups H1, H2,..., Hn. In this way, a hardware-programmed program instruction 8c is generated by hardwareizing each step of the ladder program. This hardware-implemented program instruction 8c is a hardware-implemented program instruction of each step constituting the ladder program.

次に、プログラム実行CPU3においては、I/Oモジュール2を経由して受け取る制御対象たるI/O機器10からのデータをラダープロセッサ8に渡す。ラダープロセッサ8は、内部のハードウエア化CPU8aにより、そのデータを、格納部8c内の対応するハードウエア化プログラム命令に従い、演算実行させたうえで、その演算結果をプログラム実行CPU3に渡す。このようにして、実施の形態では、ラダープログラムをソフトウエア上ではなく、ハードウエア化したプログラム命令で演算実行させるので、プログラマブルコントローラの高速化を図ることができる。   Next, the program execution CPU 3 passes the data from the I / O device 10 to be controlled received via the I / O module 2 to the ladder processor 8. The ladder processor 8 causes the internal hardware CPU 8a to execute the data in accordance with the corresponding hardware program instruction in the storage unit 8c, and then passes the operation result to the program execution CPU 3. In this manner, in the embodiment, the ladder program is operated and executed by the hardware program instruction instead of software, so that the speed of the programmable controller can be increased.

図1は本発明の実施の形態にかかるプログラマブルコントローラの構成を示す図である。FIG. 1 is a diagram showing a configuration of a programmable controller according to an embodiment of the present invention. 図2はラダー図である。FIG. 2 is a ladder diagram. 図3は本発明の実施の形態にかかる方法に関わるプログラマブルコントローラのハードウエア化プログラム命令を示す図である。FIG. 3 is a diagram showing the hardwareized program instructions of the programmable controller related to the method according to the embodiment of the present invention.

符号の説明Explanation of symbols

1 CPUモジュール
2 I/Oモジュール
3 プログラム実行CPU
4 システムプログラム格納メモリ
5 ラダープログラム格納メモリ
6 データメモリ
7 バスインターフェース
8 ラダープロセッサ
8a ハードウエア化CPU
8b ハードウエア化ソフトウエア格納メモリ
8c ハードウエア化プログラム命令格納部
1 CPU module 2 I / O module 3 Program execution CPU
4 System program storage memory 5 Ladder program storage memory 6 Data memory 7 Bus interface 8 Ladder processor 8a Hardware CPU
8b Hardware software storage memory 8c Hardware program instruction storage

Claims (1)

ラダープログラムを構成する複数のプログラム命令が格納してあるプログラムメモリと、上記プログラム命令に従い制御対象をシーケンス制御するプログラム実行CPUと、を備えたプログラマブルコントローラであって、
ラダープログラムを構成するプログラム命令をハードウエア化するハードウエア化CPUと、
ハードウエア化されたプログラム命令を格納するハードウエア化プログラム命令格納部と、
を有すると共に、
プログラム実行CPUは、ハードウエア化CPUに制御対象のデータを渡し、
ハードウエア化CPUは、上記格納部内のハードウエア化プログラム命令に従い、上記データを論理演算し、その演算結果をプログラム実行CPUに渡し、
プログラム実行CPUは、渡された演算結果に従い制御対象を制御する、ことを特徴とするプログラマブルコントローラ。
A programmable controller comprising a program memory in which a plurality of program instructions constituting a ladder program are stored, and a program execution CPU that performs sequence control of a controlled object in accordance with the program instructions,
A hardwareized CPU for hardwareizing program instructions constituting a ladder program;
A hardwareized program instruction storage unit for storing hardwareized program instructions;
And having
The program execution CPU passes data to be controlled to the hardware CPU,
The hardware CPU performs a logical operation on the data according to the hardware program instruction in the storage unit, and passes the operation result to the program execution CPU.
A programmable controller, wherein the program execution CPU controls a control target in accordance with a passed calculation result.
JP2008308381A 2008-12-03 2008-12-03 Programmable controller Pending JP2010134592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008308381A JP2010134592A (en) 2008-12-03 2008-12-03 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008308381A JP2010134592A (en) 2008-12-03 2008-12-03 Programmable controller

Publications (1)

Publication Number Publication Date
JP2010134592A true JP2010134592A (en) 2010-06-17

Family

ID=42345849

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008308381A Pending JP2010134592A (en) 2008-12-03 2008-12-03 Programmable controller

Country Status (1)

Country Link
JP (1) JP2010134592A (en)

Similar Documents

Publication Publication Date Title
JP5266412B2 (en) Numerical controller system with multi-core processor
US20080147206A1 (en) Control system for Real Time Applications for Cooperative Industrial Robots
JP5295061B2 (en) Programmable controller
JP2007068292A (en) Drive controller with plc function incorporated therein
JP2009080740A (en) Programmable controller with radio function and programmable controller system
JP7077848B2 (en) Control device
JP2010079355A (en) Cooperative control system between a plurality of plcs
JP2010134592A (en) Programmable controller
EP4036670A1 (en) Control device
JP2008234394A (en) Speed-up method for programmable controller
JP6484015B2 (en) Programmable logic controller and control method thereof
JP2010134830A (en) Programmable controller, cpu unit, analog input unit, and analog output unit
JP6812726B2 (en) Control unit, data refresh method, data refresh program
JP2005535946A (en) Modular functional blocks for field-oriented control systems
JP2011062798A (en) Robot control device and robot control method
CN101315548A (en) Devices and methods for controlling servomotor
JP5205305B2 (en) Plant control monitoring device
JP2008532130A (en) Method for subprogram translation by a controller interpreter
TWI512415B (en) Process control system
JP7151161B2 (en) Control system, support equipment, support program
JP4813823B2 (en) Test system and test method
JP2010039740A (en) Programmable controller
JP2010198272A (en) Programmable logic controller
RU169025U1 (en) ADAPTIVE SPECIAL COMPUTER
KR20160035446A (en) Control method of factory automation system, recording medium recording a program therefor and central processor of factory automation system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111202

A072 Dismissal of procedure

Free format text: JAPANESE INTERMEDIATE CODE: A073

Effective date: 20130416