JPS63311506A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS63311506A
JPS63311506A JP14872087A JP14872087A JPS63311506A JP S63311506 A JPS63311506 A JP S63311506A JP 14872087 A JP14872087 A JP 14872087A JP 14872087 A JP14872087 A JP 14872087A JP S63311506 A JPS63311506 A JP S63311506A
Authority
JP
Japan
Prior art keywords
programmable controller
function
instructions
memory
program
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
JP14872087A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Toru Watanabe
徹 渡辺
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP14872087A priority Critical patent/JPS63311506A/en
Publication of JPS63311506A publication Critical patent/JPS63311506A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To effectively utilize a restricted memory capacity by providing a table showing correspondence between function instructions which a retrieval means has obtained and addresses in which the function instructions are stored, and calling the objective function instruction by means of a storage means. CONSTITUTION:In a programming equipment 2, when a radar program is generated, the used condition of the function instructions included in the radar program is checked by the table TBL2 whether they are used (1) or unused (0), and only the object of the function instruction which is used in accordance with the check of the TBL2 is read in the transfer memory among multiple function instructions stored in a floppy disk just before the program is transferred to a programmable controller 3. The object is registered in the address number, transferred to the programmable controller and stored in the memory. Thus, the programming equipment selects only the function instruction corresponding to the radar program and omits the unnecessary instructions, transfers it to the memory of the programmable controller as to the function instructions at the time of generating the radar program, whereby the memory capacity can effectively be utilized.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はNC工作機械などのシーケンス制御を行うプロ
グラマブルコントローラに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a programmable controller that performs sequence control of NC machine tools and the like.

(従来の技術) 工作機械の強電シーケンス回路のリレー制御盤の代りに
、マイクロプロセッサを用いたプログラマブルコントロ
ーラがNC工作機械に広く使用されている。
(Prior Art) A programmable controller using a microprocessor is widely used in NC machine tools in place of a relay control panel for a high-voltage sequence circuit of a machine tool.

この種のプログラマブルコントローラの命令には基本命
令と機能命令とがあり、基本命令はNC工作機械のシー
ケンス制御にて最も多く使用される命令で、例えばAN
D、ORなどの論理演算を行う命令であり、機能命令は
基本命令の論理演算の命令だけでは困難な処理を工作機
械制御に必要な機能ごとに、例えばTMR(タイマ処理
)、DEC(デコード処理)のようにサブルーチンとし
て命令を用意し、プログラミングを容易にしたものであ
る。そしてこれらの基本命令、機能命令はプログラマブ
ルコントローラの限られた容量のメモリに格納されてい
る。
Commands for this type of programmable controller include basic commands and functional commands, and basic commands are the commands most often used in sequence control of NC machine tools, such as AN
These are instructions that perform logical operations such as D and OR.Functional instructions are instructions for each function necessary for machine tool control, such as TMR (timer processing) and DEC (decoding processing), which are difficult to perform with just the logical operation instructions of basic instructions. ), instructions are prepared as subroutines to make programming easier. These basic commands and functional commands are stored in the limited capacity memory of the programmable controller.

第4図はフロッピーディスクに記憶されたプログラムを
プログラマブルコントローラに転送する経路を示す説明
図であり、図において1はフロツピーディスクでFAP
T言語によるプログラムが格納された。記憶媒体、2は
シーケンスプログラムを作成するプログラミング機器(
PCプログラマ)、3はプログラマブルコントローラで
ある。
FIG. 4 is an explanatory diagram showing the route for transferring the program stored on the floppy disk to the programmable controller. In the figure, 1 is the floppy disk and the FAP
A program written in T language was stored. 2 is a storage medium, and 2 is a programming device for creating a sequence program (
PC programmer), 3 is a programmable controller.

そして、フロッピーディスク1は、図には示されていな
いが、プログラミング機器2に付属するディスクドライ
ブ装置に装着され、該フロッピーディスク1に記憶され
ているFAPTなどの高級言語により作られたプログラ
ム(ラダープログラム)はプログラミング機器2に読取
られた後、ここでコンパイラにより機械語に翻訳され、
転送用メモリの中にラダーオブジェクトとして格納され
る。フロッピーディスク1にはあらかじめ機械語により
作られた複数の機能命令が記憶され、プログラミング機
器2からプログラマブルコントローラ3にプログラムを
転送する直前に、転送用メモリに全ての機能命令プログ
ラムがフロッピーディスク1から読出されて記憶される
。この際、プログラミング機器2内テーブルに、各機能
命令が格納されるアドレスを登録して整理する。
Although not shown in the figure, the floppy disk 1 is attached to a disk drive device attached to the programming device 2, and a program (ladder program) created in a high-level language such as FAPT is stored on the floppy disk 1. After the program (program) is read by the programming device 2, it is translated into machine language by the compiler,
Stored as a ladder object in transfer memory. A plurality of function instructions written in machine language are stored in advance on the floppy disk 1, and immediately before transferring the program from the programming device 2 to the programmable controller 3, all the function instruction programs are read from the floppy disk 1 into the transfer memory. is recorded and memorized. At this time, addresses where each functional command is stored are registered and organized in a table within the programming device 2.

プログラミング機器2の転送用メモリに記憶された機能
命令オブジェクトとラダーオブジェクトはプログラマブ
ルコントローラに転送されて、該プログラマブルコント
ローラ内のメモリに記憶される。なお、プログラマブル
コントローラ3もプログラミング機器と同様、機能命令
などはテーブルにアドレス登録されて整理される。
The functional command objects and ladder objects stored in the transfer memory of the programming device 2 are transferred to the programmable controller and stored in the memory within the programmable controller. It should be noted that in the programmable controller 3, as well as programming equipment, functional commands and the like are registered in addresses and organized in a table.

第5図はプログラマブルコントローラ3のメモリ内容を
示す説明図であり、複数の機能命令オブジェクトが、そ
れぞれアドレス1〜アドレス4・・・のようにアドレス
番号が付せられて、5UBI〜5UB4・・・として格
納されており、機能命令の処理を行うときは、機能命令
格納アドレスTBLIの内容をみて間接的に呼出されて
処理が行われる。そして、これらの格納された機能命令
はすべてが呼出されて使用されるものではなく、ラダー
プログラムに対応して使用される機能命令のみが呼出さ
れてラダープログラムに応じて処理が行われる。
FIG. 5 is an explanatory diagram showing the memory contents of the programmable controller 3, in which a plurality of functional command objects are assigned address numbers such as address 1 to address 4, . . . 5UBI to 5UB4, . When processing a function command, the function command storage address TBLI is indirectly called and processed based on the contents of the function command storage address TBLI. Not all of these stored functional commands are called and used, but only the functional commands used in accordance with the ladder program are called and processing is performed in accordance with the ladder program.

(発明が解決しようとする問題点) 上述のようにプログラマブルコントローラのメモリには
、フロッピーディスクから読出された機能命令のうち使
用されないものも含めて多数の機能命令が用意されて格
納されているため、これらに応じたメモリ容量が必要と
なり、プログラマブルコントローラの限られたメモリ容
量では本来のラダープログラムを格納すべきメモリ領域
をも圧迫するという問題が生じている。
(Problems to be Solved by the Invention) As mentioned above, a large number of functional instructions are prepared and stored in the memory of the programmable controller, including unused functional instructions read from the floppy disk. , a memory capacity corresponding to these is required, and the problem arises that the limited memory capacity of the programmable controller also squeezes the memory area where the original ladder program should be stored.

本発明は上述の問題に鑑みてなされたものであり、その
目的はプログラミング機器を別に備え、ラダーシーケン
スを作成後、プログラミング機器の転送用メモリよりプ
ログラマブルコントローラのメモリに内容が転送される
プログラマブルコントローラでは、ラダーシーケンスに
対応する必要な機能命令のみをプログラミング機器が選
択して、その転送メモリからプログラムの転送を受ける
ことにより、限られたメモリ容量を有効に活用しようと
するプログラマブルコントローラを提供するにある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to provide a programmable controller in which a programming device is separately provided, and after creating a ladder sequence, the contents are transferred from the transfer memory of the programming device to the memory of the programmable controller. To provide a programmable controller that effectively utilizes limited memory capacity by having a programming device select only necessary functional instructions corresponding to a ladder sequence and receiving the program transfer from the transfer memory. .

(問題点を解決するための手段) 本発明によれば、数値制御装置と被制御機器間のインタ
ーフェースとなり、ラダープログラム中に含まれる機能
命令を実行できるプログラマブルコントローラにおいて
、ラダープログラム中に含まれる機能命令を検索する検
索手段と、検索手段により求められた機能命令のみを記
憶する記憶手段と、検索手段により求められた機能命令
とこれが記憶されているアドレスとの対応を示すテーブ
ルと、プログラム実行待機能命令呼出しに際して前記テ
ーブルを検索して記憶手段より所望の機能命令を呼出す
手段とを備えたプログラマブルコントローラが提供され
る。
(Means for Solving the Problems) According to the present invention, in a programmable controller that serves as an interface between a numerical control device and a controlled device and can execute functional instructions included in a ladder program, functions included in the ladder program are provided. A search means for searching for instructions, a storage means for storing only the functional instructions found by the searching means, a table showing the correspondence between the functional commands found by the searching means and the addresses where they are stored, and a program execution waiter. A programmable controller is provided which includes means for searching the table and calling a desired function command from a storage means when calling a function command.

(作用) 本発明ではプログラミング機器がラダープログラムの作
成時に機能命令については該ラダープログラムに対応す
る機能命令のみを選択して不必要な機能命令を省き、プ
ログラマブルコントローラのメそすに転送し、そのメモ
リ容量を有効活用させる作用がある。
(Operation) In the present invention, when the programming device creates a ladder program, the programming device selects only the functional instructions corresponding to the ladder program, eliminates unnecessary functional instructions, and transfers them to the programmable controller. It has the effect of making effective use of memory capacity.

(実施例) つぎに本発明の実施例について図面を用いて詳細に説明
する。
(Example) Next, an example of the present invention will be described in detail using the drawings.

第1図は本発明の一実施例を示すメモリ内容の説明図で
あり、第2図は本実施例に関連する機材の系統ブロック
図、第3図はプログラマブルコントローラの概略構成図
である。
FIG. 1 is an explanatory diagram of memory contents showing one embodiment of the present invention, FIG. 2 is a system block diagram of equipment related to this embodiment, and FIG. 3 is a schematic configuration diagram of a programmable controller.

第2図において、プログラミング機器2はフロッピーデ
ィスク1を装着するディスクドライブ装置11を有し、
装着されたフロッピーディスクに格納されたプログラム
を読取って転送用メモリに格納するものであり、各種の
演算処理を行う中央処理装置、後述する機能命令やテー
ブルなどを格納する各種メモリ装置、入/出力装置など
を備えたマイクロコンピュータ構成のものである。そし
てフロッピーディスク1からのラダープログラム中に含
まれる機能命令を検索する検索手段や、この検索手段に
より求められた機能命令のみを選択して記憶する記憶手
段などを有している。なお、転送用メモリに格納された
内容はプログラマブルコントローラ3に転送されて、プ
ログラマブルコントローラ3のメモリに格納されるよう
構成されている。
In FIG. 2, the programming device 2 has a disk drive device 11 into which a floppy disk 1 is installed,
It reads the program stored on the installed floppy disk and stores it in the transfer memory, and includes a central processing unit that performs various arithmetic processing, various memory devices that store functional instructions and tables described later, and input/output. It has a microcomputer configuration with equipment etc. It also includes a search means for searching for function instructions included in the ladder program from the floppy disk 1, and a storage means for selecting and storing only the function instructions found by the search means. Note that the content stored in the transfer memory is configured to be transferred to the programmable controller 3 and stored in the memory of the programmable controller 3.

プログラマブルコントローラ3は第3図にその構成の概
要を示すように、中央処理装置(CPtJ)31.RA
M32.RMM33、プログラマインターフェース34
、入力回路35、出力回路36などを有しており、その
メモリ装置となるRAM32は、プログラミング機器2
の転送用メモリに記憶された機械語による機能命令オブ
ジェクト、ラダーオブジェクトを記憶する領域や、テー
ブルを格納する領域などを有している。
As shown in FIG. 3, the programmable controller 3 includes a central processing unit (CPtJ) 31. R.A.
M32. RMM33, programmer interface 34
, an input circuit 35, an output circuit 36, etc., and the RAM 32 serving as the memory device is the programming device 2.
It has an area for storing function command objects and ladder objects written in machine language stored in the transfer memory of , and an area for storing tables.

第1図において、TBLIは機能命令オブジェクトをア
ドレス番号にて登録するテーブルであり、TBLIのア
ドレス番号を呼出すことにより対応するオブジェクトが
間接に呼出されるものである。
In FIG. 1, TBLI is a table in which functional command objects are registered by address number, and by calling the address number of TBLI, the corresponding object is called indirectly.

TBL2は機能命令チェックのテーブルで、機能命令の
順序、すなわち5UBI、2.3・・・の順序にしたが
って管理を行うテーブルであり、ラダープログラムの作
成時にラダープログラムを検索して使用されている機能
命令の使用状況を機能命令の順序にしたがってチェック
しておくテーブルで、例えばラダープログラムを検索し
て5UB1.4.6が使用され、5UB2,3.5が不
使用の場合は、図示のように上より下方向に順序にt、
o、o、1.O,tとチェックするテーブルである。
TBL2 is a function command check table, which is managed according to the order of function commands, that is, the order of 5UBI, 2.3, etc. When creating a ladder program, search the ladder program and check the functions used. This is a table that checks the usage status of instructions according to the order of functional instructions. For example, when searching for a ladder program, if 5UB1.4.6 is used and 5UB2 and 3.5 are not used, as shown in the figure. t in order from top to bottom,
o, o, 1. This is a table to check O, t.

本実施例においてはプログラミング機器2にてラダープ
ログラムの作成時に、ラダープログラムに含まれる機能
命令の使用状況をTBL2により、使用(1)か、不使
用(0)かをチェックし、プログラマブルコントローラ
3にプログラムの転送直前にフロッピーディスクに記憶
されている多数の機能命令のうちから、TBL2のチェ
ックに従って使用する機能命令のオブジェクトのみを転
送用メモリに読込み、アドレス番号にて登録してプログ
ラマブルコントローラに転送してメモリに格納させる。
In this embodiment, when creating a ladder program in the programming device 2, the usage status of the functional command included in the ladder program is checked by the TBL 2 to see whether it is used (1) or not used (0), and the programmable controller 3 Immediately before transferring the program, from among the large number of function instruction objects stored on the floppy disk, only the object of the function instruction to be used is read into the transfer memory according to the check of TBL2, registered with an address number, and transferred to the programmable controller. and store it in memory.

その転送したメモリ内容は図示の機能命令オブジェクト
のように、アドレス1には5UBI、アドレス2には5
UB4、アドレス3には5UB6となる。また機能命令
格納アドレスTBLIは、ラダープログラムに使用する
機能命令のみにアドレス番号を登録したテーブルとされ
、不必要な機能命令はアドレス番号がないため、アドレ
ス番号により間接コールされることがない。
The transferred memory contents are 5 UBI at address 1 and 5 UBI at address 2, as shown in the functional instruction object shown in the figure.
UB4, address 3 becomes 5UB6. Further, the function instruction storage address TBLI is a table in which address numbers are registered only for function instructions used in the ladder program, and since unnecessary function instructions do not have address numbers, they are not indirectly called by address numbers.

以上本発明を一実施例によって説明したが、本発明の主
旨の範囲内で種々の変形が可能であり、これらを本発明
の範囲から排除するものではない。
Although the present invention has been described above using one embodiment, various modifications can be made within the scope of the gist of the present invention, and these are not excluded from the scope of the present invention.

(発明の効果) 本発明によれば、プログラミング機器がラダープログラ
ムの作成時に、ラダープログラムを検索して得られた機
能命令チェックテーブルを参照して、ラダープログラム
に必要な使用すべき機能命令のみを選択し不使用の機能
命令を除いて記憶した転送メモリからプログラマブルコ
ントローラに転送するので、限られた容量のメモリ領域
が有効に活用でき、本来のラダープログラムの格納領域
の圧迫から解消される効果がある。
(Effects of the Invention) According to the present invention, when creating a ladder program, the programming device refers to the function instruction check table obtained by searching the ladder program, and selects only the function instructions that are necessary for the ladder program. Since the selected and unused function commands are removed from the stored transfer memory and transferred to the programmable controller, the limited memory area can be used effectively and the original ladder program storage area is eliminated. be.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すメモリ内容の説明図、
第2図は本実施例に関連の系統ブロック図、第3図はプ
ログラマブルコントローラの概要構成図、第4図はデー
タの転送経路を示すブロック図、第5図は従来のメモリ
内容の説明図である。 1・・・フロッピーディスク、2・・・プログラミング
機器、3・・・プログラマブルコントローラ。
FIG. 1 is an explanatory diagram of memory contents showing an embodiment of the present invention;
Figure 2 is a system block diagram related to this embodiment, Figure 3 is a schematic diagram of the programmable controller, Figure 4 is a block diagram showing data transfer paths, and Figure 5 is an explanatory diagram of conventional memory contents. be. 1... Floppy disk, 2... Programming device, 3... Programmable controller.

Claims (1)

【特許請求の範囲】[Claims] 数値制御装置と被制御機器間のインターフェースとなり
、ラダープログラム中に含まれる機能命令を実行できる
プログラマブルコントローラにおいて、ラダープログラ
ム中に含まれる機能命令を検索する検索手段と、検索手
段により求められた機能命令のみを記憶する記憶手段と
、検索手段により求められた機能命令とこれが記憶され
ているアドレスとの対応を示すテーブルと、プログラム
実行時機能命令呼出しに際して前記テーブルを検索して
記憶手段より所望の機能命令を呼出す手段とを備えたこ
とを特徴とするプログラマブルコントローラ。
In a programmable controller that serves as an interface between a numerical control device and a controlled device and is capable of executing function instructions included in a ladder program, a search means for searching for function instructions included in the ladder program and a function instruction found by the search means are provided. a table that shows the correspondence between the function commands found by the search means and the addresses where they are stored; A programmable controller comprising: means for calling instructions.
JP14872087A 1987-06-15 1987-06-15 Programmable controller Pending JPS63311506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14872087A JPS63311506A (en) 1987-06-15 1987-06-15 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14872087A JPS63311506A (en) 1987-06-15 1987-06-15 Programmable controller

Publications (1)

Publication Number Publication Date
JPS63311506A true JPS63311506A (en) 1988-12-20

Family

ID=15459091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14872087A Pending JPS63311506A (en) 1987-06-15 1987-06-15 Programmable controller

Country Status (1)

Country Link
JP (1) JPS63311506A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991014977A1 (en) * 1990-03-27 1991-10-03 Fanuc Ltd System of defining symbols pmc

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991014977A1 (en) * 1990-03-27 1991-10-03 Fanuc Ltd System of defining symbols pmc

Similar Documents

Publication Publication Date Title
US4722043A (en) Control system with changable time-shared execution of ladder and non-ladder programs
EP0120194A3 (en) Control programmable by storage means with word and bit processor
JPS60229111A (en) Numerical control system
JPS63311506A (en) Programmable controller
JPH06242819A (en) Signal state control system for programmable controller
JPS62281005A (en) Programming system for programmable controller
JPS60171505A (en) Control system of machine control program for numerical control system
JPH08137513A (en) Memory management system
EP0121038A3 (en) Control programmable by storage means
JP2821743B2 (en) Numerical control unit
JPS6051955A (en) Numerical control device
JPH11259308A (en) Programmable controller
JPH07210232A (en) Numerical controller
JP2978008B2 (en) Memory management method
JPS62200945A (en) Communication control system
GB2008817A (en) Data processing system including a cache store
JPS6144339B2 (en)
JPS58115689A (en) Microcomputer system
JPH03242704A (en) Nc data generating method
JPH04195206A (en) Working program input/output device
JPS5856123B2 (en) Sequence control device
JPS6046747B2 (en) Initial program loading method
JPH0319570B2 (en)
JPH0546218A (en) Numeric value controller incorporating programmable controller
JPH03214319A (en) Information processor