JPH01152506A - Editing system for ladder program - Google Patents

Editing system for ladder program

Info

Publication number
JPH01152506A
JPH01152506A JP31248287A JP31248287A JPH01152506A JP H01152506 A JPH01152506 A JP H01152506A JP 31248287 A JP31248287 A JP 31248287A JP 31248287 A JP31248287 A JP 31248287A JP H01152506 A JPH01152506 A JP H01152506A
Authority
JP
Japan
Prior art keywords
address
symbol
signal
ladder 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
JP31248287A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Kimio Maeda
前田 紀美夫
Yoshiharu Saiki
嘉春 斎木
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 JP31248287A priority Critical patent/JPH01152506A/en
Priority to PCT/JP1988/001097 priority patent/WO1989005481A1/en
Publication of JPH01152506A publication Critical patent/JPH01152506A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To practice the substitution of a signal address without errors by substituting the address corresponding to a symbol name by giving priority to the symbol for the signal to give the symbol. CONSTITUTION:In a ladder program, 1 and 2 are the logical contacts of a relay, and 3 and 4 are logical coils. A symbol is given to each point, the symbol of a contact 1 is an STO, the symbol of a contact 2 is an SPO, the symbol of a coil 3 is ST and the symbol of coil 4 is SP. 5 is the address of a signal before substituting, and 6 is the address of a new signal after substituting. The signal to give the symbol STO is the address X0.1 before changing, and in a new program after changing it is X0.5. To substitute the address of the signal like this, by assigning the new address to the symbol STO, the substitution of the address is practiced. Thus, the address of the signal can be substituted without errors.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はラダープログラムの編集方式に関し、特に信号
のアドレスを容易に変換するようにしたラダープログラ
ムの編集方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a ladder program editing method, and more particularly to a ladder program editing method that allows easy conversion of signal addresses.

〔従来の技術〕[Conventional technology]

PC(プログラマブル・コントローラ)では制御する工
作機械の細部の仕様が変更されると制御プログラムであ
るラダープログラムも変更する必要がある。しかし、実
際には多くの信号の機能はそのままで、信号のアドレス
を変更する場合が多い。このような場合、プログラマ(
プログラム作成者)は信号のアドレスを1個1個変換す
る必要があった。
In a PC (programmable controller), if the detailed specifications of the machine tool to be controlled are changed, the ladder program, which is the control program, must also be changed. However, in reality, the functions of many signals remain the same, but the addresses of the signals are often changed. In such cases, the programmer (
The program creator had to convert the signal addresses one by one.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、このようなラダープログラムの変換は非常に単
調な仕事で、単なる数値の変換であるので、相当の時間
を要し、誤りが発生する確率も高い。
However, converting such a ladder program is a very monotonous task, and since it is simply a conversion of numerical values, it takes a considerable amount of time, and there is a high probability that errors will occur.

本発明の目的は上記問題点を解決し、信号のアドレスを
容易に変換するようにしたラダープログラムの編集方式
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a ladder program editing method that allows easy conversion of signal addresses.

〔問題点を解決するための手段〕[Means for solving problems]

本発明では上記の問題点を解決するために、ラダープロ
グラムの信号のアドレスを変換するラダープログラムの
編集方式において、該シンボルが付されている信号は該
シンボルを優先して、 シンボル名に対応するアドレスを置換することにより、
前記信号のアドレスを置換することを特徴とするラダー
プログラムの編集方式が、提供される。
In the present invention, in order to solve the above problems, in a ladder program editing method that converts the address of a signal in a ladder program, signals to which the symbol is attached are given priority and correspond to the symbol name. By replacing the address,
A ladder program editing method is provided, which is characterized in that the address of the signal is replaced.

〔作用〕[Effect]

信号に付されているシンボルを使用して、シンボルをも
とに新しいアドレスを指定する。この結果、単なる数値
の変換でなく、シンボルを指標としてアドレスの置換が
できる。
Use the symbol attached to the signal to specify a new address based on the symbol. As a result, instead of simply converting numbers, addresses can be replaced using symbols as indexes.

〔実施例〕〔Example〕

以下本発明の一実施例を図面に基づいて説明する。 An embodiment of the present invention will be described below based on the drawings.

第1図に本発明の一実施例のラダープログラムの例を示
す。図において、1及び2はリレーの論理上の接点であ
り、3及び4は論理上のコイルである。各接点には、シ
ンボルが付されており、接点1のシンボルは5TO1接
点2のシンボルは5PO1コイル3のシンボルはST、
コイル4のシンボルはspである。
FIG. 1 shows an example of a ladder program according to an embodiment of the present invention. In the figure, 1 and 2 are the logical contacts of the relay, and 3 and 4 are the logical coils. Each contact has a symbol, the symbol for contact 1 is 5TO, the symbol for contact 2 is 5PO, the symbol for coil 3 is ST,
The symbol of coil 4 is sp.

第2図にアドレスの置換を説明するための図を示す。図
において、5は置換前の各信号のアドレスであり、6は
置換後の新しい信号のアドレスである。工作機械では一
般に細部の仕様の変更により、このような信号のアドレ
スを変更したラダープログラムの作成を必要とする場合
が多い。図のように、シンボルSTOの付された信号は
変更前はアドレス’XO,IJであるが、変更後の新し
いプログラムでは、’X0.5Jである。他の信号も同
様である。
FIG. 2 shows a diagram for explaining address replacement. In the figure, 5 is the address of each signal before replacement, and 6 is the address of the new signal after replacement. In machine tools, it is often necessary to create a ladder program in which the addresses of such signals are changed due to changes in detailed specifications. As shown in the figure, the signal with the symbol STO has addresses 'XO, IJ before the change, but in the new program after the change, it has the address 'X0.5J. The same applies to other signals.

このような、信号のアドレスを置換するのに、シンボル
STOに対して、新しいアドレスを指定して、アドレス
の置換を行う。具体的には、変換の量が少ないときは、
プログラム編集装置の画面で、この新しいアドレスの指
定を行う、また、置換する信号の量が多いときは、別個
にシンボルとアドレスの対応データをフロッピーディス
クに格納して、これを変換するようにする。
To replace the address of such a signal, a new address is specified for the symbol STO and the address is replaced. Specifically, when the amount of conversion is small,
Specify this new address on the screen of the program editing device. Also, if there is a large amount of signals to be replaced, store the corresponding symbol and address data separately on a floppy disk and convert it. .

アドレスを置換後はこれを、オブジェクトプログラムに
コンパイルして、実際の制御プログラムとして使用する
After replacing the addresses, this is compiled into an object program and used as an actual control program.

第3図に本発明のを実施するためpc(プログラマブル
・コントローラ)の構成図を示す。図において、11は
PC(プログラマブル・コントローラ)全体を制御する
プロセッサである。12は入力回路であり、外部からの
信号を受け、信号レベルを変換してバ、スに転送する。
FIG. 3 shows a configuration diagram of a PC (programmable controller) for implementing the present invention. In the figure, 11 is a processor that controls the entire PC (programmable controller). An input circuit 12 receives a signal from the outside, converts the signal level, and transfers it to the bus.

13は出力回路であり、内部の出力信号を外部へ出力す
る。20はROMであり、その内部にはラダープログラ
ム(制御プログラム)の実行を管理する管理プログラム
21と工作機械等を制御するためのラダープログラム2
2等が格納されている。
13 is an output circuit, which outputs an internal output signal to the outside. 20 is a ROM, which contains a management program 21 for managing the execution of ladder programs (control programs) and a ladder program 2 for controlling machine tools, etc.
2nd prize is stored.

30はRAMであり、各種のデータが格納されており、
各信号のシンボルとアドレスデータも格納される。
30 is a RAM, in which various data are stored;
Symbols and address data for each signal are also stored.

41はプログラム編集装置用インターフェイスであり、
バスとプログラム編集装置を接続するためのインターフ
ェイス回路である。42はプログラム編集装置であり、
ラダープログラム22を作成、デイバッグするための機
器であり、42aは表示画面であり、42bはキーボー
ドである。アドレスを変更すべき信号が少ないときは、
この表示画面42aとキーボード42bで変更すること
ができる。
41 is an interface for a program editing device;
This is an interface circuit for connecting a bus and a program editing device. 42 is a program editing device;
It is a device for creating and debugging the ladder program 22, and 42a is a display screen and 42b is a keyboard. When there are few signals whose addresses should be changed,
It can be changed using this display screen 42a and keyboard 42b.

上記の説明では、アドレスの置換はPC(プログラマブ
ル・コントローラ)に接続されたプログラム編集装置で
行うことで述べたが、PCとは別個のオフラインのプロ
グラム作成装置を使用して行うこともできる。
In the above description, address replacement is performed using a program editing device connected to a PC (programmable controller), but it can also be performed using an offline program creation device separate from the PC.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、信号のアドレスをシン
ボルをもとに置換するようしたので、信号のアドレスの
置換を誤りなく、簡単に行うことができる。
As explained above, in the present invention, the address of a signal is replaced based on the symbol, so that the address of a signal can be easily replaced without error.

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

第1図は本発明の一実施例のラダープログラムの例を示
す図、 第2図はアドレスの置換を説明するための図、第3図は
本発明のを実施するためPC(プログラマブル・コント
ローラ)の構成図である。 1.2−−−−−−・−・−接点 3.4−・・−・−・コイル 5−−−−−−・・・−−−−−・変更前のシンボルと
アドレスを示す図 6−・・−・・・−・−変更後のシンボルとアドレスを
示す図 11−・・・・・−−−−−・・・プロセッサ12−・
−・−・・−・・−入力回路 13−・・・−−−−−−一・−出力回路20・・・−
・−・・−−−−−、R0M21−・・−・−・−・・
−管理プログラム22−−−−−・・・・−−−−−・
ラダープログラム30−−−−−−・・−・−・−、R
AM42−・・−・・−・・−プログラム編集装置特許
出願人 ファナック株式会社 代理人   弁理士  服部毅巖 第1図 第2図
Fig. 1 is a diagram showing an example of a ladder program according to an embodiment of the present invention, Fig. 2 is a diagram for explaining address replacement, and Fig. 3 is a diagram showing a PC (programmable controller) for implementing the present invention. FIG. 1.2--------・-- Contact 3.4-- Coil 5------------ Diagram showing the symbol and address before change 6-...--...--Figure 11 showing symbols and addresses after change--...--Processor 12--
−・−・・−・・−Input circuit 13−−−−−−−1・−Output circuit 20−
・−・・−−−−−、R0M21−・・−・−・−・・
−Management program 22−−−−−・・・・−−−−−・
Ladder program 30---------・----・-, R
AM42----------Program editing device patent applicant Fanuc Co., Ltd. agent Patent attorney Takeshi Hattori Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)ラダープログラムの信号のアドレスを変換するラ
ダープログラムの編集方式において、シンボルが付され
ている信号は該シンボルを優先して、 シンボル名に対応するアドレスを置換することにより、
前記信号のアドレスを置換することを特徴とするラダー
プログラムの編集方式。
(1) In the ladder program editing method that converts the address of a signal in a ladder program, signals with a symbol are given priority by replacing the address corresponding to the symbol name.
A ladder program editing method characterized by replacing the address of the signal.
JP31248287A 1987-12-10 1987-12-10 Editing system for ladder program Pending JPH01152506A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP31248287A JPH01152506A (en) 1987-12-10 1987-12-10 Editing system for ladder program
PCT/JP1988/001097 WO1989005481A1 (en) 1987-12-10 1988-10-27 System for editing ladder program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31248287A JPH01152506A (en) 1987-12-10 1987-12-10 Editing system for ladder program

Publications (1)

Publication Number Publication Date
JPH01152506A true JPH01152506A (en) 1989-06-15

Family

ID=18029741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31248287A Pending JPH01152506A (en) 1987-12-10 1987-12-10 Editing system for ladder program

Country Status (2)

Country Link
JP (1) JPH01152506A (en)
WO (1) WO1989005481A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03116202A (en) * 1989-09-29 1991-05-17 Fuji Electric Co Ltd Programming device for programmable controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6095612A (en) * 1983-10-28 1985-05-29 Fanuc Ltd Symbol name display device of pc programmer
JPS61143807A (en) * 1984-12-17 1986-07-01 Mitsubishi Electric Corp Programming device with editing function

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5636705A (en) * 1979-09-04 1981-04-10 Fanuc Ltd Sequence program translation system of programmable sequence controller
JPS6246304A (en) * 1985-08-23 1987-02-28 Hitachi Ltd Programmable controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6095612A (en) * 1983-10-28 1985-05-29 Fanuc Ltd Symbol name display device of pc programmer
JPS61143807A (en) * 1984-12-17 1986-07-01 Mitsubishi Electric Corp Programming device with editing function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03116202A (en) * 1989-09-29 1991-05-17 Fuji Electric Co Ltd Programming device for programmable controller

Also Published As

Publication number Publication date
WO1989005481A1 (en) 1989-06-15

Similar Documents

Publication Publication Date Title
US7302676B2 (en) Method for debugging flowchart programs for industrial controllers
JPH05274011A (en) Programmable controller and its control method
JPH0973307A (en) Generating device and controller for order sequence program
JP2671793B2 (en) Program generator usage specification simulation method and apparatus
JPH01152506A (en) Editing system for ladder program
JP2006243841A (en) Plc tool device
EP0059758A1 (en) Numerical control unit
JPH06187015A (en) Program converter for sequencer
JPS6149209A (en) Program execution system of numerical controller
CN109765849A (en) Numerical control device control method, device, system and computer-readable medium
KR100423742B1 (en) Exclusive control system by sequential function chart
JP7466806B1 (en) Data processing device, data processing method and data processing program
JPH05128186A (en) Part number integrated modification processing system for circuit diagram
JPH0236419A (en) Automatic translation execution system for source code
JPH05282011A (en) Automatic allocating and granting device for pc address
JPS6246304A (en) Programmable controller
JPH0231208A (en) Programming unit
JPS60134335A (en) Printing method of source program
JPH0210430A (en) Online program generating system
JP2002244705A (en) Data transfer system and data transfer program for editor device
JPH05224943A (en) Source program converter
JPH0250730A (en) Language converting system based upon common machine word
JPH05324761A (en) Generating device for tree analytic(fat) chart for fault
JPH0348902A (en) Macroinstruction for sequence control
Rozehnal Automatic Source Code Generation for Microcontrollers