JPS5947326B2 - sequence controller - Google Patents
sequence controllerInfo
- Publication number
- JPS5947326B2 JPS5947326B2 JP2400476A JP2400476A JPS5947326B2 JP S5947326 B2 JPS5947326 B2 JP S5947326B2 JP 2400476 A JP2400476 A JP 2400476A JP 2400476 A JP2400476 A JP 2400476A JP S5947326 B2 JPS5947326 B2 JP S5947326B2
- Authority
- JP
- Japan
- Prior art keywords
- control
- program
- memory
- selection
- cpu
- 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
Links
Landscapes
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】
本発明はシーケンスコントローラ、特に制御規模の拡大
あるいは縮小等制御仕様の変更が容易なシーケンスコン
トローラに関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sequence controller, and particularly to a sequence controller that allows easy changes in control specifications such as expansion or reduction of control scale.
近時ストアトプログラム方式を採用した制御装置いわゆ
るシーケンスコントローラが登場し、そのプログラムの
柔軟性によりハードワイヤで構成される従来のリレー盤
に置き換わりはじめている。Recently, so-called sequence controllers, which are control devices that use a stored program method, have appeared, and due to the flexibility of their programs, they are beginning to replace conventional relay boards made of hard wires.
確かにストアトプログラム方式を採用すれば、そのプロ
グラムの修正・変更は、ハードワイヤの配線変更に比べ
れば、簡単化・迅速化される。そうであるとしてもプロ
グラムの修正は、テープに書込まれたプログラムをリー
ダ等で読み取り新しいプログラムをメモリに収納してな
されるので、その操作は仲々やつかいで、この修正を誤
りなく行うためにはそれ相応の訓練を必要とし、現場レ
ベルでの操作簡易性という面ではまだ十分ではない。又
、発明者等は本発明を開発に先立つて、プログラムの収
納されるメモリいわゆるメインメモリをビルディングブ
ロック方式で構成することを検討した。It is true that if the stored program method is adopted, modifying or changing the program will be easier and faster than changing the wiring using hard wires. Even so, the program is modified by reading the program written on the tape using a reader, etc., and storing the new program in memory, so the operation is done by a friend or a friend in order to make this modification without error. requires appropriate training, and is not yet sufficiently easy to operate at the field level. Further, prior to developing the present invention, the inventors considered configuring the memory in which programs are stored, so-called main memory, in a building block format.
この方式について略述すれば、各種仕様に応じたプログ
ラムはブロック化して、1個あるいは数個のLSIメモ
リチップ中に格納される。そして制御仕様の追加があれ
ば、この追加仕様に関するプログラムが格納記憶されて
いるメモリチップを、メモリ基板に追加配置するもので
ある。ところが一般にシーケンスコントローラにおける
中央処理装置(以下CPUと呼ぶ)とメインメモリとは
システムの中央部であり、その不調はシステムに致命的
影響を与えることから、その部分の操作・加工を要求す
ることは現場の従事者に過大な負荷を与えることが判つ
た。又、たとえば、LSIチツプにプログラムが格納さ
れているような場合、LSチツプの各端子(ピン)の機
械的強度は低く、装着を繰返すと各端子が変形して接触
機能が低下したり、最悪の場合折れるようなこともあつ
た。いずれにせよ、仕様変更に伴つてメモリ基板を操作
・加工することは、現場レベルでの操作簡易性を要求さ
れるシーケンスコントローラにおいては、ふさわしくな
いものであつた。そこで本発明は、追加仕様を実現する
ために必要な装置、これは通常1枚ないし数枚のプリン
ト基板で形成されるが、この装置の一部に、追加仕様に
応たプログラムを記憶しているメモリを実装しておき、
一方従来メインメモリと呼ばれCPUと一体に配置され
る部分には、前記装置の追加に応じたプログラムシーケ
ンスを管理する管理プログラムと基本仕様として必須の
ものがあればその基本仕様に関するプログラムを収納す
る。To briefly describe this method, programs according to various specifications are divided into blocks and stored in one or several LSI memory chips. If control specifications are added, a memory chip storing a program related to the additional specifications is additionally placed on the memory board. However, in general, the central processing unit (hereinafter referred to as CPU) and main memory in a sequence controller are the central parts of the system, and malfunctions in them can have a fatal impact on the system, so it is not recommended to request operation or modification of these parts. It was found that this placed an excessive burden on on-site workers. In addition, for example, when a program is stored on an LSI chip, the mechanical strength of each terminal (pin) of the LS chip is low, and repeated mounting may deform each terminal and reduce the contact function. In some cases, it even broke. In any case, manipulating and processing the memory board in response to specification changes is not appropriate for sequence controllers that require ease of operation at the field level. Therefore, the present invention is designed to store a program corresponding to the additional specifications in a part of the device necessary to realize the additional specifications, which is usually formed of one or several printed circuit boards. Implement the memory that is
On the other hand, a part conventionally called the main memory and placed integrally with the CPU stores a management program that manages program sequences according to the addition of the device, and programs related to the basic specifications, if any are essential. .
そしてCPUではメインメモリおよび実装された追加仕
様のプログラムがともに実行されるようにし、追加仕様
のための前記装置の実装の加減により制御規模が変更さ
れえるようにし、制御仕様の変更が簡単化されるのみな
らず、現場レベルにおいての操作性も高いシーケンスコ
ントローラを提供することを目的とする。以下図面にも
とずいて本発明の実施例を説明する。The CPU executes both the main memory and the program for the additional specifications installed, and the control scale can be changed depending on the implementation of the device for the additional specifications, thereby simplifying changes to the control specifications. The purpose of the present invention is to provide a sequence controller that is not only easy to use, but also has high operability at the field level. Embodiments of the present invention will be described below based on the drawings.
第1図は実施例システムのブロツク図を示す。FIG. 1 shows a block diagram of an embodiment system.
1は基本制御装置で、メモリ2,3,4中のプログラム
をCPUで解読・実行することにより、被制御装置6(
制御対象機器)を管理し制御する。Reference numeral 1 denotes a basic control device, which controls the controlled device 6 (
control target equipment).
基本制御装置1中のメモリ2は、被制御装置6を制御す
るに最低限必要なプログラムが格納されており、このプ
ログラムを実行することによつて、被制御装置6の基本
動作を確保する。被制御装置6と基本制御装置1との信
号の授受はインターフエイス回路(1/Fと呼ぶ。)7
を介して行われる。バス8には選択制御装置9,10が
連結される。The memory 2 in the basic control device 1 stores the minimum necessary programs to control the controlled device 6, and by executing this program, the basic operation of the controlled device 6 is ensured. The interface circuit (referred to as 1/F) 7 transmits and receives signals between the controlled device 6 and the basic control device 1.
It is done through. Selection control devices 9 and 10 are connected to the bus 8 .
選択制御とは基本制御に付加される仕様に関する制御で
、被制御装置6の制御仕様に応じて、施されたりしなか
つたりする。選択制御装置9(あるいは10)中には、
付加仕様のための制御回路が1/Fll(あるいは12
)に内蔵されている。この制御回路への信号は、メモリ
3(あるいは4)収納のプログラムをCPU5で実行す
ることにより、CPU5より与えられる。I/Fll(
あるいは12)の制御状態は被制御装置6に伝えられる
。又、選択制御回路9(あるいは10)は出力するだけ
でなく、被制御装置6の稼動状況等をCPU5に伝える
入力制御も行う。このシステムにおいては、選択制御回
路9あるいは10が実装されているか否かに応じて制御
規模が増減するが、この増減を管理するプログラムは.
基本制御装置1のいれば中央側メモリ2に格納されてい
る。The selection control is a control related to specifications that is added to the basic control, and may or may not be applied depending on the control specifications of the controlled device 6. In the selection control device 9 (or 10),
The control circuit for additional specifications is 1/Fll (or 12
) is built in. A signal to this control circuit is given by the CPU 5 by executing a program stored in the memory 3 (or 4). I/Fll(
Alternatively, the control state of 12) is transmitted to the controlled device 6. Further, the selection control circuit 9 (or 10) not only outputs output, but also performs input control for transmitting the operating status of the controlled device 6 to the CPU 5. In this system, the control scale increases or decreases depending on whether the selection control circuit 9 or 10 is installed, but the program that manages this increase or decrease is.
If the basic control device 1 is present, it is stored in the central memory 2.
このメモリ2中のプログラムにつき、第2図のフローチ
ヤートおよび第3図のプロツク図をもとに説明する。The program in the memory 2 will be explained based on the flowchart in FIG. 2 and the block diagram in FIG.
ここで、プログラムはいずれもCPU5で実行されるも
のであつて、第2図の1ないし5で示される部分は基本
制御装置1中には存在しない点には注意を要する。又、
第4図には、本実施例が実施された装置の見取図を示す
。It should be noted here that all programs are executed by the CPU 5, and the parts indicated by 1 to 5 in FIG. 2 do not exist in the basic control device 1. or,
FIG. 4 shows a sketch of the apparatus in which this embodiment is implemented.
筐体13には電源14、CPU基板15、メモリ基板1
6、被制御装置6の基本動作の制御に必要な各種回路が
実装される制御基板17、被制御装置6とのインターフ
エイス(以下1/F)基板18および19が配置される
。筐体13の他の部分には、付加的な仕様に応じるため
選択制御用プリント基板(選択制御装置)20を配置す
るためのスペースが設けられる。この選択制御用プリン
ト基板20には、制御回路を構成する各種回路部品21
とともに半導体メモ1几SI22が実装されている。こ
の選択制御用プリント基板20に色々な種類があり、こ
のプリント基板20を増減あるいは選択することにより
、被制御装置6に対する制御内容が変更される。第3図
には、第1図システムの詳細を示す。The housing 13 includes a power supply 14, a CPU board 15, and a memory board 1.
6. A control board 17 on which various circuits necessary for controlling the basic operations of the controlled device 6 are mounted, and interface (hereinafter referred to as 1/F) boards 18 and 19 with the controlled device 6 are arranged. In another part of the housing 13, a space is provided for arranging a selection control printed circuit board (selection control device) 20 in order to meet additional specifications. This selection control printed circuit board 20 includes various circuit components 21 constituting the control circuit.
In addition, one semiconductor memory SI22 is mounted. There are various types of printed circuit boards 20 for selective control, and by increasing or decreasing the number of printed circuit boards 20 or selecting them, the control contents for the controlled device 6 can be changed. FIG. 3 shows details of the system shown in FIG.
この図と第4図との対応を示せば、CPU基板15、メ
モリ基板16、制御基板17、I/F基板1819が基
本制御装置1を構成し、選択制御用プリント基板20の
各々が選択制御装置9ないし10を構成する。続いて、
制御の進行を第2図によつて説明する。To show the correspondence between this figure and FIG. The devices 9 to 10 are configured. continue,
The progress of control will be explained with reference to FIG.
CPU5の制御が開始されると、まずプログラムルーチ
ンSPlが実行される。このルーチンSPlで制御条件
の登録・記憶等の初期処理がなされた後、CPU5の制
御は、選択制御を管理する管理プログラムに移される。
そこでルーチンSP2においては、第1の追加仕様であ
る選択制御を行う必要性について判定が行われる。この
判定は、I/F?に接続される選択接定スイツチ23の
特定のスイツチがセツトされているかどうかを判定して
行う。すなわちこの特定スイツチは選択制御装置9,1
0と一対一に対応して設けられる。ここに付冒するなら
ば、選択設定スイツチ23はCPU5に対して1つの入
力装置(あるいは入力チヤネル)を構成していることに
なる。さてこのルーチンSP2で選択制御装置9に対応
した特定スイツチが「0Njしていることが判ると、判
定結果は「YES」となり、制御は1で示すルーチンS
RIに移る。When control of the CPU 5 is started, a program routine SP1 is first executed. After initial processing such as registration and storage of control conditions is performed in this routine SP1, control of the CPU 5 is transferred to a management program that manages selection control.
Therefore, in routine SP2, a determination is made regarding the necessity of performing selection control, which is the first additional specification. Is this judgment I/F? This is done by determining whether a specific switch of the selection connection switch 23 connected to the switch is set. That is, this specific switch is the selection control device 9,1.
It is provided in one-to-one correspondence with 0. For reference here, the selection setting switch 23 constitutes one input device (or input channel) for the CPU 5. Now, in this routine SP2, if it is found that the specific switch corresponding to the selection control device 9 is "0Nj", the judgment result is "YES", and the control is carried out by the routine S indicated by 1.
Move to RI.
このプログラムルーチンSRIには、第1の追加仕様に
関するプログラムが記憶されており、このプログラムが
順次CPU5で実行されることにより、被制御装置6に
追加仕様の制御が施される。このルーチンSRIの実行
が終了すると、CPU5の制御は再びメインメモリ2中
のルーチンSP3に移される。ルーチンSP3において
は、ルーチンSP2におけると同様に選択スイツチ23
の状態を検査して、第2の選択制御を必要とするかどう
かを判定する。This program routine SRI stores a program related to the first additional specification, and by sequentially executing this program by the CPU 5, the controlled device 6 is controlled according to the additional specification. When the execution of this routine SRI is completed, the control of the CPU 5 is transferred to the routine SP3 in the main memory 2 again. In routine SP3, the selection switch 23 is pressed as in routine SP2.
to determine whether second selection control is required.
今、第2の選択制御に関する選択スイツチ23中の特定
スイツチが「0N」されていないとすると、判定結果は
「NO」となるので、第2の選択制御・2は行われない
。そして、次の選択制御の必要の有無を判定するプログ
ラムを実行することになる。このようにして、ルーチン
SP2からSPnまでの選択制御の要否を判定するプロ
グラムの実行および選択されたルーチンSRIないしS
Rnのプログラムが実行されると、制御は、被制御装置
6の基本的な動作を制御するためのプログラムが収納さ
れたルーチンSPmに移る。Now, if the specific switch in the selection switch 23 related to the second selection control is not set to "ON", the determination result will be "NO", and therefore the second selection control 2 will not be performed. Then, a program is executed to determine whether or not the next selection control is necessary. In this way, the execution of the program that determines whether or not the selection control of routines SP2 to SPn is necessary and the selected routines SRI to S
When the program Rn is executed, control moves to a routine SPm containing a program for controlling the basic operations of the controlled device 6.
このルーチンSPmのプログラムの実行が終了すると、
制御は再びルーチンSP2に移される。CPU5は、こ
のようにしてメモリ2あるいは選択され実装されたメモ
リ3ないし4(3,4はこの実施例では、選択スイツチ
23の0N−0FFにより選択される。)中のプログラ
ムを順次実行することによつて、被制御装置6を、監視
し制御する。次に第3図にもとづいて、本実施例システ
ムのハード的側面について略説する。When the program execution of this routine SPm is finished,
Control is again transferred to routine SP2. In this way, the CPU 5 sequentially executes the programs in the memory 2 or the selected and installed memories 3 and 4 (3 and 4 are selected by 0N-0FF of the selection switch 23 in this embodiment). The controlled device 6 is monitored and controlled. Next, based on FIG. 3, the hardware aspect of the system of this embodiment will be briefly explained.
中央側メモリ2、基本制御インターフエイスTおよび選
択制御メモリ3・制御用I/Fllを含む選択制御装置
9はいずれも、アドレスバス81・データバス82・コ
ントロール信号ライン83からなるバスライン8によつ
て、CPU5に連結されている。The central memory 2, the basic control interface T, and the selection control device 9 including the selection control memory 3 and control I/Fll are all connected to a bus line 8 consisting of an address bus 81, a data bus 82, and a control signal line 83. It is connected to the CPU 5.
今、アドレスバス81は12ビツト構成であり、データ
バスは8ビツト構成であるとする。It is now assumed that the address bus 81 has a 12-bit configuration and the data bus has an 8-bit configuration.
従つて、工CROMで構成される工Cメモリ24は、8
ビツトで1ワードを形成し、256ワードで1プロツク
となつている。この256ワード中に第1の選択制御用
プログラム即ち前述のルーチンSRIが格納されている
。コントロール信号ライン83からは、CPUと各周辺
機器:メモリ2,3、I/F7,llあるいは入力装置
としての選択スイツチ23;との同期をとるためのタイ
ミング信号が出力される。なお、このタイミング信号は
アドレスバスあるいはデータバスを使用して情報取扱う
場合、ゲート信号の役目をはたすもので、この作用は周
知であるので詳説はさける。又、メモリ3中にはICメ
モリ24を制御するためのデコーダ25、アドレス制脚
器26およびICメモリ24の出力をバツフアしてデー
タバス82に伝えるバツフア回路27が収納される。Therefore, the engineering C memory 24 consisting of the engineering CROM has 8
One word is made up of bits, and one block is made up of 256 words. The first selection control program, ie, the aforementioned routine SRI, is stored in these 256 words. The control signal line 83 outputs a timing signal for synchronizing the CPU and each peripheral device: the memory 2, 3, the I/F 7, 11, or the selection switch 23 as an input device. Note that this timing signal serves as a gate signal when information is handled using an address bus or a data bus, and since this function is well known, a detailed explanation will be omitted. Further, a decoder 25 for controlling the IC memory 24, an address pedestal 26, and a buffer circuit 27 for buffering the output of the IC memory 24 and transmitting it to the data bus 82 are housed in the memory 3.
アドレス制御器26にはアドレス情報(12ビツト)の
下位8ビツトが入力され、これによつてICメモリ24
中の256ワードを各別にアクセスする。アドレス情報
の上位4ビツトはデコーダ25に入力され、そのビツト
パターンによつてアドレス制御器26およびバツフア回
路27の動・不動を制御する。このようなICメモリ2
4のアドレス制御を、通常使用される冒葉で表現するな
らば、「工Cメモリ24の256ワードは1ベージを形
成し、各ベージの選択はデコーダ25で行なわれる。」
ということになる。従つて、今ICメモリ24に102
4番地から1279番地に割当てられていたとすると、
デコーダ25に2進データで「0I00」のパターンが
入力されたとき、アドレス制御器26はオンされ、下位
8ビツトで指定されたた番地の内容(命令)がバツフア
回路21を介してデータバス82に伝えられ、CPU5
に取込まれ、実行される。次に制御工/Fllの動作に
ついて説明する。The lower 8 bits of the address information (12 bits) are input to the address controller 26, thereby controlling the IC memory 24.
Each of the 256 words inside is accessed separately. The upper 4 bits of the address information are input to the decoder 25, and the movement or immobility of the address controller 26 and buffer circuit 27 is controlled according to the bit pattern. Such IC memory 2
4 can be expressed in commonly used profanity: ``The 256 words of the engineering C memory 24 form one page, and the selection of each page is performed by the decoder 25.''
It turns out that. Therefore, 102 is now stored in the IC memory 24.
Assuming that it was assigned from address 4 to address 1279,
When the binary data pattern “0I00” is input to the decoder 25, the address controller 26 is turned on, and the contents (command) of the address specified by the lower 8 bits are transferred to the data bus 82 via the buffer circuit 21. CPU5
and executed. Next, the operation of the controller/Fll will be explained.
今CPU5でプログラムが進行し、制御I/F11を制
御する命令(入出力命令)が実行されたとする。この入
出力命令に伴つて、アドレスバス81にはこのI/Fl
lを特定する(すなわち選択匍脚装置9)アドレスデー
タが出力される。このアドレスデータは、I/O制御回
路28で解読され、I/0ゲート29を駆動する。前述
の命令が出力命令の場合は、データバス82を介して与
えられる情報が出力要素(通常フリツプフロツプ)30
に伝えられ、D/Aコンバータ31やリレー32が,駆
動される。又、入力命令である場合は、被制御装置6の
状態信号が、フオトカプラ34を介して入力要素35に
伝えられ、CPU5に状態信号が取込まれる。選択スイ
ツチ23についても、同様の入力制御が行なわれ、その
状態はCPU5に取込まれる。Assume that the program is currently running on the CPU 5 and an instruction (input/output instruction) for controlling the control I/F 11 is executed. Along with this input/output command, this I/Fl
Address data specifying 1 (ie, the selected pedestal device 9) is output. This address data is decoded by the I/O control circuit 28 and drives the I/0 gate 29. If the aforementioned instruction is an output instruction, the information provided via the data bus 82 is sent to the output element (usually a flip-flop) 30.
The D/A converter 31 and relay 32 are driven. If it is an input command, the status signal of the controlled device 6 is transmitted to the input element 35 via the photocoupler 34, and the status signal is taken into the CPU 5. Similar input control is performed for the selection switch 23, and its state is taken into the CPU 5.
(ここでI/Fを特定するアドレスデータとメモリ番地
を示すアドレスデータとの相違はコントロール信号83
にて与えられる。)続いて、第2図に示すフローチヤー
トがハード的にはどのように実行されるのかを略説する
。(Here, the difference between the address data specifying the I/F and the address data indicating the memory address is the control signal 83.
It will be given at ) Next, we will briefly explain how the flowchart shown in FIG. 2 is executed in terms of hardware.
ルーチンSPlで、第1の選択制御が必要であることが
判ると、CPU5は第1の選択制御のプログラム即ちル
ーチンSRlの先頭番地(例えば16進表示で「401
」に制御を移すJump命令を実行する。このJump
命令が実行されると、アドレスバスには「401」(1
6進表示。以下同じ)のデータが伝えられるので、上位
の「4」によつてデコーダ25は出力を出しアドレス制
御器26が能動化される。これによつて、/Cメモリ2
4の「01」番地の内容がCPU5に伝えられ、その内
容すなわち命令に応じた制御が実行される。ついで「0
2」番地の命令が実行される。このように一連の命令即
ちルーチンSRlが実行される。このルーチンSRlで
、D/A変換器33に出力を与える命令が実行されると
、前述のように、アドレスバス81上の情報で出力要素
30が指定され、データバス82上の情報が出力要素3
0にセツトされる。D/A変換器33は、上記データに
応じたアナログ信号を発生し、被制御装置6を制御する
。以上主に選択制御装置9について説明を行なつてきた
が、これは選択制御装置10の場合についても同様であ
るが、説明が重複するので削除する。When it is determined that the first selection control is necessary in the routine SPl, the CPU 5 starts the first selection control program, that is, the start address of the routine SRl (for example, "401" in hexadecimal notation).
” is executed. This Jump
When the instruction is executed, “401” (1) is placed on the address bus.
Hexadecimal display. The same applies hereinafter) is transmitted, so the decoder 25 outputs an output due to the upper "4" and the address controller 26 is activated. With this, /C memory 2
The contents of address "01" of No. 4 are transmitted to the CPU 5, and control is executed according to the contents, that is, the command. Then “0”
The instruction at address 2 is executed. In this way, a series of instructions or routine SRl is executed. In this routine SRl, when an instruction to give an output to the D/A converter 33 is executed, the information on the address bus 81 specifies the output element 30, and the information on the data bus 82 specifies the output element 30. 3
Set to 0. The D/A converter 33 generates an analog signal according to the above data and controls the controlled device 6. The description above has mainly been about the selection control device 9, and the same applies to the selection control device 10, but since the description is redundant, it will be omitted.
以上のようにこの実施例システムでは、追加仕様に関す
るプログラムが収納される部分は、基本的制御に必要な
中央側メモリ装置とは別設されるようにし、又プリント
基板なり機械的強度があり、取扱いが少々乱暴であつて
も破壊されないよう確保されることが重要である。As described above, in this embodiment system, the part that stores the programs related to additional specifications is installed separately from the central memory device necessary for basic control, and also has a mechanically strong printed circuit board. It is important to ensure that it will not be destroyed even if it is handled a little roughly.
従つて、CPUがスキヤン方式を採用するか割込み方式
を採用するかは2次的な問題である。又、選択(追加)
仕様のための装置が実装されているかどうかを検出する
のに、選択スイツチ23を設けるのも必須の構成とはい
えない。すなわち、ICメモリ24中のある番地を読み
こみ、その内容が特定パターン(例えば「00」あるい
は「11」)でないことを確認して、追加仕様のための
プリント基板が実装されていることを検出してもよい。
これは、もし基板の実装がなければ、上記のような読込
み命令を実行しても、データバス81には出力が与えら
れず、「00」パターン(構成によつては「11」パタ
ーンの場合もある)が入力されることを考えれば明らか
である。又、上述の実施例システムでは選択制御のプロ
グラムルーチンSRlないしSRnは、全プログラム中
1個所でしか使用されない例を示した。Therefore, whether the CPU adopts the scan method or the interrupt method is a secondary issue. Also, selection (addition)
Providing the selection switch 23 to detect whether or not a device for the specification is mounted is not an essential configuration. That is, it reads a certain address in the IC memory 24, confirms that the content is not a specific pattern (for example, "00" or "11"), and detects that a printed circuit board for additional specifications is mounted. You may.
This means that if the board is not mounted, no output will be given to the data bus 81 even if the above read command is executed, and the "00" pattern (or "11" pattern depending on the configuration) will not be provided. This is obvious if you consider that the following information is input. Furthermore, in the above embodiment system, the selection control program routines SR1 to SRn are used only at one place in the entire program.
すなわち、ルーチンSRlの戻り番地はSP3の先頭番
地に、あるいはルーチンSRnの戻り番地はSPnの先
頭番地というように特定されている。ところが実際にプ
ログラムを作成する場合、上記のようなルーチンSRi
を複数個所で使用するほうがプログラムステツプ数が低
減させられたりあるいは不可欠であるような場合がある
。このような一連のプログラム中で数回使用されるプロ
グラムプロツクは通常サブルーチンと呼ばれる。サブル
ーチン制御は、特定サブルーチンに制御を移す前に、戻
り番地状報をあらかじめ確保しておき、サブルーチンの
最後のステツプで確保されている戻り番地状報を参照し
て、制御が移されるようにする。この技術を使用すれば
、選択制御ルーチンSRlないしSRnをあたかもサブ
ルーチンであるかのようにみなすことができ、ルーチン
SRlないしSRnを複数個所で使用することができる
。いずれにせよ、現場での管理者にとつて、機械的強度
も十分にある追加仕様の制御装置をコネクタなりで連結
するだけで制御規模の増減を図ることができるのは、そ
の操作も簡便であり、特別な訓練も必要とせず好ましい
のであるが、次に第5図にもとづいて、本発明が織機の
制御された例について説明する。That is, the return address of routine SRl is specified as the start address of SP3, or the return address of routine SRn is specified as the start address of SPn. However, when actually creating a program, the routine SRi as shown above
In some cases, it may be necessary or possible to reduce the number of program steps by using the program in multiple locations. Such program blocks that are used several times in a series of programs are usually called subroutines. For subroutine control, return address status information is secured in advance before transferring control to a specific subroutine, and control is transferred by referring to the return address status secured at the last step of the subroutine. . By using this technique, the selection control routines SR1 to SRn can be regarded as if they were subroutines, and the routines SR1 to SRn can be used in multiple locations. In any case, it is easy for on-site managers to increase or decrease the scale of control simply by connecting additional control devices with sufficient mechanical strength using connectors. Although this is preferable and does not require any special training, an example in which the present invention controls a loom will now be described based on FIG.
第5図において、CPU等第1図、第3図に示したシス
テムと同様な機能をはたす部分については共通の参照符
号を付す。In FIG. 5, parts such as the CPU that perform the same functions as the systems shown in FIGS. 1 and 3 are given the same reference numerals.
被制御装置は、織機本体61と、各種設定器(図示せず
)を含む入出力制御部(I/F)62からなる。The controlled device includes a loom main body 61 and an input/output control section (I/F) 62 including various setting devices (not shown).
織機本体61では供給ローラ63から供給される縮糸6
4に横糸65を打込んで布を織り、巻取ローラ66に巻
取る。織布動作を監視するため、横糸検出器6?、縦糸
断検出器68等が設けられる。織機61の横糸打込み動
作を示すタイミング信号TはI/F62を介してCPU
5に伝えられ、その回数が積算される。その積算値が所
定値に達すると織機61は停止させられる。又、縦糸断
が検出されたり、横糸ぬけが多発したような場合も、織
機は停止させられる。このような織機システム60の基
本動作の管理・制御は中央側メモリ2に内蔵されたプロ
グラムをCPU5で実行することによつてなされる。今
、縦糸の・張力も制御して特別仕様の織布が必要になつ
たとする。In the loom main body 61, the curled yarn 6 is supplied from the supply roller 63.
A weft thread 65 is inserted into 4 to weave the cloth, and the cloth is wound onto a winding roller 66. Weft thread detector 6? to monitor the weaving movement. , a warp yarn breakage detector 68, etc. are provided. The timing signal T indicating the weft driving operation of the loom 61 is sent to the CPU via the I/F 62.
5, and the number of times is added up. When the integrated value reaches a predetermined value, the loom 61 is stopped. The loom is also stopped if a warp thread breakage is detected or weft threads are frequently pulled out. The basic operations of the loom system 60 are managed and controlled by the CPU 5 executing a program stored in the central memory 2. Suppose now that a specially designed woven fabric with controlled warp tension is required.
この場合、追加仕様の制御回路が実装された基板9を筐
体に配置する。この基板9を配置した後、制御を開始す
ると、織機I/F62からは縦糸の張力に関する情報が
I/Fllに伝えられる。CPU5では、メモリ3中の
タテ糸張力制御プログラムを実行することによつて、タ
テ糸張力が所望の範囲に維持されるようにモータ69の
回転速度を制御する。又、多色織をする必要が生じたと
する。In this case, a board 9 on which a control circuit with additional specifications is mounted is placed in the casing. When control is started after placing this board 9, information regarding the tension of the warp threads is transmitted from the loom I/F 62 to the I/Fll. The CPU 5 executes the warp thread tension control program in the memory 3 to control the rotational speed of the motor 69 so that the warp thread tension is maintained within a desired range. Also, assume that it becomes necessary to make a multicolor weave.
この織機の管理者は、多色織に関する制御基板10を配
置するとともに、I/F62中の設定器に多色織の条件
をデシスイッチなりで設定する。そしてCPU5で、メ
モリ4中の多色織制御プログラムが実行されると、読込
まれた設定条件に応じて各種ソレノイドが制御され、所
望の多色織がなされる。このように織機の管理者は必要
に応じて、あらかじめ用意されている制御基板あるいは
装置(この内に特殊制御のためのプログラムが内蔵され
ていることは言うまでもない。The administrator of this loom arranges the control board 10 related to multicolor weaving, and also sets the conditions for multicolor weaving in a setting device in the I/F 62 using a deciswitch. When the multicolor weave control program in the memory 4 is executed by the CPU 5, various solenoids are controlled according to the read setting conditions, and a desired multicolor weave is produced. In this way, the loom administrator can select a control board or device prepared in advance (which, of course, has a built-in program for special control) as needed.
)を選択配置することによつて、制御仕様の変更を簡単
に行なえるのである。選択制御基板があらかじめ用意さ
れている点に言及するならば、これは工場における全て
の織機について追加制御用基板が用意されるのではない
。すなわち、織機工場には通漕数百台もの織機が設置さ
れており、これら織機の全てが追加仕様の制御を行なう
ということはまずありえない。してみれば数十台分位に
ついてのみ追加制御用の基板をストツクしておき、必要
に応じて、選択的に配置するとしても十分役立つのであ
る。又、−般に制御仕様の変更はしばしば行なわれるも
のではなく、さらに、仕様変更に伴う機器の調整あるい
はメインテナンス作業は必ず行なわれるものであり、基
板あるいは装置の再配置のための数分間というものは問
題とするにたりない。), control specifications can be easily changed. Regarding the point that the selective control board is prepared in advance, this does not mean that additional control boards are prepared for all the looms in the factory. That is, a loom factory is equipped with several hundred looms, and it is highly unlikely that all of these looms will be controlled according to additional specifications. In other words, it would be quite useful to stock up on additional control boards for only a few dozen units and then selectively place them as needed. In addition, control specifications are generally not changed often, and equipment adjustments or maintenance work associated with specification changes is always required, and it may take only a few minutes to relocate a board or device. is not a problem.
追加仕様のための制御装置は、その制御規模により数枚
以上のプリント基板で構成されることもあるが、そのよ
うな場合各仕様毎に特別の目印なりをつけて、その識別
が容易となるよう工夫しておくほうがよい。又実装を確
実にするための別の手段としては、数枚の基板を機構的
に一体化しておき、このプロツクにCPUとの連結用の
コネクタを別設し、このコネクタを第4図に示すような
形で筐体に差込まれるようにするのもよい。以上のよう
に本発明によれば、中央処理装置で解読・実行されるプ
ログラムを中央側だけに集中して設けるのではなく、所
定の制御プログラムが格納されたメモリを必要に応じて
、追加あるいは削除すれば、制御仕様が変更されるよう
にしたので、プログラムの変更がきわめて容易となり、
融通性に富んだシステムが構成できる。又、本発明は、
前記制御プログラムを収納したメモリは制御回路と一体
化して構成するので、それが実装される装置は機械的な
強度も十分得ることができ、したがつて少々乱暴な取扱
いも可能となり、現場レベルで仕様の変更が要求される
ようなシステムには特に好適である。The control device for additional specifications may consist of several or more printed circuit boards depending on the control scale, but in such cases, a special mark is attached to each specification to make it easy to identify. It is better to devise ways to do so. Another method for ensuring reliable mounting is to mechanically integrate several boards and separately provide a connector for connection to the CPU, as shown in Figure 4. It is also a good idea to insert it into the housing in a similar way. As described above, according to the present invention, the programs to be decoded and executed by the central processing unit are not concentrated only in the central side, but the memory in which the predetermined control program is stored can be added or By deleting it, the control specifications can be changed, making it extremely easy to change the program.
A highly flexible system can be configured. Moreover, the present invention
Since the memory that stores the control program is integrated with the control circuit, the equipment in which it is installed can have sufficient mechanical strength, and therefore can be handled somewhat roughly, making it difficult to handle at the field level. This is particularly suitable for systems that require changes in specifications.
第1図は実施例のプロツク図、第2図はフローチヤート
、第3図は実施例の詳細なプロツク図、第4図は実施例
装置の見取図、第5図は織機システムのプロツク図であ
る。
1 ・・・・・・基本制御装置、2・・・・・・中央側
メモリ、3,4・・・・・・メモリ、5・・・・・・C
PU) 6・・・・・・被制御装置、9,10・・・・
・・選択制御装置。Fig. 1 is a block diagram of the embodiment, Fig. 2 is a flowchart, Fig. 3 is a detailed block diagram of the embodiment, Fig. 4 is a sketch of the embodiment device, and Fig. 5 is a block diagram of the loom system. . 1...Basic control device, 2...Central memory, 3, 4...Memory, 5...C
PU) 6... Controlled device, 9, 10...
...Selection control device.
Claims (1)
で実行して被制御装置を制御するためのシーケンスコン
トローラにおいて、被制御装置に所定の制御を施すため
の制御プログラムが格納されたメモリ、および前記被制
御装置との信号の授受を行うための制御回路を一体に構
成した選択制御装置;の中央処理装置への追加連結を可
能とし、前記中央処理装置は中央側メモリに収納される
管理プログラムを実行して前記制御プログラムの取捨を
管理するとともに、選択された前記制御プログラムを実
行して前記制御回路を制御する構成を備え前記選択制御
装置の加減によつて制御仕様が変更されるようにしたシ
ーケンスコントローラ。1. In a sequence controller for controlling a controlled device by executing a program stored in a memory device in a central processing unit, the sequence controller includes a memory storing a control program for performing predetermined control on the controlled device, and A selective control device integrally configured with a control circuit for exchanging signals with the control device; can be additionally connected to a central processing unit, and the central processing unit executes a management program stored in a central memory. and managing the selection and discarding of the control program, and controlling the control circuit by executing the selected control program, and control specifications are changed according to adjustment of the selection control device. controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2400476A JPS5947326B2 (en) | 1976-03-04 | 1976-03-04 | sequence controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2400476A JPS5947326B2 (en) | 1976-03-04 | 1976-03-04 | sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS52107483A JPS52107483A (en) | 1977-09-09 |
| JPS5947326B2 true JPS5947326B2 (en) | 1984-11-19 |
Family
ID=12126408
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2400476A Expired JPS5947326B2 (en) | 1976-03-04 | 1976-03-04 | sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5947326B2 (en) |
-
1976
- 1976-03-04 JP JP2400476A patent/JPS5947326B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS52107483A (en) | 1977-09-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5155821A (en) | Command performing order change-over system in data processor | |
| EP0330475A2 (en) | Configuration control system | |
| JPH04332002A (en) | Programmable controller | |
| EP0173967B1 (en) | Microprogram load unit | |
| JPS5947326B2 (en) | sequence controller | |
| JPH05163640A (en) | Method for controlling loom | |
| JP2006178403A (en) | Display unit | |
| JPH0776932B2 (en) | Data transmission method | |
| EP0164158A1 (en) | Computer system with at least one work station and a reserve battery supply | |
| JPS5947327B2 (en) | sequence controller | |
| JPS5926043B2 (en) | sequence controller | |
| EP0660242B1 (en) | Data processing system having a function of changing a bus width | |
| JP2004210506A (en) | Elevator control device | |
| JP2689262B2 (en) | How to change the loom control data | |
| JP2804345B2 (en) | Loom control method and device | |
| JP2006155303A (en) | Control device | |
| JPH086890A (en) | I / O control system | |
| JP3654505B2 (en) | Nonvolatile semiconductor memory device and control method thereof | |
| JPH0580947A (en) | Multiplexing control system of disk device | |
| JPS6124733B2 (en) | ||
| JPH0726289B2 (en) | Loom control method | |
| JP2021082174A (en) | Control apparatus, industrial machine and program writing system | |
| JPS5856292A (en) | Initializing system of memory | |
| JPH01170314A (en) | Power interruption detecting system | |
| JPH0296853A (en) | System for checking holding main storage capacity |