[go: up one dir, main page]

JP2006120027A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP2006120027A
JP2006120027A JP2004309049A JP2004309049A JP2006120027A JP 2006120027 A JP2006120027 A JP 2006120027A JP 2004309049 A JP2004309049 A JP 2004309049A JP 2004309049 A JP2004309049 A JP 2004309049A JP 2006120027 A JP2006120027 A JP 2006120027A
Authority
JP
Japan
Prior art keywords
module
enable signal
programmable controller
modules
signal
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
JP2004309049A
Other languages
Japanese (ja)
Inventor
Koichi Ohara
浩一 大原
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.)
Fuji Electric FA Components and Systems Co Ltd
Original Assignee
Fuji Electric FA Components and Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric FA Components and Systems Co Ltd filed Critical Fuji Electric FA Components and Systems Co Ltd
Priority to JP2004309049A priority Critical patent/JP2006120027A/en
Publication of JP2006120027A publication Critical patent/JP2006120027A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

【課題】モジュールの局番設定作業を容易にし、局番設定者の負担を低減する。
【解決手段】ベースボード1に搭載された複数のモジュール2のそれぞれに異なる局番を設定することにより、それぞれのモジュール2を識別しうるように構成されたプログラマブルコントローラにおいて、複数のモジュール2の局番をベースボード側で一括して設定する。詳細には、ベースボード1に搭載されたモジュール2に対し、一定周期のクロック信号5と、その有効期間中のクロック信号5の振動数を計数するために用いられるイネーブル6信号とを出力する。更に、ベースボード1に対して複数のモジュール2を装着するためにベースボード1に複数のスロットSL1〜SL4を設け、スロット番号が1大きくなるに従って、イネーブル信号6,7,8の有効期間をクロック信号5の1周期分だけ拡張する。
【選択図】図3
An object of the present invention is to facilitate a station number setting operation of a module and reduce a burden on a station number setter.
A programmable controller configured to be able to identify each module 2 by setting a different station number to each of the plurality of modules 2 mounted on the base board 1, the station numbers of the plurality of modules 2 are set. Set all at once on the baseboard side. Specifically, a clock signal 5 having a fixed period and an enable 6 signal used for counting the frequency of the clock signal 5 during the effective period are output to the module 2 mounted on the base board 1. Further, a plurality of slots SL1 to SL4 are provided in the base board 1 for mounting a plurality of modules 2 on the base board 1, and the valid periods of the enable signals 6, 7, and 8 are clocked as the slot number increases by one. The signal 5 is expanded by one period.
[Selection] Figure 3

Description

本発明は、ベースボード(別称として「マザーボード」と称することもある。以下、同じ。)を具備するプログラマブルコントローラに関する。詳細には、本発明は、ベースボードに搭載された複数のモジュールのそれぞれに異なる局番を設定することにより、それぞれのモジュールを識別しうるように構成されたプログラマブルコントローラに関し、特には、モジュールの局番設定作業を容易にし、局番設定者の負担を低減することができるプログラマブルコントローラに関する。   The present invention relates to a programmable controller including a base board (sometimes referred to as “motherboard”. The same shall apply hereinafter). Specifically, the present invention relates to a programmable controller configured to be able to identify each module by setting a different station number for each of a plurality of modules mounted on a base board. The present invention relates to a programmable controller capable of facilitating setting work and reducing a burden on a station number setting person.

従来から、プログラマブルコントローラで使用されるモジュールに局番を設定する場合には、主に次の2通りの方法が取られている。   Conventionally, when setting a station number for a module used in a programmable controller, the following two methods are mainly used.

1)局番を設定するためのスイッチをそれぞれのモジュールに搭載し、モジュール側においてモジュール単位で局番を設定する。
2)それぞれのモジュールに外部の別の機器を使って、予め個別の局番を不揮発性メモリなどの記憶媒体に記憶させておく。
1) A switch for setting the station number is mounted on each module, and the station number is set for each module on the module side.
2) Each station number is stored in advance in a storage medium such as a non-volatile memory by using another external device for each module.

上記第1の方法の例としては、例えば特開2000−181512号公報に記載されたものがある。特開平2000−181512号公報に記載されたプログラマブルコントローラでは、子局(モジュール)に局番を設定するために各子局(モジュール)に設けられた局番設定部に、DIPスイッチなどのスイッチが設けられている。   An example of the first method is described in, for example, Japanese Patent Application Laid-Open No. 2000-181512. In the programmable controller described in Japanese Patent Laid-Open No. 2000-181512, a switch such as a DIP switch is provided in a station number setting unit provided in each slave station (module) in order to set a station number in the slave station (module). ing.

また、上記第2の方法の例としては、例えば特開2001−236106号公報に記載されたものがある。特開2001−236106号公報に記載されたプログラマブルコントローラでは、既に登録された局番が、予めメモリ等の所定の記憶領域に記憶されるようになっている。   An example of the second method is described in, for example, Japanese Patent Application Laid-Open No. 2001-236106. In the programmable controller described in Japanese Patent Laid-Open No. 2001-236106, the already registered station number is stored in advance in a predetermined storage area such as a memory.

これらの2通りの方法共に、モジュール側で局番設定のための仕掛けが必要となっている。つまり、複数のモジュールの局番が、各モジュールにおいてそれぞれ設定されるようになっている。   Both of these two methods require a device for setting the station number on the module side. That is, the station numbers of a plurality of modules are set in each module.

上述した2通りの方法では、ベースボードにモジュールを塔載する時に、全てのモジュールに対して間違いなく個別の局番を設定しなければならず、仮に局番設定を間違えた場合は、システムが起動できないなどの不具合となってしまうおそれがある。そのため、システムが大規模になればなるほど、膨大なモジュールへの局番設定作業と、局番を正確に設定するための細心の注意を払うという、ユーザへの多大な負担が発生している。   With the two methods described above, when mounting modules on the baseboard, individual station numbers must be set for all modules, and if the station number setting is wrong, the system cannot be started. There is a risk that it may become a malfunction. For this reason, the larger the system, the greater the burden on the user, such as the station number setting work for a huge number of modules and the great care to set the station numbers accurately.

特開2000−181512号公報JP 2000-181512 A

特開2001−236106号公報JP 2001-236106 A

前記問題点に鑑み、本発明は、モジュールの局番設定作業を容易にし、局番設定者の負担を低減することができるプログラマブルコントローラを提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a programmable controller capable of facilitating module station number setting work and reducing the burden on the station number setter.

請求項1に記載の発明によれば、ベースボードを具備するプログラマブルコントローラにおいて、前記ベースボードに搭載されたモジュールに対し、一定周期のクロック信号と、その有効期間中のクロック信号の振動数を計数するために用いられるイネーブル信号とを出力することを特徴とするプログラマブルコントローラが提供される。   According to the first aspect of the present invention, in a programmable controller including a base board, a clock signal having a fixed period and a frequency of the clock signal during the effective period are counted for a module mounted on the base board. A programmable controller is provided that outputs an enable signal that is used to perform the operation.

請求項2に記載の発明によれば、前記ベースボードに対して複数のモジュールを装着するために前記ベースボードに複数のスロットを設け、複数のスロットのそれぞれに異なるスロット番号を設定し、スロット番号が1大きくなるに従って、イネーブル信号の有効期間をクロック信号の1周期分だけ拡張することを特徴とする請求項1に記載のプログラマブルコントローラが提供される。   According to the second aspect of the present invention, a plurality of slots are provided in the base board for mounting a plurality of modules on the base board, and a different slot number is set for each of the plurality of slots. The programmable controller according to claim 1, wherein the valid period of the enable signal is extended by one period of the clock signal as the value of 1 increases.

請求項3に記載の発明によれば、ベースボードに搭載された複数のモジュールのそれぞれに異なる局番を設定することにより、それぞれのモジュールを識別しうるように構成されたプログラマブルコントローラにおいて、複数のモジュールの局番をベースボード側で一括して設定することを特徴とするプログラマブルコントローラが提供される。   According to the third aspect of the present invention, in the programmable controller configured to be able to identify each module by setting a different station number for each of the plurality of modules mounted on the base board, the plurality of modules A programmable controller is provided in which the station numbers are collectively set on the base board side.

請求項4に記載の発明によれば、複数のモジュールの局番を設定するためのクロック信号とイネーブル信号とを複数のモジュールに対して出力する信号発生源を具備することを特徴とする請求項3に記載のプログラマブルコントローラが提供される。   According to a fourth aspect of the invention, there is provided a signal generating source for outputting a clock signal and an enable signal for setting the station numbers of the plurality of modules to the plurality of modules. Is provided.

請求項5に記載の発明によれば、前記信号発生源を前記ベースボードに搭載したことを特徴とする請求項4に記載のプログラマブルコントローラが提供される。   According to a fifth aspect of the present invention, there is provided the programmable controller according to the fourth aspect, wherein the signal generation source is mounted on the base board.

請求項6に記載の発明によれば、イネーブル信号の有効期間中のクロック信号の振動数に基づいて、複数のモジュールの局番を設定することを特徴とする請求項4又は5に記載のプログラマブルコントローラが提供される。   According to the invention described in claim 6, the station numbers of the plurality of modules are set based on the frequency of the clock signal during the valid period of the enable signal. Is provided.

請求項7に記載の発明によれば、イネーブル信号の有効期間を変更するための有効期間変更回路を具備することを特徴とする請求項6に記載のプログラマブルコントローラが提供される。   According to a seventh aspect of the present invention, there is provided a programmable controller according to the sixth aspect, further comprising a valid period changing circuit for changing a valid period of the enable signal.

請求項8に記載の発明によれば、前記信号発生源と複数のモジュールとを信号線によって接続し、隣接する2つのモジュールを接続する前記信号線に前記有効期間変更回路を配置したことを特徴とする請求項7に記載のプログラマブルコントローラが提供される。   According to an eighth aspect of the invention, the signal generation source and a plurality of modules are connected by a signal line, and the effective period changing circuit is arranged on the signal line connecting two adjacent modules. A programmable controller according to claim 7 is provided.

請求項9に記載の発明によれば、前記信号発生源から出力されたイネーブル信号が前記有効期間変更回路を通過せしめられる毎に、イネーブル信号の有効期間をクロック信号の1周期分だけ拡張することを特徴とする請求項8に記載のプログラマブルコントローラが提供される。   According to the ninth aspect of the present invention, the valid period of the enable signal is extended by one period of the clock signal every time the enable signal output from the signal generation source is passed through the valid period changing circuit. A programmable controller according to claim 8 is provided.

請求項1及び2に記載のプログラマブルコントローラでは、ベースボードに搭載されたモジュールに対し、一定周期のクロック信号と、その有効期間中のクロック信号の振動数(エッジの数、信号レベルの変化点の数)を計数するために用いられるイネーブル信号とが出力される。詳細には、ベースボードに対して複数のモジュールを装着するためにベースボードに複数のスロットが設けられ、複数のスロットのそれぞれに異なるスロット番号が設定される。更に、スロット番号(モジュール装着位置番号)が1大きくなるに従って、イネーブル信号の有効期間が、クロック信号の1周期分だけ拡張せしめられる。例えば、スロット番号が1大きくなるに従って、イネーブル信号の有効期間の終期が、クロック信号の1周期分だけ遅延せしめられる。更に詳細には、イネーブル信号の有効期間をクロック信号の1周期分だけ拡張するための有効期間変更回路が、隣接するスロット間に配置されている。   In the programmable controller according to claim 1, for a module mounted on the base board, a clock signal having a fixed period and a frequency of the clock signal during the effective period (the number of edges, the change point of the signal level). The enable signal used to count the number) is output. Specifically, a plurality of slots are provided in the base board for mounting a plurality of modules on the base board, and different slot numbers are set for the plurality of slots. Furthermore, as the slot number (module mounting position number) increases by 1, the valid period of the enable signal is extended by one cycle of the clock signal. For example, as the slot number increases by 1, the end of the valid period of the enable signal is delayed by one cycle of the clock signal. More specifically, an effective period changing circuit for extending the effective period of the enable signal by one period of the clock signal is arranged between adjacent slots.

すなわち、請求項1及び2に記載のプログラマブルコントローラでは、クロック信号とイネーブル信号とがモジュールに対して出力され、モジュールの局番が、モジュール側ではなく、ベースボード側で一括して設定される。モジュール側では、イネーブル信号の有効期間中のクロック信号の振動数を計数することにより、そのモジュールに設定された局番の値が把握できるようになっている。   That is, in the programmable controller according to the first and second aspects, the clock signal and the enable signal are output to the module, and the station number of the module is collectively set not on the module side but on the base board side. On the module side, the value of the station number set in the module can be grasped by counting the frequency of the clock signal during the valid period of the enable signal.

更に、請求項1及び2に記載のプログラマブルコントローラでは、イネーブル信号の有効期間変更回路が設けられ、スロット番号が大きくなるに従って、イネーブル信号の有効期間が拡張せしめられる。これにより、モジュール側で計数されるクロック信号の振動数は、スロット番号が大きくなるに従って増加する。つまり、モジュール側で計数されるクロック信号の振動数は、それぞれのモジュールで異なり、スロット位置固有の値になる。すなわち、各モジュールには、有効期間の異なるイネーブル信号がそれぞれ出力され、それぞれのモジュールに個別の局番が設定される。   Further, in the programmable controller according to the first and second aspects, an enable signal valid period changing circuit is provided, and the valid period of the enable signal is expanded as the slot number increases. Thereby, the frequency of the clock signal counted on the module side increases as the slot number increases. That is, the frequency of the clock signal counted on the module side is different for each module and is a value specific to the slot position. That is, each module outputs an enable signal having a different effective period, and an individual station number is set for each module.

そのため、請求項1及び2に記載のプログラマブルコントローラによれば、ベースボードに搭載された複数のモジュールの局番が各モジュールにおいてそれぞれ設定される場合よりも、モジュールの局番設定作業を容易にし、例えばユーザーのような局番設定者の負担を低減することができる。   Therefore, according to the programmable controller of claim 1 and 2, the station number setting work of the module is made easier than the case where the station numbers of a plurality of modules mounted on the base board are set in each module, for example, the user Thus, the burden on the station number setter can be reduced.

請求項3に記載のプログラマブルコントローラでは、ベースボードに搭載された複数のモジュールの局番が、各モジュールにおいてそれぞれ設定されるのではなく、ベースボード側で一括して設定される。そのため、ベースボードに搭載された複数のモジュールの局番が各モジュールにおいてそれぞれ設定される場合よりも、モジュールの局番設定作業を容易にし、例えばユーザーのような局番設定者の負担を低減することができる。   In the programmable controller according to the third aspect, the station numbers of the plurality of modules mounted on the base board are not set in each module, but are collectively set on the base board side. Therefore, the station number setting work of the module can be facilitated and the burden on the station number setting person such as the user can be reduced as compared with the case where the station numbers of a plurality of modules mounted on the base board are respectively set in each module. .

請求項4〜6に記載のプログラマブルコントローラでは、複数のモジュールの局番を設定するためのクロック信号とイネーブル信号とが、ベースボードに搭載された信号発生源から複数のモジュールのそれぞれに対して出力される。そのため、従来のように各モジュールにおいて局番が設定されるのではなく、ベースボード側で複数のモジュールの局番を設定することができる。好ましくは、イネーブル信号の有効期間中のクロック信号の振動数に基づいて、複数のモジュールの局番が設定される。   In the programmable controller according to any one of claims 4 to 6, a clock signal and an enable signal for setting the station numbers of the plurality of modules are output from the signal generation source mounted on the base board to each of the plurality of modules. The Therefore, station numbers are not set for each module as in the prior art, but station numbers for a plurality of modules can be set on the base board side. Preferably, the station numbers of the plurality of modules are set based on the frequency of the clock signal during the valid period of the enable signal.

請求項7〜9に記載のプログラマブルコントローラでは、信号発生源と複数のモジュールとが信号線によって接続され、イネーブル信号の有効期間を変更するための有効期間変更回路が、隣接する2つのモジュールを接続する信号線に配置されている。詳細には、信号発生源から出力されたイネーブル信号が有効期間変更回路を通過せしめられる毎に、イネーブル信号の有効期間がクロック信号の1周期分だけ拡張せしめられる。そのため、複数のモジュールの局番をそれぞれ異なる値に設定することができる。   10. The programmable controller according to claim 7, wherein a signal generation source and a plurality of modules are connected by a signal line, and an effective period changing circuit for changing an effective period of an enable signal connects two adjacent modules. Is arranged on the signal line. Specifically, every time the enable signal output from the signal generation source passes through the valid period changing circuit, the valid period of the enable signal is extended by one cycle of the clock signal. Therefore, the station numbers of a plurality of modules can be set to different values.

以下、本発明のプログラマブルコントローラの第1の実施形態について説明する。第1の実施形態のプログラマブルコントローラは、ベースボードに搭載された複数のモジュールのそれぞれに異なる局番を設定することにより、それぞれのモジュールを識別しうるように構成されている。ベースボードに搭載可能なモジュールの例としては、例えばCPUモジュール、電源モジュール、入出力モジュールがある。   Hereinafter, a first embodiment of the programmable controller of the present invention will be described. The programmable controller of the first embodiment is configured such that each module can be identified by setting a different station number for each of the plurality of modules mounted on the base board. Examples of modules that can be mounted on the base board include a CPU module, a power supply module, and an input / output module.

入出力モジュールは、第1の実施形態のプログラマブルコントローラにより制御される電子機器とCPUモジュールとの間で情報信号の転送を行うように構成されている。更に詳細には、入出力モジュールは、第1の実施形態のプログラマブルコントローラにより制御される電子機器からCPUモジュールに入力される信号のレベルを、CPUモジュールにおいて処理可能なレベルに変換し、更に、CPUモジュールからその電子機器に出力される信号のレベルを、遠距離電送に耐え得るレベルに変換する。   The input / output module is configured to transfer information signals between the electronic device controlled by the programmable controller of the first embodiment and the CPU module. More specifically, the input / output module converts the level of a signal input to the CPU module from the electronic device controlled by the programmable controller of the first embodiment into a level that can be processed by the CPU module, and further the CPU The level of the signal output from the module to the electronic device is converted to a level that can withstand long-distance transmission.

ベースボードに搭載可能な入出力モジュールの例としては、例えばデジタル入力モジュール、デジタル出力モジュール、デジタル入出力モジュール、高速デジタル入力モジュール、パルス列出力内蔵デジタル出力モジュール、アナログ入力モジュール、アナログ出力モジュール、測温抵抗体入力モジュール、熱電対入力モジュールなどがある。   Examples of input / output modules that can be mounted on the base board include, for example, digital input modules, digital output modules, digital input / output modules, high-speed digital input modules, digital output modules with built-in pulse train output, analog input modules, analog output modules, temperature measurement There are resistor input modules, thermocouple input modules, etc.

上述したCPUモジュールは、例えば入出力モジュールを介して接続された電子機器に対して制御用パソコン等のような上位装置から通知される出力信号を中継したり、入出力モジュールを介して接続された電子機器から送られた入力信号を所定のフォーマットに変換したり、そのような入力信号に基づいて所定の演算処理を行ったり、そのような演算処理の結果を所定の記憶領域に記憶したりするように構成されている。   For example, the CPU module described above relays an output signal notified from a host device such as a control personal computer to an electronic device connected via an input / output module, or is connected via an input / output module. An input signal sent from an electronic device is converted into a predetermined format, a predetermined arithmetic process is performed based on such an input signal, and a result of such an arithmetic process is stored in a predetermined storage area It is configured as follows.

ベースボードに搭載可能なモジュールの他の例としては、例えば通信モジュールがある。通信モジュールは、第1の実施形態のプログラマブルコントローラに対して通信回線を介して接続された例えば制御用パソコン等のような電子機器との通信を行うように構成されている。   Another example of a module that can be mounted on the base board is a communication module. The communication module is configured to communicate with an electronic device such as a control personal computer connected to the programmable controller of the first embodiment via a communication line.

ベースボードに搭載可能な通信モジュールの例としては、例えばコンピュータレベル通信モジュール、コントローラレベル通信モジュール、デバイスレベル通信モジュール、ビットレベル通信モジュールなどがある。   Examples of communication modules that can be mounted on the base board include a computer level communication module, a controller level communication module, a device level communication module, and a bit level communication module.

ベースボードに搭載可能なモジュールの他の例としては、例えば機能モジュールがある。機能モジュールは、例えばCPUモジュールなどの各種データを保存したり、制御・管理情報を保存したり、CPUモジュールとの間でプログラムのアップロード・ダウンロードを行ったり、制御用パソコンからのファイル読み出し・書き込みを行ったりするように構成されている。   Another example of a module that can be mounted on the base board is a functional module. The function module stores various data such as CPU modules, stores control and management information, uploads and downloads programs with the CPU module, and reads and writes files from the control PC It is configured to go.

ベースボードに搭載可能なモジュールの他の例としては、例えば位置決めモジュールがある。位置決めモジュールは、例えばパルス列指令入力式のサーボアンプ・モータ、またはステッピングモータ用ドライバと組み合わせることにより、高精度の位置決めを行うことができるように構成されている。   Another example of the module that can be mounted on the base board is a positioning module. The positioning module is configured to perform highly accurate positioning by combining with a pulse train command input type servo amplifier / motor or a stepping motor driver, for example.

第1の実施形態のプログラマブルコントローラは、ベースボードに搭載された複数のモジュールの局番が、従来のように各モジュールにおいてそれぞれ設定されるのではなく、ベースボード側で一括して設定されるように構成されている。詳細には、第1の実施形態のプログラマブルコントローラでは、複数のモジュールの局番を設定するためのクロック信号およびイネーブル信号が、ベースボードに搭載された複数のモジュールのそれぞれに対して出力される。つまり、第1の実施形態のプログラマブルコントローラは、それぞれのモジュールにクロック信号およびイネーブル信号が送られるように構成されている。   In the programmable controller of the first embodiment, the station numbers of a plurality of modules mounted on the base board are not set in each module as in the prior art, but are set collectively on the base board side. It is configured. Specifically, in the programmable controller of the first embodiment, a clock signal and an enable signal for setting station numbers of a plurality of modules are output to each of the plurality of modules mounted on the base board. That is, the programmable controller of the first embodiment is configured so that the clock signal and the enable signal are sent to each module.

図1はベースボードに搭載されたモジュールのそれぞれに対して出力されるクロック信号とイネーブル信号とを示した図である。第1の実施形態のプログラマブルコントローラでは、図1に示すようなクロック信号およびイネーブル信号によって、それらのクロック信号およびイネーブル信号が送られたモジュールの局番が定まるようになっている。詳細には、モジュールに送られたイネーブル信号の有効期間(LOWレベル期間)中のクロック信号の振動数により、そのモジュールの局番が定まるようになっている。図1に示した例では、イネーブル信号の有効期間中にクロック信号が5回振動している。つまり、イネーブル信号の有効期間中のクロック信号の振動数が5であり、イネーブル信号の有効期間が、クロック信号の5周期分に相当している。すなわち、第1の実施形態のプログラマブルコントローラでは、局番を5に設定すべきモジュールには、図1に示すようなクロック信号およびイネーブル信号が送られる。   FIG. 1 is a diagram showing a clock signal and an enable signal output to each of the modules mounted on the base board. In the programmable controller of the first embodiment, the station number of the module to which the clock signal and the enable signal are sent is determined by the clock signal and the enable signal as shown in FIG. Specifically, the station number of the module is determined by the frequency of the clock signal during the valid period (LOW level period) of the enable signal sent to the module. In the example shown in FIG. 1, the clock signal oscillates five times during the effective period of the enable signal. That is, the frequency of the clock signal during the effective period of the enable signal is 5, and the effective period of the enable signal corresponds to 5 cycles of the clock signal. That is, in the programmable controller of the first embodiment, a clock signal and an enable signal as shown in FIG. 1 are sent to the module whose station number should be set to 5.

上述したように、第1の実施形態では、イネーブル信号の有効期間が、パルス状の信号のLOWレベル期間になっているが、他の実施形態では、イネーブル信号の有効期間を、例えばパルス状の信号のHIGHレベル期間にするなど、任意の方法で定めることが可能である。   As described above, in the first embodiment, the valid period of the enable signal is the LOW level period of the pulse signal, but in other embodiments, the valid period of the enable signal is set to, for example, the pulse form. It can be determined by an arbitrary method such as a HIGH level period of the signal.

図2はベースボードに搭載された3つのモジュールに対して出力されるクロック信号とイネーブル信号とを示した図である。第1の実施形態のプログラマブルコントローラでは、図2に示すように、3つのモジュールのそれぞれに共通のクロック信号が送られる。一方、イネーブル信号は、3つのモジュールのそれぞれに異なるものが送られる。詳細には、有効期間が異なる3つのイネーブル信号が、3つのモジュールのそれぞれに送られる。   FIG. 2 is a diagram showing a clock signal and an enable signal output to the three modules mounted on the base board. In the programmable controller of the first embodiment, as shown in FIG. 2, a common clock signal is sent to each of the three modules. On the other hand, a different enable signal is sent to each of the three modules. Specifically, three enable signals with different valid periods are sent to each of the three modules.

具体的には、図2に示した例では、3つのイネーブル信号のうち、上段に示したものが、第1のモジュールに送られる。このイネーブル信号の有効期間中のクロック信号の振動数が5であるため、第1のモジュールの局番は5になる。また、中段に示したイネーブル信号は、第2のモジュールに送られる。このイネーブル信号の有効期間中のクロック信号の振動数は6であるため、第2のモジュールの局番は6になる。更に、下段に示したイネーブル信号は、第3のモジュールに送られる。このイネーブル信号の有効期間中のクロック信号の振動数は7であるため、第3のモジュールの局番は7になる。   Specifically, in the example shown in FIG. 2, among the three enable signals, the one shown in the upper stage is sent to the first module. Since the frequency of the clock signal during the effective period of the enable signal is 5, the station number of the first module is 5. The enable signal shown in the middle stage is sent to the second module. Since the frequency of the clock signal during the effective period of the enable signal is 6, the station number of the second module is 6. Further, the enable signal shown in the lower part is sent to the third module. Since the frequency of the clock signal during the effective period of the enable signal is 7, the station number of the third module is 7.

図3は第1の実施形態のプログラマブルコントローラを示した図である。図3に示すように、第1の実施形態のプログラマブルコントローラでは、例えば4つのモジュール2をベースボード1に搭載するために、4つのモジュール装着用スロットSL1〜SL4がベースボード1に設けられている。また、ベースボード1には、スロットSL1〜SL4に装着されたモジュール2に対してクロック信号5およびイネーブル信号6を出力するための信号発生源4が設けられている。更に、ベースボード1には、スロットSL1に装着されたモジュール2の局番を設定するための局番設定スイッチ3が設けられている。   FIG. 3 is a diagram illustrating the programmable controller according to the first embodiment. As shown in FIG. 3, in the programmable controller of the first embodiment, for example, four module mounting slots SL <b> 1 to SL <b> 4 are provided in the base board 1 in order to mount four modules 2 on the base board 1. . In addition, the base board 1 is provided with a signal generation source 4 for outputting a clock signal 5 and an enable signal 6 to the modules 2 mounted in the slots SL1 to SL4. Further, the base board 1 is provided with a station number setting switch 3 for setting the station number of the module 2 mounted in the slot SL1.

また、図3に示すように、第1の実施形態のプログラマブルコントローラでは、スロットSL1〜SL4に装着された4つのモジュール2と信号発生源4とが、クロック信号線5’によって接続されている。そのため、信号発生源4において生成されたクロック信号5は、スロットSL1に装着されたモジュール2にクロック信号線5’を介して送られる。同様に、スロットSL2に装着されたモジュール2、スロットSL3に装着されたモジュール2、およびスロットSL4に装着されたモジュール2にも、信号発生源4において生成されたクロック信号5が、クロック信号線5’を介して送られる。つまり、スロットSL1〜SL4に装着されたそれぞれのモジュール2には、共通のクロック信号5が送られる。   As shown in FIG. 3, in the programmable controller of the first embodiment, the four modules 2 mounted in the slots SL1 to SL4 and the signal generation source 4 are connected by a clock signal line 5 '. Therefore, the clock signal 5 generated in the signal generation source 4 is sent to the module 2 mounted in the slot SL1 via the clock signal line 5 '. Similarly, the clock signal 5 generated in the signal generation source 4 is also supplied to the clock signal line 5 in the module 2 installed in the slot SL2, the module 2 installed in the slot SL3, and the module 2 installed in the slot SL4. 'Sent through. That is, a common clock signal 5 is sent to each module 2 installed in the slots SL1 to SL4.

更に、図3に示すように、第1の実施形態のプログラマブルコントローラでは、スロットSL1〜SL4に装着された4つのモジュール2と信号発生源4とが、イネーブル信号線6’,7’,8’,9’およびイネーブル信号の有効期間を拡張するための有効期間拡張回路10を介して接続されている。   Furthermore, as shown in FIG. 3, in the programmable controller of the first embodiment, the four modules 2 mounted in the slots SL1 to SL4 and the signal generation source 4 are connected to enable signal lines 6 ′, 7 ′, and 8 ′. , 9 ′ and the valid period extending circuit 10 for extending the valid period of the enable signal.

詳細には、スロットSL1に装着されたモジュール2の局番が、局番設定スイッチ3において例えば5に設定されると、有効期間中のクロック信号5の振動数が5になるようなイネーブル信号6が、信号発生源4において生成され、信号発生源4から出力される。信号発生源4から出力されたイネーブル信号6は、イネーブル信号線6’を介し、スロットSL1に装着されたモジュール2に送られる。スロットSL1に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、イネーブル信号線6’を介して送られてきたイネーブル信号6とに基づいて、スロットSL1に装着されたモジュール2の局番が把握される。詳細には、イネーブル信号6の有効期間(LOWレベル期間)中のクロック信号5の振動数が5であるため、スロットSL1に装着されたモジュール2の局番が5であると把握される。   Specifically, when the station number of the module 2 mounted in the slot SL1 is set to 5, for example, in the station number setting switch 3, the enable signal 6 is set so that the frequency of the clock signal 5 during the effective period becomes 5. It is generated in the signal source 4 and output from the signal source 4. The enable signal 6 output from the signal generation source 4 is sent to the module 2 mounted in the slot SL1 via the enable signal line 6 '. In the module 2 installed in the slot SL1, the clock signal 5 sent via the clock signal line 5 ′ and the enable signal 6 sent via the enable signal line 6 ′ are input to the slot SL1. The station number of the installed module 2 is grasped. Specifically, since the frequency of the clock signal 5 during the effective period (LOW level period) of the enable signal 6 is 5, it is understood that the station number of the module 2 mounted in the slot SL1 is 5.

信号発生源4から出力されたイネーブル信号6は、スロットSL1とスロットSL2との間に配置された有効期間拡張回路10にも送られる。スロットSL1とスロットSL2との間の有効期間拡張回路10では、その有効期間拡張回路10に入力されたイネーブル信号6の有効期間がクロック信号5の1周期分だけ拡張せしめられてイネーブル信号7が生成され、そのイネーブル信号7が、その有効期間拡張回路10の下流側に出力される。スロットSL1とスロットSL2との間の有効期間拡張回路10から出力されたイネーブル信号7は、イネーブル信号線7’を介し、スロットSL2に装着されたモジュール2に送られる。スロットSL2に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、イネーブル信号線7’を介して送られてきたイネーブル信号7とに基づいて、スロットSL2に装着されたモジュール2の局番が把握される。詳細には、イネーブル信号7の有効期間(LOWレベル期間)中のクロック信号5の振動数が6であるため、スロットSL2に装着されたモジュール2の局番が6であると把握される。   The enable signal 6 output from the signal generation source 4 is also sent to an effective period extension circuit 10 disposed between the slot SL1 and the slot SL2. In the valid period extension circuit 10 between the slot SL1 and the slot SL2, the valid period of the enable signal 6 input to the valid period extension circuit 10 is extended by one period of the clock signal 5, and the enable signal 7 is generated. Then, the enable signal 7 is output to the downstream side of the effective period extension circuit 10. The enable signal 7 output from the effective period extension circuit 10 between the slot SL1 and the slot SL2 is sent to the module 2 mounted in the slot SL2 via the enable signal line 7 '. In the module 2 mounted in the slot SL2, the clock signal 5 sent via the clock signal line 5 ′ and the enable signal 7 sent via the enable signal line 7 ′ are input to the slot SL2. The station number of the installed module 2 is grasped. Specifically, since the frequency of the clock signal 5 during the valid period (LOW level period) of the enable signal 7 is 6, it is understood that the station number of the module 2 mounted in the slot SL2 is 6.

スロットSL1とスロットSL2との間の有効期間拡張回路10から出力されたイネーブル信号7は、スロットSL2とスロットSL3との間に配置された有効期間拡張回路10にも送られる。スロットSL2とスロットSL3との間の有効期間拡張回路10では、その有効期間拡張回路10に入力されたイネーブル信号7の有効期間がクロック信号5の1周期分だけ拡張せしめられてイネーブル信号8が生成され、そのイネーブル信号8が、その有効期間拡張回路10の下流側に出力される。スロットSL2とスロットSL3との間の有効期間拡張回路10から出力されたイネーブル信号8は、イネーブル信号線8’を介し、スロットSL3に装着されたモジュール2に送られる。スロットSL3に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、イネーブル信号線8’を介して送られてきたイネーブル信号8とに基づいて、スロットSL3に装着されたモジュール2の局番が把握される。詳細には、イネーブル信号8の有効期間(LOWレベル期間)中のクロック信号5の振動数が7であるため、スロットSL3に装着されたモジュール2の局番が7であると把握される。   The enable signal 7 output from the valid period extension circuit 10 between the slot SL1 and the slot SL2 is also sent to the valid period extension circuit 10 disposed between the slot SL2 and the slot SL3. In the valid period extension circuit 10 between the slot SL2 and the slot SL3, the valid period of the enable signal 7 input to the valid period extension circuit 10 is extended by one period of the clock signal 5, and the enable signal 8 is generated. Then, the enable signal 8 is output downstream of the valid period extension circuit 10. The enable signal 8 output from the effective period extension circuit 10 between the slot SL2 and the slot SL3 is sent to the module 2 mounted in the slot SL3 via the enable signal line 8 '. In the module 2 mounted in the slot SL3, based on the clock signal 5 sent via the clock signal line 5 ′ and the enable signal 8 sent via the enable signal line 8 ′, the slot SL3 is loaded. The station number of the installed module 2 is grasped. Specifically, since the frequency of the clock signal 5 during the valid period (LOW level period) of the enable signal 8 is 7, it is understood that the station number of the module 2 mounted in the slot SL3 is 7.

スロットSL2とスロットSL3との間の有効期間拡張回路10から出力されたイネーブル信号8は、スロットSL3とスロットSL4との間に配置された有効期間拡張回路10にも送られる。スロットSL3とスロットSL4との間の有効期間拡張回路10では、その有効期間拡張回路10に入力されたイネーブル信号8の有効期間がクロック信号5の1周期分だけ拡張せしめられてイネーブル信号9が生成され、そのイネーブル信号9が、その有効期間拡張回路10の下流側に出力される。スロットSL3とスロットSL4との間の有効期間拡張回路10から出力されたイネーブル信号9は、イネーブル信号線9’を介し、スロットSL4に装着されたモジュール2に送られる。スロットSL4に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、イネーブル信号線9’を介して送られてきたイネーブル信号9とに基づいて、スロットSL4に装着されたモジュール2の局番が把握される。詳細には、イネーブル信号9の有効期間(LOWレベル期間)中のクロック信号5の振動数が8であるため、スロットSL4に装着されたモジュール2の局番が8であると把握される。   The enable signal 8 output from the valid period extension circuit 10 between the slot SL2 and the slot SL3 is also sent to the valid period extension circuit 10 disposed between the slot SL3 and the slot SL4. In the valid period extending circuit 10 between the slot SL3 and the slot SL4, the valid period of the enable signal 8 input to the valid period extending circuit 10 is extended by one period of the clock signal 5, and the enable signal 9 is generated. Then, the enable signal 9 is output downstream of the effective period extension circuit 10. The enable signal 9 output from the effective period extension circuit 10 between the slot SL3 and the slot SL4 is sent to the module 2 mounted in the slot SL4 via the enable signal line 9 '. In the module 2 mounted in the slot SL4, based on the clock signal 5 sent via the clock signal line 5 ′ and the enable signal 9 sent via the enable signal line 9 ′, the module SL2 is inserted into the slot SL4. The station number of the installed module 2 is grasped. Specifically, since the frequency of the clock signal 5 during the valid period (LOW level period) of the enable signal 9 is 8, it is understood that the station number of the module 2 mounted in the slot SL4 is 8.

上述したように、第1の実施形態のプログラマブルコントローラでは、ベースボード1に搭載された4つのモジュール2のうち、スロットSL1に装着されたモジュール2の局番が局番設定スイッチ3において設定されると、残りの3つのモジュール2の局番が自動的に設定されるようになっている。つまり、ベースボード1に搭載された4つのモジュール2の局番が、従来のように各モジュールにおいてそれぞれ設定されるのではなく、ベースボード側で一括して設定されるようになっている。そのため、従来のようにベースボード1に搭載された複数のモジュール2の局番が各モジュール2においてそれぞれ設定される場合よりも、モジュール2の局番設定作業を容易にし、例えばユーザーのような局番設定者の負担を低減することができる。   As described above, in the programmable controller of the first embodiment, among the four modules 2 mounted on the base board 1, when the station number of the module 2 mounted in the slot SL1 is set in the station number setting switch 3, The station numbers of the remaining three modules 2 are automatically set. In other words, the station numbers of the four modules 2 mounted on the base board 1 are not set in each module as in the prior art, but are collectively set on the base board side. Therefore, the station number setting work of the module 2 is made easier than the case where the station numbers of the plurality of modules 2 mounted on the base board 1 are set in each module 2 as in the prior art. Can be reduced.

また、上述したように、スロットSL1〜SL4に装着されたモジュール2では、イネーブル信号6〜9の有効期間中のクロック信号5の振動数を計数することにより、そのモジュール2に設定された局番の値を知ることができる。   Further, as described above, in the module 2 installed in the slots SL1 to SL4, the frequency of the clock signal 5 during the valid period of the enable signals 6 to 9 is counted, whereby the station number set in the module 2 is obtained. You can know the value.

更に、上述したように、隣接する2つのスロットSL1〜SL4の間には、イネーブル信号6〜8の終期をクロック信号5に同期して1クロック分(1周期分)遅らせる有効期間拡張回路10が設けられているため、スロットSL1〜SL4の番号が増えるに従って、イネーブル信号6〜8の有効期間も長くなっていく。これにより、ベースボード1に塔載されたモジュール2は、そのモジュール2のスロット位置固有のクロック数を計数することになり、ベースボード1上に塔載されたモジュール2には、それぞれ個別の局番が設定されることになる。   Further, as described above, between the two adjacent slots SL1 to SL4, the effective period extension circuit 10 that delays the end of the enable signals 6 to 8 by one clock (one period) in synchronization with the clock signal 5 is provided. Since the number of slots SL1 to SL4 increases, the valid period of the enable signals 6 to 8 becomes longer. As a result, the module 2 mounted on the base board 1 counts the number of clocks specific to the slot position of the module 2, and each module 2 mounted on the base board 1 has an individual station number. Will be set.

換言すれば、第1の実施形態のプログラマブルコントローラでは、図3に示したように、複数のモジュール2の局番を設定するためのクロック信号5とイネーブル信号6とが、ベースボード1に搭載された信号発生源4から複数のモジュール2のそれぞれに向かって出力される。また、イネーブル信号7,8,9の有効期間中のクロック信号5の振動数に基づいて、モジュール2の局番が設定される。   In other words, in the programmable controller of the first embodiment, as shown in FIG. 3, the clock signal 5 and the enable signal 6 for setting the station numbers of the plurality of modules 2 are mounted on the base board 1. The signal is output from the signal generation source 4 toward each of the plurality of modules 2. Further, the station number of the module 2 is set based on the frequency of the clock signal 5 during the valid period of the enable signals 7, 8, 9.

更に、第1の実施形態のプログラマブルコントローラでは、信号発生源4と複数のモジュール2とがイネーブル信号線6’,7’,8’,9’によって接続されている。また、イネーブル信号6,7,8の有効期間を拡張するための有効期間拡張回路10が、隣接する2つのモジュール2を接続する信号線に配置されている。更に、信号発生源4から出力されたイネーブル信号6(7,8)が有効期間変更回路10を通過せしめられる毎に、イネーブル信号6,7,8の有効期間がクロック信号5の1周期分だけ拡張せしめられる。   Furthermore, in the programmable controller of the first embodiment, the signal generation source 4 and the plurality of modules 2 are connected by enable signal lines 6 ', 7', 8 ', 9'. Further, an effective period extension circuit 10 for extending the effective period of the enable signals 6, 7, and 8 is disposed on a signal line that connects two adjacent modules 2. Further, each time the enable signal 6 (7, 8) output from the signal source 4 is passed through the valid period changing circuit 10, the valid period of the enable signals 6, 7, 8 is equivalent to one cycle of the clock signal 5. Can be expanded.

第1の実施形態のプログラマブルコントローラによれば、ユーザーがベースボード1の局番設定スイッチ4で先頭となる局番を設定するだけで、ベースボード1に塔載されたすべてのモジュール2に自動的に連番の局番を設定することができる。それにより、システムの保守管理性を大幅に向上させることができる。また回路的にも、ベースボード1に局番設定スイッチ3と、信号発生源4と、各スロットSL1〜SL4間にイネーブル信号の有効期間を拡張する有効期間拡張回路10を設けることで、最小で2本の信号線だけで全てのスロットSL1〜SL4に局番を設定することができる。そのため、極めて容易に局番設定回路を構築することができる。また、従来はモジュール側に塔載されていた局番設定スイッチや、局番を記憶しておくための部品を各モジュールに搭載する必要がなくなるため、大幅なコストダウンを達成することができる。   According to the programmable controller of the first embodiment, all the modules 2 mounted on the baseboard 1 are automatically connected to the baseboard 1 by simply setting the head station number with the station number setting switch 4 of the baseboard 1. The station number can be set. As a result, the maintenance and manageability of the system can be greatly improved. Further, in terms of circuitry, the base board 1 is provided with the station number setting switch 3, the signal generation source 4, and the effective period extending circuit 10 for extending the effective period of the enable signal between each of the slots SL1 to SL4. Station numbers can be set in all the slots SL1 to SL4 with only one signal line. Therefore, a station number setting circuit can be constructed very easily. In addition, since it is not necessary to mount a station number setting switch or a part for storing the station number, which has been conventionally mounted on the module side, in each module, a significant cost reduction can be achieved.

上述したように、第1の実施形態では、隣接する2つのモジュールの間でイネーブル信号の有効期間を拡張することにより、各モジュールに異なる局番を設定したが、他の実施形態では、代わりに、隣接する2つのモジュールの間でイネーブル信号の有効期間を短縮することにより、各モジュールに異なる局番を設定することも可能である。   As described above, in the first embodiment, a different station number is set for each module by extending the valid period of the enable signal between two adjacent modules, but in other embodiments, instead, By shortening the valid period of the enable signal between two adjacent modules, it is possible to set a different station number for each module.

以下、本発明のプログラマブルコントローラの第2の実施形態について説明する。第2の実施形態のプログラマブルコントローラは、後述する点を除き、上述した第1の実施形態のプログラマブルコントローラと同様に構成されている。そのため、第1の実施形態のプログラマブルコントローラとほぼ同様の効果を奏することができる。   Hereinafter, a second embodiment of the programmable controller of the present invention will be described. The programmable controller according to the second embodiment is configured in the same manner as the programmable controller according to the first embodiment described above, except for the points described below. Therefore, it is possible to achieve substantially the same effect as the programmable controller of the first embodiment.

図4は第2の実施形態のプログラマブルコントローラを示した図である。図4において、図3に示した参照番号と同一の参照番号は、図3に示した部品または信号と同一の部品または信号を示している。図4に示すように、第2の実施形態のプログラマブルコントローラでは、スロットSL1〜SL4に装着されたモジュール2に対してクロック信号5、上位桁のイネーブル信号16、および下位桁のイネーブル信号17を出力するための2桁信号発生源14が、ベースボード1に設けられている。   FIG. 4 is a diagram illustrating a programmable controller according to the second embodiment. 4, the same reference numbers as those shown in FIG. 3 indicate the same components or signals as the components or signals shown in FIG. As shown in FIG. 4, the programmable controller of the second embodiment outputs a clock signal 5, an upper digit enable signal 16, and a lower digit enable signal 17 to the module 2 mounted in the slots SL1 to SL4. A two-digit signal generation source 14 is provided on the base board 1 for this purpose.

また、図4に示すように、第2の実施形態のプログラマブルコントローラでは、スロットSL1〜SL4に装着された4つのモジュール2と信号発生源4とが、上位桁のイネーブル信号線16’によって接続されている。そのため、信号発生源4において生成された上位桁のイネーブル信号16は、スロットSL1に装着されたモジュール2に上位桁のイネーブル信号線16’を介して送られる。同様に、スロットSL2に装着されたモジュール2、スロットSL3に装着されたモジュール2、およびスロットSL4に装着されたモジュール2にも、信号発生源4において生成された上位桁のイネーブル信号16が、上位桁のイネーブル信号線16’を介して送られる。つまり、スロットSL1〜SL4に装着されたそれぞれのモジュール2には、共通の上位桁のイネーブル信号16が送られる。   As shown in FIG. 4, in the programmable controller of the second embodiment, the four modules 2 mounted in the slots SL1 to SL4 and the signal generation source 4 are connected by an enable signal line 16 'of the upper digit. ing. Therefore, the upper digit enable signal 16 generated by the signal generation source 4 is sent to the module 2 mounted in the slot SL1 via the upper digit enable signal line 16 '. Similarly, in the module 2 installed in the slot SL2, the module 2 installed in the slot SL3, and the module 2 installed in the slot SL4, the high-order enable signal 16 generated in the signal generation source 4 It is sent via the digit enable signal line 16 '. In other words, the common upper digit enable signal 16 is sent to each module 2 mounted in the slots SL1 to SL4.

更に、図4に示すように、第2の実施形態のプログラマブルコントローラでは、スロットSL1〜SL4に装着された4つのモジュール2と信号発生源4とが、下位桁のイネーブル信号線17’,18’,19’,20’およびイネーブル信号の有効期間を拡張するための有効期間拡張回路10を介して接続されている。   Further, as shown in FIG. 4, in the programmable controller of the second embodiment, the four modules 2 mounted in the slots SL1 to SL4 and the signal generation source 4 are connected to the lower-order enable signal lines 17 ′ and 18 ′. , 19 ′, 20 ′ and the valid period extending circuit 10 for extending the valid period of the enable signal.

詳細には、スロットSL1に装着されたモジュール2の局番が、局番設定スイッチ3において例えば5に設定されると、有効期間中のクロック信号5の振動数が5になるような下位桁のイネーブル信号17が、信号発生源4において生成され、信号発生源4から出力される。信号発生源4から出力された下位桁のイネーブル信号17は、下位桁のイネーブル信号線17’を介し、スロットSL1に装着されたモジュール2に送られる。スロットSL1に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、下位桁のイネーブル信号線17’を介して送られてきた下位桁のイネーブル信号17とに基づいて、スロットSL1に装着されたモジュール2の局番が把握される。詳細には、下位桁のイネーブル信号17の有効期間(LOWレベル期間)中のクロック信号5の振動数が5であるため、スロットSL1に装着されたモジュール2の局番が5であると把握される。   More specifically, when the station number of the module 2 installed in the slot SL1 is set to 5, for example, in the station number setting switch 3, the enable signal of the lower digit so that the frequency of the clock signal 5 during the effective period becomes 5. 17 is generated in the signal generation source 4 and output from the signal generation source 4. The lower digit enable signal 17 output from the signal generation source 4 is sent to the module 2 mounted in the slot SL1 via the lower digit enable signal line 17 '. In the module 2 installed in the slot SL1, the clock signal 5 sent via the clock signal line 5 ′ and the lower digit enable signal 17 sent via the lower digit enable signal line 17 ′ are used. Based on this, the station number of the module 2 installed in the slot SL1 is grasped. Specifically, since the frequency of the clock signal 5 during the effective period (LOW level period) of the enable signal 17 of the lower digit is 5, it is grasped that the station number of the module 2 mounted in the slot SL1 is 5. .

信号発生源4から出力された下位桁のイネーブル信号17は、スロットSL1とスロットSL2との間に配置された有効期間拡張回路10にも送られる。スロットSL1とスロットSL2との間の有効期間拡張回路10では、その有効期間拡張回路10に入力された下位桁のイネーブル信号17の有効期間がクロック信号5の1周期分だけ拡張せしめられて下位桁のイネーブル信号18が生成され、その下位桁のイネーブル信号18が、その有効期間拡張回路10の下流側に出力される。スロットSL1とスロットSL2との間の有効期間拡張回路10から出力された下位桁のイネーブル信号18は、下位桁のイネーブル信号線18’を介し、スロットSL2に装着されたモジュール2に送られる。スロットSL2に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、下位桁のイネーブル信号線18’を介して送られてきた下位桁のイネーブル信号18とに基づいて、スロットSL2に装着されたモジュール2の局番が把握される。詳細には、下位桁のイネーブル信号18の有効期間(LOWレベル期間)中のクロック信号5の振動数が6であるため、スロットSL2に装着されたモジュール2の局番が6であると把握される。   The lower-digit enable signal 17 output from the signal generation source 4 is also sent to the effective period extension circuit 10 disposed between the slot SL1 and the slot SL2. In the effective period extension circuit 10 between the slot SL1 and the slot SL2, the effective period of the lower digit enable signal 17 input to the effective period extension circuit 10 is extended by one cycle of the clock signal 5, and the lower digit is obtained. Enable signal 18 is generated, and the lower order enable signal 18 is output to the downstream side of the effective period extension circuit 10. The lower digit enable signal 18 output from the valid period extension circuit 10 between the slot SL1 and the slot SL2 is sent to the module 2 mounted in the slot SL2 via the lower digit enable signal line 18 '. In the module 2 installed in the slot SL2, the clock signal 5 sent via the clock signal line 5 ′ and the lower digit enable signal 18 sent via the lower digit enable signal line 18 ′. Based on this, the station number of the module 2 installed in the slot SL2 is grasped. Specifically, since the frequency of the clock signal 5 during the valid period (LOW level period) of the enable signal 18 of the lower digit is 6, it is grasped that the station number of the module 2 installed in the slot SL2 is 6. .

スロットSL1とスロットSL2との間の有効期間拡張回路10から出力された下位桁のイネーブル信号18は、スロットSL2とスロットSL3との間に配置された有効期間拡張回路10にも送られる。スロットSL2とスロットSL3との間の有効期間拡張回路10では、その有効期間拡張回路10に入力された下位桁のイネーブル信号18の有効期間がクロック信号5の1周期分だけ拡張せしめられて下位桁のイネーブル信号19が生成され、その下位桁のイネーブル信号19が、その有効期間拡張回路10の下流側に出力される。スロットSL2とスロットSL3との間の有効期間拡張回路10から出力された下位桁のイネーブル信号19は、下位桁のイネーブル信号線19’を介し、スロットSL3に装着されたモジュール2に送られる。スロットSL3に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、下位桁のイネーブル信号線19’を介して送られてきた下位桁のイネーブル信号19とに基づいて、スロットSL3に装着されたモジュール2の局番が把握される。詳細には、下位桁のイネーブル信号19の有効期間(LOWレベル期間)中のクロック信号5の振動数が7であるため、スロットSL3に装着されたモジュール2の局番が7であると把握される。   The lower-digit enable signal 18 output from the valid period extension circuit 10 between the slot SL1 and the slot SL2 is also sent to the valid period extension circuit 10 arranged between the slot SL2 and the slot SL3. In the effective period extension circuit 10 between the slot SL2 and the slot SL3, the effective period of the lower digit enable signal 18 input to the effective period extension circuit 10 is extended by one cycle of the clock signal 5, and the lower digit is obtained. Enable signal 19 is generated, and the low-order digit enable signal 19 is output downstream of the effective period extension circuit 10. The lower digit enable signal 19 output from the valid period extension circuit 10 between the slot SL2 and the slot SL3 is sent to the module 2 mounted in the slot SL3 via the lower digit enable signal line 19 '. In the module 2 mounted in the slot SL3, the clock signal 5 sent via the clock signal line 5 ′ and the lower digit enable signal 19 sent via the lower digit enable signal line 19 ′ are used. Based on this, the station number of the module 2 mounted in the slot SL3 is grasped. Specifically, since the frequency of the clock signal 5 during the effective period (LOW level period) of the enable signal 19 of the lower digit is 7, it is grasped that the station number of the module 2 mounted in the slot SL3 is 7. .

スロットSL2とスロットSL3との間の有効期間拡張回路10から出力された下位桁のイネーブル信号19は、スロットSL3とスロットSL4との間に配置された有効期間拡張回路10にも送られる。スロットSL3とスロットSL4との間の有効期間拡張回路10では、その有効期間拡張回路10に入力された下位桁のイネーブル信号19の有効期間がクロック信号5の1周期分だけ拡張せしめられて下位桁のイネーブル信号20が生成され、その下位桁のイネーブル信号20が、その有効期間拡張回路10の下流側に出力される。スロットSL3とスロットSL4との間の有効期間拡張回路10から出力された下位桁のイネーブル信号20は、下位桁のイネーブル信号線20’を介し、スロットSL4に装着されたモジュール2に送られる。スロットSL4に装着されたモジュール2では、クロック信号線5’を介して送られてきたクロック信号5と、下位桁のイネーブル信号線20’を介して送られてきた下位桁のイネーブル信号20とに基づいて、スロットSL4に装着されたモジュール2の局番が把握される。詳細には、下位桁のイネーブル信号20の有効期間(LOWレベル期間)中のクロック信号5の振動数が8であるため、スロットSL4に装着されたモジュール2の局番が8であると把握される。   The low-order digit enable signal 19 output from the valid period extension circuit 10 between the slot SL2 and the slot SL3 is also sent to the valid period extension circuit 10 arranged between the slot SL3 and the slot SL4. In the effective period extension circuit 10 between the slot SL3 and the slot SL4, the effective period of the lower digit enable signal 19 input to the effective period extension circuit 10 is extended by one period of the clock signal 5 to obtain the lower digit. Enable signal 20 is generated, and the low-order digit enable signal 20 is output downstream of the effective period extension circuit 10. The lower-digit enable signal 20 output from the valid period extension circuit 10 between the slot SL3 and the slot SL4 is sent to the module 2 mounted in the slot SL4 via the lower-digit enable signal line 20 '. In the module 2 mounted in the slot SL4, the clock signal 5 sent via the clock signal line 5 ′ and the lower digit enable signal 20 sent via the lower digit enable signal line 20 ′ are used. Based on this, the station number of the module 2 installed in the slot SL4 is grasped. Specifically, since the frequency of the clock signal 5 during the valid period (LOW level period) of the enable signal 20 of the lower digit is 8, it is grasped that the station number of the module 2 mounted in the slot SL4 is 8. .

詳細には、第2の実施形態のプログラマブルコントローラでは、モジュール側の処理として上位桁の設定局番値を位上げ(10進数では10倍、16進数では16倍)して、下位桁の設定局番値と合計する処理を行うことで、最終的な局番の値を知ることができる。   In detail, in the programmable controller of the second embodiment, as the processing on the module side, the set station number value of the upper digit is raised (10 times in decimal number, 16 times in hexadecimal number), and the set station number value in the lower digit Thus, the final station number value can be known.

第2の実施形態のプログラマブルコントローラのメリットは、設定する局番の値が大きくなったときにイネーブル信号波形の有効期間が長くなってしまうことを防ぐことができる点にある。10進数の場合は約1/10に、16進数の場合は約1/16の長さのイネーブル信号で局番を設定することができ、設定処理速度を大幅に向上させることができる。   The merit of the programmable controller of the second embodiment is that it is possible to prevent the effective period of the enable signal waveform from becoming long when the value of the set station number becomes large. The station number can be set with an enable signal having a length of about 1/10 in the case of a decimal number and about 1/16 in the case of a hexadecimal number, and the setting processing speed can be greatly improved.

ベースボードに搭載されたモジュールのそれぞれに対して出力されるクロック信号とイネーブル信号とを示した図である。It is the figure which showed the clock signal and enable signal which are output with respect to each of the modules mounted in the base board. ベースボードに搭載された3つのモジュールに対して出力されるクロック信号とイネーブル信号とを示した図である。It is the figure which showed the clock signal and enable signal which are output with respect to three modules mounted in the base board. 第1の実施形態のプログラマブルコントローラを示した図である。It is the figure which showed the programmable controller of 1st Embodiment. 第2の実施形態のプログラマブルコントローラを示した図である。It is the figure which showed the programmable controller of 2nd Embodiment.

符号の説明Explanation of symbols

1 ベースボード
2 モジュール
3 局番設定スイッチ
4 信号発生源
5 クロック信号
5’ クロック信号線
6,7,8,9 イネーブル信号
6’,7’,8’,9’ イネーブル信号線
10 有効期間拡張回路
DESCRIPTION OF SYMBOLS 1 Base board 2 Module 3 Station number setting switch 4 Signal generation source 5 Clock signal 5 'Clock signal line 6, 7, 8, 9 Enable signal 6', 7 ', 8', 9 'Enable signal line 10 Effective period extension circuit

Claims (9)

ベースボードを具備するプログラマブルコントローラにおいて、前記ベースボードに搭載されたモジュールに対し、一定周期のクロック信号と、その有効期間中のクロック信号の振動数を計数するために用いられるイネーブル信号とを出力することを特徴とするプログラマブルコントローラ。   In a programmable controller including a base board, a clock signal having a fixed period and an enable signal used for counting the frequency of the clock signal during the effective period are output to a module mounted on the base board. A programmable controller characterized by that. 前記ベースボードに対して複数のモジュールを装着するために前記ベースボードに複数のスロットを設け、複数のスロットのそれぞれに異なるスロット番号を設定し、スロット番号が1大きくなるに従って、イネーブル信号の有効期間をクロック信号の1周期分だけ拡張することを特徴とする請求項1に記載のプログラマブルコントローラ。   In order to mount a plurality of modules on the base board, a plurality of slots are provided in the base board, a different slot number is set for each of the plurality of slots, and the validity period of the enable signal increases as the slot number increases by one. The programmable controller according to claim 1, wherein the programmable controller is extended by one period of the clock signal. ベースボードに搭載された複数のモジュールのそれぞれに異なる局番を設定することにより、それぞれのモジュールを識別しうるように構成されたプログラマブルコントローラにおいて、複数のモジュールの局番をベースボード側で一括して設定することを特徴とするプログラマブルコントローラ。   By setting different station numbers for each of the multiple modules mounted on the baseboard, the programmable controller configured to identify each module can set the multiple module's station numbers at the same time on the baseboard side. A programmable controller characterized by: 複数のモジュールの局番を設定するためのクロック信号とイネーブル信号とを複数のモジュールに対して出力する信号発生源を具備することを特徴とする請求項3に記載のプログラマブルコントローラ。   4. The programmable controller according to claim 3, further comprising a signal generation source that outputs a clock signal and an enable signal for setting station numbers of the plurality of modules to the plurality of modules. 前記信号発生源を前記ベースボードに搭載したことを特徴とする請求項4に記載のプログラマブルコントローラ。   The programmable controller according to claim 4, wherein the signal generation source is mounted on the base board. イネーブル信号の有効期間中のクロック信号の振動数に基づいて、複数のモジュールの局番を設定することを特徴とする請求項4又は5に記載のプログラマブルコントローラ。   6. The programmable controller according to claim 4, wherein station numbers of a plurality of modules are set based on the frequency of the clock signal during the valid period of the enable signal. イネーブル信号の有効期間を変更するための有効期間変更回路を具備することを特徴とする請求項6に記載のプログラマブルコントローラ。   The programmable controller according to claim 6, further comprising an effective period changing circuit for changing an effective period of the enable signal. 前記信号発生源と複数のモジュールとを信号線によって接続し、隣接する2つのモジュールを接続する前記信号線に前記有効期間変更回路を配置したことを特徴とする請求項7に記載のプログラマブルコントローラ。   The programmable controller according to claim 7, wherein the signal generation source and a plurality of modules are connected by a signal line, and the effective period changing circuit is arranged on the signal line connecting two adjacent modules. 前記信号発生源から出力されたイネーブル信号が前記有効期間変更回路を通過せしめられる毎に、イネーブル信号の有効期間をクロック信号の1周期分だけ拡張することを特徴とする請求項8に記載のプログラマブルコントローラ。   9. The programmable device according to claim 8, wherein each time the enable signal output from the signal generation source passes through the valid period changing circuit, the valid period of the enable signal is extended by one period of the clock signal. controller.
JP2004309049A 2004-10-25 2004-10-25 Programmable controller Pending JP2006120027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004309049A JP2006120027A (en) 2004-10-25 2004-10-25 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004309049A JP2006120027A (en) 2004-10-25 2004-10-25 Programmable controller

Publications (1)

Publication Number Publication Date
JP2006120027A true JP2006120027A (en) 2006-05-11

Family

ID=36537835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004309049A Pending JP2006120027A (en) 2004-10-25 2004-10-25 Programmable controller

Country Status (1)

Country Link
JP (1) JP2006120027A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104024619A (en) * 2012-10-24 2014-09-03 大宇造船海洋株式会社 System and method for supplying hybrid fuel in engine for ship
JP2015162124A (en) * 2014-02-27 2015-09-07 株式会社アイエイアイ Control device, control system, and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104024619A (en) * 2012-10-24 2014-09-03 大宇造船海洋株式会社 System and method for supplying hybrid fuel in engine for ship
JP2015162124A (en) * 2014-02-27 2015-09-07 株式会社アイエイアイ Control device, control system, and control method

Similar Documents

Publication Publication Date Title
CN112327707B (en) Sequence control method, device and system for servo drive
CN102841879A (en) Memory access control device, memory system and memory access control method
JP2006120027A (en) Programmable controller
JP6635696B2 (en) Information processing apparatus and control method
JP5876277B2 (en) Power control device
CN105319408A (en) Signal generator and method for generating signal change curves
US8832475B1 (en) Programmable power mode sequencer
CN205083479U (en) Magnetic resonance apparatus
US8966124B1 (en) Systems, methods, and articles of manufacture to stream data
JP3896251B2 (en) Circuit device having variable number of data output side and device for reading data from the device
JP2007094603A (en) Programmable device control unit and programmable device control method
CN205318208U (en) Driver with extendible function
CN116578165B (en) Multi-board distributed clock synchronization method, device, test system and storage medium
CN119336410B (en) CPLD power-on timing automatic configuration method, device, equipment, and storage medium
CN102693197B (en) Method for calculating minimum unit of read strobe enable fine tuning register of memory controller
JP2014078816A (en) Semiconductor device, data transmission control method, and program
KR100622943B1 (en) Controller that can control timing specification automatically and control method of timing specification
JP2011133324A (en) Semiconductor testing device and semiconductor test method
Yan Hardmotion Design
JP2016063727A (en) Power supply RCP system
JPH02176959A (en) Bus selecting circuit
JP2008165535A (en) Power supply control circuit, power supply control device, power supply control system, and information processing device
JPH02192315A (en) pulse generator
WO2007074658A1 (en) Logic circuit verification system and method for controlling same
JP2007087206A (en) Design support system and design support method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070914

A711 Notification of change in applicant

Effective date: 20080919

Free format text: JAPANESE INTERMEDIATE CODE: A712

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090611

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090630

A02 Decision of refusal

Effective date: 20091117

Free format text: JAPANESE INTERMEDIATE CODE: A02