JPS6118205B2 - - Google Patents

Info

Publication number
JPS6118205B2
JPS6118205B2 JP18532283A JP18532283A JPS6118205B2 JP S6118205 B2 JPS6118205 B2 JP S6118205B2 JP 18532283 A JP18532283 A JP 18532283A JP 18532283 A JP18532283 A JP 18532283A JP S6118205 B2 JPS6118205 B2 JP S6118205B2
Authority
JP
Japan
Prior art keywords
input
key
program
command
instruction
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
JP18532283A
Other languages
Japanese (ja)
Other versions
JPS59112303A (en
Inventor
Keisuke Kawashima
Hideaki Nakamura
Yoshitane Saito
Kenji Nishikido
Kyoto Hirase
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 JP18532283A priority Critical patent/JPS59112303A/en
Publication of JPS59112303A publication Critical patent/JPS59112303A/en
Publication of JPS6118205B2 publication Critical patent/JPS6118205B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/10Programme control other than numerical control, i.e. in sequence controllers or logic controllers using selector switches

Description

【発明の詳細な説明】 本発明は歩進型のシーケンスコントローラに関
する。シーケンスコントローラには歩進型と走査
型とがある。歩進型は制御プログラムの或るステ
ツプに対応した動作が完了すると、その完了の検
出信号によつてプログラムが一ステツプ歩進せし
められて次のステツプの動作が開始されるように
制御を行うものである。走査型は被制御系の状態
を示すデータが制御装置の入力装置に入力されて
おり制御装置は常時繰返して入力装置を走査して
被制御系の状態を検知し、その状態に対応して定
められた制御を行うようになつている。走査型は
制御が事実上連続的であるような制御が可能であ
るが制御プログラムの作成が難しく制御装置も複
雑高価なものとなる。歩進型の制御装置では被制
御系の動作は段階的となり、時にはぎこちない制
御しかできないと云う弱点もあるが、プログラム
の作成が簡単で誰にでも作ることができる制御装
置も比較的安価である上、実際上段階的制御で充
分な被制御対象も多いので、そのような対象に対
しては大へん経済的なシーケンスコントローラで
ある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a step-by-step 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 made to advance by one step in response to the completion detection signal and the operation of the next step is started. It is. 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 control devices are easy to program and can be made by anyone, and are 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 program can be input to the control device by operating several keys arranged on the keyboard, and
This was done for the purpose of making it possible to set complex program contents such as counting operations even though it is a step-by-step type.

ピンボード式のシーケンスコントローラではプ
ログラムの各ステツプ毎にピンボードの所定段の
ピン孔の所定位置にピンを挿入することによりプ
ログラムをシーケンスコントローラに入力させる
ので、作成したプログラムの全体がピンの配置に
よつて表示されていると云う利点がある反面、ピ
ンの接触不良のため信頼性が充分でなく、ピンが
多数要るのでその管理が面倒であり、プログラム
のステツプ数が多い場合、ピンボードの面積が大
となる等の欠点がある。本発明によればプログラ
ムをキーボードにおけるキーの操作でシーケンス
コントローラのメモリに入力できるのでピンの管
理、ピンの接触不良、プログラムのステツプ数が
多くなると大きなピンボードを有するシーケンス
コントローラとしなければならないと云つた問題
がなくなり、管理、信頼性、価格(殊にプログラ
ムステツプ数の多い場合)の面でピンボード式の
ものより優れたものが得られることになる。また
本発明では一つのキーを一つの命令の入力と一つ
のデータの入力とに兼用し、キー操作の順序に従
つてキー操作の意味を決めるようにして、キーの
数及び一つの動作ステツプ入力におけるキー操作
の回数を低減すると共に、キー操作の順序と同じ
内容配置による表示フオーマツトで命令の種類、
入出力端子番号等を表示することでプログラムの
各ステツプの具体的な内容を目視確認しながらキ
ー操作ができるようにして、操作面,構造面の簡
易化を計つたものである。以下実施例によつて本
発明を説明する。
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 row of the pinboard for each step of the program, so the entire created program is based on the pin arrangement. On the other hand, the reliability is not sufficient due to poor pin contact, and managing them is troublesome because a large number of pins are required.If the number of steps in the program is large, the pinboard There are disadvantages such as a large area. According to the present invention, a program can be input into the memory of a sequence controller by operating keys on a keyboard, so there is no need to manage pins, cause poor pin contact, and if the number of steps in a program increases, the sequence controller must have a large pin board. This eliminates the problems associated with pinboard design, and provides superior management, reliability, and cost (especially when the number of program steps is large) to the pinboard version. Furthermore, in the present invention, one key is used for inputting one command and one data, and the meaning of key operations is determined according to the order of key operations. In addition to reducing the number of key operations in
By displaying the input/output terminal numbers, etc., key operations can be performed while visually confirming the specific contents of each step of the program, thereby simplifying the operational and structural aspects. The present invention will be explained below with reference to Examples.

第1図は本発明の一実施例のシーケンスコント
ローラの操作パネルの正面図である。パネルの右
下隅にある一群のキー1は操作及び命令、データ
等の入力キーで数字の記入されたキーは命令の入
力とデータ数字の入力の両方兼用になつており、
ローマ字の記入されたキーは操作用のキーであ
る。左上の上下二段の表示部2,3は出力端子表
示ランプの列で1番から32番までの32個あり或る
プログラムステツプで指定された出力端子を示す
位置のランプが点灯するようになつている。右上
の二段の表示部4,4′は入力端子表示ランプの
列でやはり1番から32番まであり、或るプログラ
ムステツプで指定されている入力端子に入力が加
わつたとき対応するランプが点灯する。表示部3
の下にある数字表示部5は4個の枠51,52,
53,54に分れており、一番左の枠51は2桁
でステツプ番号を表示し、その右の枠52は命令
の種類を1桁の数で表わし図の例の4と云う数字
は例えばアンドの命令を意味する。この命令語と
そのコード数字との対訳表が数字部5の下の枠6
に記載してある。数字表示部5で左から3番目、
一番右の枠53,54は夫々2桁の数字で夫々が
データの数値を表わす。
FIG. 1 is a front view of an operation panel of a sequence controller according to an embodiment of the present invention. A group of keys 1 in the lower right corner of the panel are input keys for operation, commands, data, etc.The keys with numbers written on them are used for both inputting commands and inputting data numbers.
The keys with Roman characters written on them are operation keys. The two upper and lower display sections 2 and 3 on the upper left are rows of output terminal display lamps, numbered 32 from number 1 to number 32.The lamp at the position indicating the output terminal specified in a certain program step will light up. ing. The two rows of displays 4 and 4' 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. do. Display section 3
The number display section 5 below has four frames 51, 52,
53 and 54, the leftmost frame 51 displays the step number in two digits, and the right frame 52 displays the type of instruction in one digit number, and the number 4 in the example in the figure is For example, it means an AND command. A translation table of this command word and its code number is shown in frame 6 below number part 5.
It is listed in. 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.

次に上記パネルにおける操作法の概略を述べ
る。プログラムの書込み。まず電源スイツチPS
をオン側に倒し、次にプログラムコンソールスイ
ツチCSをオン側に入れ、次にステツプを“0”
にするためスイツチS2をリセツト側に1度倒
す。また、こゝでプログラムを記憶するメモリは
すべてクリアされているものとする。そして、プ
ログラムの各ステツプを順次入力して行く。プロ
グラムの各ステツプは書込みの始めにキー群中の
INSのキーを押し次に命令のキーを押す。各ステ
ツプの命令は必ず一語なのでINSのキーの次に押
す数字キーは自動的に命令の入力操作となり、そ
の次以降のキー操作は自動的にデータの入力とな
る。従つて同じキーが書込み操作時押された順位
によつて命令入力用として働き或はデータ記入用
として働く。まず第0ステツプの命令を書込む。
INSのキーを押し、ついで数字2のキーを押す。
数字2のキーはリターン即ち出発点に戻れの命令
で、数字表示部の左から第1枠51は“00”、第
2枠52は“2”となり第0ステツプはこれだけ
で次にR/Wのキーを押す。これはメモリへの読
出し書込みを指令するキーで、メモリにはリター
ンの命令が記入され、R/Wのキーを押すことに
よりステツプが自動的に歩進せしめられ数字表示
部の第1枠51の表示は“01”となり他の枠は全
部0となる。こゝで第1ステツプの命令を入力す
る。このステツプが例えば入力端子1と3の入力
アンドによつて出力端子2と4に出力を出すと云
う内容であれば、まず形通りINSのキーを押しア
ンドの命令を示す数字キー4を押すと数字表示部
の枠51の表示が4となる。命令は一語に限られ
るから次に押すキーは当然にデータの入力操作と
なる。今の場合入力端子1と3の入力のアンドを
採れと云う命令なので数字キー“0”次に“0”
を押す。数字表示部の枠53の表示が01となり、
次に数字キー“0”を押し次いで“3”を押すと
数字表示部の枠54の表示が03となつて、数字表
示部はプログラムの第1ステツプの内容を“アン
ド”“01”“03”と表示する。次に出力端子を指定
すると云う意味でOUTのキーを押すと表示部3
の数字1のランプが点滅する。次にOFFのキー
を押すと表示部3の数字1の上のランプが消え数
字2の上のランプが点滅する。次にONのキーを
押すと数字2の上のランプが点灯して出力端子2
に出力すべしと云う命令内容が表示され次の数字
3の上のランプが点滅開始する。出力は端子2と
4とになされるので再びOFFのキーを押す。そ
こで上記OFFキーを押すことで表示部3の数3
の上のランプが消灯し、次にONのキーを押すこ
とにより4番目の出力端子が指定されたことにな
る。これで第1ステツプの命令の構成が終つたの
でR/Wのキーを押して第1ステツプの命令をメ
モリに記入すると共にプログラムのステツプを一
段歩進させて数字表示部5の第1枠51は“02”
を表示する。以下上述したような操作により1ス
テツプずつプログラム内容がメモリに入力されて
行く。このようにして最後のステツプがプログラ
ムの全部を15回繰返して実行せよと云う内容であ
るとすると、次の順序でキーを押す。「INS」
「8」(繰返せの命令コード番号)「1」,「5」(15
回を意味する)「0」「1」(プログラムのステツ
プ1からの意、即ちステツプ1からこのステツプ
までを15回繰返すことになる。)「R/W」と云う
ように押す。プログラムの形式上の最後は
「END」の命令で上記繰返しの命令の次のステツ
プで「INS」,「END」,「R/W」の順のキー操作
で全プログラムの記入が終る。
Next, we will outline the operation method for the above panel. Program writing. First, power switch PS
Turn the program console switch CS to the on side, then turn the step to “0”.
To reset, flip switch S2 once to the reset side. Also, it is assumed here 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 a key in the key group at the beginning of writing.
Press the INS key and then 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.The first frame 51 from the left of the number display section is "00" and the second frame 52 is "2". Press the key. This key commands reading and writing to the memory.A return command is written in the memory, and by pressing the R/W key, the step is automatically advanced, and the first frame 51 of the numeric display section is The display will be "01" and all other frames will be 0. Now input the command for the first step. For example, if this step is to output an output to output terminals 2 and 4 by inputting an AND between input terminals 1 and 3, first press the INS key and press the number key 4, which indicates an AND command. The number 4 is displayed in the frame 51 of the number display section. Since a command is limited to one word, the next key pressed naturally becomes a data input operation. In this case, the command is to AND the inputs of input terminals 1 and 3, so press the numeric key "0" and then "0".
Press. The display in frame 53 of the number display section becomes 01,
Next, press the number key "0" and then press "3", and the display in the frame 54 of the number display section will change to 03, and the number display section will display the contents of the first step of the program as "AND", "01", "03", etc. ” is displayed. Next, press the OUT key to specify the output terminal, and the display 3
The number 1 lamp flashes. Next, when you press the OFF key, the lamp above the number 1 on the display section 3 disappears and the lamp above the number 2 blinks. Next, press the ON key, the lamp above the number 2 will light up, and the output terminal 2 will turn on.
The content of the command to be output is displayed, and the lamp above the next number 3 starts blinking. Output is made to terminals 2 and 4, so press the OFF key again. Therefore, by pressing the above OFF key, the number 3 on display section 3 will be displayed.
The lamp above goes out, and by pressing the ON key, the fourth output terminal is 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. “02”
Display. Thereafter, the program contents are input into the memory one step at a time by the operations described above. Thus, if the last step is to run the entire program 15 times, press the keys in the following order: "INS"
"8" (repeated instruction code number) "1", "5" (15
(Meaning from step 1 of the program, meaning that steps from step 1 to this step will be repeated 15 times.) Press "R/W". The final step in the program format is the "END" command, and in the next step after the above-mentioned repeat command, the entire program is completed by key operations in the order of "INS,""END," and "R/W."

次に上記したプログラムを実行させるには、プ
ログラムコンソールスイツチCSをOFF側に倒
し、スイツチS1を“自動”側に倒し、スタート
スイツチS3を下へ1度倒す。これでプログラム
の実行が開始される。プログラム実行中は数字表
示部5の右にある表示灯55が点灯している。数
字表示部5の各枠は今実行しつゝあるプログラム
ステツプの番号、プログラム内容等を数字で表示
している。例えば第1ステツプを実行中は数字表
示部5の第1枠51には01の数字が出て第1ステ
ツプであることを示し、このステツプの命令が
ANDであるときは第2枠52は04の数字を示
し、AND条件が成立すべき二つの入力端子が1
番と3番とであると数字表示部の第3枠53には
01の数字が、また第4枠54には03の数字が表わ
れる。この第1ステツプでは指定された出力端子
2,4へ出力が出されるとともに表示部2のラン
プ2,4が点灯する。第1ステツプは入力端子1
と3とに共に入力信号が入つたらプログラムは一
ステツプ進行して数字表示部等の表示は第2ステ
ツプの内容表示に変わるとゝもに第2ステツプの
実行が開始される。即ちプログラムの進行は或る
ステツプの命令内容即ち設定条件が成立するとス
テツプが歩進されて次段のステツプの実行に移
る。
Next, to run the above program, turn the program console switch CS to the OFF side, turn the switch S1 to the "auto" side, and turn the start switch S3 downward once. 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 number display section 5, indicating that it is the first step, and the command for this step is executed.
When it is AND, the second frame 52 shows the number 04, and the two input terminals for which the AND condition should be satisfied are 1.
and number 3, the third frame 53 of the number display section shows
The number 01 appears, and the number 03 appears in the fourth frame 54. In this first step, the output is output to the designated output terminals 2 and 4, and the lamps 2 and 4 of the display section 2 are turned on. The first step is input terminal 1
When an input signal is input to both 3 and 3, the program progresses by one step, and the display of the numeric display section changes to the content display of the second step, and at the same time, 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.

第2図は上述装置の内部構成を示すブロツク図
である。CPUと記入されたブロツクはこの装置
における中央制御装置でマイクロコンピユータで
あり、Mはこのシーケンス制御装置が実行すべき
プログラムを記憶させるメモリで前述したプログ
ラム書込み操作でプログラムが記憶せしめられて
いる。今プログラムの或るステツプを実行中でそ
のステツプで指定された出力を出しているものと
する。そのときCPUはメモリMから上記ステツ
プの命令を読出しCPU内のアキユームレータに
記憶させており、他方常時入力端子IN1〜INnを
走査してその入力状態を見ており、この入力状態
とアキユームレータに記憶させてあるそのステツ
プの命令中の入力端子番号及び条件とをCPU内
蔵の演算判別回路で比較し、両者が一致したらメ
モリMのアドレス指定数に1を加えて次のステツ
プを読出し、上と同様の操作を行う。即ちこの装
置は外部負荷の制御については歩進型であるが内
部的には走査型のシーケンス制御を行つている。
しかしこの走査型のシーケンス制御は外部に対し
て実行すべき動作とは無関係に上述したように一
定しており、この内部制御のプログラムはCPU
内の読出し専用メモリ(ROM)に記憶させてあ
る。外部負荷を制御するプログラムを書込む場
合、CPUはROMからプログラム書込み用の内部
制御プログラムを読出し、そのプログラムに従つ
て前述したパネルのキー群1及びコンソールスイ
ツチCS,スイツチS2等が接続されている内部
入力回路の入力状態を繰返し走査する。正確には
CPUはROMに書込まれた内部制御プログラムに
従い外部入力回路INの各入力端子IN1〜INn及び
内部入力端子に接続されたコンソールスイツチ
CS,スイツチS2等の開閉状態、キー群1等を
走査し内部入力回路における入力状態によつてプ
ログラムの書込みかプログラムの実行かその他の
動作かを識別し内部入力回路の入力状態に応じて
夫々の動作が実行されるようになつている。今の
場合内部入力回路の入力状態がプログラム書込み
となつているので上述したようにキー群1と内部
入力回路の走査のみが行われてキー群によりセツ
トされた命令は順次メモリMに書込まれて行く。
更にプログラムの書込、実行その他の動作におい
て、CPUは書込み中のプログラムのステツプの
内容或は実行中のプログラムのステツプの内容或
はプログラム中の指定したステツプの内容等を数
字表示部5,表示部2,3等に表示する動作を
ROM内の内部制御プログラムに従い実行してい
る。
FIG. 2 is a block diagram showing the internal structure of the above-mentioned device. The block marked CPU is the central control unit in this device, which is a microcomputer, and M is the memory for storing the program to be executed by this sequence control device, and the program is stored by the above-mentioned program write operation. Assume that a certain step in a program is currently being executed and the output specified by that step is being output. At that time, the CPU reads out the instruction of the above step from the memory M and stores it in the accumulator in the CPU.On the other hand, it constantly scans the input terminals IN1 to INn to check their input states, and records this input state and the accumulator. The CPU's built-in arithmetic judgment circuit compares the input terminal number and conditions in the instruction for that step stored in the mulrator, and if they match, 1 is added to the number of addresses specified in memory M, and the next step is read out. Perform the same operation as above. That is, this device uses a step-by-step type of external load control, but internally performs a scanning-type sequence control.
However, this scanning sequence control is constant as described above, regardless of the operations to be executed externally, and this internal control program is executed by the CPU.
It is stored in the internal read-only memory (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 aforementioned panel key group 1, console switch CS, switch S2, etc. are connected. Repeatedly scans the input state of the internal input circuit. To be exact
The CPU controls the console switch connected to each input terminal IN1 to INn of the external input circuit IN and the internal input terminal according to the internal control program written in the ROM.
It scans the open/close states of CS, switch S2, etc., key group 1, etc., and identifies program writing, program execution, or other operations depending on the input state of the internal input circuit. The following actions are now being performed. 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 of the program being written, the contents of the steps of the program being executed, the contents of specified steps in the program, etc. on the numerical display section 5. The actions to be displayed in sections 2, 3, etc.
Executes according to internal control program in ROM.

要するにCPUはROMに書込まれたCPU自身を
制御する内部制御プログラムによつて動作してお
り、内部入力回路の入力状態によつてCPUを制
御する内部制御プログラムが切換わつて装置全体
としての外部的動作が外部負荷制御プログラムの
書込み、同プログラムの実行等に切換わる。
In short, the CPU 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. The target operation switches to writing the external load control program, executing the program, etc.

上述装置の基本的な動作としてAND命令とOR
命令に関連して装置の構成及び動作を具体的に説
明する。今例としてプログラムの第35ステツプ
がアンド命令で入力端子の第12番IN12と第13
番IN13とに共に入力が入つたらステツプが1
歩進し、そしてそのステツプ(第35ステツプ)
で、出力端子の第1,2,3,5,8に信号を出
力せよと云う内容であるとする。表示部2,3及
び5の表示のフオーマツトは第3図のようにな
る。プログラムの実行が進んで第34ステツプの動
作が完了するとステツプカウンタの計数は35にな
つており、この計数がプログラムを書込んだメモ
リMのアドレス指定情報となりメモリMの35番地
の命令即ち第35ステツプの命令が読出され、第3
図のフオーマツトで、表示部2,3,5に表示さ
れる。同時に第35ステツプで指定された出力端子
1,2,3,5,8に出力が出される。CPUで
は命令の種類を判別しAND命令と判ると入力回
路における入力端子IN12の入力状態をチエツ
クし、この入力が有りになるまでチエツクを繰返
している。IN12の入力が有りになると入力回
路IN13をチエツクする。そして入力回路IN1
3の入力が有りになるまで入力端子IN12,IN
13の入力状態を続けてチエツクする動作を繰返
す。この過程でIN12の入力が0になつたら再
び入力端子IN12のみのチエツクを繰返す動作
に戻る。このようにして入力端子IN12及びIM
13が共に入力有りになつたことが検出されたら
ステツプカウンタの計数を数1だけ歩進させ次の
ステツプの命令を読出す。CPUにおける以上の
動作のプログラムはROMに書込んである。ステ
ツプカウンタはCPUが有するランダムアクセス
メモリRAMを用いてもよく、メモリMを用いて
もよい。上記RAMをプログラム書込み用のメモ
リMとして用いてもよい。
The basic operation of the above device is AND instruction and OR
The configuration and operation of the device will be specifically explained in relation to the instructions. As an example, the 35th step of the program uses an AND instruction to input the 12th IN12 and 13th input terminals.
If input is input to number IN13, step is 1.
Progress and the steps (35th step)
Assume that the content is to output signals to output terminals 1, 2, 3, 5, and 8. The display format of display sections 2, 3 and 5 is as shown in FIG. When the execution of the program progresses and the operation of the 34th step is completed, the count of the step counter becomes 35, and this count becomes the address designation information of the memory M in which the program was written, and the instruction at address 35 of the memory M, that is, the 35th step. The step command is read and the third
It is displayed on the display sections 2, 3, and 5 in the format shown in the figure. At the same time, outputs are output to output terminals 1, 2, 3, 5, and 8 specified in the 35th step. The CPU determines the type of instruction, and if it is found to be an AND instruction, it checks the input state of the input terminal IN12 in the input circuit, and repeats the check until this input is present. When the input of IN12 becomes present, the input circuit IN13 is checked. And input circuit IN1
Input terminal IN12, IN until 3 input is present.
The operation of checking 13 input states is repeated. During this process, when the input of IN12 becomes 0, the operation returns to repeating checking only the input terminal IN12. In this way, input terminals IN12 and IM
When it is detected that both 13 and 13 are input, the step counter is incremented by several 1 and the next step instruction is read. The program for the above operations in the CPU is written in the ROM. The step counter may use a random access memory RAM included in the CPU, or may use memory M. The RAM described above may be used as the memory M for writing programs.

第4図は上述したAND命令におけるCPUの動
作をフローチヤートで表わしたものである。
FIG. 4 is a flowchart showing the operation of the CPU in the above-mentioned AND instruction.

OR命令における表示部2,3,5の表示のフ
オーマツトはANDのときと同じで命令の種類を
表わす表示部52の数字がOR命令のコードであ
る5となる。そこで第3図を借用してOR命令の
表示のフオーマツトを説明すると、表示部53,
54に示される数字は2つの入力端子の番号を示
し、同時に出力端子1,2,3,5,8に出力が
出され、入力端子12,13の何れかに入力信号が入
つたら次ステツプの命令の実行動作に移ることに
なる。
The display format of display sections 2, 3, and 5 for the OR instruction is the same as for AND, and the number on the display section 52 representing the type of instruction is 5, which is the code for the OR instruction. Therefore, borrowing FIG. 3 to explain the display format of the OR command, the display section 53,
The numbers shown at 54 indicate the numbers of the two input terminals, and if an output is output to output terminals 1, 2, 3, 5, and 8 at the same time, and an input signal is input to either input terminal 12 or 13, the next step is started. The next step is to execute the instruction.

第5図はCPUにおけるOR命令実行動作のフロ
ーチヤートを示す。メモリMから読出した命令が
OR命令と判定されると表示部2,3,5に命令
内容を表示すると共に出力端子1,2,3,5,
8へ出力を出し入力端子IN12をチエツクし入
力がなければIN13をチエツクすると云う動作
を繰返し何れの入力端子にでも入力が検出されゝ
ばステツプカウンタの計数に1を加え次ステツプ
の命令を読出しその実行に移る。
FIG. 5 shows a flowchart of the OR instruction execution operation in the CPU. The instruction read from memory M is
When it is determined that it is an OR instruction, the contents of the instruction are displayed on the display sections 2, 3, and 5, and the output terminals 1, 2, 3, 5,
8, checks the input terminal IN12, and if there is no input, checks IN13. If an input is detected at any input terminal, it adds 1 to the count of the step counter and reads the next step command. Move on to execution.

以上で本発明に係る一実施例装置の全体的な説
明を終り、以下本発明に係る一実施例装置によつ
て本発明の特徴的な機能動作について述べる。
This concludes the overall description of the apparatus according to the embodiment of the present invention, and the characteristic functional operations of the present invention will be described below using the apparatus according to the embodiment of the present invention.

カウント命令。これは或る信号を設定した回数
だけ計数する動作である。表示部では52に数字
6が現れ、この6がカウント命令を意味する。プ
ログラムの設定においては云うまでもなくINSキ
ーの次に数字6のキーを押すのである。次の表示
部53に現れる数字は指定回数を示し、表示部5
4の数字が入力端子番号を示す。動作は指定され
た入力端子の入力状態が変化する度にメモリに記
憶させた設定回数から1を引算し、メモリの設定
回数が0になつた所でプログラムを次のステツプ
に進める。第6図にカウント命令実行のフローチ
ヤートを示す。プログラムの或るステツプでカウ
ント命令が検出されたら表示部54に表示されて
いる入力端子の入力状態をメモリに記憶させ、次
にその記憶を上記入力端子の入力状態と比較し変
化なければ(NO)、この比較動作を変化あり
(YES)となるまで繰返し、変化ありとなつたら
表示部53に表示されている数から1を引き、そ
の結果が0か否かをチエツクして0でなければ上
記変化後の指定入力端子の入力状態をメモリに記
憶させ、上述と同じ動作を表示部53の表示数字
が0になるまで繰返し、0になつたらプログラム
の次のステツプに移る。
Count command. This is an operation in which a certain signal is counted a set number of times. The number 6 appears at 52 on the display, and this 6 means a count command. Needless to say, when setting up a program, press the number 6 key after the INS key. The number appearing on the next display section 53 indicates the specified number of times.
The number 4 indicates the input terminal number. The operation is such that each time the input state of a designated input terminal changes, 1 is subtracted from the set number of times stored in the memory, and when the set number of times in the memory becomes 0, the program advances to the next step. FIG. 6 shows a flowchart for executing the count instruction. When a count command is detected at a certain step of the program, the input state of the input terminal displayed on the display section 54 is stored in the memory, and then the stored value is compared with the input state of the input terminal, and if there is no change (NO ), this comparison operation is repeated until a change is found (YES), and when a change is found, subtract 1 from the number displayed on the display section 53, check whether the result is 0, and if it is not 0. The input state of the specified input terminal after the above change is stored in the memory, and the same operation as described above is repeated until the displayed number on the display section 53 becomes 0. When the number becomes 0, the program moves to the next step.

本発明シーケンスコントローラは上述したよう
な構成で、歩進型に属するのでプログラムの作成
が容易であり、しかもプログラムの書込みはキー
ボードにおけるキー操作で行われるので従来のピ
ンボード式のものに比し、ピンの接触不良等の心
配がなく、ピンボードが不要だから小型化できる
と共に、カウンタ動作が加わつているので、歩進
型でありながらより複雑な制御をなしうる等の特
徴を有する。また命令入力キーとデータ入力キー
とが兼用で操作順序によつてキー操作の意味が命
令入力か入力端子の指定か計数値の設定か等が決
定されるようにしたので操作キーの数が少なく、
各キーは操作順序で意味が決まるので、別途或る
キーの操作が何を意味するかを指定するキーが不
要であり、一ステツプの命令入力のキー操作回数
数が少なくでき、ステツプ内容の表示がキー操作
の順序と同じ内容配列の表示フオーマツトでされ
る表示部を設けることでステツプ内容が目視確認
でき、表示フオーマツトがキー操作の順序で決ま
る意味の配列と同じになるので、表示が分かり易
く、表示内容を具体的に示す説明表示が不要なの
で表示手段の構成も簡単になる。
The sequence controller of the present invention has the above-mentioned configuration, and since it belongs to the step-by-step type, it is easy to create a program.Furthermore, since the program is written by key operations on the keyboard, compared to the conventional pinboard type, There is no need to worry about poor pin contact, and since a pin board is not required, it can be made smaller, and since a counter operation is added, it has features such as being able to perform more complex control even though it is a step-by-step type. In addition, the command input keys and data input keys can be used in combination, and the meaning of a key operation is determined by the order of operations, such as command input, input terminal designation, count value setting, etc., so the number of operation keys is reduced. ,
Since the meaning of each key is determined by the order in which it is operated, there is no need for a separate key to specify what a certain key operation means, which reduces the number of key operations needed to input commands for one step, and allows the display of the step contents. By providing a display section with a display format that has the same content arrangement as the order of key operations, the contents of the steps can be visually checked.The display format is the same as the arrangement of meanings determined by the order of key operations, making the display easy to understand. Since there is no need for an explanatory display specifically indicating the display contents, the configuration of the display means is also simplified.

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

第1図は本発明の一実施例装置の正面図、第2
図は同じく内部構成を示すブロツク図、第3図は
同じく表示におけるAND命令の表示フオーマツ
ト、第4図は同じく上記AND命令の実行に関す
る装置動作のフローチヤート、第5図は同じく
OR命令実行動作のフローチヤート、第6図はカ
ウント命令の実行のフローチヤートを示す。 1……キー群のキー、2,3,5……表示部、
CPU……中央制御装置、M……シーケンスコン
トロールプログラムを書込むメモリ、IN1〜INn
……入力端子、OUT1〜OUTn……出力端子。
FIG. 1 is a front view of an apparatus according to an embodiment of the present invention, and FIG.
This figure is a block diagram showing the internal configuration, FIG. 3 is a display format of the AND instruction, FIG. 4 is a flowchart of the device operation related to the execution of the AND instruction, and FIG. 5 is the same.
Flowchart of OR instruction execution operation. FIG. 6 shows a flowchart of execution of a count instruction. 1... Keys of the key group, 2, 3, 5... Display section,
CPU...Central control unit, M...Memory for writing sequence control programs, IN1 to INn
...Input terminal, OUT1 to OUTn...Output terminal.

Claims (1)

【特許請求の範囲】[Claims] 1 一つのキーが命令入力とデータ入力とに兼用
される入力キー群と、外部負荷制御プログラム用
メモリと、外部入力端子群と、出力端子群と、上
記入力キー群のキーインの状態を走査し入力キー
群の操作順序によつてキー操作の意味を決定して
上記入力キー群により設定された命令を判別し上
記メモリに書き込み、また同メモリに書込まれた
プログラムを読み出し、上記外部入力端子群を走
査し、上記読み出したプログラムの内容に従つて
出力端子に信号を出力することにより外部負荷を
制御するように内部制御プログラムを書込んだ
ROMと、キー操作の順序と同じ命令内容の配列
の表示フオーマツトを有するステツプ内容表示手
段を有し、上記入力キー群内の一つのキーとして
カウント命令の入力に兼用されるキーを備え、外
部負荷制御プログラムの上記メモリへの書込み操
作において、或るステツプにおいて上記カウント
命令入力に兼用されるキーを押すと、そのステツ
プにおいて引続きキーインされた2つの数字デー
タをその入力順序に応じて一方を外部入力端子指
定コードとし他方をその入力端子の入力状態の交
替の回数を指定するデータとするカウント命令が
構成されると共に、前記表示手段に同命令の内容
を表示するようにした内部制御プログラムを上記
ROM内に設けたシーケンスコントローラ。
1 Scan the input key group in which one key is used for command input and data input, the external load control program memory, the external input terminal group, the output terminal group, and the key-in status of the above input key group. The meaning of the key operation is determined by the operation order of the input key group, the command set by the input key group is determined and written to the memory, the program written to the memory is read, and the command is read from the external input terminal. An internal control program was written to control the external load by scanning the group and outputting a signal to the output terminal according to the contents of the program read above.
It has a ROM and a step content display means having a display format of an arrangement of instruction contents that is the same as the order of key operations, and a key that is also used for inputting a count instruction as one key in the input key group, and an external load. When the control program is written to the above memory, when the key used for inputting the above count command is pressed at a certain step, one of the two numerical data that was subsequently keyed in at that step is input externally according to the input order. The above-mentioned internal control program includes a count instruction in which a terminal designation code is used as data specifying the number of times the input state of the input terminal changes, and the contents of the instruction are displayed on the display means.
Sequence controller installed in ROM.
JP18532283A 1983-10-03 1983-10-03 Sequence controller Granted JPS59112303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18532283A JPS59112303A (en) 1983-10-03 1983-10-03 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18532283A JPS59112303A (en) 1983-10-03 1983-10-03 Sequence controller

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP13418878A Division JPS607802B2 (en) 1978-10-30 1978-10-30 sequence controller

Publications (2)

Publication Number Publication Date
JPS59112303A JPS59112303A (en) 1984-06-28
JPS6118205B2 true JPS6118205B2 (en) 1986-05-12

Family

ID=16168800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18532283A Granted JPS59112303A (en) 1983-10-03 1983-10-03 Sequence controller

Country Status (1)

Country Link
JP (1) JPS59112303A (en)

Also Published As

Publication number Publication date
JPS59112303A (en) 1984-06-28

Similar Documents

Publication Publication Date Title
JPS60262204A (en) Programmable controller
US4633469A (en) Method of indicating diagnostic results
JPH0337202B2 (en)
JPS6118205B2 (en)
JPS607802B2 (en) sequence controller
JPS6118206B2 (en)
JPS5929882B2 (en) sequence controller
JPS627563B2 (en)
JPS609281B2 (en) sequence controller
JPS6013481B2 (en) sequence controller
JPH09292942A (en) Screen definition device for console panel
JPS603209B2 (en) sequence controller
JPS6236563B2 (en)
JPH051888B2 (en)
JPH046005B2 (en)
GB2112974A (en) Monitoring interlock instructions for programmable controller
JPS61220004A (en) Screen display system of numerical controller
JPH0377522B2 (en)
JPH0443281B2 (en)
JPH0117165B2 (en)
JPS58105302A (en) Illustrating programming device of programmable controller
JP2003122408A (en) Method of preparing data for control system
JPH0566934A (en) Programming device for programmable controller
JPH077966A (en) Inverter
JPS6326889B2 (en)