JPS6038723B2 - Sequence program recording device using magnetic tape - Google Patents

Sequence program recording device using magnetic tape

Info

Publication number
JPS6038723B2
JPS6038723B2 JP53115499A JP11549978A JPS6038723B2 JP S6038723 B2 JPS6038723 B2 JP S6038723B2 JP 53115499 A JP53115499 A JP 53115499A JP 11549978 A JP11549978 A JP 11549978A JP S6038723 B2 JPS6038723 B2 JP S6038723B2
Authority
JP
Japan
Prior art keywords
data
sequence
memory
tape
read
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
JP53115499A
Other languages
Japanese (ja)
Other versions
JPS5541576A (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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP53115499A priority Critical patent/JPS6038723B2/en
Publication of JPS5541576A publication Critical patent/JPS5541576A/en
Publication of JPS6038723B2 publication Critical patent/JPS6038723B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、磁気テープを用いたシーケンスプログラム記
録装置、さらに詳しくは磁気テープに記録されているデ
ータとシーケンスコソトローラのメモリに記憶されてい
るデータとを順番に詠出して比較することによって磁気
テープからシーケンスコントローラのメモリへ転送され
たシーケンスプログラムの照合を行うようにしたシーケ
ンスプログラム記録装置に関するもので、その目的とす
るところは、メモリサイズの異なるシーケンスコントロ
ーラ間におけるシーケンスプログラムの複写を磁気テー
プを介して行う場合に発生するメモリデータとテープデ
ータとの不一致は異常と判断しないようにして、かかる
プログラム複写を行った後においても照合動作を行なえ
るようにすることにある。
DETAILED DESCRIPTION OF THE INVENTION The present invention is a sequence program recording device using a magnetic tape, and more specifically, a sequence program recording device that sequentially records data recorded on a magnetic tape and data stored in a memory of a sequence controller. This relates to a sequence program recording device that verifies sequence programs transferred from a magnetic tape to the memory of a sequence controller by comparing them.The purpose of this is to compare sequence programs between sequence controllers with different memory sizes. The object of the present invention is to prevent discrepancies between memory data and tape data that occur when a program is copied via a magnetic tape from being judged as an abnormality, and to enable a verification operation even after such program copying is performed. .

近年、シーケンスコントローラのメモリに記憶されたシ
ーケンスブログラムを磁気テープに記録して保存したり
、磁気テープを記憶媒体としてシーケンスプログラムを
他のシーケンスコントローラのメモリへ転送したりする
こと等が行われるようになり、磁気テープを用いたシー
ケソスプログラム記録装置が盛んに用いられるようにな
ったが、かかるシーケンスプログラム記録装置はシーケ
ンスコントローラの据え付けるれた生産現場で使用され
ることが多いため、生産現場に設けられているサィリス
夕制御装置やアーク熔接器等から発生されるパルス状の
雑音信号によって影響を受け、データの書込み、再生が
正常に行えない恐れがある。
In recent years, it has become common to record and save sequence programs stored in the memory of a sequence controller on magnetic tape, and to transfer sequence programs to the memory of other sequence controllers using magnetic tape as a storage medium. Sequence program recording devices using magnetic tape have become widely used, but such sequence program recording devices are often used at production sites where sequence controllers are installed. There is a possibility that writing and reproducing data cannot be performed normally due to the influence of pulse-like noise signals generated from the installed syringe control device, arc welder, etc.

このため、かかるシーケンスプログラム記録装置におい
ては、従来から行われているパリティーエラーチェック
またはCRCエラーチェックによる異常のチェックだけ
では不充分で、書込みや再生を行ったデータが元のデー
タと同じであるかを照合することが好ましい。
For this reason, in such sequence program recording devices, it is insufficient to check for abnormalities using the conventional parity error check or CRC error check, and check whether the written or reproduced data is the same as the original data. It is preferable to check.

このためには、書込みまたは再生を行った後で、磁気テ
ープに記録されているデータとシーケンスコントローラ
のメモリに記憶されているデータとを順番に謙出して比
較し、これによって両者のデータが同じであるかどうか
を確認するようにすればよいが、このように全てのデー
タを全て比較照合すると、シ〜ケンスプログラムの形態
によっては雑音信号の影響による誤書込、譲再生以外の
原因で照合エラーが検出されることがあり、作業者を困
惑させてしまう恐れがある。すなわち、シーケンスブロ
グラム記録装置を使用して他のシーケンスコントローラ
にシーケンスプログラムを転送する場合には、メモリ容
量の違いによっても照合エラーが生じる場合がある。
To do this, after writing or reproducing, the data recorded on the magnetic tape and the data stored in the memory of the sequence controller are sequentially compared and compared to ensure that the data on both are the same. However, if all the data is compared and verified in this way, depending on the format of the sequence program, verification may occur due to causes other than erroneous writing due to the influence of noise signals or playback. Errors may be detected and may confuse the operator. That is, when a sequence program recording device is used to transfer a sequence program to another sequence controller, a verification error may occur due to a difference in memory capacity.

例えば、4KWの記憶容量を有するメモ川こ狐Wのプロ
グラムが記憶されたシーケンスコントローフから、滋W
のメモリを有するシーケンスコントローラにシーケンス
プログラムを転送する場合、磁気テープには歌Wのシー
ケンスプログラムの後に無情報を表わすオール零のデー
タが2KW分だけ記録され、これが滋Wのメモリを有す
るシーケンスコントローラに転送されるわけであるが、
狐Wのメモリを有するシーケンスコントローラには氷W
分のデータだけが書込まれ残りのIMVのデータは書き
込まれない。そして、この後、照合動作を行うと、メモ
リに書込まれたデータが順番に謙出されて磁気テープに
記録されているデータと比較されるわけであるが、この
比較動作は通常4KW分について行われるため、メモリ
の容量が雛Wしかない場合には記憶エリアのないアドレ
スが指定されて空の情報を表わすオールーのデータが読
出され、このオール1のデータが磁気テープに記録され
ているオール零のデータと比較される。したがって、こ
のようなメモIJ容量の相違によって生じるテープデー
タとメモリデータの食い違いによっても照合エラーが検
出されてしまい作業者を困惑させるので、メモリ容量の
異なるシーケンスコントローラ間でのプログラムの複写
を磁気テープを介して行う場合には、プログラムの複写
後に照合動作を行って複写したプログラムのチェックを
行うことができなかった。本発明はかかる点を鑑みてな
されたもので、テープから読出したデータが無情報を表
す特定のビットパターンでかつメモリから読出したデー
タがメモリの記憶エリアかない場合に謙出される空デー
タの場合には異常と判定しないようにしたことを特徴と
するものである。以下本発明の実施例を図面に基づいて
説明する。
For example, from the sequence controller in which the program of Memokawa Kogitsune W, which has a storage capacity of 4KW, is stored, Shigeru W.
When transferring a sequence program to a sequence controller having a memory of Shigeru W, 2KW of all zero data representing no information is recorded on the magnetic tape after Uta W's sequence program, and this is transferred to a sequence controller having a memory of Shigeru W. Although it is transferred,
Ice W is used for sequence controllers with fox W memory.
Only the data for the IMV is written, and the data for the remaining IMV is not written. After this, when a verification operation is performed, the data written in the memory is sequentially extracted and compared with the data recorded on the magnetic tape, but this comparison operation is usually performed for 4KW. Therefore, if the memory capacity is only chick W, an address with no storage area is specified and all-1 data representing empty information is read out, and this all-1 data is read out from all data recorded on the magnetic tape. Compare with zero data. Therefore, since a matching error is detected due to discrepancies between tape data and memory data caused by such a difference in memo IJ capacity, which confuses the operator, programs should not be copied between sequence controllers with different memory capacities using magnetic tape. In this case, it was not possible to check the copied program by performing a collation operation after copying the program. The present invention has been made in view of the above points, and is applicable to empty data that is found when data read from a tape has a specific bit pattern representing no information and data read from a memory does not have a storage area of the memory. is characterized in that it is not determined to be abnormal. Embodiments of the present invention will be described below based on the drawings.

第1図において、1川ま公知のシーケンスコントローラ
を示し、2川ま本発明にかかるシーケンスプログラム記
録装置を示す。シーケンスコントローラ1川ま、図略の
プログラム書込装置によってシーケンスプログラムの書
込まれるシーケンスメモリ11と、シーケンスメモリ1
1に書込まれたシーケンスプログラムを順番に読出して
実行する演算処理部12と、リミットスイッチLSI0
、リレー10等の入力出要素が接続された入出力回路1
3とによって構成されており、演算処理部12によって
シーケンスプログラムが実行されると、入出力回路13
に接続された入出力要素のオンオフ状態がテストされる
とともに、このテスト結果に応じて所定の出力要素がオ
ンオフされ、これによって所望のシーケンス制御が実行
される。
In FIG. 1, one shows a known sequence controller, and the other shows a sequence program recording device according to the present invention. A sequence controller 1 includes a sequence memory 11 into which a sequence program is written by a program writing device (not shown), and a sequence memory 1.
1 and a limit switch LSI0.
, an input/output circuit 1 to which input/output elements such as a relay 10 are connected.
3, and when the sequence program is executed by the arithmetic processing unit 12, the input/output circuit 13
The on/off states of input/output elements connected to the input/output elements are tested, and predetermined output elements are turned on/off according to the test results, thereby executing desired sequence control.

本実施例においては、1つのシーケンスプログラムが第
2図aに示すように1ワード16ビットで構成されてお
り、前5ピツト‘・こテスト命令、出力命令、タイマ命
令等の命令コードがプログラムされ、残りの11ビット
に入出力要素のアドレスがプログラムされるようになっ
ている。
In this embodiment, one sequence program consists of one word of 16 bits as shown in FIG. , the address of the input/output element is programmed into the remaining 11 bits.

また、タイマ命令TID4とカウンタ命令CTRの設定
値と現在値は、第2図b‘こ示すようにタイマ爺令TI
Mまたはカウンタ命令CTRのプログラムされたメモリ
アドレスの次のメモリアドレスに記憶されるようになっ
ており、上位8ビットに設定値が記憶され、下位8ビッ
トに現在値が記憶される。さらに、シーケンスメモリ1
IはIKWの記憶容量を有するメモリユニットを適当な
数だけ粗合せて記憶容量を増減できるようになっており
、最大で4KWまでのシーケンスプログラムを記憶させ
ることができる。
In addition, the setting values and current values of the timer command TID4 and the counter command CTR are as shown in FIG.
It is stored in the memory address next to the memory address programmed by M or counter instruction CTR, with the set value stored in the upper 8 bits and the current value stored in the lower 8 bits. Furthermore, sequence memory 1
I can increase or decrease the storage capacity by roughly combining an appropriate number of memory units each having a storage capacity of IKW, and can store up to 4KW of sequence programs.

演算処理部12は、シーケンスメモリ11に記憶された
シーケンスプログラムを順番に読出して実行するもので
あるが、この演算処理部12は外部からの指令によって
シーケンスメモリ11の議出しを中止してシーケンスメ
モリ11内のプログラムの議出しと、シーケンスメモリ
11へのプログラムの書込とを外部から行えるようにな
っており、このため、演算処理部12には、シーケンス
メモリ11へ書込むシーケンスプログラムを受付けるデ
ータ入力ボートDIPと、シーケンスメモリ11から語
出したシーケンスプログラムを出力するデータ出力ボー
トDOPと、シーケンスメモリ11のアドレス指定を行
うアドレスデータを受付けるアドレスボートAPと、外
部からメモリリード、メモリライト等の制御信号を受付
ける命令ボートCPとが設けられている。
The arithmetic processing unit 12 sequentially reads out and executes the sequence programs stored in the sequence memory 11, but this arithmetic processing unit 12 stops reading the sequence program from the sequence memory 11 in response to an external command, and executes the sequence program stored in the sequence memory 11. 11 and write the program to the sequence memory 11 from the outside. An input boat DIP, a data output boat DOP that outputs the sequence program read from the sequence memory 11, an address boat AP that accepts address data for specifying the address of the sequence memory 11, and external control of memory read, memory write, etc. A command boat CP for receiving signals is provided.

なお、メモリユニットが実装されていないメモリアドレ
スの謙出しが指令されると、データ出力ボートDOPに
オール1のデータが出力される。
Note that when a command is issued to display a memory address in which no memory unit is mounted, all 1 data is output to the data output port DOP.

一方、シーケンスプログラム記録装置20は、シーケン
スコントローラ10のシーケンスメモリ11に記憶され
ているシーケンスプログラムを論出してカセット形の磁
気テープ(以下カセットテープと呼ぶ)に記録したり、
カセットテープに記録されたシーケンスプログラムを読
出してシーケンスメモリ11に書込んだりするもので、
本実施例ではカセットテープの片側のトラックだけを使
用して、1ワードが16ビットで構成された4KWのシ
ーケンスプログラムを8個記録するようになつている。
シ−ケンスプログラム記録装置2川ま、カセットテープ
CTの装着されるテープ駆動部21と、このテープ駆動
部21を制御して、データの書込みや読出し、テープマ
ークの書込み、テーブマ−クのサーチ、データの消去、
テープの巻戻し等の基本的な動作を行うカセット制御回
路22と、押ボタンスイッチSWI〜SW4の操作によ
ってシーケンスプログラムの記録、再生、消去、照合等
を指令する操作回路23と、この操作回路23からの指
令によってカセット制御回路22を動作させシーケンス
プログラムの記録、再生、消去、照合に必要な一連の動
作を行わせるメイン制御回路24と、カセットテ−プ未
装着、照合エラー等の各種の異常を外部表示する表示ユ
ニット25とによって構成されている。
On the other hand, the sequence program recording device 20 writes the sequence program stored in the sequence memory 11 of the sequence controller 10 and records it on a cassette-shaped magnetic tape (hereinafter referred to as a cassette tape).
It reads a sequence program recorded on a cassette tape and writes it to the sequence memory 11.
In this embodiment, only one track on one side of the cassette tape is used to record eight 4KW sequence programs each consisting of 16 bits.
Sequence program recording device 2 Kawama controls the tape drive section 21 into which the cassette tape CT is loaded, and controls this tape drive section 21 to write and read data, write tape marks, search for tape marks, etc. erasing data,
A cassette control circuit 22 that performs basic operations such as tape rewinding, an operation circuit 23 that instructs recording, playback, erasure, collation, etc. of a sequence program by operating pushbutton switches SWI to SW4, and this operation circuit 23. The main control circuit 24 operates the cassette control circuit 22 in response to commands from the main control circuit 24 to perform a series of operations necessary for recording, playing, erasing, and verifying sequence programs, and the main control circuit 24 operates the cassette control circuit 22 in response to commands from It is composed of a display unit 25 for external display.

また、カセット制御回路22とメイン制御回路24との
間にはインターフェイス用のレジスタDR,CR,SR
が設けられており、操作回路23にはシーケンスブログ
ラムを記録したり議出したりする記録エリアを指定する
デジタルスイッチDSが接続されている。カセット制御
回路22は、命令レジスタCRに第1表に示すような命
令コードが与えられると、与えられた命令コ−ド‘こ応
じた動作を行うようになっており、データを議出したり
、書込んだりする場合には、データレジス夕DRを介し
てメイン制御回路24との間でデータの交換を行う。
Further, interface registers DR, CR, and SR are provided between the cassette control circuit 22 and the main control circuit 24.
A digital switch DS is connected to the operation circuit 23 to designate a recording area in which a sequence program is recorded or presented. When the cassette control circuit 22 is given an instruction code as shown in Table 1 to the instruction register CR, it performs an operation according to the given instruction code. When writing, data is exchanged with the main control circuit 24 via the data register DR.

また、デ−夕の書込みを行うときには、データレジスタ
DRにセットされたデータを読込むと状態レジスタSR
の所定のビットを1にして読込完了をメイン制御回路2
4に報知し、読出しを行うときには、読出したデータを
データレジスタDRにセットした後で状態レジスタSR
の異なるビットを1にして読出完了をメイン制御回路2
4に報知するようになっている。第1表 メイン制御回路24は、前記したように操作回路23か
らの指令によってシーケンスプログラムの書込み、読出
し、照合等の動作を制御するもので、本実施例ではマイ
クロプ。
Also, when writing data, when the data set in the data register DR is read, the status register SR is
Main control circuit 2 sets a predetermined bit to 1 to indicate completion of reading.
4 and when reading, set the read data in the data register DR and then set it in the status register SR.
Main control circuit 2 sets different bits to 1 to complete reading.
It is designed to notify on 4 days. The main control circuit 24 in Table 1 controls operations such as writing, reading, and collating the sequence program in response to commands from the operating circuit 23, as described above, and is a microcomputer in this embodiment.

セツサとプログラムメモリ等から成るマイクロコンピュ
ータによって構成されている。このメイン制御回路24
は、演算処理部12とカセット制御回路22との両方に
交互に動作指令を与えることによって、書込み、議出し
、照合等の動作を行うようになっている。なお、本実施
例のシーケンスプログラム記録袋瞳においては、消去モ
ードでカセットテープを走行させることによってデータ
の消去を行うとともに、カセットテープCTの磁気面に
所定の間隔でテープマークを記録し、シーケンスプ。
It is composed of a microcomputer consisting of a setter, program memory, etc. This main control circuit 24
By alternately giving operation commands to both the arithmetic processing section 12 and the cassette control circuit 22, operations such as writing, drafting, and collation are performed. In the sequence program recording bag of this embodiment, the data is erased by running the cassette tape in the erase mode, and tape marks are recorded at predetermined intervals on the magnetic surface of the cassette tape CT. .

グラムデータの書込みや読出しを行う場合には、消去モ
ードで書込まれたテープマークを順番に議出して指定さ
れた記録工liアをサーチし、このサーチされた記録エ
リアにシーケンスプログラムのデータを書込んだり、サ
ーチされた記録エリアに記録されているシーケンスプロ
グラムのデータを論出したりするようにしている。この
ため、メイン制御回路24は、消去モードでテープマー
クを書込んだり、テープマークを読出して指定された記
録エリアをサーチする機能をソフトウェアで有している
。以下本発明にかかるシーケンスプログラム記録装置2
0の書込み、再生、照合の各モードにおける動作、特に
メイン制御回路24の各モード‘こおける動作を第3図
〜第5図のフローチャートに基づいて説明する。
When writing or reading program data, the tape marks written in erasure mode are searched for in sequence for the specified recording area, and the data of the sequence program is written in the searched recording area. The data of the sequence program recorded in the searched recording area is written. For this reason, the main control circuit 24 has software functions for writing tape marks in erase mode and for reading tape marks and searching for designated recording areas. Below, sequence program recording device 2 according to the present invention
The operations in each mode of 0 writing, reproduction, and verification, particularly the operation of the main control circuit 24 in each mode, will be explained based on the flowcharts of FIGS. 3 to 5.

書込モードはシーケンスメモリ11に記憶されたシーケ
ンスプログラムのデ−夕をカセットテーフ。
In the write mode, data of the sequence program stored in the sequence memory 11 is written to a cassette tape.

CTに書込むのに使用される。メイン制御回路24は図
略のメインルーチンで操作回路23に接続された押ボタ
ンスイッチSWI〜SW4のいずれかが押圧されている
かどうかを周期的にチェックし、書込指令用の押ボタン
スイッチSWIの押圧が検出されると、第3図に示す書
込ルーチソRECにジャンプして書込み処理を行う。な
お、本実施例では、書込みまたは再生の処理が完了する
と自動的に照合を行うようになっており、書込モードで
は4KW分のデータの書込が完了すると照合ルーチンV
ERにジャンプする。書込ルーチンRECの最初のステ
ップ40はデジタルスイッチDSによって設定された記
録エリアをサーチするステップで、設定された記録エリ
アがサーチされると、ステップ41へ移行してシーケン
スメモリ11のアドレス指定を行うアドレスカウンタA
DCを零リセツトし、ステップ42へ進む。
Used to write to CT. The main control circuit 24 periodically checks whether any of the pushbutton switches SWI to SW4 connected to the operation circuit 23 is pressed in a main routine (not shown), and selects the write command pushbutton switch SWI. When a press is detected, the program jumps to the write routine REC shown in FIG. 3 and performs a write process. In this embodiment, the verification is automatically performed when the write or playback process is completed, and in the write mode, when the writing of 4KW worth of data is completed, the verification routine V
Jump to ER. The first step 40 of the write routine REC is a step of searching for the recording area set by the digital switch DS. When the set recording area is searched, the process moves to step 41 to specify the address of the sequence memory 11. Address counter A
The DC is reset to zero and the process proceeds to step 42.

ステップ42になると、命令レジスタCRにWRT命令
のコードを出力してカセット制御回路22にデータの書
込みを指令する。
At step 42, the WRT command code is output to the command register CR to instruct the cassette control circuit 22 to write data.

これにより力セット制御回路22は、メイン制御回路2
4によってデータレジスタDRにセットされるデータを
1ワードずつ議込み、競込んだデータを順番にカセット
テープCTに書込んで行く。メイン制御回路24は、カ
セット制御回路22との間で動作のタイミングを取るた
めにステップ43で、デ−タレジスタDRのデータがカ
セット制御回路22によって謙込まれたかどうかを判別
し、読込まれたことが判別されると、ステップ44から
ステップ46でシーケンスメモリ11から新しいデータ
を読出してデータレジスタDRに出力する。そして、ス
テップ47でアドレスカウンタADCを歩進させ、次の
データを読出す準備をする。ステップ48は、アドレス
カウンタADCの計数値7777(8進表示)になった
かどうかによって、シーケンスメモリ11のデータが全
部書込まれたかどうかを判別するステップで、アドレス
カゥンタADCの計数値が7777でない場合にはステ
ップ43へ戻ってステップ43〜43のプログラムを再
び実行し、シーケンスメモリ1 1の4KW分のデータ
が全て書込まれてアドレスカウンタADCの計数値が7
777になるとステップ49へ進む。
As a result, the force set control circuit 22 is controlled by the main control circuit 2.
The data set in the data register DR by step 4 is loaded one word at a time, and the loaded data are sequentially written onto the cassette tape CT. In step 43, the main control circuit 24 determines whether or not the data in the data register DR has been downloaded by the cassette control circuit 22, and determines whether the data has been read. If it is determined, new data is read from the sequence memory 11 and output to the data register DR in steps 44 to 46. Then, in step 47, the address counter ADC is incremented to prepare for reading the next data. Step 48 is a step for determining whether all data in the sequence memory 11 has been written based on whether the count value of the address counter ADC has reached 7777 (in octal notation). If so, return to step 43 and execute the program from steps 43 to 43 again, and all 4KW worth of data in sequence memory 11 will be written and the count value of address counter ADC will be 7.
When it reaches 777, the process advances to step 49.

なお、シーケンスメモリ11に記憶されているシーケン
スプログラムが短か〈、シーケンスメモリ11にデータ
の書込まれていないエリアがあるときには、シーケンス
プログラムのデータに続いて無情報を示すオール零のデ
ータが読出され、これがカセットテープCTに記録され
る。ステップ49に移行すると、命令レジスタCRにR
EW命令データを出力して、カセット制御回路22にテ
ープの巻戻しを指令し、テープの巻戻しが完了したこと
がステップ50で判別されると第5図に示す照合モード
ルーチンVERにジャンプする。
Note that if the sequence program stored in the sequence memory 11 is short (or if there is an area in which no data is written in the sequence memory 11), all zero data indicating no information is read out following the sequence program data. and recorded on the cassette tape CT. When the process moves to step 49, R is set in the instruction register CR.
The EW command data is output to instruct the cassette control circuit 22 to rewind the tape, and when it is determined in step 50 that the rewinding of the tape has been completed, the process jumps to the verification mode routine VER shown in FIG.

なお、巻戻しの完了は、状態レジスタSRの所定のビッ
トに1が出力されたことによって半賜りするようになっ
ている。再生モードはカセットテープCTに記録された
シーケンスプログラムデータを議出してシーケンスメモ
リ11に記憶させる場合に用いられるもので、操作回路
23の再生押ボタンスイッチSW2を押圧すると第4図
に示す再生モードルーチンPBのプログラムが実行され
、これによって再生動作が行われる。
It should be noted that the completion of rewinding is determined by the output of 1 to a predetermined bit of the status register SR. The playback mode is used to output the sequence program data recorded on the cassette tape CT and store it in the sequence memory 11. When the playback pushbutton switch SW2 of the operation circuit 23 is pressed, the playback mode routine shown in FIG. 4 is started. The PB program is executed, thereby performing a playback operation.

この再生モードの場合にも動作が完了すると自動的に照
合ルーチンVERにジャンプして照合が行われる。再生
モードのルーチンPBは書込モードのルーチンRECの
動作と類似しており、ステップ51で指定された記録エ
リアをサーチし、ステップ52でアドレスカウンタAD
Cを零リセテトする。
Even in this reproduction mode, when the operation is completed, the process automatically jumps to the verification routine VER and verification is performed. The routine PB in the playback mode is similar to the routine REC in the write mode, in which the specified recording area is searched in step 51, and the address counter AD is set in step 52.
Reset C to zero.

そして、ステップ53でRDL命令コードを命令レジス
タCRにセットしてカセット制御回路22にデータの読
出しを指令し、ステップ54〜ステップ58で読出され
たシ−ケンスプログラムのデータをシーケンスメモリ1
1に順番に書込む。そして、4KW分のシーケンスプロ
グラムデータの書込みが完了すると、これがステップ5
9で判別されてステップ60へ移行し、カセット制御回
路22にカセットテープの巻戻しを指令する。そして、
カセットテープCTの巻戻しが完了すると、照合ルーチ
ンVERへジャンプする。この照合ルーチンVERのプ
ログラムは、シーケンスブログラムデータの書込みおよ
び再生が行われた後で自動的に実行される他、操作回路
23の照合押ボタンスイッチSW4が押圧されると単独
に実行されるが、照合ルーチンVERのみが単独で実行
される場合には、タイマ、カウンタの現在値を比較しな
いようにしている。
Then, in step 53, the RDL instruction code is set in the instruction register CR to instruct the cassette control circuit 22 to read data, and in steps 54 to 58, the read sequence program data is stored in the sequence memory 1.
1 in order. When the writing of sequence program data for 4KW is completed, this is the step 5.
9, the process moves to step 60, and the cassette control circuit 22 is instructed to rewind the cassette tape. and,
When the rewinding of the cassette tape CT is completed, the process jumps to the verification routine VER. The verification routine VER program is executed automatically after writing and reproducing the sequence program data, and is also executed independently when the verification pushbutton switch SW4 of the operation circuit 23 is pressed. , when only the verification routine VER is executed independently, the current values of the timer and counter are not compared.

この照合ルーチンVERの最初ステップ62は、この照
合ルーチンVERが単独で実行されるのか、書込みまた
は再生のルーチンREC,PBの後で続いて実行される
のかを判別するステップで、単独で実行されることが判
別された場合にはステップ63で単独フラッグIFをセ
ットしてステップ64へ進み、連続して実行されること
が判別された場合には、ステップ64へ直接進む。
The first step 62 of this verification routine VER is a step for determining whether this verification routine VER is executed alone or subsequently after the write or playback routines REC and PB, and is executed independently. If it is determined that this is the case, the individual flag IF is set in step 63 and the process proceeds to step 64. If it is determined that the process is to be executed continuously, the process directly proceeds to step 64.

ステップ64からステップ66までのフ。。グラムは、
前述の再生ルーチンPBのステップ51からステップ5
3までのプログラムと同じで、ステップ64でデジタル
スイッチDSに設定された記憶エリアをサーチし、ステ
ップ65でアドレスカウンタADCを零セットし、ステ
ップ66で命令レジスタCRにRDL命令コードをセッ
トしてカセット制御回路22にデータの読出しを指令し
、ステップ67へ移行する。ステップ67と68はカセ
ット制御回路22によって謙出されたテープデータを謙
込むステップで、ステップ67で状態レジスタSRの所
定のビットが“1”になったかどうかによってデータレ
ジスタDRにテープデータが出力されたかどうかを判別
し、ステップ68でデータレジスタDRに出力されたデ
ータを読込む。
From step 64 to step 66. . Gram is
Steps 51 to 5 of the aforementioned playback routine PB
Same as the program up to 3, in step 64 the storage area set in the digital switch DS is searched, in step 65 the address counter ADC is set to zero, and in step 66 the RDL instruction code is set in the instruction register CR and the cassette is loaded. The control circuit 22 is commanded to read data, and the process moves to step 67. Steps 67 and 68 are steps for storing the tape data output by the cassette control circuit 22. At step 67, the tape data is output to the data register DR depending on whether a predetermined bit of the status register SR becomes "1" or not. In step 68, the data output to the data register DR is read.

また、これに続くステップ69〜71はシーケンスメモ
リ11からデータを読出すステップで、ステップ69と
70で演算処理部12にアドレスカウンタADCの計数
値と読出し命令とを出力し、ステップ71でシーケンス
メモリ11から読出されたデータの議込みを行う。ステ
ップ72は照合動作が単独で行われているかどうかを単
独フラッグIFの状態によって判別するステップで、単
独で行われていることが判別されるとステップ73へ進
み、単独でない場合にはステップ74へ進む。
Further, subsequent steps 69 to 71 are steps for reading data from the sequence memory 11, and steps 69 and 70 output the count value of the address counter ADC and a read command to the arithmetic processing unit 12, and step 71 outputs the count value of the address counter ADC and a read command to the sequence memory 11. The data read from 11 is loaded. Step 72 is a step of determining whether or not the collation operation is being performed independently based on the state of the individual flag IF. If it is determined that the collation operation is being performed independently, the process proceeds to step 73, and if not, the process proceeds to step 74. move on.

ステップ73はカセットテープCTおよびシーケンスメ
モリ11から読出されたデータにタイマ、カウンタの現
在値が含まれているかどうかを判別するステップで、1
つ前のプログラムサイクルのステップ78aでタイマカ
ウンタフラツグTCFがセットされている場合には、読
出されたデー外こ現在値が含まれていると判別してステ
ップ75へ移行し、そうでない場合にはステップ74へ
移行する。ステップ74,75は、カセットテープCT
およびシーケンスメモリ11から言売出されたデータを
比較するステップで、ステップ74では、1ワード16
ビットの全データの比較を行い、ステップ75では上位
8ビットのデータのみを比較する。
Step 73 is a step of determining whether the data read from the cassette tape CT and the sequence memory 11 includes the current values of the timer and counter.
If the timer counter flag TCF was set in step 78a of the previous program cycle, it is determined that the current value is included outside the read data, and the process moves to step 75; otherwise, The process moves to step 74. Steps 74 and 75 are cassette tape CT
and the data outputted from the sequence memory 11, in step 74, one word 16
All bit data is compared, and in step 75 only the upper 8 bits of data are compared.

通常の照合の場合にステップ72またはステップ73か
らステップ74へ移行して全データの比較が行われるが
、照合動作のみが単独で行われていて、謙出されたデー
タにタイマカウンタの現在値が含まれている場合には、
ステップ73からステップ75へ移行して上位8ビット
の設定値データのみが比較される。そして、ステップ7
6で、両者が一致しているかどうかを判別し、一致して
いる場合にはステップ77へ移行し、照合エラーが生じ
て不一致の場合にはステップ83へ移行する。ステップ
83およびステップ84は、カセットテープCTから読
出されたデータがオール零で、シーケンスメモリ11か
ら読出されたデータがオール1であるかどうかを判別す
るステップで、これらの条件が満足された場合には、ス
テップ79へ移行してアドレスカウンタADCの歩進を
行い、これらの条件を満足しない場合にのみステップ8
5へ移行して照合エラーを示す異常表示を行う。
In the case of normal verification, the process moves from step 72 or step 73 to step 74 and all data are compared, but only the verification operation is performed independently, and the current value of the timer counter is included in the extracted data. If included,
The process moves from step 73 to step 75, where only the upper 8 bits of setting value data are compared. And step 7
In step 6, it is determined whether the two match. If they match, the process moves to step 77, and if a matching error occurs and they do not match, the process moves to step 83. Steps 83 and 84 are steps for determining whether the data read from the cassette tape CT is all zeros and the data read from the sequence memory 11 is all 1s. Then, proceed to step 79 to increment the address counter ADC, and only if these conditions are not satisfied, proceed to step 8.
The process moves to step 5 to display an abnormality indicating a collation error.

したがって、ステップ76で不一致が検出されても、カ
セットテープCTから読出されたデータがオール愛でシ
ーケンスメモリ11から読出されたデータがオール1の
場合、すなわち、前述したように書込みを行うシーケン
スコントローラのメモリ容量が4KW未満でメモリのな
いエリアがありこれによって照合エラーが生じた場合に
は、照合エラーは表示されない。なお、照合エラーが検
出された場合には照合プログラムの実行が中断されてテ
ープデータの論出しが行われなくなるため、カセットテ
ープCTの走行も中断される。一方、ステップ77,7
8a,78bは、カセットテープCTから謙出されたデ
ータがタイマ命令TIMかカウンタ命令CTRであるか
どうかを判別し、読出されたデータがタイマ、カウンタ
命令である場合には、次のプログラムサイクルで読出さ
れるデータの上位8ビットだけが照合されるようにする
もので、ステップ77では読出されたデータがタイマ命
令TIMまたはカウンタ命令CTRであるかどうかを所
定のビットパターンと比較して判別し、読出されたデー
タがタイマ、カウンタ命令である場合にはステップ78
aに移行して、タイマカウンタフラツグTCFをセット
し、タイマ、カウン夕命令でない場合にはステップ78
bに移行してタイマ、カウンタフラツグTCFをリセッ
トする。したがって、照合動作のみが単独で行われてい
る場合において、タイマ命令またはカウンタ命令が謙出
されると、次のプログラムサイクルでは、ステップ73
からステップ75へとステップ移行し、タイマ、カウン
タの設定値のデータのみが比較されることになる。この
ため、シーケンスコントローラ10を運転した後で照合
を行っても、タイマやカウンタの現在値の違いによって
照合エラーが生ずることはない。ステップ78a,78
bまたはステップ84からステップ79へ移行すると、
アドレスカウンタADCを歩進してステップ80へ移行
し、アドレスカウンタの計数値が7777になったかど
うかによって4KW分のデ−夕の照合が完了したかどう
かを判別する。
Therefore, even if a mismatch is detected in step 76, if the data read from the cassette tape CT is all 1 and the data read from the sequence memory 11 is all 1, that is, the sequence controller that performs writing as described above If the memory capacity is less than 4KW and there is an area with no memory, and this causes a verification error, no verification error will be displayed. Note that if a verification error is detected, the execution of the verification program is interrupted and the tape data is no longer output, so that the running of the cassette tape CT is also interrupted. On the other hand, step 77,7
8a and 78b determine whether the data read out from the cassette tape CT is a timer instruction TIM or a counter instruction CTR, and if the read data is a timer or counter instruction, the data is read out in the next program cycle. Only the upper 8 bits of the read data are checked, and in step 77 it is determined whether the read data is a timer instruction TIM or a counter instruction CTR by comparing it with a predetermined bit pattern. If the read data is a timer or counter instruction, step 78
Go to step a, set the timer counter flag TCF, and if it is not a timer or counter command, step 78
Shifting to step b, the timer and counter flag TCF are reset. Therefore, when a timer instruction or a counter instruction is issued when only a verification operation is performed independently, in the next program cycle, step 73 is executed.
Then, the process moves to step 75, and only the data of the set values of the timer and counter are compared. Therefore, even if verification is performed after operating the sequence controller 10, a verification error will not occur due to a difference in the current values of the timer or counter. Steps 78a, 78
b or when moving from step 84 to step 79,
The address counter ADC is incremented and the process moves to step 80, where it is determined whether or not the verification of data for 4KW has been completed, depending on whether the count value of the address counter has reached 7777.

そして、アドレスカウンタADCの計数値が7777に
なっていない場合にはステップ67へ戻って、次のデー
タの読出しと照合を再び行い、4KW分のデータの照合
が完了してアドレスカウンタAOCの計数値が7777
になると、ステップ81へ移行してカセット制御回路2
2へテープの巻戻しを指令し、巻戻しの完了がステップ
82で判別されると、照合動作を完了する。以上述べた
ように、本発明においては、テープから議出したデータ
が無情報を表す特定のビットパターンでかつメモリから
議出したデータがメモリの記憶エリアがない場合に読出
される空データの場合には異常と判定しないように構成
したので、メモリ容量の異なるシーケンスコントローフ
間でのシーケンスプログラムの複写を磁気テープを介し
て行い、これによってテープデータとメモリデータとの
間に相違が生じた場合にはこれを照合エラーとして検出
しないようにすることができる。
If the count value of the address counter ADC is not 7777, the process returns to step 67 and the next data is read and verified again, and when the verification of 4KW worth of data is completed, the count value of the address counter AOC is is 7777
Then, the process moves to step 81 and the cassette control circuit 2
2 to rewind the tape, and when it is determined in step 82 that rewinding is complete, the verification operation is completed. As described above, in the present invention, when the data retrieved from the tape has a specific bit pattern representing no information and the data retrieved from the memory is empty data that is read when there is no storage area in the memory, Since the configuration is configured so that it will not be judged as an abnormality, if a sequence program is copied between sequence controllers with different memory capacities via magnetic tape, and a discrepancy occurs between the tape data and memory data. You can prevent this from being detected as a matching error.

したがって、メモリ容量の異なるシーケンスコントロー
ラ間でのシーケンスプログラムの複写を磁気テープを介
して行い、プログラムの複写後に照合動作を行った場合
でも、メモリ容量の相違によって発生するメモリデータ
とテープデータの食い違いによって照合エラーが発生す
ることがなく、かかるプログラム複写を行う場合でもプ
ログラムの複写後に照合動作を行って複写したプログラ
ムのチェックを行なえる利点がある。
Therefore, even if a sequence program is copied via magnetic tape between sequence controllers with different memory capacities and a verification operation is performed after copying the program, discrepancies between memory data and tape data caused by differences in memory capacity may cause There is an advantage that no collation errors occur, and even when such program copying is performed, a collation operation can be performed after copying the program to check the copied program.

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

第1図は本発明にかかるシーケンスプログラム記録装置
をシーケンスコントローラに接続した状態を示すブロッ
ク図、第2図はシーケンスプログラムデータの構成を示
す図、第3図から第5図はシーケンスプログラム記録装
置の動作を説明するためのフローチャートで、第3図は
書込ルーチンRECを示すフローチャート、第4図は再
生ルーチンPBを示すフローチャート、第5図は照合ル
ーチンVERを示すフローチャートである。 10……シーケンスコントローラ、11……シーケンス
メモ1.J、12・・・・・・演算処理部、13・・・
・・・入出力回路、20・…・・シーケンスプログラム
記録装置、21・・・・・・テープ駆動部、22…・・
・カセット制御回路、23・・・…操作回路、24・・
・・・・メイン制御回路、25・・・・・・表示ユニッ
ト、CT・・・・・・カセットテーフ〇。 矛7図 オZ図(0) オ2図(b) ガ3図 矛4図 オク図
FIG. 1 is a block diagram showing a sequence program recording device according to the present invention connected to a sequence controller, FIG. 2 is a diagram showing the structure of sequence program data, and FIGS. 3 to 5 are diagrams showing the sequence program recording device connected to a sequence controller. 3 is a flowchart showing the write routine REC, FIG. 4 is a flowchart showing the reproduction routine PB, and FIG. 5 is a flowchart showing the verification routine VER. 10...Sequence controller, 11...Sequence memo 1. J, 12... Arithmetic processing unit, 13...
...Input/output circuit, 20...Sequence program recording device, 21...Tape drive unit, 22...
・Cassette control circuit, 23...operation circuit, 24...
...Main control circuit, 25...Display unit, CT...Cassette tape〇. Figure 7, Figure Z (0), Figure 2 (b) Figure 3, Figure 4, Figure 4

Claims (1)

【特許請求の範囲】[Claims] 1 磁気テープに記録されているデータとシーケンスコ
ントローラのメモリに記録されているデータとを順番に
読出して比較し磁気テープからシーケンスコントローラ
のメモリへ転送されたシーケンスプログラムが正しいか
どうかを照合するようにしたシーケンスプログラム記録
装置であつて、前記磁気テープに記録されたデータを順
番に読出すテープデータ読出手段と、このテープデータ
読出手段によつて前記磁気テープから1単位のデータが
読出される度に前記メモリの異なるメモリアドレスを指
定して1単位のデータを読出すメモリデータ読出手段と
、このメモリデータ読出手段によつて読出されたデータ
と前記テープデータ読出手段によつて読出された1単位
のデータとを比較し両者が一致しない場合には照合エラ
ーとして異常判別を行う異常判別手段と、前記テープデ
ータ読出手段によつて読出されたデータが無情報を表す
特定のビツトパターンでかつ前記メモリデータ読出手段
によつて読出されたデータがメモリの記憶エリアがない
場合に読出される空データである場合に前記異常判別手
段を無効にする判別無効手段とを設けたことを特徴とす
る磁気テープを用いたシーケンスプログラム記録装置。
1 The data recorded on the magnetic tape and the data recorded on the sequence controller's memory are sequentially read and compared to check whether the sequence program transferred from the magnetic tape to the sequence controller's memory is correct. The sequence program recording device comprises a tape data reading means for sequentially reading data recorded on the magnetic tape, and a tape data reading means each time one unit of data is read from the magnetic tape. memory data reading means for reading out one unit of data by specifying a different memory address in the memory; an abnormality determining means for comparing the data and determining the abnormality as a collation error if the two do not match; A magnetic tape characterized in that it is provided with discrimination invalidation means for disabling the abnormality discrimination means when the data read by the reading means is empty data read when there is no storage area in the memory. Sequence program recording device used.
JP53115499A 1978-09-20 1978-09-20 Sequence program recording device using magnetic tape Expired JPS6038723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53115499A JPS6038723B2 (en) 1978-09-20 1978-09-20 Sequence program recording device using magnetic tape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53115499A JPS6038723B2 (en) 1978-09-20 1978-09-20 Sequence program recording device using magnetic tape

Publications (2)

Publication Number Publication Date
JPS5541576A JPS5541576A (en) 1980-03-24
JPS6038723B2 true JPS6038723B2 (en) 1985-09-03

Family

ID=14664012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53115499A Expired JPS6038723B2 (en) 1978-09-20 1978-09-20 Sequence program recording device using magnetic tape

Country Status (1)

Country Link
JP (1) JPS6038723B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01500974A (en) * 1986-09-26 1989-04-06 ゼネラル・エレクトリック・カンパニイ How to make via holes in polymeric dielectrics for multiple electronic circuit chip packages

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59197903A (en) * 1983-04-22 1984-11-09 Kokuyo Kk Device for generating information related to goods manufacturing specification
JPS62141827A (en) * 1985-12-16 1987-06-25 Nippon Telegr & Teleph Corp <Ntt> System and device for mobile radio communication
JPH0797286B2 (en) * 1992-02-27 1995-10-18 豊田工機株式会社 Sequence program verification method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01500974A (en) * 1986-09-26 1989-04-06 ゼネラル・エレクトリック・カンパニイ How to make via holes in polymeric dielectrics for multiple electronic circuit chip packages

Also Published As

Publication number Publication date
JPS5541576A (en) 1980-03-24

Similar Documents

Publication Publication Date Title
JP2574258B2 (en) Alternation recording method
JPS6038723B2 (en) Sequence program recording device using magnetic tape
US5657301A (en) Automatic changer system capable of rewriting a control program for controlling the system
US5161072A (en) Information recording/reproducing apparatus for recording information and verifying recorded information
US5428755A (en) Method for automatically modifying program in a flash memory of a magnetic tape unit
JPH03192436A (en) Information recording and reproducing system
JPH0322265A (en) Magneto-optical disk processor
JPH0542069B2 (en)
JPH10161881A (en) Data recording and reproducing device capable of downloading of control program
US5650883A (en) Data recording apparatus having check-after-write function and reproduction apparatus and method for reproducing data recorded by the recording apparatus
JPS592962B2 (en) Recording device control system
JPS6113259B2 (en)
JPS6348662A (en) Information recording and reproducing method for optical disk device
JPS63121171A (en) Control system for optical disk device
JPS58141409A (en) Data high-speed processing system for magnetic disc device
JPH0666106B2 (en) Error detection circuit
JPH0231394A (en) Digital audio tape recorder
JPH0883151A (en) Magnetic disk device
JPS60107158A (en) Method for informing statistical information
JPS6148172A (en) Information write control system
JPH0576056B2 (en)
JPH0833803B2 (en) Storage controller
JPS6027412B2 (en) Control device for peripheral storage devices
JPH10133867A (en) Data reproducing device and data recording medium
JPH035950A (en) Memory control system for cartridge library device