JPS6217243B2 - - Google Patents
Info
- Publication number
- JPS6217243B2 JPS6217243B2 JP8215781A JP8215781A JPS6217243B2 JP S6217243 B2 JPS6217243 B2 JP S6217243B2 JP 8215781 A JP8215781 A JP 8215781A JP 8215781 A JP8215781 A JP 8215781A JP S6217243 B2 JPS6217243 B2 JP S6217243B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- character
- memory
- sequence program
- register
- 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.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Description
本発明は電力、変電、水処理、一般産業向けの
汎用シーケンサのシーケンスプログラムの表示装
置に関するものである。
シーケンス装置を第1図に示す。同図におい
て、1は中央演算処理装置(以下CPUと略称す
る)、2はCPUメモリ、3はシーケンスプログラ
ムローダで、シーケンスプログラムロータインタ
フエース4を介してバス10に接続している。こ
のプログラムロータ3は、シーケンスプログラム
のロード、追加や削除等の修正、表示、サーチ等
の機能を行う装置である。点線で囲んだ論理部5
は論理バスインタフエース51と、このインタフ
エース51とは論理バス11を介して接続された
論理演算部52、制御情報部53、シーケンスプ
ログラムメモリ54より構成されている。6は
RIO制御部で、バス10に接続され、外部機器
(図示省略)との制御信号の受授を司どる役目を
する。このようなシーケンス装置に、今、下記の
表−1に示すシーケンスプログラムをシーケンス
プログラムローダ3よりロードする。
The present invention relates to a sequence program display device for a general-purpose sequencer for use in electric power, substation, water treatment, and general industries. The sequence device is shown in FIG. In the figure, 1 is a central processing unit (hereinafter abbreviated as CPU), 2 is a CPU memory, and 3 is a sequence program loader, which are connected to a bus 10 via a sequence program rotor interface 4. The program rotor 3 is a device that performs functions such as loading sequence programs, corrections such as additions and deletions, display, and searches. Logic part 5 surrounded by dotted line
is composed of a logical bus interface 51, and a logical operation section 52, a control information section 53, and a sequence program memory 54 connected to this interface 51 via a logical bus 11. 6 is
The RIO control unit is connected to the bus 10 and serves to manage the exchange of control signals with external equipment (not shown). The sequence program shown in Table 1 below is now loaded into such a sequence device using the sequence program loader 3.
【表】
この表−1に示すシーケンスプログラムをロー
ドする際に、オブジエクトコードに変換してこの
オブジエクトコードを、プログラムローダ3、ロ
ーダインタフエース4、バス10、論理部バスイ
ンタフエース51、バス11を介してシーケンス
プログラムメモリ54に第2図に示すように格納
される。
第2図において、0bit〜11bitまではオペラ
コードを示し、12bit〜15bitまではオペコー
ドを示している。そして、例えば0番地から6番
地までをNo.1ライン、7番地から15番地までをNo.
2ライン、……というように格納されている。
このように格納されたシーケンスプログラムを
プログラムローダ3に表示する場合、“1”、
“0”のコードで表示していた。例えば、第2図
の5番地に示す「*M1702A」を表示する場合
に、“1 000 011 111 000 010”という表示をし
ていた。オペレータは、このコードを見て翻訳し
て「*M1702A」であるかどうかを確認してい
た。このように“1”、“0”のコードで表わされ
たものを、オペレータが翻訳する作業は、時間が
かかるとともに、大変な労力を必要としていた。
また、近年システム規模の拡大や複雑化にともな
い、データ量も増加し翻訳も複雑化しているが、
このような表示方法では対処出来ないものであつ
た。
本発明は、上記事情に鑑みなされたもので、そ
の目的とするところは、シーケンス装置に記憶し
ているシーケンスプログラムを表示する場合、オ
ペレータが翻訳をする必要がなく、かつ作業時間
が短かくなるようなシーケンスプログラムの表示
装置を提供しようというものである。
以下本発明を第3図・第4図に基づいて詳述す
る。第3図はシーケンスプログラム表示装置で、
第1図のシーケンスプログラムローダ3の中に設
置される。
第3図において、31は表示器で、この例では
32キヤラクタ分表示出来るようになつている。32
はシフトレジスタで、後述の制御回路34からレ
ジスタ33を介して1番目のデータを入力する
と、そのデータを記憶し表示器31に表示すると
ともに、制御回路34に記憶完了のRDY信号を
出力する。制御回路34はRDY信号を基に、2
番目のデータをレジスタ33に出力すると、シフ
トレジスタ32は1番目のデータを左にシフト
し、レジスタ33のデータを1番目の記憶してい
た場所に記憶して表示器31に出力しと表示す
る。以下同様にして32キヤラクタ分表示する。こ
のように表示している状態のときに、端子T1よ
り右シフトの信号を入力すると、クロツクパルス
発生回路35からのクロツク信号に同期して、シ
フトレジスタ32に記憶しているデータを右に1
つシフトして記憶するとともに、右シフトの信号
は制御回路34にも入力して、表示するデータを
レジスタ33に出力する。シフトレジスタ32は
このデータを左端に記憶して、表示器31に表示
する。また端子T2より左シフトの信号が入力し
た場合も同様である。
一点鎖線で囲んだ制御回路34は、制御部Sと
コード変換回路Kとキヤラクタメモリ回路M1及
び1ライン分メモリ回路M2から構成される。制
御部Sは、端子T3よりラインNo.の信号を入力す
ると、第1図に示すシーケンスプログラムメモリ
54から、該当するラインNo.のデータを1ライン
分入力して1ライン分メモリ回路M2に記憶す
る。そしてこのメモリ回路M2から1ワードづつ
取り出して、コード変換回路Kを介して数キヤラ
クタに変換してキヤラクタメモリ回路M1に記憶
する。このコード変換回路Kは“1”、“0”で表
わされる1ワードのデータを、翻訳して数キヤラ
クタのコードに変換するものである。例えば第2
図の5番地に“1 000 011 111 000 010”の1
ワードのデータを翻訳すると「*M1702A」とな
る。これを“052”(*)、“115”(M)、“061”
(1)、“067”(7)、“060”(0)、“062”(2)、“101
”(A)
の7キヤラクタ分のアスキーコード(ASCII
CODE)に変換して、第4図に示すようにキヤラ
クタメモリ回路M1に記憶する。このキヤラクタ
メモリ回路M1は256〜512個のキヤラクタをたく
わえることが出来る。もし、1ライン分のデータ
が64ワードであるならば448個(64×7=448)の
キヤラクタが、キヤラクタメモリ回路M1にたく
わえられる。そして制御部Sはこのたくわえられ
たキヤラクタメモリ回路M1から1データづつ取
り出して、レジスタ33に出力しシフトレジスタ
32はこのデータを取り込みRDY信号を制御部
Sに返えすと、次のデータをレジスタ33に出力
する。この時、制御部Sは、最初に出力したキヤ
ラクタメモリ回路M1のフアーストアドレスF・
Pを記憶している。またデータが次次に出力さ
れ、32キヤラクタ目を出力すると、この最後に出
力したキヤラクタメモリ回路M1のラストアドレ
スL・Pを記憶する。今、ラストアドレスL・P
が第4図のコード“060”を示しているとする。
このときに、端子T2より左シフトの信号が制御
部Sに入力すると制御部Sは、ラストアドレス
L・P=ラストアドレスL・P+1を実行して
“062”のコードを示し、レジスタ33にこのデー
タを出力する。フアーストアドレスF・Pもフア
ーストアドレスF・P=フアーストアドレス+1
を実行したアドレスとなつている。
以上のように構成されたものにおいて、次に動
作を説明する。
シーケンスプログラムメモリ54には、第2図
で示すコードエリアの他、メモリアドレスを有し
ており、また各ラインは+、×、→、I、Oなど
の要素分のメモリエリアを有しているためその指
定および読み出しはメモリアドレスに対するリー
ド、ライト命令で行なわれる。
したがつて、ローダ3としてのキートツプから
のライン指定が入力されると、内部論理では、そ
れがメモリエリアのあるアドレスに変換される。
すなわち今、端子T3よりラインNo.の信号が制御
部Sに入力すると、制御部Sはシーケンスプログ
ラムメモリ54より、入力したラインNo.の信号に
該当する1ライン分のデータを、1ライン分メモ
リ回路M2に記憶する。このメモリ回路M2に記
憶したデータを1ワードづつ取り出し、コード変
数回路Kを介して数キヤラクタ分のコードに変換
し、キヤラクタメモリ回路M1に記憶し、これを
1ライン分のデータ全てに対して行う。そしてキ
ヤラクタメモリ回路M1から1データづつ取り出
してレジスタ33に出力する。シフトレジスタ3
2は、このレジスタ33のデータを記憶して行
き、32キヤラクタ分シフトレジスタ32が記憶す
ると、この記憶したデータを表示器31に出力し
表示する。この時、端子T1より右シフトの信号
を入力すると、制御部Sはフアーストアドレス
F・P=フアーストアドレスF・P−1を実行し
てフアーストアドレスF・Pにあるデータををレ
ジスタ33に出力する。シフトレジスタ32は記
憶しているデータを右に1つシフトし、左端にレ
ジスタ33のデータを入力して、表示器31に表
示する。
また端子T3より左シフトの信号を入力する
と、制御部Sは、ラストアドレスL・P=ラスト
アドレスL・P+1を実行して、ラストアドレス
L・Pにあるデータをレジスタ33に出力する。
シフトレジスタ32は記憶しているデータを左に
1つシフトして、右端にレジスタ33のデータを
入力して表示器31に表示する。
このようにして端子T1,T2より、左右シフ
トの信号を入力することにより、シーケンスプロ
グラムのメモリ54に記憶しているデータを迅速
に捜し出すことが出来る。そして、表示器31に
表示するデータを、1ライン分のデータを回して
表示することもできるとともに、メモリエリア
(シーケンスプログラム収納用メモリ)と表示器
とがチエインで結合されているため、左右のシフ
ト指示でラインNO単位のデータ内容を連続して
表示させることもできる。またシフトの速度もク
ロツクパルス発生回路35の速度切替スイツチ
SWを切換えることにより行うことができる。
以上のように、本発明はシーケンスプログラム
が複雑なコードでシーケンスプログラムメモリに
記憶され、この記憶したコードをオペレータが翻
訳して判断することなく、オペレータが見易い形
で表示することができるとともに、左右シフト機
能より迅速に必要とするデータを表示することが
でき、オペレータの作業時間を短縮するととも
に、多量のデータをも取扱うことが可能となる等
の優れた利点を有するものである。[Table] When loading the sequence program shown in Table 1, it is converted into an object code and the object code is sent to the program loader 3, loader interface 4, bus 10, logic section bus interface 51, bus 11 to the sequence program memory 54 as shown in FIG. In FIG. 2, bits 0 to 11 indicate opera codes, and bits 12 to 15 indicate op codes. For example, numbers 0 to 6 are the No. 1 line, and numbers 7 to 15 are the No. 1 line.
2 lines, etc. are stored. When displaying the sequence program stored in this way on the program loader 3, “1”,
It was displayed as a code of “0”. For example, when displaying "*M1702A" shown at address 5 in FIG. 2, "1 000 011 111 000 010" was displayed. The operator looked at this code and translated it to see if it was "*M1702A". The work of an operator to translate what is represented by the codes of "1" and "0" in this way is time consuming and requires a great deal of effort.
Additionally, as systems have expanded in scale and become more complex in recent years, the amount of data has increased and translation has become more complex.
Such a display method could not deal with the problem. The present invention has been made in view of the above circumstances, and its purpose is to eliminate the need for an operator to translate when displaying a sequence program stored in a sequence device, and to shorten the working time. The purpose is to provide a display device for such sequence programs. The present invention will be described in detail below with reference to FIGS. 3 and 4. Figure 3 shows the sequence program display device.
It is installed in the sequence program loader 3 shown in FIG. In Fig. 3, 31 is a display, in this example
It is now possible to display 32 characters. 32
is a shift register which, when first data is input from a control circuit 34 (described later) via a register 33, stores the data and displays it on the display 31, and outputs an RDY signal indicating completion of storage to the control circuit 34. Based on the RDY signal, the control circuit 34
When the th data is output to the register 33, the shift register 32 shifts the 1st data to the left, stores the data in the register 33 in the location where the 1st data was stored, and displays on the display 31 that the data should be output. . Below, 32 characters are displayed in the same manner. When a right shift signal is input from the terminal T1 in this display state, the data stored in the shift register 32 is shifted to the right by 1 in synchronization with the clock signal from the clock pulse generation circuit 35.
At the same time, the right shift signal is also input to the control circuit 34, and the data to be displayed is output to the register 33. The shift register 32 stores this data at the left end and displays it on the display 31. The same holds true when a left shift signal is input from the terminal T2. A control circuit 34 surrounded by a dashed line includes a control section S, a code conversion circuit K, a character memory circuit M1, and a one-line memory circuit M2. When the control unit S inputs a line number signal from the terminal T3, it inputs data for one line of the corresponding line number from the sequence program memory 54 shown in FIG. 1, and stores the data for one line in the memory circuit M2. do. Then, one word at a time is extracted from this memory circuit M2, converted into several characters via a code conversion circuit K, and stored in the character memory circuit M1. This code conversion circuit K translates one word of data represented by "1" and "0" into a code of several characters. For example, the second
1 of “1 000 011 111 000 010” at address 5 in the diagram
Translating the word data becomes "*M1702A". Change this to “052” (*), “115” (M), “061”
(1), “067” (7), “060” (0), “062” (2), “101”
”(A)
7 characters of ASCII code (ASCII
CODE) and stored in the character memory circuit M1 as shown in FIG. This character memory circuit M1 can store 256 to 512 characters. If one line of data is 64 words, 448 (64×7=448) characters are stored in the character memory circuit M1. Then, the control section S takes out data one by one from the stored character memory circuit M1 and outputs it to the register 33.The shift register 32 takes this data and returns the RDY signal to the control section S, and then the next data is input to the register. Output to 33. At this time, the control unit S controls the first address F of the character memory circuit M1 that was first output.
I remember P. Further, data is outputted one after another, and when the 32nd character is outputted, the last address L and P of the last outputted character memory circuit M1 is stored. Now, last address L.P.
Assume that the code “060” in FIG. 4 is shown.
At this time, when a left shift signal is input to the control unit S from the terminal T2, the control unit S executes the last address L・P=last address L・P+1, indicates the code “062”, and stores this in the register 33. Output data. First address F・P also first address F・P = first address +1
This is the address where the command was executed. The operation of the device configured as described above will be explained next. In addition to the code area shown in FIG. 2, the sequence program memory 54 has memory addresses, and each line has memory areas for elements such as +, ×, →, I, and O. Therefore, its designation and reading are performed by read and write commands for memory addresses. Therefore, when a line designation is input from the key top as the loader 3, the internal logic converts it to a certain address in the memory area.
That is, when a line number signal is input to the control unit S from the terminal T3, the control unit S stores one line of data corresponding to the input line number signal from the sequence program memory 54 into one line of memory. Stored in circuit M2. The data stored in the memory circuit M2 is extracted one word at a time, converted into a code for several characters via the code variable circuit K, and stored in the character memory circuit M1. This is applied to all the data for one line. conduct. Then, data is extracted one by one from the character memory circuit M1 and output to the register 33. shift register 3
2 stores the data in this register 33, and when the shift register 32 stores 32 characters, the stored data is output to the display 31 and displayed. At this time, when a right shift signal is input from the terminal T1, the control section S executes the first address F.P=first address F.P-1 and transfers the data at the first address F.P to the register 33. Output to. The shift register 32 shifts the stored data one place to the right, inputs the data in the register 33 to the left end, and displays it on the display 31. Further, when a left shift signal is input from the terminal T3, the control section S executes the last address L.P=last address L.P+1 and outputs the data at the last address L.P to the register 33.
The shift register 32 shifts the stored data by one position to the left, inputs the data in the register 33 to the right end, and displays it on the display 31. By inputting the left/right shift signals from the terminals T1 and T2 in this manner, the data stored in the sequence program memory 54 can be quickly retrieved. The data to be displayed on the display 31 can be displayed by rotating one line of data, and since the memory area (memory for storing sequence programs) and the display are connected in a chain, the left and right It is also possible to continuously display the data contents for each line number by giving a shift instruction. The speed of the shift is also determined by the speed changeover switch of the clock pulse generation circuit 35.
This can be done by switching SW. As described above, according to the present invention, a sequence program is stored in a sequence program memory as a complex code, and the stored code can be displayed in an easy-to-read format for the operator without the operator having to translate and judge it. This function has excellent advantages such as being able to display the required data more quickly than the shift function, shortening the operator's work time, and being able to handle a large amount of data.
第1図はシーケンス装置を示した構成図、第2
図はシーケンス装置のシーケンスプログラムメモ
リを示したマツプ図、第3図は本発明の一実施例
を示した構成図、第4図は本発明を説明するため
のキヤラクタメモリ回路M1のマツプ図である。
1はCPU、2はCPUメモリ、3はプログラムロ
ーダ、4はプログラムローダインタフエース、5
は論理部、51は論理バスインタフエース、52
は論理演算部、53は制御情報部、54はシーケ
ンスプログラムメモリ、6はPIO制御部、31は
表示器、32はシフトレジスタ、33はレジス
タ、34は制御回路、35はクロツクパルス発生
器、Sは制御部、Kはコード変換回路、M1はキ
ヤラクタメモリ回路、M2は1ライン分メモリ回
路。
Figure 1 is a configuration diagram showing the sequence device, Figure 2
FIG. 3 is a map diagram showing the sequence program memory of the sequence device, FIG. 3 is a configuration diagram showing an embodiment of the present invention, and FIG. 4 is a map diagram of the character memory circuit M1 for explaining the present invention. be.
1 is the CPU, 2 is the CPU memory, 3 is the program loader, 4 is the program loader interface, 5
is a logic section, 51 is a logic bus interface, 52
53 is a logic operation section, 53 is a control information section, 54 is a sequence program memory, 6 is a PIO control section, 31 is a display, 32 is a shift register, 33 is a register, 34 is a control circuit, 35 is a clock pulse generator, S is a In the control section, K is a code conversion circuit, M1 is a character memory circuit, and M2 is a memory circuit for one line.
Claims (1)
ーケンスプログラムのオブジエクトコードをシー
ケンスプログラムメモリにロードし、このロード
されたシーケンスプログラムをプログラムローダ
に表示するものにおいて、前記プログラムローダ
にキヤラクタを表示する表示器と、この表示器に
記憶信号を出力し、且つクロツクパルス発生回路
よりのクロツク信号に同期したシフト信号によつ
て記憶信号を左右にシフトするシフトレジスタ
と、このシフトレジスタにレジスタを介して信号
を出力する制御回路とを設け、この制御回路を前
記シーケンスプログラムメモリよりの1ライン分
データを格納する1ラインメモリ部と、このメモ
リ部の1ライン分データをキヤラクタに変換する
コード変換部と、この変換部にて変換されたキヤ
ラクタをキヤラクタメモリ部に格納し、前記シフ
ト信号に基きキヤラクタメモリ部のキヤラクタを
選出し前記レジスタに出力する制御部とで制御回
路を構成したことを特徴とするシーケンスプログ
ラムの表示装置。1. In a sequencer device that loads the object code of a sequence program from a program loader into a sequence program memory and displays the loaded sequence program on the program loader, a display device that displays a character on the program loader; A shift register that outputs a storage signal to a display and shifts the storage signal left and right using a shift signal synchronized with a clock signal from a clock pulse generation circuit, and a control circuit that outputs a signal to this shift register via the register. A one-line memory section that stores one line of data from the sequence program memory, a code conversion section that converts one line of data in this memory section into a character, and a code conversion section that converts the control circuit into a character. A display of a sequence program characterized in that a control circuit is configured by a control section that stores a converted character in a character memory section, selects a character in the character memory section based on the shift signal, and outputs it to the register. Device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8215781A JPS57197611A (en) | 1981-05-29 | 1981-05-29 | Display device for sequence program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8215781A JPS57197611A (en) | 1981-05-29 | 1981-05-29 | Display device for sequence program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57197611A JPS57197611A (en) | 1982-12-03 |
| JPS6217243B2 true JPS6217243B2 (en) | 1987-04-16 |
Family
ID=13766593
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8215781A Granted JPS57197611A (en) | 1981-05-29 | 1981-05-29 | Display device for sequence program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57197611A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57206905A (en) * | 1981-06-15 | 1982-12-18 | Hitachi Ltd | Sequence forming device |
-
1981
- 1981-05-29 JP JP8215781A patent/JPS57197611A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57197611A (en) | 1982-12-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4623961A (en) | Programmable controller having automatic contact line solving | |
| US3810104A (en) | Programmable magnetics for a numerical control system | |
| US3969704A (en) | Word transformation apparatus for digital information processing | |
| JPS6217243B2 (en) | ||
| US5155826A (en) | Memory paging method and apparatus | |
| US4408276A (en) | Read-out control system for a control storage device | |
| JPH0272408A (en) | Programmable controller | |
| JPS6150360B2 (en) | ||
| JPS6019538B2 (en) | Program writing method | |
| JP2898181B2 (en) | Waveform editing method | |
| JPH0445069Y2 (en) | ||
| JPS60225253A (en) | Information processing device | |
| SU732934A1 (en) | Data display on the screen of cathode ray tube | |
| JPS6143883B2 (en) | ||
| SU491952A1 (en) | Device for exchanging information between RAM and processor | |
| JPH0637339Y2 (en) | Waveform storage | |
| JPH0764821A (en) | Stored contents display device for memory | |
| JPS6111493B2 (en) | ||
| JPS63316205A (en) | Data converter | |
| JPS6131888B2 (en) | ||
| Moore | Modern Electronics for Geotechnical Engineers: 7. Introduction to Microprocessors | |
| JPH05289939A (en) | Memory expansion method | |
| JPS5927302A (en) | Programmable controller | |
| JPH0766032B2 (en) | Test system | |
| JPH0532781B2 (en) |