JPH05297911A - Sequence control circuit for sequence controller - Google Patents

Sequence control circuit for sequence controller

Info

Publication number
JPH05297911A
JPH05297911A JP10290592A JP10290592A JPH05297911A JP H05297911 A JPH05297911 A JP H05297911A JP 10290592 A JP10290592 A JP 10290592A JP 10290592 A JP10290592 A JP 10290592A JP H05297911 A JPH05297911 A JP H05297911A
Authority
JP
Japan
Prior art keywords
sequence
program
address
control circuit
executed
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
JP10290592A
Other languages
Japanese (ja)
Inventor
弘光 ▲吉▼井
Hiromitsu Yoshii
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10290592A priority Critical patent/JPH05297911A/en
Publication of JPH05297911A publication Critical patent/JPH05297911A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To obtain the sequence control circuit which can change the physical addresses of a sequence program after compilation. CONSTITUTION:This sequence control circuit has an address pointer group 4 for identifying the storage ranges of respective programs, a program counter which indicates a program place being executed, an address comparing circuit group 5 which compares them to identify the sequence program being executed, and a register file 6 stored with a coordinate table (address conversion table) wherein plural physical addresses and actual physical addresses are made to correspond to each other.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はコンパイル後のシーケン
スプログラムの物理アドレスを変更することが可能なシ
ーケンスコントローラ用シーケンス制御回路に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence control circuit for a sequence controller capable of changing the physical address of a sequence program after compilation.

【0002】[0002]

【従来の技術】従来、シーケンスコントローラーの動作
を記述するラダー図においては、その命令の対象である
アドレスの記述方法として、実際の物理アドレスを記述
するものが一般的であった。しかしながら、この方法に
おいては、物理アドレスがプログラム記述時に決定して
いないと、プログラム記述が開始できないという欠点が
あった。更には、物理アドレスを変更する場合には、そ
のラダープログラム全体を検索して、変更しようとする
物理アドレスが記述されている全ての部分を書き直す必
要があった。この作業を軽減するために、ラダープログ
ラム上では、論理アドレスを記述し論理アドレスと物理
アドレスとを対応させる対応表を1ヵ所で記述するとい
う方法を採用し、物理アドレスから論理アドレスへの変
換はラダー図のコンパイル時に行い、コンパイルの結果
得られた実行形式のシーケンスプログラムをシーケンス
コントローラーの実行用メモリー部にロードするという
システム構造を持つシーケンスコントローラーが、近年
みうけられるようになってきた。図2は従来例における
シーケンス処理部のブロックを示すものである。図2に
おいて、1はシーケンス処理用CPU、2は実行形式シ
ーケンスプログラム格納メモリ、3はデータを格納する
データメモリであり、メモリ3の中には、入力リレーの
状態が取り込まれてデータとして入っている入力リレー
イメージ部と、シーケンス処理の結果出力リレーに書き
込まれるべきデータが格納される出力リレーイメージ部
と、内部リレーの状態をデータとして格納しておく内部
リレーデータ部に分かれている。シーケンス処理は、シ
ーケンス処理CPU1がアドレスを出力して実行形式シ
ーケンスプログラムメモリ2よりプログラムをデータと
して読み込み、その内容に基づいてデータメモリ3に対
して物理アドレスを出力してリレー状態をデータとして
読み込み、シーケンス処理をした後、データメモリ3に
リレーデータを書き込むという順番で行われる。
2. Description of the Related Art Conventionally, in a ladder diagram for describing the operation of a sequence controller, as a method of describing an address which is an object of the instruction, it is general to describe an actual physical address. However, this method has a drawback that the program description cannot be started unless the physical address is determined at the time of writing the program. Furthermore, when changing the physical address, it is necessary to search the entire ladder program and rewrite all the parts in which the physical address to be changed is described. In order to reduce this work, the method of describing the logical address and describing the correspondence table that associates the logical address with the physical address in one place on the ladder program is adopted, and the conversion from the physical address to the logical address is performed. In recent years, a sequence controller having a system structure in which a sequence program of an execution format obtained by compiling a ladder diagram and executed as a result of the compilation is loaded into an execution memory portion of the sequence controller has come to be seen. FIG. 2 shows a block of a sequence processing unit in a conventional example. In FIG. 2, reference numeral 1 is a sequence processing CPU, 2 is an execution format sequence program storage memory, 3 is a data memory for storing data, and the state of an input relay is captured in the memory 3 as data. It is divided into an input relay image section, an output relay image section in which data to be written in the output relay as a result of the sequence processing is stored, and an internal relay data section in which the state of the internal relay is stored as data. In the sequence processing, the sequence processing CPU 1 outputs an address, reads the program as data from the execution-type sequence program memory 2, outputs a physical address to the data memory 3 based on the content, and reads the relay state as data. After performing the sequence processing, the relay data is written in the data memory 3 in this order.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
シーケンスコントローラーでは、物理アドレスがコンパ
イル時に決定されてしまうために、物理アドレスを変更
する場合は、ラダー図を修正して再度コンパイルする必
要があった。本発明は、上記問題点に鑑み、コンパイル
後のシーケンスプログラムの物理アドレスを変更するシ
ーケンスコントローラー用シーケンス制御回路を提供す
ることを目的とするものである。
However, in the conventional sequence controller, since the physical address is determined at the time of compilation, it is necessary to correct the ladder diagram and compile again when changing the physical address. . In view of the above problems, it is an object of the present invention to provide a sequence control circuit for a sequence controller that changes the physical address of a compiled sequence program.

【0004】[0004]

【課題を解決するための手段】この目的を達成するため
に本発明のシーケンス制御回路は、おのおののシーケン
スプログラムの格納範囲を識別するためのアドレスポイ
ンターと、現在実行中のプログラム場所を示すプログラ
ムカウンターと、これらを比較して、現在実行中のシー
ケンスプログラムを識別するための比較回路と、複数の
論理アドレスと実際の物理アドレスとを対応させる対応
表(以下、アドレス変換デーブルという)がはいっている
レジスタファイルを有するものである。
To achieve this object, a sequence control circuit according to the present invention includes an address pointer for identifying the storage range of each sequence program and a program counter indicating the location of the program currently being executed. And a comparison circuit for comparing these to identify the sequence program currently being executed, and a correspondence table (hereinafter referred to as address conversion table) that associates a plurality of logical addresses with actual physical addresses. It has a register file.

【0005】[0005]

【作用】本発明は上記の構成により、コンパイル後のプ
ログラムの実行において、入出力リレー部及び内部リレ
ー部のアドレスをレジスタファイル内のアドレス変換テ
ーブルの働きにより、任意のアドレスに変更できる。更
には、プログラムカウンターと実行プログラムのアドレ
スが設定されたアドレスポインターとアドレス比較器の
働きによりその変更が実施される実行プログラムのアド
レス範囲が設定できる。
According to the present invention, the addresses of the input / output relay unit and the internal relay unit can be changed to arbitrary addresses by the function of the address conversion table in the register file in executing the program after compilation. Furthermore, the address range in which the program counter and the address of the execution program are set and the address range of the execution program in which the change is executed can be set by the operation of the address comparator.

【0006】[0006]

【実施例】本発明の実施例について図面を参照しながら
説明する。図1は本発明の一実施例におけるシーケンス
制御回路のシーケンス処理部のブロックを示すものであ
る。図1において、1はシーケンス処理用CPU、2は
実行形式シーケンスプログラム格納メモリ、3はデータ
を格納するデータメモリであり、メモリの中には、入力
リレーの状態が取り込まれてデータとして入っている入
力リレーイメージ部と、シーケンス処理の結果出力リレ
ーに書き込まれるべきデータが格納される出力リレーイ
メージ部と、内部リレーの状態をデータとして格納して
おく内部リレーデータ部に分かれている。4はアドレス
ポインター群であって、アドレスポインターそれぞれに
実行形式シーケンスプログラムの開始及び終了アドレス
が入っている。5はアドレス比較回路群で、比較回路そ
れぞれは各々対応しているアドレスポインターが保持し
ているアドレスとシーケンス処理CPU1のプログラム
カウンターが出力するアドレスを比較し、比較結果をレ
ジスタファイル6の選択信号として供給する。以下シー
ケンス処理が行われる内容について説明する。まず、シ
ーケンス処理の開始前に、アドレスポインター群4に、
シーケンスプログラムの各々ブロックの開始及び終了ア
ドレスをロードする。アドレスポインター群及びアドレ
ス比較回路群5に対応した選択信号によって選択される
レジスタファイル6のそれぞれのファイルに、対応する
シーケンスプログラムにおいて使用するアドレス変換テ
ーブルのデータをロードしておく。この結果、シーケン
スプログラムが実行されると、そのシーケンスプログラ
ムの実行中のアドレスに対応したアドレス変換テーブル
が自動的に選択される。このアドレス変換テーブルの中
身を書き換えることにより、物理アドレスを変更でき
る。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a block of a sequence processing section of a sequence control circuit in an embodiment of the present invention. In FIG. 1, reference numeral 1 is a sequence processing CPU, 2 is an execution-type sequence program storage memory, 3 is a data memory for storing data, and the state of an input relay is captured as data in the memory. It is divided into an input relay image part, an output relay image part in which data to be written in the output relay as a result of sequence processing is stored, and an internal relay data part in which the state of the internal relay is stored as data. An address pointer group 4 contains the start and end addresses of the executable format sequence program in each address pointer. Reference numeral 5 is an address comparison circuit group, and each comparison circuit compares the address held by the corresponding address pointer with the address output by the program counter of the sequence processing CPU 1 and uses the comparison result as a selection signal of the register file 6. Supply. The contents of the sequence processing will be described below. First, before starting the sequence processing, in the address pointer group 4,
Load the start and end addresses of each block of the sequence program. Data of the address conversion table used in the corresponding sequence program is loaded in each file of the register file 6 selected by the selection signal corresponding to the address pointer group and the address comparison circuit group 5. As a result, when the sequence program is executed, the address conversion table corresponding to the address being executed by the sequence program is automatically selected. The physical address can be changed by rewriting the contents of this address conversion table.

【0007】[0007]

【発明の効果】上記実施例から明らかなように本発明
は、おのおののプログラムの格納範囲を識別するための
アドレスポインターと、現在実行中のプログラム場所を
示すプログラムカウンターと、これらを比較して現在実
行中のシーケンスプログラムを識別するための比較回路
と、複数の論理アドレスと実際の物理アドレスを対応さ
せる対応表(アドレス変換テーブル)がはいっているレジ
スタファイルを持つことにより、コンパイル後のシーケ
ンスプログラムの物理アドレスを変更することが可能な
シーケンス制御回路を実現することができるという効果
を有する。
As is apparent from the above-described embodiments, the present invention compares the address pointer for identifying the storage range of each program with the program counter indicating the location of the program currently being executed, and compares them with each other. By having a register file that contains a comparison circuit for identifying the sequence program being executed and a correspondence table (address conversion table) that associates multiple logical addresses with actual physical addresses, The sequence control circuit capable of changing the physical address can be realized.

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

【図1】本発明の一実施例におけるシーケンス制御回路
のシーケンス処理部のブロック図である。
FIG. 1 is a block diagram of a sequence processing unit of a sequence control circuit according to an embodiment of the present invention.

【図2】従来例におけるシーケンス処理部のブロック図
である。
FIG. 2 is a block diagram of a sequence processing unit in a conventional example.

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

1…シーケンス処理CPU、 2…実行形式シーケンス
プログラム格納メモリ、3…データメモリ、 4…アド
レスポインター群、 5…アドレス比較回路群、6…レ
ジスタファイル。
1 ... Sequence processing CPU, 2 ... Execution format sequence program storage memory, 3 ... Data memory, 4 ... Address pointer group, 5 ... Address comparison circuit group, 6 ... Register file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数シーケンス処理プログラムをメモリ
上に格納して実行するシーケンス制御回路において、お
のおののプログラムの格納範囲を識別するためのアドレ
スポインターと、現在実行中のプログラム場所を示すプ
ログラムカウンターと、これらを比較して現在実行中の
シーケンスプログラムを識別するための比較回路と、複
数の論理アドレスと実際の物理アドレスを対応させる対
応表(アドレス変換テーブル)がはいっているレジスタフ
ァイルとを有するシーケンスコントローラ用シーケンス
制御回路。
1. A sequence control circuit for storing a plurality of sequence processing programs on a memory and executing the programs, an address pointer for identifying a storage range of each program, and a program counter indicating a location of a program currently being executed, Sequence controller having a comparison circuit for comparing these to identify the sequence program currently being executed, and a register file having a correspondence table (address conversion table) for associating a plurality of logical addresses with actual physical addresses Sequence control circuit.
JP10290592A 1992-04-22 1992-04-22 Sequence control circuit for sequence controller Pending JPH05297911A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10290592A JPH05297911A (en) 1992-04-22 1992-04-22 Sequence control circuit for sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10290592A JPH05297911A (en) 1992-04-22 1992-04-22 Sequence control circuit for sequence controller

Publications (1)

Publication Number Publication Date
JPH05297911A true JPH05297911A (en) 1993-11-12

Family

ID=14339882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10290592A Pending JPH05297911A (en) 1992-04-22 1992-04-22 Sequence control circuit for sequence controller

Country Status (1)

Country Link
JP (1) JPH05297911A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208202A (en) * 2002-01-11 2003-07-25 Okuma Corp Monitor device for programmable logic controller
JP2009199146A (en) * 2008-02-19 2009-09-03 Toshiba Mach Co Ltd Programmable logic controller
JP2009223736A (en) * 2008-03-18 2009-10-01 Toshiba Mach Co Ltd Programmable logic controller
DE10210675B4 (en) * 2001-03-14 2012-11-22 Omron Corp. Controls, expansion plates and communication units

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10210675B4 (en) * 2001-03-14 2012-11-22 Omron Corp. Controls, expansion plates and communication units
JP2003208202A (en) * 2002-01-11 2003-07-25 Okuma Corp Monitor device for programmable logic controller
JP2009199146A (en) * 2008-02-19 2009-09-03 Toshiba Mach Co Ltd Programmable logic controller
JP2009223736A (en) * 2008-03-18 2009-10-01 Toshiba Mach Co Ltd Programmable logic controller

Similar Documents

Publication Publication Date Title
JPH0836488A (en) Method and device for checking run-time error using dynamic patching
RU2003127063A (en) MICROPROCESSOR DIAGRAM FOR DATA CARRIER AND METHOD FOR MAKING ACCESS TO DATA LOADED IN MEMORY
CN110609705B (en) Method for improving MCU bus efficiency, intelligent terminal, storage medium and chip
JPH05297911A (en) Sequence control circuit for sequence controller
JPH10214203A (en) Information processor
US6311227B1 (en) Procedure calling method
JPH0410081B2 (en)
JPS6142301B2 (en)
JPS62254237A (en) Inter-printer type branch instruction executing system
JPS62119642A (en) Trace system
JPH01205331A (en) Large-scale program link system
JPH0553827A (en) Dynamic link optimizing system
JPH03255533A (en) Symbol managing system in programming language processing system
JPS6146531A (en) Microprocessor
JPH1027153A (en) Bus transfer device
JPS6144339B2 (en)
JPH11288371A (en) In-circuit emulator
JPH05127945A (en) Program execution situation analysis system
JPH0844570A (en) System and method for program execution
JP2000227861A (en) Method and device for debugging
JPS58217052A (en) Linking method of program
JPH0264828A (en) Address trace circuit
JPH02146625A (en) Extension system for number of registers
JPH0635694A (en) Microprogram running stoppage controller and method
JPH03282625A (en) Data processor