JPH0440723B2 - - Google Patents

Info

Publication number
JPH0440723B2
JPH0440723B2 JP57213415A JP21341582A JPH0440723B2 JP H0440723 B2 JPH0440723 B2 JP H0440723B2 JP 57213415 A JP57213415 A JP 57213415A JP 21341582 A JP21341582 A JP 21341582A JP H0440723 B2 JPH0440723 B2 JP H0440723B2
Authority
JP
Japan
Prior art keywords
register
parallel data
calculation
stored
word length
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 - Lifetime
Application number
JP57213415A
Other languages
Japanese (ja)
Other versions
JPS59105110A (en
Inventor
Hisashi Shigematsu
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co Ltd
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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP21341582A priority Critical patent/JPS59105110A/en
Publication of JPS59105110A publication Critical patent/JPS59105110A/en
Publication of JPH0440723B2 publication Critical patent/JPH0440723B2/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/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

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]

〔発明の属する技術分野〕 本発明は、入力のオン・オフ情報等を入力し、
これらを演算処理し、出力のオン・オフをコント
ロールするプログラム可能なプログラマブルコン
トローラに関するものである。 更に詳しくは、本発明は、掛算、割算を含む高
度のシーケンスをプログラム処理可能とするとと
もに、そのプログラムが簡単に行えるプログラマ
ブルコントローラに関するものである。 〔従来技術の説明〕 第1図はプログラマブルコントローラの一例を
示す構成ブロツク図である。図において、1はマ
イクロプロセツサ、2はリードオンリーメモリ
(ROM)、3はランダムアクセスメモリ
(RAM)、4はシーケンスプログラムメモリ、5
はパラレルデータレジスタ、6は内部メモリであ
る。ABはアドレス信号を伝送するアドレスバ
ス、DBはデータを伝送するデータバス、CBはコ
ントロール信号を伝送するコントロールバスで、
各バスともマイクロプロセツサ1と、各メモリ及
びレジスタとを結んでいる。 ROM2は、主としてシーケンスプログラムメ
モリ4にプログラムされているシーケンス命令を
解読し、マイクロプロセツサ1にシーケンス命令
の実行処理を行なわせるプログラムを記憶してい
る。RAM3は、マイクロプロセツサ1における
各種信号処理の実行に必要なデータ、情報等の一
時記憶を行なう。シーケンスプログラムメモリ4
は、ユーザー側においてプログラムしたシーケン
ス命令を記憶する。パラレルデータレジスタ5
は、ユーザー側のプログラム、すなわち、シーケ
ンス命令で使用することができる汎用レジスタ
で、定められた複数ビツトの情報を1語長のパラ
レデータとして複数個のパラレルデータを記憶す
る。内部メモリ6は、入出力、内部リレーのオ
ン・オフ状態を一時記憶する。なお、11はマイ
クロプロセツサ1の内部に設けられている1ビツ
ト演算レジスタを示し、ここには、シーケンス命
令に従つて行なわれた1ビツトの論理演算の演算
結果を記憶する。また、31はRAM3の特定番
地に設けた演算3レジスタを示し、ここには、あ
らかじめシーケンス命令に従つて行なわれたパラ
レルデータの演算結果を一時記憶する。 このように構成されたプログラマブルコントロ
ーラは、一般に入力のオン・オフ情報等を演算
し、出力のオン・オフをコントロールするプログ
ラム可能なコントローラであつて、ここでの演算
の種類は大別して2種類ある。第1の演算は、入
力、出力等のオン・オフ状態1個1個を個別に演
算する1ビツト演算であり、第2の演算は、入
力、出力等のオン・オフ状態を定められた複数個
まとめて演算する、あるいは数値の演算等も含む
一定の複数ビツトのパラレルデータ演算である。 第1図の従来のプログラマブルコントローラの
パラレルデータ演算に関する概略動作を説明すれ
ば次の通りである。ここでは、第2図に示される
ようなシーケンスプログラムを実行する場合を例
にとつて説明する。第2図における各符号の意味
を第1表に示す。
[Technical field to which the invention pertains] The present invention is directed to inputting input on/off information, etc.
The present invention relates to a programmable controller that processes these and controls output on/off. More specifically, the present invention relates to a programmable controller which is capable of processing sophisticated sequences including multiplication and division, and which can be easily programmed. [Description of Prior Art] FIG. 1 is a block diagram showing an example of a programmable controller. In the figure, 1 is a microprocessor, 2 is a read-only memory (ROM), 3 is a random access memory (RAM), 4 is a sequence program memory, and 5 is a
is a parallel data register, and 6 is an internal memory. AB is an address bus that transmits address signals, DB is a data bus that transmits data, and CB is a control bus that transmits control signals.
Each bus connects the microprocessor 1 to each memory and register. The ROM 2 mainly stores a program for decoding the sequence instructions programmed in the sequence program memory 4 and causing the microprocessor 1 to execute the sequence instructions. The RAM 3 temporarily stores data, information, etc. necessary for executing various signal processing in the microprocessor 1. Sequence program memory 4
stores the sequence instructions programmed by the user. Parallel data register 5
is a general-purpose register that can be used by a user's program, that is, a sequence instruction, and stores a plurality of pieces of parallel data as one-word length parallel data containing predetermined bits of information. Internal memory 6 temporarily stores input/output and on/off states of internal relays. Note that 11 indicates a 1-bit operation register provided inside the microprocessor 1, which stores the results of 1-bit logical operations performed in accordance with sequence instructions. Further, numeral 31 indicates an operation 3 register provided at a specific address in the RAM 3, which temporarily stores the results of operations on parallel data previously performed in accordance with sequence instructions. A programmable controller configured in this way is generally a programmable controller that calculates input on/off information, etc. and controls output on/off, and the types of calculations here can be roughly divided into two types. . The first operation is a 1-bit operation that calculates each on/off state of input, output, etc. individually, and the second operation is a 1-bit operation that calculates each on/off state of input, output, etc. This is a constant multi-bit parallel data operation, including calculations performed on individual bits or numerical calculations. The general operation of the conventional programmable controller shown in FIG. 1 regarding parallel data calculation will be explained as follows. Here, an example will be explained in which a sequence program as shown in FIG. 2 is executed. The meaning of each symbol in FIG. 2 is shown in Table 1.

〔本発明の目的〕[Object of the present invention]

ここにおいて、本発明は、第1図に示すような
構成のプログラマブルコントローラにおけるこの
ような問題点を解決し、掛算を含む四則演算を正
確に行なえるプログラマブルコントローラを提供
しようとするものである。 〔本発明の概要〕 本発明においては、第1図に示す構成におい
て、パラレルデータレジスタ5の定められた番地
に、破線で概念的に示すように演算補助レジスタ
51を設け、シーケンス命令掛算の演算結果は、
常に2語長であるとし、下位1語長のパラレルデ
ータは演算レジスタ31に、上位1語長のパラレ
ルデータを演算補助レジスタ51に記憶させるよ
うにした点に特徴がある。 また、シーケンス命令割算においても、同様に
演算結果を2語長とし、小数点以上を演算レジス
タ31に、小数点以下を演算補助レジスタ51に
記憶させるようにしている。 このような点に特徴をもたせたことにより、掛
算あるいは割算演算の演算結果が得られれば、演
算レジスタ31に格納された演算結果(下位1語
長のパラレルデータ)は、そのまま次のパラレル
データ演算のパラレルデータとして使用できる。
また、演算補助レジスタ51に格納された演算結
果(上位1語長のパラレルデータ)は、演算補助
レジスタ51がパラレルデータレジスタ5の中の
定められた番地に設けられているので、シーケン
ス命令でこの番地を指定することにより読み出す
ことができ、必要に応じてシーケンスプログラム
で処理することができる。なお、演算レジスタ3
1に記憶する演算結果は、演算補助レジスタ51
に記憶する演算結果に比較して、使用頻度が高い
方とするのが望ましい。 第3図は、本発明に係る装置において、第2図
に示すシーケンスプログラムを実行する場合のフ
ローチヤートを示したものである。このフローチ
ヤートにおいて、本発明に係る装置においては、
ステツプ12及びステツプ13が従来のものと変
わつている。このようなステツプ12,13によ
つて、演算結果を正確なものとしている。 〔本発明の効果〕 以上説明したように、本発明によれば、従来装
置に比べて掛算を含む四則演算を正確に行なえ、
しかもそのプログラムを簡単に行なえるプログラ
マブルコントローラが実現できる。つまり、本発
明においては、例えば演算が掛算の場合には演算
結果の下位1語長のパラレルデータが演算レジス
タに記憶されるので、この演算レジスタに記憶さ
れた演算データをそのまま次のパラレルデータ演
算のパラレルデータとして使用することができ
る。また、上位1語長のパラレルデータは演算補
助レジスタに記憶され、この演算補助レジスタは
パラレルデータ内にあるので、他のパラレルデー
タと同様に処理することができる。 また、演算が割算の場合には演算結果の小数点
以上のパラレルデータが演算レジスタに記憶され
るの、この場合も同様に、演算レジスタに記憶さ
れた演算データをそのまま次のパラレルデータ演
算のパラレルデータとして使用することができ
る。また、小数点以下のパラレルデータは演算補
助レジスタ記憶され、この演算補助レジスタはパ
ラレルレジスタ内にあるので、この場合も他のパ
ラレルデータと同様に処理することができる。 このように、従来のように演算結果がオーバー
フローしないような条件下でのみ掛け算を行わせ
るといつた制約ななく、正確な演算処理ができ
る。
The present invention aims to solve these problems in a programmable controller configured as shown in FIG. 1, and to provide a programmable controller that can accurately perform four arithmetic operations including multiplication. [Summary of the Present Invention] In the present invention, in the configuration shown in FIG. 1, an arithmetic auxiliary register 51 is provided at a predetermined address of the parallel data register 5 as conceptually shown by a broken line, and a multiplication operation of a sequence instruction is provided. Result is,
The length is always two words, and the feature is that the parallel data of the lower one word length is stored in the calculation register 31, and the parallel data of the higher one word length is stored in the calculation auxiliary register 51. Similarly, in the sequence command division, the operation result is made two words long, and the decimal point and above are stored in the calculation register 31, and the decimal point and below are stored in the calculation auxiliary register 51. By providing these features, if the result of a multiplication or division operation is obtained, the result of the operation (parallel data with the length of one lower word) stored in the operation register 31 is directly transferred to the next parallel data. Can be used as parallel data for calculations.
Furthermore, since the calculation auxiliary register 51 is provided at a predetermined address in the parallel data register 5, the calculation result (parallel data of the upper one word length) stored in the calculation auxiliary register 51 is stored in the sequence instruction. It can be read by specifying an address, and can be processed by a sequence program if necessary. In addition, calculation register 3
The calculation result stored in 1 is stored in the calculation auxiliary register 51.
It is desirable to select the one that is used more frequently than the calculation results stored in the . FIG. 3 shows a flowchart when the sequence program shown in FIG. 2 is executed in the apparatus according to the present invention. In this flowchart, in the apparatus according to the present invention,
Step 12 and step 13 are different from the conventional one. Such steps 12 and 13 ensure that the calculation results are accurate. [Effects of the present invention] As explained above, according to the present invention, four arithmetic operations including multiplication can be performed more accurately than conventional devices.
Moreover, a programmable controller that can easily perform the program can be realized. In other words, in the present invention, for example, when the operation is multiplication, the parallel data of the lower one word length of the operation result is stored in the operation register, so the operation data stored in this operation register is directly used for the next parallel data operation. can be used as parallel data. Moreover, the parallel data of the upper one word length is stored in the calculation auxiliary register, and since this calculation auxiliary register is included in the parallel data, it can be processed in the same way as other parallel data. In addition, when the operation is division, the parallel data above the decimal point of the operation result is stored in the operation register.In this case as well, the operation data stored in the operation register is used as is for the next parallel data operation. Can be used as data. Further, the parallel data below the decimal point is stored in an arithmetic auxiliary register, and since this arithmetic auxiliary register is within the parallel register, it can be processed in the same way as other parallel data. In this way, accurate arithmetic processing can be performed without the conventional constraints of performing multiplication only under conditions where the arithmetic result will not overflow.

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

第1図はプログラマブルコントローラの一例を
示す構成ブロツク図、第2図は第1図装置の概略
動作を説明するための説明図、第3図は本発明に
係る装置の動作を説明するためのフローチヤート
図である。 1……マイクロプロセツサ、11……1ピツト
演算レジスタ、2……ROM、3……RAM、3
1……演算レジスタ、4……シーケンスプログラ
ムメモリ、5……パラレルデータレジスタ、51
……演算補助レジスタ、6……メモリ。
FIG. 1 is a configuration block diagram showing an example of a programmable controller, FIG. 2 is an explanatory diagram for explaining the general operation of the device shown in FIG. 1, and FIG. 3 is a flowchart for explaining the operation of the device according to the present invention. It is a chart diagram. 1...Microprocessor, 11...1 pit calculation register, 2...ROM, 3...RAM, 3
1... Arithmetic register, 4... Sequence program memory, 5... Parallel data register, 51
... Arithmetic auxiliary register, 6... Memory.

Claims (1)

【特許請求の範囲】 1 リードオンメモリとランダムアクセスメモリ
とに結合し少なくとも複数ビツトの演算処理機能
を有するマイクロプロセツサと、シーケンス命令
を記憶するシーケンスプログラムメモリと、入出
力及び内部リレーの状態を一時記憶する内部メモ
リと、複数ビツトを1語長のパラレルデータとし
て複数のパラレルデータを記憶するパラレルデー
タレジスタとを有するプログラマブルコントロー
ラにおいて、 前記ランダムアクセスメモリの特定番地に設け
られ、パラレルデータの演算結果を一時記憶する
演算レジスタと、 前記パラレルレジスタの特定番地に設けられた
演算補助レジスタとを有し、 前記マイクロプロセツサは、前記シーケンスプ
ログラムメモリから読み出されたシーケンス命令
に従つて所定の演算を行ない、その演算が掛算の
場合には演算結果の下位1語長のパラレルデータ
を前記演算レジスタに記憶させると共に、上位1
語長のパラレルデータを前記演算補助レジスタに
記憶させ、 その演算が割算の場合には、演算結果の少数点
以上のパラレルデータを前記演算レジスタに記憶
させると共に、少数点以下のパラレルデータを前
記演算補助レジスタに記憶させることを特徴とす
るプログラマブルコントローラ。
[Scope of Claims] 1. A microprocessor that is coupled to a read-on memory and a random access memory and has at least a multi-bit arithmetic processing function, a sequence program memory that stores sequence instructions, and a microprocessor that stores input/output and internal relay status. In a programmable controller having an internal memory for temporary storage and a parallel data register for storing a plurality of parallel data in the form of parallel data of one word length, the programmable controller is provided at a specific address of the random access memory and stores the operation results of the parallel data. and an arithmetic auxiliary register provided at a specific address of the parallel register, and the microprocessor performs a predetermined arithmetic operation in accordance with a sequence instruction read from the sequence program memory. If the operation is multiplication, the parallel data of the lower one word length of the operation result is stored in the operation register, and the upper one word length of the operation result is stored in the operation register.
Parallel data of the word length is stored in the calculation auxiliary register, and when the calculation is division, the parallel data of the calculation result above the decimal point is stored in the calculation register, and the parallel data of the calculation result below the decimal point is stored in the calculation register. A programmable controller characterized by storing information in an arithmetic auxiliary register.
JP21341582A 1982-12-07 1982-12-07 Programmable controller Granted JPS59105110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21341582A JPS59105110A (en) 1982-12-07 1982-12-07 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21341582A JPS59105110A (en) 1982-12-07 1982-12-07 Programmable controller

Publications (2)

Publication Number Publication Date
JPS59105110A JPS59105110A (en) 1984-06-18
JPH0440723B2 true JPH0440723B2 (en) 1992-07-06

Family

ID=16638846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21341582A Granted JPS59105110A (en) 1982-12-07 1982-12-07 Programmable controller

Country Status (1)

Country Link
JP (1) JPS59105110A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971216B2 (en) 1998-09-11 2015-03-03 Alcatel Lucent Method for routing transactions between internal and external partners in a communication center
US9008075B2 (en) 2005-12-22 2015-04-14 Genesys Telecommunications Laboratories, Inc. System and methods for improving interaction routing performance

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS507985A (en) * 1973-05-30 1975-01-27

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS507985A (en) * 1973-05-30 1975-01-27

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971216B2 (en) 1998-09-11 2015-03-03 Alcatel Lucent Method for routing transactions between internal and external partners in a communication center
US9008075B2 (en) 2005-12-22 2015-04-14 Genesys Telecommunications Laboratories, Inc. System and methods for improving interaction routing performance

Also Published As

Publication number Publication date
JPS59105110A (en) 1984-06-18

Similar Documents

Publication Publication Date Title
JPS5933553U (en) processor
US4095268A (en) System for stopping and restarting the operation of a data processor
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPH0440723B2 (en)
JPS61103241A (en) Information processor
JPS6230455B2 (en)
JPH082727Y2 (en) Programmable sequencer
JPS59189407A (en) Sequence control device
JPS5730196A (en) Information processor
JPS63111534A (en) Semiconductor integrated circuit
JPS6227830A (en) Interruption control system
JPS6250854B2 (en)
JPH04215148A (en) Programmable controller
JP3533078B2 (en) Sequence control method and control device
JPS6031662A (en) Address control circuit
JPS6236576B2 (en)
JPS608943A (en) Multi-branch controlling system
JPH0217505A (en) Method for locking numeric of sequencer
JPS5943446A (en) Microcomputer system
JPS6238748B2 (en)
JPH08297583A (en) Processor and method for interruption processing
JPS6120139A (en) Interruption control system
JPS6186806A (en) Digital control arithmetic system
JPS60247708A (en) Programmable controller
JPH05324018A (en) Control circuit for pc