KR20090041134A - Plc control system and self-checking method thereof - Google Patents

Plc control system and self-checking method thereof Download PDF

Info

Publication number
KR20090041134A
KR20090041134A KR1020070106684A KR20070106684A KR20090041134A KR 20090041134 A KR20090041134 A KR 20090041134A KR 1020070106684 A KR1020070106684 A KR 1020070106684A KR 20070106684 A KR20070106684 A KR 20070106684A KR 20090041134 A KR20090041134 A KR 20090041134A
Authority
KR
South Korea
Prior art keywords
program
plc
unit
interface
master
Prior art date
Application number
KR1020070106684A
Other languages
Korean (ko)
Other versions
KR100940039B1 (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 KR1020070106684A priority Critical patent/KR100940039B1/en
Publication of KR20090041134A publication Critical patent/KR20090041134A/en
Application granted granted Critical
Publication of KR100940039B1 publication Critical patent/KR100940039B1/en

Links

Images

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
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1215Master slave system
    • 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/14063Diagnostic of degrading performance
    • 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/14112Diagnostic, troubleshooting

Landscapes

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

Abstract

A PLC control system and a self-checking method thereof are provided to confirm the abnormality and change the information about the program specific value. A process input-output part is connected to a sensor or an actuator for the interface with the process equipment. The storage unit stores the processing data which are inputted or are outputted through the operating program and the process input-output part. The first interface unit communicates with a control PC(300). The PLC apparatus comprises the first controller for controlling the first interface unit in order to transmit the operating program. The PLC apparatus controls the process input-output part and the storage unit. The second interface part(350) is connected to the first interface unit. A master program save part(360) stores the master program. The PLC control device comprises the master program save part, and the second controller.

Description

PLC 제어 시스템 및 그 자가 진단 방법{PLC CONTROL SYSTEM AND SELF-CHECKING METHOD THEREOF}PLC control system and self-diagnosis method {PLC CONTROL SYSTEM AND SELF-CHECKING METHOD THEREOF}

본 발명은 PLC 제어 시스템 및 그 자가 진단 방법에 관한 것으로, 특히 PLC에 의해 제어되는 고가 장비의 오작동을 미연에 방지할 수 있는 PLC 제어 시스템 및 그 자가 진단 방법에 관한 것이다.The present invention relates to a PLC control system and a self-diagnostic method, and more particularly, to a PLC control system and a self-diagnostic method capable of preventing malfunction of expensive equipment controlled by a PLC.

최근, 각종 전자, 통신 및 기계기술의 발달로 인하여 산업현장에서는 적은 인력으로 많은 생산량을 얻기 위한 자동화 시스템이 이용되고 있으며, 이를 위한 기술로 PLC가 많은 분야에 도입되고 있다.Recently, due to the development of various electronic, communication and mechanical technologies, an automated system for obtaining a large amount of production with a small manpower is used in industrial sites, and PLC is introduced into many fields as a technology for this purpose.

이러한 PLC는 종래에 사용하던 시스템의 제어반 내에 구비된 릴레이, 타이머, 카운터 등의 기능을 IC, 트랜지스터 등의 반도체 소자로 대체시켜 기본적인 시퀀스 제어 기능에 수치 연산 기능을 추가하여 프로그램 제어가 가능하도록 한 자율성이 높은 제어장치이다. 이러한 PLC를 미국 전기 공업회 규격에서는 디지털 또는 아날로그 입출력 모듈을 통하여 로직, 시퀀싱, 타이밍, 카운팅, 연산과 같은 특수한 기능을 수행하기 위하여 프로그램 가능한 메모리를 사용하고 여러 종류의 기계나 프로세서를 제어하는 디지털 전자장치로 정의하고 있다.The PLC replaces relays, timers, and counters in the control panel of a conventional system with semiconductor devices such as ICs and transistors, and adds arithmetic functions to basic sequence control functions to enable program control. This is a high controller. These PLCs are digital electronic devices that use programmable memory and control various types of machines or processors to perform special functions such as logic, sequencing, timing, counting, and computation through digital or analog I / O modules. It is defined as.

이러한 PLC를 제어하는 통상적인 원격제어 방식은 인터넷 및 전화선을 이용한 텔넷 방식으로 제어 및 관리되고 있다. 그러나 지금처럼 인터넷이 보편화되어 있는 상황에서는 누구나 해킹으로부터 자유로울 수 없다. 특히 자동화 방식을 도입한 자동화 라인일 경우에는 프로그램의 해킹에 의해 운용 프로그램상에 문제가 발생할 경우 기업에 큰 비용 손실과 납기일 지연에 따른 대외 신뢰도에 치명타를 가하게 된다.Conventional remote control method for controlling such a PLC is controlled and managed by the telnet method using the Internet and telephone lines. But in the face of the Internet as it is today, no one can be free from hacking. In particular, in the case of the automation line that adopts the automation method, if a problem occurs in the operation program due to the hacking of the program, the company will be critically affected by the external reliability due to the large cost loss and delayed delivery date.

따라서 이러한 해킹의 문제점을 극복하기 위해, PLC가 동작하는 동안에는 인터넷을 연결하지 않고, 문제가 발생한 시점에서만 인터넷을 연결하여 문제를 진단하고 보완하거나 수정할 수 있다. 그러나 문제가 발생하는 경우에만 문제를 진단하는 원격제어 방식은 비용 손실을 최소화할 수 없다. 즉, 이러한 원격제어 방식은 프로그램 착오나 악성 코드 등에 의해 운용 프로그램상에 문제가 발생한 경우 이를 사전에 진단할 수 있는 없고, 고가의 장비에서 고가의 작업이 진행된 후에야 운용자가 발견이 가능하다.Therefore, in order to overcome the problem of hacking, it is possible to diagnose, correct or correct a problem by connecting the Internet only when a problem occurs, without connecting the Internet while the PLC is operating. However, the remote control method of diagnosing a problem only when a problem occurs cannot minimize the cost loss. That is, such a remote control method cannot diagnose in advance when a problem occurs in an operation program due to a program error or a malicious code, and can be discovered by an operator only after an expensive operation is performed on expensive equipment.

이를 방지하기 위하여 전문적인 프로그램 관리자를 활용하는 방안도 있지만, 그에 따른 추가 비용을 감수하여야 하며, 더욱이 전문적인 프로그램 관리자도 복구할 수 없는 복잡한 사안의 경우에는 결국 장비 공급업체의 복구 지원이 필요하게 된다.In order to prevent this, there is a plan to use a professional program manager. However, there is an additional cost. Furthermore, in a complex case where even a professional program manager cannot recover, the equipment supplier's recovery support is eventually required. .

또한, 전문적인 프로그램 관리자 외에도 방화벽 등을 이용한 해킹 방지, 악성코드 발생억제, 및 프로그램상에서 발생하는 버그를 제어하는데도 추가적인 비용을 필요로 하게 된다. In addition to professional program managers, additional costs are required to prevent hacking using firewalls, to suppress malware generation, and to control bugs occurring in programs.

이에 따라, PLC를 이용한 원격 제어 시스템에 있어서 사용자의 유지 비용을 절감하면서 고가의 장비들을 효율적으로 유지, 관리, 보수할 수 있는 자가 진단 방법에 대한 요구가 있다. Accordingly, there is a need for a self-diagnosis method that can efficiently maintain, manage, and maintain expensive equipment while reducing maintenance costs of a user in a remote control system using a PLC.

따라서, 상기 문제점을 해결하기 위하여, 본 발명은 PLC에 의해 제어되는 고가 장비의 오작동을 미연에 방지할 수 있는 PLC 제어 시스템 및 그 자가 진단 방법을 제공하는 것을 목적으로 한다. Accordingly, in order to solve the above problems, an object of the present invention is to provide a PLC control system and a self-diagnostic method that can prevent malfunction of expensive equipment controlled by a PLC in advance.

또한, 본 발명은 PLC를 제어함에 있어 운용 프로그램이 갖고 있는 프로그램 고유값에 대한 이상 유무 및 변경 정보를 확인할 수 있는 PLC 제어 시스템 및 그 자가 진단 방법을 제공하는 것을 목적으로 한다.Another object of the present invention is to provide a PLC control system and a self-diagnosis method capable of confirming abnormality and change information on a program intrinsic value of an operating program in controlling a PLC.

또한, 본 발명은 부팅과정에서 PLC 내부의 운용 프로그램과 마스터 프로그램 간의 상호 확인 과정을 통해 이상 발생 부분을 원격제어 복구함으로써 사용자의 유지 비용을 절감할 수 있는 PLC 제어 시스템 및 그 자가 진단 방법을 제공하는 것을 목적으로 한다.In addition, the present invention provides a PLC control system and a self-diagnostic method that can reduce the maintenance cost of the user by remotely recovering the abnormal portion through the mutual confirmation process between the operating program and the master program in the PLC during the booting process. For the purpose of

상기 목적들을 달성하기 위한 본 발명에 따른 프로그램 로직 컨트롤러(PLC) 제어 시스템은, 공정설비의 스위치, 센서 또는 액츄에이터와 연결되는 공정 입출력부와, 운용 프로그램 및 상기 공정 입출력부를 통해 입력되거나 출력되는 공정 데이터를 저장하는 저장부와, 외부와 통신하기 위한 제1 인터페이스부와, 상기 공정 입출력부 및 상기 저장부를 제어하고, 상기 운용 프로그램을 송신하도록 상기 제1 인터페이스부를 제어하는 제1 제어부를 구비한 PLC 장치; 및 상기 제1 인터페이스부와 통신하기 위한 제2 인터페이스부와, 마스터 프로그램을 저장하는 마스터 프로 그램 저장부와, 상기 마스터 프로그램과 상기 제2 인터페이스부를 통해 수신된 상기 운용 프로그램을 상호 비교하는 제2 제어부를 구비한 PLC 제어장치;를 포함하는 것을 특징으로 한다.Program logic controller (PLC) control system according to the present invention for achieving the above object, the process input and output unit connected to the switch, sensor or actuator of the process equipment, the operation program and the process data input or output through the process input and output unit PLC device having a storage unit for storing the first, the first interface unit for communicating with the outside, the first input unit to control the process input and output unit and the storage unit, and to control the first interface unit to transmit the operation program ; And a second control unit for comparing the second interface unit for communicating with the first interface unit, a master program storage unit storing a master program, and the operation program received through the master program and the second interface unit. PLC control device having a; characterized in that it comprises a.

또한, 본 발명은 상기 마스터 프로그램은 프로그램 동작에 의해 값이 변경되지 않는 프로그램 고유값을 갖고, 상기 운용 프로그램은 상기 프로그램 고유값에 해당하는 운용 고유값을 갖고, 상기 제2 제어부는 상기 프로그램 고유값과 상기 제2 인터페이스부를 통해 수신된 상기 운용 고유값을 비교하는 것을 특징으로 한다.The master program may have a program unique value whose value is not changed by a program operation, the operating program has an operating unique value corresponding to the program unique value, and the second control unit may have the program unique value. And the operation unique value received through the second interface unit.

또한, 본 발명은 상기 제2 제어부는 상기 프로그램 고유값과 상기 운용 고유값이 일치하지 않는 경우 상기 운용 프로그램의 동작을 정지시키는 정지신호를 송신하도록 상기 제2 인터페이스부를 제어하는 것을 특징으로 한다.The second control unit may control the second interface unit to transmit a stop signal for stopping the operation of the operation program when the program eigenvalue and the operation eigenvalue do not match.

또한, 본 발명은 상기 PLC 제어장치는 디스플레이부 또는 오디오부를 더 구비하고, 상기 제2 제어부는 상기 프로그램 고유값과 상기 운용 고유값이 일치하지 않는 경우 운용자가 복구할 수 있도록 상기 디스플레이부 또는 상기 오디오부에 알람 신호를 제공하고, 운용자로부터 복구 지시가 있으면 자체 복구 프로그램을 이용하여 상기 프로그램 고유값으로 상기 운용 고유값을 수정하는 것을 특징으로 한다.The present invention may further include a display unit or an audio unit, and the second controller may be configured to recover an operator when the program eigenvalues and the operation eigenvalues do not match. It provides an alarm signal to the unit, and if there is a recovery instruction from the operator using the self-recovery program is characterized in that for modifying the operation intrinsic value to the program intrinsic value.

또한, 본 발명은 인터넷을 통해 상기 PLC 제어장치에 연결될 수 있는 관리 서버를 더 포함하고, 상기 PLC 제어장치는 상기 관리 서버와 통신하기 위한 제3 인터페이스부를 더 구비하고, 상기 제2 제어부는 상기 운용 프로그램의 복구가 실패하는 경우 상기 인터넷을 통해 상기 관리 서버에 연결되도록 상기 제3 인터페이스부를 제어하고, 상기 관리 서버는 상기 제3 인터페이스부를 통해 상기 PLC 장치를 분석하거나 부품 교환 유무를 검사하는 자가 진단 검사 프로그램을 구동시키는 것을 특징으로 한다.In addition, the present invention further includes a management server that can be connected to the PLC control device via the Internet, the PLC control device further comprises a third interface for communicating with the management server, the second control unit is the operation When the recovery of the program fails, the third interface unit is controlled to be connected to the management server through the Internet, and the management server performs a self-diagnostic test for analyzing the PLC device or checking whether there is a part exchange through the third interface unit. It is characterized by driving a program.

또한, 본 발명은 상기 제2 제어부는 상기 PLC 장치에 전원이 공급되는 경우 상기 마스터 프로그램 저장부에 저장된 상기 마스터 프로그램을 구동하고, 상기 마스터 프로그램과 상기 제2 인터페이스부를 통해 수신된 상기 운용 프로그램을 상호 비교하는 것을 특징으로 한다.The present invention also provides that the second control unit drives the master program stored in the master program storage unit when power is supplied to the PLC device, and mutually exchanges the operation program received through the master program and the second interface unit. It is characterized by comparing.

또한, 본 발명은 인터넷을 통해 상기 PLC 장치에 전기적으로 연결될 수 있는 관리 서버를 더 포함하고, 상기 제1 제어부는 상기 관리 서버가 상기 제1 인터페이스부에 전기적으로 연결되면 상기 운용 프로그램의 동작을 정지시키는 것을 특징으로 한다.The present invention further includes a management server that can be electrically connected to the PLC device through the Internet, wherein the first controller stops the operation of the operation program when the management server is electrically connected to the first interface unit. It is characterized by.

본 발명에 따른 PLC 제어 시스템의 자가 진단 방법은, 상기 PLC 제어 시스템의 자가 진단 기능을 동작시킨 후, 마스터 프로그램 동작시키는 단계; 상기 마스터 프로그램으로부터 프로그램 고유값을 판독하고, 상기 프로그램 고유값에 해당하는 운용 고유값을 갖고 있는 운영 프로그램을 수신하는 단계; 및 상기 프로그램 고유값과 상기 운용 고유값을 비교하여 불일치하면 상기 운영 프로그램을 정지하는 단계;를 포함하는 것을 특징으로 한다.A self-diagnostic method of a PLC control system according to the present invention includes the steps of: operating a self-diagnosis function of the PLC control system and then operating a master program; Reading a program unique value from the master program and receiving an operating program having an operating unique value corresponding to the program unique value; And comparing the program intrinsic value with the operation intrinsic value and stopping the operating program if there is a mismatch.

또한, 본 발명은 운용자가 수정키를 입력할 수 있도록 알림음을 발생하거나 경고 메시지를 표시하는 단계; 및 운용자가 상기 수정키를 입력함으로써 자체 복구 프로그램을 이용하여 PLC의 상기 운영 프로그램을 수정하는 단계를 더 포함하는 것을 특징으로 한다.In addition, the present invention comprises the steps of generating a notification sound or display a warning message so that the operator can enter a modification key; And modifying the operating program of the PLC using the self-recovery program by the operator inputting the correcting key.

또한, 본 발명은 상기 자체 복구 프로그램에 의해 수정이 완료되지 않으면 재알람을 발생하거나 재경고 메시지를 표시하는 단계; 원격으로 프로그램을 복구할 수 있도록 외부 접속을 승인하면 인터넷을 통해 관리 서버에 연결되는 단계; 및 상기 관리 서버가 자가 진단 검사 프로그램을 구동시켜 운용 프로그램을 복구하는 단계를 더 포함하는 것을 특징으로 한다.In addition, the present invention comprises the steps of generating a re-alarm or display a warning message if the modification is not completed by the self-recovery program; Connecting to a management server through the Internet when the external access is approved to recover a program remotely; And recovering an operating program by driving the self-diagnostic test program by the management server.

또한, 본 발명은 상기 프로그램 고유값과 상기 운용 고유값이 일치하거나 또는 상기 수정이 완료되면 연속 작업을 실시하는 단계를 더 포함하는 것을 특징으로 한다.In addition, the present invention is characterized in that it further comprises the step of performing a continuous operation when the program eigenvalue and the operation eigenvalue coincides or the modification is completed.

본 발명에 따르면, PLC에 의해 제어되는 고가 장비의 오작동을 미연에 방지하여 공정 설비의 유지 비용을 효율적으로 절감할 수 있다According to the present invention, it is possible to effectively prevent the malfunction of expensive equipment controlled by the PLC, thereby effectively reducing the maintenance cost of the process equipment.

또한, PLC를 제어함에 있어 운용 프로그램이 갖고 있는 프로그램 고유값에 대한 이상 유무 및 변경 정보를 확인할 수 프로그램 착오나 악성 코드로부터 공정 설비를 보호할 수 있다. In addition, in controlling the PLC, it is possible to check whether there is an abnormality and change information on the program intrinsic value of the operating program and protect the process equipment from program error or malicious code.

또한, 부팅과정에서 PLC 내부의 운용 프로그램과 마스터 프로그램 간의 상호 확인 과정을 통해 이상 발생 부분을 원격제어 복구함으로써 사용자의 유지 비용을 절감할 수 있다. In addition, it is possible to reduce the user's maintenance cost by remotely restoring the abnormal part through the mutual confirmation process between the operating program and the master program in the PLC during the booting process.

이하, 본 발명의 바람직한 실시예를 첨부한 도면을 참조하여 상세히 설명한다. Hereinafter, with reference to the accompanying drawings, preferred embodiments of the present invention will be described in detail.

도 1은 본 발명의 일실시예에 따른 PLC 제어 시스템의 구성도이고, 도 2는 본 발명의 일실시예에 따른 PLC 장치의 구성을 도시한 블록도이고, 도 3은 본 발명의 일실시예에 따른 PLC 제어장치의 구성을 도시한 블록도이다.1 is a configuration diagram of a PLC control system according to an embodiment of the present invention, Figure 2 is a block diagram showing the configuration of a PLC device according to an embodiment of the present invention, Figure 3 is an embodiment of the present invention Is a block diagram showing the configuration of a PLC controller according to the present invention.

도 1에 도시된 바와 같이, PLC 제어 시스템(10)은 공정 설비(100,100'), PLC 장치(200,200'), 제어 PC(PLC 제어장치)(300), 및 관리 서버(400)를 포함한다. 도 1에서는 제어 PC(300)에 2개의 PLC(200,200')가 연결되어 있는 것으로 도시하였지만, 제어 PC(300)에 1개의 PLC(200)만이 연결될 수도 있다. As shown in FIG. 1, the PLC control system 10 includes a process facility 100, 100 ′, a PLC device 200, 200 ′, a control PC (PLC control device) 300, and a management server 400. In FIG. 1, two PLCs 200 and 200 ′ are connected to the control PC 300, but only one PLC 200 may be connected to the control PC 300.

공정 설비(100, 100')는 공장 자동화 또는 제품 생산 등에 적용되어 사용되는 설비로, 도 2에 도시된 바와 같이, 스위치(110), 센서(120), 및 액추에이터(130)를 포함하고 있다. The process equipment 100 and 100 ′ is equipment used for factory automation or product production, and includes a switch 110, a sensor 120, and an actuator 130 as shown in FIG. 2.

PLC 장치(200, 200')는 고가의 공정 설비를 제어하기 위한 장치로, 제1 전원 공급부(210), 사용자 인터페이스(User Interface : UI)부(220), 공정 입출력부(230), 저장부(240), 제1 인터페이스부(250), 및 제1 제어부(260)를 포함한다.The PLC devices 200 and 200 ′ are devices for controlling expensive process equipment, and include a first power supply 210, a user interface (UI) unit 220, a process input / output unit 230, and a storage unit. 240, a first interface unit 250, and a first control unit 260.

제1 전원 공급부(210)는 사용자가 전원 버튼(미도시됨)을 누르면 PLC 장치(200)의 각 구성, 즉 저장부(240), 제1 제어부(260) 등에 필요한 정격 전압을 공급한다. When the user presses a power button (not shown), the first power supply 210 supplies a rated voltage necessary for each component of the PLC device 200, that is, the storage 240 and the first controller 260.

UI부(220)는 사용자와의 인터페이스를 위한 것으로, 사용자가 데이터를 입력할 수 있는 키보드(미도시됨)와 사용자에게 데이터를 표시하기 위한 표시부(미도시됨) 등을 포함한다.The UI unit 220 is for an interface with a user, and includes a keyboard (not shown) through which the user can input data, and a display unit (not shown) for displaying data to the user.

공정 입출력부(230)느 공정 설비(100)와의 인터페이스를 위한 것으로, 공정 설비(100)의 스위치(110) 또는 센서(120)에 연결되어 스위치(110)의 온/오프 정보 또는 센서(120)의 검출값을 입력받으며, 액추에이터(130)에 연결되어 액추에이터(130)에 구동에 필요한 데이터를 제공한다.The process input / output unit 230 is for interfacing with the process facility 100, and is connected to the switch 110 or the sensor 120 of the process facility 100 to turn on / off information or the sensor 120 of the switch 110. Receives a detection value of the, is connected to the actuator 130 to provide the actuator 130 with the data required for driving.

저장부(240)에는 PLC 장치(200)를 운용하기 위한 운용 프로그램이 저장되어 있고, 공정 입출력부(230)를 통해 입력 또는 출력되는 공정 데이터들이 저장되어 있다. 운용 프로그램에는 마스터 프로그램이 갖고 있는 프로그램 고유값에 해당하는 운용 고유값을 갖고 있으며, 이 운용 고유값은 지정된 영역에 저장될 수 있다.The storage unit 240 stores an operation program for operating the PLC device 200 and process data input or output through the process input / output unit 230. The operating program has an operating unique value corresponding to the program unique value of the master program, and this operating unique value can be stored in a designated area.

한편, 저장부(240)는 RAM뿐만 아니라 ROM, EEPROM, FLASH 또는 자기 저장 매체를 포함한 것으로, 운용 프로그램은 전원이 공급되면 이들 비휘발성에 메모리에 저장되어 있다가 RAM으로 로드될 수 있다.On the other hand, the storage unit 240 includes not only RAM but also ROM, EEPROM, FLASH or magnetic storage media. When the power is supplied, the operating program may be stored in the memory in these non-volatile memory and then loaded into the RAM.

제1 인터페이스부(250)는 제어 PC(300)와 통신하기 위한 인터페이스로, 제어 PC(300)로부터 PLC 장치(200)의 운용 프로그램의 동작을 정지시키는 정지신호 및 복구 데이터 등을 수신받고, 제어 PC(300)로 저장부(240)에 저장되어 있는 운용 고유값 및 공정 데이터들 등을 송신한다.The first interface unit 250 is an interface for communicating with the control PC 300, receives a stop signal and recovery data for stopping the operation of the operation program of the PLC device 200 from the control PC 300, the control The operation 300 transmits the unique values and process data stored in the storage unit 240 to the PC 300.

제1 제어부(260)는 저장부(240)의 운용 프로그램에 따라 UI부(220), 공정 입출력부(230), 저장부(240) 및 제1 인터페이스부(250)를 제어한다. 제1 제어부(260)는 제1 인터페이스부(250)를 통해 운용 프로그램의 동작을 정지시키는 정지신호를 입력받으면, 저장부(240)에 저장된 운용 프로그램이 동작하지 않도록 제어하며, 복구 데이터 등을 수신받으면, 저장부(240)의 복구 데이터 저장 영역에 저장한다. 그리고 공정 입출력부(230)를 통해 공정 설비(100)의 스위치(110)의 온/오프 정보 및 센서(120)의 검출값이 입력되면 이들 데이터를 저장부(240)의 공정 데이터 영역에 저장한다. 또한, UI부(220)를 통해 공정 설비(100)의 액추에이터(130)를 제어하기 위한 공정 데이터가 입력되면 이 데이터를 저장부(240)의 공정 데이터 영역에 저장한다.The first controller 260 controls the UI unit 220, the process input / output unit 230, the storage unit 240, and the first interface unit 250 according to an operation program of the storage unit 240. When the first control unit 260 receives a stop signal for stopping the operation of the operation program through the first interface unit 250, the first control unit 260 controls the operation program stored in the storage unit 240 to not operate and receives the recovery data. If received, the data is stored in the recovery data storage area of the storage unit 240. When the on / off information of the switch 110 of the process facility 100 and the detection value of the sensor 120 are input through the process input / output unit 230, the data is stored in the process data area of the storage unit 240. . In addition, when process data for controlling the actuator 130 of the process facility 100 is input through the UI unit 220, the data is stored in the process data area of the storage unit 240.

제2 전원 공급부(310)는 사용자가 전원 버튼(미도시됨)을 누르면 제어 PC(300)의 각 구성, 즉 RAM(380), 제2 제어부(390) 등에 필요한 정격 전압을 공급한다. When the user presses a power button (not shown), the second power supply 310 supplies a rated voltage necessary for each component of the control PC 300, that is, the RAM 380, the second controller 390, and the like.

사용자 입력부(320)는 운용자로부터 데이터를 입력받기 위한 것으로, 키보드(미도시됨) 등을 포함한다. The user input unit 320 is for receiving data from an operator and includes a keyboard (not shown).

디스플레이부(330)에는 PLC 장치(200)의 상태를 표시하며, 문제가 발생하면 경고 메시지를 표시한다. 오디오부(340)는 소리를 통해 알람 경보를 한다.The display unit 330 displays a state of the PLC device 200, and displays a warning message when a problem occurs. The audio unit 340 generates an alarm alert through sound.

제2 인터페이스부(350)는 PLC 장치(200)와 통신하기 위한 인터페이스로, RS232 등을 통해 제1 인터페이스부(250)와 연결된다. 제2 인터페이스부(350)는 PLC 장치(200)로부터 저장부(240)에 저장되어 있는 운용 고유값 및 공정 데이터들 등을 수신받고, PLC 장치(200)로 PLC 장치(200)의 운용 프로그램의 동작을 정지시키는 정지신호 및 복구 데이터 등을 송신한다.The second interface unit 350 is an interface for communicating with the PLC device 200 and is connected to the first interface unit 250 through RS232. The second interface unit 350 receives operation specific values and process data stored in the storage unit 240 from the PLC device 200, and transmits the operation program of the PLC device 200 to the PLC device 200. A stop signal and recovery data for stopping the operation are transmitted.

마스터 프로그램 저장부(360)는 마스터 프로그램을 저장한 ROM 또는 KEY LOCK으로 이루어진 저장 매체이다. 이들 저장 매체는 제어 PC(300)로부터 분리될 수 있는 것이 바람직하다.The master program storage unit 360 is a storage medium consisting of a ROM or a key lock that stores a master program. These storage media are preferably removable from the control PC 300.

마스터 프로그램은 PLC 장치(200)의 운용 프로그램이 갖고 있는 운용 고유값 에 해당하는 프로그램 고유값을 포함하고 있다. 프로그램 고유값에는 프로그램 동작에 의해 값이 변경되지 않아야 하는 공정 설비(100)의 운용 고유값뿐만 아니라 버전 등도 포함되며, 공정 데이터들이 가질 수 있는 범위도 포함될 수 있다.The master program includes a program intrinsic value corresponding to an operation intrinsic value of the operation program of the PLC device 200. The program intrinsic value includes not only the operation intrinsic value of the process equipment 100 that should not be changed by the program operation, but also a version, and the like, and may also include a range that process data may have.

또한, 마스터 프로그램은 프로그램 고유값과 운용 고유값이 일치하지 않는 경우 프로그램 고유값으로 운용 고유값을 수정하는 자체 복구 프로그램을 포함한다.In addition, the master program includes a self-recovery program that modifies the operating eigenvalue to the program eigenvalue when the program eigenvalue and the operating eigenvalue do not match.

RAM(370)은 마스터 프로그램 저장부(360)에 저장된 마스터 프로그램을 로드하여 저장하는 마스터 프로그램 저장영역과 제2 인터페이스부(350)를 통해 수신된 운용 고유값을 저장한다.The RAM 370 stores a master program storage area for loading and storing a master program stored in the master program storage unit 360 and an operation specific value received through the second interface unit 350.

제3 인터페이스부(380)는 관리 서버(400)와 통신하기 위한 인터페이스로, 인터넷을 통해 관리 서버(400)에 연결된다. The third interface unit 380 is an interface for communicating with the management server 400 and is connected to the management server 400 through the Internet.

관리 서버(400)에 제3 인터페이스부(380)를 통해 제어 PC(300)가 접속되면, 제1 제어부(260)는 이를 감지하여 매크로 프로그램을 구동하여 운용 프로그램의 동작을 정지시킨다. 이에 의해, 해킹 등에 의한 공정 설비(100)의 오동작을 방지할 수 있다. When the control PC 300 is connected to the management server 400 through the third interface unit 380, the first control unit 260 detects this and drives the macro program to stop the operation of the operation program. Thereby, the malfunction of the process equipment 100 by hacking etc. can be prevented.

제2 제어부(390)는 RAM에 저장되어 있는 OS 프로그램의 동작에 따라 사용자 입력부(320), 디스플레이부(330), 오디오부(340), 제2 인터페이스부(350), 마스터 프로그램 저장부(360), RAM(370) 및 제3 인터페이스부(380)를 제어한다. The second control unit 390 according to the operation of the OS program stored in the RAM, the user input unit 320, the display unit 330, the audio unit 340, the second interface unit 350, the master program storage unit 360 ), The RAM 370 and the third interface unit 380 are controlled.

제2 제어부(390)가 마스터 프로그램 저장부(360)로부터 마스터 프로그램을 RAM(370)에 로딩하는 방법은 다양하다. 즉, 전원 버튼(미도시됨)이 온되어 제2 전 원 공급부(310)에서 동작 전압이 공급되거나 운용자가 사용자 입력부(320)를 통해 마스터 프로그램의 동작을 입력하거나 일정한 시간마다 마스터 프로그램을 동작하도록 프로그램하여 두면, 이에 의해 제2 제어부(390)는 마스터 프로그램 저장부(360)로부터 RAM(370)으로 마스터 프로그램을 로딩한다. The second controller 390 may load the master program from the master program storage 360 into the RAM 370 in various ways. That is, the power button (not shown) is turned on so that the operating voltage is supplied from the second power supply unit 310 or the operator inputs the operation of the master program through the user input unit 320 or operates the master program at a predetermined time. If so, the second control unit 390 loads the master program from the master program storage unit 360 to the RAM 370.

또한, RAM(370)에 저장된 마스터 프로그램은 바이러스 검사 프로그램과 같이, 항상 구동되어 오동작을 검사할 수 있다. 경우에 따라서는 RAM(370)에 로딩되지 않고 마스터 프로그램 저장부(360)에서 직접 마스터 프로그램이 구동될 수 있다.In addition, the master program stored in the RAM 370 is always driven, such as a virus scan program, to check for malfunctions. In some cases, the master program may be driven directly from the master program storage unit 360 without being loaded into the RAM 370.

제2 제어부(390)는 마스터 프로그램과 운영 프로그램을 상호 간에 비교하여 불일치하는 경우, 알람 경보를 표시하기 위해 디스플레이부(330) 또는 알람 경보를 울리기 위해 오디오부(340)를 제어한다.The second control unit 390 compares the master program and the operating program with each other, and controls the display unit 330 or the audio unit 340 to sound an alarm when displaying a mismatch.

제2 제어부(390)는 마스터 프로그램과 운영 프로그램을 상호 간에 비교하여 불일치하는 경우, 자체 복구 프로그램을 구동하여 운영 프로그램이 마스터 프로그램과 동일하게 되도록 제2 인터페이스부(350)를 통해 PLC 장치(200)를 제어한다.The second control unit 390 compares the master program and the operating program with each other, if there is a mismatch, the PLC device 200 through the second interface unit 350 to drive the self-recovery program to be the same as the master program. To control.

그리고 제2 제어부(390)는 자체 복구 프로그램에 의해서도 운용 프로그램이 복구되지 않으면 제3 인터페이스부(380)를 제어하여 인터넷을 통해 관리 서버(400)에 접속한다. 이에 의해 관리 서버(400)는 제어 PC(300) 또는 PLC 장치(200)를 제어할 수 있다. 관리 서버(400)는 자가 진단 프로그램을 동작시켜 PLC 장치(200)의 문제에 대한 원인을 분석하고 부품 교환 유무에 대한 정보를 제공한다.The second controller 390 controls the third interface 380 to access the management server 400 through the Internet if the operation program is not restored even by the self-recovery program. As a result, the management server 400 can control the control PC 300 or the PLC device 200. The management server 400 analyzes the cause of the problem of the PLC device 200 by operating a self-diagnosis program and provides information on the presence or absence of parts replacement.

다음, PLC 제어 시스템의 자가 진단 방법의 일실시예를 4a 및 도 4b를 참조하여 설명한다. Next, an embodiment of a self-diagnosis method of the PLC control system will be described with reference to 4A and 4B.

도 4a에 도시한 것과 같이, PLC 제어 시스템의 자가 진단 기능을 동작시킨다(S101). 이러한 자가 진단 기능의 동작은 운용자가 사용자 입력부(320)를 통해 마스터 프로그램의 동작을 입력하거나 일정한 시간마다 마스터 프로그램을 동작하도록 프로그램하여 두고 동작시킬 수 있다. 또한 이러한 자가 진단 기능의 동작은 마스터 프로그램이 RAM(370)에 로딩되어 있는 경우 바이러스 검사 프로그램과 같이, 항상 구동되어 오동작을 검사하는 경우도 포함한다.As shown in Fig. 4A, the self-diagnosis function of the PLC control system is operated (S101). The operation of the self-diagnosis function may be operated by allowing the operator to input the operation of the master program through the user input unit 320 or program the operation of the master program at a predetermined time. In addition, the operation of the self-diagnosis function includes a case in which the master program is always loaded and checked for malfunctions, such as a virus scan program when the master program is loaded in the RAM 370.

마스터 프로그램을 저장한 ROM 또는 KEY LOCK으로 이루어진 저장 매체로 이루어진 마스터 프로그램 저장부(360)로부터 RAM(370)에 마스터 프로그램을 저장시킨다(S102). 다만, 상시 감시를 위해 RAM(370)에 마스터 프로그램이 저장되어 있는 경우에는 이러한 로딩이 프로그램 고유값에 한하여 발생할 수 있다.The master program is stored in the RAM 370 from the master program storage unit 360 formed of a ROM or a key lock storing the master program (S102). However, when the master program is stored in the RAM 370 for constant monitoring, such loading may occur only in the program unique value.

제 2 인터페이스부(350)를 통해 PLC 장치(200)의 저장부(240)로부터 운용 고유값을 갖고 있는 운영 프로그램을 수신한다(S103).An operation program having an operation specific value is received from the storage unit 240 of the PLC device 200 through the second interface unit 350 (S103).

RAM(370)에 저장된 마스터 프로그램으로부터 프로그램 고유값을 판독한다(S104).The program unique value is read from the master program stored in the RAM 370 (S104).

제2 제어부(390)는 프로그램 고유값과 제2 인터페이스부(350)를 통해 수신한 운용 고유값을 비교하다(S105). 이 경우 프로그램 고유값과 운용 고유값의 비교는 상수뿐만 아니라 문자 그리고 기호를 포함한다. 또한 저장부(240)에 저장된 공정 데이터도 포함될 수 있으며, 이 경우에는 공정 데이터가 소정의 범위를 벗어난 값 인지 비교할 수 있다.The second control unit 390 compares the program intrinsic value with the operation intrinsic value received through the second interface unit 350 (S105). In this case the comparison of program eigenvalues to operational eigenvalues includes not only constants but also letters and symbols. In addition, the process data stored in the storage unit 240 may also be included. In this case, it may be compared whether the process data is out of a predetermined range.

제2 제어부(390)는 프로그램 고유값과 운용 고유값이 불일치하면(S105에서 'N' 이면), PLC 장치(200)의 운영 프로그램을 정지하는 정지신호를 송신하도록 제2 인터페이스부(350)를 제어하고, 제1 제어부(260)는 이 정지신호에 따라 운용 프로그램을 정지한다(S106). 이에 의해, 공정 설비(100)는 더 이상의 작업을 진행하지 않거나 현재의 작업만을 진행한다.If the program intrinsic value and the operation intrinsic value do not match (if 'N' in S105), the second control unit 390 transmits the second interface unit 350 to transmit a stop signal for stopping the operation program of the PLC device 200. The control unit 260 then stops the operation program in accordance with the stop signal (S106). Thereby, the process facility 100 does not proceed any further work or only the current work.

운용자가 수정키를 입력할 수 있도록 오디오부(340)를 통해 알림음을 발생하거나 디스플레이부(330)를 통해 경고 메시지를 표시한다(S107).The operator generates a notification sound through the audio unit 340 or displays a warning message through the display unit 330 so that the operator can input a correction key (S107).

알림음과 경고 메시지를 인지한 운용자가 사용자 입력부(320)의 수정키를 입력하면(S108에서 'Y'이면), 마스터 프로그램의 자체 복구 프로그램을 이용하여 PLC 운영 프로그램을 수정한다(S109).When the operator who recognizes the alarm sound and the warning message enters the modification key of the user input unit 320 (if Y is S108), the PLC operating program is modified using the self-recovery program of the master program (S109).

마스터 프로그램의 자체 복구 프로그램에 의해 수정이 완료되지 않으면(S110에서 'N' 이면), 도 4b에 도시한 것과 같이, 오디오부(340)에 재알람을 발생하거나 디스플레이부(330)에 재경고 메시지를 표시한다(S111).If the modification is not completed by the self-repair program of the master program (if 'N' in S110), as shown in FIG. 4B, a re-alarm is generated in the audio unit 340 or a re-warning message is sent to the display unit 330. To display (S111).

관리 서버(400)에 의해 원격으로 프로그램을 복구할 수 있도록 외부 접속을 승인하면(S112에서 'Y' 이면), 인터넷을 통해 PLC 장치(200)의 제1 인터페이스부(250)가 관리 서버(400)에 연결된다(S113).If the external connection is approved by the management server 400 to remotely recover the program (if Y in step S112), the first interface unit 250 of the PLC device 200 is connected to the management server 400 via the Internet. (S113).

다음, 해킹 등에 의한 공정 설비(100)의 오동작을 방지하기 위하여 제1 제어부(260)에 의해 매크로 프로그램이 동작한다(S114). 이러한 매크로 프로그램의 동작은 PLC 장치(200)가 관리 서버(400)에 전기적으로 연결되면 항상 동작하도록 프 로그램되어 있는 것이 바람직하다. Next, the macro program is operated by the first control unit 260 to prevent the malfunction of the process facility 100 due to hacking or the like (S114). The operation of the macro program is preferably programmed to always operate when the PLC device 200 is electrically connected to the management server 400.

마지막으로, 관리 서버(400)는 PLC 장치(200)를 진단하거나 부품 교환 유무를 검사하는 자가 진단 검사 프로그램이 구동하여 운용 프로그램을 복구한다(S115).Finally, the management server 400 restores the operation program by driving a self-diagnostic test program for diagnosing the PLC device 200 or inspecting whether there is a part exchange (S115).

한편, 프로그램 고유값과 운용 고유값이 일치(S105에서 'Y')하거나 혹은 수정이 완료되면(S110에서 'Y'), PLC 장치(200)의 제2 제어부(260)는 운용 프로그램을 동작시켜, 공정 설비(100)가 연속 작업을 실시하도록 한다(S116).On the other hand, when the program intrinsic value and the operation intrinsic value coincides ('Y' in S105) or the modification is completed ('Y' in S110), the second control unit 260 of the PLC device 200 operates the operation program. , Process equipment 100 is to perform a continuous operation (S116).

다음, 도 5를 참조하여 본 발명의 다른 실시예에 따른 PLC 제어 시스템의 자가 진단 방법을 설명한다. 도 5는 본 발명의 다른 실시예에 따른 PLC 제어 시스템의 자가 진단 방법을 도시한 흐름도이다.Next, a self-diagnosis method of a PLC control system according to another embodiment of the present invention will be described with reference to FIG. 5. 5 is a flowchart illustrating a self-diagnosis method of a PLC control system according to another embodiment of the present invention.

도 5에 도시한 것과 같이, PLC를 통한 원격 제어를 위하여 제어 PC를 부팅시킨다(S101).As shown in FIG. 5, the control PC is booted for remote control through the PLC (S101).

다음, PLC를 부팅시킨다(S102).Next, boot the PLC (S102).

다음, 마스터 프로그램이 저장되어 있는 메모리(ROM)를 PLC에 삽입한다(S103).Next, the memory (ROM) in which the master program is stored is inserted into the PLC (S103).

여기서, '마스터 프로그램'이란 PLC의 부팅 과정에서 PLC의 운용 프로그램이 갖고 있는 기계장치 조작의 고유값에 대한 이상유무 및 변경 정보를 확인할 수 있는 프로그램으로서, 운용자의 불안정한 장비 조작, 외부 인자에 의한 프로그램 변경에 따른 기계의 오작동을 예방할 수 있다. Here, the 'master program' is a program that can check the abnormality and change information on the intrinsic value of the operation of the machine owned by the PLC operating program during the booting of the PLC. Malfunctions of the machine due to changes can be prevented.

또한, 이 마스터 프로그램은 ROM에 저장되어 있기 때문에, 사용 중에 외부의 공격이나 손상에 의해 프로그램이 변경되지 않도록 되어 있다.In addition, since the master program is stored in the ROM, the program is not changed by an external attack or damage during use.

다음, PLC 내부의 운용 프로그램과 마스터 프로그램을 상호 확인한다(S104).Next, the operation program and the master program in the PLC are mutually checked (S104).

여기서, '운용 프로그램'이란 초기 장비 설정 과정에서 저장된 프로그램으로서, 장비의 운용에 필요한 프로그램이며 특히 자동으로 장비를 운용할 경우 이를 주관하는 주요한 프로그램이다.Here, the 'operation program' is a program stored in the initial equipment setting process, a program necessary for the operation of the equipment, and in particular, the main program that manages the automatic operation of the equipment.

또한, 작업 과정에서 작업 주요 인자를 입력하도록 구성되어 있고, 저장되는 프로그램은 다음 장비 부팅 과정에서 마스터 프로그램과는 관련이 없도록 저장된다. 또한, 자동 모드로 작업할 경우, 수동으로 작업과정들을 모두 입력한 후 최적의 파라미터를 갖는 작업 조건을 선택하고 나머지 기록되어진 프로그램들을 삭제하여 저장한 후 자동 모드로 변환하여 장치를 구동하면, 최적의 파라미터를 갖는 작업 조건으로 작업이 진행될 수 있다.In addition, it is configured to input the main parameters of the task in the work process, and the stored program is stored so that it is not related to the master program during the next equipment booting process. In addition, when working in the automatic mode, manually input all the work processes, select the working conditions with the optimal parameters, delete the remaining recorded programs, save them, and then switch to the automatic mode to operate the device. Work may proceed with working conditions with parameters.

이러한 운용 프로그램과 마스터 프로그램을 초기 장비 부팅 과정에서 상호 확인하는 단계를 거친 뒤 장비를 사용하도록 함으로써, 장비 사용에 있어 오작동 및 작업자의 실수를 최소화하여 고가 장비의 사용 효율 증대 및 경비 절감을 가능하게 할 수 있다.By checking the operation program and the master program at the initial booting stage, the equipment can be used to minimize the malfunction and operator error in using the equipment, thereby increasing the use efficiency of the expensive equipment and reducing the cost. Can be.

다음, 상호확인 과정에서 이상이 발생한 경우에 마스터 프로그램이 저장되어 있는 메모리를 PLC로부터 자동적으로 취출한다(S105).Next, when an error occurs in the mutual confirmation process, the memory in which the master program is stored is automatically taken out from the PLC (S105).

다음, 운용자가 복구할 수 있도록 운용 패널상에 알람을 경보한다(S106).Next, alarm the alarm on the operation panel so that the operator can recover (S106).

다음, 운용자에 의해서 정상적으로 복구되지 않으면, 이메일(이상의 원인 및 시간 정보 등을 포함)을 통해 장비 공급 업체에 알람을 경보한다(S108). Next, if not normally restored by the operator, the alarm to the equipment supplier via the e-mail (including the cause and time information, etc.) (S108).

마지막으로, 장비 공급 업체에 의한 원격제어 복구를 위하여 외부 접속을 허가하고(S109) 장비 공급 업체는 원격제어로 복구하게 된다(S110).Finally, the external access is allowed for the remote control recovery by the equipment supplier (S109), and the equipment supplier is restored to the remote control (S110).

한편, 단계(S107)에서 운용자에 의해 정상적으로 복구되면, 초기 작업조건으로 재진행하기 위하여 메인 PC를 재부팅한다(S111).On the other hand, if the normal recovery by the operator in step (S107), reboot the main PC in order to resume the initial working conditions (S111).

이러한 일련의 복구 작업에 의해 PLC 내부의 운용 프로그램과 마스터 프로그램의 상호 확인에서 이상 발생이 없으면, 마스터 프로그램이 저장되어 있는 메모리를 PLC로부터 취출하고(S112), PLC의 운용 프로그램을 시작한다(S113).If there is no abnormality in mutual confirmation between the operation program and the master program in the PLC by such a series of recovery operations, the memory in which the master program is stored is taken out from the PLC (S112), and the operation program of the PLC is started (S113). .

이렇게 마스터 프로그램이 완전히 제거된 후에 운용 프로그램이 작동하도록 되어 있어 사용중에 버그에 의한 프로그램 변경 및 변종, 외부의 해킹에 의한 공격이나 손상 및 변경으로부터 프로그램을 보호할 수 있다.After the master program is completely removed, the operating program is operated so that the program can be protected from bugs, program changes and variants, and external attacks or damages.

다음, 연속 작업을 실시한다(S114). 이 때, 매회 작업조건들은 자동적으로 저장될 수 있다.Next, continuous operation is performed (S114). At this time, each time working conditions can be automatically stored.

마지막으로, 운용 프로그램을 종료한다(S115).Finally, the operation program ends (S115).

여기서, 최종 작업 완료후 종료 버튼을 누르면 당일 작업된 모든 내용이 일정 필드에 저장되는데 주 1회 또는 사용자 지정에 따라 외부 저장 장치에 백업될 수 있다.In this case, when the end button is pressed after the final work is completed, all the work done on the day is stored in a certain field, which can be backed up to an external storage device once a week or according to a user's designation.

본 발명이 특정 실시예를 참조하여 특별히 도시되고 설명되었지만, 본 발명은 거기에 한정되지 않고 다양하게 변형될 수 있다는 것을 이 기술분야의 당업자는 이해할 것이다.Although the present invention has been particularly shown and described with reference to specific embodiments, it will be understood by those skilled in the art that the present invention is not limited thereto and may be variously modified.

도 1은 본 발명의 일실시예에 따른 PLC 제어 시스템의 구성도이다.1 is a block diagram of a PLC control system according to an embodiment of the present invention.

도 2는 본 발명의 일실시예에 따른 PLC 장치의 구성을 도시한 블록도이다.2 is a block diagram showing the configuration of a PLC device according to an embodiment of the present invention.

도 3은 본 발명의 일실시예에 따른 PLC 제어장치의 구성을 도시한 블록도이다.3 is a block diagram showing the configuration of a PLC control apparatus according to an embodiment of the present invention.

도 4a 및 도 4b는 본 발명의 일실시예에 따른 PLC 제어 시스템의 자가 진단 방법을 도시한 흐름도이다.4A and 4B are flowcharts illustrating a self-diagnostic method of a PLC control system according to an embodiment of the present invention.

도 5는 본 발명의 다른 실시예에 따른 PLC 제어 시스템의 자가 진단 방법을 도시한 흐름도이다.5 is a flowchart illustrating a self-diagnosis method of a PLC control system according to another embodiment of the present invention.

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

10: PLC 제어 시스템 100,100': 공정설비10: PLC control system 100,100 ': process equipment

110: 스위치 120: 센서110: switch 120: sensor

130: 액추에이터 200,200': PLC130: Actuator 200,200 ': PLC

210: 제1 전원공급부 220: UI부210: first power supply unit 220: UI unit

230: 공정 입출력부 240: 저장부230: process input and output unit 240: storage unit

250: 제1 인터페이스부 260: 제1 제어부250: first interface unit 260: first control unit

300: 제어 PC 310: 제2 전원공급부300: control PC 310: second power supply unit

320: 사용자 입력부 330: 디스플레이부320: user input unit 330: display unit

340: 오디오부 350: 제2 인터페이스부340: audio unit 350: second interface unit

360: 마스터프로그램 저장부 370: RAM360: master program storage unit 370: RAM

380: 제3 인터페이스부 390: 제2 제어부380: third interface unit 390: second control unit

400: 관리 서버400: management server

Claims (11)

프로그램 로직 컨트롤러(PLC) 제어 시스템에 있어서,In a programmable logic controller (PLC) control system, 공정설비의 스위치, 센서 또는 액츄에이터와 연결되는 공정 입출력부와, 운용 프로그램 및 상기 공정 입출력부를 통해 입력되거나 출력되는 공정 데이터를 저장하는 저장부와, 외부와 통신하기 위한 제1 인터페이스부와, 상기 공정 입출력부 및 상기 저장부를 제어하고, 상기 운용 프로그램을 송신하도록 상기 제1 인터페이스부를 제어하는 제1 제어부를 구비한 PLC 장치; 및A process input / output unit connected to a switch, a sensor or an actuator of a process facility, a storage unit storing an operation program and process data input or output through the process input / output unit, a first interface unit for communicating with the outside, and the process A PLC device including a first control unit controlling an input / output unit and the storage unit, and controlling the first interface unit to transmit the operation program; And 상기 제1 인터페이스부와 통신하기 위한 제2 인터페이스부와, 마스터 프로그램을 저장하는 마스터 프로그램 저장부와, 상기 마스터 프로그램과 상기 제2 인터페이스부를 통해 수신된 상기 운용 프로그램을 상호 비교하는 제2 제어부를 구비한 PLC 제어장치;를 포함하는 것을 특징으로 하는 PLC 제어 시스템.A second interface for communicating with the first interface, a master program storage for storing a master program, and a second controller for comparing the master program with the operation program received through the second interface; PLC control system comprising a; PLC control device. 제1항에 있어서,The method of claim 1, 상기 마스터 프로그램은 프로그램 동작에 의해 값이 변경되지 않는 프로그램 고유값을 갖고, The master program has a program specific value whose value is not changed by a program operation. 상기 운용 프로그램은 상기 프로그램 고유값에 해당하는 운용 고유값을 갖고, The operating program has an operating eigenvalue corresponding to the program eigenvalue, 상기 제2 제어부는 상기 프로그램 고유값과 상기 제2 인터페이스부를 통해 수신된 상기 운용 고유값을 비교하는 것을 특징으로 하는 PLC 제어 시스템.And the second control unit compares the program intrinsic value with the operation intrinsic value received through the second interface unit. 제2항에 있어서,The method of claim 2, 상기 제2 제어부는 상기 프로그램 고유값과 상기 운용 고유값이 일치하지 않는 경우 상기 운용 프로그램의 동작을 정지시키는 정지신호를 송신하도록 상기 제2 인터페이스부를 제어하는 것을 특징으로 하는 PLC 제어 시스템.And the second control unit controls the second interface unit to transmit a stop signal for stopping the operation of the operation program when the program intrinsic value and the operation intrinsic value do not match. 제3항에 있어서,The method of claim 3, 상기 PLC 제어장치는 디스플레이부 또는 오디오부를 더 구비하고, The PLC controller further includes a display unit or an audio unit, 상기 제2 제어부는 상기 프로그램 고유값과 상기 운용 고유값이 일치하지 않는 경우 운용자가 복구할 수 있도록 상기 디스플레이부 또는 상기 오디오부에 알람 신호를 제공하고, 운용자로부터 복구 지시가 있으면 자체 복구 프로그램을 이용하여 상기 프로그램 고유값으로 상기 운용 고유값을 수정하는 것을 특징으로 하는 PLC 제어 시스템.The second control unit provides an alarm signal to the display unit or the audio unit so that an operator can recover when the program intrinsic value and the operation intrinsic value do not coincide. PLC control system, characterized in that for modifying the operation specific value by the program specific value. 제3항 또는 제4항에 있어서,The method according to claim 3 or 4, 인터넷을 통해 상기 PLC 제어장치에 연결될 수 있는 관리 서버를 더 포함하고, Further comprising a management server that can be connected to the PLC control device via the Internet, 상기 PLC 제어장치는 상기 관리 서버와 통신하기 위한 제3 인터페이스부를 더 구비하고, The PLC controller further includes a third interface unit for communicating with the management server, 상기 제2 제어부는 상기 운용 프로그램의 복구가 실패하는 경우 상기 인터넷 을 통해 상기 관리 서버에 연결되도록 상기 제3 인터페이스부를 제어하고, The second control unit controls the third interface unit to be connected to the management server through the Internet when the recovery of the operation program fails, 상기 관리 서버는 상기 제3 인터페이스부를 통해 상기 PLC 장치를 분석하거나 부품 교환 유무를 검사하는 자가 진단 검사 프로그램을 구동시키는 것을 특징으로 하는 PLC 제어 시스템.The management server is a PLC control system, characterized in that for driving the self-diagnostic test program for analyzing the PLC device or inspecting the parts replacement through the third interface. 제1항에 있어서,The method of claim 1, 상기 제2 제어부는 상기 PLC 장치에 전원이 공급되는 경우 상기 마스터 프로그램 저장부에 저장된 상기 마스터 프로그램을 구동하고, 상기 마스터 프로그램과 상기 제2 인터페이스부를 통해 수신된 상기 운용 프로그램을 상호 비교하는 것을 특징으로 하는 PLC 제어 시스템.The second control unit drives the master program stored in the master program storage unit when power is supplied to the PLC device, and compares the master program with the operation program received through the second interface unit. PLC control system. 제1항에 있어서,The method of claim 1, 인터넷을 통해 상기 PLC 장치에 전기적으로 연결될 수 있는 관리 서버를 더 포함하고,Further comprising a management server that can be electrically connected to the PLC device via the Internet, 상기 제1 제어부는 상기 관리 서버가 상기 제1 인터페이스부에 전기적으로 연결되면 상기 운용 프로그램의 동작을 정지시키는 것을 특징으로 하는 PLC 제어 시스템.And the first controller stops the operation of the operation program when the management server is electrically connected to the first interface. PLC 제어 시스템의 자가 진단 방법에 있어서,In the self-diagnosis method of the PLC control system, 상기 PLC 제어 시스템의 자가 진단 기능을 동작시킨 후, 마스터 프로그램 동 작시키는 단계;Operating a self-diagnostic function of the PLC control system and then operating a master program; 상기 마스터 프로그램으로부터 프로그램 고유값을 판독하고, 상기 프로그램 고유값에 해당하는 운용 고유값을 갖고 있는 운영 프로그램을 수신하는 단계; 및Reading a program unique value from the master program and receiving an operating program having an operating unique value corresponding to the program unique value; And 상기 프로그램 고유값과 상기 운용 고유값을 비교하여 불일치하면 상기 운영 프로그램을 정지하는 단계;를 포함하는 것을 특징으로 하는 PLC 제어 시스템의 자가 진단 방법.And comparing the program eigenvalues with the operation eigenvalues and stopping the operating program if there is a mismatch. 제8항에 있어서,The method of claim 8, 운용자가 수정키를 입력할 수 있도록 알림음을 발생하거나 경고 메시지를 표시하는 단계; 및Generating a notification sound or displaying a warning message so that an operator can input a modification key; And 운용자가 상기 수정키를 입력함으로써 자체 복구 프로그램을 이용하여 PLC의 상기 운영 프로그램을 수정하는 단계;를 더 포함하는 것을 특징으로 하는 PLC 제어 시스템의 자가 진단 방법.And an operator correcting the operating program of the PLC by using the self-recovery program by inputting the correcting key. 제9항에 있어서,The method of claim 9, 상기 자체 복구 프로그램에 의해 수정이 완료되지 않으면 재알람을 발생하거나 재경고 메시지를 표시하는 단계;Generating a re-alarm or displaying a re-warning message if the modification is not completed by the self recovery program; 원격으로 프로그램을 복구할 수 있도록 외부 접속을 승인하면 인터넷을 통해 관리 서버에 연결되는 단계; 및Connecting to a management server through the Internet when the external access is approved to recover a program remotely; And 상기 관리 서버가 자가 진단 검사 프로그램을 구동시켜 운용 프로그램을 복 구하는 단계를 더 포함하는 것을 특징으로 하는 PLC 제어 시스템의 자가 진단 방법.The management server further comprises the step of driving the self-diagnostic test program to recover the operation program self-diagnosis method of a PLC control system. 제8항 내지 제10항 중 어느 한 항에 있어서,The method according to any one of claims 8 to 10, 상기 프로그램 고유값과 상기 운용 고유값이 일치하거나 또는 상기 수정이 완료되면 연속 작업을 실시하는 단계를 더 포함하는 것을 특징으로 하는 PLC 제어 시스템의 자가 진단 방법.And performing a continuous operation when the program eigenvalues and the operation eigenvalues coincide or when the correction is completed.
KR1020070106684A 2007-10-23 2007-10-23 Plc control system and self-checking method thereof KR100940039B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070106684A KR100940039B1 (en) 2007-10-23 2007-10-23 Plc control system and self-checking method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070106684A KR100940039B1 (en) 2007-10-23 2007-10-23 Plc control system and self-checking method thereof

Publications (2)

Publication Number Publication Date
KR20090041134A true KR20090041134A (en) 2009-04-28
KR100940039B1 KR100940039B1 (en) 2010-02-04

Family

ID=40764314

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070106684A KR100940039B1 (en) 2007-10-23 2007-10-23 Plc control system and self-checking method thereof

Country Status (1)

Country Link
KR (1) KR100940039B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103403632A (en) * 2011-03-15 2013-11-20 欧姆龙株式会社 Computation unit, assistance device, output control method, display control method, and program
KR101539253B1 (en) * 2014-06-17 2015-07-28 주식회사 엔에스이 A PLC device provided with a function for managing program quality

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100206992B1 (en) * 1996-03-30 1999-07-01 이종수 The method of plc diagnosis
US6647301B1 (en) * 1999-04-22 2003-11-11 Dow Global Technologies Inc. Process control system with integrated safety control system
KR20050005106A (en) * 2003-07-03 2005-01-13 현대자동차주식회사 Method for detecting the communication error using the pattern writing register
KR100823722B1 (en) 2006-09-01 2008-04-18 주식회사 포스콘 Apparatus and method for PLC redundancy

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103403632A (en) * 2011-03-15 2013-11-20 欧姆龙株式会社 Computation unit, assistance device, output control method, display control method, and program
KR101539253B1 (en) * 2014-06-17 2015-07-28 주식회사 엔에스이 A PLC device provided with a function for managing program quality

Also Published As

Publication number Publication date
KR100940039B1 (en) 2010-02-04

Similar Documents

Publication Publication Date Title
CN101840221B (en) Removable security modules and related methods
US9882893B2 (en) System and method for secured password management for industrial devices
JP5450644B2 (en) Safety controller for controlling automation system and control method thereof
EP2228699B1 (en) I/O unit and industrial controller
US8397103B2 (en) Method for detecting the improper removal of electronic equipment
WO2015079725A1 (en) Programmable controller
KR100940039B1 (en) Plc control system and self-checking method thereof
JP5041290B2 (en) PROGRAMMABLE CONTROLLER AND ITS ERROR RECOVERY METHOD
CN103097971B (en) Automation, its control device and correlation technique
JP2004227175A (en) Maintenance system
JP4057564B2 (en) Test equipment
KR20050018715A (en) System and method for monitoring of semiconductor manufacturing equipment
KR101408447B1 (en) Apparatus and method for controlling power of ATM/CD
US20180267497A1 (en) Safety Control Device and Method for Changing a Range of Functions of a Safety Control Device
US20210318347A1 (en) Automatic Analyzer and Control Method for Automatic Analyzer
EP3416005B1 (en) Safety controller with cyber-secure maintenance override
KR101021981B1 (en) Apparatus for processing alarm in semiconductor manufacturing equipments and method for setting alarm
KR100651761B1 (en) Module replacement system in plc system
US20200275573A1 (en) Case opening recording apparatus and case opening recording system that record whether or not case is removed from circuit board
KR100756487B1 (en) Obstacle processing method and the device of RF card terminal
JP2006003929A (en) Process controller and diagnosis method of control data of the same
KR0172802B1 (en) I/o out exchanging method in operation of plc
JP3207243B2 (en) Abnormal status display device
CN117055932A (en) Program online upgrading method based on nonvolatile memory tag
CN114461464A (en) Server production test method and device, electronic equipment and medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121210

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140127

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150126

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee