JPS5929882B2 - sequence controller - Google Patents

sequence controller

Info

Publication number
JPS5929882B2
JPS5929882B2 JP53105749A JP10574978A JPS5929882B2 JP S5929882 B2 JPS5929882 B2 JP S5929882B2 JP 53105749 A JP53105749 A JP 53105749A JP 10574978 A JP10574978 A JP 10574978A JP S5929882 B2 JPS5929882 B2 JP S5929882B2
Authority
JP
Japan
Prior art keywords
program
key
memory
command
input
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
Application number
JP53105749A
Other languages
Japanese (ja)
Other versions
JPS5532182A (en
Inventor
恵輔 河島
秀明 中村
善胤 斉藤
憲治 錦戸
清人 平瀬
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP53105749A priority Critical patent/JPS5929882B2/en
Publication of JPS5532182A publication Critical patent/JPS5532182A/en
Publication of JPS5929882B2 publication Critical patent/JPS5929882B2/en
Expired legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 本発明は歩進型のシーケンスコントローラに関する。[Detailed description of the invention] The present invention relates to a stepwise sequence controller.

シーケンスコントローラには歩進型と走査型とがある。
歩進型は制御プログラムの或るステップに対応した動作
が完了すると、その完了の検出信号によつてプログラム
がーステップ歩進せしめられて次のステップの動作が開
始されるように制御を行うものである。走査型は被制御
系の状態を示すデータが制御装置の入力装置に入力され
ており制御装置は常時繰返して入力装置を走査して被制
御系の状態を検知し、その状態に対応して定められた制
御を行うようになつている。走査型は制御が事実上連続
的であるような制御が可能であるが制御プログラムの作
成が難しく制御装置も複雑高価なものとなる。歩進型の
制御装置では被制御系の動作は段階的となり、時にはぎ
こちない制御しかできないと云う弱点もあるが、プログ
ラムの作成が簡単で誰にでも作ることができ制御装置も
比較的安価である上、実際上段階的制御で充分な被制御
対象も多いので、そのような対象に対しては大へん経済
的なシーケンスコントローラである。本発明は上述した
歩進型シーケンスコントローラを対象としたものであり
、従来この型のシーケンスコントローラはプログラムを
作成しこれを制御装置(シーケンスコントローラ)に入
力させるのにピンボードとピンを用いていたのを、キー
ボードに並ぺた幾つかのキーの操作によつてプログラム
を制御装置に入力し得るようにすることを目的としてな
されたものである。
There are two types of sequence controllers: progressive type and scanning type.
The step-by-step type controls in such a way that when the operation corresponding to a certain step of the control program is completed, the program is caused to advance one step by the completion detection signal and the operation of the next step is started. be. In the scanning type, data indicating the state of the controlled system is input to the input device of the control device, and the control device constantly scans the input device to detect the state of the controlled system and determines the state according to the state. It is now possible to carry out controlled controls. The scanning type allows virtually continuous control, but it is difficult to create a control program and the control device is complicated and expensive. Step-by-step control devices have the disadvantage that the controlled system operates in stages and can sometimes only be controlled in a clumsy manner, but the program is easy to create, anyone can create one, and the control device is relatively inexpensive. Moreover, since there are many controlled objects for which stepwise control is actually sufficient, the sequence controller is very economical for such objects. The present invention is directed to the above-mentioned step-type sequence controller. Conventionally, this type of sequence controller used a pin board and pins to create a program and input it to a control device (sequence controller). The purpose of this design was to enable a program to be input to a control device by operating several keys arranged on a keyboard.

ピンボード式のシーケンスコトローラではプカグラムの
各ステツプ毎にピンボードの所定段のピン孔の所定位置
にピンを挿入することによりプログラムをシーケンスコ
ントローラに入力させるので、作成したプログラムの全
体がピンの配置によつて表示されていると云う利点があ
る反面、ピンの接触不良のため信頼性が充分でなく、ピ
ンが多数要るのでその管理が面倒であり、プログラムの
ステツプ数が多い場合、ピンボードの面積力状となる等
の欠点がある。
With a pinboard type sequence controller, the program is input to the sequence controller by inserting a pin into a predetermined position of a pin hole in a predetermined stage of the pinboard for each step of the Pukagram, so the entire program created is based on the pin arrangement. Although it has the advantage of being displayed by the pin board, it is not reliable enough due to poor pin contact, requires a large number of pins, and managing them is troublesome. There are disadvantages such as an area force of .

本発明によればプログラムをキーボードにおけるキーの
操作でシーケンスコントローラに入力できるのでピンの
管理、ピンの接触不良、プログラムのステツプ数が多く
なると大きなピンボードを有するシーケンスコントロー
ラとしなければならないと云つた問題がなくなり、管理
、信頼性、価格(殊にプログラムステツプ数の多い場合
)の面でピンボード式のものより優れたものが得られる
ことになる。しかしながらキー操作によりプログラムを
入力させる方式ではキーを押す順序を間違えたり全く誤
つたキーを押したりする可能性があり、そのような誤操
作により命令のフオーマツトが乱れ命令として全く無意
味なものが入力されることになるので、キー操作を誤ら
ないようにすることが必要となる。他方オペレータの操
作結果は装置の表示面に表示され、オペレータはその表
示を読み取つて自分の操作の正否を判断できる筈である
が、表示面に出るのは命令やデータをコード化した符号
であるから、熟練したオペレータであつても、表示を見
ただけで直ちに自分の誤りに気付くと云うことは困難で
あり間違いに気付かないま\プログラムの書込み等を続
ける可能性がある。従つて本発明はキー操作によつてプ
ログラムを入力する方式の歩進型シーケンスコントロー
ラであつて、上述した問題点を解決するため、操作に誤
りがあつた場合、装置がその誤操作を検知して警告を発
し、オペレータに誤操作を気付かせるようにしたシーケ
ンスコントローラを提供するものである。
According to the present invention, a program can be input to a sequence controller by operating keys on a keyboard, so problems such as pin management, poor pin contact, and the need for a sequence controller with a large pin board when the number of steps in a program increases. This eliminates the need for a pinboard system in terms of management, reliability, and cost (especially when the number of program steps is large). However, with the method of inputting programs by key operations, there is a possibility of pressing the keys in the wrong order or pressing the wrong key altogether, and such erroneous operations can disrupt the format of the commands and cause completely meaningless commands to be input. Therefore, it is necessary to avoid making mistakes in key operations. On the other hand, the result of the operator's operation is displayed on the display screen of the device, and the operator should be able to read the display and judge whether his or her operation is correct or not, but what appears on the display screen are codes that encode commands and data. Therefore, even if an operator is a skilled operator, it is difficult to immediately notice his/her mistake just by looking at the display, and there is a possibility that he/she may continue writing the program without noticing the mistake. Therefore, the present invention is a step-by-step sequence controller in which a program is input by key operation, and in order to solve the above-mentioned problems, when an error occurs in the operation, the device detects the erroneous operation. The present invention provides a sequence controller that issues a warning and makes an operator aware of an erroneous operation.

以下実施例により本発明を説明する。第1図は本発明の
一実施例のシーケンスコントカーラの操作パネルの正面
図である。パネルの右下隅にある一群のキー1は命令、
データ等の入力キーで数字を記入したキーは命令の入力
とデータ数字の入力の両方兼用になつており、ローマ字
の記入されたキーは操作用のキーである。左下の上下二
段の表示部2,3は出力端子表示ランプの列で1番から
32番までの32個あり或るプログラムステツプで指定
された出力端子を示す位置のランプが点灯するようにな
つている。右上の二段の表示部4,45は入力端子表示
ランプの列でやはり1番から32番まであり、或るプロ
グラムステツプで指定されている入力端子に入力が加わ
つたとき対応するランプが点灯する。表示部3の下にあ
る数字表示部5は4個の枠51,52,53,54に分
れており、一番左の枠51は2枠でステツプ番号を表示
し、その右の枠52は命令の種類を1桁の数で表わし図
の例の4と云う数字は例えばアンドの命令を意味する。
この命令語とそのコード数字との対訳表が数字部5の下
の枠6に記載してある。数字表示部5で左から3番目、
一番右の枠53,54は夫々2桁の数字で夫々がデータ
の数値を表わす。次に上記パネルにおける操作法の概略
を述べる。
The present invention will be explained below with reference to Examples. FIG. 1 is a front view of an operation panel of a sequence controller according to an embodiment of the present invention. The set of keys 1 in the lower right corner of the panel are commands,
The keys on which numbers are written as input keys for data etc. are used for both inputting commands and inputting data numbers, and the keys on which Roman letters are written are keys for operation. The two upper and lower display sections 2 and 3 at the bottom left are rows of output terminal indicator lamps, numbered 32 from 1 to 32.The lamp at the position indicating the output terminal specified in a certain program step will light up. ing. The two rows of display sections 4 and 45 on the upper right are a row of input terminal indicator lamps numbered 1 to 32, and when an input is applied to the input terminal specified in a certain program step, the corresponding lamp lights up. . The number display section 5 below the display section 3 is divided into four frames 51, 52, 53, and 54. The leftmost frame 51 displays the step number in two frames, and the right frame 52 displays the step number. represents the type of instruction as a one-digit number, and the number 4 in the example shown in the figure means, for example, an AND instruction.
A bilingual table of the command word and its code number is written in the frame 6 below the number section 5. 3rd from the left in number display section 5,
The rightmost frames 53 and 54 are each two-digit numbers, each representing a numerical value of data. Next, we will outline the operation method for the above panel.

プログラムの書込み。まず電源スイツチPSをオン側に
倒し、次にプログラムコンソールスイツチCSをオン側
に入れ、次にステツプを″00にするためスイツチS2
をりセツト側に一度倒す。また、こ\でプログラムを記
憶するメモリはすべてクリアされているものとする。そ
してプログラムの各ステツプを順次入力して行く。プロ
グラムの各ステツプは書込みの始めにキー群中のINS
のキーを押し次に命令のキーを押す。各ステツプの命令
は必ず一語なのでINSのキーの次に押す数字キーは自
動的に命令の入力操作となり、その次以降のキー操作は
自動的にデータの入力となる。従つて同じキーが書込み
操作時押された順位によつて命令入力用として働き或は
データ記入用として働く。まず第0ステツプの命令を書
込む。INSのキーを押し、ついで数字2のキーを押す
。数字2のキーはリターン即ち出発点に戻れの命令で、
数字表示部の左から第1枠51ば00の、第2枠52は
62″となり第0ステツプはこれだけで次にR/Wのキ
ーを押す。これはメモリへの読出し書込みを指令のキー
で、メモリにはリターンの命令が記入され、R/Wのキ
ーを押すことによりステツプが自動的に歩進せしめられ
数字表示部の第1枠51の表示は6011となり他の枠
は全部0となる。こ\で第1ステツプの命令を入力する
。このステツプが例えば入力端子1と3の入力のアンド
によつて出力端子2と4に出力を出すと云う内容であれ
ば、まず形通りINSのキーを押しアンドの命令を示す
数字卓−4を押すと数字表示部の枠51の表示が4とな
る゛。命令は一語に限られるから次に押すキーは当然に
データの入力操作となる。今の場合入力端子1と3の入
力のアンドを採れと云う命令なので数字キー″00次に
″1をを押す。数字表示部の枠53の表示が01となり
、次に数字キー゛O”を押し次いで゛4”を押すと数字
表示部の枠54の表示が04となつて、数字表示部はプ
ログラムの第1ステツプの内容を6アンド”″01”″
04”と表示する。次に出力端子を指定すると云う意味
で0UTのキーを押すと表示部3の数字1のランプが点
滅する。次に0FFのキーを押すと表示部3の数字1の
上のランプは消え数字2の上のランプが点滅する。次に
0Nのキーを押すと数字2の上のランプが点灯して出力
端子2に出力すべしと云う命令内容が表示される。出力
は端子2と4とになされるので再び0FFのキーを押す
。そこで上記OFFキーを押すことで表示部3の数字3
の上のランプは消え、次に0Nのキーを押すことにより
4番目のランプが点灯し4番目の出力端子が指定された
ことになる。これで第1ステツプの命令の構成が終つた
のでR/Wのキーを押して第1ステツプの命令をメモリ
に記入すると共にプログラムのステツプを一段歩進させ
て数字表示部5の第1枠51は802”を表示する。以
下上述したような操作により1ステツプずつプログラム
内容がメモリに入力されて行く。このようにして最後の
ステツプがプログラムの全部を15回繰返して実行せよ
と云う内容であるとすると、次の順序でキーを押す。「
INS」 「8」(繰返せの命令のコード番号)「1」
.「5」,(15回を意味する)「O」「1」(プログ
ラムのステツプ1からの意、即ちステツプ゛1からこの
ステツプまでを15回繰返すことになる。)「R/W」
と云うように押す。プログラムの形式上の最後は「EN
D」の命令で上記繰返しの命令の次のステツプで「IN
S」 ,「END」 ,「R/W」の順のキー操作で全
プログラムの記入が終る。次に上記したプログラムを実
行させるには、プログラムコンソールスイツチCSを0
FF側に倒し、スイツチS1を6自動0側に倒し、スタ
ートスイツチS3を下へー度倒す。
Program writing. First, turn the power switch PS to the on side, then turn the program console switch CS to the on side, and then turn the switch S2 to set the step to ``00''.
Flip it once to the reset side. Also, it is assumed that all memory for storing programs has been cleared. Then, input each step of the program in sequence. Each step of the program starts with INS in the key group at the beginning of writing.
Press the key and then press the command key. Since the command for each step is always one word, pressing the numeric key after the INS key automatically becomes a command input operation, and subsequent key operations automatically become data input. Therefore, the same key can function either for command input or for data entry, depending on the order in which it is pressed during a write operation. First, write the instruction for the 0th step. Press the INS key, then press the number 2 key. The number 2 key is a return command, that is, a command to return to the starting point.
From the left of the number display section, the first frame 51 is 00, and the second frame 52 is 62''. This is all you need to do at the 0th step, and then press the R/W key. , a return command is written in the memory, and by pressing the R/W key, the step is automatically advanced, and the display in the first frame 51 of the number display section becomes 6011, and all other frames become 0. Here, enter the command for the first step.For example, if this step is to output output to output terminals 2 and 4 by ANDing the inputs of input terminals 1 and 3, first input the INS as expected. When you press the key and press 4, which indicates the AND command, the display in the frame 51 of the numeric display section becomes 4.Since the command is limited to one word, the next key you press will naturally be a data input operation. In this case, the command is to AND the inputs of input terminals 1 and 3, so press the number key "00" and then "1".The display in the frame 53 of the number display section becomes 01, and then the number key "O" is pressed. When you press , and then press ``4'', the display in the frame 54 of the numeric display becomes 04, and the numeric display shows the content of the first step of the program by 6 and ``01''.
04" will be displayed. Next, press the 0UT key to specify the output terminal, and the lamp with the number 1 on the display section 3 will blink. Next, press the 0FF key, and the lamp above the number 1 on the display section 3 will flash. The lamp disappears and the lamp above the number 2 flashes.Next, when you press the 0N key, the lamp above the number 2 lights up and the command content to output to the output terminal 2 is displayed.The output is Terminals 2 and 4 are connected, so press the 0FF key again.Then, by pressing the OFF key, the number 3 on the display section 3 will change.
The lamp above goes out, and then by pressing the 0N key, the fourth lamp lights up, indicating that the fourth output terminal has been designated. Now that the configuration of the first step command is complete, press the R/W key to write the first step command in the memory and advance the program step one step. 802'' will be displayed.The program contents will be input into the memory step by step by the operations described above.In this way, if the last step is to repeat the entire program 15 times, Then press the keys in the following order:
INS” “8” (Repeat instruction code number) “1”
.. "5" (means 15 times) "O""1" (means from step 1 of the program, that is, steps from step 1 to this step will be repeated 15 times.) "R/W"
Press as if saying. The formal end of the program is “EN
In the next step of the above repeated command with the command "D", "IN
Entering the entire program is completed by key operations in the order of ``S'', ``END'', and ``R/W''. Next, to run the above program, set the program console switch CS to 0.
Turn it to the FF side, turn the switch S1 to the 6-auto 0 side, and turn the start switch S3 down one degree.

これでプログラムの実行が開始される。プログラム実行
中は数字表示部5の右にある表示灯55が点灯している
。数字表示部5の各枠は今実行しつ\あるプログラムス
テツプの番号、プログラム内容等を数字で表示している
。例えば第1ステツプを実行中は数字喪示部5の第1枠
51には01の数字が出て第1ステツプであることを示
し、このステツプの命令がANDであるときは第2枠5
2は04の数字を示し、AND条件が成立すべき二つの
入力端子が1番と3番とであると数字表示部の第3枠5
3には01の数字が、また第4枠54には03の数字が
表われる。この第1ステツプでは指定された出力端子2
,4へ出力が出されるとともに表示部2のランプ2,4
が点灯する。第1ステツプは入力端子1と3とに共に入
力信号が入つたらプログラムはーステツプ進行して数字
表示部等の表示は第2ステツプの内容表示に変わるとと
もに第2ステツプの実行が開始される。即ちプログラム
の進行は或るステツプの命令内容即ち設定条件が成立す
るとステツプが歩進されて次段のステツプの実行に移る
。第2図は上述装置の内部構成を示すプロツク図である
The program will now start running. While the program is being executed, the indicator light 55 to the right of the number display section 5 is lit. Each frame of the numerical display section 5 numerically displays the number of the program step currently being executed, the contents of the program, etc. For example, while the first step is being executed, the number 01 appears in the first frame 51 of the numeric indicator 5, indicating that it is the first step, and when the command for this step is AND, the number 01 appears in the first frame 51 of the numeric indicator 5
2 indicates the number 04, and if the two input terminals that should satisfy the AND condition are No. 1 and No. 3, the third frame 5 of the number display section
The number 01 appears in 3, and the number 03 appears in the fourth frame 54. In this first step, the specified output terminal 2
, 4, and the lamps 2, 4 of the display section 2.
lights up. In the first step, when input signals are input to both input terminals 1 and 3, the program advances through the first step, and the display of the numeric display section changes to the content display of the second step, and the execution of the second step is started. That is, as the program progresses, when the command contents of a certain step, that is, the setting conditions are satisfied, the step is incremented and the next step is executed. FIG. 2 is a block diagram showing the internal structure of the above-mentioned apparatus.

CPU″と記入されたプロツクはこの装置における中央
制御装置でマイクロコンピユータであり、Mはこのシー
ケンス制御装置が実行すべきプログラムを記憶させるメ
モリで前述したプログラム書込み操作でプログラムが記
憶せしめられている。今プログラムの或るステツプを実
行中でそのステツプで指定された出力を出しているもの
とする。そのときCPUはメモリMから上記ステツプの
命令を読出しCPU内のアキユームレータに記憶させて
おり、他方常時人力端子1NI−1Nnを走査してその
入力状態をセンスしておりこの入力状態とアキユームレ
ータに記憶させてあるそのステツプの命令中の入力端子
番号及び条件とをCPU内蔵の演算判別回路で比較し、
両者が一致したらメモリMのアドレス指定数に1を加え
て次のステツプを読出し、上と同様の操作を行う。即ち
この装置は外部負荷の制御については歩進型であるが内
部的には走査型のシーケンス制御を行つている。し込)
しこの走査型のシーケンス制御は外部に対して実行すべ
き動作とは無関係に上述したように一定しており、この
内部制御のプログラムはCPU内の読出し専用メモリ(
ROM)に記憶させてある。外部負荷を制御するプログ
ラムを書込む場合、CPUはROMからプログラム書込
み用の内部制御プログラムを読出し、そのプログラムに
従つて前述したパネルのキー群1及びコンソールスイツ
チCS、スイツチS2等が接続されている内部入力回路
の入力状態を繰返し走査する。正確にはCPUはROM
に書込まれた内部制御プログラムに従い外部入力回路1
Nの各入力端子INl〜INn及び内部入力端子に接続
されたコンソールスイツチCS、スイツチS2等の開閉
状態、キー群1等を走査し内部入力回路における入力状
態によつてプログラムの書込みかプログラムの実行かそ
の他の動作かを識別し内部入力回路の入力状態に応じて
夫々の動作が実行されるようになつている。今の場合内
部入力回路の入力状態がプログラム書込みとなつている
ので上述したようにキー群1と内部入力回路の走査のみ
が行われてキー群によりセツトされた命令は順次メモリ
Mに書込まれて行く。更にプログラムの書込み、実行そ
の他の作動において、CPUは書込み中のプカグラムの
ステツプの内容或は実行中のプログラムのステツプの内
容或はプログラム中の指定したステツプの内容等を数字
表示部5、表示部2,3等に表示する動作をROM内の
内部制御プログラムに従い実行している。要するにCP
UはROMに書込まれたCPU自身を制御する内部制御
プログラムによつて動作しており、内部入力回路の入力
状態によつてCPUを制御する内部制御プログラムが切
換わつて装置全体としての外部的動作が外部負荷制御プ
ログラムの書込み、同プログラムの実行等に切換わる。
The block marked "CPU" is the central control unit of this device, which is a microcomputer, and M is the memory for storing the program to be executed by this sequence control device, into which the program is stored by the program write operation described above. Assume that a certain step of a program is currently being executed and output specified by that step is being output.At this time, the CPU reads the instruction of the above step from memory M and stores it in the accumulator in the CPU. On the other hand, the human input terminals 1NI-1Nn are constantly scanned to sense their input states, and this input state and the input terminal number and conditions in the instruction of that step stored in the accumulator are used by the CPU's built-in arithmetic discrimination circuit. Compare with
If the two match, 1 is added to the number of addresses specified in memory M, the next step is read out, and the same operation as above is performed. That is, this device uses a step-by-step type of external load control, but internally performs a scanning-type sequence control. (Shikomi)
This scanning-type sequence control is constant as described above, regardless of the operations to be executed externally, and this internal control program is stored in the read-only memory (
It is stored in ROM). When writing a program to control an external load, the CPU reads an internal control program for program writing from the ROM, and according to the program, the above-mentioned panel keys 1, console switch CS, switch S2, etc. are connected. Repeatedly scans the input state of the internal input circuit. To be exact, the CPU is a ROM
External input circuit 1 according to the internal control program written in
Scans the open/close states of the console switch CS, switch S2, etc. connected to each input terminal INl to INn of N and the internal input terminal, and the key group 1, etc., and writes or executes the program depending on the input state of the internal input circuit. or other operations, and each operation is executed according to the input state of the internal input circuit. In this case, the input state of the internal input circuit is program writing, so as mentioned above, only key group 1 and the internal input circuit are scanned, and the commands set by the key group are sequentially written to memory M. Go. Furthermore, during program writing, execution, and other operations, the CPU displays the contents of the steps in the program being written, the contents of the steps in the program being executed, the contents of specified steps in the program, etc. on the numerical display section 5 and the display section. The operations displayed in 2, 3, etc. are executed according to an internal control program in the ROM. In short, C.P.
The U is operated by an internal control program written in the ROM that controls the CPU itself, and the internal control program that controls the CPU is switched depending on the input state of the internal input circuit to control the external control of the entire device. The operation switches to writing the external load control program, executing the program, etc.

また外部制御用のプログラムの実行においてステツプを
歩進させるステツプカウンタとしてランダムアクセスメ
モリRAMが用いられている。以上で本発明装置の正常
のプログラム書込み操作及びプログラム実行時の動作に
ついて概要の説明を終つたので、以下プログラム書込み
時の誤操作及びその時の装置の対応動作について説明す
る。プログラム書込み操作における誤操作としては例え
ば、一つのプログラムステツプの書込みはルwのキーを
押すことによつて終り表示部51の表示は次段のステツ
プ番号を表示する。次のステツプの命令の書込みはIN
Sのキーを押すことで始まるから、一般にR/Wのキー
を押した後はINSキーを押すべきであり、既に書込ん
だ何段か前のステツプの命令を確認したい、或はプログ
ラムを何段か飛して先のステツプに書込みをしたいと云
う時にはSETSTEPキーを押す。従つてル傳のキー
を押した後直ちに数字キーを押す操作は誤りである。ま
たINSのキーを押したときは命令を書込むのであるか
ら命令語のキー、今の例では命令語のキーは数字キーと
併用なので数字キー以外のキー例えばSETSTEPキ
ー或は0UTのキー(命令において出力キーを指定する
場合に押す)を押すのは誤りである。以上のような誤操
作が行われたときは装置は誤操作を検知して表示を点滅
させる等の視覚的方法で警告を発しオペレータの注意を
うながす。
Further, a random access memory RAM is used as a step counter that increments steps in the execution of an external control program. Since the general description of the normal program writing operation and the operation during program execution of the apparatus of the present invention has been completed above, the erroneous operation during program writing and the corresponding operation of the apparatus at that time will be explained below. An example of an erroneous operation in the program writing operation is, for example, when writing one program step by pressing the ``W'' key, the display on the display section 51 displays the next step number. Writing the next step command is IN.
Since it starts by pressing the S key, you should generally press the INS key after pressing the R/W key, or if you want to check the command of a step that has already been written, or if you want to change the program. If you want to skip a step and write to the next step, press the SETSTEP key. Therefore, it is wrong to press the number key immediately after pressing the key. Also, when you press the INS key, you are writing a command, so the command key is used.In this example, the command key is used in combination with the numeric keys, so you need to use keys other than the numeric keys, such as the SETSTEP key or the 0UT key (command key). It is a mistake to press ) to specify the output key in . When an erroneous operation as described above is performed, the device detects the erroneous operation and issues a visual warning such as flashing a display to draw the operator's attention.

又誤操作の結果は全くメモリに入力されず、書込み動作
は娯操作が行われる前の状態に止まつている。従つてオ
ペレータは表示部2,3,5の表示を見て、その表示に
よつて表わされている内容に継続する正しい操作を行え
ばよい。例えばINSのキーを押し次に数字キーを押す
べき所0UTのキーを押したときブザーが鳴るから、直
ちに所期の数字キーを押し直せばよい〇誤操作はプログ
ラム書込み操作だけでなく書込んだプログラムをステツ
プを遡つて表示させプログラムをチエツクするようなと
きにも起り得る。
Also, the result of the erroneous operation is not entered into the memory at all, and the write operation remains in the state it was in before the erroneous operation was performed. Therefore, the operator only has to look at the displays on the displays 2, 3, and 5 and perform the correct operation to continue with the content represented by the displays. For example, when you press the INS key and then press the 0UT key, the buzzer will sound, so you can immediately press the desired number key again.The incorrect operation is caused not only by the program write operation but also by the written program. This can also occur when checking the program by going back and displaying the steps.

このような場合前述したSETSTEPキーを押すがこ
のキーを押したときは次にはステツプ番号を指定するた
め数字キーを押すべきであり、INSキーを押したりR
/Wキーを押すのは誤りである。このような場合にも装
置は警告表示をなし、誤操作の結果は受付けず装置は誤
操作前の状態に留つている。第3図は本発明装置におけ
る上述した動作のフローチヤートで、この動作を実現す
るプログラムは第2図のROM内に予め設定してある。
In such a case, press the SETSTEP key mentioned above, but when you press this key, you should press a number key next to specify the step number, and then press the INS key or R
It is a mistake to press the /W key. Even in such a case, the device displays a warning display, does not accept the result of the erroneous operation, and the device remains in the state before the erroneous operation. FIG. 3 is a flowchart of the above-mentioned operation in the apparatus of the present invention, and a program for realizing this operation is preset in the ROM shown in FIG. 2.

CPUはコンソールスイツチCS等のスイツチの開閉状
態、キー群1の状態等を繰返し走査しており、コンソー
ルスイツチCSオンかオフかでオンならばグログラム書
込み或はプログラムのチエツクであるから、次にSET
STEPキーが押されたかと問い、NOならばINSキ
ーが押されたかを問い、NOなら0UTキーが押された
かを問い、SETSTEPキーが押されておれば次に数
字キーが押されたかを問いNOならば誤操作だからブザ
ーを鳴らし、SETSTEPキーが押されておらずIN
Sキーが押されていたときは次に命令キー(実施例では
数字キー)が押されたか否かを問いNOなら誤操作だか
らブザーを鳴らす。
The CPU repeatedly scans the open/close states of switches such as console switch CS, the state of key group 1, etc., and determines whether the console switch CS is on or off. If it is on, it means writing a program or checking a program, so next it is SET.
Asks if the STEP key was pressed, if NO, asks if the INS key was pressed, if NO, asks if the 0UT key was pressed, and if the SETSTEP key was pressed, then asks if a numeric key was pressed. If NO, it is an incorrect operation and the buzzer will sound, indicating that the SETSTEP key was not pressed and it is IN.
If the S key has been pressed, a question is asked as to whether a command key (in the embodiment, a numeric key) was pressed next, and if NO, it is an erroneous operation and the buzzer sounds.

同様にして0UTキーが押されて次に0Nキー或は0F
Fキーが押されたのでなければ誤操作だから警告表示を
行う。以上のフローチヤートの説明で数字キーが押され
たかと云う問いの形は便宜的にそのように書いただけで
実際はこの段階では数字キー以外のキーが押されたか否
かをチエツクするのであり、単に数字キーが押されてい
ないと云うだけで警告表示を行うように動作するのでは
ない。そうでないとCPUによる走査は高速で行われて
いるので例えばINSキーを押して次に数字キー(命令
キー)を押すまでには或る程度の空白時間があるから、
その空白時間中警告表示が行われて大へんうるさい状態
となる。従つてフローチヤートの詳細をSETSTEP
キーが押されたかと云う問以降のラインを代表として第
4図に例示する。即ちSETSEPキーが押されたかの
問いにYESならば数字キー以外のキーが押されたかを
問い、この問いにYESのとき警告表示を行い、NOの
とき数字キーが押されたかを問い、NOならば数字キー
以外のキーが押されたかを問うステツプに戻ると云う動
作を数字キーが押されるまで繰返す。視覚的な警告の方
法としては種々なものが可能である。
Similarly, the 0UT key is pressed, then the 0N key or 0F
If the F key is not pressed, a warning is displayed because it is an erroneous operation. In the explanation of the flowchart above, the question "Whether a numeric key was pressed" was written that way for convenience; in reality, at this stage, the question is whether or not a key other than the numeric key was pressed, and is simply It does not operate to display a warning just because a number key is not pressed. Otherwise, since the CPU is scanning at high speed, there will be some blank time between pressing the INS key and pressing the next number key (command key).
During this blank time, a warning display is displayed, creating a very noisy situation. Therefore, SETSTEP the details of the flowchart.
The line after the question asking whether a key has been pressed is shown as a representative example in FIG. That is, if YES to the question of whether the SETSEP key was pressed, it asks whether a key other than the numeric key was pressed; if YES to this question, a warning is displayed; if NO, it asks if a numeric key was pressed; if NO, then it asks whether a numeric key was pressed. The operation of returning to the step of asking whether a key other than a numeric key has been pressed is repeated until a numeric key is pressed. Various methods of visual warning are possible.

例えば表示部の表示は誤操作直前の表示のま\留めてお
いて単に表示を点滅させるとか、表示部に誤操作を表わ
すEの文字を表出させる(第5図a)とか或は点とか線
を表出させる(第5図B,c)等があり、又別に警告表
示灯を設けてこれを点灯或は点滅させてもよい。これら
の表示はROMに記憶させておく誤操作時の警告表示の
制御プログラムによつて種々な形式が実施できる。本発
明装置は上述したような構成で、誤操作がなされたとき
は視覚的な警告表示がなされるので、誤操作の結果がそ
のま\単に表示されるのと異り、オペレータが直ちに誤
操作に気付くことができるからプログラムの書込みとか
チエツク等の操作が能率的に行われる。
For example, you can leave the display on the display as it was just before the erroneous operation and simply make it blink, or you can make the letter E appear on the display to indicate the erroneous operation (Figure 5a), or you can make dots or lines appear on the display. (Fig. 5B, c), or a separate warning indicator light may be provided and turned on or blinking. These displays can be implemented in various formats depending on a control program for displaying a warning in the event of an erroneous operation, which is stored in the ROM. The device of the present invention has the above-described configuration, and when an erroneous operation is performed, a visual warning is displayed, so the operator does not notice the erroneous operation immediately, unlike when the result of the erroneous operation is simply displayed. This allows operations such as writing and checking programs to be performed efficiently.

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

図面は本発明の実施例を示し、第1図は装置正面図、第
2図は内部構成を示すプロツク図、第3図は装置動作の
主要部のフローチヤート、第4図は上記フローチヤート
の一部詳細フローチヤート、第5図は誤動作の警告表示
の形態の3例を示す表示部の正面図である。 1・・・・゜・キー群のキー、2,3,5・・・・・・
表示部、℃PU・・・・・・中央制御装置、M・・・・
・・シーケンスコントロールプログラムを書込むメモリ
The drawings show an embodiment of the present invention; FIG. 1 is a front view of the device, FIG. 2 is a block diagram showing the internal configuration, FIG. 3 is a flowchart of the main part of the device's operation, and FIG. 4 is a flowchart of the above flowchart. FIG. 5, which is a partially detailed flowchart, is a front view of the display section showing three examples of malfunction warning display formats. 1...゜・Key of key group, 2, 3, 5...
Display unit, ℃PU...Central control unit, M...
...Memory to write the sequence control program.

Claims (1)

【特許請求の範囲】[Claims] 1 入力端子、出力端子、命令及びデータ入力キー、プ
ログラム書込みとプログラム実行とを切換えるスイッチ
、及びプログラムを書込むメモリと、上記入力端子、命
令並びにデータ入力キー及びプログラムの書込みと実行
の動作を切換えるスイッチを走査し、上記スイッチがプ
ログラム書込み動作に設定されているときは上記命令並
びにデータ入力キーにより設定された命令を上記メモリ
に書込む動作を行い、上記スイッチがプログラムの実行
側に設定されているときは上記メモリからプログラムの
一ステップ分の内容を読出しその読出した命令の実行動
作を行い、その実行の完了により上記メモリの次のステ
ップの内容を読出し実行するように内部制御プログラム
が書込まれたROMを有する中央制御装置とより成り、
上記ROMには操作されたキーに対し、その次に操作さ
れたキーがプログラムの一ステップのフォーマットに関
して適正か否かを判定し、不適正な場合表示部に視覚的
な警告表示を行うと共に、その不適正なキー操作の結果
を上記プログラムを書込むメモリに書込まないようにす
る内部制御プログラムが設定してあることを特徴とする
シーケンスコントローラ。
1 Input terminals, output terminals, command and data input keys, switches for switching between program writing and program execution, and memory for writing programs, and the input terminals, commands and data input keys, and switching operations for program writing and execution. The switch is scanned, and when the switch is set to the program write operation, the above command and the command set by the data input key are written to the memory, and when the switch is set to the program execution side, the command set by the data input key is written to the memory. When the program is running, the internal control program reads the contents of one step of the program from the memory, executes the read instruction, and when the execution is completed, reads and executes the contents of the next step in the memory. a central control unit with a ROM that is
The ROM determines whether or not the next operated key is appropriate for the format of one step of the program, and if it is incorrect, displays a visual warning on the display. A sequence controller characterized in that an internal control program is set to prevent the results of the inappropriate key operation from being written into the memory in which the program is written.
JP53105749A 1978-08-29 1978-08-29 sequence controller Expired JPS5929882B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53105749A JPS5929882B2 (en) 1978-08-29 1978-08-29 sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53105749A JPS5929882B2 (en) 1978-08-29 1978-08-29 sequence controller

Publications (2)

Publication Number Publication Date
JPS5532182A JPS5532182A (en) 1980-03-06
JPS5929882B2 true JPS5929882B2 (en) 1984-07-24

Family

ID=14415889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53105749A Expired JPS5929882B2 (en) 1978-08-29 1978-08-29 sequence controller

Country Status (1)

Country Link
JP (1) JPS5929882B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6189746U (en) * 1984-11-16 1986-06-11
JPH01129985U (en) * 1988-02-29 1989-09-05

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59169603U (en) * 1983-04-28 1984-11-13 松下電器産業株式会社 programmable controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6189746U (en) * 1984-11-16 1986-06-11
JPH01129985U (en) * 1988-02-29 1989-09-05

Also Published As

Publication number Publication date
JPS5532182A (en) 1980-03-06

Similar Documents

Publication Publication Date Title
US4006464A (en) Industrial process controller
KR890012218A (en) Keyboard Selection Method and Device in Computer System
US4633469A (en) Method of indicating diagnostic results
JPH11104371A (en) Sewing machine
JPS5929882B2 (en) sequence controller
US4633384A (en) Sequence abnormality check system in programmable controller
JPS627563B2 (en)
JPS607802B2 (en) sequence controller
JPS59112304A (en) Sequence controller
JPS6118205B2 (en)
JPS603209B2 (en) sequence controller
JPS609281B2 (en) sequence controller
JPS603210B2 (en) sequence controller
JPS5942884B2 (en) Sequence control program debugging device
JPS6013481B2 (en) sequence controller
JPH0640296B2 (en) Character processor
JPS6236563B2 (en)
US4864530A (en) Display system for a compact electronic apparatus
JPH07253762A (en) Display unit
JPS607281B2 (en) Display method for output data settings in sequence programmer
JP2000288274A (en) Sewing device
JPH0241189Y2 (en)
JPH04271404A (en) Programming device for programmable controller
JPH0566934A (en) Programming device for programmable controller
JPS605964B2 (en) sequence programmer