[go: up one dir, main page]

JPS6310444B2 - - Google Patents

Info

Publication number
JPS6310444B2
JPS6310444B2 JP15726282A JP15726282A JPS6310444B2 JP S6310444 B2 JPS6310444 B2 JP S6310444B2 JP 15726282 A JP15726282 A JP 15726282A JP 15726282 A JP15726282 A JP 15726282A JP S6310444 B2 JPS6310444 B2 JP S6310444B2
Authority
JP
Japan
Prior art keywords
counter
bit
word
sequence control
output
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
JP15726282A
Other languages
Japanese (ja)
Other versions
JPS5945504A (en
Inventor
Mitsuaki Tanno
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP15726282A priority Critical patent/JPS5945504A/en
Publication of JPS5945504A publication Critical patent/JPS5945504A/en
Publication of JPS6310444B2 publication Critical patent/JPS6310444B2/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/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/052Linking several PLC's
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/15Plc structure of the system
    • G05B2219/15127Bit and word, byte oriented instructions, boolean and arithmetic operations

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 この発明はビツト演算処理およびデータ処理を
高速に実行するシーケンス制御装置に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sequence control device that performs bit arithmetic processing and data processing at high speed.

従来この種の装置として第1図に示すものがあ
つた。図において1は発振器、2はこの発振器の
発振周期毎に歩進するプログラムカウンタ、3は
シーケンス制御プログラムメモリである。4はビ
ツト演算器であり、5はビツト演算の一時記憶メ
モリである。6は入力部であり、14a〜14f
は入力端子である。7は出力部であり、15a〜
15fは出力端子である。8はデータ処理を実行
するワード演算手段、9はこのワード演算手段の
システムプログラムメモリである。20はプログ
ラムカウンタの出力線、21はワード演算手段8
(マイクロプロセツサ)のアドレスバス、22は
データバスである。23はゲート制御線でワード
演算手段の割込力および切換ゲート10〜13等
に接続される。24はゲート切換要求線、25は
シーケンス制御プログラムメモリのアドレス線、
26はデータ線である。27はビツト演算器4へ
の命令入力線、28はビツト演算器4から出力さ
れる一時記憶メモリのアドレス指定線、29は入
力情報,出力情報,演算情報を一時的に記憶する
一時記憶メモリ5のアドレス線である。30は一
時記憶メモリのデータ線であり、31はビツト演
算器4からのデータ線である。10は第1のアド
レス切換器であり、プログラムカウンタ出力とワ
ード演算手段8のアドレスバスを切換える。11
は第1のデータ切換器であり、シーケンス制御プ
ログラムメモリ3、のデータ線をワード演算手段
8のデータバス、又はビツト演算手段4に接続す
る。12は第2のアドレスバス切換器であり、ビ
ツト演算器4からのアドレス指定線28およびワ
ード演算手段8のアドレスバスを切換える。13
は第2のデータ切換器であり、ビツト演算の一時
記憶メモリのデータ線をビツト演算器4又はワー
ド演算手段3のデータバスへ切換える。第2図は
第1図の動作説明のためのプログラム例、第3図
は動作タイミング図である。第2図40aは第1
ステツプ目の命令語であり、ビツト演算命令が入
つている。40cは第3ステツプ目の命令語であ
り、ワード演算命令が入つている。40hは一連
のプログラムの終了を示す命令である。第3図4
1はビツト演算器4の動作タイミングを示すもの
で“L”の期間に命令語がシーケンス制御プログ
ラムメモリ3よりビツト演算器4に与えられ
“H”の期間にビツト演算が実行される。43は
ワード演算時のメモリアクセスのタイミングを示
すものである。
A conventional device of this type is shown in FIG. In the figure, 1 is an oscillator, 2 is a program counter that increments every oscillation period of the oscillator, and 3 is a sequence control program memory. 4 is a bit arithmetic unit, and 5 is a temporary storage memory for bit arithmetic operations. 6 is an input section, 14a to 14f
is an input terminal. 7 is an output section, 15a~
15f is an output terminal. Reference numeral 8 represents a word operation means for executing data processing, and 9 represents a system program memory for this word operation means. 20 is the output line of the program counter, 21 is the word calculation means 8
(microprocessor) address bus, 22 is a data bus. Reference numeral 23 is a gate control line connected to the interrupt input of the word calculation means and the switching gates 10 to 13, etc. 24 is a gate switching request line; 25 is a sequence control program memory address line;
26 is a data line. 27 is a command input line to the bit arithmetic unit 4, 28 is an address designation line for a temporary memory memory output from the bit arithmetic unit 4, and 29 is a temporary memory memory 5 for temporarily storing input information, output information, and operation information. This is the address line. 30 is a data line of the temporary storage memory, and 31 is a data line from the bit arithmetic unit 4. A first address switch 10 switches between the program counter output and the address bus of the word calculation means 8. 11
is a first data switch which connects the data line of the sequence control program memory 3 to the data bus of the word calculation means 8 or the bit calculation means 4. Reference numeral 12 denotes a second address bus switch, which switches the address designation line 28 from the bit arithmetic unit 4 and the address bus of the word arithmetic means 8. 13
is a second data switch, which switches the data line of the temporary storage memory for bit operations to the data bus of the bit operation unit 4 or the word operation means 3. FIG. 2 is a program example for explaining the operation of FIG. 1, and FIG. 3 is an operation timing diagram. FIG. 2 40a is the first
This is the step instruction word and contains a bit operation instruction. 40c is the third step instruction word, which contains a word operation instruction. 40h is an instruction indicating the end of a series of programs. Figure 3 4
1 indicates the operation timing of the bit arithmetic unit 4. During the "L" period, a command word is applied from the sequence control program memory 3 to the bit arithmetic unit 4, and during the "H" period, the bit arithmetic operation is executed. Reference numeral 43 indicates memory access timing during word operation.

次に動作について説明する。発振器1によつて
出力された一定周波数信号はプログラムカウンタ
2を歩進させる。プログラムカウンタ2の各段の
出力線は第1のアドレス切換器10を経て、シー
ケンス制御プログラムメモリ3のアドレスをプロ
グラムカウンタ2の歩進に従つて一番地毎に増加
させ、シーケンス制御プログラムメモリ3のデー
タ線にシーケンス制御プログラムメモリ3の記憶
内容を遂次読み出させる。シーケンス制御プログ
ラムメモリ3の記憶内容は、第2図40に示すご
とくビツト演算命令とワード演算命令が混在して
おり、これらの命令コードは第1のデータ切換器
11を経由して、ビツト演算器4に与えられる。
第2図の例では40aの命令コードが与えられる
のはタイミング42の“L”期間であり、“H”
の期間には入力端子14および入力部6を経て、
ワード演算手段8によつて読み込まれ、あらかじ
め一時記憶メモリ5に書込まれた入力情報間、お
よび一時記憶メモリ5の中の出力情報間、等のビ
ツト演算が実行される。次にプログラムカウンタ
2が歩進して命令40bがビツト演算器4に与え
られる。と同様に一時記憶メモリ5に書込まれて
いる内容とビツト演算器4の内部の演算結果との
間で演算が実行される。
Next, the operation will be explained. The constant frequency signal output by oscillator 1 increments program counter 2. The output lines of each stage of the program counter 2 pass through the first address switch 10, and the address of the sequence control program memory 3 is incremented at every position as the program counter 2 increments. The contents of the sequence control program memory 3 are sequentially read out through the data line. The stored contents of the sequence control program memory 3 are a mixture of bit operation instructions and word operation instructions as shown in FIG. given to 4.
In the example of FIG. 2, the instruction code 40a is given during the "L" period of timing 42, and the "H"
During the period, through the input terminal 14 and the input section 6,
Bit operations are performed between the input information read by the word operation means 8 and previously written in the temporary storage memory 5, between the output information in the temporary storage memory 5, etc. Next, the program counter 2 increments and the instruction 40b is applied to the bit arithmetic unit 4. Similarly, an operation is performed between the contents written in the temporary storage memory 5 and the operation result inside the bit operation unit 4.

次のプログラムカウンタの歩進によつて40c
のワード演算命令コードがシーケンス制御プログ
ラムメモリ3から11を経てビツト演算器4へ与
えられる。ビツト演算器4では命令コードがワー
ド演算であることを検知しゲート制御線23によ
り、ワード演算手段8に割込む、と同時にワード
演算検知線は発振器1および切換器10,11,
12,13を制御し、シーケンス制御プログラム
メモリ3とワード演算手段8,および一時記憶メ
モリ5とワード演算手段8とを接続する。そして
ワード演算手段8は第3図43で示されるタイミ
ングでメモリをアクセスする。この間ビツト演算
は完全に休止している。ワード演算が完了した時
点でゲート切換要求線24により、ビツト演算器
4はゲート制御線23を解除し、ビツト演算のた
め発振器1を再起動しゲート10,11,12,
13をもとの状態に復帰させ、ビツト演算を再開
する。
40c by next program counter increment
The word operation instruction code is applied from the sequence control program memory 3 to the bit operation unit 4 via the sequence control program memory 11. The bit operation unit 4 detects that the instruction code is a word operation and interrupts the word operation means 8 via the gate control line 23. At the same time, the word operation detection line is connected to the oscillator 1, the switches 10, 11,
12 and 13, and connects the sequence control program memory 3 and the word calculation means 8, and the temporary storage memory 5 and the word calculation means 8. Then, the word operation means 8 accesses the memory at the timing shown in FIG. 343. During this time, bit operations are completely stopped. When the word operation is completed, the bit operation unit 4 releases the gate control line 23 by the gate switching request line 24, restarts the oscillator 1 for bit operation, and switches the gates 10, 11, 12,
13 to its original state and resumes bit operations.

シーケンス制御プログラムの中に特定の命令コ
ードが入つているかを調べるモニタリングの場合
は、ワード演算手段8からゲート切換要求線24
に信号を出しゲート制御線23により、ビツト演
算を停止させ、シーケンス制御プログラムメモリ
3のアドレス線をワード演算手段8のアドレスバ
ス21,データバス22に接続する。
In the case of monitoring to check whether a specific instruction code is included in the sequence control program, the gate switching request line 24 is sent from the word operation means 8.
A signal is issued to the gate control line 23 to stop the bit operation, and the address line of the sequence control program memory 3 is connected to the address bus 21 and data bus 22 of the word operation means 8.

そして特定の命令コードが、シーケンス制御プ
ログラムメモリ3に入つているか、シーケンスプ
ログラムメモリ3を遂次読出して命令コードの照
合を実施する。そして特定の命令コードが発見出
来れば、ゲート切換要求線24に信号を出し、ゲ
ート制御線23により、発振器1の動作およびゲ
ート10,11,12,13の切換えを元にもど
してビツト演算を再開する。
Then, whether a specific instruction code is stored in the sequence control program memory 3 or not is checked by sequentially reading out the sequence program memory 3. If a specific instruction code is found, a signal is sent to the gate switching request line 24, and the operation of the oscillator 1 and the switching of the gates 10, 11, 12, and 13 are restored to their original state using the gate control line 23, and the bit operation is restarted. do.

従来のシーケンス制御装置は、以上のように構
成されているので、ワード演算処理中はビツト演
算を中止する他、モニタリング時も演算を中止す
る必要があるので全命令を実行するのに時間がか
かる等の欠点があつた。
Conventional sequence control devices are configured as described above, so in addition to stopping bit operations during word operation processing, it is also necessary to stop operations during monitoring, so it takes time to execute all instructions. There were other drawbacks.

この発明は上記のような従来のものの欠点を除
去するためになされたもので、2個のカウンタと
フリツプ・フロツプより成る制御回路により、第
1のカウンタでビツト演算命令の一命令実行完了
のタイミングを検知し、第2のカウンタでワード
演算手段がメモリをアクセスするタイミングを作
り、フリツプ・フロツプによつて両カウンタの歩
進を制御することにより、ワード演算手段が、シ
ーケンス制御プログラムメモリ、および一時記憶
メモリをアクセスする時のみ、ビツト演算を休止
させ、ワード演算手段がシステムプログラムメモ
リをアクセスする時は、ビツト演算を実行するこ
とが出来るようになしモニタリング時にワード演
算手段によつて、ビツト演算が休止される期間を
最少にし、演算周期を短くすることが出来るシー
ケンス制御装置を提供することを目的としてい
る。
This invention was made to eliminate the drawbacks of the conventional ones as described above, and uses a control circuit consisting of two counters and a flip-flop to determine the timing of completion of execution of one bit operation instruction by the first counter. is detected, the second counter sets the timing for the word operation means to access the memory, and the flip-flop controls the increment of both counters, so that the word operation means can access the sequence control program memory and the temporary memory. The bit operation is paused only when the storage memory is accessed, and when the word operation means accesses the system program memory, the bit operation can be executed. It is an object of the present invention to provide a sequence control device that can minimize the pause period and shorten the calculation cycle.

以下、この発明の一実施例を図について説明す
る。第4図において、50は第1のグレイコード
(交番2進コード)を発生するカウンタ、51は
第2のグレイコードを発生するカウンタ、52は
第1のグレイコードカウンタの入力ゲート、53
は第2のグレイコードカウンタの入力ゲート、5
4はビツト演算タイミングデコーダでありカウン
タ50の各段の出力線62を入力としてビツト演
算のタイミングをビツト演算器4のタイミング入
力線64に出力する。55は第1のデコーダであ
りカウンタ50の各段の出力をデコードしフリツ
プ・フロツプ群58を制御する。56は第2のデ
コーダであり、カウンタ51の各段の出力をデコ
ードし、フリツプ・フロツプ群58を制御する。
59は発振器1によつて発生される第1の発振パ
ルスの出力線であり、70は第2の発振パルスの
出力線である。第1の発振パルス数は第2の発振
パルス数より高くなつている。
An embodiment of the present invention will be described below with reference to the drawings. In FIG. 4, 50 is a counter that generates a first Gray code (alternating binary code), 51 is a counter that generates a second Gray code, 52 is an input gate of the first Gray code counter, and 53
is the input gate of the second Gray code counter, 5
Reference numeral 4 designates a bit operation timing decoder which inputs the output line 62 of each stage of the counter 50 and outputs the timing of the bit operation to the timing input line 64 of the bit operation unit 4. A first decoder 55 decodes the output of each stage of the counter 50 and controls the flip-flop group 58. A second decoder 56 decodes the output of each stage of the counter 51 and controls the flip-flop group 58.
59 is an output line for the first oscillation pulse generated by the oscillator 1, and 70 is an output line for the second oscillation pulse. The first number of oscillation pulses is higher than the second number of oscillation pulses.

60は第1のグレイコードカウンタの入力線、
61は第2のグレイコードカウンタの入力線であ
り、63は第2のグレイコードカウンタの各段の
出力線である。66は第2のデコーダの出力線、
71はアドレスデコーダで、ワード演算手段8が
シーケンス制御プログラムメモリ3または、ビツ
ト演算の一時記憶メモリ5をアクセスする時のみ
アドレスデコーダの出力線67に制御信号58を
発生する。
60 is the input line of the first Gray code counter;
61 is an input line of the second Gray code counter, and 63 is an output line of each stage of the second Gray code counter. 66 is the output line of the second decoder;
Reference numeral 71 denotes an address decoder, which generates a control signal 58 on the output line 67 of the address decoder only when the word operation means 8 accesses the sequence control program memory 3 or the bit operation temporary storage memory 5.

57は切換器制御デコーダであり、切換器制御
線68を制御する。69はゲート52,53を制
御する制御線である。
A switch control decoder 57 controls a switch control line 68. Reference numeral 69 is a control line for controlling the gates 52 and 53.

第5図は第4図動作を説明するタイミング図で
ある。
FIG. 5 is a timing diagram illustrating the operation shown in FIG. 4.

59aは第1の発振パルス出力線59の信号波
形、62a,62b,62cは第1のグレイコー
ドカウンタの各段の出力線62の各段の出力波
形、64a,64bはビツト演算タイミングデコ
ーダ54の出力線64の波形であり64aは、シ
ーケンス制御プログラムメモリ3からのプログラ
ム読込タイミング、64bはビツト演算実行タイ
ミングである。65aは第1のデコーダの出力線
65の波形であり67aはアドレスデコーダ出力
線67の波形で、メモリ3および5に対してアク
セス要求があれば波形67aは“H”となる。6
3a,63b,63cは第2のグレーコードを発
生するカウンタ51の各段の出力であり、68a
はデコーダ57の出力で、これにより切換器1
0,11,12,13を制御し、シーケンス制御
プログラムメモリ3または一時記憶メモリ5のア
ドレスバス、およびデータバスをワード演算手段
8に接続する。66aは第2のデコーダの出力線
66の波形でありフリツプ・フロツプ群58をリ
セツトし、ビツト演算手段とシーケンス制御プロ
グラムメモリ3、および一時記憶メモリ5を接続
する。
59a is the signal waveform of the first oscillation pulse output line 59, 62a, 62b, 62c is the output waveform of each stage of the output line 62 of each stage of the first Gray code counter, and 64a, 64b is the signal waveform of the bit operation timing decoder 54. In the waveform of the output line 64, 64a is the program read timing from the sequence control program memory 3, and 64b is the bit operation execution timing. 65a is the waveform of the output line 65 of the first decoder, and 67a is the waveform of the address decoder output line 67. If there is an access request to the memories 3 and 5, the waveform 67a becomes "H". 6
3a, 63b, and 63c are the outputs of each stage of the counter 51 that generates the second gray code, and 68a
is the output of the decoder 57, which causes the switch 1
0, 11, 12, and 13, and connects the address bus and data bus of the sequence control program memory 3 or temporary storage memory 5 to the word operation means 8. Reference numeral 66a represents the waveform of the output line 66 of the second decoder, which resets the flip-flop group 58 and connects the bit calculation means, the sequence control program memory 3, and the temporary storage memory 5.

次に動作について説明する。 Next, the operation will be explained.

発振器1によつて出力された一定周波数信号
は、プログラムカウンタ2と第1のグレイコード
カウンタ50の入力ゲート52に与えられる。第
1の発振パルス出力線59に与えられる周波数
は、第2発振パルス出力線70に与えられる周波
数に比べて本例では4倍程度高い。最初は10,
11,12,12等の切換器は、ビツト演算側に
なつており、プログラムカウンタ2の各段の出力
は第1のアドレス切換器10を経由してシーケン
ス制御プログラムメモリ3のアドレス線を駆動
し、シーケンス制御プログラムのデータが切換器
11を経由して、ビツト演算器4に与えられる。
一方ゲート52を経由して第1の発振パルスはグ
レイコードカウンタ50に与えられ62a,62
b,62cのような波形をカウンタの各段に生ず
る。ビツト演算タイミングデコーダ54は64
a,64bのようなタイミング信号を発生し、6
4aのタイミングでシーケンス制御プログラムか
ら命令コードを読取り、64bのタイミングでビ
ツト演算を実行する。今仮にシーケンス制御プロ
グラムの内容を読出すか、又は一時記憶メモリに
書込まれている入,出力情報を読出すモニタリン
グの要求が生じた場合、ワード演算手段8は、シ
ーケンス制御プログラムメモリ3または一時記憶
メモリ5をアクセスするためのアドレス信号をア
ドレスバス21に送出する。アドレスデコーダ7
1は出力線に67aのような波形の信号を出す。
67aの信号が“H”であり、かつ65aの信号
が“H”である時にフリツプ・フロツプ群58は
制御されゲート制御線69を“L”にしゲート5
2を閉じると同時にゲート53を開ける。これに
より第2のグレイコードカウンタ51の法進が開
始され、デコーダ57の出力68に68aのよう
なパルスを送出しこの間、切換器10,11,1
2,13はシーケンス制御プログラムメモリ3お
よび一時記憶メモリ5のアドレス線およびデータ
線をワード演算手段8のアドレスバス21、およ
びデータバス22に接続しワード演算手段8によ
つて、上記メモリの読出しが実行される。読出し
実行の終了は第2のデコーダ56によつて検知さ
れ66aのパルスをフリツプ・フロツプ群58に
送出し、58を初期状態とし第1のグレイコード
のカウンタ50の歩進を再開する。ワード演算命
令コードがビツト演算器4で検知された場合ゲー
ト制御線23によつて、プログラムカウンタ2の
歩進を停止し、切換器10,11,12,13を
制御し、ワード演算手段8が、シーケンス制御プ
ログラムメモリ3をアクセス出来るようにし、ワ
ード演算命令のパラメータを読み取りワード演算
を実行する。この時ワード演算の種類を判定し、
次のステツプのビツト演算を起動しても良い場合
は、ゲート切換え要求線24に、ビツト演算起動
信号を送出し、切換器10,11,12,13を
元の状態に切換えビツト演算を再開する。この場
合は、ワード演算とビツト演算が並行して実行さ
れる。この過程において一時記憶メモリ5のデー
タをワード演算手段8が必要となる場合は、アド
レスバス21に一時記憶メモリ5のアドレスが送
出され、アドレスデコーダ71はこれを検知しア
ドレスデコーダ出力線67に67aのパルスを発
生し、65aのタイミングでフリツプ・フロツプ
群58が制御され、第1のグレイコード50の歩
進は停止され、第2のグレイコードを発生するカ
ウンタ51の歩進が開始されて、タイミング68
aが切換器10,11,12,13に送出されワ
ード演算手段は一時記憶メモリ5をアクセスする
ことが出来る。
The constant frequency signal output by the oscillator 1 is applied to the input gate 52 of the program counter 2 and the first Gray code counter 50. In this example, the frequency applied to the first oscillation pulse output line 59 is about four times higher than the frequency applied to the second oscillation pulse output line 70. Initially 10,
Switches 11, 12, 12, etc. are on the bit operation side, and the output from each stage of the program counter 2 drives the address line of the sequence control program memory 3 via the first address switch 10. , sequence control program data is applied to the bit calculator 4 via the switch 11.
On the other hand, the first oscillation pulse is given to the Gray code counter 50 via the gate 52, and 62a, 62
Waveforms such as b and 62c are generated at each stage of the counter. The bit operation timing decoder 54 is 64
Generate timing signals such as a and 64b, and
The instruction code is read from the sequence control program at timing 4a, and the bit operation is executed at timing 64b. If a request for monitoring to read out the contents of the sequence control program or input/output information written in the temporary storage memory arises, the word calculation means 8 will read out the contents of the sequence control program or read out the input and output information written in the temporary storage memory. An address signal for accessing the memory 5 is sent to the address bus 21. address decoder 7
1 outputs a waveform signal like 67a to the output line.
When the signal of 67a is "H" and the signal of 65a is "H", the flip-flop group 58 is controlled and the gate control line 69 is set to "L" to close the gate 5.
At the same time as closing the gate 2, the gate 53 is opened. As a result, the second Gray code counter 51 starts to advance, and a pulse like 68a is sent to the output 68 of the decoder 57.
Reference numerals 2 and 13 connect the address lines and data lines of the sequence control program memory 3 and the temporary storage memory 5 to the address bus 21 and data bus 22 of the word operation means 8, so that the word operation means 8 can read out the memory. executed. The end of the read execution is detected by the second decoder 56 and sends a pulse 66a to the flip-flop group 58, which initializes the flip-flop group 58 and resumes incrementing the first Gray code counter 50. When the word operation instruction code is detected by the bit operation unit 4, the gate control line 23 is used to stop the program counter 2 from advancing, control the switches 10, 11, 12, and 13, and start the word operation means 8. , makes the sequence control program memory 3 accessible, reads the parameters of the word operation command, and executes the word operation. At this time, determine the type of word operation,
If it is OK to start the bit operation of the next step, send a bit operation start signal to the gate switching request line 24, switch the switches 10, 11, 12, and 13 to their original states and restart the bit operation. . In this case, word operations and bit operations are performed in parallel. In this process, if the word operation means 8 needs to process the data in the temporary memory 5, the address of the temporary memory 5 is sent to the address bus 21, and the address decoder 71 detects this and sends the address decoder output line 67 to 67a. The flip-flop group 58 is controlled at the timing 65a, the step of the first Gray code 50 is stopped, and the step of the counter 51 that generates the second Gray code is started. timing 68
a is sent to the switching devices 10, 11, 12, 13, and the word operation means can access the temporary storage memory 5.

なお上記実施例ではカウンタ50およびカウン
タ51としてグレイコードを発生するカウンタを
用いたものを示したが、カウンタ50および51
に一般の2進カウンタを用いても良く、この場
合、カウンタの各段の信号立上り,立下りの不ぞ
ろいによる誤パルスは、ビツト演算器4の動作を
同期型論理回路にすれば良く、上記実施例と同様
の効果を奏する。
In the above embodiment, counters that generate Gray codes are used as the counters 50 and 51, but the counters 50 and 51
A general binary counter may be used for this purpose. In this case, erroneous pulses caused by uneven rising and falling edges of the signals at each stage of the counter can be eliminated by changing the operation of the bit arithmetic unit 4 to a synchronous logic circuit. It has the same effect as the example.

以上のように、この発明によればワード演算手
段が必要な時にビツト演算器のタイミング中に割
込んで、メモリをアクセスするようにしたので、
モニタリング機能を実行するのに、ビツト演算手
段を最少限休止されるだけで良く、また、ビツト
演算とワード演算を並行して実行することが可能
であり、演算周期の短いものが得られる効果があ
る。
As described above, according to the present invention, when the word operation means is necessary, it interrupts the timing of the bit operation unit and accesses the memory.
To execute the monitoring function, it is only necessary to stop the bit operation means to a minimum, and it is also possible to execute bit operations and word operations in parallel, which has the effect of shortening the operation cycle. be.

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

第1図は従来のシーケンス制御装置を示すブロ
ツク図、第2図は第1図の動作説明のためのプロ
グラム例を示す説明図、第3図は動作タイミング
図、第4図はこの発明の一実施例によるシーケン
ス制御装置を示すブロツク図、第5図は第4図の
動作タイミング図である。 図中、3は第2の記憶手段(シーケンス制御プ
ログラムメモリ)、5は第1の記憶手段(一時記
憶メモリ)、4はビツト演算手段(ビツト演算
器)、50は第1のカウンタ(第1のグレイコー
ドを発生するカウンタ)、51は第2のカウンタ
(第2のグレイコードを発生するカウンタ)、55
は第1のデコーダ、56は第2のデコーダ、58
はフリツプ・フロツプ群である。なお、図中、同
一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing a conventional sequence control device, FIG. 2 is an explanatory diagram showing an example of a program for explaining the operation of FIG. 1, FIG. 3 is an operation timing diagram, and FIG. 4 is an example of the present invention. A block diagram showing the sequence control device according to the embodiment, and FIG. 5 is an operation timing diagram of FIG. 4. In the figure, 3 is a second storage means (sequence control program memory), 5 is a first storage means (temporary storage memory), 4 is a bit calculation means (bit calculation unit), and 50 is a first counter (first 51 is a second counter (a counter that generates a second Gray code); 55 is a counter that generates a second Gray code;
is the first decoder, 56 is the second decoder, 58
is a flip-flop group. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】 1 ビツト演算手段、入力情報、出力情報、演算
一時記憶情報を記憶する記憶手段、シーケンス制
御プログラムを記憶する第2の記憶手段、上記ビ
ツト演算手段の実行タイミングを成生する第1の
カウンタ、データ処理を行うワード演算手段、こ
のワード演算手段が、上記第1の記憶手段又は第
2の記憶手段をアクセスする如くタイミングを成
生する第2のカウンタ、及び上記第1のカウンタ
と上記第2のカウンタの出力によつて制御される
フリツプ・フロツプ群を備え、上記ワード演算手
段よりの要求と、上記第1のカウンタの出力によ
り上記フリツプ・フロツプ群を制御して、上記第
1のカウンタの歩進を休止させ、かつ上記第2の
カウンタの歩進を開始させて上記ワード演算手段
が、上記第1又は第2の記憶手段をアクセスする
ようにし、上記第2のカウンタの出力により、上
記フリツプ・フロツプ群を初期状態とし、上記第
1のカウンタの歩進を再開させて上記第2のカウ
ンタの歩進を休止させるようにしたことを特徴と
するシーケンス制御装置。 2 第1のカウンタおよび第2のカウンタとし
て、グレイコード(交番2進コード)を発生する
カウンタを用いたことを特徴とする特許請求の範
囲第1項記載のシーケンス制御装置。
[Scope of Claims] 1 bit calculation means, storage means for storing input information, output information, and calculation temporary storage information, second storage means for storing a sequence control program, and generating execution timing of the bit calculation means. a first counter, a word operation means for performing data processing, a second counter for generating timing such that the word operation means accesses the first storage means or the second storage means; The flip-flop group is controlled by a counter and the output of the second counter, and the flip-flop group is controlled by the request from the word operation means and the output of the first counter. The word operation means accesses the first or second storage means by stopping the increment of the first counter and starting the increment of the second counter, and the word operation means accesses the first or second storage means; The sequence control device is characterized in that the flip-flop group is set to an initial state by the output of , the first counter is restarted, and the second counter is stopped. 2. The sequence control device according to claim 1, wherein a counter that generates a Gray code (alternating binary code) is used as the first counter and the second counter.
JP15726282A 1982-09-07 1982-09-07 Sequence control device Granted JPS5945504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15726282A JPS5945504A (en) 1982-09-07 1982-09-07 Sequence control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15726282A JPS5945504A (en) 1982-09-07 1982-09-07 Sequence control device

Publications (2)

Publication Number Publication Date
JPS5945504A JPS5945504A (en) 1984-03-14
JPS6310444B2 true JPS6310444B2 (en) 1988-03-07

Family

ID=15645802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15726282A Granted JPS5945504A (en) 1982-09-07 1982-09-07 Sequence control device

Country Status (1)

Country Link
JP (1) JPS5945504A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6238902A (en) * 1985-08-15 1987-02-19 Mitsubishi Electric Corp Processing system for sequence arithmetic
JP2594562B2 (en) * 1987-06-05 1997-03-26 ファナック株式会社 Programmable controller

Also Published As

Publication number Publication date
JPS5945504A (en) 1984-03-14

Similar Documents

Publication Publication Date Title
JPH03204737A (en) Debug circuit of signal processing processor
US6877113B2 (en) Break determining circuit for a debugging support unit in a semiconductor integrated circuit
JPS6310444B2 (en)
JPS5853762B2 (en) Delay time control circuit
JP2846760B2 (en) Programmable controller
JP2784001B2 (en) Instruction processing circuit of programmable controller
JPH0411895B2 (en)
JP2544015B2 (en) Micro program processor
JP2621477B2 (en) In-circuit emulator
JP2626119B2 (en) Microcomputer development support equipment
JPH0721767B2 (en) Emulation method
JPH02264339A (en) information processing equipment
JP3405513B2 (en) Redundant controller for programmable controller
JPS61269705A (en) Programmable controller
JPS6273340A (en) Central processing unit
JPH0259828A (en) Support device for development of microcomputer
JPS5824808B2 (en) Initial startup processing method for microprogram controlled data processing equipment
JPS63197247A (en) Microprogram controller
JPS62197834A (en) Microprogram controller
JPS63316146A (en) Microcomputer
JPS63159905A (en) Programmable controller input/output forced on/off method
JPS6148189B2 (en)
JPS58225421A (en) Data processor
JPS629940B2 (en)
JPS61286936A (en) Step operation control system