JPH10240312A - Debugging device for ladder program - Google Patents

Debugging device for ladder program

Info

Publication number
JPH10240312A
JPH10240312A JP4198297A JP4198297A JPH10240312A JP H10240312 A JPH10240312 A JP H10240312A JP 4198297 A JP4198297 A JP 4198297A JP 4198297 A JP4198297 A JP 4198297A JP H10240312 A JPH10240312 A JP H10240312A
Authority
JP
Japan
Prior art keywords
address
index
screen
ladder program
real address
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.)
Granted
Application number
JP4198297A
Other languages
Japanese (ja)
Other versions
JP3296477B2 (en
Inventor
Takashi Kadowaki
隆 門脇
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 JP04198297A priority Critical patent/JP3296477B2/en
Publication of JPH10240312A publication Critical patent/JPH10240312A/en
Application granted granted Critical
Publication of JP3296477B2 publication Critical patent/JP3296477B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device for easily performing debugging even in the case of ladder program for which the high-grade instruction of repeated address operation with index addition is supported. SOLUTION: This device has a ladder program part 10 describing input and output instructions including the repeated operation having the address with index addition, index editing picture 20 for determining the index value of this address and index operating means 30 for translating the address with index addition to a real address and further, a monitor part 40 accesses the real address of input/output instruction, grasps an ON/OFF state and displays it on a monitor screen 50. For the purpose to monitor the input/output instruction with the real address, a real address picture 60 is displayed. Then, in the case of successive change just determining the initial value of index value, each time of successive change, the real address is updated and displayed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、工作機械等の制御
を行うシーケンサにおいて、命令を記述するのに用いら
れるラダープログラムの過誤を修正するのに用いられる
デバッグ装置に関し、特にインデクス加算付きアドレス
をデバッグするのに好適な改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a debugger used for correcting errors in a ladder program used for describing an instruction in a sequencer for controlling a machine tool or the like, and more particularly to a debugger for using an address with index addition. It relates to an improvement suitable for debugging.

【0002】[0002]

【従来の技術】本出願人は、例えば特開平6−1493
14号公報等で、プログラマブル・コントローラ(PL
C)等に用いて好適なラダープログラム用の表示装置を
提案している。ところで、PLCの機能は、近年飛躍的
に向上しており、従来の機械に対して動作命令を司る制
御演算の他に、機械の持つ情報を加工して上位側コンピ
ュータに伝達する情報処理まで担うようになっている。
そこで、PLCの主要言語であるラダーにも、高級言語
にある繰り返し演算等の高度な命令がサポートされるよ
うになった。
2. Description of the Related Art The applicant of the present invention has disclosed, for example,
No. 14 publication, etc., the programmable controller (PL
A display device for a ladder program suitable for use in C) is proposed. By the way, the function of the PLC has been dramatically improved in recent years, and in addition to a control operation for controlling an operation command for a conventional machine, it also performs information processing for processing information possessed by the machine and transmitting the processed information to a host computer. It has become.
Therefore, ladders, which are the main languages of PLC, have come to support advanced instructions such as repetitive operations in high-level languages.

【0003】繰り返し演算では、指定するデバイスを毎
回変えていくために、デバイス指定にインデクス修飾が
用いられることが多い。そこで、デバッグ作業において
も、インデクス加算付きアドレスに対応することが望ま
れている。図3は、インデクス加算付きアドレスを用い
たラダー回路図である。図において、入力命令12に
は、絶対アドレス13と相対アドレス14を加算したア
ドレスI10+V1の内容が入る。出力命令16には、絶
対アドレス17と相対アドレス18を加算したアドレス
100+V2の内容が入る。この命令においては、アドレ
スI10+V1の入力命令12がオンになると、アドレス
100+V2の出力命令16がオンになる。
In the repetitive operation, an index modification is often used for device designation in order to change a designated device every time. Therefore, it is desired that the debugging work also corresponds to the address with the index addition. FIG. 3 is a ladder circuit diagram using an address with index addition. In the figure, the input instruction 12 contains the contents of the address I 10 + V 1 obtained by adding the absolute address 13 and the relative address 14. The output instruction 16 contains the contents of the address I 100 + V 2 obtained by adding the absolute address 17 and the relative address 18. In this instruction, when the input instruction 12 at the address I 10 + V1 is turned on, the output instruction 16 at the address I 100 + V2 is turned on.

【0004】[0004]

【発明が解決しようとする課題】しかし、PLCにおい
ては高速性を確保するために、実行時にインデクス加算
付きアドレスで指定された範囲が、デバイス範囲を超過
しているか否かのチェックをしていない。そこで、ユー
ザが意図しないインデクス値を指定して、デバイス範囲
を超過してPLCがアクセスしてしまい、PLCが正常
動作しなくなる事態が発生するという課題があった。
However, in order to ensure high speed, the PLC does not check whether the range specified by the address with index addition exceeds the device range at the time of execution. . Therefore, there has been a problem that a user may specify an unintended index value and access the PLC beyond the device range, which may cause the PLC to malfunction.

【0005】また、インデクス加算付きアドレスのモニ
タ装置も存在するが、機能が不充分である。第1の類型
は、インデクス部を無視する状態でアドレスの状態をモ
ニタするものである。第2の類型は、インデクス部を考
慮するモニタであるが、アドレスの収集がPLC動作の
スキャンの終了で行われるため、繰り返し演算で使われ
ると常にインデクスの最終値を加算したアドレスがモニ
タされる。デバッグ作業においては、インデクス値を逐
次加算したアドレスが表示される必要があるのに、アド
レスが逐次加算毎に表示されないという課題があった。
[0005] In addition, there are monitor devices for addresses with index addition, but their functions are insufficient. The first type is to monitor the state of the address while ignoring the index part. The second type is a monitor that takes into account the index portion. However, since the address collection is performed at the end of the scan of the PLC operation, the address obtained by adding the final value of the index is always monitored when the address is used in the repetitive operation. . In the debugging work, although it is necessary to display the address to which the index value is sequentially added, there is a problem that the address is not displayed for each successive addition.

【0006】本発明は上述の課題を解決したもので、イ
ンデクス加算付きアドレスの繰り返し演算等の高度な命
令がサポートされたラダープログラムでも、インデクス
値を逐次加算したアドレスを表示してデバッグが容易に
行える装置を提供することを目的とする。
The present invention solves the above-mentioned problem. Even in a ladder program which supports advanced instructions such as repetition operation of an address with an index addition, it is easy to debug by displaying an address to which an index value is sequentially added. It is an object of the present invention to provide a device capable of performing the above.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成する本
発明は、インデクス加算付きアドレスを有する繰り返し
演算を含む入力命令や出力命令が記述されたラダープロ
グラム部10と、このラダープログラム部に記述される
インデクス加算付きアドレスのインデクス値を定めるイ
ンデクス値編集画面20と、このインデクス加算付きア
ドレスの絶対値アドレスとインデクス値とを演算して、
実アドレスを求めるインデクス演算手段30と、このイ
ンデクス演算手段で求めた実アドレスでの入力命令や出
力命令のオンオフ状態を認識するモニタ手段40と、前
記ラダープログラム部に記述されたインデクス加算付き
アドレスを用いて入力命令や出力命令を表示すると共
に、このモニタ手段で認識された入力命令や出力命令の
オンオフ状態を併せて表示するモニタ画面50と、前記
ラダープログラム部に記述されたインデクス加算付きア
ドレスを、このインデクス演算手段で求めた実アドレス
に変換して入力命令や出力命令を表示する実アドレス画
面60とを備えることを特徴としている。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a ladder program unit 10 in which an input instruction or an output instruction including a repetitive operation having an address with an index addition is described, Index value edit screen 20 for determining the index value of the address with index addition to be performed, and the absolute value address and index value of the address with index addition are calculated,
An index calculating means 30 for obtaining a real address; a monitor means 40 for recognizing an on / off state of an input command or an output command at the real address obtained by the index calculating means; and an address with index addition described in the ladder program section. A monitor screen 50 for displaying the input command and the output command by using the input command and the output command recognized by the monitor means, and displaying the address with index addition described in the ladder program section. And a real address screen 60 for displaying an input command and an output command by converting the data into a real address obtained by the index calculating means.

【0008】本発明の構成によれば、インデクス演算手
段30は、インデクス加算付きアドレスの絶対値アドレ
スとインデクス値とを演算して実アドレスを求めてい
る。モニタ手段40は、実アドレスでの入力命令や出力
命令のオンオフ状態を認識し、モニタ画面50でインデ
クス加算付きアドレスを用いた入力命令や出力命令のオ
ンオフ表示をしている。実アドレス画面60は、インデ
クス加算付きアドレスを用いた入力命令や出力命令を、
実アドレスで表示している。実アドレスで表示するとデ
バッグ作業が円滑に行える。
According to the configuration of the present invention, the index calculating means 30 calculates the real address by calculating the absolute value address of the address with index addition and the index value. The monitor means 40 recognizes the on / off state of the input command or output command at the real address, and displays on / off of the input command or output command using the address with index addition on the monitor screen 50. The real address screen 60 displays an input instruction and an output instruction using an address with an index addition,
It is displayed with the real address. Debugging can be performed smoothly by displaying the actual address.

【0009】[0009]

【発明の実施の形態】以下図面を用いて、本発明を説明
する。図1は本発明の第1の実施例を示す構成ブロック
図である。図において、ラダープログラム部10は、イ
ンデクス加算付きアドレスを有する繰り返し演算を含む
入力命令や出力命令が記述されている。インデクス値編
集画面20は、ラダープログラム部10に記述されるイ
ンデクス加算付きアドレスのインデクス値を定めるもの
で、例えばインデクスレジスタV1に対してはインデク
ス値10とする。インデクス演算部30は、インデクス
加算付きアドレスの絶対値アドレスI10とインデクス値
V1とを演算して、実アドレスI10+V1を求める。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a configuration block diagram showing a first embodiment of the present invention. In the figure, the ladder program unit 10 describes an input instruction and an output instruction including a repetitive operation having an address with index addition. The index value editing screen 20 defines an index value of an address with index addition described in the ladder program unit 10, and sets the index value to 10, for example, for the index register V1. Index calculating unit 30 calculates the absolute value address I 10 and index value V1 of the index addition with address, obtains the real address I 10 + V1.

【0010】モニタ部40は、インデクス演算部30で
求めた実アドレスでの入力命令や出力命令のオンオフ状
態を認識する。即ち、入力命令や出力命令の実アドレス
での値を取り込むことで、被制御装置のオンオフ状態の
判別ができる。モニタ画面50は、ラダープログラム部
10に記述されたインデクス加算付きアドレスを用いて
入力命令や出力命令を表示すると共に、モニタ部40で
認識された入力命令や出力命令のオンオフ状態を併せて
表示する。このオンオフ状態表示は、例えばオン状態の
入力命令や出力命令に対しては太線表示とし、オフ状態
の入力命令や出力命令に対しては細線表示とする。実ア
ドレス画面60は、ラダープログラム部10に記述され
たインデクス加算付きアドレスを、インデクス演算部3
0で求めた実アドレスに変換して入力命令や出力命令を
表示する。尚、実アドレス画面60においても、モニタ
部40で認識された入力命令や出力命令のオンオフ状態
を併せて表示して差し支えない。
The monitor unit 40 recognizes an on / off state of an input command or an output command at a real address obtained by the index calculation unit 30. That is, the on / off state of the controlled device can be determined by taking in the value of the real address of the input command or the output command. The monitor screen 50 displays the input command and the output command using the address with the index addition described in the ladder program unit 10 and also displays the on / off state of the input command and the output command recognized by the monitor unit 40. . The on-off state display is, for example, a bold line display for an on-state input command or an output instruction, and a thin line display for an off-state input or output instruction. The real address screen 60 displays the address with index addition described in the ladder program section 10 on the index operation section 3.
The input command and the output command are displayed after being converted to the real address obtained by 0. Note that the on / off state of the input command and the output command recognized by the monitor unit 40 may also be displayed on the real address screen 60.

【0011】このように構成された装置の動作を次に説
明する。ラダープログラム部10には、入力命令として
絶対値アドレスI10とインデクス値V1で表されたイン
デクス加算付きアドレスが存在している。また、出力命
令として絶対値アドレスI10 0 とインデクス値V2で表
されたインデクス加算付きアドレスが存在している。イ
ンデクス値V1,V2は、インデクス値編集画面20で
予め定義されているが、初期値を定めているだけで逐次
変化する場合もある。例えば、インデクス値V1+1で
あれば、繰り返しの度にインデクス値は1づつ加算され
る。
Next, the operation of the thus constructed apparatus will be described. The ladder program unit 10, the absolute value address I 10 and index addition with address represented by the index value V1 as an input command is present. The absolute value address I 10 0 and index addition with address represented by the index value V2 is present as an output instruction. The index values V1 and V2 are defined in advance on the index value editing screen 20, but may change sequentially only by defining the initial values. For example, if the index value is V1 + 1, the index value is incremented by one at each repetition.

【0012】これらの入出力命令に対する実アドレス
は、インデクス演算部30で演算される。モニタ部40
は、入出力命令の実アドレスにアクセスして、オンオフ
状態を把握し、モニタ画面50に表示する。実アドレス
で入出力命令を監視したいという用途では、実アドレス
画面60を表示する。そして、インデクス値の初期値を
定めているだけで逐次変化する場合には、逐次変化の度
に実アドレスが更新されて表示される。
The real addresses for these input / output instructions are calculated by the index calculation unit 30. Monitor section 40
Accesses the real address of the input / output instruction, grasps the on / off state, and displays it on the monitor screen 50. If the user wants to monitor an input / output instruction at a real address, the real address screen 60 is displayed. Then, when the index value changes sequentially only by defining the initial value, the real address is updated and displayed each time the index value changes.

【0013】次に、インデクス加算付きアドレスで指定
された範囲が、デバイス範囲を超過している場合につい
て説明する。この場合には、予めインデクス演算部30
にデバイス範囲を定義しておく。そして、インデクス演
算部30で実アドレスを演算して、若しデバイス範囲を
超えている場合には実アドレスへの変換を停止すると共
にアラームを出力する。これにより、PLCの意図しな
い実行停止を未然に防止することができる。
Next, a case where the range specified by the address with index addition exceeds the device range will be described. In this case, the index operation unit 30
Define a device range in advance. Then, the real address is calculated by the index calculating unit 30, and if it exceeds the device range, the conversion to the real address is stopped and an alarm is output. This makes it possible to prevent unintended execution stoppage of the PLC.

【0014】図2は本発明の第2の実施例を示す構成ブ
ロック図である。ここでは、バソコンのように表示でき
る画面領域が限られている用途に適する改良を示してい
る。表示切換部70は、インデクス演算部30と実アド
レス画面60の間に設けられており、画面にモニタ画面
50を表示するか実アドレス画面60を表示するかの選
択をしている。このように表示切換部70を設けると、
画面領域が効率よく使用できる。
FIG. 2 is a block diagram showing the configuration of a second embodiment of the present invention. Here, an improvement suitable for an application in which the screen area that can be displayed is limited, such as a bass computer, is shown. The display switching unit 70 is provided between the index calculation unit 30 and the real address screen 60, and selects whether to display the monitor screen 50 or the real address screen 60 on the screen. By providing the display switching unit 70 in this way,
Screen area can be used efficiently.

【0015】[0015]

【発明の効果】以上説明したように本発明によれば、イ
ンデクス演算部30を設けて、インデクス加算付きアド
レスを実アドレスに変換しているので、入出力命令のデ
バッグ作業が円滑に行える。また請求項2記載の発明に
よれば、デバイス範囲を超えてしまう場合には実アドレ
スに変換できないから、PLCの動作不能を未然に防止
できるという効果がある。
As described above, according to the present invention, since the index operation unit 30 is provided to convert an address with an index addition into a real address, debugging of input / output instructions can be performed smoothly. Further, according to the second aspect of the present invention, if the data exceeds the device range, it cannot be converted to a real address, so that there is an effect that the inoperability of the PLC can be prevented.

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

【図1】本発明の第1の実施例を示す構成ブロック図で
ある。
FIG. 1 is a configuration block diagram showing a first embodiment of the present invention.

【図2】本発明の第2の実施例を示す構成ブロック図で
ある。
FIG. 2 is a configuration block diagram showing a second embodiment of the present invention.

【図3】インデクス加算付きアドレスを用いたラダー回
路図である。
FIG. 3 is a ladder circuit diagram using an address with index addition.

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

10 ラダープログラム部 20 インデクス値編集画面 30 インデクス演算手段 40 モニタ手段 50 モニタ画面 60 実アドレス画面 10 Ladder program section 20 Index value editing screen 30 Index calculation means 40 Monitoring means 50 Monitor screen 60 Real address screen

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】インデクス加算付きアドレスを有する繰り
返し演算を含む入力命令や出力命令が記述されたラダー
プログラム部(10)と、 このラダープログラム部に記述されるインデクス加算付
きアドレスのインデクス値を定めるインデクス値編集画
面(20)と、 このインデクス加算付きアドレスの絶対値アドレスとイ
ンデクス値とを演算して、実アドレスを求めるインデク
ス演算手段(30)と、 このインデクス演算手段で求めた実アドレスでの入力命
令や出力命令のオンオフ状態を認識するモニタ手段(4
0)と、 前記ラダープログラム部に記述されたインデクス加算付
きアドレスを用いて入力命令や出力命令を表示すると共
に、このモニタ手段で認識された入力命令や出力命令の
オンオフ状態を併せて表示するモニタ画面(50)と、 前記ラダープログラム部に記述されたインデクス加算付
きアドレスを、このインデクス演算手段で求めた実アド
レスに変換して入力命令や出力命令を表示する実アドレ
ス画面(60)と、 を備えることを特徴とするラダープログラムのデバッグ
装置。
A ladder program section (10) in which an input instruction or an output instruction including an iterative operation having an address with an index addition is described, and an index for determining an index value of the address with an index addition described in the ladder program section. A value editing screen (20), an index operation means (30) for calculating an absolute value address of the address with index addition and an index value to obtain a real address, and an input using the real address obtained by the index operation means Monitor means (4) for recognizing on / off states of commands and output commands.
0) and a monitor that displays an input command and an output command using the address with the index addition described in the ladder program section, and also displays an on / off state of the input command and the output command recognized by the monitor unit. A screen (50), and a real address screen (60) for converting an address with index addition described in the ladder program section into a real address obtained by the index calculating means and displaying an input command or an output command. A debugging device for a ladder program, comprising:
【請求項2】前記インデクス演算手段には、予めデバイ
ス範囲として許容される絶対値アドレスの範囲を定義
し、演算された実アドレスがこの絶対値アドレスの範囲
を超えているときは実アドレスへの変換をしないことを
特徴とする請求項1記載のラダープログラムのデバッグ
装置。
2. The method according to claim 1, wherein the index calculating means defines in advance a range of an absolute value address which is allowed as a device range, and when the calculated real address exceeds the range of the absolute value address, the index address is added to the real address. 2. The debugging device for a ladder program according to claim 1, wherein conversion is not performed.
【請求項3】前記モニタ画面のオンオフ表示は、オン状
態の入力命令や出力命令に対しては太線表示とし、オフ
状態の入力命令や出力命令に対しては細線表示とするこ
とを特徴とする請求項1記載のラダープログラムのデバ
ッグ装置。
3. The on / off display of the monitor screen is characterized by a bold line display for an on-state input command or an output instruction, and a thin line display for an off-state input or output command. The debugging device for a ladder program according to claim 1.
【請求項4】請求項1記載のラダープログラム部(1
0)、インデクス値編集画面(20)、インデクス演算
手段(30)、モニタ手段(40)、モニタ画面(5
0)及び実アドレス画面(60)とを有するラダープロ
グラムのデバッグ装置において、 前記モニタ画面と実アドレス画面を画面に切り換えて表
示する表示切換手段(70)を備えることを特徴とする
請求項1記載のラダープログラムのデバッグ装置。
4. The ladder program unit according to claim 1,
0), index value editing screen (20), index calculating means (30), monitoring means (40), monitor screen (5
The debugger for a ladder program having a real address screen (0) and a real address screen (60), further comprising: display switching means (70) for switching and displaying the monitor screen and the real address screen on the screen. Ladder program debugging device.
JP04198297A 1997-02-26 1997-02-26 Ladder program debugging device Expired - Fee Related JP3296477B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04198297A JP3296477B2 (en) 1997-02-26 1997-02-26 Ladder program debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04198297A JP3296477B2 (en) 1997-02-26 1997-02-26 Ladder program debugging device

Publications (2)

Publication Number Publication Date
JPH10240312A true JPH10240312A (en) 1998-09-11
JP3296477B2 JP3296477B2 (en) 2002-07-02

Family

ID=12623417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04198297A Expired - Fee Related JP3296477B2 (en) 1997-02-26 1997-02-26 Ladder program debugging device

Country Status (1)

Country Link
JP (1) JP3296477B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208202A (en) * 2002-01-11 2003-07-25 Okuma Corp Monitor device for programmable logic controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208202A (en) * 2002-01-11 2003-07-25 Okuma Corp Monitor device for programmable logic controller

Also Published As

Publication number Publication date
JP3296477B2 (en) 2002-07-02

Similar Documents

Publication Publication Date Title
US6175206B1 (en) Robot information processor
US20170083017A1 (en) Ladder diagram monitoring device capable of additionally displaying operation situation of cnc in comment
JP2002373008A (en) Numerical controller
JP3296477B2 (en) Ladder program debugging device
JPH10283020A (en) Programmable display device
JP2875135B2 (en) Program device for programmable controller
JPH01191269A (en) Image controller
JP3407614B2 (en) Sequence controller
JPH03109603A (en) Programming device for programmable controller
JP3011050B2 (en) Pointing confirmation method
JP3823938B2 (en) Program creation device
JP2520485B2 (en) Dragging and rubber band independent display system
JPH05224713A (en) Display method for programmable controller
JP4219120B2 (en) Display device and operation check method of display device
KR100573464B1 (en) Character input apparatus of a teach pendant
JP2006259784A (en) Image editing device
JP2003202904A (en) Input/output monitor device for programmable controller
JPH04274289A (en) Multiwindow display controller
JPH0619515A (en) Subprocessor of programmable controller
JPS60245037A (en) Crt display system
JPH0423102A (en) Programming device for programmable controller
JPH0327453A (en) Designation processing system for program
JPH0519744A (en) Graphic display device
JPS63317866A (en) Data output processing method
JPS61289426A (en) Program control type console device having high function

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees