JP2000035809A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2000035809A
JP2000035809A JP10205007A JP20500798A JP2000035809A JP 2000035809 A JP2000035809 A JP 2000035809A JP 10205007 A JP10205007 A JP 10205007A JP 20500798 A JP20500798 A JP 20500798A JP 2000035809 A JP2000035809 A JP 2000035809A
Authority
JP
Japan
Prior art keywords
block
blocks
storage area
block information
information
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
JP10205007A
Other languages
Japanese (ja)
Inventor
Hirobumi Yamada
博文 山田
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP10205007A priority Critical patent/JP2000035809A/en
Publication of JP2000035809A publication Critical patent/JP2000035809A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To efficiently use a storage area by providing a block setting means for storing block information in the other part of the block storage area. SOLUTION: Plural 'blocks' generated in a block generation device 1 are sent to a block setting means 2. The block setting means 2 sequentially stores the 'blocks' from the head address of a storage area in a block/block information storage means 5 and inversely stores information in the respective 'blocks' from the last address of the storage area of the block/block information storage means 5 to the head address. The block setting means 2 stores a block 'B101' in the head address of the storage area of the block/block information storage means 5 and inversely stores block information 'I101' from the last address to the head address, for example. At last, the 'block' and 'block information' are stored in the block/block information storage means 5 until an area 'E101' becomes '0'.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、構造化プログラミ
ングに対応したプログラマブル・コントローラに関し、
特に記憶領域を効率よく使用することが可能なプログラ
マブル・コントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller for structured programming,
In particular, the present invention relates to a programmable controller that can efficiently use a storage area.

【0002】[0002]

【従来の技術】従来の構造化プログラミングに対応した
プログラマブル・コントローラは1つのプログラムを機
能毎に複数の単位である”ブロック”に分割してその機
能毎に階層構造化して実行するものである。
2. Description of the Related Art In a conventional programmable controller corresponding to structured programming, one program is divided into a plurality of "blocks" for each function, and each program is hierarchically structured and executed.

【0003】図2はこのような従来のプログラマブル・
コントローラの一例を示す構成ブロック図である。図2
において1はコンピュータ等のブロック作成装置、2は
ブロック設定手段、3はブロック格納手段、4はブロッ
ク情報格納手段である。また、2〜4はプログラマブル
・コントローラ50を構成している。
FIG. 2 shows such a conventional programmable device.
FIG. 3 is a configuration block diagram illustrating an example of a controller. FIG.
In the figure, 1 is a block creation device such as a computer, 2 is a block setting unit, 3 is a block storage unit, and 4 is a block information storage unit. 2 to 4 constitute the programmable controller 50.

【0004】ブロック作成装置1の出力である”ブロッ
ク”はブロック設定手段2に接続され、ブロック設定手
段2の出力はブロック格納手段3及びブロック情報格納
手段4に接続される。
[0004] The "block" output from the block creation device 1 is connected to the block setting means 2, and the output of the block setting means 2 is connected to the block storage means 3 and the block information storage means 4.

【0005】ここで、図2に示す従来例の動作を説明す
る。ブロック作成装置1で作成された複数の”ブロッ
ク”はブロック設定手段2に送られ、ブロック設定手段
2は送られてきた”ブロック”をブロック格納手段3に
格納すると共に各”ブロック”の情報をブロック情報格
納手段4に格納する。
Here, the operation of the conventional example shown in FIG. 2 will be described. The plurality of "blocks" created by the block creation device 1 are sent to the block setting means 2, and the block setting means 2 stores the sent "blocks" in the block storage means 3 and stores the information of each "block". It is stored in the block information storage means 4.

【0006】例えば、ブロック設定手段2は図2中”B
001”に示す”ブロック”をブロック格納手段3に格
納すると共に、図2中”B001”に示す”ブロック”
から”ブロック”のファイル名、”ブロック”のサイ
ズ、”ブロック”の作成日時をブロック情報として抽出
し、さらに、この”ブロック”が格納されているブロッ
ク格納手段3の先頭アドレス等を含めてブロック情報と
して図2中”I001”に示すようにブロック情報格納
手段4に格納する。
[0006] For example, the block setting means 2 uses "B" in FIG.
"001" is stored in the block storage means 3 and the "block" shown in "B001" in FIG.
, The file name of the “block”, the size of the “block”, and the date and time of creation of the “block” are extracted as block information. The information is stored in the block information storage means 4 as indicated by "I001" in FIG.

【0007】同様に、ブロック設定手段2は図2中”B
002”に示す”ブロック”をブロック格納手段3に格
納すると共に、図2中”I002”に示すブロック情報
をブロック情報格納手段4に格納する。
[0007] Similarly, the block setting means 2 uses "B" in FIG.
“002” is stored in the block storage means 3 and the block information shown as “I002” in FIG.

【0008】そして、プログラマブル・コントローラ5
0が格納された”ブロック”を”ブロック情報”に基づ
き読み出して実行することにより各種制御等を行うこと
が可能になる。
Then, the programmable controller 5
By reading and executing “block” storing “0” based on “block information”, various controls can be performed.

【0009】このように構造化プログラミングにより、
1つのプログラムを機能毎に”ブロック”に分割するこ
とにより、プログラムの構造が整理されるためプログラ
ムの作成時間やデバック時間が短縮されると言った効果
がある。また、各機能毎に複数の人間が作成及びデバッ
グすることが可能になるので分業化が容易となる。
As described above, by the structured programming,
Dividing one program into “blocks” for each function has the effect of reducing the program creation time and debug time because the program structure is organized. In addition, since a plurality of persons can create and debug each function, division of labor is facilitated.

【0010】[0010]

【発明が解決しようとする課題】しかし、図2に示す従
来例ではブロック格納手段3及びブロック情報格納手段
4では個々に一定の記憶領域を確保しているので、どち
らか一方の記憶領域が一杯になると他方の記憶領域に余
裕があっても”ブロック”を格納することはできないと
言った問題点があった。
However, in the conventional example shown in FIG. 2, since the block storage means 3 and the block information storage means 4 each secure a fixed storage area, one of the storage areas is full. Then, there is a problem that "block" cannot be stored even if the other storage area has room.

【0011】例えば、図2中”E001”に示すブロッ
ク格納手段3の空き領域に余裕があっても図2中”E0
02”に示すブロック情報格納手段4の空き領域が”
0”であればブロック設定手段2は”ブロック”をブロ
ック格納手段3に格納することができなくなってしま
う。
For example, even if there is room in the free space of the block storage means 3 indicated by "E001" in FIG.
02 "of the block information storage means 4 is"
If it is "0", the block setting means 2 cannot store the "block" in the block storage means 3.

【0012】逆に、図2中”E001”に示すブロック
格納手段3の空き領域が”0”であれば図2中”E00
2”に示すブロック情報格納手段4の空き領域に余裕が
あってもブロック設定手段2は”ブロック”をブロック
格納手段3に格納することができなくなってしまう。
Conversely, if the free area of the block storage means 3 indicated by "E001" in FIG. 2 is "0", "E00" in FIG.
2 ", the block setting means 2 cannot store the" block "in the block storage means 3 even if there is room in the free space of the block information storage means 4 shown in FIG.

【0013】すなわち、全ブロックの容量は小さいもの
の分割されたブロック数がブロック情報格納手段4の最
大格納ブロック数を越えてブロック情報格納手段4が一
杯になってしまうプログラムや、分割されたブロック数
は小さいものの全ブロックの容量が大きくブロック格納
手段3が一杯になってしまうプログラムはプログラマブ
ル・コントローラ50に格納できないと言った課題があ
った。従って本発明が解決しようとする課題は、記憶領
域を効率よく使用することが可能なプログラマブル・コ
ントローラを実現することにある。
That is, a program in which the number of divided blocks exceeds the maximum number of storage blocks of the block information storage means 4 but the block information storage means 4 becomes full, although the capacity of all blocks is small, However, there is a problem that a program that is small but has a large capacity of all blocks and the block storage means 3 becomes full cannot be stored in the programmable controller 50. Therefore, an object of the present invention is to realize a programmable controller that can efficiently use a storage area.

【0014】[0014]

【課題を解決するための手段】このような課題を達成す
るために、本発明のうち請求項1記載の発明は、構造化
プログラミングに対応したプログラマブル・コントロー
ラにおいて、1つのプログラムを機能毎に分割した複数
のブロック及びこれら複数のブロックにそれぞれ関連す
る各種情報である複数のブロック情報が格納される記憶
領域が一体化されたブロック/ブロック情報格納手段
と、外部のブロック生成手段から入力される前記複数の
ブロックを前記記憶領域の一部に格納すると共に前記複
数のブロックからそれぞれ前記複数のブロック情報を得
て前記記憶領域の他の部分に格納するブロック設定手段
とを備えたことにより、記憶領域を効率よく使用するこ
とが可能になる。
In order to achieve the above object, according to a first aspect of the present invention, in a programmable controller corresponding to structured programming, one program is divided for each function. A block / block information storage unit in which a storage area for storing a plurality of blocks and a plurality of block information, which are various types of information respectively related to the plurality of blocks, are integrated; Block setting means for storing a plurality of blocks in a part of the storage area, obtaining the plurality of block information from the plurality of blocks, and storing the information in another part of the storage area, Can be used efficiently.

【0015】請求項2記載の発明は、請求項1記載の発
明であるプログラマブル・コントローラにおいて、前記
ブロック設定手段が、前記複数のブロックを前記記憶領
域の先頭アドレスから順次格納し、前記複数のブロック
情報を前記記憶領域の最後のアドレスから先頭アドレス
に遡って順次格納することにより、記憶領域を効率よく
使用することが可能になる。
According to a second aspect of the present invention, in the programmable controller according to the first aspect, the block setting means stores the plurality of blocks sequentially from a start address of the storage area, and By storing information sequentially from the last address of the storage area to the start address, the storage area can be used efficiently.

【0016】請求項3記載の発明は、請求項1記載の発
明であるプログラマブル・コントローラにおいて、前記
ブロック設定手段が、前記複数のブロック情報を前記記
憶領域の先頭アドレスから順次格納し、前記複数のブロ
ックを前記記憶領域の最後のアドレスから先頭アドレス
に遡って順次格納することにより、記憶領域を効率よく
使用することが可能になる。
According to a third aspect of the present invention, in the programmable controller according to the first aspect, the block setting means stores the plurality of block information sequentially from a head address of the storage area, and By storing blocks sequentially from the last address of the storage area to the start address, the storage area can be used efficiently.

【0017】[0017]

【発明の実施の形態】以下本発明を図面を用いて詳細に
説明する。図1は本発明に係るプログラマブル・コント
ローラの一実施例を示す構成ブロック図である。図1に
おいて1及び2は図2と同一符号を付してあり、5はブ
ロック/ブロック情報格納手段である。また、2及び5
はプログラムマブル・コントローラ51を構成してい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIG. 1 is a configuration block diagram showing an embodiment of a programmable controller according to the present invention. 1, reference numerals 1 and 2 denote the same parts as in FIG. 2, and reference numeral 5 denotes a block / block information storage unit. Also, 2 and 5
Constitutes the programmable controller 51.

【0018】ブロック作成装置1の出力である”ブロッ
ク”はブロック設定手段2に接続され、ブロック設定手
段2の出力はブロック/ブロック情報格納手段5に接続
される。
The "block" output from the block creation device 1 is connected to the block setting means 2, and the output of the block setting means 2 is connected to the block / block information storage means 5.

【0019】ここで、図1に示す実施例の動作を説明す
る。ブロック作成装置1で作成された複数の”ブロッ
ク”はブロック設定手段2に送られ、ブロック設定手段
2は送られてきた”ブロック”をブロック/ブロック情
報格納手段5の記憶領域の先頭のアドレスから順次格納
すると共に各”ブロック”の情報をブロック/ブロック
情報格納手段5の記憶領域の最後のアドレスから先頭ア
ドレスに遡って格納する。
Here, the operation of the embodiment shown in FIG. 1 will be described. The plurality of “blocks” created by the block creation device 1 are sent to the block setting means 2, and the block setting means 2 converts the sent “blocks” from the head address of the storage area of the block / block information storage means 5. The information is sequentially stored and the information of each "block" is stored from the last address of the storage area of the block / block information storage means 5 back to the first address.

【0020】例えば、ブロック設定手段2は図1中”B
101”に示す”ブロック”をブロック/ブロック情報
格納手段5の記憶領域の先頭アドレスに格納すると共
に、図1中”I101”に示すブロック情報をブロック
/ブロック情報格納手段5に最後のアドレスから先頭ア
ドレスに遡って格納する。
For example, the block setting means 2 shown in FIG.
The "block" indicated by reference numeral 101 "is stored at the start address of the storage area of the block / block information storage means 5, and the block information indicated by" I101 "in FIG. Store back to the address.

【0021】同様に、ブロック設定手段2は図1中”B
102”に示す”ブロック”を図1中”B101”の次
のアドレスからブロック/ブロック情報格納手段5に順
次格納すると共に、図1中”I102”に示すブロック
情報を図1中”I101”の次のアドレスから先頭アド
レスに遡ってブロック/ブロック情報格納手段5に順次
格納する。
Similarly, the block setting means 2 sets "B" in FIG.
The "block" indicated by "102" is sequentially stored in the block / block information storage means 5 from the address next to "B101" in FIG. 1, and the block information indicated by "I102" in FIG. The data is sequentially stored in the block / block information storage unit 5 from the next address to the head address.

【0022】そして、最終的には図1中”E101”に
示す空き領域が”0”になるまで”ブロック”及び”ブ
ロック情報”をブロック/ブロック情報格納手段5に格
納することが可能になる。
Finally, "block" and "block information" can be stored in the block / block information storage means 5 until the empty area indicated by "E101" in FIG. 1 finally becomes "0". .

【0023】すなわち、”ブロック”及び”ブロック情
報”の記憶領域を個々に分けずに一体化して記録領域の
両端から”ブロック”と”ブロック情報”を順次格納し
て行くので記憶領域を効率よく使用することができる。
That is, the storage areas of "blocks" and "block information" are integrated without being individually divided, and "blocks" and "block information" are sequentially stored from both ends of the recording area. Can be used.

【0024】このため、従来例で問題となっていた、全
ブロックの容量は小さいものの分割されたブロック数が
最大格納ブロック数を越えてしまうプログラムの場合に
は、ブロック/ブロック情報格納手段5の記憶領域の
内”ブロック情報”が格納される領域がを大きく取るこ
とができるので、プログラマブル・コントローラ51へ
の格納が可能になる。
Therefore, in the case of a program in which the capacity of all blocks is small but the number of divided blocks exceeds the maximum number of storage blocks, which is a problem in the conventional example, the block / block information storage means 5 Since the area in which the “block information” is stored in the storage area can be made large, the storage in the programmable controller 51 becomes possible.

【0025】また、分割されたブロック数は小さいもの
の全ブロックの容量が大きいプログラムの場合には、ブ
ロック/ブロック情報格納手段5の記憶領域の内”ブロ
ック”が格納される領域を大きく取ることができるの
で、プログラマブル・コントローラ51への格納が可能
になる。
In the case of a program in which the number of divided blocks is small but the capacity of all blocks is large, it is necessary to increase the area where the "block" is stored in the storage area of the block / block information storage means 5. Therefore, the data can be stored in the programmable controller 51.

【0026】この結果、”ブロック”及び”ブロック情
報”の双方を格納するブロック/ブロック情報格納手段
5を設けると共にブロック/ブロック情報格納手段5の
記録領域の両端から”ブロック”と”ブロック情報”を
順次格納して行くことにより、記憶領域を効率よく使用
することが可能になる。
As a result, the block / block information storage means 5 for storing both "block" and "block information" is provided, and "block" and "block information" are stored from both ends of the recording area of the block / block information storage means 5. Are sequentially stored, the storage area can be used efficiently.

【0027】なお、図1に示す実施例では”ブロック”
をブロック/ブロック情報格納手段5の記憶領域の先頭
アドレスから格納し、”ブロック情報”をブロック/ブ
ロック情報格納手段5の記憶領域の最後のアドレスから
先頭アドレスに遡って格納しているがその逆であっても
構わない。
In the embodiment shown in FIG. 1, "block"
Is stored from the head address of the storage area of the block / block information storage means 5, and "block information" is stored from the last address of the storage area of the block / block information storage means 5 back to the head address. It does not matter.

【0028】[0028]

【発明の効果】以上説明したことから明らかなように、
本発明によれば次のような効果がある。請求項1乃至請
求項3の発明によれば、ブロック及びブロック情報の双
方を格納するブロック/ブロック情報格納手段を設ける
と共にブロック/ブロック情報格納手段の記録領域の両
端からブロックとブロック情報を順次格納して行くこと
により、記憶領域を効率よく使用することが可能なプロ
グラマブル・コントローラが実現できる。
As is apparent from the above description,
According to the present invention, the following effects can be obtained. According to the first to third aspects of the present invention, a block / block information storage unit for storing both blocks and block information is provided, and blocks and block information are sequentially stored from both ends of a recording area of the block / block information storage unit. By doing so, a programmable controller that can use the storage area efficiently can be realized.

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

【図1】本発明に係るプログラマブル・コントローラの
一実施例を示す構成ブロック図である。
FIG. 1 is a configuration block diagram showing one embodiment of a programmable controller according to the present invention.

【図2】従来のプログラマブル・コントローラの一例を
示す構成ブロック図である。
FIG. 2 is a configuration block diagram showing an example of a conventional programmable controller.

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

1 ブロック作成装置 2 ブロック設定手段 3 ブロック格納手段 4 ブロック情報格納手段 5 ブロック/ブロック情報格納手段 50,51 プログラマブル・コントローラ DESCRIPTION OF SYMBOLS 1 Block creation apparatus 2 Block setting means 3 Block storage means 4 Block information storage means 5 Block / block information storage means 50, 51 Programmable controller

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】構造化プログラミングに対応したプログラ
マブル・コントローラにおいて、 1つのプログラムを機能毎に分割した複数のブロック及
びこれら複数のブロックにそれぞれ関連する各種情報で
ある複数のブロック情報が格納される記憶領域が一体化
されたブロック/ブロック情報格納手段と、 外部のブロック生成手段から入力される前記複数のブロ
ックを前記記憶領域の一部に格納すると共に前記複数の
ブロックからそれぞれ前記複数のブロック情報を得て前
記記憶領域の他の部分に格納するブロック設定手段とを
備えたことを特徴とするプログラマブル・コントロー
ラ。
1. A programmable controller compatible with structured programming, comprising: a plurality of blocks obtained by dividing one program for each function; and a plurality of block information, which is various information associated with each of the plurality of blocks. A block / block information storage unit having an integrated area; storing the plurality of blocks input from an external block generation unit in a part of the storage area; and storing the plurality of block information from the plurality of blocks. And a block setting means for storing the data in another part of the storage area.
【請求項2】前記ブロック設定手段が、 前記複数のブロックを前記記憶領域の先頭アドレスから
順次格納し、前記複数のブロック情報を前記記憶領域の
最後のアドレスから先頭アドレスに遡って順次格納する
ことを特徴とする請求項1記載のプログラマブル・コン
トローラ。
2. The method according to claim 1, wherein the block setting means stores the plurality of blocks sequentially from a start address of the storage area, and stores the plurality of block information sequentially from a last address of the storage area to a start address. The programmable controller according to claim 1, wherein:
【請求項3】前記ブロック設定手段が、 前記複数のブロック情報を前記記憶領域の先頭アドレス
から順次格納し、前記複数のブロックを前記記憶領域の
最後のアドレスから先頭アドレスに遡って順次格納する
ことを特徴とする請求項1記載のプログラマブル・コン
トローラ。
3. The block setting means stores the plurality of block information sequentially from a start address of the storage area, and sequentially stores the plurality of blocks from a last address of the storage area to a start address. The programmable controller according to claim 1, wherein:
JP10205007A 1998-07-21 1998-07-21 Programmable controller Pending JP2000035809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10205007A JP2000035809A (en) 1998-07-21 1998-07-21 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10205007A JP2000035809A (en) 1998-07-21 1998-07-21 Programmable controller

Publications (1)

Publication Number Publication Date
JP2000035809A true JP2000035809A (en) 2000-02-02

Family

ID=16499916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10205007A Pending JP2000035809A (en) 1998-07-21 1998-07-21 Programmable controller

Country Status (1)

Country Link
JP (1) JP2000035809A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011135961A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Integrated control device and integrated control method
US9363936B2 (en) 2010-04-29 2016-06-07 Fuji Machine Mfg. Co., Ltd. Manufacture work machine and manufacture work system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011135961A1 (en) * 2010-04-29 2011-11-03 富士機械製造株式会社 Integrated control device and integrated control method
US9363936B2 (en) 2010-04-29 2016-06-07 Fuji Machine Mfg. Co., Ltd. Manufacture work machine and manufacture work system
US9374935B2 (en) 2010-04-29 2016-06-21 Fuji Machine Mfg. Co., Ltd. Manufacture work machine
US9485895B2 (en) 2010-04-29 2016-11-01 Fuji Machine Mfg. Co., Ltd. Central control device and centralized control method
US10098269B2 (en) 2010-04-29 2018-10-09 Fuji Machine Mfg. Co., Ltd. Manufacture work machine for controlling a plurality of work-element performing apparatuses by central control device

Similar Documents

Publication Publication Date Title
JP2000035809A (en) Programmable controller
JP2720768B2 (en) Program customization equipment
JP4362777B2 (en) Programming device, symbol automatic registration method, program, and recording medium
JPH06274328A (en) Execution method for program consisting of plural processing modules
JPH06309159A (en) Program automatic generator
JPH0338739A (en) Automatic reorganization executing system
JPH0659871A (en) Software development device
JPH01106217A (en) Parallel storage/reading type data processor
JPH11327734A (en) Reconstitution system for window at time of executing application
JPH01286053A (en) Data control system over plural types of computers
JPS6359091A (en) Memory allocating information output system for telephone exchange system with accumulated program control system
JPH02273828A (en) Internal sorting system
JPS61177532A (en) Area control system
JPH08194685A (en) Node information retrieving device for finite element method
JPH02231630A (en) Control system for software system constitution
JPH03100741A (en) Data file access processing system
JP2002333903A (en) Editing operation and data storing method in ladder programming editor
JP2001317968A (en) Measured-data processing system
JPH01217515A (en) File controller
JPH06250710A (en) Multilingual controller
JPH0438527A (en) Method for loading system program
JPS63311440A (en) Predicate type knowledge control system
JPS638838A (en) Logic verifying system
JPH0244440A (en) System spare volume generating system
JPH04138575A (en) Device for repreparing finite element data