JPH03201116A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH03201116A
JPH03201116A JP1342702A JP34270289A JPH03201116A JP H03201116 A JPH03201116 A JP H03201116A JP 1342702 A JP1342702 A JP 1342702A JP 34270289 A JP34270289 A JP 34270289A JP H03201116 A JPH03201116 A JP H03201116A
Authority
JP
Japan
Prior art keywords
current consumption
control device
identification code
model identification
stored
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
JP1342702A
Other languages
Japanese (ja)
Inventor
Masayuki Tatsumi
巽 雅幸
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP1342702A priority Critical patent/JPH03201116A/en
Publication of JPH03201116A publication Critical patent/JPH03201116A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Control By Computers (AREA)

Abstract

PURPOSE:To release a user from the troublesome calculating work by automatically calculating the total current consumption of a peripheral device from the current consumption of each previously stored peripheral device and a device-sorted code read out from a practically connected peripheral device. CONSTITUTION:When a command for computing the total current consumption is sent from a programmer 2 to a control device 1, a CPU 6 reads out device- sorted codes stored in an option unit 3, an input unit 4 and an output unit 5 and stores the read contents in a RAM 9. Then, the CPU 6 computes the sum of current consumption values based upon the device-sorted code data stored in the RAM 9 and the device-sorted current consumption data previously stored in a ROM 8. The computed result is informed to a user through the display part of the programmer 2. Consequently, the user can be released from the troublesome calculation work of the total current consumption and the generation of an accident due to excess capacity can be previously prevented.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、プログラム可能な制御装置に関する。[Detailed description of the invention] Industrial applications The present invention relates to programmable control devices.

従来の技術 従来、プログラム可能な制御装置に接続される周辺装置
に応じた電源容量を確保するために、その消費電流の総
量を、各周辺装置ごとの消費電流iに基づきユーザが計
算して割り出すのが一般的であった。
Conventional technology Conventionally, in order to ensure power supply capacity according to the peripheral devices connected to a programmable control device, the total amount of current consumption is calculated by the user based on the current consumption i of each peripheral device. was common.

また、このような総消費電流量の計算を省略するために
、すべての周辺装置に電源ユニット・を実装する場合も
ある。ただ、この場合でも、各周辺装置の消費電流量が
その周辺装置に実装されている電源ユニットの容量内に
収まっているかどうかの確認は必要である。
Further, in order to omit such calculation of the total amount of current consumption, a power supply unit may be installed in all peripheral devices. However, even in this case, it is necessary to check whether the amount of current consumed by each peripheral device is within the capacity of the power supply unit installed in that peripheral device.

発明が解決しようとする課題 しかしながら、上述したように各周辺装置ごとの消費電
流量から総消費電流量を計算するのでは、その作業が煩
わしいという問題点があった。
Problems to be Solved by the Invention However, as described above, calculating the total amount of current consumption from the amount of current consumed by each peripheral device has the problem that the work is cumbersome.

また、その計算を怠ったり間違った計算を行うと、シス
テムの動作中でも同時にオン動作する素子などの点数が
増えた場合や、あるいはプログラマを接続した場合に電
源容量を越えてシステムが停止してしまう可能性があっ
た。
Also, if you neglect or make incorrect calculations, the number of elements that turn on at the same time while the system is running increases, or if you connect a programmer, the power supply capacity will be exceeded and the system will stop. There was a possibility.

したがって本発明の目的は、ユーザによる煩わしい計算
処理を要することなく、接続される周辺装置の総消費電
流量を自動的に算出することのできるフ゛ログラム可能
な制御装置を提供することである。
Therefore, an object of the present invention is to provide a programmable control device that can automatically calculate the total current consumption of connected peripheral devices without requiring troublesome calculation processing by the user.

課題を解決するための手段 本発明は、プログラマから与えられるプログラドに応じ
て周辺装置を可変制御する制御装置において、 この制御装置に接続可能な複数の周辺装置にそれぞれ割
り当てられた機種識別コードと、それぞれの周辺装置の
消費電流量とを1対1に対応付けて格納した第1のメモ
リと、 プログラマから与えられる総消費電流量演算プログラム
に基づき、制御装置に接続されている各周辺装置の記憶
部に格納された機種識別コードを読み取るコード読取り
手段と、 読み取られた各周辺装置の機種識別コードを格納する第
2のメモリと、 第1のメモリに格納されている消費電流量の情報と、第
2のメモリに格納されている機種識別コードとから、制
御装置に接続されている全周辺装置の総消費電流量を演
算し出力する総消費電流量演算手段とを備えたことを特
徴とするプログラム可能な制御装置である。
Means for Solving the Problems The present invention provides a control device that variably controls peripheral devices according to a program grade given by a programmer, which includes a model identification code assigned to each of a plurality of peripheral devices connectable to the control device; A first memory stores the current consumption amount of each peripheral device in a one-to-one correspondence, and a memory of each peripheral device connected to the control device based on the total current consumption calculation program given by the programmer. a second memory for storing the read model identification code of each peripheral device; information on current consumption stored in the first memory; The device is characterized by comprising a total current consumption calculating means for calculating and outputting the total current consumption of all peripheral devices connected to the control device from the model identification code stored in the second memory. It is a programmable control device.

作  用 本発明に従えば、第1のメモリに格納された各周辺装置
別の消費電流量と、実際に制御装置に接続されている各
周辺装置から読み取られるそれぞれの機種識別コードと
から、接続されている周辺装置の総消費電流量が自動的
に計算され出力される。
According to the present invention, the connection is determined based on the amount of current consumed by each peripheral device stored in the first memory and the model identification code read from each peripheral device actually connected to the control device. The total current consumption of the peripheral devices being used is automatically calculated and output.

実施例 第1図は、本発明の一実鎌例である制御装置1に、この
制御装置1にプログラムを入力するプログラマ2と、周
辺装置であるオプションユニット3、入カニニット4お
よび出カニニット5を接続した構成を概略的に示すブロ
ック図である。
Embodiment FIG. 1 shows a control device 1 that is an example of the present invention, a programmer 2 that inputs programs to the control device 1, an optional unit 3, an input crab unit 4, and an output crab unit 5 as peripheral devices. FIG. 2 is a block diagram schematically showing a connected configuration.

上記制御袋R1は、中央処理装置t (Central
Proccessing Unit;以下、CPUと略
称する)6、インタフェース7、読出し専用メモリ(R
eadOnly Memory ;以下、ROMと略称
する)8、随時書込み読出しメモリ(Rando−^c
eess Memory :以下、RAMと略称する)
9などを含む。
The control bag R1 is connected to the central processing unit t (Central
Processing Unit (hereinafter abbreviated as CPU) 6, interface 7, read-only memory (R
eadOnly Memory (hereinafter abbreviated as ROM) 8. Read-and-write memory (Rando-^c)
eess Memory: Hereinafter abbreviated as RAM)
Including 9 etc.

また、上記CPU6、インタフェース7、ROM8およ
びRAM9はパスライン10を介してオプションユニッ
ト3、入カユニッI・4 才3よび出カニニット5に接
続されている。
Further, the CPU 6, interface 7, ROM 8 and RAM 9 are connected to the option unit 3, the input unit I/4 and the output unit 5 via a pass line 10.

上記オプションユニット3、入カニニット4、出カニニ
ット5などの周辺装置にはそれらに設けられている記憶
部(オプションユニット3では記憶部C1入カニニツト
4では記憶部D、出カニニット5では記憶部E)に、そ
れぞれの機種を識別するための機種識別コードが格納さ
れている。
Peripheral devices such as the optional unit 3, input unit 4, output unit 5, etc. have storage units installed therein (storage unit C1 in the option unit 3, storage unit D in the input unit 4, and storage unit E in the output unit 5). Stores a model identification code for identifying each model.

一方、ROM8の特定の記憶領域Aには、この制御装置
lに接続されうる複数の周辺装置(現在接続されている
周辺装置も含めて)のそれぞれの機種識別コードと、各
周辺装置の消費電流量とを1対1に対応付けた対照表の
データが格納されている。
On the other hand, in a specific storage area A of the ROM 8, the model identification codes of each of the plurality of peripheral devices (including the currently connected peripheral device) that can be connected to this control device l and the current consumption of each peripheral device are stored. Data of a comparison table that has a one-to-one correspondence with the amount is stored.

第2図は、そのROM8の記憶領域Aに格納されている
上記対照表のデータの具体例を示す模式図である。すな
わち、第2図において、例えば機種識別コード1と、そ
のコードが割り当てられる周辺装置の消費電流量125
(mA)とが、また機種識別コード2と、そのコードが
割り当てられる周辺装置の消費電流1540 (mA)
とがそれぞれ1対1に対応付けて格納されている。
FIG. 2 is a schematic diagram showing a specific example of the data of the comparison table stored in the storage area A of the ROM 8. That is, in FIG. 2, for example, the model identification code 1 and the current consumption amount 125 of the peripheral device to which that code is assigned.
(mA), and the model identification code 2 and the current consumption of the peripheral device to which that code is assigned 1540 (mA)
are stored in a one-to-one correspondence.

また、RAM9には、この制御装置lに接続されている
各周辺装置(第1図ではオプションユニット3、入カニ
ニット4および出カニニット5)の記憶部C,D、Eか
ら読み取られるそれぞれの機種識別コードを表として格
納するための特定の記憶領域Bが用意されている。
The RAM 9 also contains model identification information read from the storage sections C, D, and E of each peripheral device (in Fig. 1, the option unit 3, input unit 4, and output unit 5) connected to the control device l. A specific storage area B is prepared for storing the code as a table.

第3図は、そのRA M 9の記憶領域Bに格納されて
いるデータの具体例を示す模式図である。すなわち、第
3図において、ラック番号O,スロット番号Oに対応付
けて機種識別コード2が、またラック番号O,スロット
番号1に対応付けて機種識別コード1が、さらにラック
番号0.スロット番号2に対応付けて機種識別コード3
がそれぞれ書き込まれている。この場合のラック番号と
は、周辺装置が実装される装着枠の番号であり、スロッ
ト番号とは、その装着枠に複数設定されている周辺装置
実装用溝を識別する番号である。
FIG. 3 is a schematic diagram showing a specific example of data stored in the storage area B of the RAM 9. That is, in FIG. 3, model identification code 2 is associated with rack number O and slot number O, model identification code 1 is associated with rack number O and slot number 1, and rack number 0. Model identification code 3 associated with slot number 2
are written in each. In this case, the rack number is the number of the mounting frame in which the peripheral device is mounted, and the slot number is a number that identifies a plurality of peripheral device mounting grooves set in the mounting frame.

次に、上記制御装置1による総消費電流131E出動作
を、第2図および第3図を参照して説明する。
Next, the operation of outputting the total current consumption 131E by the control device 1 will be explained with reference to FIGS. 2 and 3.

まず、プログラマ2から制御装置1に対して総消費電流
量演算のコマンドが送出されると、制御装置lのCPU
6は現在接続されているオプションユニット3、入カニ
ニット4および出カニニット5のそれぞれの記憶部C,
D、Eに格納されている機種識別コードを読み出し、R
AM9の記憶領域Bに格納する。この場合、説明の便宜
上、例えばオプションユニット3の機種識別コードを1
、入カニニット4の機種識別コードを2、出カニニット
5の機種識別コードを3とする。
First, when the programmer 2 sends a command to calculate the total current consumption to the control device 1, the CPU of the control device 1
6 is the storage section C of each of the currently connected option unit 3, input unit 4, and output unit 5;
Read the model identification code stored in D and E, and
Store in storage area B of AM9. In this case, for convenience of explanation, for example, the model identification code of option unit 3 may be set to 1.
, the model identification code of the incoming crab knit 4 is 2, and the model identification code of the outgoing crab knit 5 is 3.

ついで、CPUIはRAM9の記憶領域Bに格納した第
3図の表のデータと、ROM8の記憶領域Aに予め格納
されている第2図の表のデータとに基づき消費電流量の
総和を演算する。
Next, the CPU calculates the total amount of current consumption based on the data in the table shown in FIG. 3 stored in storage area B of RAM 9 and the data in the table shown in FIG. 2 stored in advance in storage area A of ROM 8. .

すなわち、この場合には、第2図の表から第3図の表に
ある機種識別コード1,2.3の消費電流量125 (
mA)、540 (mA)、440 (m A )を読
み出し、これらの総和を計算する。求めらitた総和は
総消費電流量としてプログラマ2の図示しない表示部を
通してユーザに報知される。
That is, in this case, the current consumption amount 125 (
mA), 540 (mA), and 440 (mA), and calculate their total sum. The determined sum is reported to the user as the total amount of current consumption through a display section (not shown) of the programmer 2.

プログラマ2の表示部での表示内容としては、例えば第
4図に示すように基本の装着枠11以外に、複数の増設
装着枠12〜14が追加して実装されるような場合、制
御装置1によって算出される総消費電流量から、基本の
装着枠11以外にどの増設装着枠に電源ユニットが必要
であるかといった判断も行われる。
The contents displayed on the display section of the programmer 2 include, for example, when a plurality of additional mounting frames 12 to 14 are additionally mounted in addition to the basic mounting frame 11 as shown in FIG. Based on the total current consumption calculated by , it is also determined which expansion mounting frame other than the basic mounting frame 11 requires the power supply unit.

発明の効果 以上のように本発明によれば、予めメモリに格納された
各周辺装置別の消費電流量と、実際に制御装置に接続さ
れている各周辺装置から読み取られるそれぞれの機種識
別コードとを照らし合わせて、接続されている周辺装置
の総消費電流量を演算し出力するように構成しているの
で、総消費電流量の計算作業の煩わしさからユーザを解
放できるとともに、消費電流が電力容量を越えてシステ
ムを停止させてしまうといった事故を未然に防止するこ
とができる。
Effects of the Invention As described above, according to the present invention, the amount of current consumed by each peripheral device stored in advance in memory and the model identification code of each peripheral device actually connected to the control device can be determined. The configuration calculates and outputs the total current consumption of the connected peripheral devices by comparing the total current consumption, which relieves the user from the trouble of calculating the total current consumption, and also reduces the current consumption to Accidents such as the system being stopped due to exceeding its capacity can be prevented.

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

第1図は本発明の一実施例である制御装置に複数の周辺
装置およびプログラマが接続された構成を示すブロック
図、第2図はその制御装置におけるROMの特定記憶領
域に格納されたデータの具体例を示す模式図、第3図は
その制御装置におけるRAMの特定記憶領域に格納され
たデータの具体例を示す模式図、第4図は基本の装着枠
以外に増設装着枠が追加される場合の一例を示すブロッ
ク図である。 1・・・制御装置、2・・・プログラマ、3・・・オプ
ションユニット、4・・・入カニニット、5・・・出カ
ニニット、6・・・CPtJ、7・・・インタフェース
、8・・・ROM、9・・・RAM
FIG. 1 is a block diagram showing a configuration in which a plurality of peripheral devices and a programmer are connected to a control device according to an embodiment of the present invention, and FIG. 2 shows data stored in a specific storage area of a ROM in the control device. A schematic diagram showing a specific example, FIG. 3 is a schematic diagram showing a specific example of data stored in a specific storage area of RAM in the control device, and FIG. 4 shows an additional mounting frame added in addition to the basic mounting frame. It is a block diagram showing an example of a case. DESCRIPTION OF SYMBOLS 1... Control device, 2... Programmer, 3... Option unit, 4... Input crab unit, 5... Output crab unit, 6... CPtJ, 7... Interface, 8... ROM, 9...RAM

Claims (1)

【特許請求の範囲】 プログラマから与えられるプログラムに応じて周辺装置
を可変制御する制御装置において、この制御装置に接続
可能な複数の周辺装置にそれぞれ割り当てられた機種識
別コードと、それぞれの周辺装置の消費電流量とを1対
1に対応付けて格納した第1のメモリと、 プログラマから与えられる総消費電流量演算プログラム
に基づき、制御装置に接続されている各周辺装置の記憶
部に格納された機種識別コードを読み取るコード読取り
手段と、 読み取られた各周辺装置の機種識別コードを格納する第
2のメモリと、 第1のメモリに格納されている消費電流量の情報と、第
2のメモリに格納されている機種識別コードとから、制
御装置に接続されている全周辺装置の総消費電流量を演
算し出力する総消費電流量演算手段とを備えたことを特
徴とするプログラム可能な制御装置。
[Scope of Claims] A control device that variably controls peripheral devices according to a program given by a programmer includes a model identification code assigned to each of a plurality of peripheral devices connectable to the control device, and a model identification code of each peripheral device. The first memory stores the amount of current consumption in one-to-one correspondence, and the amount of current consumed is stored in the storage section of each peripheral device connected to the control device based on the total amount of current consumption calculation program given by the programmer. A code reading means for reading a model identification code; a second memory for storing the read model identification code of each peripheral device; and a second memory for storing current consumption information stored in the first memory and the second memory. A programmable control device comprising a total current consumption calculating means for calculating and outputting the total current consumption of all peripheral devices connected to the control device from a stored model identification code. .
JP1342702A 1989-12-28 1989-12-28 Programmable controller Pending JPH03201116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1342702A JPH03201116A (en) 1989-12-28 1989-12-28 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1342702A JPH03201116A (en) 1989-12-28 1989-12-28 Programmable controller

Publications (1)

Publication Number Publication Date
JPH03201116A true JPH03201116A (en) 1991-09-03

Family

ID=18355836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1342702A Pending JPH03201116A (en) 1989-12-28 1989-12-28 Programmable controller

Country Status (1)

Country Link
JP (1) JPH03201116A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006195663A (en) * 2005-01-12 2006-07-27 Nec Corp Power control system and device, power supply device, and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006195663A (en) * 2005-01-12 2006-07-27 Nec Corp Power control system and device, power supply device, and electronic device
JP4701724B2 (en) * 2005-01-12 2011-06-15 日本電気株式会社 Power supply control method and device, power supply device, and electronic device

Similar Documents

Publication Publication Date Title
JPH03201116A (en) Programmable controller
JP2800333B2 (en) Module controller
JPH061461B2 (en) CPU control method
JP2560363Y2 (en) Counter device
JPS61216002A (en) Process controller
KR100275569B1 (en) Handy loader for programmable logic controller
JPS6246304A (en) Programmable controller
JPS6213192Y2 (en)
JPS5868129A (en) Buffer memory device
JPH067331Y2 (en) Display of weight sorter
JP2550537B2 (en) Time division multiple timer method
JPH04174008A (en) Sequence controller with operation confirming function
JPS59125190A (en) Automatic exchange
JPH01208952A (en) Display data storage control system for exchange
JPS63268026A (en) Display device
KR970066955A (en) Program Modifiable Maximum Demand Power Monitoring Controller
JPH01306271A (en) Printer
JPS6162142A (en) I/o controller
JPS62191929A (en) Onerous software lock system
JPH0350625A (en) Busy control circuit
JPH0454637A (en) Programmable controller
JPS62298811A (en) Numerical controller
JPH0436617A (en) Hour meter for construction machine
JPH03135628A (en) Terminal equipment
JPS6191791A (en) Price data checking for vending machine