JPH01204104A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH01204104A
JPH01204104A JP2951388A JP2951388A JPH01204104A JP H01204104 A JPH01204104 A JP H01204104A JP 2951388 A JP2951388 A JP 2951388A JP 2951388 A JP2951388 A JP 2951388A JP H01204104 A JPH01204104 A JP H01204104A
Authority
JP
Japan
Prior art keywords
control elements
sequence program
memory
input
information corresponding
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
JP2951388A
Other languages
Japanese (ja)
Inventor
Masashi Ikegami
池上 正志
Hisanori Kataoka
片岡 久典
Hiroshi Kutsuyama
沓山 弘
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2951388A priority Critical patent/JPH01204104A/en
Publication of JPH01204104A publication Critical patent/JPH01204104A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To realize a quick debugging process of a sequence program by using a memory which stores the control elements forming a sequence program and the addresses and symbol instructions of said control elements and a means which reads out the memory information corresponding to the input control element. CONSTITUTION:The memories 3 and 4 store the control elements forming a sequence program and the addresses and symbol instructions of those control elements respectively. An input device 5 is added to supply the control elements together with an arithmetic control part which reads the memory information corresponding to those control elements out of both memories 3 and 4. These control elements are supplied before execution of the sequence program. Then the information corresponding to the input control element is read out of the memory and outputted to a printer, a display, etc. These output contents are checked for detection of the program abnormality. As a result, a debugging process of the sequence program is carried out easily and quickly.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラマブル・コントローラに関し、更に詳
述すればシーケンスプログラムのデバッグを可能とした
プログラマブル・コントローラを提案するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a programmable controller, and more specifically, it proposes a programmable controller that enables debugging of sequence programs.

〔従来技術〕[Prior art]

プログラマブル・コントローラに実行させるべきシーケ
ンスプログラムは、ラダー図を描き第5図に示す如き常
開接点、常閉接点、開放、短絡、出力コイル等のシンボ
ル命令と、外部入力(X)、外部出力(Y)、タイマ(
T)、内部リレー(R)等の制御要素の種別命令とこれ
ら制御要素のアドレスとを入力することで作成される。
The sequence program to be executed by the programmable controller is created by drawing a ladder diagram and including symbol commands such as normally open contact, normally closed contact, open, short circuit, output coil, etc. as shown in Figure 5, as well as external input (X), external output ( Y), timer (
It is created by inputting the type command of control elements such as T) and internal relay (R) and the addresses of these control elements.

このようにして入力されたプログラムは実行形式の機械
語に変換され、メモリに格納されるのであるが、ラダー
図の構成要素と上記機械語とが1:1に対応している命
令体系を有するプログラマブル・コントローラにおける
シーケンスプログラムのデバッグ方法として特開昭61
−183705号の方法が知られている。これはトレー
ス命令がある場合には出力処理後に、その命令がオン又
はオンからオフに変化しつつあるときに演算トレース処
理を行い所要の情報を検出するという方法である。
The program input in this way is converted into executable machine language and stored in memory, and has an instruction system in which the components of the ladder diagram and the machine language have a 1:1 correspondence. Japanese Unexamined Patent Application Publication No. 1983 (1986) as a debugging method for sequence programs in programmable controllers
The method of No.-183705 is known. This is a method in which, if there is a trace instruction, after output processing, arithmetic trace processing is performed when the instruction is on or changing from on to off to detect necessary information.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながらシーケンスプログラムの作成者又は入力者
が制御要素のアドレスを誤ったり、接点入力と出力コイ
ルとの対応をとらなかったりするとトレース処理が行わ
れず、その原因追及に時間を要する。
However, if the creator or inputter of the sequence program makes a mistake in the address of the control element or does not correspond to the contact input and the output coil, tracing processing will not be performed, and it will take time to investigate the cause.

第6図はラダー図の1例を示すS R1I Rz 。FIG. 6 shows an example of a ladder diagram S R1 I Rz.

Y、のステップにおいて外部出力コイルY、の後(イ)
においてトレース命令を設けることとしても、(ロ)の
R2の接点人力がオンしない限り、トレースはかからず
、従ってその前後の情報を正しく知ることができない。
After the external output coil Y at step Y, (A)
Even if a trace command is provided in (b), unless the contact R2 in (b) is manually turned on, tracing will not take place, and therefore the information before and after the command cannot be correctly known.

本発明は斯かる事情に鑑みてなされたものであり、シー
ケンスプログラムの入力情報を特別のメモリに設けてお
き、これをシーケンスプログラムの実行に先立って読出
して、これに基づいてシーケンスプログラムのデバッグ
処理を容易且つ迅速に行えるプログラマブル・コントロ
ーラを提供することを目的とする。
The present invention has been made in view of the above circumstances, and it provides input information for a sequence program in a special memory, reads this information before executing the sequence program, and debugs the sequence program based on this information. An object of the present invention is to provide a programmable controller that can easily and quickly perform the following steps.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に斯かるプログラマブル・コントローラは、シー
ケンスプログラムを構成する制御要素及びそのアドレス
並びにシンボル命令を記憶するメモリと、制御要素を入
力する手段と、入力された制御要素に対応する記憶情報
を前記メモリから読出す手段とを具備することを特徴と
する。
Such a programmable controller according to the present invention includes a memory for storing control elements constituting a sequence program, their addresses, and symbol instructions, a means for inputting the control elements, and storage information corresponding to the input control elements in the memory. The invention is characterized in that it comprises means for reading from.

〔作用〕[Effect]

シーケンスプログラムの実行に先立ち制御要素を入力す
る。そうすると入力した制御要素に対応する情報がメモ
リから読出され、例えばプリンタ、デイスプレィに出力
される。この出力内容を調べることによってプログラム
の異常が検出できる。
Input control elements prior to execution of the sequence program. Then, information corresponding to the input control element is read out from the memory and output to, for example, a printer or a display. Program abnormalities can be detected by examining this output content.

〔実施例〕〔Example〕

以下本発明をその実施例を示す図面に基づいて詳述する
The present invention will be described in detail below based on drawings showing embodiments thereof.

第1図は本発明のプログラマブル・コントローラの構成
を略示するブロック図である。図において5は入力装置
であり、テンキー、ラダー図のシンボル命令等に対応さ
せたキー等からなり、その操作によって入力されたプロ
グラムはインターフェース2を介して演算制御部1へ入
力され、ここでラダー図の構成要素と1:1に対応する
実行形式の機械語に変換される。この機械語は第1メモ
’J 3に格納される。
FIG. 1 is a block diagram schematically showing the configuration of the programmable controller of the present invention. In the figure, reference numeral 5 denotes an input device, which consists of a numeric keypad, keys corresponding to the symbol commands of the ladder diagram, etc. The program input by the operation is inputted to the arithmetic control unit 1 via the interface 2, where the ladder diagram It is converted into executable machine language that corresponds 1:1 with the components in the diagram. This machine language is stored in the first memo 'J3.

一方、本発明のプログラマブル・コントローラでは入力
されたシーケンスプログラムを制御要素の種類別にその
アドレスとシンボル命令とを第2メモリ4に格納する。
On the other hand, in the programmable controller of the present invention, addresses and symbol commands of input sequence programs are stored in the second memory 4 for each type of control element.

演算制御部1はメモリ3,4の書込の外に、シーケンス
プログラムの実行のためにメモリ3から格納情報を読出
し、またインターフェース2に接続されたデイスプレィ
、プリンタ等の出力装W6に表示するためにメモリ4か
ら格納情報を読出す。
In addition to writing into the memories 3 and 4, the arithmetic control unit 1 reads stored information from the memory 3 for executing a sequence program, and also displays it on an output device W6 such as a display or printer connected to the interface 2. The stored information is read from the memory 4.

入力装置5には第2メモリ4の格納情報を読出すことを
指示するためのキーが設けられている。
The input device 5 is provided with a key for instructing to read the information stored in the second memory 4.

次に第2図に示すラダー図を例にとって本発明のプログ
ラマブル・コントローラの働きを説明する。このラダー
図は母線間にXl及びR3の直列回路、R1,Rz及び
Ylの直列回路、X2及びR1,の直列回路、X3.R
,。及びYloの直列回路等を並列的に接続したもので
ある。
Next, the operation of the programmable controller of the present invention will be explained using the ladder diagram shown in FIG. 2 as an example. This ladder diagram shows a series circuit of Xl and R3, a series circuit of R1, Rz and Yl, a series circuit of X2 and R1, a series circuit of X3 . R
,. and Ylo series circuits are connected in parallel.

第3図はこのラダー図をステップごとに二−モニック表
現して表したものである。
FIG. 3 is a mnemonic representation of this ladder diagram for each step.

而してシーケンスプログラムの実行に先立ち所定の操作
を行って入力装置5から制御要素を入力すると演算制御
部1は第2メモリから入力制御要素に関連する記憶情報
を読出し、これを出力装置6に表示させる。第4図はそ
の1例を示し、内部リレーRを入力した場合にはアドレ
スと接点入力及び出力コイルとが対応表示される。ここ
に”1”は使用されていること、“0”は使用されてい
ないことを表す。
When a control element is input from the input device 5 by performing a predetermined operation prior to execution of the sequence program, the arithmetic control unit 1 reads stored information related to the input control element from the second memory and sends it to the output device 6. Display. FIG. 4 shows an example of this, and when the internal relay R is input, the address, contact input, and output coil are displayed in correspondence. Here, "1" indicates that it is used, and "0" indicates that it is not used.

オペレータはこれによりシーケンスプログラムのエラー
を直ちに発見することができる。即ちアドレス1につい
ては接点入力、出力コイルともに1 (第2図(ハ)、
(ニ)参照)であり正しい。
This allows the operator to immediately discover errors in the sequence program. In other words, for address 1, both the contact input and output coil are 1 (Figure 2 (c),
(See (d)) and is correct.

アドレス2は接点入力(第2図(ホ))だけであり出力
コイルを使用していないからエラーである。
Address 2 is an error because it is only a contact input (Fig. 2 (E)) and does not use an output coil.

アドレス10.11−についても同様にエラーである。The same error occurs for address 10.11-.

これによりR11の出力コイルに対応する入力接点R1
1をRIGと入力誤りしたことが発見できるのである。
This makes the input contact R1 corresponding to the output coil of R11
It was discovered that 1 was incorrectly entered as RIG.

  − なお上述の実施例では第2メモリの内容を出力装置6に
表示するだけとしたが、演算制御部1において例えば接
点入力と出力コイルとの不一致のアドレスを判定してこ
れも併せて表示することとし、異常の発見を自動的に行
わせるようにしてもよい。
- In the above-mentioned embodiment, only the contents of the second memory are displayed on the output device 6, but the arithmetic control unit 1 determines, for example, an address that does not match the contact input and the output coil, and displays this as well. In this case, abnormality detection may be automatically performed.

〔効果〕〔effect〕

以上の如き本発明装置による場合は容易且つ迅速にシー
ケンスプログラムの異常又は論理回路の誤りを発見でき
、プログラマブル・コントローラのセント時の作業が大
幅に簡略化される。
With the apparatus of the present invention as described above, an abnormality in a sequence program or an error in a logic circuit can be easily and quickly discovered, and the work performed when a programmable controller is sent is greatly simplified.

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

第1図は本発明のプログラマブル・コントローラ要部の
ブロック図、第2図はその動作説明のためのラダー図、
第3図はその二−モニソク表現図、第4図は出力装置の
表示例を示す説明図、第5図はラダー図の構成要素のシ
ンボル命令図、第6図は従来の問題点を示すラダー図で
ある。 1・・・演算制御部 3・・・第1メモリ 4・・・第
2メモリ 5・・・入力装置 6・・・出力装置時 許
 出願人  三洋電機株式会社 代理人 弁理士  河 野  登 失 策  1  図 内部リレー R 第4図 簗5図 簗6図
Fig. 1 is a block diagram of the main part of the programmable controller of the present invention, Fig. 2 is a ladder diagram for explaining its operation,
Fig. 3 is a two-monisoku expression diagram, Fig. 4 is an explanatory diagram showing an example of the display of the output device, Fig. 5 is a symbol command diagram of the constituent elements of the ladder diagram, and Fig. 6 is a ladder diagram showing the problems of the conventional method. It is a diagram. 1... Arithmetic control unit 3... First memory 4... Second memory 5... Input device 6... Output device Applicant Sanyo Electric Co., Ltd. Agent Patent attorney Noboru Kono Mistake 1 Figure Internal Relay R Figure 4 Figure 5 Figure 6 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 1、シーケンスプログラムを構成する制御要素及びその
アドレス並びにシンボル命令を記憶するメモリと、制御
要素を入力する手段と、入力された制御要素に対応する
記憶情報を前記メモリから読出す手段とを具備すること
を特徴とするプログラマブル・コントローラ。
1. A memory for storing control elements constituting a sequence program, their addresses, and symbol commands, means for inputting the control elements, and means for reading stored information corresponding to the inputted control elements from the memory. A programmable controller characterized by:
JP2951388A 1988-02-09 1988-02-09 Programmable controller Pending JPH01204104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2951388A JPH01204104A (en) 1988-02-09 1988-02-09 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2951388A JPH01204104A (en) 1988-02-09 1988-02-09 Programmable controller

Publications (1)

Publication Number Publication Date
JPH01204104A true JPH01204104A (en) 1989-08-16

Family

ID=12278179

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2951388A Pending JPH01204104A (en) 1988-02-09 1988-02-09 Programmable controller

Country Status (1)

Country Link
JP (1) JPH01204104A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5717588A (en) * 1995-03-30 1998-02-10 Mazda Motor Corporation Programming system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5717588A (en) * 1995-03-30 1998-02-10 Mazda Motor Corporation Programming system

Similar Documents

Publication Publication Date Title
US7386359B2 (en) Device and method for testing machine tools and production machines
JPH01204104A (en) Programmable controller
US7877728B2 (en) Sequence program editing apparatus
JPH0577143A (en) Failure diagnosis device for automated line
JPH07253876A (en) Program generating device
JPH01187603A (en) Control device for machine tool or the like
JPS5934549A (en) Controller for copying machine
JPH08286714A (en) Monitor device for programmable display device
JPS63201736A (en) Programming device for programmable controller
JPH0719120B2 (en) Programmable controller
JP2020204847A (en) Test scenario automatic generation method of control software and device and automatic test method, and device and computer program
JPH0793146A (en) Program preparation supporting device
JP2005135153A (en) Numerical control device
JP2020177485A (en) Operation history recording method of programmable controller and sequence program
JP2005301334A (en) Motion controller
JPH06262482A (en) Abnormality countermeasure indicating device
JPS63177205A (en) Programming device for programmable controller
JPS61156339A (en) Trace processing system
JPH05297915A (en) Sequence simulator of programmable controller
JPH02194447A (en) Debugging control system
JPS62117042A (en) Automatic test control system
JPS63289604A (en) Program checking system for numerical control device
JPH03251934A (en) Computer equipment
JPH06138911A (en) Programming device
JPS63305434A (en) Debugging aid device