JPH06149321A - Sequence program execution system - Google Patents

Sequence program execution system

Info

Publication number
JPH06149321A
JPH06149321A JP30526392A JP30526392A JPH06149321A JP H06149321 A JPH06149321 A JP H06149321A JP 30526392 A JP30526392 A JP 30526392A JP 30526392 A JP30526392 A JP 30526392A JP H06149321 A JPH06149321 A JP H06149321A
Authority
JP
Japan
Prior art keywords
data
read
instruction
sequence program
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
JP30526392A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Yasushi Onishi
靖史 大西
Kazuo Sato
和生 佐藤
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 JP30526392A priority Critical patent/JPH06149321A/en
Publication of JPH06149321A publication Critical patent/JPH06149321A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To easily read and write the specific data by the optional timing in a sequence program execution system that is carried out by a programmable controller PC. CONSTITUTION:A reading function instruction 32 is inserted to a place of the timing when the tool data are rewritten for exchange of tools. Then the instruction 32 is read, the tool data on a designated file name are read out of an IC card serving as an external storage and stored in a designated address of a RAM. Meanwhile a writing function instruction 42 is inserted to a place of the necessary timing when the debugging is desired for a specific machine and its related machine out of many machines. When the instruction 42 is read, the state of the debugging data designated in a writing address column 32c at that relevant point of time is written into the IC card from the RAM.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はPC(プログラマブル・
コントローラ)によるシーケンス・プログラムの実行方
式に関し、特に外部記憶装置を用いたシーケンス・プロ
グラムの実行方式に関する。
The present invention relates to a PC (programmable
The present invention relates to an execution method of a sequence program by a controller, and particularly to an execution method of a sequence program using an external storage device.

【0002】[0002]

【従来の技術】近年、数値制御装置に接続されるPCで
は、ICメモリカードや磁気ディスク装置等の外部記憶
装置を接続し、例えばこれらに記憶された工具データを
PC側に供給したり、あるいはデバッグ用にシーケンス
・プログラムの実行データ等を記憶して保存するように
している。
2. Description of the Related Art In recent years, in a PC connected to a numerical control device, an external storage device such as an IC memory card or a magnetic disk device is connected, and for example, tool data stored therein is supplied to the PC side, or The execution data of the sequence program is stored and saved for debugging.

【0003】[0003]

【発明が解決しようとする課題】しかし、従来のPCで
は、任意のタイミングでデータの読み書きを行うことが
できなかった。このため、工具データ等の静的なデータ
を更新するときには、運転を中断し、人が操作して新し
いデータを外部記憶装置からPCに読み込ませる必要が
あった。よって、多くの時間や手間がかかっていた。
However, the conventional PC cannot read / write data at arbitrary timing. For this reason, when updating static data such as tool data, it is necessary to interrupt the operation and have a person operate to read new data from the external storage device into the PC. Therefore, it took a lot of time and effort.

【0004】また、デバック用の実行データのように動
的なデータの保存を行う場合は、一部の信号のデバッグ
を行うときでも全体の信号データを記憶させる必要があ
った。このため、PC内部のメモリ容量を多く必要とし
ていた。
Further, in the case of dynamically storing data such as execution data for debugging, it is necessary to store the entire signal data even when debugging some signals. Therefore, a large memory capacity inside the PC is required.

【0005】一方、従来のシーケンス・プログラムの命
令によってこのような任意のタイミングでデータの記憶
を行えるようにするには、複雑なプログラムを追加する
必要があり、多くのメモリ容量を必要とする。
On the other hand, in order to be able to store data at such arbitrary timing by the instruction of the conventional sequence program, it is necessary to add a complicated program and a large memory capacity is required.

【0006】さらに、このような任意のタイミングによ
るデータの読み書きを、ホストコンピュータ等との通信
で行う手段も考えられるが、そのためには、通信に伴う
種類の操作および機器が必要となってしまう。
Further, it is conceivable that a means for reading and writing data at such an arbitrary timing by communication with a host computer or the like can be considered, but for that purpose, an operation and a device of the kind required for communication are required.

【0007】本発明はこのような点に鑑みてなされたも
のであり、特定のデータの読み書きを任意のタイミング
で容易に行うことのできるシーケンス・プログラムの実
行方式を提供することを目的とする。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a sequence program execution method capable of easily reading and writing specific data at an arbitrary timing.

【0008】[0008]

【課題を解決するための手段】本発明では上記課題を解
決するために、PC(プログラマブル・コントローラ)
によるシーケンス・プログラムの実行方式において、前
記シーケンス・プログラムに含まれ、特定データの書き
込みまたは読み込みを指令する機能命令と、前記PCに
接続され、前記特定データが格納される外部記憶手段
と、前記シーケンス・プログラムの実行中前記機能命令
を読み込むと、前記機能命令の内容に従って前記外部記
憶手段に対して前記特定データの書き込みまたは読み込
みを実行する機能命令実行手段と、を有することを特徴
とするシーケンス・プログラムの実行方式が提供され
る。
According to the present invention, in order to solve the above problems, a PC (programmable controller) is used.
In the execution method of a sequence program according to the above, a function command included in the sequence program for instructing writing or reading of specific data, an external storage unit connected to the PC for storing the specific data, and the sequence A sequence comprising: a functional instruction executing means for reading or writing the specific data to or from the external storage means according to the content of the functional instruction when the functional instruction is read during execution of the program. A program execution method is provided.

【0009】[0009]

【作用】シーケンス・プログラムの実行中、機能命令が
読み込まれると、機能命令実行手段により、機能命令の
内容に従って外部記憶手段に対して特定データの書き込
みまたは読み込みが実行される。
When the functional instruction is read during execution of the sequence program, the functional instruction executing means writes or reads the specific data in the external storage means according to the content of the functional instruction.

【0010】[0010]

【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図2は本発明を実施するためのPC(プログラ
マブル・コントローラ)のハードウェアのブロック図で
ある。CPU11はPC(プログラマブル・コントロー
ラ)10全体を制御するプロセッサである。入力回路1
2は外部からの信号を受け、信号レベルを変換してバス
に転送する。出力回路13はバス14からの出力信号を
外部へ出力する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram of hardware of a PC (programmable controller) for implementing the present invention. The CPU 11 is a processor that controls the entire PC (programmable controller) 10. Input circuit 1
2 receives a signal from the outside, converts the signal level and transfers it to the bus. The output circuit 13 outputs the output signal from the bus 14 to the outside.

【0011】ROM15には、PC10全体の動作を管
理する管理プログラム15aと、工作機械等を制御する
ためのラダー形式で作成されたシーケンス・プログラム
の一種であるラダープログラム15b等が格納されてい
る。このシーケンス・プログラムはC言語やパスカル等
の高級言語で作成される場合もある。
The ROM 15 stores a management program 15a for managing the overall operation of the PC 10 and a ladder program 15b which is a kind of sequence program created in a ladder format for controlling a machine tool or the like. This sequence program may be written in a high-level language such as C language or Pascal.

【0012】RAM16には、シーケンス・プログラム
の実行中に変化する機械からの入力データおよび出力デ
ータが格納される。また、RAM16に格納されるデー
タは、機械との間の入力データおよび出力データだけで
なく、ICカード22に対して読み書きされる工具デー
タ16aおよびデバッグデータ16bがそれぞれ任意の
タイミングで格納される。
The RAM 16 stores input data and output data from the machine that change during execution of the sequence program. The data stored in the RAM 16 is not only input data and output data to and from the machine, but also tool data 16a and debug data 16b that are read from and written to the IC card 22 at arbitrary timings.

【0013】また、バス14には、インタフェース17
を介してプログラム作成装置20が接続されている。プ
ログラム作成装置20はラダープログラム15bを作
成、またはデバッグするための機器であり、液晶の表示
装置20a、キーボード20bを有する。
Further, the bus 14 has an interface 17
The program creation device 20 is connected via the. The program creating device 20 is a device for creating or debugging the ladder program 15b, and has a liquid crystal display device 20a and a keyboard 20b.

【0014】さらに、バス14には、インタフェース1
8を介してアダプタ21が接続されている。このアダプ
タ21には、工具データ16aが格納されたICカード
22が挿入される。このICカード22から読み込まれ
た工具データ16aは、RAM16に格納される。
Further, the bus 14 has an interface 1
The adapter 21 is connected via 8. The IC card 22 storing the tool data 16a is inserted into the adapter 21. The tool data 16a read from the IC card 22 is stored in the RAM 16.

【0015】また、ICカード22には、RAM16の
デバッグデータ16bが書き込まれる。ICカード22
に書き込まれたデバッグデータ16bは、アダプタ21
に差し込まれたままインタフェース18、バス14、お
よびインタフェース17を介してプログラム作成装置2
0に送られ、表示装置20aで表示される。なお、デバ
ッグデータ16bは、アダプタを介することにより他の
パソコン等の表示装置でも表示することができる。
Further, debug data 16b in the RAM 16 is written in the IC card 22. IC card 22
The debug data 16b written in the
The program creation device 2 via the interface 18, the bus 14, and the interface 17 while being inserted into the
0 and is displayed on the display device 20a. The debug data 16b can also be displayed on another display device such as a personal computer through an adapter.

【0016】次に、本実施例のシーケンス・プログラム
の実行方式の具体的な例を示す。図1はラダープログラ
ムによる機能命令を示す図であり、(A)は読み込み指
令用の機能命令を示す図、(B)は書き込み指令用の機
能命令を示す図である。まず図1(A)では、接点(A
CT)31がオンになると、読み込み機能命令32が実
行される。
Next, a concrete example of the execution method of the sequence program of this embodiment will be shown. 1A and 1B are diagrams showing a functional instruction by a ladder program, FIG. 1A is a diagram showing a functional instruction for a read command, and FIG. 1B is a diagram showing a functional instruction for a write command. First, in FIG. 1 (A), the contact (A
When the CT) 31 is turned on, the read function instruction 32 is executed.

【0017】読み込み機能命令32は、読み込み命令を
示すMREAD欄32aと、ICカード22上の読み込
みたいファイルのファイル名を示すファイル名欄32b
と、RAM16に格納するための読み込みアドレスを示
す読み込みアドレス欄32cから構成されている。
The read function command 32 includes an MREAD column 32a indicating a read command and a file name column 32b indicating a file name of a file to be read on the IC card 22.
And a read address column 32c indicating a read address to be stored in the RAM 16.

【0018】この読み込み機能命令32は、例えば工具
交換のため工具データ16aの書き換えを行うタイミン
グの場所に挿入される。プロセッサ11は、読み込み機
能命令32を読むと、ICカード22から指定されたフ
ァイル名の工具データ16aを読み込み、RAM16の
指定されたアドレスに格納する。この操作が終了する
と、プロセッサ11はコイル33をオンにする。
The read function instruction 32 is inserted, for example, at the timing of rewriting the tool data 16a for tool replacement. When the processor 11 reads the read function instruction 32, the processor 11 reads the tool data 16a with the specified file name from the IC card 22 and stores it in the specified address of the RAM 16. When this operation ends, the processor 11 turns on the coil 33.

【0019】これにより、作業全体を中断し、オペレー
タの操作によって工具データ16aの書き換えを行う手
間と時間の無駄がなくなる。次に図1(B)では、接点
(ACT)41がオンになると、書き込み機能命令42
が実行される。
As a result, the entire work is interrupted, and the labor and time for rewriting the tool data 16a by the operation of the operator is eliminated. Next, in FIG. 1B, when the contact (ACT) 41 is turned on, the write function command 42
Is executed.

【0020】書き込み機能命令42は、書き込み命令を
示すMWRITE欄42aと、書き込みたいデータにフ
ァイル名を付すファイル名欄42bと、書き込みたいデ
ータのRAM16上の先頭アドレスとアドレスの幅を指
定する書き込みアドレス欄42cから構成されている。
The write function command 42 includes an MWRITE column 42a indicating a write command, a file name column 42b for giving a file name to data to be written, a write address for designating a start address and a width of the address on the RAM 16 of the data to be written. It is composed of a column 42c.

【0021】この書き込み機能命令42は、例えば多数
ある機械点数の内、特定の機械およびそれに関連する機
械についてのデバッグを行いたい場合等に、必要なタイ
ミングの場所に挿入される。プロセッサ11は、書き込
み機能命令42を読むと、書き込みアドレス欄42cで
指定されたデバッグデータ16bのこの時点での状態を
RAM16からICカード22に書き込む。
The write function command 42 is inserted at a necessary timing place, for example, when it is desired to debug a specific machine and a machine related to the machine among a large number of machine points. Upon reading the write function instruction 42, the processor 11 writes the state of the debug data 16b specified in the write address column 42c at this point in time from the RAM 16 to the IC card 22.

【0022】ICカード22上では、ファイル名欄42
bで指定されたファイル名とともにこのデバッグデータ
16bが格納される。この操作が終了すると、プロセッ
サ11はコイル43をオンにする。
On the IC card 22, the file name column 42
This debug data 16b is stored together with the file name designated by b. When this operation is completed, the processor 11 turns on the coil 43.

【0023】オペレータは、ICカード22に格納され
たデバッグデータ16bを、プログラム作成装置20の
表示装置20aや、他のマイコンの表示装置等によって
確認することができる。
The operator can confirm the debug data 16b stored in the IC card 22 on the display device 20a of the program creating device 20 or the display device of another microcomputer.

【0024】図3はデバッグデータ16bの表示例を示
す図である。表示装置20aの画面には、ファイル名欄
51と、データ表示欄52が表示される。ここでは、デ
バッグデータ16bのファイル名をdebugF1、先
頭のバイトアドレスをX0、バイトアドレスの幅を12
8と指定したものとする。
FIG. 3 is a diagram showing a display example of the debug data 16b. A file name column 51 and a data display column 52 are displayed on the screen of the display device 20a. Here, the file name of the debug data 16b is debugF1, the leading byte address is X0, and the byte address width is 12.
Assume that 8 is specified.

【0025】例えば、オペレータとしては、ビットアド
レスX1.1の信号53の状態を知りたいとき、それに
関係する信号54や信号55を含むバイトアドレスX0
〜X127を指定してやることにより、これらを同一画
面上で容易に確認することができる。
For example, when the operator wants to know the state of the signal 53 of the bit address X1.1, the byte address X0 including the signals 54 and 55 related to it.
By specifying ~ X127, these can be easily confirmed on the same screen.

【0026】このように、多数の機械点数の中から、オ
ペレータが確認したい信号に関連するデータのみをファ
イル別にしてICカードに書き込むことにより、メモリ
容量が削減でき、画面での確認も容易となる。
As described above, by writing only the data related to the signal that the operator wants to confirm from a large number of machine points into individual files, the memory capacity can be reduced and the confirmation on the screen can be facilitated. Become.

【0027】なお、本実施例では、外部記憶装置として
ICカードを示したが、この他にハードディスクやフロ
ッピィディスク等でも可能である。また、本実施例で
は、独立型のPCの例を示したが、数値制御装置に内蔵
型のPCであってもよい。この場合、デバッグデータの
表示は数値制御装置に一体の表示装置で行うことができ
る。
In this embodiment, the IC card is shown as the external storage device, but a hard disk, floppy disk or the like may be used. Further, in the present embodiment, an example of a stand-alone PC is shown, but a PC incorporated in the numerical controller may be used. In this case, the debug data can be displayed on the display device integrated with the numerical controller.

【0028】[0028]

【発明の効果】以上説明したように本発明では、シーケ
ンス・プログラムの実行中、機能命令が読み込まれる
と、機能命令の内容に従って外部記憶手段に対して特定
データの書き込みまたは読み込みを実行するようにした
ので、シーケンス・プログラムの希望する場所に機能命
令を挿入するだけで、特定データの読み込みまたは書き
込みを任意のタイミングで容易に行うことができる。
As described above, according to the present invention, when a functional instruction is read during execution of a sequence program, writing or reading of specific data to / from external storage means is executed according to the content of the functional instruction. Therefore, it is possible to easily read or write the specific data at an arbitrary timing only by inserting the functional instruction at a desired position in the sequence program.

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

【図1】ラダープログラムによる機能命令を示す図であ
り、(A)は読み込み指令用の機能命令を示す図、
(B)は書き込み指令用の機能命令を示す図である。
FIG. 1 is a diagram showing a functional instruction by a ladder program, FIG. 1A is a diagram showing a functional instruction for a read command,
(B) is a diagram showing a functional command for a write command.

【図2】本発明を実施するためのPC(プログラマブル
・コントローラ)のハードウェアのブロック図である。
FIG. 2 is a block diagram of hardware of a PC (programmable controller) for implementing the present invention.

【図3】デバッグデータの表示例を示す図である。FIG. 3 is a diagram showing a display example of debug data.

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

10 PC(プログラマブル・コントローラ) 11 プロセッサ(CPU) 12 入力回路 13 出力回路 14 バス 15 ROM 15b ラダープログラム 16 RAM 16a 工具データ 16b デバッグデータ 20 プログラム作成装置 22 ICカード 32 読み込み機能命令 42 書き込み機能命令 10 PC (Programmable Controller) 11 Processor (CPU) 12 Input Circuit 13 Output Circuit 14 Bus 15 ROM 15b Ladder Program 16 RAM 16a Tool Data 16b Debug Data 20 Program Creation Device 22 IC Card 32 Read Function Command 42 Write Function Command

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 PC(プログラマブル・コントローラ)
によるシーケンス・プログラムの実行方式において、 前記シーケンス・プログラムに含まれ、特定データの書
き込みまたは読み込みを指令する機能命令と、 前記PCに接続され、前記特定データが格納される外部
記憶手段と、 前記シーケンス・プログラムの実行中前記機能命令を読
み込むと、前記機能命令の内容に従って前記外部記憶手
段に対して前記特定データの書き込みまたは読み込みを
実行する機能命令実行手段と、 を有することを特徴とするシーケンス・プログラムの実
行方式。
1. A PC (programmable controller)
In the execution method of the sequence program according to the above, a function command included in the sequence program for instructing writing or reading of specific data; an external storage unit connected to the PC for storing the specific data; A sequence comprising: a functional instruction executing unit that, when the functional instruction is read during execution of a program, writes or reads the specific data to or from the external storage unit according to the content of the functional instruction. Program execution method.
【請求項2】 前記外部記憶手段は、ICカードである
ことを特徴とする請求項1記載のシーケンス・プログラ
ムの実行方式。
2. The sequence program execution method according to claim 1, wherein the external storage means is an IC card.
JP30526392A 1992-11-16 1992-11-16 Sequence program execution system Pending JPH06149321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30526392A JPH06149321A (en) 1992-11-16 1992-11-16 Sequence program execution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30526392A JPH06149321A (en) 1992-11-16 1992-11-16 Sequence program execution system

Publications (1)

Publication Number Publication Date
JPH06149321A true JPH06149321A (en) 1994-05-27

Family

ID=17943000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30526392A Pending JPH06149321A (en) 1992-11-16 1992-11-16 Sequence program execution system

Country Status (1)

Country Link
JP (1) JPH06149321A (en)

Similar Documents

Publication Publication Date Title
JP3024422B2 (en) Programmable controller and method of operating programmable controller
JPH08179817A (en) Display manipulator for machine tool
US5995987A (en) Programming method and programming unit for programmable controller in which only common names for application instructions need be designated by the programmer
JPH06149321A (en) Sequence program execution system
JP3476391B2 (en) Programmable display device
JP2002268711A (en) Programmable display unit and plotting program for the same and recording medium with its plotting program recorded
JPH03158184A (en) Sewing machine operated according to control program
JPH0620185Y2 (en) Small electronic devices
JP2701089B2 (en) Information transfer method
JPH07129079A (en) Method for installing programming loader
JPH01191269A (en) Image controller
JPH1078812A (en) Method for transferring data and device for controlling data transfer
JPH01175048A (en) Computer
JPH06110506A (en) Comment storage method for programmable controller
JPH0261897A (en) Prom writer
JPS6348698A (en) Memory storage control device
JPH02236730A (en) Program rewritable type computer
JPS63177205A (en) Programming device for programmable controller
JP2001175309A (en) Memory cassette and programmable controller using the memory cassette
JPS62210572A (en) Documentation device
JPH05289998A (en) Handy type computer
JPH0628182A (en) Information processor
JPH0772918A (en) Numerical controller
JPH0261899A (en) Prom writer
JPH05134717A (en) Programing device for programable controller