JPH05224713A - Display method for programmable controller - Google Patents

Display method for programmable controller

Info

Publication number
JPH05224713A
JPH05224713A JP4026370A JP2637092A JPH05224713A JP H05224713 A JPH05224713 A JP H05224713A JP 4026370 A JP4026370 A JP 4026370A JP 2637092 A JP2637092 A JP 2637092A JP H05224713 A JPH05224713 A JP H05224713A
Authority
JP
Japan
Prior art keywords
display
numerical value
data
character code
character
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
JP4026370A
Other languages
Japanese (ja)
Inventor
Seiji Uematsu
誠司 植松
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP4026370A priority Critical patent/JPH05224713A/en
Publication of JPH05224713A publication Critical patent/JPH05224713A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To eliminate the need for a special user program for conversion only by setting the desired optional numerical value or character code on a display device by storing the numerical value or the characters in a display register corresponding to a display area and displaying the character code on the display device. CONSTITUTION:When the display processing is started, whether the data are stored in a numerical value display data register 5a or not is judged. The stored numerical value is converted into a character code and sent to a display device 7 together with the signal specifying a display device. When the register 5a stores no data or the numerical value in the register 5a and in the case of storing the data, the numerical value is converted into a character code, and whether the character data are stored in the register 5a or not, is judged. If so, the relevant character code is sent to the device 7. These I/O transfer and the execution/display of a program are cyclically repeated, and the data are sent to the device 7 together with the signal specifying a display position.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラマブルコントロ
ーラ(以下PCという)の表示方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display method of a programmable controller (hereinafter referred to as PC).

【0002】[0002]

【従来の技術】図6は従来のPCのラン制御中の動作を
示すフローチャートである。図示のように、I/O転送
及びプログラムの実行をサイクリックに繰り返してい
る。ここで、I/O転送においては、入力基板からの入
力データの取り込みを行うと共に、出力データを出力基
板に出力する処理を行っている。また、プログラムの実
行においてはユーザプログラムの実行を行なっている。
ユーザプログラムの演算データを表示器に表示する際に
は、ユーザプログラムに表示データを作成するプログラ
ムと、作成後の表示処理をするプログラムとを設けてお
いて、それらのプログラムを実行することによって表示
処理を行っていた。従って、プログラマ又はプログラミ
ングパネルにユーザプログラムにより文字等を表示する
場合には表示命令を使用していた。図7は表示命令を使
用した場合の例を示す説明図である。この例はIOがO
Nの時“ABCD”の文字を表示器に表示する場合のプ
ログラムの例である。
2. Description of the Related Art FIG. 6 is a flowchart showing the operation of a conventional PC during run control. As shown, I / O transfer and program execution are cyclically repeated. Here, in the I / O transfer, input data from the input board is fetched and output data is output to the output board. In executing the program, the user program is executed.
When displaying the calculation data of the user program on the display unit, a program for creating the display data and a program for the display processing after the creation are provided in the user program, and the programs are displayed by executing the programs. It was processing. Therefore, the display command is used when displaying characters and the like on the programmer or the programming panel by the user program. FIG. 7 is an explanatory diagram showing an example in which a display command is used. In this example, IO is O
It is an example of a program for displaying the characters "ABCD" on the display when N.

【0003】[0003]

【発明が解決しようとする課題】従来のPCの表示方法
は上述のようになされており、表示データの作成だけで
は表示器に直接表示できないため、ユーザプログラム中
に表示処理のプログラムが別途必要となり、例えばPC
のデータレジスタの数値を表示する場合にはその数値を
表示するためのユーザプログラムが必要となり、このプ
ログラム自体が複雑になるという問題点があった。ま
た、任意の表示位置に文字・数値を表示するのにもユー
ザプログラムが必要であり、いずれにしてもユーザのプ
ログラミング作業に負担がかかるという問題点があっ
た。
The conventional PC display method is as described above, and since it is not possible to display directly on the display unit only by creating display data, a separate display processing program is required in the user program. , For example PC
When displaying the numerical value of the data register, a user program for displaying the numerical value is required, and this program itself becomes complicated. In addition, a user program is required to display a character / numerical value at an arbitrary display position, and in any case, the user's programming work is burdened.

【0004】本発明は、このような問題点を解決するた
めになされたものであり、ユーザが複雑なユーザプログ
ラムを作成する事なく自由に文字や数値を表示でき、か
つそれらがアルタイムに表示できるようにしたPCの表
示方法を提供することを目的とする。
The present invention has been made in order to solve such a problem, and a user can freely display characters and numerical values without creating a complicated user program, and display them in real time. It is an object of the present invention to provide a display method of a PC that is made possible.

【0005】[0005]

【課題を解決するための手段及び作用】本発明に係るP
Cの表示方法は、入出力転送をする工程と、プログラム
を実行する工程と、表示処理をする工程とをサイクリッ
クに繰り返し、数値又は文字を表示器に表示させる場合
には、プログラムを実行する工程において、表示する数
値又は文字を表示器の表示領域に対応した表示用データ
レジスタに格納し、表示処理においては、表示用データ
レジスタの数値については文字コードに変換してその文
字コードとその表示用データレジスタを特定する信号と
を表示器に送出し、文字についてはその文字コードとそ
の表示用データレジスタを特定する信号とを表示器に送
出する。
Means and Actions for Solving the Problems P according to the present invention
The display method of C is such that the step of input / output transfer, the step of executing a program, and the step of performing a display process are cyclically repeated, and when a numerical value or character is displayed on a display, the program is executed. In the process, the displayed numerical value or character is stored in the display data register corresponding to the display area of the display unit, and in the display process, the numerical value of the display data register is converted into a character code and the character code and its display are displayed. A signal for specifying the display data register is sent to the display, and for the character, its character code and a signal for specifying the display data register are sent to the display.

【0006】[0006]

【実施例】図2は本発明の一実施例に係る表示方法を実
施するPCのハード構成を示すブロック図である。図に
おいて、1はCPU、2はCPUの演算処理を司どるシ
ステムプログラムが格納されているROMである。3は
ユーザープログラムが格納されているPROMであり、
4は入出力データ等が格納されているRAMである。5
はRAMからなる表示用データレジスタであり、後述す
る表示器の分割表示領域に対応させた数値表示用データ
レジスタ5aと文字表示用データレジスタ5aとから構
成されている。6はインタフェースであり、7はインタ
フェース6を介して入力する各種データ等を表示する表
示器である。
FIG. 2 is a block diagram showing a hardware configuration of a PC for implementing a display method according to an embodiment of the present invention. In the figure, 1 is a CPU, and 2 is a ROM in which a system program that controls the arithmetic processing of the CPU is stored. 3 is a PROM in which a user program is stored,
A RAM 4 stores input / output data and the like. 5
Is a display data register composed of a RAM, and is composed of a numerical value display data register 5a and a character display data register 5a corresponding to the divided display areas of the display unit described later. Reference numeral 6 is an interface, and 7 is a display device for displaying various data and the like input via the interface 6.

【0007】図3は表示器5の表示領域の分割例を示し
た説明図である。この例ではa,b,c,…,hの8個
の領域に分割している。図4は図3の表示用データレジ
スタと表示器の分割表示領域との関係を示した図であ
る。分割表示領域a〜hは、数値表示用データレジスタ
5aのデータレジスタRYY00〜RYY07に対応
し、文字表示用データレジスタ5bのデータレジスタR
YY10〜RYY17に対応している。
FIG. 3 is an explanatory view showing an example of division of the display area of the display device 5. In this example, it is divided into eight areas a, b, c, ..., H. FIG. 4 is a diagram showing the relationship between the display data register of FIG. 3 and the divided display area of the display. The divided display areas a to h correspond to the data registers RYY00 to RYY07 of the numerical value display data register 5a, and the data display R of the character display data register 5b.
It corresponds to YY10 to RYY17.

【0008】図5は図2のPCのラン制御における動作
を示すフローチャートである。図示の示すように、従来
と同様にI/O転送及びプログラムの実行を行うが、こ
の実施例においては、ユーザが表示したい情報を表示用
データレジスタ5に設定するためのプログラムをユーザ
プログラム中に盛り込むようにしており、プログラムの
実行中に表示データの作成をして表示用データレジスタ
5に数値又は文字を格納している。そして、このプログ
ラムの実行の後に表示処理をする。
FIG. 5 is a flow chart showing the operation in the run control of the PC of FIG. As shown in the figure, I / O transfer and program execution are performed in the same manner as in the prior art. In this embodiment, however, a program for setting information that the user wants to display in the display data register 5 is stored in the user program. The display data is created during the execution of the program and the numerical value or character is stored in the display data register 5. Then, display processing is performed after the execution of this program.

【0009】図1は表示処理の動作を示すフローチャー
トである。表示処理が始まると、数値表示用データレジ
スタ5aにデータが格納されているかどうかを判断する
(S10) 。数値表示用データレジスタ5aにデータが格納
されていた場合にはその数値を文字コードに変換し、表
示装置を特定する信号と共に表示器7に送る(S11) 。次
に、数値表示用データレジスタ5aにデータが格納され
ていなかった場合及び数値表示用データレジスタ5aに
データが格納されていてその数値を文字コードに変換し
た場合には、次に文字表示用データレジスタ5bに文字
データが格納されているかどうかを判断する(S12) 。文
字データが格納されていると判断された場合には、その
文字コードを表示器7に送る。以上のようにしてI/O
転送、プログラムの実行及び表示処理がサイクリックに
繰り返され、表示レジスタ5にデータが格納されている
と、そのデータは表示用データに変換されて表示位置を
特定する信号と共に表示器7に送り出されて表示され
る。
FIG. 1 is a flow chart showing the operation of display processing. When the display process starts, it is determined whether or not data is stored in the numerical value display data register 5a.
(S10). When data is stored in the numerical value display data register 5a, the numerical value is converted into a character code and sent to the display 7 together with a signal for specifying the display device (S11). Next, when the data is not stored in the numerical value display data register 5a or when the data is stored in the numerical value display data register 5a and the numerical value is converted into the character code, the character display data is next. It is determined whether character data is stored in the register 5b (S12). When it is determined that the character data is stored, the character code is sent to the display unit 7. I / O
When transfer, program execution and display processing are cyclically repeated and data is stored in the display register 5, the data is converted into display data and sent to the display 7 together with a signal for specifying the display position. Is displayed.

【0010】例えば数値表示用レジスタ5aのデータレ
ジスタRYY00に数値「1234」が設定されている
ものとすると、CPU1はRYY00の内容を読み出し
て(S10) その数値「1234」を文字コードに変換す
る。その変換は次のようになされる。1→31h,2→
32h,3→33h,4→34h CPU1は変換した文字コード31h・32h・33h
・34hを図3の「a」の位置に表示するように表示器
7にその変換された文字コードをaの表示位置を特定す
る信号と共に表示器7送出する(S11) 。表示器7はCP
U1からの指示により図3の「a」の表示位置に文字コ
ードを表示データに変換し数値「1234」を表示す
る。
For example, if the numerical value "1234" is set in the data register RYY00 of the numerical value display register 5a, the CPU 1 reads the contents of RYY00 (S10) and converts the numerical value "1234" into a character code. The conversion is performed as follows. 1 → 31h, 2 →
32h, 3 → 33h, 4 → 34h The CPU 1 converts the converted character code 31h / 32h / 33h.
The display unit 7 sends the converted character code to the display unit 7 together with a signal for specifying the display position of a so that 34h is displayed at the position "a" in FIG. 3 (S11). Display 7 is CP
In response to an instruction from U1, the character code is converted into display data at the display position of "a" in FIG. 3 and the numerical value "1234" is displayed.

【0011】また、文字表示用レジスタ5bのデータレ
ジスタRYY17に文字コードB1B2(アイ)が設定
されたものとすると、CPU1はデータレジスタRYY
17の文字コードを読み出し(S12) 、その文字コードB
1B2を図3のhの表示位置に表示するように文字コー
ドをhの表示位置を特定する信号と共に表示器7送出す
る(S13) 。表示器7は、CPU1の指示により図3のh
の表示位置に、文字コードを表示データに変換し文字
「アイ」を表示する。
If the character code B1B2 (eye) is set in the data register RYY17 of the character display register 5b, the CPU 1 determines the data register RYY.
The character code of 17 is read (S12), and the character code B
The character code is sent together with the signal for specifying the display position of h so that 1B2 is displayed at the display position of h in FIG. 3 (S13). The display device 7 is displayed on the screen of FIG.
At the display position of, the character code is converted to display data and the character "eye" is displayed.

【0012】なお、上述の実施例においては表示器の同
一の表示領域に数値及び文字が重複して表示するように
指示される可能性があるが、そのような場合には表示処
理の工程においていずれか一方を優先させるようにする
ことにより対応できる。また、そのような可能性をなく
するために、例えばa〜dは文字表示領域とし、e〜h
は数値表示領域として予め両者が重複しないように設定
しておくようにしてもよい。
In the above-mentioned embodiment, there is a possibility that it is instructed to display numerical values and characters in the same display area of the display device in duplicate, but in such a case, in the display processing step. This can be dealt with by prioritizing either one. In order to eliminate such a possibility, for example, a to d are character display areas, and e to h
May be set in advance as a numerical display area so that they do not overlap.

【0013】[0013]

【発明の効果】以上のように本発明によれば、数値又は
文字を表示器に表示させる場合には、プログラムの実行
過程において表示する数値又は表示器の表示領域に対応
した表示用データレジスタに格納し、表示処理におい
て、数値については文字コードに変換して、文字につい
てはその文字コードを表示器に送出して表示するように
したので、ユーザプログラムにより表示したい任意の数
値や文字コードを表示用データレジスタに設定するだけ
で表示器に表示することができ、数値を表示するための
変換用ユーザプログラム等を作る必要がない。また、表
示処理がサイクリックに繰り返されるので、それらのデ
ータがリアルタイムに表示できる。
As described above, according to the present invention, when a numerical value or a character is displayed on the display, a display data register corresponding to the display area of the numerical value or the display to be displayed during the execution process of the program is displayed. In the display process, the numerical value is converted to a character code in the display process, and the character code is sent to the display unit for display, so any numerical value or character code that the user program wants to display can be displayed. The data can be displayed on the display simply by setting it in the data register for use, and there is no need to create a conversion user program for displaying numerical values. Moreover, since the display process is cyclically repeated, such data can be displayed in real time.

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

【図1】本発明の一実施例のPCの表示方法の内の表示
処理の動作を示すフローチャートである。
FIG. 1 is a flowchart showing an operation of display processing in a display method of a PC according to an embodiment of the present invention.

【図2】前記実施例を実施するPCのハード構成を示す
ブロック図である。
FIG. 2 is a block diagram showing a hardware configuration of a PC that implements the embodiment.

【図3】表示器5表示領域の分割例を示した説明図であ
る。
FIG. 3 is an explanatory diagram showing an example of division of a display area of a display unit 5.

【図4】表示用レジスタと表示器の分割表示領域との関
係を示した図である。
FIG. 4 is a diagram showing a relationship between a display register and a divided display area of a display unit.

【図5】図2のPCのラン制御における動作を示すフロ
ーチャートである。
5 is a flowchart showing an operation in run control of the PC of FIG.

【図6】従来のPCのラン制御中の動作を示すフローチ
ャートである。
FIG. 6 is a flowchart showing an operation during run control of a conventional PC.

【図7】従来の表示命令を使用した場合の例を示す説明
図である。
FIG. 7 is an explanatory diagram showing an example in which a conventional display command is used.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入出力転送をする工程と、プログラムを
実行する工程と、表示処理をする工程とをサイクリック
に繰り返し、数値又は文字を表示器に表示させる場合に
は、前記プログラムを実行する工程において、表示する
数値又は文字を表示器の表示領域に対応した表示用デー
タレジスタに格納し、前記表示処理においては、表示用
データレジスタの数値については文字コードに変換して
該文字コードとその表示用データレジスタを特定する信
号とを表示器に送出し、文字についてはその文字コード
とその表示用データレジスタを特定する信号とを表示器
に送出することを特徴とするプログラマブルコントロー
ラの表示方法。
1. A program is executed when a numerical value or a character is displayed on a display device by cyclically repeating a process of input / output transfer, a process of executing a program, and a process of displaying. In the step, the numerical value or character to be displayed is stored in the display data register corresponding to the display area of the display, and in the display processing, the numerical value of the display data register is converted into a character code and the character code and its A display method for a programmable controller, wherein a signal specifying a display data register is sent to a display device, and a character code of a character and a signal specifying the display data register are sent to the display device.
JP4026370A 1992-02-13 1992-02-13 Display method for programmable controller Pending JPH05224713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4026370A JPH05224713A (en) 1992-02-13 1992-02-13 Display method for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4026370A JPH05224713A (en) 1992-02-13 1992-02-13 Display method for programmable controller

Publications (1)

Publication Number Publication Date
JPH05224713A true JPH05224713A (en) 1993-09-03

Family

ID=12191621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4026370A Pending JPH05224713A (en) 1992-02-13 1992-02-13 Display method for programmable controller

Country Status (1)

Country Link
JP (1) JPH05224713A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7184019B2 (en) 2001-01-31 2007-02-27 Omron Corporation Back light control method and programmable controller having a display device with a back light
JP6964372B1 (en) * 2021-05-19 2021-11-10 忠久 片岡 Code generation method, code generator, program, data collation method
JP7128555B1 (en) * 2021-05-19 2022-08-31 忠久 片岡 Data matching method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7184019B2 (en) 2001-01-31 2007-02-27 Omron Corporation Back light control method and programmable controller having a display device with a back light
JP6964372B1 (en) * 2021-05-19 2021-11-10 忠久 片岡 Code generation method, code generator, program, data collation method
JP7128555B1 (en) * 2021-05-19 2022-08-31 忠久 片岡 Data matching method
WO2022244487A1 (en) * 2021-05-19 2022-11-24 株式会社コードアース Code generation method, code generation device, program, and data collation method

Similar Documents

Publication Publication Date Title
JPH08221107A (en) Sequence control program generating device
JPH05224713A (en) Display method for programmable controller
JP3355280B2 (en) Display control system
JPH0991022A (en) Robot controller
JPH047637A (en) Program diagram generating device
JP2971251B2 (en) SFC programming device
JP2731572B2 (en) Logic simulation method
JPH01191269A (en) Image controller
JP3221509B2 (en) Robot controller
KR900008536B1 (en) Computer system suitable in execution of sequencte control and servo control
JPH01244502A (en) Pc program display system
JPS62256004A (en) Programmable controller
JPH08272405A (en) Sequence controller
JPH06236204A (en) Device retrieved result display method for programming device
JPH01177613A (en) System for displaying nc program
JPH04191906A (en) User program execution control system for programmable controller
JP2004178303A (en) Display device, screen data generating device and program thereof
JPH02285414A (en) Key display processing system
JPH03109617A (en) Data processor
JPH0277795A (en) Display controller
JPS59106044A (en) Programming device of programmable controller
JPH05297913A (en) Programmable controller
JPS60128508A (en) Block search system of nc command program
JPH08166806A (en) Programmable controller
JPH0566745A (en) Picture display device