WO2014207825A1 - プログラマブルコントローラ - Google Patents

プログラマブルコントローラ Download PDF

Info

Publication number
WO2014207825A1
WO2014207825A1 PCT/JP2013/067403 JP2013067403W WO2014207825A1 WO 2014207825 A1 WO2014207825 A1 WO 2014207825A1 JP 2013067403 W JP2013067403 W JP 2013067403W WO 2014207825 A1 WO2014207825 A1 WO 2014207825A1
Authority
WO
WIPO (PCT)
Prior art keywords
control signal
synchronization control
unit
synchronization
programmable controller
Prior art date
Application number
PCT/JP2013/067403
Other languages
English (en)
French (fr)
Inventor
知 生山
順司 山本
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to DE112013007197.5T priority Critical patent/DE112013007197T5/de
Priority to JP2013556446A priority patent/JP5661953B1/ja
Priority to KR1020167000676A priority patent/KR101821068B1/ko
Priority to US14/899,584 priority patent/US9811486B2/en
Priority to PCT/JP2013/067403 priority patent/WO2014207825A1/ja
Priority to CN201380077714.6A priority patent/CN105339854A/zh
Priority to TW102145512A priority patent/TWI498688B/zh
Publication of WO2014207825A1 publication Critical patent/WO2014207825A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4265Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus
    • G06F13/4278Bus transfer protocol, e.g. handshake; Synchronisation on a point to point bus using an embedded synchronisation

Definitions

  • the present invention relates to a programmable controller synchronized with a synchronization control signal.
  • the counter unit that constructs the programmable controller is connected to an external device such as an encoder, counts pulses input from the external device, and stores the current count value in the internal memory.
  • the CPU unit outputs a synchronization control signal with a fixed period to the counter unit, and the counter unit receives the synchronization control signal and latches the current count value of pulses input from an external device such as an encoder in the internal memory.
  • the counter unit can acquire information such as the current position of the workpiece by acquiring the current count value, stable data can be acquired by performing synchronous control in combination with other programmable controller units. it can.
  • the conventional counter unit can select only the signal repeatedly generated at a constant cycle output from the CPU unit as the synchronization control signal, it cannot perform the synchronization control at an arbitrary timing. Therefore, for example, when the moving speed of the workpiece is not constant, there is a problem in that it is impossible to acquire the thickness of the workpiece at a location that is equidistant from the conventional system in which only a signal having a constant period can be used as the synchronization control signal. .
  • the present invention has been made in view of the above, and is a programmable controller capable of realizing control that could not be realized in a system that uses a signal having a constant period as a synchronous control signal, for example, when the moving speed of a workpiece is not constant Even so, an object of the present invention is to obtain a programmable controller capable of acquiring the thickness of the work at equal intervals.
  • the present invention provides a data transmission / reception bus, a synchronization control signal line for transmitting a synchronization control signal, and an external signal connected to the synchronization control signal line.
  • a synchronization control signal generation unit that generates the synchronization control signal based on the data holding unit connected to the bus and the synchronization control signal line, and latches a signal from an external device in an internal memory in synchronization with the synchronization control signal
  • a CPU unit that is connected to the bus and the synchronization control signal line and reads the value of the internal memory via the bus in synchronization with the synchronization control signal.
  • the programmable controller according to the present invention can perform synchronous control at timing optimum for a system including timing by external operation. That is, there is an effect that the synchronous control in which each unit of the programmable controller operates at the same timing with respect to the external input (variable period signal) can be achieved.
  • FIG. 1 is a diagram illustrating a configuration of a programmable controller according to the first embodiment.
  • FIG. 2 is a block diagram of a detailed configuration of the programmable controller according to the first embodiment.
  • FIG. 3 is a diagram of a configuration of the programmable controller according to the second embodiment.
  • FIG. 4 is a block diagram of a detailed configuration of the programmable controller according to the second embodiment.
  • FIG. 5 is a timing diagram of the programmable controller according to the second embodiment.
  • FIG. 1 is a diagram illustrating a configuration of a programmable controller 1 as a control device according to a first embodiment of the present invention.
  • a programmable controller 1 according to an embodiment of the present invention includes a CPU unit 11, a counter unit 12 as a data holding unit, an input unit 13 as a synchronization control signal generation unit, and a base unit 15. With units.
  • the base unit 15 includes a bus communication line L1 for transmitting and receiving data between the units and a synchronization control signal line L2 for transmitting a synchronization control signal.
  • the base unit 15 includes connectors K1 to K3 on the surface side of the plate surface portion connected to each unit.
  • the CPU unit 11 is connected via the connector K1, the counter unit 12 and the connector K3 are connected via the connector K2. Via the input unit 13.
  • the input unit 13 receives an arbitrary signal waveform S ⁇ b> 1 from the external device 21, and based on this, supplies a synchronization control signal having an arbitrary period to the synchronization control signal line L ⁇ b> 2.
  • the counter unit 12 latches and holds a count current value that is a pulse integrated value of the pulse S2 input from the external device 22 in synchronization with the synchronization control signal flowing through the synchronization control signal line L2 on the base unit 15. . That is, the count current value is an integrated value of the number of pulses input to the counter unit 12 from the external device 22 such as an encoder.
  • the CPU unit 11 also executes program processing in synchronization with the synchronization control signal flowing through the synchronization control signal line L2.
  • This program process is a process in which the CPU unit 11 reads the current count value stored in the internal memory of the counter unit 12 using a program instruction.
  • FIG. 2 is a block diagram illustrating a detailed configuration of the programmable controller 1 according to the first embodiment.
  • the programmable controller 1 includes the CPU unit 11, the counter unit 12, the input unit 13, and the base unit 15.
  • Each unit of the CPU unit 11, the counter unit 12, and the input unit 13 is connected to a synchronization control signal line L2 for flowing a synchronization control signal provided in the base unit 15 and a bus communication line L1 for transmitting and receiving data. .
  • Each of the CPU unit 11, the counter unit 12, and the input unit 13 is necessary between the interrupt signal control units W1 to W3 having a function of receiving the synchronization control signal via the synchronization control signal line L2 and each unit.
  • Bus communication processing units B1 to B3 having a function for transmitting and receiving data via the bus communication line L1 are provided.
  • the base unit 15 includes a communication relay control unit 2 having a function for transmitting and receiving necessary data between units.
  • the synchronization control signal line L2 can flow a synchronization control signal with a fixed period for enabling the synchronization control from the clock generation unit 3 or the like, the programmable controller 1 can perform the synchronization control with a fixed period. However, it is possible to perform synchronous control in any cycle.
  • the input unit 13 receives an arbitrary signal waveform S1 input from the external device 21, and directly uses it as a synchronization control signal.
  • a synchronization control signal may be generated based on an arbitrary signal waveform S1 received by the synchronization signal generation unit 4 included in the input unit 13 and supplied to the synchronization control signal line L2. Good.
  • the counter unit 12 latches a count current value that is an integrated value of the number of pulses of the pulse S2 input from the external device 22 at the timing of the falling edge of the synchronization control signal flowing on the synchronization control signal line L2, and stores the internal memory M1 is held for one synchronization control period.
  • one synchronization control cycle means one cycle of the synchronization control signal (rising edge to rising edge / falling edge to falling edge).
  • the external device 21 that generates the arbitrary signal waveform S1 and the external device 22 that generates the pulse S2 may be different or the same. The case where the external device 21 and the external device 22 are different is, for example, a case where operations in two works must be synchronized.
  • the CPU unit 11 has a built-in processor P1, starts executing the program at the timing of the falling edge of the synchronization control signal flowing on the synchronization control signal line L2, and is latched in the internal memory M1 of the counter unit 12. Current count value is acquired through the bus communication line L1. That is, the CPU unit 11 has a relationship of reading the current count value of the counter unit 12. More specifically, the CPU unit 11 counts the current value from the internal memory M1 via the bus communication processing unit B2, the bus communication line L1, the communication relay control unit 2, the bus communication line L1, and the bus communication processing unit B1. get.
  • the programmable controller 1 can perform the synchronization control at an arbitrary cycle.
  • the CPU unit 11 or the clock generation unit 3 has the base unit 15.
  • a synchronization control signal having a constant period is transmitted to the synchronization control signal line L2, and the entire system operates in synchronization therewith.
  • FIG. 3 is a diagram illustrating a configuration of the programmable controller 10 according to the second embodiment.
  • the programmable controller 10 includes a CPU unit 11, a counter unit 12 that holds data, an input unit 13 that generates a synchronization control signal, an analog input unit 14 that holds data, and a base unit 15 (FIG. 3). Not shown). That is, the programmable controller 10 of this embodiment includes an analog input unit 14 in addition to the counter unit 12 as a data holding unit.
  • the input unit 13 receives a pulse signal output from the encoder 31 or the like that measures the position of the work 30 according to the amount of movement of the work 30.
  • This pulse signal is, for example, a signal that increases or decreases the frequency of generation of pulses according to the amount of movement of the workpiece 30.
  • the pulse signal from the encoder 31 is also input to the counter unit 12. That is, in the present embodiment, the external device 21 and the external device 22 in the first embodiment are the same.
  • a current signal that is an analog signal from a displacement sensor 32 that measures the thickness of the workpiece 30 is input to the analog input unit 14. This current signal is, for example, a current amount reflecting the thickness of the work 30.
  • FIG. 4 is a block diagram illustrating a detailed configuration of the programmable controller 10 according to the second embodiment.
  • the programmable controller 10 includes the CPU unit 11, the counter unit 12, the input unit 13, the analog input unit 14, and the base unit 15.
  • the basic configuration of the programmable controller 10 in FIG. 4 is the same as that of the programmable controller 1 in FIG. 2, but in the programmable controller 10, both signals input from the outside to the counter unit 12 and the input unit 13 are output from the encoder 31. It is a pulse signal, and an analog input unit 14 is added. Similar to the counter unit 12, the analog input unit 14 includes an internal memory M4, an interrupt signal control unit W4, and a bus communication processing unit B4. The current signal from the displacement sensor 32 is input to the internal memory M4.
  • the interrupt signal control unit W4 has a function of receiving a synchronization control signal via the synchronization control signal line L2.
  • the bus communication processing unit B4 has a function for transmitting and receiving necessary data between the units via the bus communication line L1.
  • FIG. 5 is a timing chart when the synchronous control is performed at an arbitrary cycle in the programmable controller shown in FIG. A state is shown in which the moving speed of the workpiece 30 is gradually accelerated to a constant speed, maintained at a constant speed for a while, and then gradually decelerated.
  • the CPU unit 11 reads the current count value of the counter unit 12 and the current thickness value of the analog input unit 14 using program instructions.
  • the current thickness value is a thickness value input from the displacement sensor 32 to the analog input unit 14.
  • the width in the time direction shown in “CPU unit (execution cycle)” in each cycle in FIG. 5 represents the execution cycle of the CPU, and the execution cycle is almost the same time for each scan. is there.
  • the input unit 13 supplies the pulse signal from the encoder 31 as it is to the synchronization control signal line L2 as a synchronization control signal.
  • the synchronization signal generation unit 4 of the input unit 13 generates a synchronization control signal having a frequency proportional to the moving speed of the work 30 based on the pulse signal from the encoder 31, and supplies it to the synchronization control signal line L2. May be.
  • the synchronization control signal is, for example, a rectangular pulse train signal whose time width varies as shown in FIG.
  • the frequency of the synchronization control signal increases in proportion to the moving speed.
  • the frequency of the synchronization control signal maintains a constant value.
  • the frequency of the synchronization control signal decreases in proportion to the moving speed.
  • the counter unit 12 latches the current count value (x 1 to x 7 ) in the internal memory M1 for one synchronization control period at the timing of the falling edge of the synchronization control signal.
  • the analog input unit 14 latches the thickness current value (analog value) (y 1 to y 7 ) in the internal memory M4 for one synchronization control period at the timing of the falling edge of the synchronization control signal.
  • the CPU unit 11 starts executing the program at the falling timing of the synchronization control signal, and reads the value of the internal memory M1 of the counter unit 12 and the value of the internal memory M4 of the analog input unit 14 through the bus communication line L1. put out.
  • the thickness of the workpiece 30 at the current position can be acquired with high accuracy. That is, by supplying a pulse signal having a frequency proportional to the moving speed of the work 30 to the synchronization control signal line L2 as a synchronization control signal, even when the moving speed of the work is not constant, the position information (counter unit 12) at the same timing is used. Current count) and thickness (the current thickness value of the analog input unit 14) can be acquired. Thereby, it becomes possible to acquire the thickness at equal intervals in the moving direction of the workpiece 30.
  • an arbitrary external input signal is used in addition to the synchronization control signal having a fixed period.
  • the current count value (count current value) is latched for one synchronization period at the timing when the counter unit (data holding unit) is synchronized with the synchronization control signal, and the timing at which the CPU unit synchronizes the synchronization control signal is the timing at which program execution starts.
  • the control timing of the entire programmable controller can be adjusted to an arbitrary period given from the outside.
  • any external signal can be used as a synchronization control signal, fine control that cannot be realized by a programmable controller that uses only a fixed period signal as a synchronization control signal is realized. It becomes possible to do.
  • the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage.
  • the above embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent requirements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, the problem described in the column of the problem to be solved by the invention can be solved, and is described in the column of the effect of the invention. When an effect is obtained, a configuration from which this configuration requirement is deleted can be extracted as an invention.
  • the constituent elements over different embodiments may be appropriately combined.
  • the programmable controller according to the present invention is useful for control of workpiece processing and the like, and in particular, when the workpiece moving speed changes, the workpiece thickness is measured at regular intervals in the moving direction. Is suitable.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

 実施の形態のプログラマブルコントローラは、データ送受信用のバスと、同期制御信号を伝達する同期制御信号線と、前記同期制御信号線に接続され、外部からの信号に基づいて前記同期制御信号を生成する同期制御信号生成ユニットと、前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して外部機器からの信号を内部メモリにラッチするデータ保持ユニットと、前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して前記バスを介して前記内部メモリの値を読み取るCPUユニットと、を備える。

Description

プログラマブルコントローラ
 本発明は、同期制御信号に同期したプログラマブルコントローラに関する。
 プログラマブルコントローラを構築するカウンタユニットは、エンコーダなどの外部機器と接続し、外部機器より入力されるパルスをカウントし、カウント現在値を内部メモリに格納する。
 CPUユニットは,一定周期の同期制御信号をカウンタユニットへ出力し、カウンタユニットは同期制御信号を受けて、エンコーダなどの外部機器より入力されるパルスのカウント現在値を内部メモリにラッチする。
 このように、カウンタユニットがカウント現在値を内部メモリにラッチするタイミングと、CPUユニットのプログラムの実行開始タイミングは同期して実行されるため、安定した定周期でのカウント現在値を取得することができる。
特開2005-309627号公報 特開平11-205392号公報 特開2005-243008号公報 特開2009-181443号公報
 カウンタユニットは、カウント現在値を取得することにより、ワークの現在位置などの情報を得ることができるため、他のプログラマブルコントローラのユニットと組合せて同期制御することにより、安定したデータを取得することができる。
 しかしながら、従来のカウンタユニットは、CPUユニットより出力される一定周期で繰り返し発生する信号しか同期制御信号として選択できないため、任意のタイミングで同期制御をすることができない。従って、例えばワークの移動速度が一定でない場合は、従来の一定周期の信号しか同期制御信号として使用できないシステムにおいては、ワークの等間隔離れた場所における厚みを取得することができないという問題があった。
 本発明は、上記に鑑みてなされたものであって、一定周期の信号を同期制御信号として使用するシステムでは実現できなかった制御を実現可能なプログラマブルコントローラ、例えば、ワークの移動速度が一定でない場合であっても、等間隔におけるワークの厚みを取得することが可能なプログラマブルコントローラを得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、データ送受信用のバスと、同期制御信号を伝達する同期制御信号線と、前記同期制御信号線に接続され、外部からの信号に基づいて前記同期制御信号を生成する同期制御信号生成ユニットと、前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して外部機器からの信号を内部メモリにラッチするデータ保持ユニットと、前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して前記バスを介して前記内部メモリの値を読み取るCPUユニットと、を備えることを特徴とする。
 本発明にかかるプログラマブルコントローラは、外部動作によるタイミングを含んだシステムに最適なタイミングでの同期制御が可能となる。すなわち、外部入力(可変周期信号)に対して、プログラマブルコントローラの各ユニットが同じタイミングで動作する同期制御が可能になるという効果を奏する。
図1は、実施の形態1にかかるプログラマブルコントローラの構成を示す図である。 図2は、実施の形態1にかかるプログラマブルコントローラの詳細な構成を示すブロック図である。 図3は、実施の形態2にかかるプログラマブルコントローラの構成を示す図である。 図4は、実施の形態2にかかるプログラマブルコントローラの詳細な構成を示すブロック図である。 図5は、実施の形態2にかかるプログラマブルコントローラのタイミング図である。
 以下に、本発明の実施の形態にかかるプログラマブルコントローラを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、本発明の実施の形態1にかかる制御装置としてのプログラマブルコントローラ1の構成を示す図である。図1に示すように、本発明の実施形態にかかるプログラマブルコントローラ1は、CPUユニット11、データ保持ユニットとしてのカウンタユニット12、同期制御信号生成ユニットとしての入力ユニット13、およびベースユニット15の4つのユニットを備える。
 ベースユニット15は、ユニット間でデータを送受信するためのバス通信線L1と,同期制御信号を伝達する同期制御信号線L2を備えている。また、ベースユニット15は、各ユニットと接続する板面部の表面側にコネクタK1~K3を備えており、コネクタK1を介してCPUユニット11と、コネクタK2を介してカウンタユニット12と、コネクタK3を介して入力ユニット13と、それぞれ接続されている。
 図1に示すように、プログラマブルコントローラ1においては、入力ユニット13が外部機器21からの任意の信号波形S1を受信し、これに基づいて任意の周期の同期制御信号を同期制御信号線L2に供給する。カウンタユニット12は、ベースユニット15上の同期制御信号線L2を流れるこの同期制御信号に同期して、外部機器22より入力されるパルスS2のパルス積算値であるカウント現在値をラッチして保持する。すなわち、カウント現在値とは、エンコーダなどの外部機器22からカウンタユニット12に入力されたパルスの数の積算値である。CPUユニット11も、同期制御信号線L2を流れるこの同期制御信号に同期して、プログラム処理を実行する。このプログラム処理は、CPUユニット11がカウンタユニット12の内部メモリに格納されているカウント現在値を、プログラム命令を使って読み出す処理である。
 図2は、実施の形態1にかかるプログラマブルコントローラ1の詳細な構成を示すブロック図である。上述したようにプログラマブルコントローラ1は、CPUユニット11、カウンタユニット12、入力ユニット13、およびベースユニット15を備えている。
 CPUユニット11、カウンタユニット12、および入力ユニット13の各ユニットは、ベースユニット15が備える同期制御信号を流すための同期制御信号線L2とデータを送受信するためのバス通信線L1に接続されている。CPUユニット11、カウンタユニット12、および入力ユニット13の各ユニットは、同期制御信号を同期制御信号線L2を介して受信する機能を有する割込信号制御部W1~W3と各々のユニット間で必要なデータをバス通信線L1を介して送受信するための機能を有するバス通信処理部B1~B3を有している。ベースユニット15は、ユニット間で必要なデータを送受信するための機能を有する通信中継制御部2を備える。
 同期制御信号線L2は、クロック生成部3などから同期制御を可能とするための定周期の同期制御信号を流すことができるので、プログラマブルコントローラ1は、定周期で同期制御を行うことが可能であるが、任意の周期でも同期制御を行うことが可能である。任意の周期で同期制御を実施する場合は、例えば、図1に示すように外部機器21から入力される任意の信号波形S1を入力ユニット13が受信し、それを同期制御信号としてそのままベースユニット15の同期制御信号線L2に供給する。また、或いは、図2に示すように、入力ユニット13が備えた同期信号生成部4が受信した任意の信号波形S1に基づいて同期制御信号を生成して同期制御信号線L2に供給してもよい。
 カウンタユニット12は、同期制御信号線L2上を流れる同期制御信号の立ち下がりエッジのタイミングで、外部機器22より入力されるパルスS2のパルス数の積算値であるカウント現在値をラッチして内部メモリM1に1同期制御周期にわたり保持する。ここで、1同期制御周期とは、同期制御信号の一周期(パルスの立ち上がり~立ち上がり/立ち下がり~立ち下がり)のことを言う。なお、任意の信号波形S1を発生する外部機器21とパルスS2を生成する外部機器22は異なっていてもよいし、同一であっても構わない。外部機器21と外部機器22とが異なっている場合とは、例えば2つのワークにおける動作が同期をとらなければならない場合などである。
 一方、CPUユニット11は、プロセッサP1を内蔵しており、同期制御信号線L2上を流れる同期制御信号の立ち下がりエッジのタイミングで、プログラムを実行開始し、カウンタユニット12の内部メモリM1にラッチされているカウント現在値を、バス通信線L1を通して取得する。すなわち、CPUユニット11がカウンタユニット12のカウント現在値を読み出す関係にある。より詳細には、CPUユニット11は、内部メモリM1から、バス通信処理部B2、バス通信線L1、通信中継制御部2、バス通信線L1、およびバス通信処理部B1を介してカウント現在値を取得する。
 以上より、カウンタユニット12がカウンタ現在値をラッチするタイミングとCPUユニット11がプログラムを実行するタイミングで同期が取れるため、一定周期のカウント値を取得することができる。これにより、プログラム上の命令実行タイミングでのバラツキによるカウント値の誤差を除去できる為、カウント情報を高精度に取得できる。
 プログラマブルコントローラ1は、以上説明したように任意の周期での同期制御を行うことが可能であるが、一定の周期で同期制御を実施する場合は、CPUユニット11あるいはクロック生成部3がベースユニット15の同期制御信号線L2に一定周期の同期制御信号を発信し、システム全体がそれに同期して動作する。
実施の形態2.
 実施の形態2においては、実施の形態1で説明したプログラマブルコントローラ1の具体的なアプリケーション事例としてプログラマブルコントローラ10について説明する。図3は、実施の形態2にかかるプログラマブルコントローラ10の構成を示す図である。
 図3に示すように、プログラマブルコントローラ10は、CPUユニット11、データを保持するカウンタユニット12、同期制御信号を生成する入力ユニット13、データを保持するアナログ入力ユニット14、およびベースユニット15(図3では示されていない)を備える。即ち、本実施の形態のプログラマブルコントローラ10は、データ保持ユニットとして、カウンタユニット12に加えてアナログ入力ユニット14を備えている。
 入力ユニット13には、ワーク30の位置を計測するエンコーダ31などがワーク30の移動量に応じて出力するパルス信号が入力される。このパルス信号は、例えば、ワーク30の移動量に応じてパルスの発生頻度が増減するような信号である。そして、カウンタユニット12にも、エンコーダ31からのパルス信号が入力される。即ち、本実施の形態は、実施の形態1における外部機器21と外部機器22とが同一である場合になっている。アナログ入力ユニット14には、ワーク30の厚みを計測する変位センサ32からのアナログ信号である電流信号が入力される。この電流信号は、例えば、ワーク30の厚みを反映した電流量などになっている。
 図4は、実施の形態2にかかるプログラマブルコントローラ10の詳細な構成を示すブロック図である。上述したようにプログラマブルコントローラ10は、CPUユニット11、カウンタユニット12、入力ユニット13、アナログ入力ユニット14、およびベースユニット15を備えている。
 図4のプログラマブルコントローラ10の基本的な構成は図2のプログラマブルコントローラ1と同様であるが、プログラマブルコントローラ10においては、カウンタユニット12および入力ユニット13に外部から入力される信号が共にエンコーダ31からのパルス信号であり、アナログ入力ユニット14が追加されている。アナログ入力ユニット14もカウンタユニット12と同様に、内部メモリM4、割込信号制御部W4、およびバス通信処理部B4を備える。内部メモリM4には、変位センサ32からの電流信号が入力される。割込信号制御部W4は、同期制御信号を同期制御信号線L2を介して受信する機能を有する。バス通信処理部B4は、各々のユニット間で必要なデータをバス通信線L1を介して送受信するための機能を有する。
 図5は、図3に示したプログラマブルコントローラにおいて、任意の周期で同期制御を実施する場合のタイミング図である。ワーク30の移動速度が徐々に加速されて一定速度になり、暫く一定速度が保たれ、その後徐々に減速される場合の様子を示している。CPUユニット11がカウンタユニット12のカウント現在値およびアナログ入力ユニット14の厚み現在値を、プログラム命令を使って読み出す。厚み現在値とは、変位センサ32からアナログ入力ユニット14に入力された厚みの値である。図5の各周期において「CPUユニット(実行周期)」に示されている時間方向の幅は、CPUの実行周期を表しており、実行周期は毎スキャンほぼ同じ時間となる為、同じ幅にしてある。エンコーダ31からのパルス信号がワーク30の移動速度に比例した周波数を有している場合などは、入力ユニット13は、エンコーダ31からのパルス信号を同期制御信号として同期制御信号線L2にそのまま供給する。或いは、入力ユニット13の同期信号生成部4が、エンコーダ31からのパルス信号に基づいて、ワーク30の移動速度に比例した周波数の同期制御信号を生成して同期制御信号線L2に供給するようにしてもよい。
 同期制御信号は、例えば図5に示すように、時間幅が変動する矩形状のパルス列の信号である。ワーク30の移動速度が徐々に加速されていくにつれ移動速度に比例して同期制御信号の周波数は高くなる。ワーク30の移動速度が一定の状態では同期制御信号の周波数は一定値を保つ。ワーク30の移動速度が徐々に減速されていくにつれ移動速度に比例して同期制御信号の周波数は低くなる。
 図5に示すように、カウンタユニット12は、同期制御信号の立ち下がりエッジのタイミングで、カウント現在値(x1~x7)を内部メモリM1に1同期制御周期の間ラッチする。アナログ入力ユニット14は、同期制御信号の立ち下がりエッジのタイミングで、厚み現在値(アナログ値)(y1~y7)を内部メモリM4に1同期制御周期の間ラッチする。
 一方、CPUユニット11は、同期制御信号の立ち下がりのタイミングでプログラムの実行を開始し、カウンタユニット12の内部メモリM1の値およびアナログ入力ユニット14の内部メモリM4の値をバス通信線L1を通して読出す。これにより、ワーク30の現在位置における厚みを高い精度で取得することが可能となる。即ち、ワーク30の移動速度に比例した周波数を有するパルス信号を同期制御信号として同期制御信号線L2に供給することで、ワークの移動速度が一定でない場合でも、同一タイミングにおける位置情報(カウンタユニット12のカウント現在値)と厚み(アナログ入力ユニット14の厚み現在値)を取得することができる。これにより、ワーク30の移動方向において等間隔での厚みを取得することが可能となる。
 以上説明したように、本実施の形態にかかるプログラマブルコントローラにおいては、定周期の同期制御信号に加えて、任意の外部入力信号を使用する。カウンタユニット(データ保持ユニット)が同期制御信号に同期するタイミングで現在のカウント値(カウント現在値)を1同期周期の間ラッチし、CPUユニットが同期制御信号の同期するタイミングをプログラム実行開始のタイミングとすることによりプログラマブルコントローラ全体の制御タイミングを外部から与えられた任意の周期に合わせることを可能とするものである。本実施の形態にかかるプログラマブルコントローラにおいては、任意の外部信号を同期制御信号として使用することができるため、定周期信号のみを同期制御信号として使用するプログラマブルコントローラでは実現できなかったきめ細かな制御を実現することが可能となる。
 さらに、本願発明は上記実施の形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。また、上記実施の形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出されうる。例えば、実施の形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成が発明として抽出されうる。更に、異なる実施の形態にわたる構成要素を適宜組み合わせてもよい。
 以上のように、本発明にかかるプログラマブルコントローラは、ワークの加工などの制御に有用であり、特に、ワークの移動速度が変化する場合などに移動方向に等間隔にワークの厚みを測定することに適している。
 1,10 プログラマブルコントローラ、2 通信中継制御部、3 クロック生成部、4 同期信号生成部、11 CPUユニット、12 カウンタユニット、13 入力ユニット、14 アナログ入力ユニット、15 ベースユニット、21,22 外部機器、30 ワーク、31 エンコーダ、32 変位センサ、K1~K3 コネクタ、W1~W4 割込信号制御部、S1 信号波形、S2 パルス、L1 バス通信線、L2 同期制御信号線、B1~B4 バス通信処理部、P1 プロセッサ、M1,M4 内部メモリ。

Claims (4)

  1.  データ送受信用のバスと、
     同期制御信号を伝達する同期制御信号線と、
     前記同期制御信号線に接続され、外部からの信号に基づいて前記同期制御信号を生成する同期制御信号生成ユニットと、
     前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して外部機器からの信号を内部メモリにラッチするデータ保持ユニットと、
     前記バス及び前記同期制御信号線に接続され、前記同期制御信号に同期して前記バスを介して前記内部メモリの値を読み取るCPUユニットと、
     を備える
     ことを特徴とするプログラマブルコントローラ。
  2.  前記データ保持ユニットとして、ワークの移動量に基づいたパルス信号のパルスをカウントしたカウント値をラッチするカウンタユニットと、前記ワークの厚みに基づいたアナログ信号をラッチするアナログ入力ユニットと、を備え、
     前記同期制御信号は前記パルス信号である
     ことを特徴とする請求項1に記載のプログラマブルコントローラ。
  3.  前記CPUユニットが生成した一定周期の信号を前記同期制御信号として使用する
     ことを特徴とする請求項1または2に記載のプログラマブルコントローラ。
  4.  前記データ保持ユニットは、前記同期制御信号の立ち下がりエッジのタイミングでラッチし、前記同期制御信号の1周期の間同じ値を保持する
     ことを特徴とする請求項1、2または3に記載のプログラマブルコントローラ。
PCT/JP2013/067403 2013-06-25 2013-06-25 プログラマブルコントローラ WO2014207825A1 (ja)

Priority Applications (7)

Application Number Priority Date Filing Date Title
DE112013007197.5T DE112013007197T5 (de) 2013-06-25 2013-06-25 Programmierbare Steuerung
JP2013556446A JP5661953B1 (ja) 2013-06-25 2013-06-25 プログラマブルコントローラ
KR1020167000676A KR101821068B1 (ko) 2013-06-25 2013-06-25 프로그래머블 컨트롤러
US14/899,584 US9811486B2 (en) 2013-06-25 2013-06-25 Programmable controller
PCT/JP2013/067403 WO2014207825A1 (ja) 2013-06-25 2013-06-25 プログラマブルコントローラ
CN201380077714.6A CN105339854A (zh) 2013-06-25 2013-06-25 可编程控制器
TW102145512A TWI498688B (zh) 2013-06-25 2013-12-11 可程式控制器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2013/067403 WO2014207825A1 (ja) 2013-06-25 2013-06-25 プログラマブルコントローラ

Publications (1)

Publication Number Publication Date
WO2014207825A1 true WO2014207825A1 (ja) 2014-12-31

Family

ID=52141232

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/067403 WO2014207825A1 (ja) 2013-06-25 2013-06-25 プログラマブルコントローラ

Country Status (7)

Country Link
US (1) US9811486B2 (ja)
JP (1) JP5661953B1 (ja)
KR (1) KR101821068B1 (ja)
CN (1) CN105339854A (ja)
DE (1) DE112013007197T5 (ja)
TW (1) TWI498688B (ja)
WO (1) WO2014207825A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019155560A1 (ja) * 2018-02-07 2019-08-15 三菱電機株式会社 入出力制御ユニット、プログラマブルロジックコントローラおよび検査システム

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017134826A1 (ja) * 2016-02-05 2017-08-10 三菱電機株式会社 制御システム及びアナログ入力ユニット
JPWO2018078821A1 (ja) * 2016-10-28 2018-10-25 三菱電機株式会社 電子機器、プログラマブルコントローラ、プログラマブルコントローラシステム、および同期方法
JP7009751B2 (ja) * 2017-03-15 2022-01-26 オムロン株式会社 計測システム、制御装置、計測方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205392A (ja) * 1998-01-19 1999-07-30 Okuma Corp シリアル通信装置
JP2005243008A (ja) * 2004-01-29 2005-09-08 Omron Corp 診断システムおよび診断方法ならびにツールおよびコンポ
JP2005309627A (ja) * 2004-04-20 2005-11-04 Yaskawa Electric Corp プログラマブルコントローラ装置
JP2009181443A (ja) * 2008-01-31 2009-08-13 Omron Corp 産業用コントローラ用機器
WO2012081115A1 (ja) * 2010-12-16 2012-06-21 三菱電機株式会社 シーケンサシステムおよびその制御方法
WO2012098676A1 (ja) * 2011-01-21 2012-07-26 三菱電機株式会社 アナログ入力ユニットおよびプログラマブルコントローラ

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3866442A (en) * 1972-01-12 1975-02-18 Vyzk Vyvojovy Ustav Vseobe D.c. exitation arrangement for a textile machine programmer
US4384307A (en) * 1979-08-28 1983-05-17 Inteq, Inc. Facsimile communications interface adapter
US6430634B1 (en) 1997-02-07 2002-08-06 Mitsubishi Denki Kabushiki Kaisha Bus controller and bus control system
CN1120395C (zh) * 1998-12-03 2003-09-03 三菱电机株式会社 伺服系统控制器
US6879707B2 (en) * 2000-12-05 2005-04-12 Hewlett-Packard Development Company, L.P. Plural colorants in flow tracer/debugger
US8024584B2 (en) * 2003-10-01 2011-09-20 Ati Technologies Ulc Remote connection system capable of generating a wake-up command and method thereof
JP2006048284A (ja) * 2004-08-03 2006-02-16 Yaskawa Electric Corp プログラマブルコントローラ装置およびオプションモジュールとの同期方法
JP4419192B2 (ja) 2005-02-25 2010-02-24 株式会社デンソー 自動車用制御装置
JP4498250B2 (ja) * 2005-09-22 2010-07-07 ファナック株式会社 同期制御システム
EP2402714B1 (fr) * 2010-07-02 2013-04-17 Tesa Sa Dispositif de mesure de dimensions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11205392A (ja) * 1998-01-19 1999-07-30 Okuma Corp シリアル通信装置
JP2005243008A (ja) * 2004-01-29 2005-09-08 Omron Corp 診断システムおよび診断方法ならびにツールおよびコンポ
JP2005309627A (ja) * 2004-04-20 2005-11-04 Yaskawa Electric Corp プログラマブルコントローラ装置
JP2009181443A (ja) * 2008-01-31 2009-08-13 Omron Corp 産業用コントローラ用機器
WO2012081115A1 (ja) * 2010-12-16 2012-06-21 三菱電機株式会社 シーケンサシステムおよびその制御方法
WO2012098676A1 (ja) * 2011-01-21 2012-07-26 三菱電機株式会社 アナログ入力ユニットおよびプログラマブルコントローラ

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019155560A1 (ja) * 2018-02-07 2019-08-15 三菱電機株式会社 入出力制御ユニット、プログラマブルロジックコントローラおよび検査システム
US11061839B2 (en) 2018-02-07 2021-07-13 Mitsubishi Electric Corporation Input/output control unit, programmable logic controller, and inspection system

Also Published As

Publication number Publication date
DE112013007197T5 (de) 2016-03-10
CN105339854A (zh) 2016-02-17
US20160147682A1 (en) 2016-05-26
KR20160018796A (ko) 2016-02-17
JP5661953B1 (ja) 2015-01-28
KR101821068B1 (ko) 2018-01-22
US9811486B2 (en) 2017-11-07
JPWO2014207825A1 (ja) 2017-02-23
TW201500874A (zh) 2015-01-01
TWI498688B (zh) 2015-09-01

Similar Documents

Publication Publication Date Title
JP5661953B1 (ja) プログラマブルコントローラ
JP4901813B2 (ja) マルチコントローラシステム
EP3534227B1 (en) Measurement system and method thereof
US9823646B2 (en) Device and method for generating a trigger signal in a position-measuring device and corresponding position-measuring device
JP5036056B2 (ja) タイマユニット回路及びその使用方法
Kumar et al. A new method to enhance performance of digital frequency measurement and minimize the clock skew
CN103838183A (zh) 一种数控系统及其输出控制方法
US20110026664A1 (en) Counter/Timer Functionality in Data Acquisition Systems
JP6423971B2 (ja) 機能ユニット及び制御装置
CN201556048U (zh) 一种多功能时间综合测量仪
JP5787096B2 (ja) 物理量測定装置、物理量測定方法
US8775852B2 (en) Method for sensing input signal changes
KR102049291B1 (ko) 계측 시스템, 제어 장치, 계측 방법
JP2022546947A (ja) 同期式にシリアルデータ伝送するための装置及び方法
CN202049196U (zh) 一种频率稳定度测量装置
JP2011086120A (ja) 制御装置
CN211741962U (zh) 一种计算机与带硬件触发功能设备的时钟驯服系统
US11356042B2 (en) Method of controlling a brushless DC motor
WO2014136230A1 (ja) 分散型制御装置及び制御方法
CN104779936A (zh) 由plc输出定位脉冲的方法
KR101325915B1 (ko) 타이머를 이용한 인버터의 속도 측정 방법
JP4661743B2 (ja) モータ駆動装置
JP2014109507A (ja) ジャイロ装置および角速度検知システム
Artyukh et al. Constructing of Unlimited Single-valued Time Scale for TDC-based Event Timers
JP2003070277A (ja) モータ制御装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380077714.6

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2013556446

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13888480

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14899584

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 112013007197

Country of ref document: DE

ENP Entry into the national phase

Ref document number: 20167000676

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 13888480

Country of ref document: EP

Kind code of ref document: A1