JPS62117011A - Channel display device for input and output unit - Google Patents

Channel display device for input and output unit

Info

Publication number
JPS62117011A
JPS62117011A JP60257963A JP25796385A JPS62117011A JP S62117011 A JPS62117011 A JP S62117011A JP 60257963 A JP60257963 A JP 60257963A JP 25796385 A JP25796385 A JP 25796385A JP S62117011 A JPS62117011 A JP S62117011A
Authority
JP
Japan
Prior art keywords
input
channel
output unit
output
unit
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.)
Pending
Application number
JP60257963A
Other languages
Japanese (ja)
Inventor
Haruki Masuda
増田 治樹
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60257963A priority Critical patent/JPS62117011A/en
Publication of JPS62117011A publication Critical patent/JPS62117011A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve the working efficiency at the user side by knowing the channel numbers of input/output units even in a dark place without counting the number of rack devices and those input/output units. CONSTITUTION:The number of channels are detected for input/output units 11-1-11-n respectively before execution of a main body program. At the same time, these detected channel numbers are integrated to obtain the head channel number value of those units 11-1-11-n respectively. These channel number values are displayed on each display device 12 of units 11-1-11-n. Thus it is possible to know the channel numbers of the units 11-1-11-n just with a single glance given to each device 12.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、プログラマブルコントローラに取り付けられ
た入出力ユニットにチャネルナンバを表示させる入出力
ユニットのチャネル表示装置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to a channel display device for an input/output unit that displays a channel number on an input/output unit attached to a programmable controller.

〈発明の概要〉 本発明による入出力ユニットのチャネル表示装置は、プ
ログラマブルコントローラ本体に取り付けられた各入出
力ユニットのチャネル数をチャネル数検出手段によって
検出し、この検出結果に基づきチャネルナンバ表示手段
によって入出力ユニットの表示器にチャネルナンバを表
示させることにより、これら入出力ユニットが装着され
ているラック番号およびユニット番号を知らなくてもこ
れら入出力ユニットのチャネルナンバを知ることができ
るようにするものである。
<Summary of the Invention> A channel display device for an input/output unit according to the present invention detects the number of channels of each input/output unit attached to a programmable controller main body by means of a channel number detection means, and detects the number of channels of each input/output unit attached to a programmable controller main body by means of a channel number display means based on the detection result. By displaying the channel number on the display of the input/output unit, it is possible to know the channel number of these input/output units without knowing the rack number and unit number in which these input/output units are installed. It is.

〈従来の技術〉 シーケンス処理を実行するプログラマブルコントローラ
(以下これをPCと略称する)では、このPCの主要部
であるプログラマブルコントロー2本体(PC本体)に
入出力ユニットを装着し、この入出力ユニットによって
前記PC本体の信号と、このPC本体に入力される信号
およびこのPC本体によって制御される機器の信号との
マツチングをとったり、信号の変換を行なったシしてい
る。
<Prior art> In a programmable controller (hereinafter referred to as PC) that executes sequence processing, an input/output unit is installed in the programmable controller 2 body (PC body), which is the main part of this PC, and this input/output unit Accordingly, the signals from the PC main body are matched with the signals input to the PC main body and the signals of devices controlled by the PC main body, and the signals are converted.

第6図はこのような入出力ユニットを用いたPCのシス
テム例金示す正面図である。
FIG. 6 is a front view showing an example of a PC system using such an input/output unit.

この図に示すシステムは、CPU装fiilK複数のラ
ック装置2〜6を接続したものであり、CPU装置1の
CPU本体(PC本体)7によってこのCPU装置装置
上び各ラック装置2〜6に装着された多数の入出力ユニ
ット8−1〜8−nを制御するようになっている。
The system shown in this figure is a system in which a plurality of CPU rack devices 2 to 6 are connected, and a CPU main body (PC main body) 7 of the CPU device 1 is installed on the CPU device and each rack device 2 to 6. It is designed to control a large number of input/output units 8-1 to 8-n.

〈発明が解決しようとする問題点〉 ところでこの種のシステムにおいては、各入出力ユニッ
ト8−1〜8−n毎に数チャネルが割り当てられている
ため、デパック時や入出力ユニットの交換時のように、
特定の入出力ユニットのチャネルナンバを知りたいとき
や特定のチャネルがどの入出力ユニットに割り当てられ
ているか知りたいときには、番号が小さいラック装置に
入っている入出力ユニットを左から数えながらこの入出
力ユニットに入っているチャネル数を暗算によって加算
しなければ、特定の入出力ユニットのチャネルナンバを
知ったり、特定のチャネルがどの入出力ユニットに入っ
ているか知ることができなかった。
<Problems to be Solved by the Invention> However, in this type of system, several channels are assigned to each input/output unit 8-1 to 8-n. like,
When you want to know the channel number of a specific input/output unit or to which input/output unit a specific channel is assigned, count the input/output units in the rack device with the lowest number from the left and select this input/output unit. It was not possible to know the channel number of a specific input/output unit or which input/output unit a specific channel was included in without mentally adding up the number of channels included in the units.

このため、このシステムが設けられている場所が暗いと
きやラック装置の数が多いときには、ラック数や入出力
ユニット数を数え間違えて入出力ユニットのチャネルナ
ンバを間違えて認識してしまい、これによってデパック
作業等の作業効率が下がったり、別の入出力ユニットを
交換してしまうなどという問題があった。
For this reason, when this system is installed in a dark place or when there are a large number of rack devices, it is easy to miscount the number of racks and input/output units and misrecognize the channel numbers of the input/output units. There were problems such as reduced work efficiency during depacking work and the need to replace another input/output unit.

このような不都合を除くために、このような7ステムに
おいては、CPU装置1に設けられたプログラムコンソ
ール9によって各入出力ユニット8−1〜8−nを適当
にピックアップすることにょ広このプログラムコンソー
ル9に各入出力ユニットのデータを読み出させて、第7
図に示すように、このピックアップした入出力ユニット
のチャネルナンバN−CHをこのときのラックナンバN
−L。
In order to eliminate such inconvenience, in such a 7-stem system, each input/output unit 8-1 to 8-n is appropriately picked up by a program console 9 provided in the CPU device 1. 9 to read the data of each input/output unit, and
As shown in the figure, the channel number N-CH of this picked up input/output unit is set to the rack number N at this time.
-L.

ユニットナンバN−U、入出力情報りと関連さゼて表示
させる方法もとられている。
There is also a method of displaying unit numbers NU and input/output information in association with each other.

しかしながらこのような方法では、各入出力ユニットに
割g当てられているチャネル数を加算するという作業を
省くことができるが、ラック装置および入出力ユニット
を実際に数えてみなければ、目的の入出力ユニットがど
こにあるのか分らないという問題がある。
However, although this method eliminates the task of adding up the number of channels assigned to each input/output unit, it is necessary to actually count the rack devices and input/output units to determine the desired input/output unit. There is a problem in that it is not possible to know where the output unit is.

本発明は上記の事情に鑑み、ラック装置、入出力ユニッ
トの舷を数えることなく、暗い場所でも入出力ユニット
のチャネルナンバを知ることができ、これによってユー
ザ側の作業効率を向上させることができる入出力ユニッ
トのチャネル表示装置を提供することを目的としている
In view of the above circumstances, the present invention makes it possible to know the channel number of an input/output unit even in a dark place without having to count the sides of the rack device or input/output unit, thereby improving work efficiency on the user side. The purpose is to provide a channel display device for input/output units.

〈問題点を解決するための手段〉 上記問題点を解決するため本発明による入出力ユニット
のチャネル表示装置では、プログラマブルコントローラ
本体に取り付けられ、このプログラマブルコントローラ
本体と外部機器との間のマツチングをとる入出力ユニッ
トのチャネルナンバを表示する入出力ユニットのチャネ
ル表示装置において、各入出力ユニットのチャネル数を
検出するチャネル数検出手段と、このチャネル数検出手
段の検出結果に基づいて前記各入出力ユニットに設けら
れた表示器にチャネルナンバを表示させるチャネルナン
バ表示手段とを備えたことを特徴としている。
<Means for Solving the Problems> In order to solve the above-mentioned problems, the input/output unit channel display device according to the present invention has a channel display device that is attached to a programmable controller main body and that matches between the programmable controller main body and external equipment. A channel display device for an input/output unit that displays the channel number of the input/output unit includes a channel number detection means for detecting the number of channels of each input/output unit, and a channel number detection means for detecting the number of channels of each input/output unit; The present invention is characterized by comprising a channel number display means for displaying a channel number on a display provided at the channel number.

〈実施例〉 第1図は本発明による入出力ユニットのチャネル表示装
置の一実施例を示す回路ブロック図である。
<Embodiment> FIG. 1 is a circuit block diagram showing an embodiment of a channel display device for an input/output unit according to the present invention.

この図に示す装置は、PC本体10によって各入出カニ
;ツ) 11−1〜11−nの各チャネル数を各々読み
出してこれら各入出力ユニット11−1〜11−nのチ
ャネルナンバを求め、これを各入出力二二ッ) 11−
1〜11−nに供給してこれらに設けられた各表示器1
2に各チャネルナンバを表示させるように構成されてお
り、PC本体lOの内部には上述したチャネル数の読み
出し処理(チャネル数検出機能)およびチャネルナンバ
の表示処理(チャネルナンバ表示機能)を実行するCP
UI 3と、このCPU13の作業エリアとなるメモリ
14とが設けられている。
The device shown in this figure reads out the number of input and output channels 11-1 to 11-n using the PC main body 10 to determine the channel numbers of each input/output unit 11-1 to 11-n. Connect this to each input/output (22) 11-
1 to 11-n and each indicator 1 provided thereon.
2 is configured to display each channel number, and the inside of the PC main unit 10 executes the above-mentioned channel number readout process (channel number detection function) and channel number display process (channel number display function). C.P.
A UI 3 and a memory 14 serving as a work area for the CPU 13 are provided.

この場合、CPU13はマイクロプロセッサ等の演算装
置と、この演算装置のシステムプログラムが格納された
ROM(リード・オンリ・メモリ)と、前記演算装置の
動作を規制するユーザプログラムが格納されたRAM(
ランダム・アクセス・メモリ)またはP−ROM(プロ
グラマブル・リード・オンリ・メモリ)と、を含むもの
であり、前記システムプログラムには前記演算装置に前
記チャネル数検出機能、チャネルナンバ表示機能を持た
せるプログラムが付加されている。
In this case, the CPU 13 includes an arithmetic device such as a microprocessor, a ROM (read-only memory) in which a system program for the arithmetic device is stored, and a RAM (read-only memory) in which a user program regulating the operation of the arithmetic device is stored.
Random access memory) or P-ROM (programmable read-only memory), and the system program includes a program for providing the arithmetic unit with the channel number detection function and channel number display function. is added.

また前記メモリ14はRAM等から構成されるものであ
り、その一部には第2図に示すユニット・チャネル情報
テーブル15が設けられている。
The memory 14 is composed of a RAM, etc., and a part thereof is provided with a unit/channel information table 15 shown in FIG. 2.

ユニット・チャネル情報テーブル15は前記CPU13
のチャネル数検出機能によって作成されるものであり、
その主テーブル内には前記入出力二二ツ) 11−1〜
11−nの各配置アドレス(ユニットアドレス)と、こ
れら各入出力ユニット11−1〜11−nの各先頭チャ
ネルナンバとが対応して書き込まれるとともに、この主
テーブルの最後にはテーブル最終コード(例えば、FF
)が付加されている。
The unit/channel information table 15 is
It is created by the channel number detection function of
In that main table, there are the inputs and outputs (22) 11-1~
Each arrangement address (unit address) of 11-n and each leading channel number of each of these input/output units 11-1 to 11-n are written in correspondence, and at the end of this main table, a table final code ( For example, FF
) is added.

また前記各入出力ユニット11−1〜11−n内には、
第3図に示す如く前記表示器12以外に、ゲートアレイ
16と、入出力部17とが設けられている。
Moreover, in each of the input/output units 11-1 to 11-n,
As shown in FIG. 3, in addition to the display 12, a gate array 16 and an input/output section 17 are provided.

ゲートアレイ16は前記CPU13から送られてきたデ
ータおよびステータスを入出力部17へ供給したり、前
記CPUI 3からの要求に応じて入出力部17のデー
タまたはステータスを取9込んでCPUI 3側へ伝送
したりするように構成されたものであり、データ端子D
 O−D 7と、アドレス端子AO,AI、A2.A9
と、チップ選択端子面と、入出力端子I10とを備えて
いる。
The gate array 16 supplies the data and status sent from the CPU 13 to the input/output section 17, and receives the data or status of the input/output section 17 in response to a request from the CPU 3 and sends it to the CPU 3 side. It is configured to transmit data, and the data terminal D
O-D7 and address terminals AO, AI, A2. A9
, a chip selection terminal surface, and an input/output terminal I10.

この場合、データ端子DO〜D7は、データバスを介し
て前記PC本体10側に設けられたCPU13のデータ
端子DO〜D7に接続されており、ゲートアレイ16は
このデータ端子DO〜D7を介して前記CPU13とデ
ータ、ステータスのへ受信を行なう。
In this case, the data terminals DO to D7 are connected to the data terminals DO to D7 of the CPU 13 provided on the PC main body 10 side via a data bus, and the gate array 16 is connected to the data terminals DO to D7 via the data terminals DO to D7. Data and status are received from the CPU 13.

また前記チップ選択端子C8は前記CPUI 3の入出
力ユニット選択端子(この端子は、例えば前記CPU1
3のアドレス端子の出力をデコードしてI/Qユニット
選択信号を発生するデコーダの出力端などである)に接
続されるものであり、前記CPU13がこのチャネル選
択端子C317CI10ユニツト選択信号I OCHを
供給したときにゲートアレイ16がオン状態となる。
The chip selection terminal C8 is an input/output unit selection terminal of the CPU 3 (this terminal is, for example, the input/output unit selection terminal of the CPU 1).
The CPU 13 supplies the channel selection terminal C317CI10 with the unit selection signal IOCH. At this time, the gate array 16 is turned on.

また、前記ゲートアレイ16のアドレス端子AO。Also, an address terminal AO of the gate array 16.

AI、A2.A9はアドレスバスを介して前記CPU1
3のアドレス端子AO・、AI、A2.A9に各々接続
されている。そしてこの場合、アドレス端子AI、A2
は前記CPU13のアドレス端子AI、A2からチャネ
ル選択データが出力されたとき、これを受ける端子でラ
シ、前記ゲートアレイ16は前記チャネル選択データに
基づいてこの入出力ユニット11にセットされている4
つのチャネル、つまり前記入出力部17にセットされて
いる4つのチャネルのいずれか1つを選択する0また、
前記ゲートアレイ16のアドレス端子A9は前記CPU
13のアドレス端子A9からデータ/ステータス情報(
“1″または°O”の信号)が出力されたとき、これを
受ける端子であり、前記ゲートアレイ16はこのアドレ
ス端子A9に供給された信号に基づいて前記データ端子
DO−D7に供給された並列信号をデータまたはステー
タス情報としてその入出力端子I/Qから出力し、これ
を入出力部17に供給したり、入出力端子I/Qを介し
てこの入出力部17からデータまたはステータス情報を
読み出してこれをデータ端子Do−D7から出力したり
する。
AI, A2. A9 is connected to the CPU1 via an address bus.
3 address terminals AO・, AI, A2. Each is connected to A9. And in this case, address terminals AI, A2
is a terminal that receives channel selection data when it is output from the address terminals AI and A2 of the CPU 13, and the gate array 16 is set in the input/output unit 11 based on the channel selection data.
0 channels, that is, any one of the four channels set in the input/output section 17;
Address terminal A9 of the gate array 16 is connected to the CPU
Data/status information (
This is a terminal that receives a signal (“1” or °O” signal) when it is output, and the gate array 16 receives the signal supplied to the data terminal DO-D7 based on the signal supplied to the address terminal A9. Output the parallel signal as data or status information from the input/output terminal I/Q and supply it to the input/output section 17, or output data or status information from the input/output section 17 via the input/output terminal I/Q. It reads out and outputs it from the data terminal Do-D7.

また、前記ゲートアレイ16のアドレス端子AOは前記
CPUI 3のアドレス端子AOから前記アドレス端子
AI、A2によって選択されたチャネルの上位8ビツト
または下位8ビツトのいずれかを指定するロービット/
ハイビット選択信号が出力されたときに、これを受ける
端子であり、前記ゲートアレイ16はこのアドレス端子
AOに供給された信号に基づいて前記データ端子Do−
D7に供給された8ビツトの並列信号を16ビツトの上
位8ビツトまたは下位8ビツトとして前記人出刃部17
へ供給したり、この入出力部17から16ビツトの上位
8ビツトまたは下位8ビツトの並列信号を読み出して、
これを前記データ端子DO〜D7から出力したシする。
Further, the address terminal AO of the gate array 16 is connected to a low bit/bit signal which specifies either the upper 8 bits or the lower 8 bits of the channel selected by the address terminals AI and A2 from the address terminal AO of the CPU 3.
This is a terminal that receives a high bit selection signal when it is output, and the gate array 16 operates based on the signal supplied to the address terminal AO from the data terminal Do-
The 8-bit parallel signal supplied to D7 is used as the upper 8 bits or the lower 8 bits of the 16 bits, and
The upper 8 bits or the lower 8 bits of the 16-bit parallel signal are read out from this input/output section 17.
This is outputted from the data terminals DO to D7.

また前記入出力部17は4つのチャネルを有しかつこれ
ら各チャネルが各々16ビツトで構成されるものであシ
、前記ゲートアレイ16を介して供給される前記CPU
I 3の出力(データ、ステータス)に基づいて外部機
器(図示略)を制御したり、この外部機器等に設けられ
た七ン丈からの出力を受けて、これを前記ゲートアレイ
16を介して前記CPUI 3に供給したシする。
Further, the input/output section 17 has four channels, each of which is composed of 16 bits, and the CPU which is supplied via the gate array 16
It controls an external device (not shown) based on the output (data, status) of the I3, or receives an output from a 7-inch device installed in this external device and sends it through the gate array 16. The data supplied to the CPUI 3 is as follows.

また前記表示器12は前記CPU13から表示データ(
この表示データはチャネルナンバを示す)を供給さ扛た
ときに、これを表示するものであり、前記CPtJ13
側からライト信号WRIT、セグメントオン信号SEG
および前記I/Qユニット選択信号I OCHを供給さ
れたときにオン状態となるアンドゲート18と、このア
ンドゲート18がオンしたときにオン状態となって前記
CPUI 3が出力する8ビツトの表示データを取り込
んで、セグメント表示器(例えば、発光型の7−セグメ
ント表示器)20に表示させ、またそのリセット端子R
3Tにリセット信号(“O”信号)が供給されたときに
前記セグメント表示器20を消灯させる表示ドライバ1
9とを備えて構成されている。
Further, the display device 12 receives display data (
This display data is displayed when the channel number (indicating the channel number) is supplied to the CPtJ13.
Write signal WRIT, segment on signal SEG from the side
and an AND gate 18 that is turned on when the I/Q unit selection signal IOCH is supplied, and 8-bit display data that is turned on when the AND gate 18 is turned on and output by the CPU 3. is taken in and displayed on the segment display (for example, a light-emitting 7-segment display) 20, and its reset terminal R
Display driver 1 that turns off the segment display 20 when a reset signal (“O” signal) is supplied to 3T
9.

この場合、前記表示ドライバ19はそのリセット端子R
8Tが抵抗22を介して+5vにプルアップされたもの
であシ、前記PC本体10@に設けられたスイッチ23
が押されたy、cpu13がリセット信号を出力したり
してオアゲート24と、インバータ25とから成るリセ
ット回路26が@θ″信号を出力したときにリセットさ
れる。
In this case, the display driver 19 has its reset terminal R.
8T is pulled up to +5V via a resistor 22, and a switch 23 provided on the PC body 10@
When y is pressed, the CPU 13 outputs a reset signal, and the reset circuit 26 consisting of the OR gate 24 and the inverter 25 outputs the @θ'' signal.

また前記セグメント″表示器20は第4図に示す如く2
つのセグメント表示素子27a 、 27bを備えて構
成されるものであシ、前記表示ドライバ19かも表示デ
ータを供給され念ときにこれを点灯表示する。
In addition, the segment'' display 20 has two segments as shown in FIG.
The display driver 19 is also supplied with display data and lights up to display it in case of emergency.

次に、第5図(A)に示すメインフローチャートおよび
第5図(B)に示すチャネルナンバの割付はルーチンを
参照しながらこの実施例の動作を説明する。
Next, the operation of this embodiment will be explained with reference to the main flowchart shown in FIG. 5(A) and the channel number assignment routine shown in FIG. 5(B).

まずこのPCの電源スィッチがオンされれば、PC本体
10にあるCPU13はステップSTIでセグメントオ
ン信号S EG、ライト信号WRITt−順次くり返し
出力しながらI/Qユニット選択信号l0CHを順次イ
ンクリメント(またはデクリメント)シて各入出力ユニ
ツ) 11−1〜11−nの表示器12を順次選択する
とともにミこれらの表示器12に零データ(表示をクリ
アさせるデータ)を供給してこれらの表示をクリアさせ
る。
First, when the power switch of this PC is turned on, the CPU 13 in the PC main body 10 sequentially increments (or decrements) the I/Q unit selection signal 10CH while repeatedly outputting the segment on signal SEG and write signal WRITt in step STI. ) and each input/output unit) 11-1 to 11-n, the display units 12 are sequentially selected, and zero data (data for clearing the display) is supplied to these display units 12 to clear these displays. .

次いで、CPU13はステップST2でチャネルナンバ
割付はルーチン30にジャンプし、このルーチン30の
ステップST3でこのCPUI 3内にあるユニットア
ドレスカウンタの値UNを初期値(例えば“l″)にセ
ットするとともに、チャネルカラ/りの値CNを”0′
′にする。
Next, in step ST2, the CPU 13 jumps to the channel number assignment routine 30, and in step ST3 of this routine 30, sets the value UN of the unit address counter in the CPU 3 to an initial value (for example, "l"), Set the value CN of channel color to “0”
’.

次いで、CPU13はステップST4でこのユニットア
ドレスカウンタの値UNに対応したアドレスデータ(ま
たは他のデータ)を出力させて、最初の入出力二二ツ)
 11−1にI/Qユニット選択イβ号l0CHを供給
するとともに、そのアドレス端子AO〜A2 、A9か
ら1チヤネル目のデータを読み出すのに必要な情報(デ
ータ)を出力し、この入出力二二ツ)11−1の1チヤ
ネル目のデータを読み出す。
Next, in step ST4, the CPU 13 outputs the address data (or other data) corresponding to the value UN of the unit address counter, and performs the first input/output (22).
11-1 is supplied with the I/Q unit selection signal β number 10CH, and the information (data) necessary to read the data of the first channel is output from the address terminals AO to A2 and A9. 2) Read the data of the first channel of 11-1.

そしてもしここで、このデータが得られれば、CPUI
 3はこの入出力ユニット1l−1が装着さnン卜して
、この値をこの入出力ユニット11−1の先頭チャネル
ナンバ値として記憶し、次のステップST6でこの入出
力ユニット11−1の2チヤネル目のデータを読み出す
And here, if we get this data, the CPU
3, this input/output unit 11-1 is installed, this value is stored as the first channel number value of this input/output unit 11-1, and in the next step ST6, this value is stored as the first channel number value of this input/output unit 11-1. Read the data of the second channel.

そしてこのデータが得られれば、CPU13はこの入出
力ユニット11−1が少なくとも2チャネル備えている
と判断して、次のステップST7で前記チャネルカウン
タの値CNを11”だけインクリメントする。
If this data is obtained, the CPU 13 determines that the input/output unit 11-1 has at least two channels, and increments the value CN of the channel counter by 11'' in the next step ST7.

次いで、CPU13はステップST8 、ST9および
ステップ5TIO、STI 1において入出力ユニット
11−1が3チヤネル目、4チヤネル目を有しているか
どうかをチェックし、もしこれが3チヤネル目を有して
いれば、前記チャネルカウンタの値CNt−”1”だけ
インクリメントし、また4チヤネル目を有していれば前
記チャネルカウンタの値CNをさらに11”だけインク
リメントする。
Next, the CPU 13 checks whether the input/output unit 11-1 has the third channel and the fourth channel in steps ST8, ST9 and steps 5TIO and STI1, and if it has the third channel, , the channel counter value CNt-"1" is incremented, and if there is a fourth channel, the channel counter value CN is further incremented by 11".

次いで、CPU13はステップSTI 2で前記ユニッ
トアドレスカウンタの値UNと前記ステップST5で記
憶した先頭チャネルナンバ値とをメモリ14のユニット
・チャネル情報テーブル15の先頭番地15−1に書き
込んだ後、ステップ5T13でこの入出力ユニツ)11
−1が最終ユニットかどうかをチェックする。
Next, in step STI 2, the CPU 13 writes the value UN of the unit address counter and the first channel number value stored in the above step ST5 to the first address 15-1 of the unit/channel information table 15 in the memory 14, and then writes the value UN of the unit address counter in step ST13. This input/output unit) 11
Check whether -1 is the final unit.

そしてこの場合、この入出力ユニツ) 11−1が最終
ユニットではないので、CPU13はこのステップ5T
13からステップSTI 4へ分岐し、ここでユニット
アドレスカウンタの値UNを“1″だけインクリメント
して前記ステップST4へ戻る。
In this case, since this input/output unit (11-1) is not the final unit, the CPU 13
13, the process branches to step STI4, where the value UN of the unit address counter is incremented by "1", and the process returns to step ST4.

また上述した説明においては、人出カニニット11−1
が4チャネル備えているものとして説明したが、もしこ
の入出力ユニツH1−1が1チヤネルだけ備えている場
合、1,2チヤネルだけ備えている場合、1,2.3チ
ヤネルだけ備えている場合には、CPUI 3はステッ
プST6 、Sr1 。
In addition, in the above explanation, the crowd crab knit 11-1
The explanation has been made assuming that the input/output unit H1-1 is equipped with 4 channels, but if this input/output unit H1-1 is equipped with only 1 channel, only channels 1 and 2, or only channels 1 and 2.3. Then, the CPU 3 performs steps ST6 and Sr1.

5TIOでこれを検出して前記チャネルカウンタの値C
NをインクリメントすることなくステップSTI 2へ
分岐し、前記ユニット・チャネル情報テーブル15の先
頭番地15−1にこのときのユニットアドレスカウンタ
の値UNと前記先頭チャネルナンバ値を書き込む。
5TIO detects this and sets the value C of the channel counter.
The program branches to step STI 2 without incrementing N, and writes the current unit address counter value UN and the first channel number value to the first address 15-1 of the unit/channel information table 15.

また上述した説明においては入出力ユニット11−1が
装着されているものとして説明したが、もしこの入出力
ユニット11−1が装着されていないときには、CPU
13がステップST4でこれを検出し、前記ステップS
T5〜5T12をスキップするので、前記ユニット・チ
ャネル情報テーブル15にはこの入出力ユニット11−
1に対応するデ・りは記憶されない。
Furthermore, in the above explanation, it is assumed that the input/output unit 11-1 is installed, but if this input/output unit 11-1 is not installed, the CPU
13 detects this in step ST4, and the step S
Since T5 to T12 are skipped, this input/output unit 11- is included in the unit/channel information table 15.
The value corresponding to 1 is not stored.

次いで、この入出力二二ツ)11−1のチャネル数検出
動作が終了すれば、CPU13は次の入出力ユニット1
1−2のチャネル数検出動作を行なう。
Next, when the operation of detecting the number of channels of the input/output unit 11-1 is completed, the CPU 13 detects the number of channels of the input/output unit 11-1.
1-2, the channel number detection operation is performed.

この動作では、まずステップST4でこの入出力二二ツ
) 11−2が装着されているかどうかがチェックされ
、もしこれが装着されていれば、ステップST5におい
てチャネルカウンタの値CNがインクリメントされて、
これが先頭チャネルナンバ値として記憶されるとともに
、ステップST6 。
In this operation, it is first checked in step ST4 whether the input/output 22) 11-2 is installed, and if it is installed, the value CN of the channel counter is incremented in step ST5.
This is stored as the first channel number value, and the process proceeds to step ST6.

Sr1 、STI Oにおいてこの入出力ユニット11
−2のチャネル数検出が行なわれ、この検出結果に対応
してステップST7 、Sr1 、STI 1において
チャネルカウンタの値CNがインクリメントされる。
Sr1, this input/output unit 11 in STI O
-2 channel number detection is performed, and the value CN of the channel counter is incremented in steps ST7, Sr1, and STI1 in accordance with this detection result.

この場合、チャネルカウンタは、最初、前記入出力ユニ
ツ) 11−1のチャネル数の値を保持しているので、
この入出力ユニット11−2のチャネル数検出動作を終
了し之ときには、前記入出力ユニット11−1のチャネ
ル数とこの入出力ユニット11−2のチャネル数とを積
算した値がチャネルカウンタに保持される。
In this case, the channel counter initially holds the value of the number of channels of the input/output unit (11-1), so
When the operation of detecting the number of channels of the input/output unit 11-2 ends, the value obtained by integrating the number of channels of the input/output unit 11-1 and the number of channels of this input/output unit 11-2 is held in the channel counter. Ru.

この後、CPUI3はステップSTI 2でユニットア
ドレスカウンタの値UNと前記ステップST5で記憶し
たこの入出力ユニット11−2の先頭チャネルナンバ値
をユニット・チャネル情報チー、。
Thereafter, in step STI 2, the CPU 3 stores the value UN of the unit address counter and the first channel number value of this input/output unit 11-2 stored in step ST5 as a unit/channel information channel.

プル15の前記入出力ユニツl−11−1の情報が記憶
、1されている番地15−1の次番地15−2に記憶さ
せる。
The information of the input/output unit l-11-1 of the pull 15 is stored at the address 15-2 next to the address 15-1 where 1 is stored.

この後、CPU13はステップ5T13でこの入出力ユ
ニツ)11−2が最終ユニットかどうかをチ前記ステッ
プST4へ戻る、 以下、上述した動作をくシ返し実行して残りの入出力ユ
ニット11〜3〜11−nのユニットナンバとチャネル
ナンバとを求めて、これらをユニット・チャネル情報テ
ーブル15に順次記憶させる。
After this, the CPU 13 checks in step 5T13 whether this input/output unit 11-2 is the final unit or not, and returns to step ST4. The unit number and channel number of 11-n are determined and stored in the unit/channel information table 15 in sequence.

そして最終ユニットである入出力ユニツ)11−nのユ
ニットナンバとチャネルナンバとをユニット・チャネル
情報テーブル15に書き込んだ後、ステップ5T13に
おいて、この入出力ユニット11−nが遺終ユニットで
あることを検知して、前記二二ット・チャネル情報テー
ブル15の最終番地に最終コード(値“FF”)を書き
込んだ後、メインフローのステップSτ15へ戻シ、ユ
ーザープログラムを含む本体プログラムを実行する。
After writing the unit number and channel number of the final unit (input/output unit) 11-n into the unit/channel information table 15, in step 5T13, it is determined that this input/output unit 11-n is the final unit. After detecting the detection and writing the final code (value "FF") to the final address of the 22-bit channel information table 15, the process returns to step Sτ15 of the main flow, and the main program including the user program is executed.

次いで、CPU13はステップ5T16で表示オンスイ
ッチ(図示略)がオン/オフされたかどうかをチェック
し、もしこれがオフされていれば、ステップSTI 7
においてリセット信号を出力して全入出力ユニツ) 1
1−1〜11−nの表示器12をオフさせる。また前記
表示オンスイッチがオンされていれば、CPU13はス
テップSTI 7において前記リセット信号の出力を停
止するとともに、前記ユニット・チャネル情報テーブル
15の各ユニットナンバ、チャネルナンバを読み出して
、このユニットナンバに対応したI/Qユニット選択信
号l0CH,およびセグメントオン信号S EG、ライ
ト信号WRITを出力して入出力二二ツ) 11−1〜
11−nを順次選択し、これら入出力ユニッ) 11−
1〜11−nの各表示器12に各々そのチャネルナンバ
を表示させる。
Next, the CPU 13 checks whether a display on switch (not shown) has been turned on/off in step 5T16, and if it has been turned off, the process proceeds to step STI7.
output a reset signal to all input/output units) 1
The display devices 12 of 1-1 to 11-n are turned off. Further, if the display on switch is turned on, the CPU 13 stops outputting the reset signal in step STI 7, reads each unit number and channel number from the unit/channel information table 15, and sets this unit number to Output the corresponding I/Q unit selection signal 10CH, segment on signal SEG, and write signal WRIT for input/output)
11-n sequentially, and these input/output units) 11-
Each of the displays 12 from 1 to 11-n is caused to display its channel number.

また前記ステップSTI 6において、前記表示オンス
イッチがオン/オンされていないときには、CPU13
はこのステップ5T16から前記ステップ5T15へ戻
シ、本体プログラムを実行する。
Further, in step STI 6, when the display on switch is not turned on/on, the CPU 13
The program returns from step 5T16 to step 5T15 and executes the main program.

このようにこの実施例においては、本体プログラムの実
行に先だって各入出力ユニツ) 11−1〜11−nの
各チャネル数を検出するとともに、これらのチャネル数
を各々積算して各入出力二二ツ) 11−1〜11−n
の先頭チャネルナンバ値を求め、この後これらを対応す
る各入出力ユニツ) 11−1〜11−nの表示器12
に表示させるようにしたので、これら各表示器12を一
瞥しただけで各入出力ユニット11−1〜11−nの一
チャネルナンバを知ることができる。
As described above, in this embodiment, the number of channels of each input/output unit (11-1 to 11-n) is detected prior to execution of the main program, and each input/output unit (22) is integrated by integrating the number of channels. ) 11-1 to 11-n
After that, calculate the first channel number value of , and then display these on the corresponding input/output units (11-1 to 11-n).
Since the channel number of each of the input/output units 11-1 to 11-n can be known just by glancing at each of these displays 12.

またこの実施例においては、表示オンスイッチがオンさ
れているときだけ、各表示器12にチャネルナンバが表
示されるようにしているので、これを通常オフにしてお
けば、各表示器12の消費電力を極力押えることができ
る。この場合、各チャネルナンバを知シ九いときだけ、
表示オンスイッチをオンすれば良い。
In addition, in this embodiment, the channel number is displayed on each display 12 only when the display on switch is turned on, so if this is normally turned off, the consumption of each display 12 is reduced. You can save electricity as much as possible. In this case, only when you don't know each channel number,
Just turn on the display on switch.

〈発明の効果〉 以上説明したよ゛うに本発明によれば、ラック装置、入
出力ユニットの数を数えることなく、暗い場所でも入出
力ユニットのチャネルナンバを知ることができ、これに
よってユーザ側の作業効率を向上させることができる。
<Effects of the Invention> As explained above, according to the present invention, it is possible to know the channel number of an input/output unit even in a dark place without counting the number of rack devices or input/output units. Work efficiency can be improved.

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

第1図は本発明の一実施例を示す回路ブロック図、第2
図は第1図に示すメモリの一構成例を表わすメモリマツ
プ、@3因は第1図に示す入出力ユニットの詳細な回路
図、第4図はこの入出力ユニットを備えたPC本体の正
面図、第5図(A)。 (B)は、各々同実施例の動作例を示すフローチャート
、第6図は従来の入出力ユニットを用いたPCシステム
の一例を示す正面図、第7図はこのシステムで用いられ
るプログラムコンンールを用いてユニットナンバとチャ
ネルナンバ等とを対応させて表示させたときの模式図で
ある。 10・・・プログラムコントローラ本体、11−1〜1
1−n・・・入出力ユニット、12・・・表示器、13
・・・チャネル数検出手段、チャネルナンバ表示手段(
CPU)。
FIG. 1 is a circuit block diagram showing one embodiment of the present invention, and FIG.
The figure is a memory map showing an example of the configuration of the memory shown in Fig. 1, @3 causes is a detailed circuit diagram of the input/output unit shown in Fig. 1, and Fig. 4 is a front view of the PC body equipped with this input/output unit. , FIG. 5(A). (B) is a flowchart showing an example of the operation of the same embodiment, FIG. 6 is a front view showing an example of a PC system using a conventional input/output unit, and FIG. 7 is a program controller used in this system. FIG. 2 is a schematic diagram when unit numbers, channel numbers, etc. are displayed in correspondence using . 10...Program controller main body, 11-1 to 1
1-n...Input/output unit, 12...Display device, 13
...Channel number detection means, channel number display means (
CPU).

Claims (1)

【特許請求の範囲】[Claims] プログラマブルコントローラ本体に取り付けられ、この
プログラマブルコントローラ本体と外部機器との間のマ
ッチングをとる入出力ユニットのチャネルナンバを表示
する入出力ユニットのチャネル表示装置において、各入
出力ユニットのチャネル数を検出するチャネル数検出手
段と、このチャネル数検出手段の検出結果に基づいて前
記各入出力ユニットに設けられた表示器にチャネルナン
バを表示させるチャネルナンバ表示手段とを備えたこと
を特徴とする入出力ユニットのチャネル表示装置。
A channel for detecting the number of channels of each input/output unit in an input/output unit channel display device that is attached to the programmable controller body and displays the channel number of the input/output unit for matching between the programmable controller body and external equipment. An input/output unit comprising a channel number detection means and a channel number display means for displaying a channel number on a display provided in each input/output unit based on the detection result of the channel number detection means. Channel display device.
JP60257963A 1985-11-18 1985-11-18 Channel display device for input and output unit Pending JPS62117011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60257963A JPS62117011A (en) 1985-11-18 1985-11-18 Channel display device for input and output unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60257963A JPS62117011A (en) 1985-11-18 1985-11-18 Channel display device for input and output unit

Publications (1)

Publication Number Publication Date
JPS62117011A true JPS62117011A (en) 1987-05-28

Family

ID=17313642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60257963A Pending JPS62117011A (en) 1985-11-18 1985-11-18 Channel display device for input and output unit

Country Status (1)

Country Link
JP (1) JPS62117011A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01134505A (en) * 1987-11-19 1989-05-26 Fanuc Ltd Input/output control system for pc
JPH01173802U (en) * 1988-05-12 1989-12-11
JP2006040098A (en) * 2004-07-29 2006-02-09 Matsushita Electric Ind Co Ltd Information reader and information reading system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01134505A (en) * 1987-11-19 1989-05-26 Fanuc Ltd Input/output control system for pc
JPH01173802U (en) * 1988-05-12 1989-12-11
JP2006040098A (en) * 2004-07-29 2006-02-09 Matsushita Electric Ind Co Ltd Information reader and information reading system

Similar Documents

Publication Publication Date Title
JPS63163700A (en) Display system for automobile
JPS62117011A (en) Channel display device for input and output unit
US4544893A (en) Battery voltage detector
EP0285119B1 (en) Physical quantity controller
CN215642335U (en) Intelligent clothes-collecting reminder
JPS6278609A (en) Switching device for plant monitor screen
CN208737451U (en) A kind of industrial personal computer key control circuit and industrial personal computer
EP0114896A4 (en) Function diagnosis system.
JPS6219934A (en) Integrated circuit device
JPS60147858A (en) System for reading out content of memory in operation
JPS6029423B2 (en) microcomputer system
JPS55166757A (en) Check unit for overlapping use of output instruction
SU1249526A1 (en) Graphic visual display unit with checking
JP2021175096A (en) Network apparatus
SU717746A1 (en) Information input arrangement
JP2765659B2 (en) Self-test method for data processing equipment
JPH0311755Y2 (en)
JPS60251446A (en) Monitoring device of program execution
SU1448338A1 (en) Programmable controller
SU798642A1 (en) Apparatus for monitoring electric wiring
JPH02223729A (en) Combustion control device
JPS6143353A (en) Address tracking device
JP3399709B2 (en) Data extraction method in programmable controller and programmable controller
JPS5840207B2 (en) Parameter selection device
JPH0895631A (en) Portable setting device