JP4376892B2 - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP4376892B2
JP4376892B2 JP2006336560A JP2006336560A JP4376892B2 JP 4376892 B2 JP4376892 B2 JP 4376892B2 JP 2006336560 A JP2006336560 A JP 2006336560A JP 2006336560 A JP2006336560 A JP 2006336560A JP 4376892 B2 JP4376892 B2 JP 4376892B2
Authority
JP
Japan
Prior art keywords
input
information
management
station number
circuit
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 - Fee Related
Application number
JP2006336560A
Other languages
Japanese (ja)
Other versions
JP2008152317A (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.)
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 JP2006336560A priority Critical patent/JP4376892B2/en
Publication of JP2008152317A publication Critical patent/JP2008152317A/en
Application granted granted Critical
Publication of JP4376892B2 publication Critical patent/JP4376892B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

この発明は、マイクロプロセッサを内蔵した基本ユニットと、基本ユニットに対して着脱自在に接続される複数の入出力ユニットとによって構成されたプログラマブルコントローラにおいて、入出力ユニットのうちの入力ユニットに関連した操作および検出信号と、基本ユニット内のプログラムメモリに格納されたシーケンス制御プログラム(以下、「シーケンスプログラム」という)の内容とに応動して、入出力ユニットのうちの出力ユニットに接続された表示および駆動負荷を制御するプログラマブルコントローラに関し、特に入出力ユニットの保守管理を改善して安全性を向上させるための新規な技術に関するものである。   The present invention relates to a programmable controller composed of a basic unit incorporating a microprocessor and a plurality of input / output units detachably connected to the basic unit. In response to the detection signal and the contents of the sequence control program (hereinafter referred to as “sequence program”) stored in the program memory in the basic unit, display and drive connected to the output unit of the input / output unit The present invention relates to a programmable controller that controls a load, and more particularly to a new technology for improving maintenance management of an input / output unit and improving safety.

従来から、マイクロプロセッサを内蔵して、操作スイッチや各種センサなどの入力信号の動作状態と、プログラムメモリに格納されているシーケンスプログラムとに応動して、各種アクチェータや表示機器などの電気負荷の駆動制御を行うプログラマブルコントローラは、よく知られている。   Conventionally, it incorporates a microprocessor and drives electric loads such as various actuators and display devices in response to the operation state of input signals such as operation switches and various sensors and the sequence program stored in the program memory. Programmable controllers that perform control are well known.

この種のプログラマブルコントローラにおいて、マイクロプロセッサおよび各種メモリを内蔵した基本ユニット(CPUユニット)と、入力インタフェース回路を内蔵した入力ユニットと、出力インタフェース回路を内蔵した出力ユニットと、からなる複数の入出力ユニットは、相互にバス接続された複数のコネクタを有するマザーボード台板上の各コネクタに接続されるか、または、各入出力ユニットが孤立筐体に収納されてフラットケーブルによって相互にバス接続されるなど、様々な構造形態のものが広く実用化されている。   In this type of programmable controller, a plurality of input / output units comprising a basic unit (CPU unit) incorporating a microprocessor and various memories, an input unit incorporating an input interface circuit, and an output unit incorporating an output interface circuit Is connected to each connector on the motherboard base plate having a plurality of connectors connected to each other by bus, or each input / output unit is housed in an isolated housing and connected to each other by a flat cable. Various structural forms have been widely put into practical use.

また、上記のような各種形態のプログラマブルコントローラにおいては、システム管理者以外のものが不用意にシーケンスプログラムを変更または盗用して、予定外の運転が行われないようにするために、様々なプログラム保護手段が提案されている。   In addition, in the programmable controller of various forms as described above, various programs are provided so that a non-system administrator can inadvertently change or steal the sequence program and prevent unscheduled operation. Protection measures have been proposed.

従来のプログラマブルコントローラにおいて、たとえば、プログラミング装置ごとの固有パスワードをパスワード登録部に登録しておき、作成したプログラムをプログラマブルコントローラに送る際のプログラム本体を含むプログラム格納コマンドに、固有パスワードを組み込むようにしたプログラミング方法が提案されている(たとえば、特許文献1参照)。   In the conventional programmable controller, for example, a unique password for each programming device is registered in the password registration unit, and the unique password is incorporated into the program storage command including the program body when the created program is sent to the programmable controller. A programming method has been proposed (see, for example, Patent Document 1).

上記特許文献1によれば、プログラマブルコントローラにおいては、プログラム格納処理部でプログラム番号とパスワードとの両方が一致した場合のみに、プログラム格納部の旧プログラムを新プログラムに書換え、プログラム番号が一致してもパスワードが異なる場合には書換えを禁止する。これにより、ユーザプログラムの使用者がシステムプログラムを変更できないようにするとともに、変更が必要な際には、システムプログラムの変更が容易となり、ハードおよびソフトが複雑化することなく、メモリの利用効率の悪化も回避するようにしている。   According to Patent Document 1, in the programmable controller, only when both the program number and the password match in the program storage processing unit, the old program in the program storage unit is rewritten with the new program, and the program number matches. If the password is different, rewriting is prohibited. This prevents the user of the user program from changing the system program, and when the change is necessary, the system program can be easily changed, and the use efficiency of the memory can be improved without complicating hardware and software. We try to avoid the deterioration.

一方、プログラマブルコントローラが使用されているか否かは別として、システム管理者以外の他者による消耗部品の交換を回避するための安全対策として、消耗部品にメモリを設けて管理する技術も提案されている(たとえば、特許文献2参照)。   On the other hand, apart from whether or not a programmable controller is used, a technique for managing memory by providing memory for consumable parts has also been proposed as a safety measure to avoid replacement of consumable parts by others other than the system administrator. (For example, see Patent Document 2).

上記特許文献2に記載の印刷制御装置および印刷制御方法、プログラム、ならびに記憶媒体によれば、消耗部品情報取得部は、交換可能な消耗部品(トナーカートリッジ)の内部に設けられたメモリに格納されている所定情報(カートリッジ情報)を取得し、パラメータ切換部は、カートリッジ情報に基づいて、中間調変換部の中間調パラメータを選択して設定する。これにより、プリンタ制御ユニットにおける機能範囲を決定し、消耗部品を交換する際に不適切な消耗部品の場合には、印刷装置における機能範囲を制限して、消耗部品の誤使用を防止している。   According to the print control apparatus, the print control method, the program, and the storage medium described in Patent Document 2, the consumable part information acquisition unit is stored in a memory provided in a replaceable consumable part (toner cartridge). The parameter switching unit selects and sets the halftone parameter of the halftone conversion unit based on the cartridge information. As a result, the functional range in the printer control unit is determined, and if the consumable part is inappropriate when replacing the consumable part, the functional range in the printing apparatus is limited to prevent the misuse of the consumable part. .

特開平10−116108号公報(図1、要約)Japanese Patent Laid-Open No. 10-116108 (FIG. 1, abstract) 特開2003−015482号公報(図2、要約)Japanese Unexamined Patent Publication No. 2003-015482 (FIG. 2, summary)

従来のプログラマブルコントローラは、たとえば特許文献1のプログラミング方法の場合には、シーケンスプログラムの変更または盗用が防止されており、シーケンスプログラムが格納されている基本ユニットの保守交換を第3者が行うことができないようになっているものの、基本ユニットに対して着脱自在に接続される多数の入出力ユニットについては自由に交換することが可能であり、徹底した安全管理を行うことができないという課題があった。   In the case of the conventional programmable controller, for example, in the case of the programming method disclosed in Patent Document 1, the sequence program is prevented from being changed or stolen, and a third party can perform maintenance replacement of the basic unit in which the sequence program is stored. Although it is not possible to do so, many input / output units that are detachably connected to the basic unit can be freely replaced, and there is a problem that thorough safety management cannot be performed. .

一方、特許文献2の印刷制御装置の場合には、限定された消耗部品がユーザによって交換可能となっているが、たとえ交換可能な消耗部品であっても、システム管理者以外の第3者による取替えを禁止したい場合に、単なる品種情報のみでは十分な禁止対策を実現することができないという課題があった。また、たとえば、新たに開発された異種の消耗部品が、既存の印刷制御装置の1つには適用可能であるものの、他の印刷制御装置には適用不可能な場合には、市場での混乱を招くという課題があった。   On the other hand, in the case of the print control apparatus of Patent Document 2, limited consumable parts can be replaced by the user, but even a replaceable consumable part can be replaced by a third party other than the system administrator. When it is desired to prohibit the replacement, there is a problem that a sufficient prohibition measure cannot be realized only by mere product type information. In addition, for example, when a newly developed dissimilar consumable part is applicable to one of the existing print control apparatuses, but is not applicable to another print control apparatus, confusion in the market. There was a problem of inviting.

この発明は、たとえ適用可能な入出力ユニットであっても、システム管理者以外の第3者による取替えを禁止し、システム管理者であれば容易に取替え交換を可能にしたプログラマブルコントローラを得ることを目的とする。
また、この発明は、適用可能な入出力ユニットであれば、システム管理者の許可のもとで、第3者が自由に取替え交換を行うことのできるプログラマブルコントローラを得ることを目的とする。
さらに、この発明は、運転開始前に入出力ユニットに対する局番設定を必要とする形式のものにおいて、局番設定操作と連動して入出力ユニットの交換可否を設定することのできるプログラマブルコントローラを得ることを目的とする。
The present invention prohibits replacement by a third party other than the system administrator even if it is an applicable input / output unit, and a programmable controller capable of being easily replaced and replaced by a system administrator is obtained. Objective.
Another object of the present invention is to obtain a programmable controller that can be freely replaced and exchanged by a third party under the permission of a system administrator if it is an applicable input / output unit.
Furthermore, the present invention provides a programmable controller capable of setting whether or not the input / output unit can be exchanged in conjunction with the station number setting operation in a type that requires the station number setting for the input / output unit before starting operation. Objective.

この発明によるプログラマブルコントローラは、マイクロプロセッサと、マイクロプロセッサと協働するシステムメモリと、外部で作成されたシーケンスプログラムが外部ツールを介して転送書込みされるプログラムメモリと、入出力情報および制御情報を記憶するデータメモリと、を有する基本ユニットと、基本ユニットを搭載した基本筐体または基本台板に共載されるか、もしくは、増設筐体または増設台板に延長接続されて、複数の制御信号線および複数ビットのデータバスを介して直列接続される複数の入出力ユニットと、を備え、複数の入出力ユニットは、外部入力センサまたは外部負荷に接続された入出力インタフェース回路を含み、入出力インタフェース回路は、マイクロプロセッサに対して選択的に交信接続されるように構成されたプログラマブルコントローラであって、システムメモリは、管理番号の初期保存手段、照合判定手段、編成異常処理手段および編成変更手段を構成する制御プログラムを含み、プログラムメモリおよびデータメモリの少なくとも一方には、管理情報格納領域が設けられ、管理情報格納領域には、操作対象者を限定する暗証番号の情報と、入出力ユニットを特定する管理番号の情報とが格納され、管理番号は、入出力ユニットに付与されて、マイクロプロセッサによって少なくとも読出しが可能な固体識別番号からなり、固体識別番号は、入出力ユニットが代替可能な同一品種であっても、複数の入出力ユニットごとに異なる番号からなり、初期保存手段は、入出力ユニットに格納されている管理番号と、管理情報格納領域に格納されている入出力ユニットの管理番号とを一致させておく手段からなり、照合判定手段は、少なくともプログラマブルコントローラの運転開始に際して、入出力ユニットに格納されている管理番号と、管理情報格納領域に格納されている入出力ユニットの管理番号とが一致しているか否かを判定する手段からなり、編成異常処理手段は、照合判定手段による判定結果が不一致を示す場合に機能して、プログラマブルコントローラの作動状態を停止または現状保持するか、異常状態であることを管理情報格納領域に書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなり、編成変更手段は、管理情報格納領域に対してあらかじめ書込み保存されている暗証番号と同じ暗証番号が、外部ツールから入力されたことに応答して機能し、初期保存手段によって既に記憶されている管理番号をクリアして、新たに初期保存処理を実行する手段からなるものである。   A programmable controller according to the present invention stores a microprocessor, a system memory cooperating with the microprocessor, a program memory in which an externally created sequence program is transferred and written via an external tool, and input / output information and control information A plurality of control signal lines that are mounted together with a basic unit having a data memory and a basic chassis or basic base plate on which the basic unit is mounted, or extendedly connected to an additional chassis or expansion base plate. And a plurality of input / output units connected in series via a multi-bit data bus, the plurality of input / output units including an input / output interface circuit connected to an external input sensor or an external load, The circuit is configured to be selectively connected to the microprocessor. The system memory includes a control program that constitutes an initial storage unit for management numbers, a collation determination unit, a knitting abnormality processing unit, and a knitting change unit, and at least one of the program memory and the data memory includes A management information storage area is provided. The management information storage area stores information on a personal identification number that limits the person to be operated and information on a management number that identifies the input / output unit. The management number is stored in the input / output unit. It is given a solid identification number that can be read at least by the microprocessor, and the solid identification number consists of a number that is different for each of the plurality of input / output units, even if the input / output unit is the same product type. The storage means stores the management number stored in the input / output unit and the management information storage area. The matching judgment means is stored in the management information stored in the input / output unit and in the management information storage area at least at the start of operation of the programmable controller. The knitting abnormality processing means functions when the judgment result by the collation judgment means indicates a mismatch and determines the operating state of the programmable controller. It consists of a means to stop or hold the current status, write and store an abnormal state in the management information storage area, or at least an alarm display of the occurrence of abnormality, and the organization change means writes in advance to the management information storage area Functions in response to a password entered from an external tool that is the same as the saved password The initial storage means clears the management number already stored, and newly executes the initial storage process.

この発明によれば、暗証番号によって管理されている基本ユニットと、基本ユニットに接続されて管理番号が付与されている入出力ユニットを備え、初期登録された編成が変化すると、暗証番号を用いた編成変更処理を行わなければ、プログラマブルコントローラの運転が禁止されるか警告表示が行われ、たとえ同一品種の入出力ユニットであってもエンドユーザによって不用意に入出力ユニットを保守交換することができず、暗証番号を知っているシステム管理者のみによって保守交換が行われるので、システムの安全性を向上させることができる。また、同一品種であっても仕様の異なる新型の入出力ユニットが、保守対象となったプログラマブルコントローラに適用可能か否かは、システム管理者によって判断されて使用されるので、市場でのバージョンアップ管理に混乱を招くことがないという効果がある。   According to the present invention, a basic unit managed by a personal identification number and an input / output unit connected to the basic unit and assigned a management number are provided. When the initially registered organization changes, the personal identification number is used. If the organization change process is not performed, the programmable controller operation is prohibited or a warning is displayed, and even if the input / output unit is the same type, the input / output unit can be inadvertently replaced by the end user. In addition, since maintenance and replacement are performed only by a system administrator who knows the password, the safety of the system can be improved. In addition, the new version of the input / output unit with different specifications, even if it is the same product type, is used by the system administrator to determine whether it can be applied to the programmable controller that is subject to maintenance. It has the effect of not causing confusion in management.

実施の形態1.
以下、図面を参照しながら、この発明の実施の形態1について詳細に説明する。図1はこの発明の実施の形態1に係るプログラマブルコントローラの全体構成を示すブロック図である。図1において、プログラマブルコントローラ100Aは、基本ユニット110Aと、複数の入出力ユニット120、130、140、150と、終端ブロック160と、により構成されている。ここでは、入力ユニット120、140と、出力ユニット130、150とを総称して、入出力ユニットという。
Embodiment 1 FIG.
Hereinafter, the first embodiment of the present invention will be described in detail with reference to the drawings. 1 is a block diagram showing an overall configuration of a programmable controller according to Embodiment 1 of the present invention. In FIG. 1, the programmable controller 100 </ b> A includes a basic unit 110 </ b> A, a plurality of input / output units 120, 130, 140, 150, and a termination block 160. Here, the input units 120 and 140 and the output units 130 and 150 are collectively referred to as an input / output unit.

基本ユニット110Aは、外部電源103(たとえば、AC100V〜240Vの商用電源)から給電されるとともに、脱着コネクタ(図示せず)を介して外部ツール108(たとえば、パーソナルコンピュータ)に接続されており、制御プログラムの書込みや運転状態の監視を行うことができるようになっている。   The basic unit 110A is supplied with power from an external power source 103 (for example, a commercial power source of AC 100V to 240V) and is connected to an external tool 108 (for example, a personal computer) via a detachable connector (not shown). The program can be written and the operation status can be monitored.

基本ユニット110Aの内部には、主要部となるマイクロプロセッサ(CPU)111と、マイクロプロセッサ111に接続されたバスインタフェース回路112と、各部に電源を供給する制御電源ユニット113と、マイクロプロセッサ111に属するシステムメモリ114A(たとえば、マスクROMメモリまたはフラッシュメモリなどの不揮発メモリ)、プログラムメモリ115A(たとえば、不揮発フラッシュメモリ)およびデータメモリ116(たとえば、RAMメモリ)と、データメモリ116の一部領域をバックアップするバッテリ117(たとえば、リチウムバッテリ)と、マイクロプロセッサ111に接続されたシリアルインタフェース118および警報表示器119(たとえば、複数個の発光ダイオードまたはセブンセグメント表示器)と、が設けられている。   The basic unit 110A includes a microprocessor (CPU) 111 as a main part, a bus interface circuit 112 connected to the microprocessor 111, a control power supply unit 113 that supplies power to each part, and a microprocessor 111. System memory 114A (eg, non-volatile memory such as mask ROM memory or flash memory), program memory 115A (eg, non-volatile flash memory) and data memory 116 (eg, RAM memory), and a partial area of data memory 116 are backed up A battery 117 (eg, a lithium battery), a serial interface 118 connected to the microprocessor 111, and an alarm indicator 119 (eg, a plurality of light emitting diodes or seven Instrument display) and, is provided.

基本ユニット110A内の上記構成要素のうち、マイクロプロセッサ111、バスインタフェース回路112、システムメモリ114A、プログラムメモリ115A、データメモリ116およびシリアルインタフェース118は、相互にバス接続されている。なお、制御電源ユニット113は、基本ユニット110Aの外部に設置することも可能であり、その場合、基本ユニット110Aは、外部の制御電源ユニット113とCPUユニットとによって構成されることになる。   Among the above-described components in the basic unit 110A, the microprocessor 111, the bus interface circuit 112, the system memory 114A, the program memory 115A, the data memory 116, and the serial interface 118 are mutually connected by a bus. The control power supply unit 113 can also be installed outside the basic unit 110A. In this case, the basic unit 110A is configured by an external control power supply unit 113 and a CPU unit.

制御電源ユニット113は、外部電源103から給電され、入力信号回路(図示せず)に対して安定化電圧(たとえば、DC24V)を供給するとともに、定電圧電源線Vccに対して安定化電圧(たとえば、DC5V)を供給する。定電圧電源線Vccは、グランド回路GNDとともに各部に配線されている。   The control power supply unit 113 is supplied with power from the external power supply 103, supplies a stabilization voltage (for example, DC 24V) to an input signal circuit (not shown), and stabilizes a voltage (for example, a constant voltage power line Vcc). , DC5V). The constant voltage power line Vcc is wired to each part together with the ground circuit GND.

システムメモリ114Aは、各種の制御プログラム(図2〜図7とともに後述する)を含むとともに、プログラムメモリ115Aに格納されたシーケンス言語によるシーケンスプログラムをマイクロプロセッサ111に対応した機械言語に変換してマイクロプロセッサ111を作動させるようになっており、製品の出荷段階でメーカによって格納されたプログラムを有している。   The system memory 114A includes various control programs (to be described later with reference to FIGS. 2 to 7), converts the sequence program in the sequence language stored in the program memory 115A into a machine language corresponding to the microprocessor 111, and converts the microprocessor into a microprocessor. 111 is operated, and has a program stored by the manufacturer at the product shipping stage.

プログラムメモリ115Aには、外部ツール108を用いてユーザによって作成されたシーケンスプログラムが、シリアルインタフェース118を介して書込まれている。プログラムメモリ115Aは、たとえば、ブロック単位で一括消去が可能な主ブロックおよび副ブロックを有するフラッシュメモリからなり、主ブロックには、シーケンスプログラムが転送格納されている。副ブロックは、管理情報格納領域199A(後述する)の一部を構成しており、暗証番号が格納されるようになっている。   A sequence program created by a user using the external tool 108 is written in the program memory 115A via the serial interface 118. The program memory 115A is composed of, for example, a flash memory having a main block and a sub block that can be erased in a block unit, and a sequence program is transferred and stored in the main block. The sub block constitutes a part of the management information storage area 199A (described later), and stores a password.

データメモリ116(RAMメモリ)は、入出力信号情報や、補助リレー、タイマ、カウンタおよびデータレジスタなどのデバイス(プログラマブルコントローラ100Aの内部のデバイスとなって、ユーザに開放されている)の作動状態が格納される。   The data memory 116 (RAM memory) has input / output signal information and operating states of devices such as auxiliary relays, timers, counters, and data registers (becomes internal to the programmable controller 100A and are open to the user). Stored.

データメモリ116の一部の領域は、バッテリ117によってバックアップされており、プログラマブルコントローラ100Aに対する電源が遮断されても、記憶状態が保持されるようになっている。また、データメモリ116のバッテリバックアップ領域のさらに一部の領域は、管理情報格納領域199Aとして使用され、管理情報格納領域199Aには、入出力ユニットの管理番号の情報(後述する編成情報)が格納されるようになっている。   A part of the area of the data memory 116 is backed up by the battery 117, and the storage state is maintained even when the power to the programmable controller 100A is cut off. Further, a part of the battery backup area of the data memory 116 is used as a management information storage area 199A, and information on the management number of the input / output unit (organization information described later) is stored in the management information storage area 199A. It has come to be.

なお、プログラムメモリ115Aは、バッテリバックアップされたRAMメモリであってもよく、フラッシュメモリまたはEPROMなどによる不揮発メモリを内蔵したメモリカセットを装着することによって、プログラムメモリ領域を不揮発メモリ化することも可能である。警報表示器119は、マイクロプロセッサ111の作動状態、すなわち、電源の到来、正常運転状態、各種異常発生状態などを表示するようになっている。   The program memory 115A may be a battery-backed RAM memory, and the program memory area can be made non-volatile by mounting a memory cassette containing non-volatile memory such as flash memory or EPROM. is there. The alarm indicator 119 displays the operating state of the microprocessor 111, that is, the arrival of power, the normal operation state, various abnormality occurrence states, and the like.

接続確認信号END1の伝送線は、プルアップ抵抗Rを介して定電圧電源線Vccに接続されるとともに、入出力ユニット120、130、140、150を貫通して、終端ブロック160の終端処理確認回路ENDによってグランド回路GNDに接続されている。接続確認信号END1は、論理レベル「L」(ロウ)となることによって、終端ブロック160が装着されたことを認識するための信号であり、バスインタフェース回路112を介してマイクロプロセッサ111に入力されている。   The transmission line of the connection confirmation signal END1 is connected to the constant voltage power supply line Vcc via the pull-up resistor R, and passes through the input / output units 120, 130, 140, and 150, and terminates in the termination block 160. It is connected to the ground circuit GND by END. The connection confirmation signal END1 is a signal for recognizing that the terminal block 160 is attached when the logic level is “L” (low), and is input to the microprocessor 111 via the bus interface circuit 112. Yes.

貫通バス信号線BUSは、たとえば16ビットのデータバスおよび各種の制御信号線を含み、バスインタフェース回路112から入出力ユニット120、130、140、150を貫通して、終端ブロック160に至る多数の信号配線を構成している。   The through bus signal line BUS includes, for example, a 16-bit data bus and various control signal lines, and passes through the input / output units 120, 130, 140, and 150 from the bus interface circuit 112 to many terminal blocks 160. Configure the wiring.

マイクロプロセッサ111は、バスインタフェース回路112を介して局番設定検索信号CF1を発生する。局番設定検索信号CF1は、局番設定処理を実行する場合に、論理レベル「L」となり、初段の入出力ユニット(入力ユニット120)に局番設定指令を供給するようになっている。   The microprocessor 111 generates a station number setting search signal CF1 via the bus interface circuit 112. The station number setting search signal CF1 is at a logic level “L” when the station number setting process is executed, and supplies a station number setting command to the first input / output unit (input unit 120).

入力ユニット120は、コネクタ(図示せず)を介して基本ユニット110Aの端面位置に接続されており、入力ユニット120には、入力端子台(図示せず)を介して、外部の開閉信号121が入力されている。開閉信号121は、たとえば操作盤に設けられた各種の操作スイッチや、アクチェータの動作を確認するためのセンサスイッチから生成される。1台の入力ユニット120には、たとえば8点の入力信号が接続可能であるが、さらに多くの開閉信号121が接続される場合には、入力ユニット120の接続台数が増設されるようになっている。   The input unit 120 is connected to the end face position of the basic unit 110A via a connector (not shown), and an external open / close signal 121 is connected to the input unit 120 via an input terminal block (not shown). Have been entered. The open / close signal 121 is generated from, for example, various operation switches provided on the operation panel and sensor switches for confirming the operation of the actuator. For example, eight input signals can be connected to one input unit 120. However, when more open / close signals 121 are connected, the number of connected input units 120 is increased. Yes.

入力ユニット120は、入力インタフェース回路122と、プルアップ抵抗123、124と、選択切換回路125a、125bと、により構成されている。入力インタフェース回路122は、データセレクタを介して開閉信号121(入力信号)を貫通バス信号線BUSに接続する入力信号回路と、カード情報格納メモリと、局番設定メモリと、管理番号格納メモリと、を有する。   The input unit 120 includes an input interface circuit 122, pull-up resistors 123 and 124, and selection switching circuits 125a and 125b. The input interface circuit 122 includes an input signal circuit that connects the open / close signal 121 (input signal) to the through bus signal line BUS via a data selector, a card information storage memory, a station number setting memory, and a management number storage memory. Have.

出力ユニット130は、出力インタフェース回路132と、プルアップ抵抗133、134と、選択切換回路135a、135bと、により構成されている。出力インタフェース回路132は、出力信号回路が異なる点を除けば、入力インタフェース回路122と同様の構成を有し、外部負荷131に接続されている。   The output unit 130 includes an output interface circuit 132, pull-up resistors 133 and 134, and selection switching circuits 135a and 135b. The output interface circuit 132 has the same configuration as the input interface circuit 122 except that the output signal circuit is different, and is connected to the external load 131.

入力ユニット140は、入力インタフェース回路142と、プルアップ抵抗143、144と、選択切換回路145a、145bと、により構成されている。入力インタフェース回路142は、アナログ信号141(入力信号)をデジタル変換するAD変換器が異なる点を除けば、入力インタフェース回路122と同様の構成を有する。   The input unit 140 includes an input interface circuit 142, pull-up resistors 143 and 144, and selection switching circuits 145a and 145b. The input interface circuit 142 has the same configuration as that of the input interface circuit 122 except that an AD converter that digitally converts an analog signal 141 (input signal) is different.

出力ユニット150は、出力インタフェース回路152と、プルアップ抵抗153、154と、選択切換回路155a、155bと、により構成されている。出力インタフェース回路152は、DA変換器が異なる点を除けば、出力インタフェース回路132と同様の構成を有し、アナログ負荷151に接続されている。
ここでは、入力インタフェース回路122、142と、出力インタフェース回路132、152とを総称して、入出力インタフェース回路という。
The output unit 150 includes an output interface circuit 152, pull-up resistors 153 and 154, and selection switching circuits 155a and 155b. The output interface circuit 152 has the same configuration as that of the output interface circuit 132 except that the DA converter is different, and is connected to the analog load 151.
Here, the input interface circuits 122 and 142 and the output interface circuits 132 and 152 are collectively referred to as an input / output interface circuit.

入力ユニット120内において、プルアップ抵抗123の一端は、定電圧電源線Vcc(たとえば、DC5V)に接続されている。プルアップ抵抗123の他端は、入力インタフェース回路122内のカード情報格納メモリに接続されており、カード情報格納メモリに、接続位置信号MDLを供給して接続位置論理情報として記憶するようになっている。   In the input unit 120, one end of the pull-up resistor 123 is connected to a constant voltage power supply line Vcc (for example, DC 5V). The other end of the pull-up resistor 123 is connected to a card information storage memory in the input interface circuit 122. The connection position signal MDL is supplied to the card information storage memory and stored as connection position logic information. Yes.

なお、終端ブロック160に接続される最終段の出力ユニット150の場合には、プルアップ抵抗153の他端が、終端ブロック160内の接続位置確認回路LSTによってグランド回路GNDに接続されており、接続位置信号(接続位置論理情報)MDLが、論理レベル「L」となるように構成されている。これに対し、中間位置にある他の入出力ユニット120、130、140の場合には、接続位置信号MDLは、論理レベル「H」(ハイ)となっている。   In the case of the final output unit 150 connected to the termination block 160, the other end of the pull-up resistor 153 is connected to the ground circuit GND by the connection position confirmation circuit LST in the termination block 160. The position signal (connection position logic information) MDL is configured to have a logic level “L”. On the other hand, in the case of the other input / output units 120, 130, and 140 at the intermediate position, the connection position signal MDL is at the logic level “H” (high).

一対の論理和素子からなる選択切換回路125a、125bにおいて、それぞれの第1の入力端子は、プルアップ抵抗124に接続されており、プルアップ抵抗124を介して常時は論理レベル「H」に設定されている。一方の選択切換回路125aの第2の入力端子には、入力インタフェース回路122内のカード情報格納メモリに格納されている局番設定完了信号(個別完了論理情報)FINの反転論理信号が入力され、他方の選択切換回路125bの第2の入力端子には、カード情報格納メモリに格納されている局番設定完了信号FINがそのまま入力されている。局番設定完了信号FINは、局番設定が完了していると、論理レベル「H」となる。   In the selection switching circuits 125a and 125b composed of a pair of OR elements, each first input terminal is connected to the pull-up resistor 124, and is always set to the logic level “H” via the pull-up resistor 124. Has been. The second input terminal of one selection switching circuit 125a receives an inverted logic signal of the station number setting completion signal (individual completion logic information) FIN stored in the card information storage memory in the input interface circuit 122, and the other The station number setting completion signal FIN stored in the card information storage memory is inputted as it is to the second input terminal of the selection switching circuit 125b. The station number setting completion signal FIN becomes a logic level “H” when the station number setting is completed.

局番設定検索信号CF1は、選択切換回路125a、125bのそれぞれの第1の入力端子に印加されており、局番設定を行うために局番設定検索信号CF1を論理レベル「L」とした場合に、たとえば入力ユニット120の局番設定が未完了であれば、選択切換回路125bの出力が論理レベル「L」となって、入力ユニット120がマイクロプロセッサ111との交信権を得ることになる。   The station number setting search signal CF1 is applied to the first input terminals of the selection switching circuits 125a and 125b. When the station number setting search signal CF1 is set to the logic level “L” to set the station number, for example, If the station number setting of the input unit 120 is not completed, the output of the selection switching circuit 125b becomes the logic level “L”, and the input unit 120 obtains the communication right with the microprocessor 111.

マイクロプロセッサ111との交信権を取得した入出力ユニットは、貫通バス信号線BUSを介して、マイクロプロセッサ111に対してカード情報や管理番号の情報を送信する。また、カード情報および管理番号の情報を受信したマイクロプロセッサ111は、次のタイミングで設定された局番情報(以下、「設定局番」ともいう)の値を、貫通バス信号線BUSを介して送信し、設定局番に該当する入出力ユニットの入力インタフェース回路内の局番設定メモリに書込む。   The input / output unit that has acquired the right to communicate with the microprocessor 111 transmits card information and management number information to the microprocessor 111 via the through bus signal line BUS. The microprocessor 111 that has received the card information and the management number information transmits the value of the station number information (hereinafter also referred to as “set station number”) set at the next timing via the through bus signal line BUS. Write to the station number setting memory in the input interface circuit of the I / O unit corresponding to the set station number.

続いて、マイクロプロセッサ111により設定局番が書き込まれた入出力ユニットは、書込み設定された局番情報を、マイクロプロセッサ111に対して確認返信する。これにより、マイクロプロセッサ111から局番設定完了信号FINが送信され、該当する入出力ユニットは、局番設定完了信号FINをカード情報として記憶する。   Subsequently, the input / output unit in which the set station number has been written by the microprocessor 111 returns a confirmation return to the microprocessor 111 of the set station number information. Thereby, the station number setting completion signal FIN is transmitted from the microprocessor 111, and the corresponding input / output unit stores the station number setting completion signal FIN as card information.

初段の入力ユニット120の局番設定が完了すると、選択切換回路125aの第2の入力は、論理レベル「L」となり、局番設定検索信号CF1の論理レベル「L」が次段の選択切換回路135a、135bの第1の入力端子に印加される。以下、同様にして、局番設定の順次処理が実行されることになる。   When the station number setting of the input unit 120 at the first stage is completed, the second input of the selection switching circuit 125a becomes the logic level “L”, and the logic level “L” of the station number setting search signal CF1 becomes the selection switching circuit 135a at the next stage. Applied to the first input terminal of 135b. In the same manner, the sequential processing of station number setting is executed.

出力ユニット130は、コネクタ(図示せず)を介して入力ユニット120の端面位置に接続されており、出力ユニット130には、出力端子台(図示せず)を介して、外部負荷131が接続されている。外部負荷131は、たとえば、操作盤に設けられた各種の表示ランプ、アクチェータ駆動用の電磁弁、または、モータ駆動用の電磁継電器などからなる。1台の出力ユニット130には、たとえば8点の出力信号が接続可能であるが、さらに多くの外部負荷131が接続される場合には、出力ユニット130の接続台数が増設されるようになっている。   The output unit 130 is connected to the end face position of the input unit 120 via a connector (not shown), and an external load 131 is connected to the output unit 130 via an output terminal block (not shown). ing. The external load 131 includes, for example, various display lamps provided on the operation panel, an electromagnetic valve for driving an actuator, or an electromagnetic relay for driving a motor. For example, eight output signals can be connected to one output unit 130. However, when more external loads 131 are connected, the number of output units 130 connected is increased. Yes.

出力ユニット130内において、出力インタフェース回路132は、外部負荷131を駆動するための駆動信号のラッチメモリを貫通バス信号線BUSに接続する出力信号回路と、カード情報格納メモリと、局番設定メモリと、管理番号格納メモリと、を有する。プルアップ抵抗133、134および選択切換回路135a、135bは、入力ブロック120の場合と同様に構成されている。   In the output unit 130, the output interface circuit 132 includes an output signal circuit for connecting a latch memory of a drive signal for driving the external load 131 to the through bus signal line BUS, a card information storage memory, a station number setting memory, And a management number storage memory. The pull-up resistors 133 and 134 and the selection switching circuits 135a and 135b are configured similarly to the case of the input block 120.

入力ユニット140には、たとえば4点のアナログ信号141が入力されている。入力ユニット140内において、入力インタフェース回路142内の多チャンネルAD変換器は、アナログ信号141をデジタル変換し、4チャンネルのアナログ入力に対する各12ビットのデジタル変換データをマイクロプロセッサ111に送信するようになっている。   For example, four analog signals 141 are input to the input unit 140. In the input unit 140, the multi-channel AD converter in the input interface circuit 142 converts the analog signal 141 into digital data and transmits 12-bit digital conversion data corresponding to the 4-channel analog input to the microprocessor 111. ing.

出力ユニット150には、たとえば4点のアナログ負荷151が接続されている。出力ユニット150内において、出力インタフェース回路152内の多チャンネルDA変換器は、マイクロプロセッサ111から送信された4チャンネル12ビットのデジタルデータをアナログ変換し、変換後のアナログ信号をアナログ負荷151に供給するようになっている。   For example, four analog loads 151 are connected to the output unit 150. In the output unit 150, the multi-channel DA converter in the output interface circuit 152 converts the 4-channel 12-bit digital data transmitted from the microprocessor 111 into analog data and supplies the converted analog signal to the analog load 151. It is like that.

入出力ユニット140、150の内部にも、入出力ユニット120、130の場合と同様に、カード情報格納メモリ、局番設定メモリおよび管理番号格納メモリを有する入出力インタフェース回路142、152が設けられている。また、プルアップ抵抗143、144、153、154、および、選択切換回路145a、145b、155a、155bは、それぞれ入出力ユニット120、130の場合と同様に構成されている。   As in the case of the input / output units 120 and 130, input / output interface circuits 142 and 152 having a card information storage memory, a station number setting memory, and a management number storage memory are also provided in the input / output units 140 and 150. . In addition, the pull-up resistors 143, 144, 153, 154 and the selection switching circuits 145a, 145b, 155a, 155b are configured in the same manner as the input / output units 120, 130, respectively.

最終段の入出力ユニット(出力ユニット150)に接続された終端ブロック160は、貫通バス信号線BUSの末端位置に接続された終端処理回路162を備えている。終端処理回路162は、高速信号の反射防止用のインピーダンス素子を、グランド回路GNDまたは定電圧電源線Vccに対して接続するためのプルダウン回路またはプルアップ回路により構成されている。   The termination block 160 connected to the final stage input / output unit (output unit 150) includes a termination processing circuit 162 connected to the terminal position of the through bus signal line BUS. The termination processing circuit 162 is configured by a pull-down circuit or a pull-up circuit for connecting an impedance element for preventing reflection of a high-speed signal to the ground circuit GND or the constant voltage power supply line Vcc.

終端ブロック160内の接続位置確認回路LSTは、最終段に接続された出力ユニット150内のプルアップ抵抗153の他端を、終端ブロック160内でグランド回路GNDに接続して論理反転させる回路を構成している。なお、プルアップ抵抗123、133、143、153をプルダウン抵抗に変更し、終端ブロック160内で定電圧電源線Vccに接続して論理反転させるようにしてもよい。   The connection position confirmation circuit LST in the termination block 160 constitutes a circuit that inverts the logic by connecting the other end of the pull-up resistor 153 in the output unit 150 connected to the final stage to the ground circuit GND in the termination block 160. is doing. Note that the pull-up resistors 123, 133, 143, and 153 may be changed to pull-down resistors and connected to the constant voltage power supply line Vcc in the termination block 160 to invert the logic.

終端ブロック160内の終端処理確認回路ENDは、ロウレベルの論理発生回路を構成しており、終端ブロック160が接続されていることを示すロウレベルの接続確認信号END1を生成し、各入出力ユニット120〜150を貫通してマイクロプロセッサ111に伝達する。なお、接続確認信号END1の伝送線に設けられたプルアップ抵抗Rをプルダウン抵抗に変更し、終端ブロック160内の終端処理確認回路ENDにおいて、定電圧電源線Vccに接続することにより、ハイレベルの論理信号を与えるようにしてもよい。   The termination processing confirmation circuit END in the termination block 160 constitutes a low level logic generation circuit, generates a low level connection confirmation signal END1 indicating that the termination block 160 is connected, The signal is transmitted to the microprocessor 111 through 150. Note that the pull-up resistor R provided on the transmission line for the connection confirmation signal END1 is changed to a pull-down resistor, and the termination processing confirmation circuit END in the termination block 160 is connected to the constant voltage power supply line Vcc so that a high level is obtained. A logic signal may be given.

入出力ユニット120〜150内のカード情報格納メモリに格納されるカード情報は、少なくとも、入出力インタフェース回路122〜152が入力インタフェース回路であるかまたは出力インタフェース回路であるかを識別する品種別論理情報と、局番設定処理が完了しているか否かの設定状態を識別する局番設定完了信号(個別完了論理情報)FINと、入出力インタフェース回路122〜152の接続位置が最終接続位置であるか、または最終接続位置以外の中間接続位置であるかを識別する接続位置信号(接続位置論理情報)MDLと、を含む。   The card information stored in the card information storage memory in the input / output units 120 to 150 is at least product type logical information for identifying whether the input / output interface circuits 122 to 152 are input interface circuits or output interface circuits. The station number setting completion signal (individual completion logic information) FIN for identifying the setting state as to whether or not the station number setting process has been completed and the connection position of the input / output interface circuits 122 to 152 is the final connection position, or And a connection position signal (connection position logic information) MDL for identifying whether it is an intermediate connection position other than the final connection position.

なお、品種別論理情報としては、ON/OFF信号(開閉信号121、外部負荷131)用の入出力ユニットであるか否か、アナログ(アナログ信号141、アナログ負荷151)用の入出力ユニットであるか否か、の識別信号も付加されている。たとえば、アナログ用の入出力ユニットである場合には、マイクロプロセッサ111と多チャンネルAD変換器または多チャンネルDA変換器との間で、複数回の読出しまたは書込み操作が行われるようになっている。   The logic information for each product type is an input / output unit for an ON / OFF signal (open / close signal 121, external load 131) or an analog (analog signal 141, analog load 151). An identification signal is also added. For example, in the case of an analog input / output unit, a plurality of read / write operations are performed between the microprocessor 111 and the multi-channel AD converter or multi-channel DA converter.

また、ON/OFF信号用の入出力ユニットである場合も、大小2種類(16点単位、8点単位)の入出力ユニットがあるので、8点単位のものか、または16点単位のものかを識別する信号も付加されている。また、入出力各8点の混合入出力ユニットが適用されてもよいが、いずれの場合も、たとえば入力8点、または出力8点当たりで1つの局番が割り振られるようになっている。   In addition, the input / output unit for the ON / OFF signal also has two types of input / output units (16-point unit, 8-point unit), so whether it is an 8-point unit or 16-point unit A signal for identifying is also added. Further, a mixed input / output unit of 8 points for each input / output may be applied, but in either case, for example, one station number is assigned for every 8 input points or 8 output points.

また、アナログ信号用の入出力ユニットである場合も、大小2種類(8点単位、4点単位)の入出力ユニットがあるので、4点単位、8点単位、または、入力4点かつ出力4点の混合タイプなどに応じて、異なる品種別論理情報が与えられるようになっている。   Also, in the case of an analog signal input / output unit, since there are two types of input / output units (8-point unit, 4-point unit), the unit is 4-point unit, 8-point unit, or input 4 points and output 4 Different types of logical information are given according to the type of point mixture.

また、局番は、たとえば、アナログ4点単位で1つの局番が割り振られるようになっている。各種の品種別論理情報は、データバスに対して接続または解放するために設けられたデータセレクタの複数ビットの入力端子を、プリント基板によってグランド回路GNDに接続するか、または定電圧電源線Vccに接続するか、によって決定される配線パターン情報となっている。品種別論理情報の記憶手段は、ここでは総称として個別メモリとしているが、実際には読出しおよび書込みの行えるメモリが使用されなくてもよい。   In addition, for example, one station number is assigned in units of four analog points. Various types of logic information can be obtained by connecting a multi-bit input terminal of a data selector provided for connection or release to a data bus to a ground circuit GND by a printed circuit board or to a constant voltage power supply line Vcc. The wiring pattern information is determined by whether to connect. Here, the storage means for storing the logic information by product type is an individual memory as a generic name here, but a memory that can be read and written may not actually be used.

貫通バス信号線BUSは、必要時に入出力インタフェース回路122〜152に対する局番指定用のアドレスバスとして使用され、また、必要時にカード情報や管理番号の情報を読出すか、外部からの入力信号を読出すための読出し用のデータバスとして使用され、さらに、局番設定信号や外部負荷131に対する制御出力データを書込むための書込み用のデータバスとして使用される。   The through bus signal line BUS is used as an address bus for specifying a station number for the input / output interface circuits 122 to 152 when necessary, and also reads card information and management number information or reads an external input signal when necessary. Used as a data bus for reading data, and as a data bus for writing data for writing station number setting signals and control output data for the external load 131.

上記の貫通バス信号線BUSの使い分けは、マイクロプロセッサ111が発生するコマンドデータに依存して決定される。また、多数の入出力情報を有するアナログ用の入出力インタフェース回路142、152に対しては、複数回の交信によって全データの転送が行われ、読み書きの実行タイミングは、マイクロプロセッサ111が発生する制御信号(タイミング信号)に基づいて決定される。   The proper use of the through bus signal line BUS is determined depending on the command data generated by the microprocessor 111. In addition, for the analog input / output interface circuits 142 and 152 having a large number of input / output information, all data is transferred by a plurality of communications, and the read / write execution timing is controlled by the microprocessor 111. It is determined based on the signal (timing signal).

以上の説明では、ON/OFF入出力の場合には、入力8点または出力8点に対して1つの局番を付与し、アナログ入出力の場合には、入力4チャンネルまたは出力4チャンネルに対して1つの局番を付与したが、これは単なる一例であって、さらに多い入出力点数や入出力チャンネルのものに対して、または、入出力混合のものに対して1つの局番を付与する仕様としてもよい。   In the above description, in the case of ON / OFF input / output, one station number is assigned to 8 input points or 8 output points, and in the case of analog input / output, 4 input channels or 4 output channels. Although one station number is given, this is merely an example, and it is possible to provide one station number for a larger number of input / output points, input / output channels, or a mixture of input / output channels. Good.

この発明の実施の形態1に係るプログラマブルコントローラ100Aにおいて、入出力ユニット120、130、140、150には、固体識別のための管理番号が付与されており、各管理番号は、運転前に、基本ユニット110A内の管理情報格納領域199Aに転送保存されている。運転開始時に、管理番号の情報が変化していると運転停止されるので、入出力ユニット120、130、140、150を保守交換する場合には、暗証番号を用いて管理番号の変更処理が行われる。これにより、入出力ユニット120、130、140、150の不用意な保守交換を防止することのできるプログラマブルコントローラ100Aが得られる。   In the programmable controller 100A according to the first embodiment of the present invention, the input / output units 120, 130, 140, and 150 are assigned management numbers for individual identification, and each management number is a basic number before operation. It is transferred and stored in the management information storage area 199A in the unit 110A. At the start of operation, if the management number information is changed, the operation is stopped. Therefore, when the input / output units 120, 130, 140, 150 are to be maintained and replaced, the management number is changed using the password. Is called. Thereby, programmable controller 100A which can prevent careless maintenance exchange of input / output units 120, 130, 140, and 150 is obtained.

次に、図2〜図7のフローチャートを参照しながら、図1に示したこの発明の実施の形態1による動作について詳細に説明する。図2はプログラマブルコントローラ100Aの運転(RUN)動作を示している。   Next, the operation according to the first embodiment of the present invention shown in FIG. 1 will be described in detail with reference to the flowcharts of FIGS. FIG. 2 shows an operation (RUN) operation of the programmable controller 100A.

図2において、ステップ205、206は、第1および第2の管理忌避手段に対応し、ステップ207aは照合判定手段に対応し、ステップ208、209bは、編成異常検出手段および編成異常処理手段に対応し、ステップ213a、213bは、それぞれ脱落異常検出手段に対応している。   In FIG. 2, steps 205 and 206 correspond to the first and second management avoidance means, step 207a corresponds to the collation determination means, and steps 208 and 209b correspond to the knitting abnormality detection means and the knitting abnormality processing means. Steps 213a and 213b correspond to dropout abnormality detecting means, respectively.

まず、電源スイッチ(図示せず)が投入されて(ステップ200)、外部電源103からプログラマブルコントローラ100Aに給電されると、マイクロプロセッサ111が動作を開始し(ステップ201)、マイクロプロセッサ111は、現場のオペレータの操作によるRUN/STOP(運転/停止)指令入力(図示せず)の状態を参照して、RUN入力の有無を判定する(ステップ202a)。   First, when a power switch (not shown) is turned on (step 200) and power is supplied from the external power source 103 to the programmable controller 100A, the microprocessor 111 starts its operation (step 201). With reference to the state of the RUN / STOP (run / stop) command input (not shown) by the operator's operation, the presence / absence of RUN input is determined (step 202a).

ステップ202aにおいて、RUNスイッチが閉路(ON)されていてRUN入力有り(すなわち、YES)と判定されれば、続いて、プログラマブルコントローラ100Aの運転準備が完了しているか否かを判定し(ステップ203a)、準備完了している(すなわち、YES)と判定されればステップ204に移行し、また、準備完了していない(すなわち、NO)と判定されればステップ203bに移行する。   If it is determined in step 202a that the RUN switch is closed (ON) and the RUN input is present (ie, YES), it is subsequently determined whether or not the operation preparation of the programmable controller 100A is completed (step 203a). ), If it is determined that the preparation is completed (that is, YES), the process proceeds to step 204, and if it is determined that the preparation is not completed (that is, NO), the process proceeds to step 203b.

ステップ203aにおいては、準備完了か否かを判定する。具体的には、ステップ314(図4とともに後述する)によって編成完了フラグのセット状態(編成記憶完了を示す)が管理情報格納領域199Aに格納されているか否かを判定する。または、ステップ502(図7とともに後述する)によってシーケンスプログラムがプログラムメモリ115Aに格納され、代表としてEND命令が書込まれているか否かを判定する。これにより、編成完了フラグがセットされ、かつEND命令が書込まれていれば、準備完了と判定することができる。   In step 203a, it is determined whether preparation is complete. Specifically, it is determined in step 314 (described later with reference to FIG. 4) whether the set state of the knitting completion flag (indicating completion of knitting storage) is stored in the management information storage area 199A. Alternatively, in step 502 (described later with reference to FIG. 7), the sequence program is stored in the program memory 115A, and it is determined whether or not an END instruction is written as a representative. Thereby, if the composition completion flag is set and the END instruction is written, it can be determined that the preparation is completed.

一方、ステップ202aにおいて、RUNスイッチが開路(OFF)されていてSTOPモードである(すなわち、NO)と判定されれば、ステップ209a(後述する)でセットされた初回フラグをリセットし(ステップ202b)、中継端子Aを介して、図4内のステップ301に移行する。   On the other hand, if it is determined in step 202a that the RUN switch is open (OFF) and the STOP mode is set (ie, NO), the initial flag set in step 209a (described later) is reset (step 202b). Then, the process proceeds to step 301 in FIG.

ステップ203aに続くステップ203bにおいては、準備未完了状態であることを警報表示器119によって表示し、動作終了ステップ210に移行する。動作終了ステップ210において、マイクロプロセッサ111は、他の制御動作を実行して、所定時間以内に動作開始処理(ステップ201)に復帰移行し、循環動作する。   In step 203b following step 203a, the alarm display unit 119 displays that the preparation is incomplete, and the process proceeds to operation end step 210. In the operation end step 210, the microprocessor 111 executes another control operation, returns to the operation start process (step 201) within a predetermined time, and performs a circulation operation.

つまり、準備完了していない状態で、RUNスイッチが閉路(ON)されると、ステップ201、202a、203a、203b、210、201が循環動作して、RUNスイッチが開路(OFF)されるのを待機する状態となり、RUNスイッチが開路(OFF)されたことによって、図4内のステップ301に移行するようになっている。   In other words, when the RUN switch is closed (ON) in a state where preparation is not completed, steps 201, 202a, 203a, 203b, 210, and 201 are circulated so that the RUN switch is opened (OFF). A standby state is entered, and when the RUN switch is opened (OFF), the routine proceeds to step 301 in FIG.

ステップ204においては、RUNモードでの初回動作であるか否かを判定する。具体的には、ステップ209aによって初回フラグがセットされているか否かを監視することによって、RUNモードでの初回動作であるか否かを判定する。もし、初回動作である(すなわち、YES)と判定されればステップ205に移行し、初回動作でない(すなわち、NO)と判定されれば、ステップ211(後述する)に移行する。   In step 204, it is determined whether or not the operation is the first operation in the RUN mode. Specifically, it is determined whether or not the operation is the initial operation in the RUN mode by monitoring whether or not the initial flag is set in step 209a. If it is determined that the operation is the first operation (that is, YES), the process proceeds to step 205. If it is determined that the operation is not the first operation (that is, NO), the process proceeds to step 211 (described later).

ステップ205においては、暗証番号の有無を判定する。具体的には、ステップ554a(図6とともに後述する)で暗証番号が入力されて管理情報格納領域199Aに格納されているか否かにより、暗証番号の有無を判定する。もし、暗証番号が有り(すなわち、YES)と判定されればステップ206に移行し、暗証番号が格納されていない(すなわち、NO)と判定されればステップ207bに移行する。   In step 205, the presence / absence of a password is determined. Specifically, in step 554a (described later with reference to FIG. 6), the presence / absence of a personal identification number is determined based on whether the personal identification number is input and stored in the management information storage area 199A. If it is determined that there is a password (that is, YES), the process proceeds to step 206, and if it is determined that the password is not stored (that is, NO), the process proceeds to step 207b.

ステップ206においては、管理番号による管理の要否を判定する。具体的には、ステップ358b(図3とともに後述する)によって管理番号による管理が必要であるとの編成指令が送信されて、編成指令が管理情報格納領域199Aに格納されているか否かにより、管理の要否を判定する。もし、管理が必要である(すなわち、YES)と判定されればステップ207aに移行し、管理が不要である(すなわち、NO)と判定されれば、ステップ207bに移行する。   In step 206, it is determined whether the management number is necessary. Specifically, in step 358b (to be described later with reference to FIG. 3), a knitting command indicating that management by a management number is required is transmitted, and management is performed depending on whether the knitting command is stored in the management information storage area 199A. Whether or not is necessary is determined. If it is determined that management is necessary (ie, YES), the process proceeds to step 207a. If it is determined that management is not necessary (ie, NO), the process proceeds to step 207b.

ステップ207aにおいては、現在のカード編成状態を読出し、管理および編成を確認する。このとき、マイクロプロセッサ111は、既に設定完了している局番を指定し、これに応答して指定された局番の入出力ユニットが自分のカード情報および管理番号の情報をマイクロプロセッサ111に送信する。これにより、管理番号を含むカード編成を確認することができる。   In step 207a, the current card organization state is read to confirm management and organization. At this time, the microprocessor 111 designates a station number that has already been set, and in response to this, the input / output unit of the designated station number transmits its own card information and management number information to the microprocessor 111. Thereby, the card organization including the management number can be confirmed.

ステップ207bにおいては、現在のカード編成状態を読出して確認する。具体的には、基本ユニット110A内のマイクロプロセッサ111は、既に設定完了している局番を指定し、これに応答して、指定された局番の入出力ユニットは、自分のカード情報をマイクロプロセッサ111に送信する。これにより、マイクロプロセッサ111は、管理番号を除外したカード編成を確認することができる。   In step 207b, the current card organization state is read and confirmed. Specifically, the microprocessor 111 in the basic unit 110A designates a station number that has already been set, and in response to this, the input / output unit of the designated station number receives its card information from the microprocessor 111. Send to. Thereby, the microprocessor 111 can confirm the card organization excluding the management number.

続いて、ステップ313(図4とともに後述する)で記憶されたカード編成情報と、ステップ207aまたは207bによって確認された現在のカード編成状態とを比較し、比較結果が不一致であるか否かにより編成が異常であるか否かを判定する(ステップ208)。ステップ208における比較結果が不一致であって編成が異常である(すなわち、YES)と判定されれば、ステップ209bに移行し、比較結果が一致であって編成が正常(すなわち、NO)と判定されれば、ステップ213aに移行する。   Subsequently, the card knitting information stored in step 313 (to be described later with reference to FIG. 4) is compared with the current card knitting state confirmed in step 207a or 207b, and knitting is performed based on whether or not the comparison result is inconsistent. It is determined whether or not is abnormal (step 208). If it is determined that the comparison result in step 208 is inconsistent and the knitting is abnormal (that is, YES), the process proceeds to step 209b, and the comparison result is consistent and the knitting is determined to be normal (that is, NO). If so, the process proceeds to step 213a.

ステップ209bにおいては、カード編成異常の発生をデータメモリ116に書込み記憶するとともに、異常表示LEDからなる警報表示器119を点滅表示して異常報知を行い、さらに、出力ユニット130、150の出力発生を停止状態(または、現状保持状態)にして、動作終了ステップ210に移行する。なお、ステップ209bにおいて、出力ユニット130、150の出力停止状態または現状保持状態の選択は、データメモリ115Aに対してあらかじめ選択パラメータを設定しておくことによって決定される。   In step 209b, the occurrence of the card formation abnormality is written and stored in the data memory 116, the alarm indicator 119 comprising an abnormality display LED is flashed to notify the abnormality, and further the output generation of the output units 130 and 150 is performed. A stop state (or a current state holding state) is set, and the operation end step 210 is entered. In step 209b, the selection of the output stopped state or the current state holding state of the output units 130 and 150 is determined by setting a selection parameter in advance for the data memory 115A.

一方、ステップ213aにおいて、マイクロプロセッサ111は、接続確認信号END1の論理レベルを判定することにより、入出力ユニット120、130、140、150および終端ブロック160が正常に接続されている(終端OK)か否かを判定する。   On the other hand, in step 213a, the microprocessor 111 determines whether the input / output units 120, 130, 140, 150 and the termination block 160 are normally connected by determining the logic level of the connection confirmation signal END1 (termination OK). Determine whether or not.

ステップ213aにおいて、接続確認信号END1の論理レベルが「H」であって異常状態である(すなわち、NO)と判定されれば、ステップ209bに移行し、論理レベルが「L」であって正常である(すなわち、YES)と判定されれば、初回フラグをセットして(ステップ209a)、後述する入力処理(ステップ215)に移行する。   If it is determined in step 213a that the logical level of the connection confirmation signal END1 is “H” and is in an abnormal state (ie, NO), the process proceeds to step 209b, where the logical level is “L” and normal. If it is determined that there is (that is, YES), an initial flag is set (step 209a), and the process proceeds to an input process (step 215) described later.

一方、ステップ204により初回動作でない(すなわち、NO)と判定された場合に実行されるステップ211においては、図7内のステップ502によりプログラムメモリ115Aに書込まれたシーケンスプログラムを実行する。   On the other hand, in step 211, which is executed when it is determined in step 204 that the operation is not the first operation (that is, NO), the sequence program written in the program memory 115A in step 502 in FIG. 7 is executed.

続いて、上記シーケンスプログラムの中にあるEND命令が実行されたか否かを判定し(ステップ212)、END命令が実行されていない(すなわち、NO)と判定されれば、ステップ211に復帰してEND命令が実行されるまでステップ211を繰り返し循環実行する。そして、ステップ212において、END命令が実行された(すなわち、YES)と判定されれば、次の判定処理(ステップ213b)に移行する。   Subsequently, it is determined whether or not the END instruction in the sequence program has been executed (step 212). If it is determined that the END instruction has not been executed (that is, NO), the process returns to step 211. Step 211 is repeatedly executed repeatedly until the END instruction is executed. If it is determined in step 212 that the END instruction has been executed (that is, YES), the process proceeds to the next determination process (step 213b).

つまり、ステップ211、212により一巡のシーケンスプログラムが実行された後、続いて、接続確認信号END1の論理レベルを判定することにより、入出力ユニット120、130、140、150および終端ブロック160が正常に接続されている(終端OK)か否かを判定する(ステップ213b)。   That is, after the sequence program of one round is executed in steps 211 and 212, the logic level of the connection confirmation signal END1 is subsequently determined, so that the input / output units 120, 130, 140, and 150 and the termination block 160 are properly operated. It is determined whether it is connected (termination OK) (step 213b).

ステップ213bにおいて、接続確認信号END1の論理レベルが「H」であって異常状態である(すなわち、NO)と判定されれば、前述のステップ209bに移行し、論理レベルが「L」であって正常である(すなわち、YES)と判定されれば、ステップ211によるシーケンスプログラムの実行結果として、出力ユニット130、150に対する制御出力信号の書込み(出力処理)を実行する(ステップ214)。   In step 213b, if it is determined that the logical level of the connection confirmation signal END1 is “H” and is in an abnormal state (ie, NO), the process proceeds to step 209b described above, and the logical level is “L”. If it is determined to be normal (that is, YES), the control output signal is written (output process) to the output units 130 and 150 as the execution result of the sequence program in step 211 (step 214).

最後に、ステップ214に続いて、また、前述の初回フラグのセット(ステップ209a)に続いて、入力処理(ステップ215)が実行され、マイクロプロセッサ111は、入力ユニット120、140から入力信号を読出して、データメモリ116に転送する。以下、ステップ202aに復帰し、RUN/STOPスイッチがRUN状態を維持していて、準備完了(すなわち、YES)と判定されれば、ステップ204を経て、再びシーケンスプログラムの実行(ステップ211)が繰り返される。   Finally, following step 214 and following the initial flag setting (step 209a) described above, input processing (step 215) is executed, and the microprocessor 111 reads the input signal from the input units 120 and 140. To the data memory 116. Thereafter, returning to step 202a, if the RUN / STOP switch maintains the RUN state and it is determined that the preparation is complete (ie, YES), the execution of the sequence program (step 211) is repeated again through step 204. It is.

なお、ステップ214における出力信号の書込み、ならびに、ステップ215における入力信号の読出しに際しては、マイクロプロセッサ111によって指定された局番と一致する設定局番を有する入出力ユニットが、マイクロプロセッサ111との交信権を取得するようになっている。   When the output signal is written in step 214 and the input signal is read in step 215, the input / output unit having the set station number that matches the station number specified by the microprocessor 111 has the right to communicate with the microprocessor 111. To get.

以上の動作を整理して概括説明すると、ステップ205は、第1の管理忌避手段として機能し、暗証番号が入力されていないときには管理番号の照合を行わないようにする。また、ステップ206は、第2の管理忌避手段として機能し、ステップ554aによって暗証番号が入力されていても、ステップ358aによって管理番号の照合を行わない編成指令が与えられているときには、ステップ207bによって管理番号を除外したカード編成のみをチェックする。   If the above operation is organized and explained generally, step 205 functions as a first management avoidance means, and the management number is not checked when the password is not inputted. Step 206 functions as a second management repelling means. Even if a personal identification number has been input in Step 554a, but in Step 358a, a composition command that does not perform management number verification is given, Step 207b Check only the card organization without the control number.

ステップ207a、207bは、照合判定手段として機能し、ステップ358bによって管理番号が必要であるとして編成指令が出されたときに、管理番号およびカード編成情報の両方について、現在の状態とステップ313によって編成記憶されたときの状態とを比較判定する。   Steps 207a and 207b function as collation determination means. When a knitting command is issued as a management number is required by step 358b, both the management number and the card knitting information are knitted according to the current state and step 313. A comparison is made with the stored state.

ステップ208は、ステップ207a、207b(照合判定手段)と関連した編成異常検出手段として機能し、ステップ207aまたはステップ207bによる確認結果に異常があるか否かを検出し、入出力インタフェース回路122、132、142、152から得られるカード情報および管理番号の情報の現在状態が、カード編成記憶手段(ステップ313)に記憶されているカード情報および管理番号と一致しているか否かを判定する。   Step 208 functions as a knitting abnormality detection means associated with steps 207a and 207b (collation determination means), detects whether or not there is an abnormality in the confirmation result in step 207a or step 207b, and the input / output interface circuits 122 and 132 , 142, 152, it is determined whether or not the current state of the card information and management number information matches the card information and management number stored in the card organization storage means (step 313).

ステップ209bは、編成異常処理手段として機能し、編成異常検出手段(ステップ208)が編成異常を検出した場合、または、脱落異常検出手段(ステップ213a、213b)によって終端異常が検出された場合に機能して、異常状態をデータメモリ116に書込み記憶するとともに、異常発生を警報表示器119に表示させ、制御出力を停止状態または現状保持状態にする。   Step 209b functions as a knitting abnormality processing means, and functions when the knitting abnormality detecting means (step 208) detects a knitting abnormality or when a termination abnormality is detected by the dropout abnormality detecting means (steps 213a, 213b). Then, the abnormal state is written and stored in the data memory 116, and the occurrence of the abnormality is displayed on the alarm indicator 119, and the control output is set to the stopped state or the current state holding state.

ステップ213aは、第1の異常判定手段または脱落異常検出手段として機能し、運転開始時に実行されて、終端ブロック160が未接続であるか、接続されていてもコネクタの接触不良などによって接続確認信号END1が論理レベル「L」にならないときに、終端処理未完了の判定を行う。ステップ213bは、第1の異常判定手段として機能し、運転中に実行される。   Step 213a functions as first abnormality determination means or dropout abnormality detection means, and is executed at the start of operation. Even if the terminal block 160 is not connected or is connected, a connection confirmation signal is generated depending on the contact failure of the connector. When END1 does not become the logic level “L”, it is determined that the termination process is not completed. Step 213b functions as first abnormality determination means and is executed during operation.

次に、図1とともに、図3および図4のフローチャートを参照しながら、この発明の実施の形態1による編成操作について説明する。図3のフローチャートは、基本ユニット110Aに接続された外部ツール108の動作を示し、図4のフローチャートは、図2内の中継端子Aに続くマイクロプロセッサ111の動作を示している。   Next, the knitting operation according to Embodiment 1 of the present invention will be described with reference to the flowcharts of FIGS. 3 and 4 together with FIG. The flowchart in FIG. 3 shows the operation of the external tool 108 connected to the basic unit 110A, and the flowchart in FIG. 4 shows the operation of the microprocessor 111 following the relay terminal A in FIG.

なお、マイクロプロセッサ111と外部ツール108との間では、シリアルインタフェース118を介して交信が行われており、一方が送信して他方が受信すると、受信確認の返信が行われ、送信指令内容が受信側で実行されると、実行確認返信が行われるようになっているが、図3および図4においては、簡略化のため、両者の連携動作については図示を省略する。   Note that communication is performed between the microprocessor 111 and the external tool 108 via the serial interface 118. When one side transmits and the other side receives, a reception confirmation reply is sent and the transmission command content is received. When executed on the side, an execution confirmation reply is made. However, in FIGS. 3 and 4, illustration of the cooperative operation of both is omitted for the sake of simplicity.

図3において、まず、外部ツール108が接続されたことによって、外部ツール108内のマイクロプロセッサ(図示せず)が動作を開始し(ステップ350)、暗証番号の有無(暗証番号が登録されているか否か)を検索判定して(ステップ351)、暗証番号が登録されている(すなわち、YES)と判定されれば、ステップ352に移行し、暗証番号が登録されていない(すなわち、NO)と判定されれば、ステップ354に移行する。   In FIG. 3, first, when the external tool 108 is connected, a microprocessor (not shown) in the external tool 108 starts to operate (step 350), and the presence / absence of a password (whether the password is registered). No) is searched (step 351), and if it is determined that the code number is registered (that is, YES), the process proceeds to step 352, and the code number is not registered (that is, NO). If it is determined, the process proceeds to step 354.

ステップ352においては、マイクロプロセッサ111との間の暗証番号の入力処理により確認送信が行われる。続いて、マイクロプロセッサ111に既に登録されていた暗証番号と、ステップ352で外部ツール108から入力された暗証番号とが一致しているか否かを判定し(ステップ353)、両者が一致している(すなわち、YES)と判定されれば、ステップ354に移行し、不一致である(すなわち、NO)と判定されれば、ステップ359に移行する。なお、暗証番号の照合判定処理は、外部ツール108側で実行されてもよいが、実際には、基本ユニット110A側で実行され、判定結果を外部ツール108に返信するようになっている。   In step 352, confirmation transmission is performed by a password input process with the microprocessor 111. Subsequently, it is determined whether or not the password already registered in the microprocessor 111 matches the password entered from the external tool 108 in step 352 (step 353). If it is determined (that is, YES), the process proceeds to step 354, and if it is determined that they do not match (that is, NO), the process proceeds to step 359. The password collation determination process may be executed on the external tool 108 side. However, in practice, it is executed on the basic unit 110A side, and the determination result is returned to the external tool 108.

ステップ354において、外部ツール108は、基本ユニット110Aの管理情報格納領域199Aの内容を読出す。続いて、ステップ354の読出し結果に応じて、編成完了フラグがセットされていた(編成が完了)か否かを判定し(ステップ355a)、編成完了(すなわち、YES)と判定されれば、ステップ356に移行し、編成未完了(すなわち、NO)と判定されれば、ステップ357に移行する。   In step 354, the external tool 108 reads the contents of the management information storage area 199A of the basic unit 110A. Subsequently, it is determined whether or not the knitting completion flag has been set (knitting is completed) according to the read result of step 354 (step 355a). If it is determined that the composition is not completed (that is, NO), the process proceeds to step 357.

ステップ356においては、画面表示された編成変更要否のボタンのうち、どちらかがオペレータによって選択されることに応答して、編成変更が必要であるか否かを判定し、編成変更が必要である(すなわち、YES)と判定されれば、ステップ357に移行し、編成変更が必要でない(すなわち、NO)と判定されれば、中継端子Xを経由して、図6内のステップ550に移行する。   In step 356, in response to the operator selecting one of the buttons indicating whether or not to change the composition, it is determined whether or not the composition change is necessary, and the composition change is necessary. If it is determined that there is (that is, YES), the process proceeds to step 357, and if it is determined that the train change is not necessary (that is, NO), the process proceeds to step 550 in FIG. To do.

ステップ357においては、管理番号の要否を決定する選択ボタンの画面表示が行われ、オペレータが管理番号の要否を決定してどちらかのボタンを押すことに応答して、管理番号が必要であるか否かを判定し、管理番号が必要でない(すなわち、NO)と判定されれば、ステップ358aに移行し、管理番号が必要である(すなわち、YES)と判定されれば、ステップ358bに移行する。   In step 357, a selection button for determining whether or not a management number is necessary is displayed on the screen. In response to the operator deciding whether or not a management number is necessary and pressing one of the buttons, a management number is required. If it is determined whether the management number is not necessary (ie, NO), the process proceeds to step 358a. If it is determined that the management number is required (ie, YES), the process proceeds to step 358b. Transition.

ステップ358aにおいては、管理番号による管理を行わない場合の編成指令を送信し、ステップ355bに移行する。また、ステップ358bにおいては、管理番号による管理を行う場合の編成指令を送信し、ステップ355bに移行する。なお、ステップ358a、358bにおいては、それぞれ編成指令が送信されるとともに、ステップ314(図4とともに後述する)でセットされていた編成完了フラグがリセットされる。   In step 358a, a composition command for not performing management by the management number is transmitted, and the process proceeds to step 355b. In step 358b, a composition command for performing management using the management number is transmitted, and the process proceeds to step 355b. In steps 358a and 358b, the knitting command is transmitted, and the knitting completion flag set in step 314 (described later with reference to FIG. 4) is reset.

ステップ355bにおいては、ステップ358a、358bでリセットされた編成完了フラグが、後述のステップ314によって再度セットされるか否かを監視して、編成が完了したか否かを判定し、編成完了フラグのセットが未完了(すなわち、NO)と判定されれば、ステップ357に復帰する。   In Step 355b, it is determined whether or not the knitting completion flag reset in Steps 358a and 358b is set again in Step 314, which will be described later, to determine whether or not the knitting has been completed. If it is determined that the setting is not completed (that is, NO), the process returns to step 357.

また、ステップ355bにおいて、既に選択されているステップ358aまたはステップ358bが引き続き送信されて、ステップ314によって編成完了フラグがセットされている(すなわち、YES)と判定されれば、中継端子Xを介して図6内のステップ550に移行する。   If it is determined in step 355b that the already selected step 358a or step 358b is continuously transmitted and the knitting completion flag is set in step 314 (that is, YES), it is determined via the relay terminal X. The process proceeds to step 550 in FIG.

一方、ステップ353で暗証番号の不一致が判定された場合に実行されるステップ359においては、外部ツール108に対して異常表示が行われ、動作終了ステップ460に移行する。このとき、所定時間内に、再度、動作開始ステップ350に復帰移行するようになっている。なお、オペレータは、ステップ359による異常表示画面に応じて、暗証番号の再入力を行うか、または、暗証番号が不明な場合には、全データの消去処理を行う。   On the other hand, in step 359, which is executed when it is determined in step 353 that the passwords do not match, an abnormal display is given to the external tool 108, and the operation shifts to step 460. At this time, the process returns to the operation start step 350 again within a predetermined time. Note that the operator re-enters the code number in accordance with the abnormality display screen in step 359, or if the code number is unknown, erases all data.

図4の処理ルーチンは、図2内のステップ202bに続いて実行される。図4において、ステップ210は、前述(図2参照)と同様の動作終了処理である。ステップ302は、編成変更手段を構成し、ステップ303は、第1の異常判定手段を構成し、ステップ304は、設定異常処理手段を構成し、ステップ310は、第3の異常判定手段を構成し、ステップ313は、カード編成記憶手段を構成している。また、ステップ210、304、305、310、311a、311b、312、400は、局番設定手段を構成している。   The processing routine of FIG. 4 is executed following step 202b in FIG. In FIG. 4, step 210 is an operation end process similar to that described above (see FIG. 2). Step 302 constitutes knitting change means, step 303 constitutes first abnormality determination means, step 304 constitutes setting abnormality processing means, and step 310 constitutes third abnormality determination means. Step 313 constitutes a card organization storage means. Steps 210, 304, 305, 310, 311a, 311b, 312 and 400 constitute station number setting means.

図4において、まず、マイクロプロセッサ111は、ステップ314(後述する)で編成完了フラグがセットされたか否かにより、編成記憶が完了しているか否かを判定する(ステップ301)。なお、初回動作においては、編成記憶が完了していない(すなわち、NO)と判定されて、ステップ303に移行し、次回動作においては、編成完了フラグがセットされている(すなわち、YES)と判定されて、ステップ302に移行する。   In FIG. 4, first, the microprocessor 111 determines whether or not the knitting storage is completed based on whether or not the knitting completion flag is set in step 314 (described later) (step 301). In the first operation, it is determined that the knitting storage is not completed (that is, NO), the process proceeds to step 303, and in the next operation, it is determined that the knitting completion flag is set (that is, YES). Then, the process proceeds to step 302.

ステップ302においては、ステップ358aまたはステップ358bによる編成指令を受信したか否かを判定し、受信している(すなわち、YES)と判定されれば、ステップ303に移行し、編成指令を受信していない(すなわち、NO)と判定されれば、中継端子Bを介して図7内のステップ500に移行する。   In step 302, it is determined whether or not the knitting command in step 358a or 358b has been received. If it is determined that the knitting command has been received (that is, YES), the process proceeds to step 303 and the knitting command has been received. If it is determined that there is no (that is, NO), the process proceeds to step 500 in FIG.

ステップ303においては、接続確認信号END1の論理レベルに応じて、終端ブロック160が接続されている(終端処理が完了)か否かを判定し、終端ブロック160が接続されていて接続確認信号END1の論理レベルが「L」であり、終端処理が完了している(すなわち、YES)と判定されれば、ステップ305に移行する。   In step 303, it is determined whether or not the termination block 160 is connected (termination processing is completed) according to the logic level of the connection confirmation signal END1, and the termination block 160 is connected and the connection confirmation signal END1 is checked. If it is determined that the logical level is “L” and the termination process is completed (ie, YES), the process proceeds to step 305.

また、ステップ303において、終端ブロック160が接続されていないか、またはコネクタの接触不良によって一部の入出力ユニットが脱落状態となり、接続確認信号END1の論理レベルが「H」となって、終端処理が完了していない(すなわち、NO)と判定されれば、ステップ304に移行する。   In step 303, the termination block 160 is not connected or some of the input / output units are dropped due to poor connector contact, and the logic level of the connection confirmation signal END1 becomes “H”. If it is determined that is not completed (that is, NO), the routine proceeds to step 304.

ステップ304においては、異常状態をデータメモリ116に記憶するとともに、警報表示器119の異常表示LEDを点滅表示して異常報知し、動作終了ステップ210に移行する。動作終了ステップ210において、マイクロプロセッサ111は、他の制御動作を実行した後、図2内の動作開始ステップ201に移行する。   In step 304, the abnormal state is stored in the data memory 116, the abnormality display LED of the alarm indicator 119 is flashed to notify the abnormality, and the operation shifts to step 210. In the operation end step 210, the microprocessor 111 executes another control operation, and then proceeds to the operation start step 201 in FIG.

したがって、ステップ303において、終端ブロック160が未接続(すなわち、NO)と判定された場合には、図2および図3内のステップ201、202a、202b、301、303、304、210、201を循環動作して異常警報が持続し、この状態を脱出するためには、電源スイッチ(図示せず)を開路する必要がある。   Therefore, if it is determined in step 303 that the termination block 160 is not connected (that is, NO), the steps 201, 202a, 202b, 301, 303, 304, 210, 201 in FIG. 2 and FIG. 3 are circulated. In order to escape from this state, the power switch (not shown) needs to be opened.

ステップ305においては、図3内のステップ358aまたはステップ358bによる編成指令を受信しているか否かを判定し、受信していない(すなわち、NO)と判定されれば、ステップ305に復帰して編成指令の待機動作を行い、編成指令を受信した(すなわち、YES)と判定されれば、ステップ400に移行して局番設定処理(図5とともに後述する)を実行した後、ステップ310に移行する。   In step 305, it is determined whether or not the knitting command in step 358a or 358b in FIG. 3 has been received. If it is determined that the knitting command has not been received (that is, NO), the process returns to step 305 to perform knitting. If the command standby operation is performed and it is determined that the composition command has been received (that is, YES), the process proceeds to step 400 and a station number setting process (described later with reference to FIG. 5) is executed.

ステップ310においては、図5内のステップ414bで受信した局番情報および管理番号の情報が、ステップ413a(図5参照)で送信した設定局番やステップ404(図5参照)で読出した管理番号と一致しているか否かにより、局番情報および管理番号の情報が正常であるか否かを判定する。ステップ310において、各情報が相互に一致していて正常である(すなわち、YES)と判定されれば、ステップ311aに移行し、相互に不一致であって正常でない(すなわち、NO)と判定されれば、ステップ304に移行する。   In step 310, the station number information and the management number information received in step 414b in FIG. 5 are the same as the set station number transmitted in step 413a (see FIG. 5) and the management number read in step 404 (see FIG. 5). Whether or not the station number information and the management number information are normal is determined depending on whether or not it is correct. If it is determined in step 310 that the pieces of information match each other and are normal (ie, YES), the process proceeds to step 311a, where it is determined that the pieces of information do not match each other and are not normal (ie, NO). If so, the process proceeds to step 304.

ステップ311aにおいて、マイクロプロセッサ111は、ステップ310による局番設定の対象となった入出力ユニットに対して、各ユニットに関する局番設定が完了したことを個別完了論理情報として送信する。また、ステップ311bにおいて、個別完了論理情報を受信した入出力ユニットは、カード情報の1つである局番設定完了信号FINの論理レベルを「H」にする。   In step 311a, the microprocessor 111 transmits, as individual completion logic information, the completion of the station number setting for each unit to the input / output unit subjected to the station number setting in step 310. In step 311b, the input / output unit that has received the individual completion logic information sets the logic level of the station number setting completion signal FIN, which is one of the card information, to “H”.

ステップ311aに続いて、マイクロプロセッサ111は、図5内のステップ412による最終位置記憶の有無によってすべての局番設定が完了したか否かを判定し(ステップ312)、全体の局番設定が未完了である(すなわち、NO)と判定されれば、ステップ305に復帰して引き続き局番設定処理を実行し、すべての局番設定が完了している(すなわち、YES)と判定されれば、ステップ313に移行する。   Subsequent to step 311a, the microprocessor 111 determines whether or not all the station number settings have been completed depending on whether or not the final position is stored in step 412 in FIG. 5 (step 312). If it is determined that there is (that is, NO), the process returns to step 305 to continue the station number setting process, and if it is determined that all the station number settings are completed (that is, YES), the process proceeds to step 313. To do.

ステップ313においては、設定された局番情報(設定局番)、カード情報および管理番号の情報の対応を、カード編成情報として記憶して、ステップ314に移行する。ステップ314においては、編成完了フラグをセットして、動作終了ステップ210に移行し、所定時間以内に、引き続いて動作開始ステップ201に移行するようになっている。なお、ステップ314でセットされる編成完了フラグは、管理情報格納領域199Aに格納されるので、プログラマブルコントローラ100Aの電源が遮断されても、記憶情報として保存される。   In step 313, the correspondence between the set station number information (set station number), card information and management number information is stored as card organization information, and the process proceeds to step 314. In step 314, the knitting completion flag is set, the process proceeds to operation end step 210, and then the process proceeds to operation start step 201 within a predetermined time. Since the composition completion flag set in step 314 is stored in the management information storage area 199A, it is stored as stored information even when the power of the programmable controller 100A is shut off.

以上の動作を整理して概括説明すると、ステップ302は、編成変更手段として機能し、既に設定されている編成情報を変更する。また、ステップ303は、第1の異常判定手段として機能し、局番設定手段320の実行前に終端処理未完了を判定し、終端ブロック160が未接続であるか、接続されていてもコネクタの接触不良などによって接続確認信号END1が論理レベル「L」にならないときに、終端処理未完了と判定する。   When the above operations are organized and described generally, Step 302 functions as a composition changing means, and changes the composition information that has already been set. Step 303 functions as a first abnormality determination unit, determines that termination processing is not completed before execution of the station number setting unit 320, and contacts the connector even if the termination block 160 is not connected or is connected. When the connection confirmation signal END1 does not become the logic level “L” due to a defect or the like, it is determined that the termination process is not completed.

ステップ304は、設定異常処理手段として機能し、第1または第3の異常判定手段(ステップ303、310)が異常を検出したときに機能して、異常状態をデータメモリ116に書込み記憶するとともに、警報表示器119により異常発生を警報表示する。   Step 304 functions as a setting abnormality processing unit, functions when the first or third abnormality determination unit (steps 303 and 310) detects an abnormality, writes and stores the abnormal state in the data memory 116, and An alarm indicator 119 displays an alarm indicating that an abnormality has occurred.

ステップ310は、第3の異常判定手段として機能し、マイクロプロセッサ111が送信した局番情報や読出済みの管理番号の情報に対して、確認返信された設定局番や管理番号が不一致であるときに、異常状態であることを判定する。   Step 310 functions as a third abnormality determination means, and when the set station number or management number that is confirmed and returned is inconsistent with the station number information transmitted by the microprocessor 111 or the read management number information, It is determined that the state is abnormal.

ステップ313は、カード編成記憶手段として機能し、局番設定の完了時に、管理番号の情報とカード情報と局番情報(設定局番)との対応状態を、管理情報格納領域199Aに書込み記憶する。局番設定手段320(ステップ305〜312)による局番設定動作は、電源投入後の初回動作で実行される。   Step 313 functions as a card organization storage means, and when the station number setting is completed, the correspondence between the management number information, the card information, and the station number information (set station number) is written and stored in the management information storage area 199A. The station number setting operation by the station number setting means 320 (steps 305 to 312) is executed in the initial operation after the power is turned on.

なお、暗証番号が未登録であっても、図4内のステップ354、355a、356からステップ357に移行することによって編成指令を発生することはできるが、一旦、暗証番号が登録されると、ステップ353によって暗証番号の一致確認が行われなければ、編成変更が行えないようになっている。   Even if the password is not registered, a knitting command can be generated by moving from step 354, 355a, 356 in FIG. 4 to step 357, but once the password is registered, If the match of the password is not confirmed in step 353, the composition cannot be changed.

次に、図5のフローチャートを参照しながら、図4内の局番設定処理(ステップ400)について詳細に説明する。図5において、ステップ404は、初期保存手段を構成し、ステップ406は、第2の異常判定手段を構成し、ステップ407は、設定異常処理手段を構成している。また、ステップ413b、414a(破線ブロック参照)は、入出力ユニット120〜150の動作を示している。   Next, the station number setting process (step 400) in FIG. 4 will be described in detail with reference to the flowchart of FIG. In FIG. 5, Step 404 constitutes an initial storage unit, Step 406 constitutes a second abnormality determination unit, and Step 407 constitutes a setting abnormality processing unit. Steps 413b and 414a (refer to the broken line block) indicate the operations of the input / output units 120 to 150.

まず、マイクロプロセッサ111は、図4内のステップ305の判定結果が「YES」の場合に、図5のサブルーチンの動作を開始する(ステップ401)。続いて、マイクロプロセッサ111は、局番設定検索信号CF1の論理レベルを「H」から「L」に切換えて送出し、局番設定を開始する(ステップ402)。   First, when the determination result in step 305 in FIG. 4 is “YES”, the microprocessor 111 starts the operation of the subroutine in FIG. 5 (step 401). Subsequently, the microprocessor 111 switches the logic level of the station number setting search signal CF1 from “H” to “L” and sends it out to start station number setting (step 402).

このとき、局番設定検索信号CF1が論理レベル「L」となったことにより、各入出力ユニット120〜150内の選択切換回路125b、135b、145b、155bのうち、まずは選択切換回路125bの出力が論理レベル「L」となって、入力ユニット120がマイクロプロセッサ111との交信権を得ることになる。   At this time, since the station number setting search signal CF1 becomes the logic level “L”, the output of the selection switching circuit 125b among the selection switching circuits 125b, 135b, 145b and 155b in each of the input / output units 120 to 150 is first. The logic level becomes “L”, and the input unit 120 obtains the right to communicate with the microprocessor 111.

続いて、ステップ358b(図3参照)によって管理番号による管理が必要であることを示す編成指令が送信され、この編成指令が管理情報格納領域199Aに格納されているか否かにより、管理が必要であるか否かを判定する(ステップ403)。   Subsequently, in step 358b (see FIG. 3), a composition command indicating that management by a management number is necessary is transmitted, and management is necessary depending on whether this composition command is stored in the management information storage area 199A. It is determined whether or not there is (step 403).

ステップ403において、管理番号による管理要(すなわち、YES)と判定されれば、マイクロプロセッサ111は、最初に交信権を取得した入力ユニット120が貫通バス信号線BUSに送出した管理番号の情報を読出して記憶し(ステップ404)、続いて、入力ユニット120が貫通バス信号線BUSに送出したカード情報を読出して記憶する(ステップ405)。一方、ステップ403において、管理不要(すなわち、NO)と判定されれば、ステップ404を実行せずに、ステップ405に移行する。   If it is determined at step 403 that the management number is required for management (that is, YES), the microprocessor 111 reads out information on the management number sent to the through bus signal line BUS by the input unit 120 that first acquired the communication right. Then, the card information sent to the through bus signal line BUS by the input unit 120 is read and stored (step 405). On the other hand, if it is determined in step 403 that management is not necessary (that is, NO), step 404 is not executed and the process proceeds to step 405.

続いて、ステップ405によって正常なカード情報が得られたか否かを判定し(ステップ406)、カード情報が正常に受信された(すなわち、YES)と判定されれば、ステップ411に移行し、カード情報が正常に受信されなかった(すなわち、NO)と判定されれば、ステップ407に移行する。   Subsequently, it is determined whether normal card information is obtained in step 405 (step 406). If it is determined that the card information is normally received (that is, YES), the process proceeds to step 411, where the card is If it is determined that the information has not been received normally (ie, NO), the process proceeds to step 407.

なお、ステップ406においては、最終接続位置よりも以前の入出力インタフェース回路122、132、142からカード情報が得られない場合、または、カード情報の中の接続位置信号MDLが論理レベル「L」となる入出力インタフェースが発見されない場合に、異常判定が行われる。   In step 406, if the card information cannot be obtained from the input / output interface circuits 122, 132, 142 prior to the final connection position, or the connection position signal MDL in the card information is at the logic level “L”. If no input / output interface is found, an abnormality determination is performed.

ステップ407において、マイクロプロセッサ111は、異常状態をデータメモリ116に記憶するとともに、警報表示器119の異常表示LEDを点滅表示して異常報知し、動作終了ステップ210に移行する。   In step 407, the microprocessor 111 stores the abnormal state in the data memory 116, blinks the abnormality display LED of the alarm indicator 119, notifies the abnormality, and proceeds to the operation end step 210.

ステップ411において、マイクロプロセッサ111は、ステップ405によって読出されたカード情報が中間カードであるか否かを判定する。具体的には、読出されたカード情報の中で、接続位置信号MDLの論理レベルを判定することにより、対象となっている入出力ユニットが、中間接続位置のものであるか、それ以外(最終接続位置)のものであるかを判定する。   In step 411, the microprocessor 111 determines whether or not the card information read in step 405 is an intermediate card. Specifically, by determining the logic level of the connection position signal MDL in the read card information, the target input / output unit is at the intermediate connection position or other (final) Connection position).

ステップ411において、カード情報が中間位置のものである(すなわち、YES)と判定されれば、ステップ413aに移行し、中間位置でなく最終位置のものである(すなわち、NO)と判定されれば、ステップ412に移行する。ステップ412においては、これから局番設定が行われる入出力ユニットが、最終接続位置のものであることを記憶してから、ステップ413aに移行する。   If it is determined in step 411 that the card information is at the intermediate position (ie, YES), the process proceeds to step 413a, and if it is determined that the card information is not at the intermediate position but at the final position (ie, NO). The process proceeds to step 412. In step 412, after storing that the input / output unit to be set for the station number is at the final connection position, the process proceeds to step 413a.

ステップ413aにおいて、マイクロプロセッサ111は、設定局番の値を、貫通バス信号線BUS内のデータバスに送出する。このとき、ステップ413aに応動して、交信権を取得している入出力ユニットは、貫通バス信号線BUSを介して、設定局番を受信して自身の入出力インタフェース内の局番設定メモリに書込み、設定記憶する(ステップ413b)。また、局番設定を終えた入出力ユニットは、貫通バス信号線BUSを介して、局番情報および管理番号の情報を、マイクロプロセッサ111に対して順次確認返信する(ステップ414a)。   In step 413a, the microprocessor 111 sends the value of the set station number to the data bus in the through bus signal line BUS. At this time, in response to step 413a, the input / output unit that has acquired the communication right receives the set station number via the through bus signal line BUS and writes it to the station number setting memory in its input / output interface. The setting is stored (step 413b). Further, the input / output unit that has finished setting the station number sequentially confirms and returns the station number information and the management number information to the microprocessor 111 via the through bus signal line BUS (step 414a).

ステップ413aに続いて、マイクロプロセッサ111は、ステップ414aによる局番情報および管理番号の返信情報を受信し(ステップ414b)、復帰(リターン)ステップ415を介して、図4内のステップ310に移行する。   Subsequent to step 413a, the microprocessor 111 receives the station number information and the management number reply information from step 414a (step 414b), and proceeds to step 310 in FIG. 4 via a return step 415.

以上の動作を整理して概括説明すると、ステップ404は、初期保存手段として機能し、入出力ユニットに格納されている管理番号を読出して、管理情報格納領域199Aに転送書込みを行う。   The above operations will be summarized and described generally. Step 404 functions as an initial storage unit, reads the management number stored in the input / output unit, and performs transfer writing to the management information storage area 199A.

ステップ406は、第2の異常判定手段として機能し、最終接続位置よりも以前の入出力インタフェース回路122、132、142からカード情報が得られない場合、または最終接続位置の入出力インタフェース回路(出力インタフェース回路152)が所定時間を経過しても発見されない場合に、異常状態であることを判定する。   Step 406 functions as a second abnormality determination means, and when card information cannot be obtained from the input / output interface circuits 122, 132, 142 before the final connection position, or the input / output interface circuit (output at the final connection position). If the interface circuit 152) is not found after a predetermined time, it is determined that the interface circuit 152) is in an abnormal state.

ステップ407は、設定異常処理手段として機能し、第2の異常判定手段(ステップ406)が異常を検出したときに機能して、異常状態をデータメモリ116に書込み記憶するとともに、異常発生を警報表示する。   Step 407 functions as a setting abnormality processing unit, and functions when the second abnormality determination unit (step 406) detects an abnormality, writes and stores the abnormal state in the data memory 116, and displays an abnormality occurrence as an alarm. To do.

次に、前述の図3および図4に関連した図6および図7のフローチャートを参照しながら、この発明の実施の形態1によるプログラム転送操作について説明する。図6は基本ユニット110Aに接続された外部ツール108の動作を示し、図7はマイクロプロセッサ111の動作を示している。   Next, the program transfer operation according to the first embodiment of the present invention will be described with reference to the flowcharts of FIGS. 6 and 7 related to FIGS. 3 and 4 described above. FIG. 6 shows the operation of the external tool 108 connected to the basic unit 110 </ b> A, and FIG. 7 shows the operation of the microprocessor 111.

なお、前述のように、マイクロプロセッサ111と外部ツール108との間では、シリアルインタフェース118を介して交信が行われ、一方が送信して他方が受信すると、受信確認の返信が行われ、送信指令内容が受信側で実行されると、実行確認返信が行われるようになっているが、図6および図7においては、簡略化のため、両者の連携動作については図示を省略する。   As described above, communication is performed between the microprocessor 111 and the external tool 108 via the serial interface 118. When one side transmits and the other side receives, a reception confirmation is returned, and a transmission command is sent. When the contents are executed on the receiving side, an execution confirmation reply is made. However, in FIG. 6 and FIG.

図6において、まず、図3内の中継端子Xに続いて、オペレータの操作により、外部ツール108の設定がプログラム転送モードに設定され(ステップ550)、続いて、暗証番号の有無が確認(検索チェック)される(ステップ551)。なお、ステップ551においては、暗証番号が既に登録されているか否かがチェックされ、たとえ暗証番号が登録されていても、その番号が表示されるわけではない。   In FIG. 6, first, following the relay terminal X in FIG. 3, the setting of the external tool 108 is set to the program transfer mode by the operator's operation (step 550), and then the presence / absence of the password is confirmed (searched) Checked) (step 551). In step 551, it is checked whether or not a password is already registered. Even if a password is registered, the number is not displayed.

続いて、ステップ551の検索チェックに基づき、暗証番号の有無を判定し(ステップ552)、暗証番号が登録されている(すなわち、YES)と判定されればステップ554bに移行し、未登録である(すなわち、NO)と判定されれば、ステップ553に移行する。   Subsequently, based on the search check in step 551, the presence / absence of a personal identification number is determined (step 552). If it is determined that the personal identification number is registered (that is, YES), the process proceeds to step 554b, where it is not registered. If it is determined (that is, NO), the process proceeds to step 553.

ステップ553においては、暗証番号の要否を判定する。具体的には、暗証番号の登録が必要であるか否(不必要である)かの選択ボタンが画面表示され、オペレータが必要側を選択すると、暗証番号が必要(すなわち、YES)と判定されてステップ554aに移行し、不要側を選択すると、暗証番号が不要(すなわち、NO)と判定されてステップ559aに移行する。   In step 553, it is determined whether a password is required. Specifically, a selection button indicating whether or not registration of a password is necessary (unnecessary) is displayed on the screen, and when the operator selects the necessary side, it is determined that the password is necessary (ie, YES). When the process proceeds to step 554a and the unnecessary side is selected, it is determined that the personal identification number is unnecessary (that is, NO), and the process proceeds to step 559a.

ステップ554aにおいては、オペレータの操作により暗証番号が入力されて、入力された暗証番号が管理情報格納領域199Aに転送されることにより、暗証番号の設定送信が行われる。続いて、暗証番号を読出し確認して、暗証番号の設定確認を行い(ステップ555)、ステップ559aに移行する。   In step 554a, the personal identification number is input by the operation of the operator, and the input personal identification number is transferred to the management information storage area 199A, whereby the personal identification number is set and transmitted. Subsequently, the personal identification number is read and confirmed, the personal identification number is confirmed (step 555), and the process proceeds to step 559a.

一方、ステップ554bにおいては、オペレータの操作により暗証番号が入力され、暗証番号の確認送信が行われる。続いて、ステップ554bで入力された暗証番号と既に登録されていた暗証番号とが一致しているか否かを判定し(ステップ556)、一致している(すなわち、YES)と判定されれば、ステップ558に移行し、不一致である(すなわち、NO)と判定されれば、ステップ557に移行する。   On the other hand, in step 554b, a personal identification number is input by the operation of the operator, and confirmation transmission of the personal identification number is performed. Subsequently, it is determined whether or not the password entered in step 554b matches the password that has already been registered (step 556). If it is determined that they match (that is, YES), The process proceeds to step 558, and if it is determined that they do not match (that is, NO), the process proceeds to step 557.

ステップ557においては、暗証番号が不一致であることを示すメッセージが画面表示され、続いて、動作終了ステップ560に移行し、所定時間内に、再度動作開始ステップ350(図3参照)に移行する。ステップ557の異常表示画面に基づいて、オペレータは、暗証番号の再入力を行うか、または、暗証番号が不明であるときには全データの消去処理を行う。   In step 557, a message indicating that the passwords do not match is displayed on the screen, and then the operation proceeds to operation end step 560, and again to operation start step 350 (see FIG. 3) within a predetermined time. Based on the abnormality display screen in step 557, the operator re-enters the password or deletes all data when the password is unknown.

一方、ステップ558においては、暗証番号の変更が必要であるか否かが判定される。具体的には、暗証番号の変更を行うか否かの選択ボタンが画面表示され、オペレータにより変更の選択ボタンが操作されると、暗証番号の変更が必要(すなわち、YES)と判定されてステップ553に移行し、変更不要の選択ボタンが操作されると、暗証番号の変更が不要(すなわち、NO)と判定されてステップ559aに移行する。   On the other hand, in step 558, it is determined whether or not the password needs to be changed. Specifically, a selection button for whether or not to change the security code is displayed on the screen, and when the change selection button is operated by the operator, it is determined that the security code needs to be changed (ie, YES) and the step is performed. When the process proceeds to 553 and the selection button that does not require change is operated, it is determined that the password is not required to be changed (ie, NO), and the process proceeds to step 559a.

ステップ559aにおいては、プログラムの転送指令が行われる。具体的には、オペレータの操作により、外部ツール108で作成したシーケンスプログラムの転送指令ボタンを押すことによって行われる。続いて、シーケンスプログラムが送信され、プログラムの転送を相互に確認して(ステップ559b)、動作終了ステップ560に移行する。   In step 559a, a program transfer command is issued. Specifically, it is performed by pressing a transfer command button of a sequence program created by the external tool 108 by an operator's operation. Subsequently, the sequence program is transmitted, and the transfer of the programs is mutually confirmed (step 559b), and the operation shifts to step 560.

図7の処理ルーチンは、図4内のステップ302に続いて実行される。図7において、まず、マイクロプロセッサ111は、外部ツール108が接続されてプログラムモードとしての通信が行われているか否かにより、プログラムモードを受信しているか否かを判定し(ステップ500)、プログラムモードを受信している(すなわち、YES)と判定されれば、ステップ501に移行する。   The processing routine of FIG. 7 is executed following step 302 in FIG. In FIG. 7, first, the microprocessor 111 determines whether or not the program mode is received based on whether or not the external tool 108 is connected and communication as the program mode is performed (step 500). If it is determined that the mode is received (that is, YES), the process proceeds to step 501.

また、ステップ500において、外部ツール108が接続されていないか、または外部ツール108が接続されていてもモニタモードとしての通信が行われている(すなわち、NO)と判定されれば、直ちに動作終了ステップ210に移行する。   If it is determined in step 500 that the external tool 108 is not connected, or communication as the monitor mode is being performed even if the external tool 108 is connected (that is, NO), the operation is immediately terminated. Control goes to step 210.

ステップ501においては、図6内のステップ559aによるプログラム転送指令を受信したか否かを判定し、転送指令を受信している(すなわち、YES)と判定されれば、ステップ502に移行し、転送指令を受信していない(すなわち、NO)と判定されれば、動作終了ステップ210に移行する。   In step 501, it is determined whether or not the program transfer instruction in step 559a in FIG. 6 has been received. If it is determined that the transfer instruction has been received (that is, YES), the process proceeds to step 502 and the transfer is performed. If it is determined that the command has not been received (that is, NO), the process proceeds to operation end step 210.

ステップ502においては、外部ツール108で作成されたシーケンスプログラムがプログラムメモリ115Aに転送される。続いて、転送が完了したか否かを判定し(ステップ503)、転送が完了していない(すなわち、NO)と判定されれば、ステップ502に復帰して転送処理を継続し、転送が完了した(すなわち、YES)と判定されれば、動作終了ステップ210に移行する。   In step 502, the sequence program created by the external tool 108 is transferred to the program memory 115A. Subsequently, it is determined whether or not the transfer is completed (step 503). If it is determined that the transfer is not completed (that is, NO), the process returns to step 502 to continue the transfer process, and the transfer is completed. If it is determined (that is, YES), the process proceeds to the operation end step 210.

なお、編成完了状態において外部ツール108が接続されず、RUN/STOPスイッチがSTOP状態にある場合には、マイクロプロセッサ111は、図2内のステップ201、202a、202bと、図4内のステップ301、302と、図7内のステップ500、210とを循環動作し、RUN/STOPスイッチがRUN状態になるか、または、外部ツール108が接続されてプログラムモードが選択されるのを、待機している状態となる。   When the external tool 108 is not connected in the knitting completion state and the RUN / STOP switch is in the STOP state, the microprocessor 111 performs steps 201, 202a, and 202b in FIG. 2 and step 301 in FIG. 302 and steps 500 and 210 in FIG. 7 and waits for the RUN / STOP switch to be in the RUN state, or until the external tool 108 is connected and the program mode is selected. It becomes a state.

また、前述の図2において、ステップ213bからなる脱落異常検出手段は、シーケンスプログラムのEND命令を実行するごとに機能するのに対し、ステップ208によるカード編成異常の有無の判定は、RUNモードになった初回の動作で一括して機能しているが、他の形態でカード編成異常の有無を判定してもよい。   In FIG. 2 described above, the dropout abnormality detection means comprising step 213b functions every time the END instruction of the sequence program is executed, whereas the determination of the presence / absence of card organization abnormality in step 208 is in the RUN mode. However, the presence / absence of a card organization abnormality may be determined in another form.

たとえば、シーケンスプログラムのEND命令を実行するごとに、1つの入出力ユニットに関するカード編成異常をチェックし、順次他の入出力ユニットに関するカード編成チェックを実行して、シーケンスプログラムの演算周期に大きな影響を与えないようにしながら、運転中であっても複数の演算サイクルにわたって順次カード編成異常の有無をチェックすることもできる。また、この場合、たとえばプログラマブルコントローラ100Aの演算周期が10msecであれば、不必要に高頻度に編成チェックが行われることになるが、編成異常チェック処理は、図9とともに後述するシーケンスプログラムの中で適正の頻度で実行することもできる。   For example, each time an END instruction of a sequence program is executed, a card organization abnormality relating to one input / output unit is checked, and a card organization check relating to another input / output unit is executed sequentially, which greatly affects the operation cycle of the sequence program While not being given, it is also possible to check the presence or absence of abnormal card organization over a plurality of calculation cycles even during operation. In this case, for example, if the calculation cycle of the programmable controller 100A is 10 msec, the knitting check is performed unnecessarily frequently. The knitting abnormality check process is performed in a sequence program described later with reference to FIG. It can also be executed at an appropriate frequency.

以上のように、この発明の実施の形態1によれば、あらかじめ保持している暗証番号によって管理されている基本ユニット110Aと、基本ユニット110Aに対して自由に着脱接続されて各々の管理番号が付与されている入出力ユニット120〜150と、を備えたプログラマブルコントローラ100Aに対し、初期登録された編成が変化すると、暗証番号を用いた編成変更処理を行わなければ、プログラマブルコントローラ100Aの運転が禁止されるか警告表示が行われる。   As described above, according to the first embodiment of the present invention, the basic unit 110A managed by the pre-held personal identification number is freely attached to and detached from the basic unit 110A, and each management number is assigned. When the initially registered knitting is changed for the programmable controller 100A provided with the input / output units 120 to 150, the operation of the programmable controller 100A is prohibited unless the knitting change process using the personal identification number is performed. A warning is displayed.

したがって、たとえ同一品種の入出力ユニットであっても、エンドユーザによって不用意に入出力ユニットを保守交換することはできず、暗証番号を知っているシステム管理者のみによって保守交換が行われるので、システムの安全性を向上させることができる。また、同一品種であっても仕様の異なる新型の入出力ユニットが、保守対象となったプログラマブルコントローラ100Aに適用可能か否かは、システム管理者によって判断されて使用されるので、市場でのバージョンアップ管理に混乱を招くことがないという効果がある。   Therefore, even if the same type of input / output unit is used, the input / output unit cannot be inadvertently maintained and replaced by the end user, and maintenance and replacement is performed only by the system administrator who knows the password. The safety of the system can be improved. In addition, since the system administrator determines whether or not a new type input / output unit of the same type, which has different specifications, can be applied to the programmable controller 100A subject to maintenance, the version in the market This has the effect of not causing confusion in management.

なお、上記説明では、プログラマブルコントローラ100Aは、基本ユニット110Aと入出力ユニット120〜150がそれぞれ孤立した筐体内に収納され、連結コネクタによって相互に接続されるユニット型の場合を示したが、基本ユニット110Aや各入出力ユニット120〜150を共通の台板上に設置してもよい。この場合、台板は、マザーボードによって相互にバス接続された複数のコネクタを有し、各入出力ユニット120〜150をコネクタに接続するような形態としてもよい。   In the above description, the programmable controller 100A shows a unit type in which the basic unit 110A and the input / output units 120 to 150 are housed in isolated housings and are connected to each other by a connecting connector. 110A and input / output units 120 to 150 may be installed on a common base plate. In this case, the base plate may have a plurality of connectors that are bus-connected to each other by a mother board, and each input / output unit 120 to 150 may be connected to the connector.

また、マザーボードによって入出力ユニット120〜150をバス接続する形式の場合には、マザーボードに設けられたプリント配線によって多数のデータバスやアドレスバスが容易に生成されるので、データバスとアドレスバスとを分離独立させることにより、局番設定手段320(ステップ305〜312)を大幅に簡略化することができる。すなわち、マザーボード上にたとえば16個のコネクタが接続されている場合には、交信対象となるコネクタは、4本のアドレスバスによって簡単に指定することができる。また、入出力ユニット120〜150に関するカード情報も、数本のデータバスによって基本ユニット110Aに送信することができる。   In the case where the input / output units 120 to 150 are bus-connected by the mother board, a number of data buses and address buses are easily generated by the printed wiring provided on the mother board. By making them separate and independent, the station number setting means 320 (steps 305 to 312) can be greatly simplified. That is, for example, when 16 connectors are connected on the mother board, the connector to be communicated can be easily specified by the four address buses. Also, card information related to the input / output units 120 to 150 can be transmitted to the basic unit 110A via several data buses.

また、上記説明では、運転開始前に順次局番設定を行うようにしたユニット型のプログラマブルコントローラ100Aにおいて、局番設定を行いながら順次管理番号の情報を読出すようにしたが、局番設定が完了してから、設定局番を指定しながら管理番号の情報を読出すようにしてもよい。   Further, in the above description, in the unit type programmable controller 100A in which the station number is sequentially set before the operation is started, the management number information is sequentially read while the station number is being set, but the station number setting is completed. Therefore, the management number information may be read while designating the set station number.

また、管理番号による保守交換の制限管理を行うか否かの選択手段である管理忌避手段(ステップ205、206)について述べたが、複数の入出力ユニット120〜150の中の特定の入出力ユニットのみを制限管理し、他の入出力ユニットについては自由に保守交換が可能となるようにしてもよい。   In addition, although the management avoidance means (steps 205 and 206), which is a selection means for whether or not to perform maintenance management restriction management based on the management number, has been described, a specific input / output unit among the plurality of input / output units 120 to 150 is described. However, it is also possible to limit and manage only the other input / output units so that maintenance and replacement can be freely performed.

また、管理番号による保守交換の制限管理機能を有する新型の基本ユニット110Aに対して、管理番号の保存機能を有していない旧型の入出力ユニットを接続可能にするための除外処理を行うこともできる。
また、入出力ユニット120〜150とは別に、基本ユニット110Aを独立した基本筐体内に収納したが、後述の実施の形態2で説明するように、基本筐体の中に基本ユニット110Aと入出力ユニット120〜150とを混合して組み込んでもよい。
In addition, an exclusion process for enabling connection of an old input / output unit that does not have a management number storage function to a new basic unit 110A having a maintenance management restriction management function based on a management number may be performed. it can.
In addition to the input / output units 120 to 150, the basic unit 110A is housed in an independent basic casing. However, as described in the second embodiment described later, the basic unit 110A and the input / output are included in the basic casing. The units 120 to 150 may be mixed and incorporated.

さらに、管理情報格納領域199Aとして、暗証番号の格納領域には、不揮発フラッシュメモリであるプログラムメモリ115Aの一部領域を利用し、局番対応のカード情報や管理番号の情報などの編成情報の格納領域には、データメモリ116のバッテリバックアップ領域を利用したが、管理情報格納領域199Aは、プログラムメモリ115Aまたはデータメモリ116のどちらか一方に集約してもよく、専用の小型EEPROMメモリをプログラムメモリまたはデータメモリの一部領域として適用してもよい。   Further, as a management information storage area 199A, a part of the program memory 115A, which is a non-volatile flash memory, is used as a storage area for a personal identification number, and an area for storing organization information such as card information corresponding to a station number and management number information. In this case, the battery backup area of the data memory 116 is used, but the management information storage area 199A may be aggregated in either the program memory 115A or the data memory 116, and a dedicated small EEPROM memory is used as the program memory or data. You may apply as a partial area | region of memory.

以上のように、この発明の実施の形態1によるプログラマブルコントローラ100Aは、マイクロプロセッサ111と、マイクロプロセッサ111と協働するシステムメモリ114Aと、ユーザによって外部で作成されたシーケンスプログラムが外部ツール108から転送書込みされるプログラムメモリ115Aと、入出力情報および制御情報を記憶するデータメモリ116と、を有する基本ユニット110Aを備えている。   As described above, the programmable controller 100A according to the first embodiment of the present invention transfers the microprocessor 111, the system memory 114A cooperating with the microprocessor 111, and the sequence program created externally by the user from the external tool 108. A basic unit 110A having a program memory 115A to be written and a data memory 116 for storing input / output information and control information is provided.

また、プログラマブルコントローラ100Aは、基本ユニット110Aを搭載した基本筐体または基本台板に共載されるか、もしくは、増設筐体または増設台板に延長接続されて、複数の制御信号線および複数ビットのデータバスを介して直列接続される複数の入出力ユニット120〜150を備え、複数の入出力ユニット120〜150は、外部入力センサまたは外部負荷131に接続された入出力インタフェース回路122〜152を含み、入出力インタフェース回路は、マイクロプロセッサ111に対して選択的に交信接続されるように構成されている。   In addition, the programmable controller 100A is mounted on the basic chassis or basic base plate on which the basic unit 110A is mounted, or is extendedly connected to the additional chassis or expansion base plate, so that a plurality of control signal lines and a plurality of bits are provided. The plurality of input / output units 120 to 150 are connected in series via a data bus, and the plurality of input / output units 120 to 150 include input / output interface circuits 122 to 152 connected to an external input sensor or an external load 131. In addition, the input / output interface circuit is configured to be selectively connected to the microprocessor 111 for communication.

システムメモリ114Aは、管理番号の初期保存手段(ステップ404)と、照合判定手段(ステップ207a)と、編成異常処理手段(ステップ209b)と、編成変更手段(ステップ302)とを構成する制御プログラムを含み、プログラムメモリ115Aおよびデータメモリ116の少なくとも一方には、管理情報格納領域199Aが設けられている。   The system memory 114A stores a control program that constitutes a management number initial storage unit (step 404), a collation determination unit (step 207a), a knitting abnormality processing unit (step 209b), and a knitting change unit (step 302). In addition, at least one of the program memory 115A and the data memory 116 is provided with a management information storage area 199A.

管理情報格納領域199Aには、操作対象者を限定する暗証番号の情報と、入出力ユニット120〜150を特定する管理番号の情報とが格納されている。管理番号は、入出力ユニット120〜150に個別に付与されて、マイクロプロセッサ111によって少なくとも読出しが可能な固体識別番号からなり、固体識別番号は、入出力ユニット120〜150が代替可能な同一品種であっても、複数の入出力ユニット120〜150ごとに異なる番号からなる。   In the management information storage area 199A, information on a personal identification number that limits the person to be operated and information on a management number that identifies the input / output units 120 to 150 are stored. The management number is assigned to each of the input / output units 120 to 150 and is made up of a solid identification number that can be read at least by the microprocessor 111. The solid identification number is the same type that the input / output units 120 to 150 can replace. Even if it exists, it consists of a different number for each of the plurality of input / output units 120-150.

初期保存手段(ステップ404)は、入出力ユニット120〜150に格納されている管理番号と、管理情報格納領域199Aに格納されている入出力ユニット120〜150の管理番号とを一致させておく手段からなる。
照合判定手段(ステップ207a)は、少なくともプログラマブルコントローラ100Aの運転開始に際して、入出力ユニット120〜150に格納されている管理番号と、管理情報格納領域199Aに格納されている入出力ユニット120〜150の管理番号とが一致しているか否かを判定する手段からなる。
The initial storage means (step 404) is a means for matching the management number stored in the input / output units 120 to 150 with the management number of the input / output units 120 to 150 stored in the management information storage area 199A. Consists of.
The collation determining means (step 207a) includes at least the management number stored in the input / output units 120 to 150 and the input / output units 120 to 150 stored in the management information storage area 199A at the start of operation of the programmable controller 100A. It comprises means for determining whether or not the management number matches.

編成異常処理手段(ステップ209b)は、照合判定手段(ステップ207a)による判定結果が不一致を示す場合に機能して、プログラマブルコントローラ100Aの作動状態を停止または現状保持するか、異常状態であることを管理情報格納領域199Aに書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなる。
編成変更手段(ステップ302)は、管理情報格納領域199Aに対してあらかじめ書込み保存されている暗証番号と同じ暗証番号が、外部ツール108から入力されたことに応答して機能し、初期保存手段(ステップ404)によって既に記憶されている管理番号をクリアして、新たに初期保存処理を実行する手段からなる。
The knitting abnormality processing means (step 209b) functions when the determination result by the collation determination means (step 207a) indicates a mismatch, and stops the operation state of the programmable controller 100A or maintains the current state, or indicates that it is in an abnormal state. It consists of a means for writing and storing in the management information storage area 199A, or at least displaying an alarm when an abnormality has occurred.
The composition change means (step 302) functions in response to the input of the same password as the password previously written and saved in the management information storage area 199A from the external tool 108, and the initial saving means (step 302). It comprises means for clearing the management number already stored in step 404) and newly executing an initial storage process.

管理番号は、入出力ユニット120〜150で使用される専用集積回路素子に内蔵されて、少なくとも読出しが可能な不揮発メモリに格納された部品のシリアル番号からなるか、または、入出力ユニット120〜150の製造工程において、入出力ユニット120〜150を構成するプリント基板上に搭載されて、少なくとも読出しが可能な不揮発メモリに格納された入出力ユニット120〜150のシリアル番号からなる。   The management number is a serial number of a component stored in at least a readable non-volatile memory built in a dedicated integrated circuit element used in the input / output units 120 to 150, or the input / output units 120 to 150. In the manufacturing process, the serial numbers of the input / output units 120 to 150 are mounted on a printed circuit board constituting the input / output units 120 to 150 and stored in a readable non-volatile memory.

管理情報格納領域199Aとなるプログラムメモリ115Aまたはデータメモリ116は、不揮発メモリからなるか、または、少なくともプログラマブルコントローラ100Aの電源が遮断されてもバッテリ117によって記憶状態が保存されるRAMメモリからなる。また、初期保存手段(ステップ404)および編成変更手段(ステップ302)は、入出力ユニット120〜150に格納されているシリアル番号を管理情報格納領域199Aに転送保存する手段からなる。   The program memory 115A or the data memory 116 serving as the management information storage area 199A is a non-volatile memory, or at least a RAM memory whose storage state is preserved by the battery 117 even when the power of the programmable controller 100A is cut off. The initial storage means (step 404) and the composition change means (step 302) comprise means for transferring and storing the serial numbers stored in the input / output units 120 to 150 to the management information storage area 199A.

すなわち、入出力ユニット120〜150には、入出力ユニット120〜150の製造メーカによってあらかじめ管理番号が登録されていて、各々の管理番号を基本ユニットに読出して初期編成を行うようになっている。したがって、システム管理者は、管理番号を作成または管理する必要がなく、誤って重複番号が使用されることがないという効果がある。   That is, the management numbers are registered in advance in the input / output units 120 to 150 by the manufacturers of the input / output units 120 to 150, and each management number is read to the basic unit to perform initial organization. Therefore, the system administrator does not need to create or manage the management number, and there is an effect that the duplicate number is not used by mistake.

また、編成変更手段(ステップ302)で使用される暗証番号は、シーケンスプログラムを保護するための暗証番号と同一番号からなり、外部ツール108から管理情報格納領域199Aに書込まれて、一旦記憶されると、同一番号の暗証番号が外部ツール108から入力されない限り、プログラムメモリ115Aに格納されたシーケンスプログラムの書換えおよび読出しの少なくとも一方が禁止されるようになっている。したがって、管理番号の編成変更を行うための暗証番号は、シーケンスプログラムを保護するための暗証番号と一致しているので、システム管理者は、2種類の暗証番号を管理する必要がなく、取り扱いが混乱しないという効果がある。   The personal identification number used in the composition change means (step 302) is the same as the personal identification number for protecting the sequence program, and is written in the management information storage area 199A from the external tool 108 and temporarily stored. Then, unless the same personal identification number is input from the external tool 108, at least one of rewriting and reading of the sequence program stored in the program memory 115A is prohibited. Therefore, the password for changing the organization of the management number is the same as the password for protecting the sequence program. Therefore, the system administrator does not need to manage the two types of passwords and handles them. It has the effect of not being confused.

システムメモリ114Aは、複数の入出力ユニット120〜150のすべてに対して一括適用される第1および第2の管理忌避手段(ステップ205、206)の少なくとも一方を構成する制御プログラムをさらに含み、複数の入出力ユニット120〜150は、管理番号の情報に加えて、機種コード番号の情報をさらに含む。   The system memory 114A further includes a control program that constitutes at least one of first and second management avoidance means (steps 205 and 206) that are collectively applied to all of the plurality of input / output units 120 to 150. The input / output units 120 to 150 further include model code number information in addition to management number information.

第1の管理忌避手段(ステップ205)は、管理情報格納領域199Aに対して暗証番号が書込み保存されていないときには、照合判定手段(ステップ207a)および編成異常処理手段(ステップ209b)による管理番号の照合および異常処理の実行を禁止し、入出力ユニットが固体識別用の管理番号を有しているにも関わらず同一品種のものであれば、入出力ユニットの保守交換を自由に可能にする手段からなる。   The first management avoidance means (step 205), when the password is not written and stored in the management information storage area 199A, the management number of the management number by the collation judgment means (step 207a) and the composition abnormality processing means (step 209b). Means that prohibits the execution of verification and error handling, and allows the input / output unit to be freely maintained and replaced if the input / output unit is of the same product type even though it has a management number for identifying the individual. Consists of.

第2の管理忌避手段(ステップ206)は、管理情報格納領域199Aに対して暗証番号が書込み保存されていても、管理情報格納領域199Aに対して管理忌避指令が書込み保存されている場合には、照合判定手段(ステップ207a)および編成異常処理手段(ステップ209b)による管理番号の照合および異常処理の実行を禁止し、入出力ユニットが固体識別用の管理番号を有しているにも関わらず同一品種のものであれば、入出力ユニットの保守交換を自由に可能にする手段からなる。   The second management avoidance means (step 206) is configured to write and save the management avoidance command in the management information storage area 199A even if the password is written and saved in the management information storage area 199A. The collation determining means (step 207a) and the knitting abnormality processing means (step 209b) are prohibited from collating the management number and executing the abnormality processing, and the input / output unit has a management number for identifying the individual. If the products are of the same product type, they comprise means for freely allowing maintenance and replacement of the input / output unit.

このように、第1、第2の管理忌避手段(ステップ205、206)によって、管理番号による入出力ユニット120〜150の適用管理を免除することができるようになっているので、入出力ユニット120〜150は、固体識別のための管理番号を有しているにも関わらず、システム管理者の判断によって同一品種のものであれば、自由に保守交換することができ、入出力ユニット120〜150の標準化を実現することができる。また、システム管理者によって管理番号を作成または登録する場合であっても、管理忌避状態にしておけば、入出力ユニット120〜150に対する管理番号の設定が不要となり、操作を単純化することができる。   In this way, the first and second management avoidance means (steps 205 and 206) can exempt the application management of the input / output units 120 to 150 by the management number. ˜150 can be freely maintained and replaced as long as they are of the same type at the discretion of the system manager, despite having a management number for identifying the individual, and the input / output units 120 to 150 Can be standardized. Even if the management number is created or registered by the system administrator, setting the management number to the input / output units 120 to 150 is not necessary if the management avoidance state is set, and the operation can be simplified. .

また、システムメモリ114Aは、複数の入出力ユニット120〜150の各々に対して個別適用される第1または第2の適用除外手段の少なくとも一方を構成する制御プログラムをさらに含み、複数の入出力ユニット120〜150は、機種コード番号の情報を含む。   Further, the system memory 114A further includes a control program that constitutes at least one of the first or second application excluding means individually applied to each of the plurality of input / output units 120 to 150, and includes a plurality of input / output units. 120 to 150 include model code number information.

第1の適用除外手段は、入出力ユニットが管理番号の情報を有していない旧式の入出力ユニットである場合に適用されて、照合判定手段(ステップ207a)において管理番号の照合を免除するための除外情報を管理情報格納領域199Aに格納保存する手段からなる。また、第2の適用除外手段は、入出力ユニットが管理番号の情報を有しているにも関わらず、照合判定手段において管理番号の照合を免除するための除外情報を管理情報格納領域199Aに格納保存する手段からなる。これにより、第1、第2の適用除外手段によって照合判定を免除された特定の入出力ユニットは、同一品種のものであれば保守交換が自由に可能となる。   The first application excluding means is applied when the input / output unit is an old-type input / output unit having no management number information, and exempts the management number verification in the verification determination means (step 207a). Is stored in the management information storage area 199A. In addition, the second application excluding means includes, in the management information storage area 199A, exemption information for exempting the collation of the management number in the collation determining means even though the input / output unit has the management number information. It consists of means for storing and saving. Thereby, if the specific input / output unit exempted from the collation determination by the first and second exemption means is of the same type, maintenance and replacement can be freely performed.

このように、第1、第2の適用除外手段によって、管理番号による入出力ユニットの適用管理を、特定の入出力ユニットに限って免除することができるので、管理番号の情報を有していない旧式の入出力ユニットの場合には、入出力ユニットの交換を自由に行えることになるが、使用すること自体は可能となる効果がある。また、管理番号の情報を有する入出力ユニット120〜150であっても、システム管理者が認めた例外的な入出力ユニットに限って、保守交換を自由に行うことができる効果がある。   As described above, the application management of the input / output unit by the management number can be exempted only for the specific input / output unit by the first and second application excluding means, and thus the management number information is not included. In the case of an old-style input / output unit, the input / output unit can be freely replaced, but there is an effect that it can be used. Further, even with the input / output units 120 to 150 having the management number information, there is an effect that maintenance and replacement can be freely performed only in exceptional input / output units approved by the system administrator.

また、基本ユニット110Aは、基本筐体に格納され、複数の入出力ユニット120〜150は、基本筐体または増設筐体に格納されて、ユニット型のプログラマブルコントローラ100Aを構成している。システムメモリ114Aは、複数の入出力ユニット120〜150に対する識別番号を設定するための局番設定手段320を構成する制御プログラムをさらに含み、入出力インタフェース回路122〜152は、局番情報と、カード情報と、管理番号の情報とが格納される個別メモリを含む。   The basic unit 110A is stored in a basic casing, and the plurality of input / output units 120 to 150 are stored in a basic casing or an additional casing to constitute a unit-type programmable controller 100A. The system memory 114A further includes a control program that configures station number setting means 320 for setting identification numbers for the plurality of input / output units 120 to 150. The input / output interface circuits 122 to 152 include station number information, card information, And an individual memory for storing management number information.

カード情報は、少なくとも、入出力インタフェース回路122〜152が入力インタフェース回路であるか、または出力インタフェース回路であるかを識別する品種別論理情報と、入出力インタフェース回路122〜152の接続位置が最終接続位置であるか、または最終接続位置以外の中間接続位置であるかを識別する接続位置信号(接続位置論理情報)MDLと、を含む。   In the card information, at least the type-specific logic information for identifying whether the input / output interface circuits 122 to 152 are input interface circuits or output interface circuits, and the connection positions of the input / output interface circuits 122 to 152 are finally connected. A connection position signal (connection position logic information) MDL for identifying whether the position is an intermediate connection position other than the final connection position.

複数の制御信号線および複数ビットのデータバスの末端位置には、終端処理回路162、接続位置確認回路LSTおよび終端処理確認回路ENDを含む終端ブロック160が接続されている。終端処理回路162は、終端ブロック160内の開放信号線端末に接続されて、整合回路素子となるインピーダンス素子をグランド回路GNDまたは定電圧電源線Vccに対して接続するプルダウン回路またはプルアップ回路からなる。   A termination block 160 including a termination processing circuit 162, a connection position confirmation circuit LST, and a termination processing confirmation circuit END is connected to the terminal positions of the plurality of control signal lines and the plurality of bits of the data bus. The termination processing circuit 162 is connected to an open signal line terminal in the termination block 160, and includes a pull-down circuit or a pull-up circuit that connects an impedance element serving as a matching circuit element to the ground circuit GND or the constant voltage power supply line Vcc. .

接続位置確認回路LSTは、入出力インタフェース回路に付加されて接続位置信号(接続位置論理情報)MDLを得るためのプルアップ抵抗123〜153(または、プルダウン抵抗)を、終端ブロック160内でグランド回路GNDまたは定電圧電源線Vccに接続して論理反転させる回路からなる。
終端処理確認回路ENDは、終端ブロック160が接続されていることを、入出力ユニット120〜150を貫通して、接続確認信号END1としてマイクロプロセッサ111に伝達するためのロウレベルまたはハイレベルの論理発生回路からなる。
The connection position confirmation circuit LST includes pull-up resistors 123 to 153 (or pull-down resistors) that are added to the input / output interface circuit to obtain a connection position signal (connection position logic information) MDL. It consists of a circuit that is connected to GND or constant voltage power supply line Vcc to invert the logic.
The termination processing confirmation circuit END is a low-level or high-level logic generation circuit for transmitting that the termination block 160 is connected to the microprocessor 111 as the connection confirmation signal END1 through the input / output units 120 to 150. Consists of.

局番設定手段320は、システムメモリ114Aに格納された制御プログラムに基づき、マイクロプロセッサ111の運転開始時にマイクロプロセッサ111よって実行されて、終端ブロック160の接続が確認された状態において、初段の入出力インタフェース回路(入力インタフェース回路122)から接続位置信号(接続位置論理情報)MDLによって確認された終端接続位置の入出力インタフェース回路(出力インタフェース回路152)に対して順次に異なる局番を割付設定する手段からなり、局番設定手段320による局番設定の順次処理の実行過程中または完了後に、初期保存手段(ステップ404)による初期保存処理が実行され、各局番の入出力ユニット120〜150に対するカード情報および管理番号の情報からなる一連情報が、管理情報格納領域199Aに書込み保存される。   The station number setting means 320 is executed by the microprocessor 111 at the start of operation of the microprocessor 111 based on the control program stored in the system memory 114A, and the connection of the terminal block 160 is confirmed. It comprises means for sequentially assigning and setting different station numbers from the circuit (input interface circuit 122) to the input / output interface circuit (output interface circuit 152) at the terminal connection position confirmed by the connection position signal (connection position logic information) MDL. During or after completion of the sequential processing of station number setting by the station number setting means 320, initial storage processing by the initial storage means (step 404) is executed, and the card information and management number of the input / output units 120 to 150 of each station number are Information Communicating information is written and saved in the management information storage area 199A.

このように、入出力ユニット120〜150と基本ユニット110Aとの交信に必要となる入出力ユニットの局番を、局番設定手段320によってあらかじめ設定しておく必要がある入出力ユニットを使用した場合に、接続確認信号END1によって終端ブロック160の接続が確認されるとともに、接続位置信号(接続位置論理情報)MDLによって増設ユニットの接続位置が中間位置であるか最終接続位置であるかを認識して、局番設定が行われ、局番設定の過程または局番設定後に管理番号の初期保存が行われるので、終端ブロック160が未接続であって信号が不安定な状態で局番設定が行われることがなく、局番や管理番号の誤設定を防止することができる。   As described above, when an input / output unit that needs to be set in advance by the station number setting means 320 is used for the station number of the input / output unit necessary for communication between the input / output units 120 to 150 and the basic unit 110A, The connection confirmation signal END1 confirms the connection of the termination block 160, and the connection position signal (connection position logic information) MDL recognizes whether the connection position of the extension unit is the intermediate position or the final connection position. Since the setting is performed and the initial storage of the management number is performed after the station number setting process or after the station number setting, the station number setting is not performed when the terminal block 160 is not connected and the signal is unstable. It is possible to prevent erroneous setting of the management number.

なお、カード情報の中の品種別論理情報は、プリント基板に設けられた配線パターンによって決定される固定情報であるのに対し、接続位置論理情報(接続位置信号MDL)は、入出力インタフェース回路122〜152の接続位置によって変化する可変情報であるが、可変情報からなる接続位置信号MDLも、終端ブロック160内の配線パターンである終端処理確認回路ENDによって決定される論理情報となっている。したがって、複雑な制御動作に依存せず、既存のデータバスを利用して、マイクロプロセッサ111に接続位置情報を伝達することができる。   The type-specific logic information in the card information is fixed information determined by the wiring pattern provided on the printed circuit board, whereas the connection position logic information (connection position signal MDL) is the input / output interface circuit 122. The connection position signal MDL consisting of variable information is also logical information determined by the termination processing confirmation circuit END which is a wiring pattern in the termination block 160. Therefore, connection position information can be transmitted to the microprocessor 111 using an existing data bus without depending on a complicated control operation.

また、入出力インタフェース回路122〜152は、マイクロプロセッサ111が発生する局番設定検索信号CF1を受信して、局番設定の完了に応答して順次後段に接続された入出力インタフェース回路122〜152に局番設定検索信号CF1を伝達するための選択切換回路125a、125b〜155a、155bをさらに含む。また、カード情報は、局番設定が完了しているか否かの設定状態を識別して、選択切換回路125a、125b〜155a、155bを切り換える局番設定完了信号(個別完了論理情報)FINをさらに含む。   Also, the input / output interface circuits 122 to 152 receive the station number setting search signal CF1 generated by the microprocessor 111, and in response to the completion of the station number setting, the input / output interface circuits 122 to 152 are sequentially connected to the input / output interface circuits 122 to 152. It further includes selection switching circuits 125a, 125b to 155a, 155b for transmitting the setting search signal CF1. The card information further includes a station number setting completion signal (individual completion logic information) FIN for identifying a setting state as to whether or not the station number setting is completed and switching the selection switching circuits 125a, 125b to 155a, 155b.

局番設定手段320は、マイクロプロセッサ111により実行される手段であって、局番設定検索信号CF1を受信した入出力インタフェース回路122〜152のカード情報を、データバスを介して読出して、入出力インタフェース回路122〜152に対応した局番情報を、データバスを介して個別メモリに書込む手段からなる。   The station number setting means 320 is a means executed by the microprocessor 111, and reads the card information of the input / output interface circuits 122 to 152 that have received the station number setting search signal CF1 via the data bus, and outputs the input / output interface circuit. It comprises means for writing station number information corresponding to 122 to 152 into the individual memory via the data bus.

マイクロプロセッサ111は、局番設定が完了した後に、データバスを介して局番指定を行い、指定された局番の入出力インタフェース回路122〜152との間で、データバスを介して入出力情報を交信するように構成されている。   After the station number setting is completed, the microprocessor 111 designates a station number via the data bus, and communicates input / output information via the data bus with the input / output interface circuits 122 to 152 of the designated station number. It is configured as follows.

このように、局番設定完了信号(個別完了論理情報)FINに応動する選択切換回路125a、125b〜155a、155bによって、局番設定を必要とする入出力ユニット120〜150が順次選択されるので、複数の入出力インタフェース回路122〜152に対して、選択切換回路125a、125b〜155a、155bにより漏れなく確実に局番設定を行うことができる。また、接続位置信号(接続位置論理情報)MDLによって検出される最終接続位置の入出力インタフェース回路(出力インタフェース回路152)まで局番設定を行えばよいという効果がある。   As described above, the selection switching circuits 125a, 125b to 155a and 155b that respond to the station number setting completion signal (individual completion logic information) FIN sequentially select the input / output units 120 to 150 that require station number setting. The station number can be reliably set to the input / output interface circuits 122 to 152 by the selection switching circuits 125a, 125b to 155a, and 155b. Further, there is an effect that the station number may be set up to the input / output interface circuit (output interface circuit 152) of the final connection position detected by the connection position signal (connection position logic information) MDL.

また、システムメモリ114Aは、第1の異常判定手段(ステップ303)と、第2および第3の異常判定手段(ステップ406、310)との少なくとも一方の異常判定手段と、設定異常処理手段(ステップ304、407)とを有する運転前の異常判定および処理手段を構成する制御プログラムをさらに含む。   In addition, the system memory 114A includes at least one abnormality determination unit including a first abnormality determination unit (step 303), a second abnormality determination unit (steps 406 and 310), and a setting abnormality processing unit (step). 304, 407) and a control program constituting an abnormality determination and processing means before operation.

第1の異常判定手段(ステップ303)は、終端処理確認回路ENDによる接続確認信号END1の論理レベルが終端ブロック160の未接続状態(論理レベル「H」)を示す場合に、異常状態であることを判定する手段からなる。   The first abnormality determination means (step 303) is in an abnormal state when the logical level of the connection confirmation signal END1 by the termination processing confirmation circuit END indicates the unconnected state (logical level “H”) of the termination block 160. It consists of a means to determine.

第2の異常判定手段(ステップ406)は、最終接続位置よりも以前の入出力インタフェース回路122〜142からカード情報が得られない場合、または、最終接続位置の入出力インタフェース回路(出力インタフェース回路152)が所定時間を経過しても発見されない場合に、異常状態であることを判定する手段からなる。   The second abnormality determination means (step 406) determines that the card information cannot be obtained from the input / output interface circuits 122 to 142 before the final connection position, or the input / output interface circuit (output interface circuit 152) at the final connection position. ) Comprises means for determining an abnormal state when it is not found after a lapse of a predetermined time.

第3の異常判定手段(ステップ310)は、送信した局番情報に対して確認返信された設定局番が不一致である場合と、管理番号の情報が得られない場合とにおいて、異常状態であることを判定する手段からなる。   The third abnormality determination means (step 310) indicates that there is an abnormal state when the set station number confirmed and returned for the transmitted station number information does not match or when the management number information cannot be obtained. It consists of a means for judging.

設定異常処理手段(ステップ304、407)は、第1、第2または第3の異常判定手段(ステップ303、406、310)が異常判定した場合に機能して、異常状態を管理情報格納領域199Aに書込み記憶するか、または、少なくとも異常発生を警報表示する手段からなる。   The setting abnormality processing means (steps 304 and 407) functions when the first, second or third abnormality determination means (steps 303, 406 and 310) makes an abnormality determination, and stores the abnormal state in the management information storage area 199A. Or a means for displaying an alarm at least when an abnormality has occurred.

このように、第1、第2または第3の異常判定手段(ステップ303、406、310)により、終端ブロックの脱落異常、カード情報の受信異常、局番情報や管理番号の情報の読出確認異常に応動して設定異常処理が実行されるので、プログラマブルコントローラ100Aの運転開始前に正常な設定が行われたか否かを確認することによって、安全性を向上させることができる。また、異常発生状態を管理情報格納領域199Aに書込み保存しておくことにより、異常発生の要因を識別して、保守点検が容易になる効果がある。   As described above, the first, second, or third abnormality determination means (steps 303, 406, and 310) can prevent the terminal block from dropping, the card information from being received abnormally, and the station number information and the management number information from being read out abnormally. Since the setting abnormality process is executed in response, safety can be improved by confirming whether normal setting has been performed before the programmable controller 100A starts operating. Further, writing and saving the abnormality occurrence state in the management information storage area 199A has an effect of identifying the cause of the abnormality and facilitating maintenance and inspection.

また、システムメモリ114Aは、カード編成記憶手段(ステップ313)、編成異常検出手段(ステップ208)、脱落異常検出手段(ステップ213a、213b)および編成異常処理手段(ステップ209b)を有する運転中の異常判定および処理手段を構成する制御プログラムをさらに含む。   In addition, the system memory 114A has a card knitting storage unit (step 313), a knitting abnormality detecting unit (step 208), a dropout abnormality detecting unit (steps 213a and 213b), and a knitting abnormality processing unit (step 209b). It further includes a control program constituting the determination and processing means.

カード編成記憶手段(ステップ313)は、局番設定の完了時に、カード情報と管理番号の情報と設定局番との対応状態を、管理情報格納領域199Aに書込み記憶する手段からなる。
脱落異常検出手段(ステップ213a、213b)は、終端処理確認回路ENDによる接続確認信号END1の論理レベルに基づき、少なくとも運転開始時において終端ブロック160が未接続状態となった場合に、異常状態であることを判定する手段からなる。
編成異常検出手段(ステップ208)は、局番指定して読出された入出力インタフェース回路122〜152から得られるカード情報または管理番号の情報が、カード編成記憶手段(ステップ313)によって記憶されている情報と一致しているか否かを少なくとも運転開始時に判定する手段からなる。
編成異常処理手段(ステップ209b)は、編成異常検出手段(ステップ208)が編成異常を検出した場合、または、脱落異常検出手段(ステップ213a、213b)が終端ブロック160の脱落異常を検出した場合に機能して、プログラマブルコントローラ100Aの作動状態を停止または現状保持するか、異常状態を管理情報格納領域199Aに書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなる。
The card organization storage means (step 313) comprises means for writing and storing the correspondence state of the card information, the management number information and the set station number in the management information storage area 199A when the station number setting is completed.
The dropout abnormality detection means (steps 213a and 213b) is in an abnormal state when the termination block 160 is in an unconnected state at least at the start of operation based on the logic level of the connection confirmation signal END1 by the termination processing confirmation circuit END. It consists of a means to judge.
The knitting abnormality detecting means (step 208) is information in which card information or management number information obtained from the input / output interface circuits 122 to 152 read by specifying the station number is stored in the card knitting storage means (step 313). Is at least a means for determining at the start of operation.
The knitting abnormality processing means (step 209b) is detected when the knitting abnormality detecting means (step 208) detects a knitting abnormality, or when the dropping abnormality detecting means (steps 213a and 213b) detects a dropping abnormality of the terminal block 160. It functions to stop the operating state of the programmable controller 100A or keep the current state, write and store the abnormal state in the management information storage area 199A, or at least display a warning of the occurrence of the abnormality.

このように、運転開始時および運転中に異常状態を検出して、運転停止または異常表示を行うので、たとえば入出力ユニット120〜150が不用意に保守交換された場合、または、運転中に終端ブロック160の脱落異常が発生した場合に対し、制御の安全性を向上させることができる。   In this way, an abnormal state is detected at the start of operation and during operation, and the operation is stopped or displayed, so that, for example, when the input / output units 120 to 150 are inadvertently replaced, or terminated during operation. The control safety can be improved in the case where the block 160 is not dropped.

実施の形態2.
次に、図8〜図12を参照しながら、この発明の実施の形態2について説明する。図8はこの発明の実施の形態2に係るプログラマブルコントローラ100Bの全体構成を示すブロック図である。図8のプログラマブルコントローラ100Bは、基本筐体内に既に局番設定が行われている入出力ユニット170a、170b、180を有する。
Embodiment 2. FIG.
Next, a second embodiment of the present invention will be described with reference to FIGS. FIG. 8 is a block diagram showing an overall configuration of a programmable controller 100B according to Embodiment 2 of the present invention. The programmable controller 100B of FIG. 8 includes input / output units 170a, 170b, and 180 in which station numbers are already set in the basic housing.

この場合、管理番号があらかじめ入出力ユニット170a、170b、180に格納されておらず、システム管理者によって独自に設定される点が、前述(図1参照)の実施の形態1とは異なる。以下、前述の実施の形態1との相違点に注目して説明する。なお、図8において、前述と同一または相当部分に対しては、同一符号が付されるか、または同一符号の後に「B」が付されている。   In this case, the management number is not stored in advance in the input / output units 170a, 170b, and 180, and is set independently by the system administrator, which is different from the first embodiment described above (see FIG. 1). The following description will be made with a focus on differences from the first embodiment. In FIG. 8, the same or corresponding parts as those described above are denoted by the same reference numerals, or “B” is appended after the same reference numerals.

図8において、プログラマブルコントローラ100Bは、基本筐体110に収納された基本ユニット110Bおよび入出力ユニット170a、170bと、増設筐体(図示せず)に収納された入出力ユニット180および終端ブロック160と、を備えている。基本ユニット110Bの内部には、マイクロプロセッサ111、バスインタフェース回路112、システムメモリ114B、プログラムメモリ115B、データメモリ116、シリアルインタフェース118が設けられており、これらは互いにバス接続されている。   In FIG. 8, the programmable controller 100B includes a basic unit 110B and input / output units 170a and 170b housed in a basic housing 110, an input / output unit 180 and terminal block 160 housed in an additional housing (not shown). It is equipped with. Inside the basic unit 110B, a microprocessor 111, a bus interface circuit 112, a system memory 114B, a program memory 115B, a data memory 116, and a serial interface 118 are provided, and these are bus-connected to each other.

データメモリ116の一部領域は、バッテリ117でバックアップされており、プログラムメモリ115Bの一部領域とともに、管理情報格納領域199Bを構成している。制御電源ユニット113および警報表示器119は、前述と同様に構成されている。基本筐体110の内部には、基本ユニット110Bに加えて、プリント基板で構成された入出力ユニット170a、170bが内蔵されている。入出力ユニット170a内の入力ユニットは、たとえば図1内の入力ユニット120に相当し、入出力ユニット170b内の出力ユニットは、たとえば図1内の出力ユニット130に相当する。入出力ユニット170a、170bは、独立した筐体が設けられることなく、基本筐体110内に組み込まれている。   A partial area of the data memory 116 is backed up by the battery 117, and forms a management information storage area 199B together with a partial area of the program memory 115B. The control power supply unit 113 and the alarm indicator 119 are configured in the same manner as described above. Inside the basic casing 110, in addition to the basic unit 110B, input / output units 170a and 170b made of a printed circuit board are incorporated. The input unit in the input / output unit 170a corresponds to, for example, the input unit 120 in FIG. 1, and the output unit in the input / output unit 170b corresponds to, for example, the output unit 130 in FIG. The input / output units 170a and 170b are incorporated in the basic casing 110 without being provided with independent casings.

同様に、入出力ユニット180は、図1内の入出力ユニット120、130、140、150のいずれかのユニットを代表している。入出力要素101aは、たとえば図1内の開閉信号121に相当し、入出力要素101bは、たとえば図1内の外部負荷131に相当し、入出力要素101cは、適用された増設筐体ユニット180の品種に応じて、図1内の開閉信号121、外部負荷131、アナログ信号141またはアナログ負荷151に相当している。   Similarly, the input / output unit 180 represents one of the input / output units 120, 130, 140, and 150 in FIG. The input / output element 101a corresponds to, for example, the open / close signal 121 in FIG. 1, the input / output element 101b corresponds to, for example, the external load 131 in FIG. 1, and the input / output element 101c corresponds to the applied additional enclosure unit 180. 1 corresponds to the open / close signal 121, the external load 131, the analog signal 141, or the analog load 151 in FIG.

各入出力ユニット内の入出力インタフェース回路172a、172b、182は、カード情報格納メモリと、局番設定メモリと、管理番号設定メモリと、入出力信号回路、多チャンネルAD変換器または多チャンネルDA変換器と、を有する。選択切換回路175a、175b、185は、図1内の選択切換回路125a、125bと同様に、一対の論理和素子によって構成されている。   Input / output interface circuits 172a, 172b, and 182 in each input / output unit include a card information storage memory, a station number setting memory, a management number setting memory, an input / output signal circuit, a multi-channel AD converter, or a multi-channel DA converter. And having. The selection switching circuits 175a, 175b, and 185 are configured by a pair of OR elements, similarly to the selection switching circuits 125a and 125b in FIG.

ただし、後述するように、基本筐体110内の入出力インタフェース回路172a、172bに関しては、あらかじめ固定の局番が割付設定されている場合には、基本筐体110内の最終位置に配置されている選択切換回路175b以外の選択切換回路175aは不要であり、マイクロプロセッサ111が発生する局番設定検索信号CF1は、最終位置の入出力インタフェース回路172bに直接供給されるようになっている。   However, as will be described later, the input / output interface circuits 172a and 172b in the basic casing 110 are arranged at the final positions in the basic casing 110 when fixed station numbers are assigned in advance. The selection switching circuit 175a other than the selection switching circuit 175b is unnecessary, and the station number setting search signal CF1 generated by the microprocessor 111 is directly supplied to the input / output interface circuit 172b at the final position.

また、固定局番が割付設定されている入出力基板上の入出力ユニット170a、170bのうち、終端ブロック160が接続されることのない内側の入出力基板170aに対する接続位置信号MDLは、省略することも可能である。   Of the input / output units 170a and 170b on the input / output board to which the fixed station number is assigned, the connection position signal MDL for the inner input / output board 170a to which the terminal block 160 is not connected is omitted. Is also possible.

また、基本筐体110内の最終位置の選択切換回路175bは、前述(図1)の一対の論理和素子によるハードウエア構成としてもよいが、ハードウエアを使用せずに、マイクロプロセッサ111の制御動作によって機能する選択切換手段で代替することも可能である。この場合、マイクロプロセッサ111は、まず局番「00」を指定して、入出力ユニット170aから機種コード情報(後述する)を読出して、基本筐体110内の入出力ユニット170a、170bの編成を確認した後に、局番設定検索信号CF1を入出力ユニット180に対して送出すればよい。   Further, the final position selection switching circuit 175b in the basic casing 110 may have a hardware configuration by the pair of OR elements described above (FIG. 1), but the control of the microprocessor 111 without using hardware. It is also possible to substitute with a selection switching means that functions according to the operation. In this case, the microprocessor 111 first designates the station number “00”, reads model code information (described later) from the input / output unit 170a, and confirms the organization of the input / output units 170a and 170b in the basic chassis 110. After that, the station number setting search signal CF1 may be sent to the input / output unit 180.

また、入出力ユニット170a、170bが同一プリント基板上に搭載されている場合には、本願の主旨からすれば、管理番号は個々には不要であって、代表的に1つの管理番号を与えてもよい。   Further, when the input / output units 170a and 170b are mounted on the same printed circuit board, according to the gist of the present application, the management number is not individually required, and one management number is given as a representative. Also good.

基本筐体110に内蔵される入出力点数の規模には様々なものがあり、適用される用途の制御点数規模に応じたものが選択可能になっているが、たとえば制御出力点数よりも多い入力点数を必要としたり、提供される基本筐体110内の入出力ユニット170a、170bの入出力点数が実態用途に比べて不足していたり、アナログ入出力を必要とする場合などには、増設筐体に収納された入出力ユニット180が適宜増設使用される。ただし、基本筐体110に内蔵された入出力のみでまかなえる用途の場合には、増設筐体を使用する必要はなく、終端ブロック160が基本筐体110の端面に直接接続されるようになっている。   There are various types of input / output points built into the basic chassis 110, and those corresponding to the number of control points for the application to be used can be selected. For example, inputs larger than the number of control output points can be selected. When the number of points is required, the number of input / output points of the input / output units 170a and 170b in the provided basic chassis 110 is insufficient compared to the actual application, or when analog input / output is required, the expansion chassis The input / output unit 180 housed in the body is added and used as appropriate. However, in the case of an application that can be provided only by input / output built into the basic chassis 110, it is not necessary to use an additional chassis, and the end block 160 is directly connected to the end face of the basic chassis 110. Yes.

基本筐体110の内部に設けられた入出力インタフェース回路172a、172bの局番設定は、図1内の入出力ユニット120、130と同様に順次に割付設定されてもよいが、図8の例では、入力インタフェース172aには局番「00」が既に割り付けられ、出力インタフェース回路172bには局番「01」が既に割り付けられていて、入出力ユニット180は、局番「02」から順次設定されるようになっている。   The station number setting of the input / output interface circuits 172a and 172b provided in the basic casing 110 may be sequentially assigned and set similarly to the input / output units 120 and 130 in FIG. 1, but in the example of FIG. The station number “00” is already assigned to the input interface 172a, the station number “01” is already assigned to the output interface circuit 172b, and the input / output unit 180 is sequentially set from the station number “02”. ing.

また、入出力インタフェース回路172a、172b内のカード情報格納メモリには、品種別論理情報、個別完了論理情報および接続位置論理情報(接続位置信号MDL)に加えて、基本筐体110に内蔵された入出力インタフェース回路172a、172bであることを識別するための内外識別論理情報が付加されている。   The card information storage memory in the input / output interface circuits 172a and 172b is built in the basic chassis 110 in addition to the type-specific logic information, individual completion logic information, and connection position logic information (connection position signal MDL). Internal / external identification logic information for identifying the input / output interface circuits 172a and 172b is added.

さらに、最前位置の入出力インタフェース回路172a内のカード情報には、基本筐体110内の入出力編成の種別を示す機種コード情報が含まれている。機種コード情報としては、たとえば、基本筐体110内の「入力点数/出力点数」が「8点/8点」のもの、「16点/16点」のもの、「32点/32点」のもの、「64点/64点」のものに応じて、2ビットで4種類の機種コードが与えられるようになっている。   Further, the card information in the input / output interface circuit 172a at the foremost position includes model code information indicating the type of input / output organization in the basic chassis 110. As model code information, for example, “input points / output points” in the basic housing 110 are “8 points / 8 points”, “16 points / 16 points”, “32 points / 32 points”. According to the “64 points / 64 points”, four types of model codes are given in 2 bits.

これらのカード情報のうち、基本筐体110の端面位置に設置される入出力インタフェース回路172bの接続位置論理情報は、終端ブロック160が接続されているか否かによって論理レベルが変化するが、その他のカード情報および局番情報は、すべて固定の情報である。   Among these pieces of card information, the logic level of the connection position logic information of the input / output interface circuit 172b installed at the end face position of the basic chassis 110 changes depending on whether or not the terminal block 160 is connected. Card information and station number information are all fixed information.

各種の固定された品種別論理情報は、データバスに対して接続(または、解放)するために設けられたデータセレクタの複数ビットの入力端子を、プリント基板によってグランド回路GNDに接続するか、または、定電圧電源線Vccに接続するかによって決定される配線パターン情報となっている。ここでは、品種別論理情報の格納領域を、個別メモリと総称しているが、実態としては、読み書きの行えるメモリは使用されていない。   Various kinds of fixed logic information for each kind are connected to a ground circuit GND by a printed circuit board, by connecting a multi-bit input terminal of a data selector provided for connection (or release) to a data bus, or The wiring pattern information is determined depending on whether the constant voltage power supply line Vcc is connected. Here, the storage area for the type-specific logical information is collectively referred to as an individual memory, but in reality, a readable / writable memory is not used.

次に、図9〜図12のフローチャートを参照しながら、図8のように構成されたこの発明の実施の形態2による動作について説明する。図9〜図12は、前述の図2〜図5に対応しており、以下、図2〜図5との相違点に注目して説明する。なお、各図において、前述と同一の符号は同一処理または相当処理を示しており、新たに付加された符号(前述と異なる処理)について説明する。また、プログラム操作を示す前述(図6、図7)のフローチャートは、この発明の実施の形態2においてもそのまま適用されるものとする。   Next, the operation according to the second embodiment of the present invention configured as shown in FIG. 8 will be described with reference to the flowcharts of FIGS. FIGS. 9 to 12 correspond to FIGS. 2 to 5 described above, and will be described below with a focus on differences from FIGS. 2 to 5. In each figure, the same reference numerals as described above indicate the same processing or equivalent processing, and the newly added reference numerals (processing different from the above) will be described. Further, the above-described flowcharts (FIGS. 6 and 7) showing the program operation are also applied as they are in the second embodiment of the present invention.

まず、運転動作を示す図9においては、ステップ212とステップ214との間に、前述(図2参照)のステップ213bに代えて、ステップ700(点検時期判定手段)が設けられている。また、ステップ213aとステップ215との間には、前述(図2参照)のステップ209aに代えて、ステップ709a(初回フラグのセット処理、点検フラグのリセット処理)が設けられている。   First, in FIG. 9 showing the driving operation, step 700 (inspection time determination means) is provided between step 212 and step 214 in place of step 213b described above (see FIG. 2). Further, between step 213a and step 215, step 709a (initial flag setting process, inspection flag reset process) is provided instead of step 209a described above (see FIG. 2).

ステップ700においては、ステップ211のシーケンスプログラムの中で所定の点検フラグがセットされたか否かにより、点検フラグが作動したか否かを判定し、点検フラグがセットされている(すなわち、YES)と判定されれば、ステップ205に移行して、ステップ208(編成異常検出手段)または脱落異常検出手段(ステップ213a)を実行する。また、ステップ700において、点検フラグがセットされていない(すなわち、NO)と判定されれば、ステップ214に移行する。   In step 700, it is determined whether or not the inspection flag has been activated based on whether or not a predetermined inspection flag is set in the sequence program in step 211, and if the inspection flag is set (ie, YES). If it is determined, the routine proceeds to step 205, where step 208 (knitting abnormality detecting means) or dropout abnormality detecting means (step 213a) is executed. If it is determined in step 700 that the inspection flag is not set (that is, NO), the process proceeds to step 214.

前述(図2)の場合では、ステップ204が初回動作判定処理を実行したときのみにステップ208やステップ213aが実行され、運転中においては、ステップ212がEND命令の実行判定を行うごとに、脱落異常検出手段となるステップ213bが実行されるので、編成異常検出手段(ステップ208)が軽視され、脱落異常検出手段(ステップ213b)が過剰に重視されて傾向になる。   In the case described above (FIG. 2), step 208 and step 213a are executed only when step 204 executes the initial operation determination process. During operation, every time step 212 determines the execution of the END instruction, it is dropped. Since step 213b serving as the abnormality detection means is executed, the knitting abnormality detection means (step 208) is neglected, and the dropout abnormality detection means (step 213b) tends to be excessively emphasized.

一方、この発明の実施の形態2によれば、図9のように、シーケンスプログラムの中で適時に点検フラグをセットしておくことにより、点検フラグがセットされているときのみに点検処理が実行され、ステップ208、213aによる異常点検が実行された後には、ステップ709aによって点検フラグのリセットが行われるようになっている。なお、ステップ709aでは、初回フラグのセットも行われ、その結果として、ステップ204での判定結果が「NO」に変化するようになっている。   On the other hand, according to Embodiment 2 of the present invention, as shown in FIG. 9, the inspection process is executed only when the inspection flag is set by setting the inspection flag in the sequence program in a timely manner. After the abnormality check in steps 208 and 213a is executed, the check flag is reset in step 709a. In step 709a, the initial flag is also set, and as a result, the determination result in step 204 changes to “NO”.

次に、編成操作を示す図10および図11において、図10においては、前述(図3参照)のステップ358bに代えて、ステップ858bが設けられている。また、図11においては、前述(図3参照)の局番設定手段320に対応した局番設定手段820内のステップ305の後に、ステップ806、807が追加され、続いて、ステップ400に対応したステップ900が実行される。   Next, in FIG. 10 and FIG. 11 showing the knitting operation, in FIG. 10, a step 858b is provided instead of the above-described step 358b (see FIG. 3). In FIG. 11, steps 806 and 807 are added after step 305 in the station number setting unit 820 corresponding to the station number setting unit 320 described above (see FIG. 3), and then step 900 corresponding to step 400. Is executed.

図10内のステップ858bにおいては、前述の管理要を示す編成指令を送信して既存の編成完了フラグをリセットする処理に加えて、各局番に対応した管理番号テーブルをオペレータによって作成して、ステップ807(後述する)により、管理番号を管理情報格納領域199Bに送信して転送保存するようになっている。   In step 858b in FIG. 10, in addition to the process of transmitting the composition command indicating the management requirement described above and resetting the existing composition completion flag, a management number table corresponding to each station number is created by the operator, By 807 (described later), a management number is transmitted to the management information storage area 199B and transferred and saved.

図11内のステップ900の動作については、図12とともに後述する。図11において、ステップ305とステップ900の間には、ステップ806、807が挿入されており、ステップ305の判定結果が「YES」であってステップ358aまたはステップ858bによる編成指令を受信した場合には、ステップ806に移行する。   The operation of step 900 in FIG. 11 will be described later with reference to FIG. In FIG. 11, when steps 806 and 807 are inserted between step 305 and step 900 and the determination result in step 305 is “YES” and the knitting command in step 358a or step 858b is received, The process proceeds to step 806.

ステップ806においては、図10内のステップ358aの処理に基づき管理要を受信したか否かを判定し、ステップ358aによる管理番号不要の編成指令を受信した(すなわち、NO)と判定されれば、ステップ900に移行し、ステップ858bによる管理要の編成指令を受信した(すなわち、YES)と判定されれば、ステップ807に移行する。   In step 806, it is determined whether or not a management request has been received based on the processing in step 358a in FIG. 10, and if it is determined that a management command that does not require a management number in step 358a has been received (ie, NO) The process proceeds to step 900, and if it is determined that the management-needed organization command in step 858b has been received (ie, YES), the process proceeds to step 807.

ステップ807においては、ステップ858bで作成された局番対応の管理番号の情報を一括受信し、管理番号の情報を管理情報格納領域199Bに転送格納する。このとき、管理番号は、外部ツール108から管理情報格納領域199Bに一括転送される。以下、ステップ304〜312により構成された局番設定手段820の中核となる局番設定処理(ステップ900)に移行する。   In step 807, the management number information corresponding to the station number created in step 858b is collectively received, and the management number information is transferred and stored in the management information storage area 199B. At this time, the management number is collectively transferred from the external tool 108 to the management information storage area 199B. Thereafter, the process proceeds to the station number setting process (step 900) which is the core of the station number setting means 820 constituted by steps 304-312.

次に、図12のフローチャートを参照しながら、図11内の局番設定処理(ステップ900)について詳細に説明する。図12において、ステップ901、904、913a、913b、914a、914b、915は、それぞれ、前述(図5参照)のステップ401、404、413a、413b、414a、414b、415に対応している。この場合、前述のステップ406とステップ411との間には、ステップ911、920〜923、210が挿入されており、ステップ922は、カード編成記憶手段(基本筐体のみ)を構成している。   Next, the station number setting process (step 900) in FIG. 11 will be described in detail with reference to the flowchart of FIG. In FIG. 12, Steps 901, 904, 913a, 913b, 914a, 914b, and 915 correspond to Steps 401, 404, 413a, 413b, 414a, 414b, and 415 described above (see FIG. 5), respectively. In this case, Steps 911, 920 to 923, and 210 are inserted between Step 406 and Step 411 described above, and Step 922 constitutes a card organization storage means (only a basic case).

まず、図12のサブルーチンの動作開始ステップ901は、図11内のステップ806またはステップ807から移行して活性化される。続いて、マイクロプロセッサ111は、局番設定検索信号CF1の論理レベルを「H」から「L」にして局番設定を開始し(ステップ402)、局番設定検索信号CF1が論理レベル「L」となったことによって、選択切換回路175b、185のうち、まずは入出力ユニット170b内の選択切換回路175bの出力が論理レベル「L」となって、入出力ユニット170bがマイクロプロセッサ111との交信権を取得することになる。   First, the operation start step 901 of the subroutine of FIG. 12 is activated after shifting from step 806 or step 807 in FIG. Subsequently, the microprocessor 111 starts the station number setting by changing the logic level of the station number setting search signal CF1 from “H” to “L” (step 402), and the station number setting search signal CF1 becomes the logic level “L”. As a result, of the selection switching circuits 175b and 185, first, the output of the selection switching circuit 175b in the input / output unit 170b becomes the logic level “L”, and the input / output unit 170b acquires the right to communicate with the microprocessor 111. It will be.

続いて、ステップ858b(図10参照)によって管理番号による管理が必要であるとの編成指令が送信され、管理要の編成指令が管理情報格納領域199Bに格納されているか否かを判定し(ステップ403)、管理要(すなわち、YES)と判定されれば、ステップ904に移行し、管理不要(すなわち、NO)と判定されれば、ステップ405に移行する。   Subsequently, in step 858b (see FIG. 10), a composition command indicating that management by a management number is necessary is transmitted, and it is determined whether or not the composition command requiring management is stored in the management information storage area 199B (step 403) If it is determined that management is necessary (ie, YES), the process proceeds to step 904, and if it is determined that management is not necessary (ie, NO), the process proceeds to step 405.

ステップ904においては、交信権を取得した入出力ユニット170bに対する管理番号を転送用の送信バッファに格納する。続いて、交信権を取得した入出力ユニット170bが貫通バス信号線BUSに送出したカード情報を、マイクロプロセッサ111が読出し(ステップ405)、ステップ405によって正常なカード情報が得られたか否かを判定する(ステップ406)。ステップ406において、正常なカード情報が得られた(すなわち、YES)と判定されれば、ステップ911に移行し、正常なカード情報が得られない(すなわち、NO)と判定されれば、ステップ407に移行する。   In step 904, the management number for the input / output unit 170b that has acquired the communication right is stored in the transmission buffer for transfer. Subsequently, the microprocessor 111 reads out the card information sent to the through bus signal line BUS by the input / output unit 170b that has acquired the communication right (step 405), and determines whether normal card information has been obtained in step 405. (Step 406). If it is determined in step 406 that normal card information is obtained (ie, YES), the process proceeds to step 911. If it is determined that normal card information is not obtained (ie, NO), step 407 is performed. Migrate to

なお、ステップ406においては、最終接続位置よりも以前の入出力インタフェース回路からカード情報が得られない場合、または、カード情報の中の接続位置信号MDLが論理レベル「L」となる入出力インタフェース回路が発見されない場合に、異常状態であることを判定する。ステップ407においては、異常状態をデータメモリ116に記憶するとともに、警報表示器119の異常表示LEDを点滅表示して異常報知し、続いて、動作終了ステップ210に移行する。   In step 406, if the card information cannot be obtained from the input / output interface circuit before the final connection position, or the connection position signal MDL in the card information becomes the logic level “L”. Is not found, it is determined that the state is abnormal. In step 407, the abnormal state is stored in the data memory 116, the abnormality display LED of the alarm indicator 119 is blinked to notify the abnormality, and then the operation end step 210 is performed.

ステップ911においては、ステップ405で読出されたカード情報が機種コード情報を有する基本筐体110内の基本カードであるか否かを判定し、基本筐体110内の基本カードである(すなわち、YES)と判定されれば、ステップ920に移行し、基本筐体110内の基本カードでない(すなわち、NO)と判定されれば、ステップ411に移行する。なお、ステップ911での初回実行時の判定結果は「YES」となり、次回動作時の判定結果は「NO」となるのが正常である。   In step 911, it is determined whether the card information read in step 405 is a basic card in the basic casing 110 having model code information, and is a basic card in the basic casing 110 (that is, YES). ), The process proceeds to step 920. If it is determined that the card is not a basic card in the basic chassis 110 (ie, NO), the process proceeds to step 411. It is normal that the determination result at the first execution in step 911 is “YES”, and the determination result at the next operation is “NO”.

ステップ920においては、ステップ405で読出されたカード情報の接続位置論理情報(接続位置信号MDL)を参照する。終端ブロック160が基本筐体110に直接取付けられていれば、接続位置信号MDLは論理レベル「L」であり、入出力ユニット180が介在していれば、接続位置信号MDLは論理レベル「H」となっている。   In step 920, the connection position logic information (connection position signal MDL) of the card information read in step 405 is referred to. If the end block 160 is directly attached to the basic housing 110, the connection position signal MDL is at the logic level “L”, and if the input / output unit 180 is interposed, the connection position signal MDL is at the logic level “H”. It has become.

次に、ステップ920(カード情報読出)に続いて、接続位置信号MDLの論理レベルを判定することにより、増設筐体が接続されている(増段有り)か否かを判定し(ステップ921)、増設筐体が接続されていない(すなわち、NO)と判定されれば、ステップ922に移行し、増設筐体が接続されている(すなわち、YES)と判定されれば、中継端子Dを介してステップ312(図11参照)に移行する。   Next, following step 920 (card information reading), by determining the logical level of the connection position signal MDL, it is determined whether or not the additional chassis is connected (with additional stages) (step 921). If it is determined that the additional chassis is not connected (that is, NO), the process proceeds to step 922. If it is determined that the additional chassis is connected (that is, YES), the relay terminal D is connected. To step 312 (see FIG. 11).

ステップ922においては、ステップ405で読出されたカード情報の中の機種コード情報に基づいて、既に設定されている局番に対応した入出力別の品種情報であるカード編成情報を、管理情報格納領域199B内に記憶する。以下、カード編成の記憶(ステップ922)が完了すると、編成完了フラグをセットして(ステップ923)、動作終了ステップ210に移行する。   In step 922, based on the model code information in the card information read in step 405, card organization information which is product type information for each input / output corresponding to the already set station number is stored in the management information storage area 199B. Remember in. Thereafter, when the storage of the card formation (step 922) is completed, the formation completion flag is set (step 923), and the process proceeds to the operation end step 210.

一方、ステップ911の判定結果が「NO」の場合に実行されるステップ411においては、ステップ405で読出されたカード情報の中で、接続位置信号MDLの論理レベルを判定することにより、対象となっている入出力ユニットが、最終接続位置よりも以前の中間接続位置のものであるか否か(最終接続位置のものであるか)を判定し、中間位置のものである(すなわち、YES)と判定されれば、ステップ913aに移行し、最終位置のものである(すなわち、NO)と判定されれば、ステップ412に移行する。   On the other hand, in step 411 which is executed when the determination result in step 911 is “NO”, the logical level of the connection position signal MDL is determined in the card information read in step 405, so that the target is obtained. It is determined whether the input / output unit at the intermediate connection position before the final connection position is at the final connection position (ie, YES). If it is determined, the process proceeds to step 913a. If it is determined that the position is the final position (ie, NO), the process proceeds to step 412.

ステップ412においては、これから局番設定の行われる入出力ユニットが最終接続位置のものであることを記憶して、ステップ913aに移行する。一方、ステップ913aにおいては、マイクロプロセッサ111が設定局番の値と、ステップ904で抽出した管理番号の値とを、順次データバスに送出する。   In step 412, it is memorized that the input / output unit for which the station number is to be set is from the final connection position, and the process proceeds to step 913a. On the other hand, in step 913a, the microprocessor 111 sequentially sends the set station number value and the management number value extracted in step 904 to the data bus.

ステップ913aの処理動作に応動して、交信権を取得している入出力ユニットは、貫通バス信号線BUSを介して設定局番および管理番号を受信して、局番設定メモリおよび管理番号設定メモリに書込みを行い(ステップ913b)、局番設定および管理番号の設定を終えた入出力ユニットは、貫通バス信号線BUSを介して局番情報および管理番号の情報を順次確認返信する(ステップ914a)。   In response to the processing operation of step 913a, the input / output unit that has acquired the communication right receives the set station number and management number via the through bus signal line BUS, and writes it to the station number setting memory and management number setting memory. (Step 913b), and the input / output unit that has finished setting the station number and the management number sequentially confirms and returns the station number information and the management number information via the through bus signal line BUS (Step 914a).

ステップ913aに続いて実行されるステップ914bにおいては、ステップ914aによる局番および管理番号の返信情報を受信する。以下、復帰ステップ915を介して、図11内のステップ310に移行する。   In step 914b, which is executed following step 913a, the reply information of the station number and management number in step 914a is received. Thereafter, the process proceeds to step 310 in FIG.

以上の動作を整理して概括説明すると、ステップ904およびステップ913bは、初期保存手段として機能し、外部ツール108で設定されて管理情報格納領域199Bに格納された管理番号を、入出力ユニット170a、170b、180の管理番号設定用メモリに転送する。   When the above operations are organized and outlined, step 904 and step 913b function as initial storage means, and the management number set by the external tool 108 and stored in the management information storage area 199B is assigned to the input / output unit 170a, The data is transferred to the management number setting memories 170b and 180.

また、ステップ406は、前述と同様に第2の異常判定手段として機能し、最終接続位置よりも以前の入出力インタフェース回路172a、172bからカード情報が得られない場合、または、最終接続位置の入出力インタフェース回路182が所定時間を経過しても発見されない場合に、異常状態であることを判定する。
ステップ407は、前述と同様に設定異常処理手段として機能し、第2の異常判定手段(ステップ406)が異常を検出したときに機能して、異常状態をデータメモリ116に書込み記憶するとともに、異常発生を警報表示する。
Step 406 functions as the second abnormality determination means as described above, and when card information cannot be obtained from the input / output interface circuits 172a and 172b prior to the final connection position, or when the final connection position is entered. If the output interface circuit 182 is not found after a predetermined time, it is determined that the output interface circuit 182 is in an abnormal state.
Step 407 functions as a setting abnormality processing unit in the same manner as described above, functions when the second abnormality determination unit (step 406) detects an abnormality, writes an abnormal state in the data memory 116, and stores the abnormality. The occurrence is displayed as an alarm.

ステップ922は、増設筐体が使用されていない場合のカード編成記憶手段として機能し、基本筐体110内の入出力ユニット170a、170bに関する管理番号とカード情報と設定局番との対応状態を管理情報格納領域199Aに書込み記憶する。   Step 922 functions as a card organization storage unit when the additional chassis is not used, and management information on the correspondence between the management number, card information, and set station number regarding the input / output units 170a and 170b in the basic chassis 110 is managed information. Write and store in storage area 199A.

以上のように、この発明の実施の形態2によるプログラマブルコントローラ100Bは、マイクロプロセッサ111と、マイクロプロセッサ111と協働するシステムメモリ114Bと、ユーザにより外部で作成されたシーケンスプログラムが外部ツール108から転送書込みされるプログラムメモリ115Bと、入出力情報および制御情報を記憶するデータメモリ116と、を有する基本ユニット110Bと、基本ユニット110Bを搭載した基本筐体110(または、基本台板)に共載されるか、または増設筐体(または、増設台板)に延長接続される複数の入出力ユニット170a、170b、180と、を備えている。   As described above, the programmable controller 100B according to the second embodiment of the present invention transfers the microprocessor 111, the system memory 114B cooperating with the microprocessor 111, and the sequence program created externally by the user from the external tool 108. A basic unit 110B having a program memory 115B to be written, a data memory 116 for storing input / output information and control information, and a basic casing 110 (or a basic base plate) on which the basic unit 110B is mounted. Or a plurality of input / output units 170a, 170b, 180 that are extendedly connected to an additional enclosure (or additional base plate).

複数の入出力ユニット170a、170b、180は、入出力要素101a〜101c(外部入力センサまたは外部負荷)に接続された入出力インタフェース回路172a、172b、182を含み、入出力インタフェース回路172a、172b、182は、マイクロプロセッサ111に対して選択的に交信接続されるように構成されたプログラマブルコントローラ100Bを構成している。   The plurality of input / output units 170a, 170b, 180 include input / output interface circuits 172a, 172b, 182 connected to the input / output elements 101a-101c (external input sensors or external loads), and the input / output interface circuits 172a, 172b, 182 constitutes a programmable controller 100 </ b> B configured to be selectively connected to the microprocessor 111.

システムメモリ114Bは、管理番号の初期保存手段(ステップ904、913b)と、照合判定手段(ステップ207a)と、編成異常処理手段(ステップ209b)と、編成変更手段(ステップ302)と、を構成する制御プログラムを含む。また、プログラムメモリ115Bおよびデータメモリ116の少なくとも一方には、管理情報格納領域199Bが設けられている。管理情報格納領域199Bには、操作対象者を限定する暗証番号の情報と入出力ユニット170a、170b、180を特定する管理番号の情報とが格納されている。   The system memory 114B comprises management number initial storage means (steps 904 and 913b), collation determination means (step 207a), knitting abnormality processing means (step 209b), and knitting change means (step 302). Includes control program. Further, at least one of the program memory 115B and the data memory 116 is provided with a management information storage area 199B. In the management information storage area 199B, information on a personal identification number that limits an operation target person and information on a management number that specifies the input / output units 170a, 170b, and 180 are stored.

管理番号は、入出力ユニット170a、170b、180を構成するプリント基板上に搭載されて、書込みおよび読出しが可能な不揮発メモリに格納されたユーザ指定の固体識別番号からなる。管理情報格納領域199Bとなるプログラムメモリ115Bまたはデータメモリ116は、不揮発メモリからなるか、または、少なくともプログラマブルコントローラ100Bの電源が遮断されてもバッテリ117によって記憶状態が保存されるRAMメモリからなる。   The management number includes a user-specified solid identification number that is mounted on a printed circuit board constituting the input / output units 170a, 170b, and 180 and stored in a rewritable and readable nonvolatile memory. The program memory 115B or the data memory 116 serving as the management information storage area 199B is a non-volatile memory or a RAM memory in which the storage state is saved by the battery 117 even when the power of the programmable controller 100B is cut off.

初期保存手段(ステップ904、913b)および編成変更手段(ステップ302)は、外部ツール108を介して管理情報格納領域199Bに書込まれたユーザ指定の固体識別番号を、入出力ユニット170a、170b、180に設けられた不揮発メモリに転送する手段からなる。   The initial storage means (steps 904 and 913b) and the composition change means (step 302) use the user-specified individual identification numbers written in the management information storage area 199B via the external tool 108 as input / output units 170a, 170b, It comprises means for transferring to a non-volatile memory provided at 180.

このように、入出力ユニット170a、170b、180の管理番号は、システム管理者によって作成または登録され、この管理番号を基本ユニット110Bおよび入出力ユニット170a、170b、180に書込むことにより初期編成が行われるので、システム管理者は、自分が作成する管理番号に特別な意味を持たせ、たとえば登録年月を示す管理番号であれば、将来において入出力ユニット170a、170b、180の耐用年数を知ることができる。   As described above, the management numbers of the input / output units 170a, 170b, and 180 are created or registered by the system administrator, and the initial organization is performed by writing the management numbers into the basic unit 110B and the input / output units 170a, 170b, and 180. Therefore, the system administrator gives a special meaning to the management number created by himself / herself, and knows the useful life of the input / output units 170a, 170b, 180 in the future if, for example, the management number indicates the registered date. be able to.

また、基本ユニット110Bは、基本筐体110に格納され、複数の入出力ユニット170a、170b、180の一部は、基本筐体110に内蔵され、複数の入出力ユニット170a、170b、180の他の一部は、基本筐体110の端面位置に設置される増設筐体に格納されて、ユニット型のプログラマブルコントローラ100Bを構成する。   The basic unit 110B is stored in the basic casing 110, and some of the plurality of input / output units 170a, 170b, and 180 are built in the basic casing 110, and in addition to the plurality of input / output units 170a, 170b, and 180. Is stored in an additional case installed at the end face position of the basic case 110 to constitute a unit type programmable controller 100B.

基本筐体110に内蔵された入出力ユニット170a、170bの複数の入出力インタフェース回路172a、172bに対しては、あらかじめ所定の局番情報が固定的に付与されている。システムメモリ114Bは、増設筐体内の入出力インタフェース回路182に対する識別番号を設定するための局番設定手段820を構成する制御プログラムを含む。   Predetermined station number information is fixedly given in advance to the plurality of input / output interface circuits 172a and 172b of the input / output units 170a and 170b built in the basic casing 110. The system memory 114B includes a control program that configures station number setting means 820 for setting an identification number for the input / output interface circuit 182 in the additional enclosure.

基本筐体110または増設筐体内の各入出力インタフェース回路172a、172b、182は、局番情報とカード情報と管理番号の情報とが格納される個別メモリを含む。カード情報は、少なくとも、入出力インタフェース回路172a、172b、182が入力インタフェース回路であるか、または出力インタフェース回路であるかを識別する品種別論理情報と、入出力インタフェース回路172a、172b、182の接続位置が最終接続位置であるか、または最終接続位置以外の中間接続位置であるかを識別する接続位置信号(接続位置論理情報)MDLと、入出力インタフェース回路172a、172b、182が基本筐体110内のものであるか否かを示すとともに、基本筐体110内のものである場合には基本ユニット110Bの入出力編成の種別を示す機種コード情報と、を含む。   Each input / output interface circuit 172a, 172b, or 182 in the basic chassis 110 or the additional chassis includes an individual memory in which station number information, card information, and management number information are stored. The card information includes at least the type-specific logic information for identifying whether the input / output interface circuits 172a, 172b, 182 are input interface circuits or output interface circuits, and the connection of the input / output interface circuits 172a, 172b, 182. The basic housing 110 includes a connection position signal (connection position logic information) MDL for identifying whether the position is the final connection position or an intermediate connection position other than the final connection position, and input / output interface circuits 172a, 172b, and 182. And the model code information indicating the type of input / output organization of the basic unit 110B in the case of being in the basic chassis 110.

複数の制御信号線および複数ビットのデータバスの末端位置には、終端処理回路162、接続位置確認回路LSTおよび終端処理確認回路ENDを含む終端ブロック160が接続されている。   A termination block 160 including a termination processing circuit 162, a connection position confirmation circuit LST, and a termination processing confirmation circuit END is connected to the terminal positions of the plurality of control signal lines and the plurality of bits of the data bus.

終端処理回路162は、終端ブロック160内の開放信号線端末に接続されて、整合回路素子となるインピーダンス素子をグランド回路GNDまたは定電圧電源線Vccに対して接続するプルダウン回路またはプルアップ回路からなる。   The termination processing circuit 162 is connected to an open signal line terminal in the termination block 160, and includes a pull-down circuit or a pull-up circuit that connects an impedance element serving as a matching circuit element to the ground circuit GND or the constant voltage power supply line Vcc. .

接続位置確認回路LSTは、入出力インタフェース回路に付加されて接続位置信号(接続位置論理情報)MDLを得るためのプルアップ抵抗またはプルダウン抵抗を、終端ブロック160内でグランド回路GNDまたは定電圧電源線Vccに接続して論理反転させる回路からなる。   The connection position confirmation circuit LST is added to the input / output interface circuit to provide a pull-up resistor or pull-down resistor for obtaining a connection position signal (connection position logic information) MDL, and a ground circuit GND or a constant voltage power line in the termination block 160. It consists of a circuit connected to Vcc to invert the logic.

終端処理確認回路ENDは、終端ブロック160が接続されていることを、入出力ユニット170a、170b、180を貫通して、接続確認信号END1としてマイクロプロセッサ111に伝達するためのロウレベルまたはハイレベルの論理発生回路からなる。   The termination processing confirmation circuit END passes through the input / output units 170a, 170b, 180 and transmits a connection confirmation signal END1 to the microprocessor 111 to indicate that the termination block 160 is connected. It consists of a generator circuit.

局番設定手段820は、システムメモリ114Bに格納された制御プログラムに基づき、マイクロプロセッサ111の運転開始時にマイクロプロセッサ111よって実行されて、終端ブロック160の接続が確認された状態において、基本筐体110内の入出力インタフェース回路172a、172bに付与されている局番に続く局番を、増設筐体に対する初段の入出力インタフェース回路182から、接続位置信号(接続位置論理情報)MDLによって確認された終端接続位置の入出力インタフェース回路に対して、順次に割付設定する手段からなる。   The station number setting means 820 is executed by the microprocessor 111 at the start of the operation of the microprocessor 111 based on the control program stored in the system memory 114B, and the connection of the terminal block 160 is confirmed. The station number subsequent to the station number assigned to the input / output interface circuits 172a and 172b of the terminal connection position confirmed by the connection position signal (connection position logic information) MDL from the input / output interface circuit 182 of the first stage for the additional chassis is displayed. It comprises means for sequentially assigning and setting the input / output interface circuit.

これにより、局番設定手段820による局番設定の順次処理の実行過程中または完了後に、初期保存手段(ステップ904、913b)による初期保存処理が実行され、各局番の入出力ユニット170a、170b、180に対するカード情報および管理番号の情報からなる一連情報が、管理情報格納領域199Bに書込み保存される。   Thereby, during or after the execution of the sequential processing of the station number setting by the station number setting means 820, the initial saving process by the initial saving means (steps 904, 913b) is executed, and the input / output units 170a, 170b, 180 of each station number are executed. A series of information including card information and management number information is written and saved in the management information storage area 199B.

このように、入出力ユニット170a、170b、180と基本ユニット110Bとの交信に必要となる入出力ユニットの局番を、局番設定手段820によってあらかじめ設定しておく必要がある入出力ユニットを使用した場合に、接続確認信号END1によって終端ブロック160の接続が確認されるとともに、接続位置信号(接続位置論理情報)MDLによって増設ユニットの接続位置が中間位置であるか最終接続位置であるかを認識し、基本ユニット110Bの機種コード情報によって初段の増設入出力ユニット(入出力ユニット180)の局番を認識して局番設定が行われ、局番設定の過程または局番設定完了後に管理番号の初期保存が行われるので、終端ブロック160が未接続であって信号が不安定な状態で局番設定が行われることがなく、局番や管理番号の誤設定を防止することができる。   As described above, when an input / output unit that uses the station number setting means 820 to set the station number of the input / output unit necessary for communication between the input / output units 170a, 170b, and 180 and the basic unit 110B is used. In addition, the connection confirmation signal END1 confirms the connection of the termination block 160, and the connection position signal (connection position logic information) MDL recognizes whether the connection position of the extension unit is the intermediate position or the final connection position. The station number is set by recognizing the station number of the first-stage expansion input / output unit (input / output unit 180) from the model code information of the basic unit 110B, and the management number is initially saved after the station number setting process or after the station number setting is completed. The station number is set when the terminal block 160 is not connected and the signal is unstable. DOO without, it is possible to prevent erroneous setting of the station number and management number.

なお、カード情報の中の品種別論理情報は、プリント基板に設けられた配線パターンによって決定される固定情報であるのに対し、接続位置論理情報(接続位置信号MDL)は、入出力インタフェース回路172a、172b、182の接続位置によって変化する可変情報であるが、可変情報の接続位置信号MDLも、終端ブロック160内の配線パターンである終端処理確認回路ENDによって決定される論理情報となっているので、複雑な制御動作に依存せず、既存のデータバスを利用してマイクロプロセッサ111に接続位置情報を伝達することができる。   The type-specific logic information in the card information is fixed information determined by the wiring pattern provided on the printed circuit board, whereas the connection position logic information (connection position signal MDL) is the input / output interface circuit 172a. , 172b and 182 are variable information that changes depending on the connection position, and the variable information connection position signal MDL is also logical information determined by the termination processing confirmation circuit END that is a wiring pattern in the termination block 160. The connection position information can be transmitted to the microprocessor 111 using an existing data bus without depending on a complicated control operation.

また、基本筐体110内の入出力ユニット170a、170bの局番は、既に固定局番が割り付けられているので、局番設定の能率を向上させることができるとともに、少なくとも基本筐体110内での局番設定を誤ることがないという効果がある。   Further, since the station numbers of the input / output units 170a and 170b in the basic casing 110 are already assigned fixed station numbers, the efficiency of station number setting can be improved and at least the station number setting in the basic casing 110 can be performed. The effect is that there is no mistake.

また、基本筐体に内蔵された最終段の入出力ユニット170bまたはシステムメモリ114Bは、入出力インタフェース回路172bのカード情報の読出しを完了したことに応答して、マイクロプロセッサ111が発生する局番設定検索信号CF1を、後段に接続された入出力ユニット180内の入出力インタフェース回路182に対して送信するための選択切換手段175bを構成する論理回路または制御プログラムをさらに含む。   Further, the final stage input / output unit 170b or the system memory 114B incorporated in the basic chassis searches for the station number setting generated by the microprocessor 111 in response to the completion of reading the card information of the input / output interface circuit 172b. It further includes a logic circuit or a control program constituting selection switching means 175b for transmitting the signal CF1 to the input / output interface circuit 182 in the input / output unit 180 connected to the subsequent stage.

基本筐体110に内蔵された最終段の入出力インタフェース回路172bのカード情報は、カード情報の読出しが完了しているか否かの状態を識別して、選択切換手段175bを切り換える局番設定完了信号(個別完了論理情報)FINをさらに含む。   The card information of the final stage I / O interface circuit 172b built in the basic chassis 110 identifies the status of whether or not the reading of the card information has been completed, and the station number setting completion signal ( (Individual completion logic information) FIN is further included.

増設筐体に内蔵された入出力インタフェース回路182は、マイクロプロセッサ111が発生する局番設定検索信号CF1を受信して、局番設定の完了に応答して順次後段に接続された入出力インタフェース回路に局番設定検索信号CF1を伝達するための選択切換回路185が付加されている。
増設筐体に内蔵された入出力インタフェース回路182のカード情報は、局番設定が完了しているか否かの設定状態を識別して選択切換回路185を切り換える局番設定完了信号(個別完了論理情報)FINをさらに含む。
The input / output interface circuit 182 built in the additional enclosure receives the station number setting search signal CF1 generated by the microprocessor 111, and in response to the completion of the station number setting, sequentially inputs and outputs the station number to the input / output interface circuit connected to the subsequent stage. A selection switching circuit 185 for transmitting the setting search signal CF1 is added.
The card information of the input / output interface circuit 182 built in the additional chassis identifies a station number setting completion signal (individual completion logic information) FIN that identifies the setting state of whether or not the station number setting is completed and switches the selection switching circuit 185. Further included.

局番設定手段820は、マイクロプロセッサにより実行される手段であって、データバスを介して読出された基本筐体110内の最終段の入出力インタフェース回路172bのカード情報内の接続位置信号(接続位置論理情報)MDLが中間接続位置であった場合に実行され、カード情報内の機種コード情報に基づいて、次段に接続された増設筐体内の入出力インタフェース回路182に対応した局番情報を、データバスを介して個別メモリに書込む手段からなる。   The station number setting means 820 is a means executed by the microprocessor, and is a connection position signal (connection position) in the card information of the input / output interface circuit 172b at the final stage in the basic chassis 110 read through the data bus. Logical information) This is executed when the MDL is at the intermediate connection position. Based on the model code information in the card information, station number information corresponding to the input / output interface circuit 182 in the additional chassis connected to the next stage is stored as data. It consists of means for writing to the individual memory via the bus.

これにより、基本筐体110内の入出力インタフェース回路172bに付与されている局番に続く局番を、増設筐体内の初段の入出力インタフェース回路182から、接続位置信号(接続位置論理情報)MDLによって確認された終端接続位置の入出力インタフェース回路に対して順次に割付設定し、マイクロプロセッサ111は、割付設定が完了した後に、データバスを介して局番指定を行い、指定された局番の入出力インタフェース回路172a、172b、180との間で、データバスを介して入出力情報を交信する。   As a result, the station number following the station number assigned to the input / output interface circuit 172b in the basic chassis 110 is confirmed by the connection position signal (connection position logic information) MDL from the first-stage input / output interface circuit 182 in the additional chassis. The microprocessor 111 sequentially assigns and sets the input / output interface circuit at the terminal connection position. After the assignment setting is completed, the microprocessor 111 designates the station number via the data bus, and the input / output interface circuit of the designated station number is designated. Input / output information is exchanged with the 172a, 172b, and 180 via the data bus.

このように、局番設定完了信号(個別完了論理情報)FINに応動する選択切換回路175a、175b、185によって、局番設定を必要とする入出力ユニット170a、170b、180が順次選択されるので、複数の入出力インタフェース回路172a、172b、182に対して、選択切換回路175a、175b、185により漏れなく確実に局番設定を行うことができる。また、基本筐体110内の最終入出力ユニットの局番に続く局番から、接続位置信号(接続位置論理情報)MDLによって検出される最終接続位置の入出力インタフェース回路まで局番設定を行えばよいという効果がある。   As described above, the selection switching circuits 175a, 175b, and 185 that respond to the station number setting completion signal (individual completion logic information) FIN sequentially select the input / output units 170a, 170b, and 180 that require station number setting. The input / output interface circuits 172a, 172b, and 182 can be surely set station numbers without omission by the selection switching circuits 175a, 175b, and 185. In addition, the station number may be set from the station number following the station number of the final input / output unit in the basic housing 110 to the input / output interface circuit of the final connection position detected by the connection position signal (connection position logic information) MDL. There is.

また、システムメモリ114Bは、カード編成記憶手段(ステップ313、922)と、編成異常検出手段(ステップ208)と、脱落異常検出手段(ステップ213a)と、編成異常処理手段(ステップ209b)とを有する運転中の異常判定および処理手段を構成する制御プログラムをさらに含む。   Further, the system memory 114B includes card formation storage means (steps 313 and 922), formation abnormality detection means (step 208), dropout abnormality detection means (step 213a), and formation abnormality processing means (step 209b). It further includes a control program constituting abnormality determination and processing means during operation.

カード編成記憶手段(ステップ313、922)は、局番設定の完了時に、カード情報と管理番号の情報と設定局番(局番情報)との対応状態を、管理情報格納領域199Bに書込み記憶する手段からなる。   The card organization storage means (steps 313 and 922) comprises means for writing and storing the correspondence state between the card information, the management number information, and the set station number (station number information) in the management information storage area 199B when the station number setting is completed. .

脱落異常検出手段(ステップ213a)は、終端処理確認回路ENDによる接続確認信号END1の論理レベルに基づき、少なくとも運転開始時において終端ブロック160が未接続状態となった場合に、異常状態であることを判定する手段からなる。   The dropout abnormality detection means (step 213a) indicates that the terminal block 160 is in an abnormal state at least at the start of operation based on the logic level of the connection confirmation signal END1 by the termination processing confirmation circuit END. It consists of a means for judging.

編成異常検出手段(ステップ208)は、局番指定して読出された入出力インタフェース回路172a、172b、182から得られるカード情報または管理番号の情報が、カード編成記憶手段(ステップ313)によって記憶されている情報と一致しているか否かを少なくとも運転開始時に判定する手段からなる。   The knitting abnormality detecting means (step 208) stores the card information or management number information obtained from the input / output interface circuits 172a, 172b, 182 read by specifying the station number by the card knitting storage means (step 313). It is composed of means for determining at least at the start of operation whether or not the information matches.

編成異常処理手段(ステップ209b)は、編成異常検出手段(ステップ208)が編成異常を検出した場合、または、脱落異常検出手段(ステップ213a)が終端ブロック160の脱落異常を検出した場合に機能して、プログラマブルコントローラ100Bの作動状態を停止または現状保持するか、異常状態を管理情報格納領域199Bに書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなる。   The knitting abnormality processing means (step 209b) functions when the knitting abnormality detecting means (step 208) detects a knitting abnormality or when the dropping abnormality detecting means (step 213a) detects a dropping abnormality of the terminal block 160. Thus, the operation state of the programmable controller 100B is stopped or kept at present, the abnormal state is written and stored in the management information storage area 199B, or at least an abnormality occurrence is displayed as a warning.

このように、運転開始時および運転中に異常状態を検出して、運転停止または異常表示を行うようので、たとえば入出力ユニット170a、170b、180が不用意に保守交換されていた場合や、運転中に終端ブロック160の脱落異常が発生した場合に、制御の安全性を向上させることができる。   As described above, an abnormal state is detected at the start of the operation and during the operation, and the operation is stopped or displayed, so that, for example, when the input / output units 170a, 170b, 180 are carelessly replaced or When a dropout abnormality of the end block 160 occurs, the safety of control can be improved.

また、システムメモリ114Bは、点検時期判定手段(ステップ700)を構成する制御プログラムをさらに含み、点検時期判定手段(ステップ700)は、プログラムメモリ115Bに格納されているシーケンスプログラムにより実行されて、点検指令フラグがセットされているか否かを判定し、点検フラグがセットされている場合に、脱落異常検出手段(ステップ213a)および編成異常検出手段(ステップ208)の少なくとも一方を実行して、異常状態が検出された場合には、編成異常処理手段(ステップ209b)を実行する手段からなる。   The system memory 114B further includes a control program that constitutes an inspection time determination unit (step 700). The inspection time determination unit (step 700) is executed by a sequence program stored in the program memory 115B, and It is determined whether or not the command flag is set, and when the inspection flag is set, at least one of the dropout abnormality detection means (step 213a) and the knitting abnormality detection means (step 208) is executed to detect an abnormal state. Is detected, it comprises means for executing the knitting abnormality processing means (step 209b).

このように、運転開始時とシーケンスプログラムで指令された運転中の適時とにおいて異常状態を検出して、運転停止または異常表示を行うので、たとえば入出力ユニット170a、170b、180が不用意に保守交換されていた場合や、運転中に終端ブロック160の脱落異常が発生した場合に、制御の安全性を向上させることができる。また、運転中の異常判定処理をユーザのシーケンスプログラムで適時に実行することができる効果がある。   As described above, the abnormal state is detected at the start of the operation and at the appropriate time during the operation specified by the sequence program, and the operation is stopped or displayed. For example, the input / output units 170a, 170b, 180 are carelessly maintained. The safety of control can be improved when it is exchanged or when an abnormal dropout of the end block 160 occurs during operation. Further, there is an effect that the abnormality determination process during operation can be executed in a timely manner by the user's sequence program.

この発明の実施の形態1に係るプログラマブルコントローラの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1による運転動作を示すフローチャートである。It is a flowchart which shows the driving | operation operation | movement by Embodiment 1 of this invention. この発明の実施の形態1による外部ツールでの編成操作を示すフローチャートである。It is a flowchart which shows the organization operation by the external tool by Embodiment 1 of this invention. この発明の実施の形態1によるマイクロプロセッサでの編成操作を示すフローチャートである。It is a flowchart which shows the organization operation in the microprocessor by Embodiment 1 of this invention. 図4内の局番設定処理(ステップ400)を詳細に示すフローチャートである。It is a flowchart which shows the station number setting process (step 400) in FIG. 4 in detail. この発明の実施の形態1による外部ツールでのプログラム操作を示すフローチャートである。It is a flowchart which shows program operation with the external tool by Embodiment 1 of this invention. この発明の実施の形態1によるマイクロプロセッサでのプログラム操作を示すフローチャートである。It is a flowchart which shows the program operation in the microprocessor by Embodiment 1 of this invention. この発明の実施の形態2に係るプログラマブルコントローラの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of the programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2による運転動作を示すフローチャートである。It is a flowchart which shows the driving | operation operation | movement by Embodiment 2 of this invention. この発明の実施の形態2による外部ツールでの編成操作を示すフローチャートである。It is a flowchart which shows the organization operation by the external tool by Embodiment 2 of this invention. この発明の実施の形態2によるマイクロプロセッサでの編成操作を示すフローチャートである。It is a flowchart which shows the organization operation by the microprocessor by Embodiment 2 of this invention. 図11内の局番設定処理(ステップ900)を詳細に示すフローチャートである。12 is a flowchart showing in detail a station number setting process (step 900) in FIG.

符号の説明Explanation of symbols

100A、100B プログラマブルコントローラ、205 第1の管理忌避手段、108 外部ツール、206 第2の管理忌避手段、110 基本筐体、207a 照合判定手段、110A、110B 基本ユニット、208 編成異常検出手段、111 マイクロプロセッサ、209b 編成異常処理手段、114A、114B システムメモリ(局番設定手段)、213a、213b 脱落異常検出手段、115A、115B プログラムメモリ、116 データメモリ、302 編成変更手段、120、130、140、150 入出力ユニット、303 第1の異常判定手段(終端異常)、122、132、142、152 入出力インタフェース回路、304 設定異常処理手段、125a、125b、135a、135b、145a、145b、155a、155b 選択切換回路、310 第3の異常判定手段(局番情報、管理番号)、313、922 カード編成記憶手段、160 終端ブロック、320、820 局番設定手段、162 終端処理回路、170a、170b、180 入出力ユニット、404、904、913b 初期保存手段、172a、172b、182 入出力インタフェース回路、406 第2の異常判定手段(カード情報受信)、175a、185 選択切換回路、407 設定異常処理手段、175b 選択切換回路(選択切換手段)、700 点検時期判定手段、199A、199B 管理情報格納領域、922 カード編成記憶手段、CF1 局番設定検索信号、FIN 局番設定完了信号(個別完了論理情報)、MDL 接続位置信号(接続位置論理情報)、GND グランド回路、Vcc 定電圧電源線、LST 接続位置確認回路、END 終端処理確認回路、END1 接続確認信号。   100A, 100B Programmable controller, 205 First management repelling means, 108 External tool, 206 Second management repelling means, 110 Basic housing, 207a Collation determining means, 110A, 110B Basic unit, 208 Knitting abnormality detecting means, 111 Micro Processor, 209b Composition abnormality processing means, 114A, 114B System memory (station number setting means), 213a, 213b Dropping abnormality detection means, 115A, 115B Program memory, 116 Data memory, 302 Composition modification means, 120, 130, 140, 150 Output unit 303 First abnormality determining means (terminating abnormality) 122, 132, 142, 152 Input / output interface circuit 304 Setting abnormality processing means 125a, 125b, 135a, 135b, 145a, 1 5b, 155a, 155b selection switching circuit, 310 third abnormality determination means (station number information, management number), 313, 922 card organization storage means, 160 termination block, 320, 820 station number setting means, 162 termination processing circuit, 170a, 170b, 180 input / output unit, 404, 904, 913b initial storage means, 172a, 172b, 182 input / output interface circuit, 406 second abnormality determination means (card information reception), 175a, 185 selection switching circuit, 407 setting abnormality processing Means 175b selection switching circuit (selection switching means), 700 inspection time determination means, 199A, 199B management information storage area, 922 card organization storage means, CF1 station number setting search signal, FIN station number setting completion signal (individual completion logic information), MDL connection position signal (connection position theory Information), GND ground circuit, Vcc constant-voltage power supply line, LST connected position confirming circuit, END termination confirmation circuit, END1 connection confirmation signal.

Claims (13)

マイクロプロセッサと、前記マイクロプロセッサと協働するシステムメモリと、外部で作成されたシーケンスプログラムが外部ツールを介して転送書込みされるプログラムメモリと、入出力情報および制御情報を記憶するデータメモリと、を有する基本ユニットと、
前記基本ユニットを搭載した基本筐体または基本台板に共載されるか、もしくは、増設筐体または増設台板に延長接続されて、複数の制御信号線および複数ビットのデータバスを介して直列接続される複数の入出力ユニットと、を備え、
前記複数の入出力ユニットは、外部入力センサまたは外部負荷に接続された入出力インタフェース回路を含み、
前記入出力インタフェース回路は、前記マイクロプロセッサに対して選択的に交信接続されるように構成されたプログラマブルコントローラであって、
前記システムメモリは、管理番号の初期保存手段、照合判定手段、編成異常処理手段および編成変更手段を構成する制御プログラムを含み、
前記プログラムメモリおよび前記データメモリの少なくとも一方には、管理情報格納領域が設けられ、
前記管理情報格納領域には、操作対象者を限定する暗証番号の情報と、前記入出力ユニットを特定する管理番号の情報とが格納され、
前記管理番号は、前記入出力ユニットに付与されて、前記マイクロプロセッサによって少なくとも読出しが可能な固体識別番号からなり、
前記固体識別番号は、前記入出力ユニットが代替可能な同一品種であっても、前記複数の入出力ユニットごとに異なる番号からなり、
前記初期保存手段は、前記入出力ユニットに格納されている管理番号と、前記管理情報格納領域に格納されている入出力ユニットの管理番号とを一致させておく手段からなり、
前記照合判定手段は、少なくとも前記プログラマブルコントローラの運転開始に際して、前記入出力ユニットに格納されている管理番号と、前記管理情報格納領域に格納されている入出力ユニットの管理番号とが一致しているか否かを判定する手段からなり、
前記編成異常処理手段は、前記照合判定手段による判定結果が不一致を示す場合に機能して、前記プログラマブルコントローラの作動状態を停止または現状保持するか、異常状態であることを前記管理情報格納領域に書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなり、
前記編成変更手段は、前記管理情報格納領域に対してあらかじめ書込み保存されている暗証番号と同じ暗証番号が、前記外部ツールから入力されたことに応答して機能し、前記初期保存手段によって既に記憶されている管理番号をクリアして、新たに初期保存処理を実行する手段からなることを特徴とするプログラマブルコントローラ。
A microprocessor, a system memory cooperating with the microprocessor, a program memory in which an externally created sequence program is transferred and written via an external tool, and a data memory for storing input / output information and control information A basic unit with
It is mounted on the basic chassis or basic base plate on which the basic unit is mounted, or is extendedly connected to the additional chassis or expansion base plate and connected in series via a plurality of control signal lines and a multi-bit data bus. A plurality of input / output units connected,
The plurality of input / output units include an input / output interface circuit connected to an external input sensor or an external load,
The input / output interface circuit is a programmable controller configured to be selectively connected to the microprocessor;
The system memory includes a control program that constitutes an initial storage unit for management numbers, a collation determination unit, a knitting abnormality processing unit, and a knitting change unit,
A management information storage area is provided in at least one of the program memory and the data memory,
In the management information storage area, information on a personal identification number that limits an operation target person and information on a management number that identifies the input / output unit are stored.
The management number is assigned to the input / output unit and consists of a solid identification number that can be read at least by the microprocessor;
The solid identification number is composed of a number different for each of the plurality of input / output units, even if the input / output unit can be replaced with the same product type.
The initial storage means comprises means for matching the management number stored in the input / output unit with the management number of the input / output unit stored in the management information storage area,
Whether the collation determining means matches at least the management number stored in the input / output unit with the management number of the input / output unit stored in the management information storage area at the start of operation of the programmable controller. Consisting of means to determine whether or not
The knitting abnormality processing means functions when the determination result by the collation determination means indicates a mismatch, and stops or maintains the current operation state of the programmable controller or indicates that the abnormal state is present in the management information storage area. It consists of a means for writing and storing, or at least an alarm display of the occurrence of an abnormality,
The composition change means functions in response to the input of the same password as the password previously written and saved in the management information storage area from the external tool, and has already been stored by the initial saving means. A programmable controller comprising: means for clearing a management number that is stored and newly executing an initial storage process.
前記管理番号は、前記入出力ユニットで使用される専用集積回路素子に内蔵されて、少なくとも読出しが可能な不揮発メモリに格納された部品のシリアル番号からなるか、または、前記入出力ユニットの製造工程において、前記入出力ユニットを構成するプリント基板上に搭載されて、少なくとも読出しが可能な不揮発メモリに格納された前記入出力ユニットのシリアル番号からなり、
前記管理情報格納領域となる前記プログラムメモリまたは前記データメモリは、不揮発メモリからなるか、または、少なくとも前記プログラマブルコントローラの電源が遮断されてもバッテリによって記憶状態が保存されるRAMメモリからなり、
前記初期保存手段および前記編成変更手段は、前記入出力ユニットに格納されているシリアル番号を前記管理情報格納領域に転送保存する手段からなることを特徴とする請求項1に記載のプログラマブルコントローラ。
The management number is comprised of a serial number of a component stored in at least a readable non-volatile memory built in a dedicated integrated circuit element used in the input / output unit, or a process for manufacturing the input / output unit In, the serial number of the input / output unit is mounted on a printed circuit board constituting the input / output unit and stored in at least a readable non-volatile memory,
The program memory or the data memory serving as the management information storage area is a non-volatile memory, or at least a RAM memory whose storage state is saved by a battery even when the power of the programmable controller is shut off,
The programmable controller according to claim 1, wherein the initial storage unit and the composition change unit include a unit that transfers and stores a serial number stored in the input / output unit to the management information storage area.
前記管理番号は、前記入出力ユニットを構成するプリント基板上に搭載されて、書込みおよび読出しが可能な不揮発メモリに格納されたユーザ指定の固体識別番号からなり、
前記管理情報格納領域となる前記プログラムメモリまたは前記データメモリは、不揮発メモリからなるか、または、少なくとも前記プログラマブルコントローラの電源が遮断されてもバッテリによって記憶状態が保存されるRAMメモリからなり、
前記初期保存手段および前記編成変更手段は、前記外部ツールを介して前記管理情報格納領域に書込まれたユーザ指定の前記固体識別番号を、前記入出力ユニットに設けられた不揮発メモリに転送する手段からなることを特徴とする請求項1に記載のプログラマブルコントローラ。
The management number is mounted on a printed circuit board constituting the input / output unit, and includes a user-specified solid identification number stored in a rewritable and readable nonvolatile memory,
The program memory or the data memory serving as the management information storage area is a non-volatile memory, or at least a RAM memory whose storage state is saved by a battery even when the power of the programmable controller is shut off,
The initial storage means and the composition change means transfer the user-specified individual identification number written in the management information storage area via the external tool to a nonvolatile memory provided in the input / output unit. The programmable controller according to claim 1, comprising:
前記編成変更手段で使用される暗証番号は、前記シーケンスプログラムを保護するための暗証番号と同一番号からなり、
前記暗証番号は、前記外部ツールから前記管理情報格納領域に書込まれて、一旦記憶されると、同一番号の暗証番号が前記外部ツールから入力されない限り、前記プログラムメモリに格納されたシーケンスプログラムの書換えおよび読出しの少なくとも一方が禁止される番号からなることを特徴とする請求項1に記載のプログラマブルコントローラ。
The personal identification number used in the composition change means consists of the same number as the personal identification number for protecting the sequence program,
The personal identification number is written from the external tool into the management information storage area and once stored, unless the personal identification number of the same number is input from the external tool, the sequence program stored in the program memory is stored. The programmable controller according to claim 1, wherein the programmable controller includes a number in which at least one of rewriting and reading is prohibited.
前記システムメモリは、前記複数の入出力ユニットのすべてに対して一括適用される第1および第2の管理忌避手段の少なくとも一方を構成する制御プログラムをさらに含み、
前記複数の入出力ユニットは、前記管理番号の情報に加えて、機種コード番号の情報をさらに含み、
前記第1の管理忌避手段は、前記管理情報格納領域に対して前記暗証番号が書込み保存されていない場合には、前記照合判定手段および前記編成異常処理手段による前記管理番号の照合および異常処理の実行を禁止し、前記入出力ユニットが固体識別用の管理番号を有しているにも関わらず同一品種のものであれば、前記入出力ユニットの保守交換を自由に可能にする手段からなり、
前記第2の管理忌避手段は、前記管理情報格納領域に対して前記暗証番号が書込み保存されていても、前記管理情報格納領域に対して管理忌避指令が書込み保存されている場合には、前記照合判定手段および前記編成異常処理手段による前記管理番号の照合および異常処理の実行を禁止し、前記入出力ユニットが固体識別用の管理番号を有しているにも関わらず同一品種のものであれば、前記入出力ユニットの保守交換を自由に可能にする手段からなることを特徴とする請求項1に記載のプログラマブルコントローラ。
The system memory further includes a control program that constitutes at least one of first and second management avoidance means that are collectively applied to all of the plurality of input / output units;
The plurality of input / output units further include model code number information in addition to the management number information,
The first management avoidance means, when the password is not written and stored in the management information storage area, the management number verification and abnormality processing by the verification determination means and the composition abnormality processing means. If the input / output unit is of the same type even though the input / output unit has a management number for identifying the individual, the input / output unit can be freely replaced and replaced.
The second management evasion unit is configured to write and save a management evasion command to the management information storage area even if the password is written and saved to the management information storage area. The verification judgment unit and the composition abnormality processing unit prohibit the verification of the management number and the execution of the abnormality process, and the input / output unit is of the same type even though it has a management number for identification. 2. The programmable controller according to claim 1, further comprising means for freely allowing maintenance and replacement of the input / output unit.
前記システムメモリは、前記複数の入出力ユニットの各々に対して個別適用される第1および第2の適用除外手段の少なくとも一方を構成する制御プログラムをさらに含み、
前記複数の入出力ユニットは、機種コード番号の情報を含み、
前記第1の適用除外手段は、前記入出力ユニットが前記管理番号の情報を有していない旧式の入出力ユニットである場合に適用されて、前記照合判定手段において前記管理番号の照合を免除するための除外情報を前記管理情報格納領域に格納保存する手段からなり、
前記第2の適用除外手段は、前記入出力ユニットが前記管理番号の情報を有しているにも関わらず、前記照合判定手段において前記管理番号の照合を免除するための除外情報を前記管理情報格納領域に格納保存する手段からなり、
前記第1および第2の適用除外手段によって照合判定を免除された特定の入出力ユニットは、同一品種のものであれば保守交換が自由に可能となることを特徴とする請求項1に記載のプログラマブルコントローラ。
The system memory further includes a control program constituting at least one of first and second application excluding means individually applied to each of the plurality of input / output units,
The plurality of input / output units include model code number information,
The first application excluding means is applied when the input / output unit is an old-type input / output unit that does not have the management number information, and exempts the verification of the management number in the verification determination means. For storing exclusion information for storing in the management information storage area,
The second application excluding means includes, as the management information, excluding information for exempting the collation of the management number in the collation determining means even though the input / output unit has the management number information. It consists of means to store and save in the storage area,
The specific input / output unit exempted from the collation determination by the first and second exemption means can be freely replaced if it is of the same type. Programmable controller.
前記基本ユニットは、前記基本筐体に格納され、前記複数の入出力ユニットは、前記基本筐体または前記増設筐体に格納されて、ユニット型のプログラマブルコントローラを構成し、
前記システムメモリは、前記複数の入出力ユニットに対する識別番号を局番情報として設定するための局番設定手段を構成する制御プログラムをさらに含み、
前記入出力インタフェース回路は、前記局番情報と、カード情報と、前記管理番号の情報とが格納される個別メモリを含み、
前記カード情報は、少なくとも、
前記入出力インタフェース回路が入力インタフェース回路であるか、または出力インタフェース回路であるかを識別する品種別論理情報と、
前記入出力インタフェース回路の接続位置が最終接続位置であるか、または前記最終接続位置以外の中間接続位置であるかを識別する接続位置論理情報と、を含み、
前記複数の制御信号線および前記データバスの末端位置には、終端処理回路、接続位置確認回路および終端処理確認回路を含む終端ブロックが接続され、
前記終端処理回路は、前記終端ブロック内の開放信号線端末に接続されて、整合回路素子となるインピーダンス素子をグランド回路または定電圧電源線に対して接続するプルダウン回路またはプルアップ回路からなり、
前記接続位置確認回路は、前記入出力インタフェース回路に付加されて前記接続位置論理情報を得るためのプルアップ抵抗またはプルダウン抵抗を、前記終端ブロック内で前記グランド回路または前記定電圧電源線に接続して論理反転させる回路からなり、
前記終端処理確認回路は、前記終端ブロックが接続されていることを、前記入出力ユニットを貫通して、接続確認信号として前記マイクロプロセッサに伝達するためのロウレベルまたはハイレベルの論理発生回路からなり、
前記局番設定手段は、前記システムメモリに格納された制御プログラムに基づき、前記マイクロプロセッサの運転開始時に前記マイクロプロセッサより実行されて、前記終端ブロックの接続が確認された状態において、初段の入出力インタフェース回路から前記接続位置論理情報によって確認された終端接続位置の入出力インタフェース回路に対して順次に異なる局番情報を割付設定する手段からなり、
前記局番設定手段による局番設定の順次処理の実行過程中または完了後に、前記初期保存手段による初期保存処理が実行され、各局番の入出力ユニットに対するカード情報および管理番号の情報からなる一連情報が、前記管理情報格納領域に書込み保存されることを特徴とする請求項1に記載のプログラマブルコントローラ。
The basic unit is stored in the basic casing, and the plurality of input / output units are stored in the basic casing or the additional casing to constitute a unit-type programmable controller,
The system memory further includes a control program constituting station number setting means for setting identification numbers for the plurality of input / output units as station number information,
The input / output interface circuit includes an individual memory in which the station number information, card information, and management number information are stored.
The card information is at least:
Logic information for each product type that identifies whether the input / output interface circuit is an input interface circuit or an output interface circuit;
Connection position logic information for identifying whether the connection position of the input / output interface circuit is a final connection position or an intermediate connection position other than the final connection position, and
A termination block including a termination processing circuit, a connection position confirmation circuit, and a termination processing confirmation circuit is connected to the terminal positions of the plurality of control signal lines and the data bus,
The termination processing circuit is connected to an open signal line terminal in the termination block, and includes a pull-down circuit or a pull-up circuit that connects an impedance element serving as a matching circuit element to a ground circuit or a constant voltage power supply line,
The connection position confirmation circuit connects a pull-up resistor or a pull-down resistor, which is added to the input / output interface circuit to obtain the connection position logic information, to the ground circuit or the constant voltage power line in the termination block. Circuit that inverts the logic,
The termination processing confirmation circuit includes a low-level or high-level logic generation circuit for transmitting the termination block connected to the microprocessor as a connection confirmation signal through the input / output unit,
The station number setting means is executed by the microprocessor at the start of operation of the microprocessor based on a control program stored in the system memory, and the input / output interface of the first stage is confirmed in the state where the connection of the terminal block is confirmed. Comprising means for sequentially assigning and setting different station number information from the circuit to the input / output interface circuit at the terminal connection position confirmed by the connection position logic information,
During or after the execution of the sequential processing of the station number setting by the station number setting means, initial storage processing by the initial storage means is executed, and a series of information including card information and management number information for the input / output unit of each station number, The programmable controller according to claim 1, wherein the programmable controller is written and saved in the management information storage area.
前記入出力インタフェース回路は、前記マイクロプロセッサが発生する局番設定検索信号を受信して、前記局番設定の完了に応答して順次後段に接続された入出力インタフェース回路に前記局番設定検索信号を伝達するための選択切換回路をさらに含み、
前記カード情報は、前記局番設定が完了しているか否かの設定状態を識別して、前記選択切換回路を切り換える個別完了論理情報をさらに含み、
前記局番設定手段は、前記マイクロプロセッサにより実行される手段であって、前記局番設定検索信号を受信した入出力インタフェース回路のカード情報を、前記データバスを介して読出して、前記入出力インタフェース回路に対応した局番情報を、前記データバスを介して前記個別メモリに書込む手段からなり、
前記マイクロプロセッサは、前記局番設定が完了した後に、前記データバスを介して局番指定を行い、指定された局番の入出力インタフェース回路との間で、前記データバスを介して前記入出力情報を交信するように構成されていることを特徴とする請求項7に記載のプログラマブルコントローラ。
The input / output interface circuit receives a station number setting search signal generated by the microprocessor and sequentially transmits the station number setting search signal to an input / output interface circuit connected to a subsequent stage in response to the completion of the station number setting. Further comprising a selection switching circuit for
The card information further includes individual completion logic information for identifying a setting state whether or not the station number setting is completed, and switching the selection switching circuit,
The station number setting means is means executed by the microprocessor, and reads out card information of the input / output interface circuit that has received the station number setting search signal via the data bus and sends it to the input / output interface circuit. It comprises means for writing corresponding station number information into the individual memory via the data bus,
After the station number setting is completed, the microprocessor designates a station number via the data bus and communicates the input / output information via the data bus with the input / output interface circuit of the designated station number. The programmable controller according to claim 7, wherein the programmable controller is configured to.
前記基本ユニットは、前記基本筐体に格納され、前記複数の入出力ユニットの一部は、前記基本筐体に内蔵され、前記複数の入出力ユニットの他の一部は、前記基本筐体の端面位置に設置される前記増設筐体に格納されて、ユニット型のプログラマブルコントローラを構成し、
前記基本筐体に内蔵された入出力ユニットの複数の入出力インタフェース回路に対しては、あらかじめ所定の局番情報が固定的に付与されていて、
前記システムメモリは、前記増設筐体内の入出力インタフェース回路に対する識別番号を局番情報として設定するための局番設定手段を構成する制御プログラムを含み、
前記基本筐体および前記増設筐体内の各入出力インタフェース回路は、前記局番情報と、カード情報と、前記管理番号の情報とが格納される個別メモリを含み、
前記カード情報は、少なくとも、
前記入出力インタフェース回路が入力インタフェース回路であるか、または出力インタフェース回路であるかを識別する品種別論理情報と、
前記入出力インタフェース回路の接続位置が最終接続位置であるか、または前記最終接続位置以外の中間接続位置であるかを識別する接続位置論理情報と、
前記入出力インタフェース回路が前記基本筐体内のものであるか否かを示すとともに、前記基本筐体内のものである場合には前記基本ユニットの入出力編成の種別を示す機種コード情報と、を含み、
前記複数の制御信号線および前記データバスの末端位置には、終端処理回路、接続位置確認回路および終端処理確認回路を含む終端ブロックが接続され、
前記終端処理回路は、前記終端ブロック内の開放信号線端末に接続されて、整合回路素子となるインピーダンス素子をグランド回路または定電圧電源線に対して接続するプルダウン回路またはプルアップ回路からなり、
前記接続位置確認回路は、前記入出力インタフェース回路に付加されて前記接続位置論理情報を得るためのプルアップ抵抗またはプルダウン抵抗を、前記終端ブロック内で前記グランド回路または前記定電圧電源線に接続して論理反転させる回路からなり、
前記終端処理確認回路は、前記終端ブロックが接続されていることを、前記入出力ユニットを貫通して、接続確認信号として前記マイクロプロセッサに伝達するためのロウレベルまたはハイレベルの論理発生回路からなり、
前記局番設定手段は、前記システムメモリに格納された制御プログラムに基づき、前記マイクロプロセッサの運転開始時に前記マイクロプロセッサにより実行されて、前記終端ブロックの接続が確認された状態において、前記基本筐体内の入出力インタフェース回路に付与されている局番に続く局番を、前記増設筐体に対する初段の入出力インタフェース回路から、前記接続位置論理情報によって確認された終端接続位置の入出力インタフェース回路に対して、順次に割付設定する手段からなり、
前記局番設定手段による局番設定の順次処理の実行過程中または完了後に、前記初期保存手段による初期保存処理が実行され、各局番の入出力ユニットに対するカード情報および管理番号の情報からなる一連情報が、前記管理情報格納領域に書込み保存されることを特徴とする請求項1に記載のプログラマブルコントローラ。
The basic unit is stored in the basic casing, a part of the plurality of input / output units is built in the basic casing, and another part of the plurality of input / output units is stored in the basic casing. Stored in the additional enclosure installed at the end face position, constitute a unit-type programmable controller,
Predetermined station number information is fixedly given in advance to the plurality of input / output interface circuits of the input / output unit built in the basic casing,
The system memory includes a control program that configures station number setting means for setting an identification number for the input / output interface circuit in the additional enclosure as station number information,
Each input / output interface circuit in the basic chassis and the additional chassis includes an individual memory in which the station number information, card information, and management number information are stored.
The card information is at least:
Logic information for each product type that identifies whether the input / output interface circuit is an input interface circuit or an output interface circuit;
Connection position logic information for identifying whether the connection position of the input / output interface circuit is a final connection position or an intermediate connection position other than the final connection position;
Including whether or not the input / output interface circuit is in the basic chassis, and model code information indicating the type of input / output organization of the basic unit in the case of the basic chassis. ,
A termination block including a termination processing circuit, a connection position confirmation circuit, and a termination processing confirmation circuit is connected to the terminal positions of the plurality of control signal lines and the data bus,
The termination processing circuit is connected to an open signal line terminal in the termination block, and includes a pull-down circuit or a pull-up circuit that connects an impedance element serving as a matching circuit element to a ground circuit or a constant voltage power supply line,
The connection position confirmation circuit connects a pull-up resistor or a pull-down resistor, which is added to the input / output interface circuit to obtain the connection position logic information, to the ground circuit or the constant voltage power line in the termination block. Circuit that inverts the logic,
The termination processing confirmation circuit includes a low-level or high-level logic generation circuit for transmitting the termination block connected to the microprocessor as a connection confirmation signal through the input / output unit,
The station number setting means is executed by the microprocessor at the start of operation of the microprocessor based on a control program stored in the system memory, and in the state where the connection of the terminal block is confirmed, The station number following the station number assigned to the input / output interface circuit is sequentially applied from the first-stage input / output interface circuit to the additional chassis to the input / output interface circuit at the terminal connection position confirmed by the connection position logic information. Consists of means to assign and set
During or after the execution of the sequential processing of the station number setting by the station number setting means, initial storage processing by the initial storage means is executed, and a series of information including card information and management number information for the input / output unit of each station number, The programmable controller according to claim 1, wherein the programmable controller is written and saved in the management information storage area.
前記基本筐体に内蔵された最終段の入出力ユニットまたは前記システムメモリは、前記入出力インタフェース回路のカード情報の読出しを完了したことに応答して、前記マイクロプロセッサが発生する局番設定検索信号を、後段に接続された入出力ユニット内の入出力インタフェース回路に対して送信するための選択切換手段を構成する論理回路または制御プログラムをさらに含み、
前記基本筐体に内蔵された最終段の入出力インタフェース回路のカード情報は、前記カード情報の読出しが完了しているか否かの状態を識別して、前記選択切換手段を切り換える個別完了論理情報をさらに含み、
前記増設筐体に内蔵された入出力インタフェース回路は、前記局番設定検索信号を受信して、前記局番設定の完了に応答して順次後段に接続された入出力インタフェース回路に前記局番設定検索信号を伝達するための選択切換回路が付加されていて、
前記増設筐体に内蔵された入出力インタフェース回路のカード情報は、前記局番設定が完了しているか否かの設定状態を識別して前記選択切換回路を切り換える個別完了論理情報をさらに含み、
前記局番設定手段は、前記マイクロプロセッサにより実行される手段であって、前記データバスを介して読出された前記基本筐体内の最終段の入出力インタフェース回路のカード情報内の接続位置論理情報が前記中間接続位置であった場合に実行され、前記カード情報内の機種コード情報に基づいて、次段に接続された前記増設筐体内の入出力インタフェース回路に対応した局番情報を、前記データバスを介して前記個別メモリに書込む手段からなり、前記基本筐体内の入出力インタフェース回路に付与されている局番に続く局番を、前記増設筐体内の初段の入出力インタフェース回路から、前記接続位置論理情報によって確認された終端接続位置の入出力インタフェース回路に対して順次に割付設定し、
前記マイクロプロセッサは、前記割付設定が完了した後に、前記データバスを介して局番指定を行い、指定された局番の入出力インタフェース回路との間で、前記データバスを介して前記入出力情報を交信するように構成されていることを特徴とする請求項9に記載のプログラマブルコントローラ。
In response to the completion of reading the card information of the input / output interface circuit, the input / output unit or the system memory at the final stage built in the basic casing receives a station number setting search signal generated by the microprocessor. A logic circuit or a control program that constitutes a selection switching means for transmitting to the input / output interface circuit in the input / output unit connected to the subsequent stage;
The card information of the final stage I / O interface circuit built in the basic casing is used to identify individual completion logic information for identifying whether or not the reading of the card information is completed and switching the selection switching means. In addition,
The input / output interface circuit built in the additional enclosure receives the station number setting search signal, and in response to the completion of the station number setting, sequentially outputs the station number setting search signal to the input / output interface circuit connected to the subsequent stage. A selection switching circuit for transmission is added,
The card information of the input / output interface circuit built in the additional enclosure further includes individual completion logic information for identifying a setting state as to whether or not the station number setting is completed and switching the selection switching circuit,
The station number setting means is a means executed by the microprocessor, and the connection position logic information in the card information of the final stage input / output interface circuit in the basic chassis read via the data bus is Based on the model code information in the card information, the station number information corresponding to the input / output interface circuit in the additional chassis connected to the next stage is transmitted via the data bus. The station number following the station number assigned to the input / output interface circuit in the basic chassis is obtained from the input / output interface circuit in the first stage in the additional chassis according to the connection position logic information. Sequentially assign and set the input / output interface circuit at the confirmed termination connection position,
After the assignment setting is completed, the microprocessor designates a station number via the data bus, and communicates the input / output information via the data bus with the input / output interface circuit of the designated station number. The programmable controller according to claim 9, wherein the programmable controller is configured to.
前記システムメモリは、第1の異常判定手段と、第2および第3の異常判定手段との少なくとも一方の異常判定手段と、設定異常処理手段とを有する運転前の異常判定および処理手段を構成する制御プログラムをさらに含み、
前記第1の異常判定手段は、前記終端処理確認回路による接続確認信号の論理レベルが前記終端ブロックの未接続状態を示す場合に、異常状態であることを判定する手段からなり、
前記第2の異常判定手段は、前記最終接続位置よりも以前の入出力インタフェース回路から前記カード情報が得られない場合、または、前記最終接続位置の入出力インタフェース回路が所定時間を経過しても発見されない場合に、異常状態であることを判定する手段からなり、
前記第3の異常判定手段は、送信した局番情報に対して確認返信された局番情報が不一致である場合と、前記管理番号の情報が得られない場合とにおいて、異常状態であることを判定する手段からなり、
前記設定異常処理手段は、前記第1、第2または第3の異常判定手段が異常判定した場合に機能して、前記異常状態を前記管理情報格納領域に書込み記憶するか、または、少なくとも異常発生を警報表示する手段からなることを特徴とする請求項7または請求項9に記載のプログラマブルコントローラ。
The system memory constitutes an abnormality determination and processing means before operation having first abnormality determination means, at least one abnormality determination means of second and third abnormality determination means, and setting abnormality processing means. Further including a control program;
The first abnormality determining means comprises means for determining an abnormal state when a logic level of a connection confirmation signal by the termination processing confirmation circuit indicates an unconnected state of the termination block;
The second abnormality determination means is configured to detect the card information from the input / output interface circuit before the final connection position or when the input / output interface circuit at the final connection position passes a predetermined time. When it is not found, it consists of a means to determine that it is abnormal,
The third abnormality determining means determines that there is an abnormal state when the station number information confirmed and returned to the transmitted station number information does not match and when the management number information cannot be obtained. Consisting of means,
The setting abnormality processing unit functions when the first, second, or third abnormality determining unit determines abnormality, and writes and stores the abnormal state in the management information storage area, or at least an abnormality has occurred. The programmable controller according to claim 7 or 9, comprising means for displaying an alarm.
前記システムメモリは、カード編成記憶手段、編成異常検出手段、脱落異常検出手段および前記編成異常処理手段を有する運転中の異常判定および処理手段を構成する制御プログラムをさらに含み、
前記カード編成記憶手段は、前記局番設定の完了時に、前記カード情報と前記管理番号の情報と前記局番情報との対応状態を、前記管理情報格納領域に書込み記憶する手段からなり、
前記脱落異常検出手段は、前記終端処理確認回路による接続確認信号の論理レベルに基づき、少なくとも運転開始時において前記終端ブロックが未接続状態となった場合に異常状態であることを判定する手段からなり、
前記編成異常検出手段は、局番指定して読出された入出力インタフェース回路から得られるカード情報または管理番号の情報が、前記カード編成記憶手段によって記憶されている情報と一致しているか否かを少なくとも運転開始時に判定する手段からなり、
前記編成異常処理手段は、前記編成異常検出手段が編成異常を検出した場合、または、前記脱落異常検出手段が前記終端ブロックの脱落異常を検出した場合に機能して、前記プログラマブルコントローラの作動状態を停止または現状保持するか、前記異常状態を前記管理情報格納領域に書込み記憶するか、もしくは、少なくとも異常発生を警報表示する手段からなることを特徴とする請求項7または請求項9に記載のプログラマブルコントローラ。
The system memory further includes a control program constituting an abnormality determination and processing means during operation having a card composition storage means, a composition abnormality detection means, a dropout abnormality detection means and the composition abnormality processing means,
The card organization storage means comprises means for writing and storing a correspondence state between the card information, the management number information, and the station number information in the management information storage area when the station number setting is completed,
The drop-off abnormality detecting means comprises means for determining an abnormal state when the terminal block is in an unconnected state at least at the start of operation based on the logic level of the connection confirmation signal from the termination processing confirmation circuit. ,
The knitting abnormality detection means at least determines whether the card information or the management number information obtained from the input / output interface circuit read by specifying the station number matches the information stored in the card knitting storage means. It consists of a means to judge at the start of operation,
The knitting abnormality processing means functions when the knitting abnormality detecting means detects a knitting abnormality, or when the dropping abnormality detecting means detects a dropping abnormality of the terminal block, and determines the operating state of the programmable controller. The programmable controller according to claim 7 or 9, further comprising means for stopping or maintaining the current state, writing and storing the abnormal state in the management information storage area, or displaying an alarm at least when an abnormality has occurred. controller.
前記システムメモリは、点検時期判定手段を構成する制御プログラムをさらに含み、
前記点検時期判定手段は、前記プログラムメモリに格納されているシーケンスプログラムにより実行されて、点検指令フラグがセットされているか否かを判定し、前記点検フラグがセットされている場合に、前記脱落異常検出手段および前記編成異常検出手段の少なくとも一方を実行して、異常状態が検出された場合には、前記編成異常処理手段を実行する手段からなることを特徴とする請求項12に記載のプログラマブルコントローラ。
The system memory further includes a control program that constitutes an inspection time determination means,
The inspection time determination means is executed by a sequence program stored in the program memory to determine whether or not an inspection command flag is set. When the inspection flag is set, the drop abnormality is detected. 13. The programmable controller according to claim 12, comprising: means for executing said knitting abnormality processing means when an abnormal state is detected by executing at least one of detection means and said knitting abnormality detection means. .
JP2006336560A 2006-12-14 2006-12-14 Programmable controller Expired - Fee Related JP4376892B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006336560A JP4376892B2 (en) 2006-12-14 2006-12-14 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006336560A JP4376892B2 (en) 2006-12-14 2006-12-14 Programmable controller

Publications (2)

Publication Number Publication Date
JP2008152317A JP2008152317A (en) 2008-07-03
JP4376892B2 true JP4376892B2 (en) 2009-12-02

Family

ID=39654460

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006336560A Expired - Fee Related JP4376892B2 (en) 2006-12-14 2006-12-14 Programmable controller

Country Status (1)

Country Link
JP (1) JP4376892B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5843932B1 (en) * 2014-09-12 2016-01-13 三菱電機株式会社 Programmable controller
JP5829737B1 (en) * 2014-09-12 2015-12-09 三菱電機株式会社 Programmable controller
JP6465053B2 (en) 2016-03-14 2019-02-06 オムロン株式会社 Slave device, slave device control method, information processing program, and recording medium
JP6874438B2 (en) 2017-03-14 2021-05-19 オムロン株式会社 Slave device, control method of slave device, information processing program, and recording medium
JP7411538B2 (en) 2020-12-17 2024-01-11 株式会社日立産機システム PLC management system and management method, and PLC

Also Published As

Publication number Publication date
JP2008152317A (en) 2008-07-03

Similar Documents

Publication Publication Date Title
CN1953278B (en) Electrical connector and process for decentralized storage of the parameters of a sensor
JP4376892B2 (en) Programmable controller
CN103124938B (en) Method and system for upgrading runtime environment of programmable logic controller
JP5225838B2 (en) Memory having data identical to the data for the drive control of the machine and for the drive control of the machine
KR100932057B1 (en) PL
JPH04152403A (en) Starting of assembly to be connected to electronic control unit
CN107924443A (en) Firmware upgrade method and its system for the control device of process control
CN103294566A (en) Information processing apparatus, information processing method, and information processing program
CN107924171B (en) Slave device, control method for slave device, and recording medium
JP2017163508A (en) Master slave control system, method for controlling master slave control system, information processing program, and recording medium
JP4916170B2 (en) Programmable display, server and program thereof
EP3709149A1 (en) Off-board flash memory
JP2017167596A (en) Slave unit, control method of slave unit, information processing program, and record medium
WO2021005825A1 (en) Control program and method
JP2017167593A (en) Relay device, relay device control method, control program, and recording medium
US9965599B2 (en) Function setting method
JP4290710B2 (en) Unit-type programmable controller
JP2020147250A (en) Electronic control device
JP4569838B2 (en) Controller system setting method and controller system monitoring method
JP2007193843A (en) Safety controller and controller system, connection method of controller and control method of the controller system
CN104575601A (en) Apparatus for duplicating usage parameters written in memory of industrial tool
US7460918B2 (en) Devices and methods for updating the programming of a system for controlling an electric rotary machine
JP4841163B2 (en) Security terminal
JP2001156728A (en) Electronic device and method for outputting operating state of electronic device
JP5829737B1 (en) Programmable controller

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090908

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090910

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090909

R150 Certificate of patent or registration of utility model

Ref document number: 4376892

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120918

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130918

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees