JPS62284403A - Preparing method for cross reference data - Google Patents

Preparing method for cross reference data

Info

Publication number
JPS62284403A
JPS62284403A JP12847086A JP12847086A JPS62284403A JP S62284403 A JPS62284403 A JP S62284403A JP 12847086 A JP12847086 A JP 12847086A JP 12847086 A JP12847086 A JP 12847086A JP S62284403 A JPS62284403 A JP S62284403A
Authority
JP
Japan
Prior art keywords
address
addresses
sequence program
printed
page
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
JP12847086A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Hirosuke Chiba
千葉 弘介
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 JP12847086A priority Critical patent/JPS62284403A/en
Publication of JPS62284403A publication Critical patent/JPS62284403A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To rapidly prepare cross reference data with low cost by successively assigning step numbers to instruction codes for a sequence program to specify the using positions of addresses and finding out all the number of printing lines printed on one page. CONSTITUTION:The step numbers are successively assigned to respective instruction codes for the sequence programs SQP to specify the using positions of the addresses and addresses (X0, 2, X1, 2...) to be used for the SQP are found out and arranged in the descending order. Then, the numbers Ni (i=1, 21...) of times of using respectively addresses and all addresses ANi to be printed out on one page are successively found out to form a search address table SAT and a cross set pointer table CSP for storing the printing start lines PRi of respective addresses and the number Mi of times used up to the current point of time is simultaneously formed. Then, addresses or symbols are stored in respective PRi position of a print buffer PBM, the instruction codes of respective addresses printed out in one page are found out by scanning the SQP and the step numbers are successively stored in the PBM and printed out by referring the CSP.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〈産業上の利用分野〉 本発明はクロスリファレンスデータ作成方法にかかり、
特にラダー図上のリレー接点やリレーコイルのオン/オ
フを特定する論理値を記憶するアドレスがシーケンスプ
ログラムのどこで使用されているかを示すクロスリファ
レンスデータの作成方法に関する。
[Detailed Description of the Invention] 3. Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a method for creating cross-reference data,
In particular, the present invention relates to a method of creating cross-reference data indicating where in a sequence program an address for storing a logical value specifying on/off status of a relay contact or a relay coil on a ladder diagram is used.

〈従来技術〉 数値制御システムにおいてはNC装置1fiかラノ指令
に基づいて工作機械の各機械要素が制御される。そして
、NC装置側と工作機械間の信号の授受制御は、NC装
置側に設けられたプログラマブル・マシーン・コントロ
ーラ(PMC装置)がシーケンスプログラムに基づいて
実行する。
<Prior Art> In a numerical control system, each mechanical element of a machine tool is controlled based on an NC device 1fi or a run command. Controlling the transmission and reception of signals between the NC device and the machine tool is executed by a programmable machine controller (PMC device) provided on the NC device based on a sequence program.

このシーケンスプログラムはNC装置側と工作機械間の
データ授受を司どる強電回路の機能を命令コードとオペ
ランドで論理的にプログラムしたもので、たとえば第5
図に示す強電回路の一部であるラダー図は第6図に示す
ように二一モニツクコードでプログラムされている。尚
、ラダー図中0はリレーコイル、薯はメークリレー接点
、矛はブレークリレー接点を示している。又、シーケン
スプログラム中におけるRD、OR,AND。
This sequence program is a logical program of the functions of the high-power circuit that controls data exchange between the NC device side and the machine tool using instruction codes and operands.
The ladder diagram, which is part of the high-voltage circuit shown in the figure, is programmed with the 21 Monik code as shown in FIG. In the ladder diagram, 0 indicates the relay coil, the yoke indicates the make relay contact, and the halberd indicates the break relay contact. Also, RD, OR, AND in the sequence program.

WRT、AND−NOT、0R−NOT・・・はそれぞ
れ命令コードで、 RDは読出し命令(リード命令)、 ANDは論理積演算命令、 WRTは書き込み命令(ライト命令)、ORは論理和演
算命令、 AND −NOTは否定値との論理積演算命令、OR−
NOTは否定値との論理和演算命令である。
WRT, AND-NOT, 0R-NOT... are each instruction codes, RD is a read instruction (read instruction), AND is an AND operation instruction, WRT is a write instruction (write instruction), OR is an OR operation instruction, AND -NOT is a logical product operation instruction with a negative value, OR-
NOT is an OR operation instruction with a negative value.

又、リレー接点及び−リレーコイルの上に標記した英数
字MF、M28.  ・・AUT、MO3,・・・はシ
ンボル(リレー名称)であり、そのオン/オフを特建す
る論理値(”1”または”O”)は各リレー接点及びリ
レーコイルの下に標記したワークメモリのアドレスに記
憶される。尚、アドレスは小数点付きの数値により表わ
され、ワークメモリの所定番地(小数点以上の数値)、
所定ビット(小数点以下の数値)を示している。
Also, the alphanumeric characters MF, M28. marked above the relay contacts and relay coil. ... AUT, MO3, ... are symbols (relay names), and the logical values ("1" or "O") that specify their on/off are the workpieces marked under each relay contact and relay coil. stored at an address in memory. Note that the address is represented by a number with a decimal point, and the specified location in the work memory (number above the decimal point),
Indicates a predetermined bit (number below the decimal point).

シーケンスプログラムはプログラミングの際、シンボル
(リレー名称)9!オペランドとする命令コードで作成
されるが、該シンボルは最終的にはシンボルとアドレス
との対応テーブル(第7図参照)を用いてアドレスに変
換される。
When programming the sequence program, use the symbol (relay name) 9! Although the symbol is created using an instruction code as an operand, the symbol is finally converted into an address using a symbol-address correspondence table (see FIG. 7).

第6図に示すシーケンスプログラムのPRA部分の命令
群により ・M2R・M14・M12・Mll の論理演算が実行され、その演算結果(”1″または”
On)がライト命令WELTに伴われたオペランドMQ
3に対応するワークメモリの所定番地の所定ピッ1−(
10番地第2ビツト)に格納され、又PRB部分の命令
群により AUT−MO3・5PCCW の演算が実行され、その演算結果がライト命令WRTに
伴われたオペランド5PCWが指示するワークメモリの
所定番地の所定ビット(20番地第5ビツト)に格納さ
れる。
The logical operations M2R, M14, M12, and Mll are executed by the instruction group of the PRA part of the sequence program shown in Figure 6, and the operation result ("1" or "
On) is the operand MQ accompanying the write command WELT.
3 at a predetermined location in the work memory corresponding to 1-(
AUT-MO3/5PCCW is executed by the instruction group in the PRB part, and the result of the operation is stored at the specified address in the work memory specified by operand 5PCW accompanying the write instruction WRT. It is stored in a predetermined bit (5th bit at address 20).

〈発明が解決しようとしている問題点〉さて、シーケン
スプログラムが作成されると、該シーケンスプログラム
を用いてラダー図を印刷出力し、該ラダー図を用いてデ
パックを行い、課外が存在すれば訂正して最終的に完全
なシーケンスプログラムを作成する。
<Problem to be solved by the invention> Now, when a sequence program is created, a ladder diagram is printed out using the sequence program, depacked using the ladder diagram, and if there is an extracurricular error, it is corrected. Finally, create a complete sequence program.

又、運転中に障害が発生すればラダー図を用いて障害調
査、保守作業を行う。
Additionally, if a problem occurs during operation, the ladder diagram is used to investigate the problem and perform maintenance work.

ところで、同一のシンボル(アドレス)は1箇所だけで
なく、覆々の場所で用いられものである。
By the way, the same symbol (address) is used not only in one place but in many places.

しかし、出力されるラダー図は第5図に示すようにリレ
ー接点及びリレーコイル記号と、シンボルと、記憶位[
(アドレス)のみ有するものである。
However, as shown in Figure 5, the output ladder diagram includes relay contact and relay coil symbols, symbols, and memory locations [
(address) only.

このため、デバッグ時にあるシンボル(アドレス)を全
て削除した9、あるいは別のシンボル(アドレス)で全
て訂正したい場合、該シンボル(アドレス)を容易に捜
すことができずデパック作業が面倒となり、同種に障害
調査、保守作業も面倒となり相当の時間を要している。
Therefore, if you delete all symbols (addresses) during debugging, or if you want to correct them all with another symbol (address), you cannot easily search for the symbols (addresses), making depacking troublesome, and Trouble investigation and maintenance work are also troublesome and require a considerable amount of time.

特に、何十頁にもおよぶラダー図では全員にわたって所
定のシンボル(アドレス)を捜さなくてはならないため
益々上記欠点が顕著になる。
In particular, in a ladder diagram that spans dozens of pages, the above-mentioned drawbacks become more and more noticeable because it is necessary to search for a predetermined symbol (address) across all the pages.

このため、各シンボル(アドレス)がシーケンスプログ
ラムのどこで使用されているかを示すクロスリファレン
スデータを作成して出力する機能が必要になる。
Therefore, a function is required to create and output cross-reference data indicating where each symbol (address) is used in the sequence program.

このクロスリファレンスデータはワークRAMの容量を
大きくすれば比較的短時間で作成されるが、クロスリフ
ァレンスデータの作成のみに大容量のワークRAMが必
要になってコストアップの原因となって好ましくない。
This cross-reference data can be created in a relatively short time by increasing the capacity of the work RAM, but this is not preferable because a large-capacity work RAM is required just to create the cross-reference data, which increases costs.

又、ワークRAMの容量を小にするとクロスリファレン
スデータの作成に相当の処理時間を要し実用上問題があ
る。
Furthermore, if the capacity of the work RAM is made small, it will take a considerable amount of processing time to create cross-reference data, which poses a practical problem.

以上から本発明の目的は、各命令のオペランドであるシ
ンボル(アドレス)がシーケンスプログラム上のどこで
用いられているかを示すクロスリファレンスデータを小
容量のワークRAMを用いて高速に生成することができ
るクロスリファレンスデータ作成方法を提供することで
ある。
From the above, an object of the present invention is to create a cross reference data that can quickly generate cross reference data indicating where in a sequence program a symbol (address) which is an operand of each instruction is used using a small work RAM. The objective is to provide a method for creating reference data.

く問題点を解決するための手段〉 第1図は本発明のクロスリファレンスデータ作成方法の
概略説明図である。
Means for Solving the Problems> FIG. 1 is a schematic explanatory diagram of the cross-reference data creation method of the present invention.

SQPはシーケンスプログラム、 SATは1頁に印刷出力される全アドレス名A N i
  (i = 1 、 2 、  ・・・)と該アドレ
スのシーケンスプログラムにおける使用回数Ni  (
i=1.2.・・・)の対応を示すサーチアドレステー
ブル、 PBMは1頁分のクロスリファレンスデータを記憶する
プリントバッファメモリ、 CS P l!クロスリファレンスデータをプリントバ
ッファにセットする位置を指示するクロスセットポイン
タテーブルで−ある。尚、クロスセットポインタテーブ
ルC3Pは1頁に印刷される各アドレスに対応して、そ
の印刷開始行PRi(i=1゜2、・・)と現在迄の使
用回数Mi  (i=1.2゜・・・)を記憶している
SQP is a sequence program, SAT is all address names printed on one page A N i
(i = 1, 2, ...) and the number of times the address is used in the sequence program Ni (
i=1.2. ), PBM is a print buffer memory that stores one page's worth of cross-reference data, and CS P l! This is a cross set pointer table that indicates the position where cross reference data is set in the print buffer. In addition, the cross-set pointer table C3P shows the printing start line PRi (i=1°2, . . . ) and the number of times of use to date Mi (i=1.2°) corresponding to each address printed on one page. ...) is remembered.

く作用〉 シーケンスプログラムSQPの各命令コードに先頭から
順次ステップ番号を付し、該ステップ番号でアドレスの
使用位置を指示するものとする。
Function> It is assumed that a step number is sequentially attached to each instruction code of the sequence program SQP from the beginning, and the step number indicates the address usage position.

シーケンスプログラムSQPで用いられているアドレス
(Xo、2.Xi、2.−1 を求めろと共に該アドレ
スを若い順に並べる。
Find the addresses (Xo, 2.Xi, 2.-1) used in the sequence program SQP and arrange the addresses in descending order.

ついで、順次アドレスがシーケンスプログラムで使、用
されている回数を求めると共に、1頁に印刷できる行数
と、1行に印刷できるステップ番号の個数と、前記アド
レスの使用回数とを用いて、1頁に印刷される全アドレ
ス名を求めてサーチアドレステーブルSATを作成し、
同時に各アドレスの印刷開始行PRiを求めてクロスセ
ットポインタテーブルC3Pを作成する。
Next, find the number of times the sequential address is used in the sequence program, and use the number of lines that can be printed on one page, the number of step numbers that can be printed on one line, and the number of times the address is used. Create a search address table SAT to find all address names printed on the page,
At the same time, the print start line PRi of each address is determined and a cross set pointer table C3P is created.

しかる後、プリントバッファPBMの前記各印刷開始行
位置に該当アドレス名やシンボルを記憶すると共に、シ
ーケンスプログラムをスキャンして前記1頁に印刷され
る各アドレスをオペランドとする命令コードを求め、そ
のステ・ツブ番号をクロスセットポインタテーブルC3
Pを参照してプリントバッファPBMにおけるステップ
番号記憶位置に順次記憶し、シーケンスプログラムのス
キャン完了後プリントバッファの内容を印刷し、以後次
の頁について同様の処理を行う。
Thereafter, the corresponding address name and symbol are stored in each print start line position of the print buffer PBM, and the sequence program is scanned to obtain an instruction code using each address to be printed on the first page as an operand, and the step is executed.・Cross set pointer table C3 for the knob number
P is referenced and sequentially stored in the step number storage location in the print buffer PBM, and after the sequence program scan is completed, the contents of the print buffer are printed, and the same process is performed for the next page thereafter.

〈実施例〉 第2図はシーケンスプログラム作成装置のブロック図、
第3図は本発明の処理の流れ図、第4図はクロスリファ
レンスデータ印刷出力例である。
<Example> Figure 2 is a block diagram of a sequence program creation device.
FIG. 3 is a flowchart of the process of the present invention, and FIG. 4 is an example of printout of cross reference data.

第2図において、11はマイコン構成の本体部であり、
プロセッサ11 a、ROMI 1 b、RAM 11
 c 、ワーキングメモリlidを有している。
In FIG. 2, numeral 11 is a main body section having a microcomputer configuration;
Processor 11a, ROMI 1b, RAM 11
c, has working memory lid.

12はプリンタ、13はディスプレイ装置、14はキー
ボード、15はフロッピーディスク装置、15m、15
bはフロッピーディスクである。
12 is a printer, 13 is a display device, 14 is a keyboard, 15 is a floppy disk device, 15m, 15
b is a floppy disk.

本体部11のROM11bにはローディングプログラム
が記憶されている。そして、シーケンスプログラム作成
に先立って、該ローディングプログラムの制御により所
定のフロッピーディスクからシーケンスプログラム作成
用のシステムプログラムを読み取ってRAM11cに記
憶する。
A loading program is stored in the ROM 11b of the main body 11. Prior to creating a sequence program, a system program for creating a sequence program is read from a predetermined floppy disk under the control of the loading program and stored in the RAM 11c.

この結果、以後プロセッサllaは該システムプログラ
ムの制御に基づいて処理を実行し、処理結果や各種イン
ストラクシ貸ンをディスプレイ装置13に表示すると共
に、キーボード14から入力されたデータ、コマンド等
に基づいて所定の処理を実行し、シーケンスプログラム
を作成して)四ツピーディスク等の媒体に出力する。
As a result, the processor lla thereafter executes processing based on the control of the system program, displays processing results and various instructions on the display device 13, and also displays data, commands, etc. input from the keyboard 14. Executes predetermined processing, creates a sequence program, and outputs it to a medium such as a 4P disk.

又、プロセッサllaは作成したシーケンスプログラム
を用いてラダー図やクロスリファレンスデータを作成し
てプリンタ12より印刷出力する。
Further, the processor lla creates a ladder diagram and cross reference data using the created sequence program, and prints them out from the printer 12.

以下、クロスリファレンスデータ作成処理を第1図乃至
第4図を参照して説明する。
The cross-reference data creation process will be explained below with reference to FIGS. 1 to 4.

尚、シーケンスプログラムSQP (第1図参照)を構
成する各命令コードのオペランド(アドレス)は1個の
アルファベット(たとえばX、R)付きの小数点数字で
表現されているものとし、アルファベットXは機械側か
ら出力された信号であることを示し、Rは内部ワークリ
レー領域に記憶されろ信号であることを示す。又、使用
されるアルファベットはヘッドキャラクタテーブルに登
録されているものとし、更にシーケンスプログラムSQ
Pの各命令コードに先頭から順次ステップ番号を付し、
該ステップ番号でアドレスの使用位置を指示するものと
する。
It is assumed that the operands (addresses) of each instruction code that make up the sequence program SQP (see Figure 1) are expressed by a decimal point digit with one alphabet (for example, X, R), and the alphabet X is expressed on the machine side. R indicates a signal output from the internal work relay area, and R indicates a signal to be stored in the internal work relay area. In addition, it is assumed that the alphabet to be used is registered in the head character table, and that the sequence program SQ
Assign a step number to each instruction code of P sequentially from the beginning,
The step number indicates the location where the address is used.

(1)ヘッドキャラクタテーブルから1つのアルファベ
ットを読み取る。たと九ば、アルファベットXを読み取
る。
(1) Read one alphabet from the head character table. To read the alphabet X.

(2)ついで、該ヘッドキャラクタを有する全アドレス
をシーケンスプログラムSQP (第1回診[)からサ
ーチする。
(2) Next, all addresses having the head character are searched from the sequence program SQP (first examination [).

(3)サーチが完了すれば、該アドレスを若い番号順に
並び替えると共にアドレス数CNTを求める。
(3) When the search is completed, the addresses are sorted in descending numerical order and the number of addresses CNT is determined.

(4)1頁に印刷可能な最大アドレス数をnとすれば、
CNT≧nかどうかをチェックする。
(4) If the maximum number of addresses that can be printed on one page is n, then
Check whether CNT≧n.

(5) CN T < nであれ−ばヘッドキャラクタ
テーブルに別のアルファベット(たとえばR)が存在す
るかどうかをチェックし、存在すればステップ(1)以
降の処理を繰り返す。
(5) If CNT < n, check whether another alphabet (for example, R) exists in the head character table, and if so, repeat the process from step (1).

(6)ステップ(4)においてCNT≧nであれば、あ
るいはステップ(5)において別のアルファベットが存
在しなければ、ステップ(3)における並び順にアドレ
スがシーケンスプログラムSQPで使用されている回数
N1を求めると共に、1頁に印刷できる行数Rと、1行
に印刷できるステップ番号の個数Nと、前記アドレスの
使用回数Niとを用いて、1頁に印刷される全アドレス
名を求めてサーチアドレステーブル5AT(第1図参照
)を作成し、同時に各アドレスの印刷開始行PRiを求
めてクロスセットポインタテーブルcsp (第1図)
を作成する。
(6) If CNT≧n in step (4), or if another alphabet does not exist in step (5), calculate N1 the number of times the address is used in the sequence program SQP in the order of arrangement in step (3). At the same time, by using the number R of lines that can be printed on one page, the number N of step numbers that can be printed on one line, and the number of times Ni of the address is used, all address names to be printed on one page are found and the search address is calculated. Create table 5AT (see Figure 1), and at the same time find the print start line PRi of each address, cross set pointer table csp (Figure 1)
Create.

尚、1つのアドレスについては、アドレス名やシンボル
等を印刷するために1行、空白行を設けるために1行そ
れぞれ必要となるため総計、次式%式% ] が1つのアドレスのクロスリファレンスデータの印刷に
必要になる。ただし、上式中[]1N□は切り上げ整数
である。
In addition, for one address, one line is required to print the address name and symbol, etc., and one line is required to provide a blank line, so the total, the following formula % formula % ] is the cross reference data of one address required for printing. However, in the above formula, []1N□ is an integer rounded up.

従って、1頁に印刷される第1番目の印刷開始行をPR
iとすれば、(i + 1 )番目のアドレスの印刷開
始行PR(i+1)は次式 %式% となる。又、m番目のアドレスについて次式R≦ΣR1 1n/ が満足されれば、(m−1)番目迄のアドレスが1頁に
印刷可能となる。
Therefore, the first print start line printed on page 1 is PR
If i, then the printing start line PR(i+1) at the (i+1)th address is expressed by the following formula. Further, if the following formula R≦ΣR1 1n/ is satisfied for the m-th address, addresses up to the (m-1)th address can be printed on one page.

(7)シかる後、[CNT−(m−1)コ→CNTとす
ると共に、プリントバッファPBMの前記各印刷開始行
位置PRi  (i=1.2.−−  (m−1))に
該当アドレス名やシンボルを記憶し、ついでシーケンス
プログラムSQPをスキャンする。
(7) After printing, set [CNT-(m-1)→CNT and correspond to each print start line position PRi (i=1.2.-- (m-1)) of the print buffer PBM. The address name and symbol are memorized, and then the sequence program SQP is scanned.

(8)シーケンスプログラムよりアドレスが識別される
毎に該アドレスがサーチアドレステーブルSATのアド
レスかどうかを判別する。
(8) Every time an address is identified by the sequence program, it is determined whether the address is an address in the search address table SAT.

(9)サーチアドレステーブルSATのアドレスであれ
ば、クロスセットポインタテーブルC3Pに記憶されて
いる該アドレスの現在名の使用回数Miを次式 %式% により更新すると共に、該使用回数Miと1行に印刷可
能なステップ数Nとアドレスの印刷開始行PRiを用い
て印刷位置を求め、該印刷位置に応じたプリントバッフ
ァPBMの記憶位置に該アドレスをオペランドとする命
令コードのステップ番号を記憶する。
(9) If the address is in the search address table SAT, update the number of uses Mi of the current name of the address stored in the cross-set pointer table C3P using the following formula % formula %, and add the number of uses Mi and one line. The print position is determined using the number of printable steps N and the print start line PRi of the address, and the step number of the instruction code whose operand is the address is stored in the storage position of the print buffer PBM corresponding to the print position.

すなわち、第(P Ri + [M i / N] 、
、□)行、第[M i / N] F1番目の位置にス
テップ番号を記憶する。ただし、[]8は除算における
余りである。
That is, the (P Ri + [M i / N],
, □), the step number is stored in the [M i / N] F1-th position. However, []8 is the remainder in the division.

(圃ついで、シーケンスプログラムのスキャンが終了し
たかどうかをチェックし、終了していなければステップ
(8)以降の処理を繰り返す。
(After the field, check whether the scanning of the sequence program has finished. If it has not finished, repeat the process from step (8) onwards.

(11)シーケンスプログラムのスキャンが終了してい
れば、プリントバッファPBMの内容(1頁分のクロス
リファレンスデータ)を印刷する(第4図参照)。
(11) If the scanning of the sequence program is completed, print the contents of the print buffer PBM (one page worth of cross reference data) (see FIG. 4).

(12しかる後、全クロスリファレンスデータの印刷出
力が終了したかどうかをチヱツクし、終了していなけれ
ばサーチアドレステーブルSAT〜クロスセットポイン
タテーブルC3P、プリントバッファPBMの内容をク
リアしてステップ(4)以降の処理を繰り返してクロス
リファレンスデータの印刷出力を行う。
(12) After that, check whether printing of all cross reference data has been completed, and if not, clear the contents of search address table SAT to cross set pointer table C3P and print buffer PBM, and proceed to step (4). The following process is repeated to print out the cross reference data.

〈発明の効果〉 以上本発明によれば、各命令のオペランドであるアドレ
ス(シンボル)がシーケンスプログラム上のどこで用い
られているかを示すクロスリファレンスデータを小容量
のワークRAMを用いて高速に生成し、印刷出力するこ
とができる。
<Effects of the Invention> According to the present invention, cross-reference data indicating where in a sequence program an address (symbol) that is an operand of each instruction is used can be generated at high speed using a small-capacity work RAM. , can be printed out.

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

第1図は本発明のクロスリファレンスデータ作成方法の
概略説明図、 第2図はシーケンスプログラム作成装置のブロック図、 第3図は本発明の処理の流れ図、 第4図は本発明にか−かるクロスリファレンスデータ出
力例、 第5図乃至第7図はシーケンスプログラム説明図である
。 SQP・・シーケンスプログラム、 SAT・・サーチアドレステーブル、 PBM・・プリントバッファメモリ1 csp6.クロスセットポインタテーブル特許出願人 
       ファナック株式会社代理人      
    弁理士  齋藤千幹第2図 第7図
Fig. 1 is a schematic explanatory diagram of the cross-reference data creation method of the present invention, Fig. 2 is a block diagram of the sequence program creation device, Fig. 3 is a flowchart of the processing of the invention, and Fig. 4 is a diagram according to the invention. Examples of Cross Reference Data Output FIGS. 5 to 7 are sequence program explanatory diagrams. SQP...Sequence program, SAT...Search address table, PBM...Print buffer memory 1 csp6. Cross set pointer table patent applicant
Agent for FANUC Co., Ltd.
Patent Attorney Chiki Saito Figure 2 Figure 7

Claims (1)

【特許請求の範囲】 ラダー図上のリレー接点やリレーコイルのオン/オフを
特定する論理値を記憶するアドレスをオペランドとする
命令コードで作成してなるシーケンスプログラムにおけ
る前記アドレスが該シーケンスプログラムのどこで使用
されているかを示すクロスリファレンスデータを作成す
るクロスリファレンスデータ作成方法において、 シーケンスプログラムの各命令コードに先頭から順次ス
テップ番号を付し、該ステップ番号でアドレスの使用位
置を特定するものとし、 アドレス順に該アドレスがオペランドとして使用されて
いる回数を求めると共に、1頁に印刷できる行数と、1
行に印刷できるステップ番号の個数と、前記アドレスの
使用回数とを用いて、1頁に印刷される全アドレス名と
その印刷開始行を求め、 プリントバッファの前記各印刷開始行位置にアドレス名
を記憶すると共に、シーケンスプログラムをスキャンし
て前記1頁に印刷される各アドレスをオペランドとする
命令コードを求め、そのステップ番号を該アドレスのプ
リントバッファにおけるステップ番号記憶位置に順次記
憶し、 シーケンスプログラムのスキャン完了後プリントバッフ
ァの内容を印刷すると共に、次の頁について同様の処理
を行うことを特徴とするクロスリファレンスデータ作成
方法。
[Claims] In a sequence program created using an instruction code whose operand is an address that stores a logical value that specifies ON/OFF of a relay contact or relay coil on a ladder diagram, where in the sequence program is the address specified? In the cross-reference data creation method that creates cross-reference data indicating whether the address is used, a step number is sequentially assigned to each instruction code of the sequence program from the beginning, and the position where the address is used is specified by the step number. In order, find the number of times the address is used as an operand, and also calculate the number of lines that can be printed on one page and 1
Using the number of step numbers that can be printed in a line and the number of times the address is used, find all the address names to be printed on one page and their print start line, and write the address name to each print start line position in the print buffer. At the same time, scan the sequence program to obtain an instruction code that uses each address printed on the first page as an operand, sequentially store the step number in the step number storage position in the print buffer of the address, and read the sequence program. A cross-reference data creation method characterized by printing the contents of a print buffer after scanning is completed, and performing similar processing for the next page.
JP12847086A 1986-06-03 1986-06-03 Preparing method for cross reference data Pending JPS62284403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12847086A JPS62284403A (en) 1986-06-03 1986-06-03 Preparing method for cross reference data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12847086A JPS62284403A (en) 1986-06-03 1986-06-03 Preparing method for cross reference data

Publications (1)

Publication Number Publication Date
JPS62284403A true JPS62284403A (en) 1987-12-10

Family

ID=14985524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12847086A Pending JPS62284403A (en) 1986-06-03 1986-06-03 Preparing method for cross reference data

Country Status (1)

Country Link
JP (1) JPS62284403A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0433003A (en) * 1990-05-25 1992-02-04 Nissan Motor Co Ltd Method for preparing cross reference in sequence program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0433003A (en) * 1990-05-25 1992-02-04 Nissan Motor Co Ltd Method for preparing cross reference in sequence program
JP2611494B2 (en) * 1990-05-25 1997-05-21 日産自動車株式会社 Creating a cross reference in a sequence program

Similar Documents

Publication Publication Date Title
US4648028A (en) Color enhanced display for a numerical control system
US4152765A (en) Programmer unit for N/C systems
JPS5846384A (en) Method of indicating ideographic symbol and similar graphic
GB2122387A (en) Programmable controller
US4994957A (en) System for simultaneously displaying all ladder diagram segments in which an operator designated relay appears as an input or output
US4571670A (en) NC Programming Apparatus
KR890002435B1 (en) A numerical control method
US5126956A (en) Method and apparatus for displaying segments of a ladder diagram which turn on an operator specified relay
US4924403A (en) Numerical control method and system therefor having override playback function
JPS62284403A (en) Preparing method for cross reference data
EP0097444A2 (en) Ladder diagram display method
JPH0766286B2 (en) Processing method of NC device
EP0148948A1 (en) Method of setting date in numerical control apparatus
EP0092312B1 (en) Method and apparatus for displaying ladder diagrams
JPS58109905A (en) Robot controlling system
US5323308A (en) Programmable control system
JPS62279405A (en) Cross reference data preparing method
EP0089194B1 (en) Method and apparatus for displaying ladder diagrams
US5257181A (en) Programmable control system
JPS6042086A (en) Printer
JPS62154102A (en) Program writer
JPH0488406A (en) Automatic operation system of numerical controller
JPH04242804A (en) Numerical controller
JPS62157907A (en) Forming method for ladder graphic
JPS642180Y2 (en)