KR970005560B1 - Method and apparatus of monitoring for plc - Google Patents

Method and apparatus of monitoring for plc Download PDF

Info

Publication number
KR970005560B1
KR970005560B1 KR1019940027969A KR19940027969A KR970005560B1 KR 970005560 B1 KR970005560 B1 KR 970005560B1 KR 1019940027969 A KR1019940027969 A KR 1019940027969A KR 19940027969 A KR19940027969 A KR 19940027969A KR 970005560 B1 KR970005560 B1 KR 970005560B1
Authority
KR
South Korea
Prior art keywords
monitoring
data
buffer
programmable logic
logic controller
Prior art date
Application number
KR1019940027969A
Other languages
Korean (ko)
Other versions
KR960015126A (en
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 KR1019940027969A priority Critical patent/KR970005560B1/en
Publication of KR960015126A publication Critical patent/KR960015126A/en
Application granted granted Critical
Publication of KR970005560B1 publication Critical patent/KR970005560B1/en

Links

Classifications

    • 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
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14006Safety, monitoring in general

Landscapes

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

Abstract

Apparatus and method for monitoring a programmable logic controller monitor a state of a programmable logic controller(PLC). If there are many data to be monitored, the apparatus uses a latch buffer, ensures a day time of a programmable logic controller scan time having the same monitoring data, and displays an accurate monitoring information. The monitoring apparatus includes: a data memory for storing a data about a contact point; a monitoring buffer which divides the contact points to be really monitored into two regions, and registers them; a latch buffer which reads a monitoring data from the monitoring buffer by performing a lock when monitoring, and then performs an update of the monitoring buffer by performing an unlock; and a monitoring apparatus which sequentially reads data before unlocking the latch buffer, and displays the data for the user.

Description

프로그래머블 로직 콘트롤러의 모니터링 장치 및 방법Monitoring device and method of programmable logic controller

제1도는 종래 프로그래머블 로직 콘트롤러의 모니터링 장치 구성도.1 is a block diagram of a monitoring apparatus of a conventional programmable logic controller.

제2도는 제1도에서 모니터링용 실제데이터의 스캔별 이론상 값의 도표.2 is a table of theoretical values for each scan of actual data for monitoring in FIG.

제3도는 제1도에서 모니터링을 하기 위해 데이터를 다 읽은 시점이 n번째 스캔일 때의 도표.FIG. 3 is a chart of when the nth scan has completed reading data for monitoring in FIG. 1. FIG.

제4도는 종래 프로그래머블 로직 콘트롤러의 모니터링방법에 대한 동작 흐름도.4 is a flowchart illustrating a method of monitoring a conventional programmable logic controller.

제5도는 본 발명 프로그래머블 로직 콘트롤러의 모니터링 장치 구성도.5 is a configuration diagram of a monitoring device of the programmable logic controller of the present invention.

제6도는 본 발명 프로그래머블 로직 콘트롤러의 모니터링 방법에 대한 동작 흐름도.6 is an operation flowchart for a monitoring method of the programmable logic controller of the present invention.

제7도는 제5도에서 프로그래머블 로직 콘트롤러(PLC)에서 데이터를 다 읽은 시점이 n번째 스캔일 때의 도표.FIG. 7 is a diagram of an nth scan when data is completely read by a programmable logic controller (PLC) in FIG.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

11 : 본체 12 : 데이터메모리11: main body 12: data memory

13 : 모니터링용 버퍼 16 : 래치버퍼13: monitoring buffer 16: latch buffer

17 : 모니터링 장치17: monitoring device

본 발명은 프로그래머블 로직 콘트롤러(PLC)의 상태를 모니터링하기 위한 것으로, 특히 모니터링할 데이터가 많은 경우 래치버퍼를 사용하여 모니터링 데이터가 같은 스캔타임으로 모니터링할 수 있도록 한 프로그래머블 로직 콘트롤러의 모니터링장치 및 방법에 관한 것이다.The present invention is for monitoring the state of a programmable logic controller (PLC), and particularly in the monitoring device and method of a programmable logic controller to monitor the monitoring data at the same scan time using a latch buffer when there is a lot of data to monitor. It is about.

종래 프로그래머블 로직 콘트롤러의 모니터링 장치 구성은 제1도에 도시된 바와 같이 프로그래머블 로직 콘트롤러의 본체(1)내에 접점에 대한 데이터를 저장하고 있는 데이터메모리(2)와, 모니터링하기 위하여 상기 데이터메모리(2)로부터 실제 모니터링할 접점들을 모아놓은 모니터링용 버퍼(3)와, 상기 본체(1)의 모니터링용 버퍼(3)로부터 모니터링한 접점내용을 바탕으로 모니터링 정보를 디스플레이하여 사용자에게 알려주는 모니터링용 장치(6)로 구성한다.The monitoring device configuration of the conventional programmable logic controller includes a data memory 2 storing data for a contact in the main body 1 of the programmable logic controller as shown in FIG. 1, and the data memory 2 for monitoring. A monitoring buffer 3 collecting the contacts to be actually monitored from the monitoring device, and a monitoring device for displaying the monitoring information to the user based on the contents of the contact points monitored from the monitoring buffer 3 of the main body 1 (6). ).

이와 같이 구성된 종래의 기술에 대하여 살펴보면 다음과 같다.Looking at the conventional technology configured as described above are as follows.

사용자가 모니터링하고자 하는 프로그래머블 로직 콘트롤러(PLC) 내부접점들을 그 프로그래머블 로직 콘트롤러(PLC) 내부의 데이터메모리(2)에 등록한 후에 모니터링용 버퍼(3)는 모니터링할 접점들만을 읽어와 등록하여 두는데, 접점갯수가 많은 경우 한 통신프레임(frame)에 등록할 수 있는 접점갯수가 한계를 갖고 있음에 따라 두 번에 걸쳐 첫 번째 등록영역(4)와 두 번째 등록영역(5)으로 나누어 등록하여 둔다.After registering the programmable logic controller (PLC) internal contacts to be monitored by the user in the data memory (2) inside the programmable logic controller (PLC), the monitoring buffer 3 reads and registers only the contacts to be monitored. If the number of contacts is large, the number of contacts that can be registered in one communication frame has a limit, so it is divided into two registers of the first registration area (4) and the second registration area (5).

그러면, 모니터링 장치(6)에서 모니터링 버퍼(3)에 있는 데이터의 내용을 이용하여 모니터링 화면(7)으로 사용자에게 보여주게 된다.Then, the monitoring device 6 shows the user to the monitoring screen 7 using the contents of the data in the monitoring buffer 3.

상기 동작에 대하여 제4도에 도시된 동작흐름도에 의거하여 다시 한번 살펴보면, 통신프레임에 등록할 수 있는 접점갯수가 한계가 있음에 따라 둘로 나누어 등록함에 있어, 먼저 첫 번째 모니터링 데이터를 등록하고 이어서 나머지인 두 번째 모니터링 데이터를 모니터링용 버퍼(3)에 등록하여 두면 모니터링 장치(6)에 첫 번째 모니터링 데이터를 읽어오고 이어서 두 번째 모티터링 데이터를 읽어와 모니터링화면에 디스플레이한다.Referring to the operation based on the operation flow chart shown in FIG. 4 again, the number of contact points that can be registered in the communication frame is limited to register in two, so that the first monitoring data is registered first and then the rest If the second monitoring data is registered in the monitoring buffer 3, the first monitoring data is read into the monitoring device 6, and then the second monitoring data is read and displayed on the monitoring screen.

그러나, 이와 같이 종래의 기술에 있어서, 모니터링 버퍼에 등록되어 있는 내용을 모니터링 장치에 일시에 취할 수 없고 두 번의 통신프레임을 통해서 취해지기 때문에 제2도에서와 같이 데이터가 이론상 발생하는데에 반해서 제3도에서와 같이 두 개의 통신하는 시점이 각각 틀림으로 인하여 한 시점을 놓고 볼 때에는 오류가 있는 데이터가 결국 모니터링장치로 전송됨으로써 변화가 잦은 접점에 대해서는 모니터링 정보가 부정확하게 되는 문제점이 있다.However, in the related art, since the contents registered in the monitoring buffer cannot be taken to the monitoring apparatus at once and are taken through two communication frames, data is theoretically generated as shown in FIG. As shown in FIG. 2, when two communication points are incorrect, there is a problem in that monitoring information becomes inaccurate for a frequently changed contact point because an error data is eventually transmitted to a monitoring device.

따라서 본 발명은 동일시점에서 프로그래머블 로직 콘트롤러의 접점을 모니터링할 수 있도록 한 프로그래머블 로직 콘트롤러의 모니터링 장치 및 방법을 제공함에 있다.Accordingly, an aspect of the present invention is to provide an apparatus and method for monitoring a programmable logic controller capable of monitoring a contact point of a programmable logic controller at the same time.

상기 목적을 달성하기 위한 장치는 프로그래머블 로직 콘트롤러(PLC)의 본체(1)에 접점에 대한 데이터를 저장하고 있는 데이터메모리(1)와, 모니터링하기 위하여 상기 데이터메모리(1)로부터 실제 모니터링할 접점들을 두 영역으로 나누어 등록하여 두는 모니터링용 버퍼(13)와, 상기 모니터링용 버퍼(13)로부터 모니터링할 데이터를 모두 읽어들인 후엔 언록(UNLOCK)시켜서 상기 버퍼(13)가 업데이트(UPDATE)가 가능하도록 하는 래치버퍼(16)와, 상기 래치버퍼(16)가 언록되기 전까지의 데이터를 차례로 읽어들여 디스플레이하여 사용자에게 보여주도록 하는 모니터링 장치(17)로 구성한다.An apparatus for achieving the above object includes a data memory 1 storing data for a contact in the main body 1 of a programmable logic controller PLC, and the contacts to be actually monitored from the data memory 1 for monitoring. The monitoring buffer 13 to be divided into two areas and the data to be monitored from the monitoring buffer 13 are read and then unlocked so that the buffer 13 can be updated. The latch buffer 16 and the monitoring device 17 which reads and displays the data until the latch buffer 16 is unlocked in turn are displayed to the user.

그리고, 본 발명의 목적을 달성하기 위한 방법은 모니터링 데이터를 모니터링용 버퍼(13)에 두 영역으로 나누어 등록하는 제1단계와, 상기 제1단계에서 등록완료시 래치버퍼(16)를 록(LOCK)시켜 두 영역에 등록된 데이터를 순차적으로 모두 읽어들인 후 언록(UNLOCK)시키는 제2단계와, 상기 제2단계에서 언록되기 전까지 모니터링용 버퍼(13)의 데이터를 읽어와 화면에 디스플레이하는 제3단계를 달성한다.In addition, the method for achieving the object of the present invention is to register the monitoring data divided into two areas in the monitoring buffer 13, and the latch buffer 16 when the registration is completed in the first step (LOCK) A second step of sequentially reading all the data registered in the two areas and then unlocking the data, and a third step of reading the data of the monitoring buffer 13 and displaying it on the screen until it is unlocked in the second step. To achieve the steps.

상기에서와 같이 구성된 본 발명의 동작 및 작용효과에 대하여 상세히 살펴보면 다음과 같다.Looking in detail with respect to the operation and effect of the present invention configured as described above are as follows.

먼저 사용자가 프로그래머블 로직 콘트롤러(PLC)의 본체(11)에 있는 메모리(12)에 접점에 대한 데이터를 저장하여 둔다.First, the user stores the data for the contact point in the memory 12 in the main body 11 of the programmable logic controller PLC.

그러다가 프로그래머블 로직 콘트롤러(PLC)에 의해 모니터링하고자 할 경우 모니터링 버퍼(13)는 상기 데이터메모리(12)로부터 실제 모니터링할 데이터만을 읽어와 그의 첫 번째 등록영역(14)와 두 번째 등록영역(15)에 순차적으로 등록하여 두면 래치버퍼(16)를 록(LOCK)시켜 상기 모니터링용 버퍼(13)로부터 모니터링 데이터를 읽어들여 저장한다.Then, when monitoring by the programmable logic controller (PLC), the monitoring buffer 13 reads only the data to be actually monitored from the data memory 12 and writes the data to the first registration area 14 and the second registration area 15. When registered sequentially, the latch buffer 16 is locked to read and store monitoring data from the monitoring buffer 13.

상기에서와 같은 방법으로 버퍼(13)의 첫 번째 등록영역(14)과 두 번째 등록영역(15)으로부터 모니터링용 데이터를 모두 읽어들이면 직후에 바로 래치버퍼(16)를 언록(UNLOCK)시켜 프로그래머블 로직 콘트롤러(PLC)가 모니터링 버퍼(13)에 업데이터(UPDATE)를 계속할 수 있도록 한다.In the same manner as described above, immediately after reading the monitoring data from the first registration area 14 and the second registration area 15 of the buffer 13, the latch buffer 16 is immediately unlocked (UNLOCK) and programmable logic Allows the controller PLC to continue the update UPDATE to the monitoring buffer 13.

한편, 모니터링 장치(17)는 상기 래치버퍼(16)가 언록될 때까지 모니터링 버퍼(13)의 첫 번째와 두 번째 등록영역(14)(15)으로부터 모니터링 데이터를 읽어와 모니터링화면(18)에 디스플레이한다.Meanwhile, the monitoring device 17 reads monitoring data from the first and second registration areas 14 and 15 of the monitoring buffer 13 until the latch buffer 16 is unlocked, and displays the monitoring screen 18 on the monitoring screen 18. Display.

그 다음 모니터링 종료신청이 들어왔는가의 여부를 체크하여 종료신청이 들어왔으면 종료하고 아니면 계속해서 래치버퍼(16)의 록 및 록킹동작을 통해 읽어들이는 데이터를 디스플레이한다.Then, it is checked whether or not a monitoring termination request has been entered, and if the termination request has been entered, it is terminated or otherwise, data read through the locking and locking operation of the latch buffer 16 is displayed.

이와 같은 방법을 이용하면 제7도에서와 같이 두 번째 걸쳐서 취한 모니터링 데이터는 비록 프로그래머블 로직 콘트롤러(PLC)에서 1스캔정도 지난 데이터이지만 그 당시의 값을 정확히 모니터링화면(18)에 나타내 줄 수가 있다.Using this method, although the second monitoring data taken as shown in FIG. 7 is about one scan past from the programmable logic controller (PLC), the value at that time can be accurately displayed on the monitoring screen 18.

상기에서와 같은 과정에 대하여 제6도에 의거하여 다시 한번 살펴보면, 첫 번째 모니터링 데이터를 등록한 후 두 번째 모니터링 데이터를 등록하고 나면 래치버퍼를 록(LOCK)시켜 상기에서 등록시킨 데이터를 차례로 읽어들인다.Referring to FIG. 6 again for the same process as above, after registering the first monitoring data and then registering the second monitoring data, the latch buffer is locked to read the registered data in sequence.

따라서, 등록된 모니터링 데이터가 상기 래치버퍼(16)에 다 차면 그 래치버퍼(16)을 언록(UNLOCK)시켜 모니터링 데이터를 등록하는 모니터링 버퍼(13)가 다시 새로운 모니터링 데이터를 업데이트할 수 있도록 하여 주고, 한편 모니터링 장치(17)에서 상기 등록된 모니터링 데이터를 화면(18)에 디스플레이하여 사용자가 볼 수 있도록 한다.Therefore, when the registered monitoring data fills the latch buffer 16, the latch buffer 16 is UNLOCKed so that the monitoring buffer 13 registering the monitoring data can update the new monitoring data again. Meanwhile, the monitoring device 17 displays the registered monitoring data on the screen 18 so that the user can view it.

이상에서 상세히 설명한 바와 같이 본 발명은 모니터링할 데이터가 많은 경우 두 번째에 걸쳐서 통신을 하여 취한 모니터링 데이터가 같은 프로그래머블 로직 콘트롤러(PLC) 스캔타임의 데이터임을 보증할 수 있도록 함으로써 정확한 모니터링 정보를 디스플레이할 수 있도록 한 효과가 있다.As described in detail above, the present invention can display accurate monitoring information by ensuring that the monitoring data obtained by communicating over the second time when there are a lot of data to be monitored is data of the same programmable logic controller (PLC) scan time. It has one effect.

Claims (2)

프로그래머블 로직 콘트롤러(PLC)의 본체 내부에 접점에 대한 데이터를 저장하고 있는 데이터메모리와, 모니터링하기 위하여 상기 데이터메모리로부터 실제 모니터링할 접점들을 두 영역으로 나누어 등록하여 두는 모니터링용 버퍼와, 모니터링시엔 록(LOCK)시켜 상기 모니터링용 버퍼로부터 모니터링할 데이터를 모두 읽어들이고 그후엔 언록(UNLOCK)시켜서 상기 모니터링용 버퍼가 업데이트(UPDATE)가 가능하도록 하는 래치버퍼와, 상기 래치버퍼가 언록되기 전까지의 데이터를 차례로 읽어들여 디스플레이하여 사용자에게 보여주도록 하는 모니터링 장치로 구성된 것을 특징으로 프로그래머블 로직 콘트롤러의 모니터링 장치.A data memory that stores data about contacts in the main body of the programmable logic controller (PLC), a monitoring buffer that registers the contacts to be monitored from the data memory into two areas for monitoring, and a lock when monitoring ( Reads the data to be monitored from the monitoring buffer and then unlocks it, and then reads the latch buffer to update the monitoring buffer, and then reads the data until the latch buffer is unlocked. The monitoring device of the programmable logic controller, characterized in that the monitoring device configured to display and display to the user. 모니터링 데이터를 모니터링용 버퍼에 두 영역으로 나누어 등록하는 제1단계와, 상기 제1단계에서 등록완료시 래치버퍼를 록(LOCK)시켜 두 영역에 등록된 데이터를 순차적으로 모두 읽어들인 후 언록(UNLOCK)시키는 제2단계와, 상기 제2단계에서 언록되기 전까지 모니터링용 버퍼(13)의 데이터를 읽어와 화면에 디스플레이하는 제3단계로 이루어진 것을 특징으로 프로그래머블 로직 콘트롤러의 모니터링 방법.The first step of registering the monitoring data into two areas in the monitoring buffer and the latch buffer when the registration is completed in the first step, and sequentially reading all the data registered in the two areas, and then unlocking them. And a third step of reading the data of the monitoring buffer (13) and displaying it on the screen until it is unlocked in the second step.
KR1019940027969A 1994-10-28 1994-10-28 Method and apparatus of monitoring for plc KR970005560B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940027969A KR970005560B1 (en) 1994-10-28 1994-10-28 Method and apparatus of monitoring for plc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940027969A KR970005560B1 (en) 1994-10-28 1994-10-28 Method and apparatus of monitoring for plc

Publications (2)

Publication Number Publication Date
KR960015126A KR960015126A (en) 1996-05-22
KR970005560B1 true KR970005560B1 (en) 1997-04-17

Family

ID=19396384

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940027969A KR970005560B1 (en) 1994-10-28 1994-10-28 Method and apparatus of monitoring for plc

Country Status (1)

Country Link
KR (1) KR970005560B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7623430B2 (en) 2002-06-08 2009-11-24 Lg Electronics Inc. High-density multi-layer optical disc and method for managing layer formatting thereof
US7978581B2 (en) 2002-06-07 2011-07-12 Lg Electronics Inc. Multi-layered high-density recording medium and optical power adjusting method therefor
KR101317581B1 (en) * 2012-03-02 2013-10-11 엘에스산전 주식회사 Method for Tracking Error in Ladder Program of Programmable Logic Controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7978581B2 (en) 2002-06-07 2011-07-12 Lg Electronics Inc. Multi-layered high-density recording medium and optical power adjusting method therefor
US7623430B2 (en) 2002-06-08 2009-11-24 Lg Electronics Inc. High-density multi-layer optical disc and method for managing layer formatting thereof
US7623428B2 (en) 2002-06-08 2009-11-24 Lg Electronics Inc. Multi-layer optical disc and method for managing layer formatting thereof
KR101317581B1 (en) * 2012-03-02 2013-10-11 엘에스산전 주식회사 Method for Tracking Error in Ladder Program of Programmable Logic Controller

Also Published As

Publication number Publication date
KR960015126A (en) 1996-05-22

Similar Documents

Publication Publication Date Title
US3739369A (en) Historical data display
KR970005560B1 (en) Method and apparatus of monitoring for plc
JP4018855B2 (en) Touch panel input coordinate conversion apparatus and touch panel input coordinate conversion method
US5319581A (en) Data processor with clocking for various world times
EP0123381B1 (en) Logic waveform display apparatus
JPH11338603A (en) Cursor display method
JPH0434418Y2 (en)
US5758035A (en) Graphic plotting apparatus plotting diagram represented by function and graphic plotting method thereof
JPS61251897A (en) Image processor
JP2831782B2 (en) Plant alarm diagnostic display
JPH0436849A (en) Memory diagnostic method
JP2000162214A (en) Automatic analyzer
JPH04316139A (en) Syntax checking system of program syntax editor
JP3523059B2 (en) Horizontal synchronization signal frequency detection method and horizontal synchronization signal frequency detection circuit
JPH0611363A (en) Data reading system of display device
KR20000027054A (en) Microcontroller and method of diagnostic test
JP2639224B2 (en) Method of sharing process selection between multiple processes
JPH0635741A (en) Execution period of time measurement system for diagnostic program
JPS63157205A (en) Monitor device for programmable controller
JPH04251290A (en) Screen display time counting instrument for man-machine interface device
JPS5931745B2 (en) Unused program number display method
JPH0660155A (en) Picture data read system
KR20000038033A (en) Method for testing board using intelligent knowledge base
JPH05281294A (en) Hardware coverage measuring circuit
JPH04160426A (en) Data input system

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20010627

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee