JPH01280804A - Controller - Google Patents
ControllerInfo
- Publication number
- JPH01280804A JPH01280804A JP11013388A JP11013388A JPH01280804A JP H01280804 A JPH01280804 A JP H01280804A JP 11013388 A JP11013388 A JP 11013388A JP 11013388 A JP11013388 A JP 11013388A JP H01280804 A JPH01280804 A JP H01280804A
- Authority
- JP
- Japan
- Prior art keywords
- motor
- load current
- plc
- shared memory
- current value
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/33—Director till display
- G05B2219/33161—Data exchange between controller and processors
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34069—Shared memory
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/34—Director, elements to supervisory
- G05B2219/34303—PNC is plc, pic and nc cooperation
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/37—Measurements
- G05B2219/37285—Load, current taken by motor
Landscapes
- Numerical Control (AREA)
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、NCとPLCとを有する制御装置に関する
ものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control device having an NC and a PLC.
第4図は従来の制御装置を示すプロ、・・り図である。 FIG. 4 is a diagram showing a conventional control device.
図において、(1)はNC、(2)はNC(1)Q)C
PU、(3)は加工情報(加ニブログラム、座標値、速
度などンを一時的に記憶しておく記憶部、(4)はN
O(1)とPLC03か情報父換を行うために使用する
共有メモリ、(5)はN O(1)←共1メモIバ4)
i!I交信を有効とするη>PLCυ−共有メモリ(4
)間交信を有効とするか切替えを行う切替部、(6)(
7)は割込制御部、(8)頭はパラレルバスI21J制
御用のインタフヱイス、(9)は工作機械(不図示)の
移動層、速度を演算しそれを工作機械を駆動するモータ
αOに出力する駆動制御部、αυは実際の移動源・速度
をモータαOより検出し駆動制御部(9)にフィードパ
・・・り出力する検出器、13はPLCIEのCPU
、 l圓は機械的を制御オろシー・rンスプログラムを
記憶してお(記憶部、X−
UυはCPUa3#前記シーケンスプログラムの実行に
伴って機械α刀を制御する信号を出力する出力部、(至
)は制縄情服をPLC[12に設定しかつ表示すろ設定
表示部、0!Jは設定表示部(へ)に接続され設定表示
部(ト)を介してテープ四に記憶され”Cいる加工情報
を入力する入力部である。In the figure, (1) is NC, (2) is NC (1)Q)C
PU, (3) is a storage unit that temporarily stores machining information (nitrogram, coordinate values, speed, etc.), (4) is N
Shared memory used to exchange information between O(1) and PLC03, (5)
i! I communication enabled η>PLCυ−shared memory (4
); (6) a switching unit that enables or switches communication between
7) is an interrupt control unit, (8) the head is an interface for parallel bus I21J control, (9) is a moving layer of the machine tool (not shown), calculates the speed, and outputs it to the motor αO that drives the machine tool. 13 is the CPU of the PLCIE
, 1 is a memory unit which stores a mechanical control sequence program (memory part, , (to) sets the control mood to PLC [12 and displays it in the setting display section, 0!J is connected to the setting display section (to) and is stored on tape 4 via the setting display section (g). This is an input section for inputting processing information.
以上の様に溝成し1こNC(1)とPLC03の間で情
報受信する動作について説明する。まず、NC(1)に
加工情報を書込む場合について第2図に基づいて説明す
る。The operation of receiving information between the groove forming NC (1) and the PLC 03 as described above will be explained. First, the case of writing processing information to NC(1) will be explained based on FIG. 2.
PLCQ2に加工情報の書込み信号が入力されると(ス
テーノブ30)、PLC!■はインタフェイスO9,パ
ラレルバスCD、インタフェイス(8)を介して割込制
御部(6)に割込信号を送る(ステー・プ31)。When the processing information write signal is input to PLCQ2 (steel knob 30), PLC! (3) sends an interrupt signal to the interrupt control unit (6) via the interface O9, parallel bus CD, and interface (8) (step 31);
割込制御部(6)は、割込信号によりCPU(2)に割
込をかける(ステー」ブ32)。CPU(2)は該割込
を受けると書込完了でなければ(ステ、・・ブ33)、
切替部(5)に切替信号を送り切替部(5)をPLCC
IZ側に切替部る(ステ・・・ブ34)。次に、CPU
(2) ハ割込制御部(7)にCPU準備完了の割込
信号を送り割込制御部(7)からPLCO2に割込をか
ける(ステ、・・プ35)。PLCUはCPU準備完了
の割込信号を受けると(ステー・プ36)、入力部Q9
から設定表示部(至)を介して加工情報を読込みインタ
フェル
イスα9、パラレ具バスc!1)、 インタフェイス(
8)を介1字して共有メモリ(4)に加工情報を壷込む
(ステー、プ37)。共有メモリ(4)への加工情報の
書込みが完了すると(ステ・・・ブ38)、再度C!P
U(2)に割込制御部(6)を介して書込完了の割込信
号を送り(ステ・、ブ32)、その後書込動作を完了す
る(ステ、・・ブ39)。一方、CPU(2)はPLC
Q2からの書込完了の割込信号を受けると(ステ・、プ
38)、切替部(5)をCPU(2)側に切替える(ス
テ・・・ブ40)。その後CPU(2)は共有メモリ(
4)に書込まれた加工情報を記憶部(3)に読込み(ス
テ、・・ブ41)、完了する(ステー・ブ42)。ま1
こ、記憶部(3)に対する加工情報の読込みが完了する
とCPU(2)は割込制御部(7)を介して割込信号を
PLCa2に送り設定表示部(至)に読込完了を表示す
ることができる。The interrupt control unit (6) interrupts the CPU (2) using an interrupt signal (stave 32). When the CPU (2) receives the interrupt, if the writing is not completed (Step 33),
Send a switching signal to the switching unit (5) and switch the switching unit (5) to the PLCC
The switching section is moved to the IZ side (step 34). Next, the CPU
(2) Send an interrupt signal indicating that the CPU is ready to the interrupt control unit (7) and issue an interrupt to the PLCO 2 from the interrupt control unit (7) (Step 35). When the PLCU receives an interrupt signal indicating that the CPU is ready (step 36), the input section Q9
Read the machining information from the setting display section (to) interface Lewis α9, parallel tool bus c! 1), Interface (
8), the processing information is stored in the shared memory (4) (step 37). When writing of processing information to the shared memory (4) is completed (Step 38), C! P
An interrupt signal indicating the completion of writing is sent to U(2) via the interrupt control unit (6) (step 32), and then the write operation is completed (step 39). On the other hand, CPU (2) is a PLC
When receiving the write completion interrupt signal from Q2 (step 38), the switching unit (5) is switched to the CPU (2) side (step 40). After that, the CPU (2) uses the shared memory (
The processing information written in step 4) is read into the storage section (3) (Step 41), and the process is completed (Step 42). M1
When the reading of processing information into the storage section (3) is completed, the CPU (2) sends an interrupt signal to the PLCa2 via the interrupt control section (7) and displays the completion of reading on the setting display section (to). I can do it.
次に、PLCUが共有メモリ(4)の内容を読出す場合
について第3図に基ついて説明する。PLC(2)に読
出要求信号が入力されろと(ステー・プ51)。Next, a case in which the PLCU reads out the contents of the shared memory (4) will be described with reference to FIG. A read request signal is input to PLC (2) (step 51).
NC(1)の割込制御部(6)に読出し要求の割込がか
けられる(ステ・・ノブ52)。割込制御部(6)から
の割込信号がC’PU(2)に送られ(ステーノブ53
)、CP U (2)は共有メモ1バ4)に加工情報の
読出しが完了しているか否かを判断しくステー・ブ54
ノ、読出しが完了していない時はCPU(2)が共有メ
モリ(4)に加工情報を書込む(ステ・・・ブ55)。A read request interrupt is applied to the interrupt control unit (6) of the NC (1) (steer knob 52). The interrupt signal from the interrupt control unit (6) is sent to the C'PU (2) (the stay knob 53
), the CPU (2) determines whether or not reading of processing information from the shared memo 1 (4) has been completed.
If the reading is not completed, the CPU (2) writes the processing information to the shared memory (4) (Step 55).
この場合共有メモリ(4)に書込む加工情報として例え
ば現在座標値、速度があるが、これは駆動制御部(9)
が検出器α刀より読込み演算して求め、これをCPU(
2)が読込み共有メモリ(4)に書込んでいる。書込み
が完了すると共有メモリ(4)をPLCa2側にあけ渡
すTコめにCPU(2)が切替部(5)をPLC■側に
切替え(ステ、・・ブ56)、CPU(2)から割込制
御部(7)を介してPLCC2に準備完了の割込信号を
送る(ステ、・、ブ57)。PLCQ2は準備完了の割
込信号を受けると(ステ・・プ58)、共有メモリ(4
)の内容を読出しくステ・・ブ59)、読出しが完了す
るさ(ステ・、プロ0)、再度CP U (2)に割込
制御部(6)を介して続出完了の割込信号を送る(ステ
1、ブ53)。同時に読出し動作を完了しくステ・・・
プロ1)、新しいデータに基づき機械αηを制御する。In this case, the processing information to be written to the shared memory (4) includes, for example, the current coordinate value and speed, which are stored in the drive control unit (9).
is calculated by reading from the detector α, and this is calculated by the CPU (
2) is reading and writing to the shared memory (4). When the writing is completed, the CPU (2) releases the shared memory (4) to the PLCa2 side, and then switches the switching unit (5) to the PLC ■ side (Step 56), and then releases the shared memory (4) from the CPU (2). An interrupt signal indicating completion of preparation is sent to the PLCC 2 via the interrupt control unit (7) (Step 57). When PLCQ2 receives the preparation completion interrupt signal (step 58), PLCQ2 stores the shared memory (4
) to read out the contents of step 59), and when the reading is completed (step 0), sends an interrupt signal indicating successive completion to the CPU (2) again via the interrupt control unit (6). Send (Step 1, B53). At the same time, the read operation is completed...
Pro 1), control the machine αη based on the new data.
一方、CPU(2)はPLCa2からの読出完了の割込
信号を受けると(ステーノブ54)、切替部(5)をC
PU(2)側へ切替え(ステ、・lプロ2)、完了する
(ステーIプロ8)。On the other hand, when the CPU (2) receives an interrupt signal indicating the completion of reading from the PLCa2 (steer knob 54), the CPU (2) switches the switching unit (5) to C.
Switch to the PU (2) side (Step 1 Pro 2) and complete (Step 1 Pro 8).
従来の制御装置では、NCが共有メモリに書込んでいる
加工情報の中に、現在座標値・速度などは含まれている
が機械を駆動するモータの負荷を示す電流値は含まれて
いない。し1こがって、モータlと過大電流が流れて保
護回路fζよりモータが停止し71コ場合、過大電流に
より停止し1こという原因をPLCの側で検知できない
1こめ原因究明までに時間がかかつてい1こ。In conventional control devices, the processing information written by the NC in the shared memory includes current coordinate values, speed, etc., but does not include current values indicating the load of the motor that drives the machine. However, if an excessive current flows through the motor l and the motor stops due to the protection circuit fζ, the PLC cannot detect the cause of the overcurrent and it takes time to investigate the cause. It's one thing.
本発明はこの様な問題点を解消する1こめ(・なさiz
r:ものでモー・夕に過大電流が流れTコ場合、それを
PLCで検知できる制御装置を得ることを目的とする。The present invention solves these problems.
r: The purpose of the present invention is to obtain a control device that can detect this with a PLC when an excessive current flows in a motor.
本発明に係る制御装置は、NCにPLCとの共有メモリ
を有し、該共有メモリによりNCとPLC七が制御上必
要とする情報とNCが持つ加工情報上工作機械を駆動し
ているモータの実際の負荷電流値とを7信するデータ入
出力部をNCに設け、該データ入出力部とPLC間をパ
ラレルバスにて接続]、1こことを特徴とする。In the control device according to the present invention, the NC has a shared memory with the PLC, and the shared memory allows information necessary for the control of the NC and the PLC and processing information held by the NC to identify the motor driving the machine tool. A data input/output section for transmitting actual load current values is provided in the NC, and the data input/output section and the PLC are connected via a parallel bus.
本発明においては、前記NC内で前記モータより負荷電
流値を求め前記共有メモリに1F込み、それを前記デー
タ入出力部及び前記パラレルバスを介して前記PLCに
読込むことによりモータに流れ1こ過大電流を検知する
ことができろ。In the present invention, a load current value is obtained from the motor in the NC, is stored in the shared memory, and is read into the PLC via the data input/output section and the parallel bus, so that one current flows to the motor. Be able to detect excessive current.
第1図は本発明の一実施例を示すブロリク図である。図
において(4)以外は第4図に示し1こ従来例と同じで
あるので(4)のみ説明する。(4)は共有メモリであ
るが、従来例と異なるところはモータ負荷電流値(4b
)を従来例に追加し1こ点である。モータ負荷電流値(
4bjは、現在モータにかかつている実際の負荷を示す
電流値である。FIG. 1 is a Brolik diagram showing one embodiment of the present invention. In the figure, everything except (4) is shown in FIG. 4 and is the same as the conventional example, so only (4) will be explained. (4) is a shared memory, but the difference from the conventional example is the motor load current value (4b
) is added to the conventional example. Motor load current value (
4bj is a current value indicating the actual load currently applied to the motor.
本発明の動作について、モータ負荷ymm値を共有メモ
リ(4)に書込む動作のみ説明する。他の動作は従来例
ご同じであるので省略する。モータ負荷(流値の書込み
は、従来例でCPU(2)が加工情報を共有メモリ(4
)に書込むのと同様にして行う。すなわち、第3図ステ
・・・ブ55で曹込みを行う。書込むモータ負荷電流値
は、従来例で現在座標値。Regarding the operation of the present invention, only the operation of writing the motor load ymm value to the shared memory (4) will be explained. Other operations are the same as in the conventional example, and will therefore be omitted. In the conventional example, writing of motor load (current value) is done by CPU (2) writing machining information to shared memory (4).
) in the same way. That is, scouring is performed at step 55 in FIG. The motor load current value to be written is the current coordinate value in the conventional example.
速度を求めるのと同様にして求める。すなわち、検出器
αυでモータαOの負荷電流を検出しそれを駆動制御部
(9)で読込み演算してそれをCPU(2)で読出し共
有メモリ(4)に書込む。Find it in the same way as finding the speed. That is, the load current of the motor αO is detected by the detector αυ, read and calculated by the drive control unit (9), and then read by the CPU (2) and written into the shared memory (4).
本発明によれば、モータにかがっている実際の負荷電流
値をPLCから共有メモリを介して読出すことができる
ので、モータに過大電流か流れ1こ場合それをPLCで
検知し、例えばそれをアラーム表示し1こり警報出力し
て状況を即座に作業者に知らせることができる。又、モ
ーフ負荷電流の時系列的な変化をPLCの側で記録する
ことができ故障診断のデータとすることができる。According to the present invention, the actual load current value applied to the motor can be read out from the PLC via the shared memory, so if an excessive current is flowing in the motor, the PLC can detect it and, for example, It is possible to immediately notify the operator of the situation by displaying an alarm and outputting a 1-stiff alarm. Furthermore, time-series changes in the morph load current can be recorded on the PLC side and can be used as data for fault diagnosis.
第1図は本発明の実施例を示すブロー・り図、第2因は
実施例及び従来例の加工情報読出処理を示すフローチセ
ート、第3図は実施例及び従来例の加工情報読出処理を
示すフローチセート、第4図は従来例を示すプロ・リフ
図である。FIG. 1 is a flowchart showing an embodiment of the present invention, the second factor is a flowchart showing processing information read processing of the embodiment and conventional example, and FIG. 3 shows processing information reading processing of the embodiment and conventional example. FIG. 4 is a professional riff diagram showing a conventional example.
Claims (1)
ログラマブルロジックコントローラ(以下PLCと呼ぶ
)とを有する制御装置において、前記NCに前記PLC
との共有メモリを有し、該共有メモリにより前記NCと
前記PLCとが制御上必要とする情報と前記NCが持つ
加工情報と工作機械を駆動しているモータの実際の負荷
電流値とを交信するデータ入出力部を前記NCに設け、
該データ入出力部と前記PLC間をパラレルバスにて接
続したことを特徴とする制御装置。In a control device having a numerical control device (hereinafter referred to as NC) and a programmable logic controller (hereinafter referred to as PLC) connected to the NC, the PLC is connected to the NC.
The NC and the PLC communicate information necessary for control, processing information possessed by the NC, and the actual load current value of the motor driving the machine tool through the shared memory. a data input/output unit is provided in the NC,
A control device characterized in that the data input/output section and the PLC are connected via a parallel bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11013388A JPH01280804A (en) | 1988-05-06 | 1988-05-06 | Controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11013388A JPH01280804A (en) | 1988-05-06 | 1988-05-06 | Controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01280804A true JPH01280804A (en) | 1989-11-13 |
Family
ID=14527862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11013388A Pending JPH01280804A (en) | 1988-05-06 | 1988-05-06 | Controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01280804A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03281145A (en) * | 1990-03-28 | 1991-12-11 | Mitsubishi Electric Corp | Complex controller with drive part monitor function |
EP1067445A3 (en) * | 1999-07-09 | 2007-02-28 | Kabushiki Kaisha Toshiba | Integrated controller, integrated control system & transmission controller |
EP3462255A1 (en) | 2017-09-29 | 2019-04-03 | Omron Corporation | Synchronization of control programs |
-
1988
- 1988-05-06 JP JP11013388A patent/JPH01280804A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03281145A (en) * | 1990-03-28 | 1991-12-11 | Mitsubishi Electric Corp | Complex controller with drive part monitor function |
EP1067445A3 (en) * | 1999-07-09 | 2007-02-28 | Kabushiki Kaisha Toshiba | Integrated controller, integrated control system & transmission controller |
EP3462255A1 (en) | 2017-09-29 | 2019-04-03 | Omron Corporation | Synchronization of control programs |
US10908577B2 (en) | 2017-09-29 | 2021-02-02 | Omron Corporation | Control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3451594B2 (en) | Storage unit access control method and numerical control device in numerical control device | |
JPH01280804A (en) | Controller | |
JPS60502A (en) | Numerical controller with stored stroke limit check by drawing | |
JPH0623550A (en) | Automatic welding equipment | |
JPH10156673A (en) | Simulation device for production line | |
JPS60201407A (en) | Numerical control device having trace function of input/ output signals, and contents of memory | |
JPS60237503A (en) | High-speed processing system of sequence controller | |
JPS6063610A (en) | Numerical controller with graphic display device capable of drawing clamping device | |
JPS60118336A (en) | Punch press machine provided with numerical control device | |
JP7469463B2 (en) | Control device | |
JPH0760330B2 (en) | Combined control device | |
JPS6354605A (en) | Numerical controller | |
JPH01312603A (en) | Numeric controller | |
JP2659115B2 (en) | Sequence controller | |
JPH0233122Y2 (en) | ||
JPH0239346A (en) | Screen shift control system | |
JPS6226508A (en) | Positioning unit | |
JPH0679352B2 (en) | Counter device for multipoint positioning | |
JPH02207353A (en) | Electronic equipment | |
JPS595356A (en) | General-purpose register control method | |
JPS61175804A (en) | Numerically controlled machine tool | |
JPH08249049A (en) | Monitoring device | |
JPS62290909A (en) | Connection controller for numerical controller | |
JPH0233124Y2 (en) | ||
JP2956925B2 (en) | Plant control device |