WO2016017944A1 - System and method for notifying abnormal state of automated process - Google Patents

System and method for notifying abnormal state of automated process Download PDF

Info

Publication number
WO2016017944A1
WO2016017944A1 PCT/KR2015/006819 KR2015006819W WO2016017944A1 WO 2016017944 A1 WO2016017944 A1 WO 2016017944A1 KR 2015006819 W KR2015006819 W KR 2015006819W WO 2016017944 A1 WO2016017944 A1 WO 2016017944A1
Authority
WO
WIPO (PCT)
Prior art keywords
abnormal state
contact
condition
automated process
information
Prior art date
Application number
PCT/KR2015/006819
Other languages
French (fr)
Korean (ko)
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 주식회사 유디엠텍
Publication of WO2016017944A1 publication Critical patent/WO2016017944A1/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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4184Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by fault tolerance, reliability of production system
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41875Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by quality surveillance of production
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present invention relates to a system and method for notifying an abnormal state of an automated process, and more particularly, to simplify and visualize a relation path of an input condition versus an output in a diagram of a logic of a LD (Ladder Diagram) format related to an abnormality of an automated process.
  • the present invention relates to a technology that enables detailed tracking of the cause of an error and quickly solves problems occurring during the control program identification and operation.
  • PLC Programmable Logic Controller
  • LD Laser Diagram
  • FB Function Block Diagrma
  • STL Structure Text Language
  • LD arranges the contact for output by AND and OR structure by step and makes sequence and condition for process control by using various arithmetic and function.
  • LD uses logic to express logic and expresses each step as if drawing each step like drawing, so space utilization for programming is low but it is easy and simple to write small step.
  • the analysis of the written program is also possible to read the program sequentially, based on the output of the step, so that the structure can be understood much faster and easier than interpreting the program written in the text-based STL.
  • HMI Human Machine Interface
  • LD Layer Diagram
  • the PLC Programmable Logic Controller
  • the PLC Process Control Program programmed in a ladder diagram (Ladder Diagram) Log (Log data generated by controlling the equipment to perform the automated process PLC) Log collection unit for collecting the;
  • An abnormal state determining unit which grasps contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated using the log with normal state reference information of the automated process;
  • a diagram representation unit for visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in a diagram format.
  • the abnormal state detecting unit is configured to receive a group including a cycle which is a contact point that distinguishes the start and the end of the work for each task of the automated process and the names of the contacts that affect the normal performance of the work, and for each job from the log.
  • a cycle which is a contact point that distinguishes the start and the end of the work for each task of the automated process and the names of the contacts that affect the normal performance of the work, and for each job from the log.
  • the extraction process of the sequence which is On / Off flow over time of the contacts included in the group of the task, is repeatedly extracted, and the frequency of appearance among the extracted sequences
  • a master pattern generator which determines the most sequence as the master pattern;
  • an abnormal state checking unit for checking whether or not the master pattern matches the sequence of the normal state reference information of the automated process and identifying contact information of a facility that has generated an abnormal state of the automated process according to the checking result.
  • the diagram representation unit is output from the PLC as an instruction list (IL) to extract the position information of the ladder contact point using a PLC control program in a text format, and must be turned on before the output is turned on.
  • a logic converter for extracting an optional condition representing each of a plurality of parallel conditions for outputting on except for the common condition, which is an input condition, and the common condition; And outputting the contact point of the facility which generated the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal condition of the automated process and the occurrence time information of the abnormal condition identified from the log.
  • a diagram visualization unit for outputting a common condition and an option condition, which are a preceding input condition of the output contact, as a diagram to be displayed as a subcondition of the output contact.
  • the diagram visualization unit may output the contact information, which is the output, and the common condition and the option condition, which are the preceding input conditions of the output contact, as a diagram on one screen.
  • the common condition and the option condition may include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and contact time information for a contact.
  • the automatic process abnormal state notification method the PLC (Programmable Logic Controller) control program programmed in a ladder diagram (Ladder Diagram) Log generated by controlling the equipment to perform the automation process PLC (Log data) Collecting) from the PLC; Identifying contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated by using the log with normal state reference information of the automated process; And visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in a diagram form.
  • PLC Programmable Logic Controller
  • Identifying the contact information of the equipment that has caused the abnormal state of the automated process On (on) according to the time of the contacts that affect the normal performance of the operation during the cycle of the operation for each task of the automation process from the log Repeatedly extracting a sequence of a) / off flow to determine a sequence having the most occurrence frequency as the master pattern; And checking whether or not the master pattern matches the sequence of the steady state reference information of the automation process, and determining contact information of a facility that has generated an abnormal state of the automation process according to the check result.
  • the step of visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state grasped from the log in a diagram form is outputted from the PLC as an IL (Instruction List) to be a text PLC control program.
  • the position information of the ladder contact is extracted by using, and the common condition which is a pre-input condition that must be turned on for the output to be turned on, and a plurality of parallel conditions for the output to be turned on except for the shared condition. Extracting an optional condition indicating a value; Outputs the contact point of the facility which generated the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal state of the automated process, and the occurrence time information of the abnormal state identified from the log. And outputting a common condition and an option condition, which are preceding input conditions of the output contact, as a diagram to be displayed as a subcondition of the output contact.
  • the logic of LD (Ladder Diagram) format related to the abnormality of the automated process is simplified by visualizing the relationship path of the input condition to the output with a diagram. It enables to trace the cause of abnormalities in detail and to quickly identify the control program and solve problems during operation.
  • LD Layer Diagram
  • FIG. 1 is a view showing the configuration of an automated process abnormal state notification system according to an embodiment of the present invention.
  • FIG. 2 is a diagram illustrating information included in each task group of an automation process.
  • FIG. 3 is a diagram illustrating a master pattern extraction flow.
  • FIG. 4 is a diagram illustrating a logic conversion flow.
  • FIG. 5 is a diagram illustrating structure information of a PLC control program divided into network units.
  • FIG. 6 is a diagram showing that a ladder control PLC control program is output from the PLC in an IL file in a text format.
  • FIG. 7 is a diagram illustrating a condition list in XML format.
  • FIG. 8 is a diagram illustrating a process of obtaining ladder position information of each condition of the condition list.
  • FIG. 9 is a diagram illustrating a flow for obtaining common conditions and optional conditions.
  • FIG. 10 is a diagram illustrating common and optional conditions obtained according to the flow shown in FIG. 9.
  • FIG. 11 is a diagram showing a contact point of an equipment that has generated an abnormal state in an automated process as an output (coil) and prerequisites having a relationship between a common condition and an optional condition.
  • FIG. 12 is a flowchart of an automated process abnormal state notification method according to an embodiment of the present invention.
  • first, second, etc. are used herein to describe various members, regions, and / or portions, it is obvious that these members, components, regions, layers, and / or portions should not be limited by these terms. Do. These terms do not imply any particular order, up or down, or superiority, and are only used to distinguish one member, region or region from another member, region or region. Accordingly, the first member, region, or region described below may refer to the second member, region, or region without departing from the teachings of the present invention.
  • FIG. 1 is a view showing the configuration of an automated process abnormal state notification system according to an embodiment of the present invention.
  • the automated process abnormal state notification system by identifying the contact point and the occurrence time of the equipment that caused the abnormality in the automation process during the operation of the automation process, causing the abnormality in the automation process
  • the contact point of the facility is a coil (also referred to as an output and is used in the same meaning below), and the contact point of the facility that generated the abnormality and the contact points of the facilities necessary for the operation of the facility that generated the abnormality are output in a diagram.
  • the automated process abnormal state notification system includes a log collecting unit 2, an abnormal state detecting unit 3 and a diagram representation unit 6.
  • Log collection unit 2 is a PLC (Programmable Logic Controller) control program programmed with a ladder diagram (Ladder Diagram) Log generated by controlling the equipment (not shown) that the PLC 1 performs an automated process (Log) data) is collected from the PLC (1).
  • PLC Process Control Program
  • the abnormal state detecting unit 3 grasps contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated using the log with the normal state reference information of the automated process. As shown in FIG. 1, the abnormal state checking unit 3 includes a master pattern generation unit 4 and an abnormal state checking unit 5.
  • the master pattern generation unit 4 is set a group including the name of the cycle for distinguishing the start and end of the operation for each task of the automated process and the name of the contact point affecting the normal performance of the operation, and from the log During each cycle of the task, the extraction process of the sequence, which is On / Off flow over time of the contacts included in the group of the task, is repeatedly extracted, and the frequency of occurrence of the extracted sequences is repeated. The sequence with the highest number is determined as the master pattern.
  • the contact names that affect the normal performance of the work are set as groups.
  • the cycle name is set to Y0 and the key is set to Y1, Y2, Y3, and Y4.
  • This group may further include General, which is the name of the cycle, the key, as well as the names of the contacts needed to extract the work flow of the automation process.
  • the generals are set to Y10, X9, X8, X7, X6, ....
  • the master pattern generation unit 4 flows from the log on / off according to the time of the contacts included in the group of the task during the cycle of the task for each task.
  • the extraction process of the in sequence is repeated. For example, referring to FIG. 3, seven sequences are extracted from a log by repeating the cycle of the A3 operation for the A3 operation seven times. In this case, it should be noted that the number of repetitions of the sequence extraction process may vary depending on the setting.
  • the master pattern generator 4 determines a master pattern having the highest appearance frequency among the extracted sequences after the sequence extraction process is completed. Referring to FIG. 3 as an embodiment, the master pattern generation unit 4 generates "Y4-> Y2-> Y1-> Y3", the sequence having the highest frequency of appearance, as a master pattern.
  • the abnormal state check unit 5 checks whether the sequence of the master pattern and the sequence of the normal state reference information of the automated process matches and causes the abnormal state of the automated process according to the check result. Find contact information of.
  • the abnormal state checking unit 5 determines that there is an error in the automation process when the master pattern and the sequence, which is the normal state reference information of the automation process, do not match, and generates an abnormal state in the automation process by contact points that do not match. It is identified by the contact information of the facility. In an embodiment, when the master pattern is "Y4-> Y2-> Y3" and the sequence of the steady state reference information of the automation process is "Y4-> Y2-> Y1-> Y3", Y2 is next if the sequence is normal.
  • Y1 should be executed, but in the case of the master pattern, Y3 is executed after Y2, so it is determined that there is an error in Y1, and this Y1 can be regarded as a contact point of the equipment that has caused an abnormal state in the automation process.
  • the abnormal state checking unit 5 grasps contact information of the equipment that generated the abnormal state in the automated process, and then transmits it to the diagram expression unit 6.
  • the diagram representation unit 5 visualizes and outputs contact information of the equipment that generated the abnormal state and occurrence time information of the abnormal state identified from the log in a diagram form.
  • This diagram representation section 6 includes a logic converter 7 and a diagram visualization section 8.
  • the logic converter 7 is output from the PLC 1 as an IL (Instruction List) to extract the position information of the ladder contact point using a text-type PLC control program, so that the output is turned on.
  • the common condition which is a preceding input condition to be turned on, and an optional condition representing each of a plurality of parallel conditions for turning on the output except the common condition are extracted.
  • FIG. 4 is a diagram illustrating a logic conversion flow according to an embodiment of the present invention.
  • the logic converter 7 performs a ladder analysis of a PLC control program in a ladder format through command analysis in a PLC control program in a text format output from the PLC 1 as an IL (Instruction List).
  • the structural information is extracted, and the extracted structural information is divided into a network unit in which a path is connected from an input to an output in order to divide the extracted structural information by a coil reference.
  • An example divided into the network units is illustrated in FIG. 5. Referring to FIG. 5, a structure of a PLC control program represented by a coil center is divided into two networks for three coils.
  • the structure information of the extracted ladder type PLC control program includes contact names, contact addresses, and commands (eg, AND, OR, and the like) of the contacts existing on the ladder type PLC control program.
  • the logic converter 7 After the structure of the extracted PLC control program is divided in units of networks, the logic converter 7 generates a condition list in units of coils (outputs). It extracts the structure information of PLC control program from the center of coil through command analysis in the text control PLC control program outputted from the PLC 1 to IL and outputs the condition list including the structure information in XML format. .
  • the PLC control program in text format output from the PLC 1 to IL is illustrated in FIG. 6, and an example of a condition list in XML format is illustrated in FIG. 7.
  • the PLC control program in the XML format has the same structure as the PLC control program expressed by the ladder LD. In other words, only the expression method is different, and the original function should be noted that the same.
  • the logic converter 7 After generating the condition list containing the structure information of the PLC control program in this way, the logic converter 7 obtains ladder position information of each condition of the condition list.
  • the reason for obtaining the ladder position information of each condition is to find the common condition (COM) and the option condition (OPT) by extracting the point information of the ladder contact point.
  • the logic converter 7 adds position information of a contact point along the X and Y axes while searching for a path from an initial starting point. Proceed from the initial position to the right, when X1 is encountered (1, 0), when X2 is met (2, 0), when Y1 is met (3, 0), the location information is set for each address and memory (not shown) ). After branching from the initial position and proceeding downward (Y-axis direction), when M70 is encountered (1, 1), when X30 is encountered, (2, 1), location information is set for each address and stored in the memory.
  • Memory corresponding to coil Y1 of one network stores position information of X1 (1, 0), X2 (2, 0), M70 (1, 1), X30 (2, 1), and the corresponding coil Y1 is called. When it is done, it outputs the saved location information in response to the call.
  • the logic converter 7 After obtaining the ladder position information of each condition as described above, the logic converter 7 excludes the common condition and the common condition which is a preceding input condition that must be turned on in order for the coil (output) to be turned on. Extract an optional condition representing each of the multiple parallel conditions to be turned on.
  • the logic converter 7 starts a path search process from the initial Y1.
  • X3 is stored in memory.
  • X3 is replaced by G1.
  • the common condition and the option condition are obtained by comparing the values stored in the memory.
  • the logic converter 7 first calls values stored in addresses BM1 to BM4 of a memory.
  • the values called are as follows.
  • BM1 G1 + X2-> X3 + X2,
  • BM2 G1 + X2 + X1-> X3 + X2 + X1,
  • BM3 G1 + X3-> X3 + X30,
  • BM4 G1 + X30 + M70-> X3 + X30 + M70.
  • the logic converter 7 calls a value stored in the memory, extracts a commonly used contact point, and sets it as a common condition.
  • X3 is a commonly used contact, which is a common condition.
  • the logic converter 7 enhances the common condition in the contents stored in each of the BM1 to BM4 of the memory and compares the contact sets according to the similarity. That is, BM1 and BM2 are compared, and BM3 and BM4 are compared, and X2 ⁇ X2 + X1 and X30 ⁇ X30 + M70. Based on this comparison, a large set is an optional condition. That is, in the above example, BM2 and BM4 are optional conditions.
  • the common condition and the option condition obtained in the logic converter 7 are transmitted to the diagram visualization unit 8. It should be noted that the common condition and option condition transmitted in this way are the values obtained by analyzing the whole PLC control program, and are not for a specific part of the PLC control program.
  • the diagram visualization unit 8 generates the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal state of the automated process, and the occurrence time information of the abnormal state identified from the log.
  • the contact of is outputted, and the common condition and the option condition, which are the preceding input condition of the output contact, are output as a diagram to be displayed as the subcondition of the outputted contact.
  • the output contact point, the common condition and the option condition as the preceding input condition of the contact point may be output in a diagram on one screen. Accordingly, it is not necessary to change the state of the screen, for example, by scrolling the initial output screen of the diagram in order to grasp the contact point that caused the abnormal state in the automation process and its prerequisites. Since the contact point of the generated equipment can be confirmed at a glance, the operation manager of the automated process does not have to identify the contact point that caused the abnormal state through complicated analysis.
  • the common condition and the option condition of the preceding input condition of the contact as the output include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and a contact time for the contact.
  • the contact time information, the on / off order, the contact state, and the contact type can be obtained from the log.
  • the contact type indicates the type of contact, and there are two types of contacts, A contact and B contact.
  • a contact is a contact that is conductive when the corresponding contact is ON in logic.
  • B contact is a contact that is shorted when the corresponding contact is ON in logic.
  • the contact status shows the contact logic information at the contact time shown in the diagram.
  • the contact time indicates the time when an abnormal state occurs in the automation process, and the on / off order indicates the operating sequence of the contacts, and the on / off order can be used to find the delay factor of the output contact.
  • FIG. 12 is a flowchart illustrating an automatic process abnormal state notification method according to an embodiment of the present invention.
  • the automated process abnormal state notification method according to an embodiment of the present invention may be performed by the system of FIG. 1.
  • a PLC (Programmable Logic Controller) control program programmed with a ladder diagram collects log data generated by controlling a facility for which an PLC performs an automation process from the PLC (S10). ).
  • the contact information of the equipment generating the abnormal state of the automation process is determined by comparing the master pattern generated using the log with the normal state reference information of the automation process (S20). That is, the process of extracting a sequence, which is an on / off flow according to time of the contacts, affecting the normal performance of the task during the cycle of the task for each task of the automation process is repeated from the log. Extraction to determine the sequence with the highest frequency of appearance as the master pattern. Check whether or not the master pattern and the sequence of the steady state reference information of the automated process is matched to determine the contact information of the equipment that caused the abnormal state of the automated process according to the check result.
  • Output That is, it is outputted from the PLC as IL (Instruction List) and extracts the position information of the ladder contact point using a PLC control program in a text format, and is a common input condition that must be turned on in order for the output to be turned on. Except for the condition and the common condition, an optional condition representing each of a plurality of parallel conditions for turning on the output is extracted.
  • IL Instruction List
  • a common condition and an option condition, which are preceding input conditions of the output contact point, are output as a diagram to be displayed as a lower condition of the output contact point.
  • the present invention can be used to determine the cause of the abnormal state of the automated process.

Landscapes

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

Abstract

Disclosed are a system and a method for notifying an abnormal state of an automated process. The system for notifying the abnormal state of an automated process according to an embodiment of the present invention comprises: a log data collection unit for collecting log data from a programmable logic controller (PLC), the log data being generated when the PLC controls equipment for performing an automated process with a PLC control program programed as a ladder diagram; an abnormal state identification unit for identifying contact information of the equipment having caused the abnormal state of the automated process from the comparison of a master pattern generated using the log data and the normal state reference information of the automated process; and a diagram display unit for visualizing in diagram format and outputting the contact information of the equipment having caused the abnormal state and the occurrence time information of the abnormal state identified from the log data.

Description

자동화 공정 이상상태 알림 시스템 및 방법Automated Process Abnormal Condition Notification System and Method
본 발명은 자동화 공정 이상상태 알림 시스템 및 방법에 관한 것으로, 더욱 자세하게는 자동화 공정의 이상과 관련된 LD(Ladder Diagram) 형식의 로직을 다이어그램(Diagram)으로 출력대비 입력조건의 관계 경로를 단순화해서 가시화하여 이상원인을 상세하게 추적 가능하게 하고 제어프로그램 파악과 운영 중 발생하는 문제를 신속하게 해결할 수 있도록 한 기술에 관한 것이다.The present invention relates to a system and method for notifying an abnormal state of an automated process, and more particularly, to simplify and visualize a relation path of an input condition versus an output in a diagram of a logic of a LD (Ladder Diagram) format related to an abnormality of an automated process. The present invention relates to a technology that enables detailed tracking of the cause of an error and quickly solves problems occurring during the control program identification and operation.
PLC(Programmable Logic Controller)는 자동화 산업의 공정제어를 위한 안정성이 보장된 제어장치로써 다품종 소량생산으로 인한 현장의 잦은 시스템 변경에 대응하기 위해 프로그램이 가능하며 소규모이고 시스템 변경에 비교적 자유로운 제어기의 필요성에서부터 개발되었다. Programmable Logic Controller (PLC) is a stable control device for process control in the automation industry.It is programmable to cope with frequent system changes in the field caused by small quantity production of various products, and from the need for a controller that is small and relatively free of system changes. Developed.
PLC를 동작하기 위한 프로그래밍 언어로는 LD(Ladder Diagram), FB(Fucntion Block Diagrma), STL(Structure Text Language)등이 있으나 언어의 직관성과 단순함으로 인해 산업 현장 대부분에서 LD를 이용한 프로그래밍이 이루어지고 있다. LD는 스텝(step) 별로 출력을 위한 접점(Contact)을 AND, OR구조로 배치하고 다양한 산술, 함수 등을 사용하여 공정제어를 위한 시퀀스(sequence)와 조건 등의 작성이 이루어지도록 한다. Programming languages for operating PLCs include LD (Ladder Diagram), Function Block Diagrma (FB), Structure Text Language (STL), etc., but programming with LD is used in most industrial sites due to the language's intuition and simplicity. . LD arranges the contact for output by AND and OR structure by step and makes sequence and condition for process control by using various arithmetic and function.
LD는 로직을 표현하는데 입출력 접점을 사용하여 스텝별로 마치 그림을 그리듯이 도식화하여 표현하기 때문에 프로그래밍을 위한 공간 활용도는 떨어지나 소규모의 스텝을 작성하기에 쉽고 간편하다. 작성된 프로그램의 해석 역시 스텝의 출력을 기준으로 순차적으로 읽어가면서 구조의 이해가 가능하기 때문에 텍스트(Text) 기반의 STL로 작성된 프로그램을 해석하는 것보다 훨씬 빠르고 쉽게 프로그램 파악이 가능하다. LD uses logic to express logic and expresses each step as if drawing each step like drawing, so space utilization for programming is low but it is easy and simple to write small step. The analysis of the written program is also possible to read the program sequentially, based on the output of the step, so that the structure can be understood much faster and easier than interpreting the program written in the text-based STL.
하지만 공정의 복잡도가 높고 제어대상이 많으며 복잡한 인터락(Interlock) 관계가 필요한 경우 스텝의 수 역시 늘어나게 되어 전체 프로그램을 하나의 시트(sheet)로 로직을 표현하지 못하게 된다. 또한 소규모 라인이라도 프로그램 스텝의 수가 수백 ~ 수천 스텝에 이르며 제어프로그램 특성상 하나의 시트에 공정에 존재하는 모든 설비에 대해 프로그램하는 것이 아니고 관련된 공정과 설비별로 프로그램을 위한 시트(sheet) 또는 기능(function)을 구별하여 로직을 작성하기 때문에 시트간 상호 참조하는 크로스 레퍼런스(Cross Reference) 영역이 매우 많아지게 된다. 이는 도식화된 구조로 표현된 LD를 이해하는데 표현 방법에 따른 공간적 한계를 가져오게 되고 그에 따라 프로그램의 해석이 쉽지 않게 된다.However, if the complexity of the process is high, the number of objects to be controlled, and complex interlock relationships are required, the number of steps is also increased, which prevents the entire program from representing logic in one sheet. In addition, even in small lines, the number of program steps is hundreds to thousands of steps. Due to the characteristics of the control program, a sheet or function for programming by the relevant process and equipment is not programmed for all the facilities in the process in one sheet. Since the logic is written separately, the cross-reference area cross-referenced between sheets becomes very large. This leads to spatial limitations in understanding the LD represented by the schematic structure, which makes the interpretation of the program difficult.
대부분의 자동화 산업은 LD를 통해 제어기 컨트롤을 위한 프로그래밍을 하고 공정 운영 중 문제가 발생하면 현장에 설치된 HMI(Human Machine Interface)를 통해 문제 발생 지점을 파악하며 기계적 결함이 아닌 경우 관련 제어프로그램을 열람하여 관련된 로직을 분석하게 된다. 하지만 문제가 되는 제어 로직의 입력 선행조건을 모두 일일이 트랙킹(Tracking) 하는데 있어서 트랙킹 스텝(Tracking Step)이 수 단계를 넘어가게 되면 관련 조건들의 수가 급격히 늘어나 트랙킹 경로(Tracking path) 역시 모두 기억하기 힘들 정도로 복잡해지는 원인이 되어 정확한 문제 해결이 어렵게 된다.Most automation industries program for control of controllers through LD, and when problems occur during process operation, identify the problem spots through the Human Machine Interface (HMI) installed in the field. We will analyze the logic involved. However, if the tracking step goes beyond several steps in tracking all the input prerequisites of the control logic in question, the number of related conditions will increase dramatically, so that the tracking path is also hard to remember. It becomes complicated and makes it difficult to solve the problem correctly.
자동화 공정의 이상과 관련된 LD(Ladder Diagram) 형식의 로직을 다이어그램(Diagram)으로 출력대비 입력조건의 관계 경로를 단순화해서 가시화하여 이상원인을 상세하게 추적 가능하게 하고 제어프로그램 파악과 운영 중 발생하는 문제를 신속하게 해결할 수 있도록 한 자동화 공정 이상상태 알림 시스템 및 방법이 제안된다.The logic of LD (Ladder Diagram) type related to the abnormality of the automation process is simplified by visualizing the relationship path of the input condition to the output with a diagram to make it possible to trace the cause of the error in detail and to identify and control the control program. An automated process fault notification system and method is proposed to solve the problem quickly.
본 발명의 해결하고자 하는 과제는 이상에서 언급한 과제로 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The problem to be solved of the present invention is not limited to the above-mentioned problem, and other problems not mentioned will be clearly understood by those skilled in the art from the following description.
본 발명의 일 양상에 따른 자동화 공정 이상상태 알림시스템은, 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC가 자동화 공정을 수행하는 설비들을 제어하여 발생하는 로그(Log data)를 상기 PLC로부터 수집하는 로그 수집부; 상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 이상상태 파악부; 및 상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력하는 다이어그램 표현부를 포함한다.Automated process abnormal state notification system according to an aspect of the present invention, the PLC (Programmable Logic Controller) control program programmed in a ladder diagram (Ladder Diagram) Log (Log data generated by controlling the equipment to perform the automated process PLC) Log collection unit for collecting the; An abnormal state determining unit which grasps contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated using the log with normal state reference information of the automated process; And a diagram representation unit for visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in a diagram format.
상기 이상상태 파악부는, 상기 자동화 공정의 작업별로 해당 작업의 시작과 끝을 구분하는 접점인 사이클과 해당 작업의 정상수행에 영향을 주는 접점들의 명칭을 포함한 그룹을 설정받고, 상기 로그로부터 상기 작업별로 해당 작업의 사이클 동안 해당 작업의 그룹에 포함된 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하고, 상기 추출된 시퀀스들 중 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정하는 마스터 패턴 생성부; 와 상기 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 이상상태 확인부를 포함한다.The abnormal state detecting unit is configured to receive a group including a cycle which is a contact point that distinguishes the start and the end of the work for each task of the automated process and the names of the contacts that affect the normal performance of the work, and for each job from the log. During the cycle of the task, the extraction process of the sequence, which is On / Off flow over time of the contacts included in the group of the task, is repeatedly extracted, and the frequency of appearance among the extracted sequences A master pattern generator which determines the most sequence as the master pattern; And an abnormal state checking unit for checking whether or not the master pattern matches the sequence of the normal state reference information of the automated process and identifying contact information of a facility that has generated an abnormal state of the automated process according to the checking result.
상기 다이어그램 표현부는, 상기 PLC로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출하는 로직 변환부; 와 상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하고, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력하는 다이어그램 가시화부를 포함한다.The diagram representation unit is output from the PLC as an instruction list (IL) to extract the position information of the ladder contact point using a PLC control program in a text format, and must be turned on before the output is turned on. A logic converter for extracting an optional condition representing each of a plurality of parallel conditions for outputting on except for the common condition, which is an input condition, and the common condition; And outputting the contact point of the facility which generated the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal condition of the automated process and the occurrence time information of the abnormal condition identified from the log. And a diagram visualization unit for outputting a common condition and an option condition, which are a preceding input condition of the output contact, as a diagram to be displayed as a subcondition of the output contact.
상기 다이어그램 가시화부는, 상기 출력인 접점 정보와, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건이 하나의 화면상에서 다이어그램으로 출력되도록 할 수 있다.The diagram visualization unit may output the contact information, which is the output, and the common condition and the option condition, which are the preceding input conditions of the output contact, as a diagram on one screen.
상기 공용조건 및 옵션조건은, 접점에 대한 접점명칭, 접점 어드레스, 온/오프 순서, 접점상태, 접점타입, 접점 시간정보 중 적어도 하나를 포함할 수 있다.The common condition and the option condition may include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and contact time information for a contact.
본 발명의 다른 양상에 따른 자동화 공정 이상상태 알림방법은, 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC가 자동화 공정을 수행하는 설비들을 제어하여 발생하는 로그(Log data)를 상기 PLC로부터 수집하는 단계; 상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계; 및 상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력하는 단계를 포함한다.The automatic process abnormal state notification method according to another aspect of the present invention, the PLC (Programmable Logic Controller) control program programmed in a ladder diagram (Ladder Diagram) Log generated by controlling the equipment to perform the automation process PLC (Log data) Collecting) from the PLC; Identifying contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated by using the log with normal state reference information of the automated process; And visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in a diagram form.
상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계는, 상기 로그로부터 상기 자동화 공정의 작업별로 해당 작업의 사이클 동안 해당 작업의 정상수행에 영향을 주는 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하여 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정하는 단계; 와 상기 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계를 포함한다.Identifying the contact information of the equipment that has caused the abnormal state of the automated process, On (on) according to the time of the contacts that affect the normal performance of the operation during the cycle of the operation for each task of the automation process from the log Repeatedly extracting a sequence of a) / off flow to determine a sequence having the most occurrence frequency as the master pattern; And checking whether or not the master pattern matches the sequence of the steady state reference information of the automation process, and determining contact information of a facility that has generated an abnormal state of the automation process according to the check result.
상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램 형식으로 가시화하여 출력하는 단계는, 상기 PLC로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출하는 단계; 와 상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하며 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력하는 단계를 포함한다.The step of visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state grasped from the log in a diagram form is outputted from the PLC as an IL (Instruction List) to be a text PLC control program. The position information of the ladder contact is extracted by using, and the common condition which is a pre-input condition that must be turned on for the output to be turned on, and a plurality of parallel conditions for the output to be turned on except for the shared condition. Extracting an optional condition indicating a value; Outputs the contact point of the facility which generated the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal state of the automated process, and the occurrence time information of the abnormal state identified from the log. And outputting a common condition and an option condition, which are preceding input conditions of the output contact, as a diagram to be displayed as a subcondition of the output contact.
본 발명의 실시예에 따른 자동화 공정 이상상태 알림 시스템 및 방법에 따르면, 자동화 공정의 이상과 관련된 LD(Ladder Diagram) 형식의 로직을 다이어그램(Diagram)으로 출력대비 입력조건의 관계 경로를 단순화해서 가시화하여 이상원인을 상세하게 추적 가능하게 하고 제어프로그램 파악과 운영 중 발생하는 문제를 신속하게 해결할 수 있도록 해준다.According to an automated process abnormal state notification system and method according to an embodiment of the present invention, the logic of LD (Ladder Diagram) format related to the abnormality of the automated process is simplified by visualizing the relationship path of the input condition to the output with a diagram. It enables to trace the cause of abnormalities in detail and to quickly identify the control program and solve problems during operation.
도 1은 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 시스템의 구성을 나타낸 도면이다.1 is a view showing the configuration of an automated process abnormal state notification system according to an embodiment of the present invention.
도 2는 자동화 공정의 각 작업별 그룹에 포함된 정보를 예시한 도면이다.2 is a diagram illustrating information included in each task group of an automation process.
도 3은 마스터 패턴 추출 흐름을 나타낸 도면이다.3 is a diagram illustrating a master pattern extraction flow.
도 4는 로직 변환 흐름을 나타낸 도면이다.4 is a diagram illustrating a logic conversion flow.
도 5는 PLC 제어프로그램의 구조정보가 네트워크(Network) 단위로 구분된 것을 예시한 도면이다.FIG. 5 is a diagram illustrating structure information of a PLC control program divided into network units.
도 6은 래더 형식의 PLC 제어프로그램이 PLC로부터 텍스트 형식의 IL 파일로 출력되는 것을 나타낸 도면이다.FIG. 6 is a diagram showing that a ladder control PLC control program is output from the PLC in an IL file in a text format.
도 7은 XML 형식의 조건리스트를 예시한 도면이다.7 is a diagram illustrating a condition list in XML format.
도 8은 조건리스트의 각 조건의 래더 위치(Ladder Position) 정보를 구하는 과정을 예시한 도면이다.8 is a diagram illustrating a process of obtaining ladder position information of each condition of the condition list.
도 9는 공용조건 및 옵션조건을 구하는 흐름을 예시한 도면이다.9 is a diagram illustrating a flow for obtaining common conditions and optional conditions.
도 10은 도 9에 도시된 흐름에 따라 구해진 공용조건 및 옵션조건을 나타낸 도면이다.FIG. 10 is a diagram illustrating common and optional conditions obtained according to the flow shown in FIG. 9.
도 11은 자동화 공정에 이상상태를 발생시킨 설비의 접점을 출력(코일)으로 하고 그 선행조건들을 공용조건 및 옵션조건의 관계를 갖도록 하여 다이어그램으로 나타낸 도면이다.FIG. 11 is a diagram showing a contact point of an equipment that has generated an abnormal state in an automated process as an output (coil) and prerequisites having a relationship between a common condition and an optional condition.
도 12는 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 방법에 대한 름도이다.12 is a flowchart of an automated process abnormal state notification method according to an embodiment of the present invention.
이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 상세히 설명하기로 한다.  Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
본 발명의 실시예들은 당해 기술 분야에서 통상의 지식을 가진 자에게 본 발명을 더욱 완전하게 설명하기 위하여 제공되는 것이며, 아래의 실시예들은 여러 가지 다른 형태로 변형될 수 있으며, 본 발명의 범위가 아래의 실시예들로 한정되는 것은 아니다. 오히려, 이들 실시예는 본 개시를 더욱 충실하고 완전하게 하며 당업자에게 본 발명의 사상을 완전하게 전달하기 위하여 제공되는 것이다.  Embodiments of the present invention are provided to more fully explain the present invention to those skilled in the art, and the following embodiments may be modified in many different forms, the scope of the present invention It is not limited to the following embodiments. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
본 명세서에서 사용된 용어는 특정 실시예를 설명하기 위하여 사용되며, 본 발명을 제한하기 위한 것이 아니다. 본 명세서에서 사용된 바와 같이 단수 형태는 문맥상 다른 경우를 분명히 지적하는 것이 아니라면, 복수의 형태를 포함할 수 있다. 또한, 본 명세서에서 사용되는 경우 "포함한다(comprise)" 및/또는"포함하는(comprising)"은 언급한 형상들, 숫자, 단계, 동작, 부재, 요소 및/또는 이들 그룹의 존재를 특정하는 것이며, 하나 이상의 다른 형상, 숫자, 동작, 부재, 요소 및/또는 그룹들의 존재 또는 부가를 배제하는 것이 아니다. 본 명세서에서 사용된 바와 같이, 용어 "및/또는"은 해당 열거된 항목 중 어느 하나 및 하나 이상의 모든 조합을 포함한다.  The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. Also, as used herein, "comprise" and / or "comprising" specifies the presence of the mentioned shapes, numbers, steps, actions, members, elements and / or groups of these. It is not intended to exclude the presence or the addition of one or more other shapes, numbers, acts, members, elements and / or groups. As used herein, the term "and / or" includes any and all combinations of one or more of the listed items.
본 명세서에서 제1, 제2 등의 용어가 다양한 부재, 영역 및/또는 부위들을 설명하기 위하여 사용되지만, 이들 부재, 부품, 영역, 층들 및/또는 부위들은 이들 용어에 의해 한정되어서는 안됨은 자명하다. 이들 용어는 특정 순서나 상하, 또는 우열을 의미하지 않으며, 하나의 부재, 영역 또는 부위를 다른 부재, 영역 또는 부위와 구별하기 위하여만 사용된다. 따라서, 이하 상술할 제1 부재, 영역 또는 부위는 본 발명의 가르침으로부터 벗어나지 않고서도 제2 부재, 영역 또는 부위를 지칭할 수 있다.Although the terms first, second, etc. are used herein to describe various members, regions, and / or portions, it is obvious that these members, components, regions, layers, and / or portions should not be limited by these terms. Do. These terms do not imply any particular order, up or down, or superiority, and are only used to distinguish one member, region or region from another member, region or region. Accordingly, the first member, region, or region described below may refer to the second member, region, or region without departing from the teachings of the present invention.
이하, 본 발명의 실시예들은 본 발명의 실시예들을 개략적으로 도시하는 도면들을 참조하여 설명한다. 도면들에 있어서, 예를 들면, 제조 기술 및/또는 공차에 따라, 도시된 형상의 변형들이 예상될 수 있다. 따라서, 본 발명의 실시예는 본 명세서에 도시된 영역의 특정 형상에 제한된 것으로 해석되어서는 아니 되며, 예를 들면 제조상 초래되는 형상의 변화를 포함하여야 한다.Hereinafter, embodiments of the present invention will be described with reference to the drawings schematically showing embodiments of the present invention. In the drawings, for example, variations in the shape shown may be expected, depending on manufacturing techniques and / or tolerances. Accordingly, embodiments of the present invention should not be construed as limited to the specific shapes of the regions shown herein, but should include, for example, changes in shape resulting from manufacturing.
도 1은 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 시스템의 구성을 나타낸 도면이다.1 is a view showing the configuration of an automated process abnormal state notification system according to an embodiment of the present invention.
도 1을 참조하면 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 시스템은 자동화 공정을 운영하는 도중에 자동화 공정에 이상을 발생시킨 설비의 접점 및 이상 발생시간을 파악해서, 자동화 공정에 이상을 발생시킨 설비의 접점을 코일(coil, 출력이라고도 하며 이하에서 동일한 의미로 사용됨)로 하고 상기 이상을 발생시킨 설비의 접점과 상기 이상을 발생시킨 설비의 동작을 위해서 필요한 설비들의 접점들을 다이어그램(Diagram)으로 출력대비 입력조건의 관계 경로를 갖는 구조로 단순화해서 가시화함으로써, 자동화 공정 관리자들이 이상원인을 상세하게 추적 가능하게 하고 제어프로그램 파악과 운영 중 발생하는 문제를 신속하게 해결할 수 있도록 한 것이다.Referring to Figure 1, the automated process abnormal state notification system according to an embodiment of the present invention by identifying the contact point and the occurrence time of the equipment that caused the abnormality in the automation process during the operation of the automation process, causing the abnormality in the automation process The contact point of the facility is a coil (also referred to as an output and is used in the same meaning below), and the contact point of the facility that generated the abnormality and the contact points of the facilities necessary for the operation of the facility that generated the abnormality are output in a diagram. By simplifying and visualizing the structure with the relationship path of contrast input condition, the automated process managers can trace the abnormal cause in detail and quickly identify the control program and solve the problems occurring during operation.
이러한 상기 자동화 공정 이상상태 알림 시스템은, 로그 수집부(2), 이상상태 파악부(3) 및 다이어그램 표현부(6)를 포함한다.The automated process abnormal state notification system includes a log collecting unit 2, an abnormal state detecting unit 3 and a diagram representation unit 6.
로그 수집부(2)는 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC(1)가 자동화 공정을 수행하는 설비들(도시하지 않음)을 제어하여 발생하는 로그(Log data)를 PLC(1)로부터 수집한다. Log collection unit 2 is a PLC (Programmable Logic Controller) control program programmed with a ladder diagram (Ladder Diagram) Log generated by controlling the equipment (not shown) that the PLC 1 performs an automated process (Log) data) is collected from the PLC (1).
이상상태 파악부(3)는 상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악한다. 이러한 이상상태 파악부(3)는 도 1에 도시된 바와 같이, 마스터 패턴 생성부(4)와 이상 상태 확인부(5)를 포함한다.The abnormal state detecting unit 3 grasps contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated using the log with the normal state reference information of the automated process. As shown in FIG. 1, the abnormal state checking unit 3 includes a master pattern generation unit 4 and an abnormal state checking unit 5.
마스터 패턴 생성부(4)는 자동화 공정의 작업별로 해당 작업의 시작과 끝을 구분하는 사이클의 명칭과 해당 작업의 정상수행에 영향을 주는 접점들의 명칭을 포함한 그룹을 설정받고, 상기 로그로부터 상기 작업별로 해당 작업의 사이클 동안 해당 작업의 그룹에 포함된 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하고, 상기 추출된 시퀀스들 중 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정한다.The master pattern generation unit 4 is set a group including the name of the cycle for distinguishing the start and end of the operation for each task of the automated process and the name of the contact point affecting the normal performance of the operation, and from the log During each cycle of the task, the extraction process of the sequence, which is On / Off flow over time of the contacts included in the group of the task, is repeatedly extracted, and the frequency of occurrence of the extracted sequences is repeated. The sequence with the highest number is determined as the master pattern.
마스터 패턴 생성부(4)의 동작에 대해서 도 2를 참조하여 설명하기로 한다. 도 2를 참조하면 A 자동화 공정이 A1작업, A2 작업, A3 작업,.....,An 작업으로 이루어진 경우, 각 작업별로 해당 작업의 시작과 끝을 구분하기 위한 접점인 사이클의 명칭과 해당 작업의 한 사이클 동안 해당 작업의 정상수행에 영향을 접점들의 명칭을 키(Key)로 하여 이를 그룹으로 설정받는다. 예를 A3 작업의 경우 사이클의 명칭은 Y0, 키(Key)는 Y1, Y2, Y3, Y4로 설정되어 있다. 이러한 그룹에는 사이클의 명칭, 키(Key) 뿐만 아니라 자동화공정의 작업 순서도를 추출하기 위해 필요한 접점들의 명칭인 제너럴(General)을 더 포함할 수 있다. 도 2의 A3 작업에서 제너럴은 Y10, X9, X8, X7, X6,...로 설정되어 있다.The operation of the master pattern generator 4 will be described with reference to FIG. 2. Referring to FIG. 2, when the A automation process is composed of A1 work, A2 work, A3 work, ....., An work, the name of the cycle and the corresponding contact point for distinguishing the start and end of the work for each job During a cycle of work, the contact names that affect the normal performance of the work are set as groups. For example, in the case of the A3 operation, the cycle name is set to Y0 and the key is set to Y1, Y2, Y3, and Y4. This group may further include General, which is the name of the cycle, the key, as well as the names of the contacts needed to extract the work flow of the automation process. In the work A3 of Fig. 2, the generals are set to Y10, X9, X8, X7, X6, ....
이렇게 작업별 그룹이 설정되고 나면, 마스터 패턴 생성부(4)는 상기 로그로부터 상기 작업별로 해당 작업의 사이클 동안 해당 작업의 그룹에 포함된 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출한다. 예를 들어 도 3을 참조하면, A3 작업에 대한 A3 작업의 사이클을 7번 반복하여서 로그로부터 7개의 시퀀스를 추출한다. 이때 시퀀스 추출과정의 반복횟수는 설정에 따라 달라질 수 있음에 유의하여야 한다.After the group for each task is set in this way, the master pattern generation unit 4 flows from the log on / off according to the time of the contacts included in the group of the task during the cycle of the task for each task. The extraction process of the in sequence is repeated. For example, referring to FIG. 3, seven sequences are extracted from a log by repeating the cycle of the A3 operation for the A3 operation seven times. In this case, it should be noted that the number of repetitions of the sequence extraction process may vary depending on the setting.
마스터 패턴 생성부(4)는 상기 시퀀스 추출과정이 완료된 후 추출된 시퀀스들 중 출현 빈도 수가 가장 많은 시퀀스를 마스터 패턴으로 결정한다. 실시예로 도 3을 참조하면 마스터 패턴 생성부(4)는 출현 빈도 수가 가장 많은 시퀀스인 "Y4->Y2->Y1->Y3"를 마스터 패턴으로 생성하는 것이다.The master pattern generator 4 determines a master pattern having the highest appearance frequency among the extracted sequences after the sequence extraction process is completed. Referring to FIG. 3 as an embodiment, the master pattern generation unit 4 generates "Y4-> Y2-> Y1-> Y3", the sequence having the highest frequency of appearance, as a master pattern.
이렇게 마스터 패턴이 설정되고 나면, 이상상태 확인부(5)는 상기 마스터 패턴과 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태 원인이 되는 설비의 접점정보를 파악한다. 이상상태 확인부(5)는 마스터 패턴과 자동화 공정의 정상상태 기준정보인 시퀀스가 일치하지 않은 경우 자동화 공정에 이상이 있는 판단하고, 시퀀스가 일치하지 않은 접점을 상기 자동화 공정에 이상상태를 발생시킨 설비의 접점정보로 파악한다. 실시예로, 마스터 패턴이 "Y4->Y2->Y3"이고 상기 자동화 공정의 정상상태 기준정보의 시퀀스가 "Y4->Y2->Y1->Y3"인 경우, 시퀀스가 정상일 경우에는 Y2 다음에 Y1이 실행되어야 하는데, 마스터 패턴의 경우 Y2 다음에 Y3가 실행되었으므로, Y1에 이상이 있는 것으로 판단하고, 이 Y1을 자동화 공정에 이상상태를 발생시킨 설비의 접점으로 파악할 수 있다.After the master pattern is set in this way, the abnormal state check unit 5 checks whether the sequence of the master pattern and the sequence of the normal state reference information of the automated process matches and causes the abnormal state of the automated process according to the check result. Find contact information of. The abnormal state checking unit 5 determines that there is an error in the automation process when the master pattern and the sequence, which is the normal state reference information of the automation process, do not match, and generates an abnormal state in the automation process by contact points that do not match. It is identified by the contact information of the facility. In an embodiment, when the master pattern is "Y4-> Y2-> Y3" and the sequence of the steady state reference information of the automation process is "Y4-> Y2-> Y1-> Y3", Y2 is next if the sequence is normal. Y1 should be executed, but in the case of the master pattern, Y3 is executed after Y2, so it is determined that there is an error in Y1, and this Y1 can be regarded as a contact point of the equipment that has caused an abnormal state in the automation process.
이와 같이 이상상태 확인부(5)가 자동화 공정에 이상상태를 발생시킨 설비의 접점정보를 파악한 후, 이를 다이어그램 표현부(6)로 전송한다.As described above, the abnormal state checking unit 5 grasps contact information of the equipment that generated the abnormal state in the automated process, and then transmits it to the diagram expression unit 6.
다시 도 1에서 다이어그램 표현부(5)는 상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력한다. In FIG. 1, the diagram representation unit 5 visualizes and outputs contact information of the equipment that generated the abnormal state and occurrence time information of the abnormal state identified from the log in a diagram form.
이러한 다이어그램 표현부(6)는 로직 변환부(7)와 다이어그램 가시화부(8)를 포함한다. This diagram representation section 6 includes a logic converter 7 and a diagram visualization section 8.
로직 변환부(7)는 PLC(1)로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출한다.The logic converter 7 is output from the PLC 1 as an IL (Instruction List) to extract the position information of the ladder contact point using a text-type PLC control program, so that the output is turned on. The common condition, which is a preceding input condition to be turned on, and an optional condition representing each of a plurality of parallel conditions for turning on the output except the common condition are extracted.
이러한 로직 변환부(7)의 동작에 대해서 도 4 내지 도 10을 참조하여 설명하기로 한다.The operation of the logic converter 7 will be described with reference to FIGS. 4 to 10.
도 4는 본 발명의 실시예에 따른 로직 변환 흐름을 나타낸 도면이다.4 is a diagram illustrating a logic conversion flow according to an embodiment of the present invention.
도 4를 참조하면, 로직 변환부(7)는 PLC(1)로부터 IL(Instruction List)로 출력된 텍스트 형식의 PLC 제어프로그램에서 커맨드(command) 분석을 통해서 래더(Ladder) 형식의 PLC 제어 프로그램의 구조정보를 추출하고, 상기 추출된 구조정보를 다이어그램으로 표현시 코일 기준으로 나누기 위해서 입력부터 출력까지 경로(path)가 이어져 있는 네트워크(Network) 단위로 구분한다. 상기 네트워크 단위로 구분된 예시가 도 5에 도시되어 있다. 도 5를 참조하면, 3개의 코일(coil)에 대해서 2개의 네트워크(network)로, 코일 중심으로 표현된 PLC 제어프로그램의 구조가 구분되어 있다.Referring to FIG. 4, the logic converter 7 performs a ladder analysis of a PLC control program in a ladder format through command analysis in a PLC control program in a text format output from the PLC 1 as an IL (Instruction List). The structural information is extracted, and the extracted structural information is divided into a network unit in which a path is connected from an input to an output in order to divide the extracted structural information by a coil reference. An example divided into the network units is illustrated in FIG. 5. Referring to FIG. 5, a structure of a PLC control program represented by a coil center is divided into two networks for three coils.
상기 추출된 래더 형식의 PLC 제어 프로그램의 구조정보는 래더 형식의 PLC 제어 프로그램상에 존재하는 접점들의 접점명칭, 접점어드레스, 접점에 내려진 커맨드(예를 들어, AND, OR 등)을 포함한다. The structure information of the extracted ladder type PLC control program includes contact names, contact addresses, and commands (eg, AND, OR, and the like) of the contacts existing on the ladder type PLC control program.
이렇게 네트워크 단위로 상기 추출된 PLC 제어 프로그램의 구조가 구분된 후, 로직 변환부(7)는 코일(출력)단위로 조건 리스트를 생성한다. 이는 PLC(1)로부터 IL로 출력된 텍스트 형식의 PLC 제어프로그램에서 커맨드(command) 분석을 통해서 코일 중심으로 PLC 제어프로그램의 구조정보를 추출하고 이 구조정보를 포함하는 조건 리스트를 XML 형식으로 출력한다. 이때 PLC(1)로부터 IL로 출력된 텍스트 형식의 PLC 제어프로그램은 도 6에 예시되어 있고, XML 형식의 조건리스트에 대한 예시가 도 7에 도시되어 있다. 도 7을 참조하면 XML 형식의 PLC 제어프로그램은, 래더(LD)로 표현된 PLC 제어프로그램과 동일한 구조를 가진다. 즉 표현 방식만 달라졌을 뿐, 본래의 기능은 동일함에 유의하여야 한다.After the structure of the extracted PLC control program is divided in units of networks, the logic converter 7 generates a condition list in units of coils (outputs). It extracts the structure information of PLC control program from the center of coil through command analysis in the text control PLC control program outputted from the PLC 1 to IL and outputs the condition list including the structure information in XML format. . At this time, the PLC control program in text format output from the PLC 1 to IL is illustrated in FIG. 6, and an example of a condition list in XML format is illustrated in FIG. 7. Referring to FIG. 7, the PLC control program in the XML format has the same structure as the PLC control program expressed by the ladder LD. In other words, only the expression method is different, and the original function should be noted that the same.
이렇게 PLC 제어프로그램의 구조정보를 담고 있는 조건리스트를 생성한 후, 로직 변환부(7)는 상기 조건리스트의 각 조건의 래더 위치(Ladder Position) 정보를 구한다. 이 각 조건의 래더 위치 정보를 구하는 이유는 래더 접점의 포인트 정보를 추출하여 공용조건(COM)과 옵션조건(OPT)을 발견하기 위해서이다. After generating the condition list containing the structure information of the PLC control program in this way, the logic converter 7 obtains ladder position information of each condition of the condition list. The reason for obtaining the ladder position information of each condition is to find the common condition (COM) and the option condition (OPT) by extracting the point information of the ladder contact point.
이에 대해서 도 8을 참조하여 설명하기로 한다. 도 8을 참조하면, 로직 변환부(7)는 초기 시작 지점(Initial)부터 경로(path)를 탐색하면서 X, Y축으로 접점의 위치(Postion)정보를 더해 나간다. 초기 위치에서 오른쪽으로 진행하다가 X1을 만나게 되면 (1, 0), X2를 만나면 (2, 0), Y1을 만나면 (3, 0)으로 각 어드레스(address) 마다 위치정보를 설정하여 메모리(미도시)에 저장한다. 그리고 초기위치에서 분기해서 아래 쪽(Y축방향)으로 진행하다가 M70을 만나면 (1, 1), X30을 만나면 (2, 1)으로 각 어드레스마다 위치정보를 설정하여 메모리에 저장한다. 1개의 네트워크의 코일 Y1에 대응되는 메모리는 X1(1, 0), X2(2, 0), M70(1, 1), X30(2, 1)의 위치정보를 저장하여, 해당 코일 Y1이 호출될 때 저장된 위치정보를 호출에 대한 응답으로 출력한다.This will be described with reference to FIG. 8. Referring to FIG. 8, the logic converter 7 adds position information of a contact point along the X and Y axes while searching for a path from an initial starting point. Proceed from the initial position to the right, when X1 is encountered (1, 0), when X2 is met (2, 0), when Y1 is met (3, 0), the location information is set for each address and memory (not shown) ). After branching from the initial position and proceeding downward (Y-axis direction), when M70 is encountered (1, 1), when X30 is encountered, (2, 1), location information is set for each address and stored in the memory. Memory corresponding to coil Y1 of one network stores position information of X1 (1, 0), X2 (2, 0), M70 (1, 1), X30 (2, 1), and the corresponding coil Y1 is called. When it is done, it outputs the saved location information in response to the call.
이렇게 각 조건의 래더 위치정보를 구한 후, 로직 변환부(7)는 코일(출력)이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 코일(출력)이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출한다.After obtaining the ladder position information of each condition as described above, the logic converter 7 excludes the common condition and the common condition which is a preceding input condition that must be turned on in order for the coil (output) to be turned on. Extract an optional condition representing each of the multiple parallel conditions to be turned on.
이에 대해서 도 9 및 도 10을 참조하여 설명하기 한다. 도 9 및 도 10을 참조하면, 로직 변환부(7)는 초기(Initial) Y1에서부터 경로(path) 탐색 프로세스를 시작한다. X3을 만나면 메모리에 X3를 저장하고 분기점을 만나면 X3를 G1으로 치환한다. 왼쪽으로 이동하여 X2를 만나면 G1 + X2를 메모리의 어드레스 BM 1에 저장한다. 왼쪽으로 이동하여 X1을 만나면 G1 + X2 + X1을 메모리의 어드레스 BM2에 저장한다. 분기점에서 아래로 이동하여 X30을 만나면 G1 + X30을 메모리의 어드레스 BM3에 저장한다. 왼쪽으로 이동하여 M70을 만나면 G1 + X30 + M70을 메모리의 어드레스 BM4에 저장한다. 더 이상 탐색할 경로(Path)가 없으면 탐색을 멈추고 프로세스를 종료한다.   This will be described with reference to FIGS. 9 and 10. 9 and 10, the logic converter 7 starts a path search process from the initial Y1. When X3 is encountered, X3 is stored in memory. When X3 is reached, X3 is replaced by G1. Move left to meet X2 and store G1 + X2 at address BM 1 in memory. Move left to meet X1 and store G1 + X2 + X1 at address BM2 in memory. Move down from the fork to meet X30 and store G1 + X30 at address BM3 in memory. Move left to meet M70 and store G1 + X30 + M70 at address BM4 in memory. If there are no more paths to search, stop the search and end the process.
이후 메모리에 저장된 값들의 비교를 통해서 공용조건 및 옵션조건을 구한다. After that, the common condition and the option condition are obtained by comparing the values stored in the memory.
이에 대한 설명을 도 10을 참조하여 설명하기로 한다. 도 10을 참조하면, 먼저 로직 변환부(7)는 메모리의 어드레스 BM1 내지 BM4에 저장된 값들을 호출한다. 이렇게 호출된 값들은 다음과 같다. BM1 = G1+X2->X3+X2, BM2 = G1+X2+X1->X3+X2+X1, BM3 = G1 + X3->X3+X30, BM4 = G1+X30+M70->X3+X30+M70이다. 이후, 로직 변환부(7)는 메모리에 저장된 값을 호출한 후, 공통적으로 사용되는 접점을 추출해서 이를 공용조건으로 한다. 위의 예의 경우 X3이 공통적으로 사용되는 접점으로서 공용조건이 되는 것이다. 이렇게 공용조건을 구한 후, 로직 변환부(7)는 메모리의 각 BM1 내지 BM4에 저장된 내용에서 공용조건을 제고하고 유사도에 따라 접점집합을 비교한다. 즉 BM1과 BM2를 비교하고 BM3와 BM4를 비교하는 것으로, X2 < X2 + X1, X30 < X30 + M70과 같이 비교하는 것이다. 이렇게 비교된 내용을 바탕으로 큰 집합을 옵션조건으로 한다. 즉 위의 예시에서 BM2와 BM4가 옵션조건이 되는 것이다.A description thereof will be described with reference to FIG. 10. Referring to FIG. 10, the logic converter 7 first calls values stored in addresses BM1 to BM4 of a memory. The values called are as follows. BM1 = G1 + X2-> X3 + X2, BM2 = G1 + X2 + X1-> X3 + X2 + X1, BM3 = G1 + X3-> X3 + X30, BM4 = G1 + X30 + M70-> X3 + X30 + M70. Thereafter, the logic converter 7 calls a value stored in the memory, extracts a commonly used contact point, and sets it as a common condition. In the example above, X3 is a commonly used contact, which is a common condition. After obtaining the common condition like this, the logic converter 7 enhances the common condition in the contents stored in each of the BM1 to BM4 of the memory and compares the contact sets according to the similarity. That is, BM1 and BM2 are compared, and BM3 and BM4 are compared, and X2 <X2 + X1 and X30 <X30 + M70. Based on this comparison, a large set is an optional condition. That is, in the above example, BM2 and BM4 are optional conditions.
이렇게 로직 변환부(7)에 구해진 공용조건 및 옵션조건은 다이어그램 가시화부(8)에 전송한다. 이렇게 전송되는 공용조건 및 옵션조건은 PLC 제어프로그램 전체를 분석하여 얻어지는 값임에 유의하여야 하며, PLC 제어프로그램의 특정부분에 대한 것이 아님에 유의하여야 한다.The common condition and the option condition obtained in the logic converter 7 are transmitted to the diagram visualization unit 8. It should be noted that the common condition and option condition transmitted in this way are the values obtained by analyzing the whole PLC control program, and are not for a specific part of the PLC control program.
다이어그램 가시화부(8)는 상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하고, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력한다. 이때, 상기 출력인 접점, 상기 접점의 선행 입력조건인 공용조건 및 옵션조건이 하나의 화면상에서 다이어그램으로 모두 출력되도록 할 수 있다. 이에 따라서, 자동화 공정에 이상상태를 발생시킨 접점과 그 선행조건을 파악하기 위해서 화면의 상태를 변경, 예를 들어 상기 다이어그램의 최초 출력화면을 스크롤을 통해서 변경하지 않아도 되어서, 자동화 공정에 이상상태를 발생시킨 설비의 접점을 한눈에 확인 가능하게 해주므로, 자동화 공정의 작업 관리자 등이 복잡한 분석을 통해서 이상상태를 발생시킨 접점을 파악하지 않아도 된다.The diagram visualization unit 8 generates the abnormal state by using the common condition and the option condition, the contact information of the facility which generated the abnormal state of the automated process, and the occurrence time information of the abnormal state identified from the log. The contact of is outputted, and the common condition and the option condition, which are the preceding input condition of the output contact, are output as a diagram to be displayed as the subcondition of the outputted contact. In this case, the output contact point, the common condition and the option condition as the preceding input condition of the contact point may be output in a diagram on one screen. Accordingly, it is not necessary to change the state of the screen, for example, by scrolling the initial output screen of the diagram in order to grasp the contact point that caused the abnormal state in the automation process and its prerequisites. Since the contact point of the generated equipment can be confirmed at a glance, the operation manager of the automated process does not have to identify the contact point that caused the abnormal state through complicated analysis.
다이어그램 가시화부(8)에 의해서 출력되는 다이어그램에 대한 예시가 도 11에 도시되어 있다. 이때, 상기 출력(코일)인 접점의 선행 입력조건의 공용조건 및 옵션조건은, 접점에 대한 접점명칭, 접점 어드레스, 온/오프 순서, 접점상태, 접점타입, 접점 시간 중 적어도 하나를 포함한다. 이때, 접점 시간정보, 온/오프 순서, 접점상태 및 접점타입은 로그로부터 파악될 수 있다.접점 타입은 접점의 종류를 나타내는 것으로, A 접점과 B 접점의 두 가지가 존재한다. A 접점은 논리상 해당 접점이 온(On) 되면 도통되는 접점이며, B 접점은 논리상 해당 접점이 온 되면 단락되는 접점이다. 그리고 접점상태는 다이어그램에 표시된 접점 시간에서의 접점 논리 정보를 나타낸다. 접점 시간은 자동화 공정에 이상상태가 발생한 시간을 나타내며, On/Off 순서는 접점들의 동작하는 시퀀스를 나타내며, 이 On/Off 순서는 출력 접점의 지연요소를 찾는데 이용될 수 있다.An example of a diagram output by the diagram visualization 8 is shown in FIG. 11. At this time, the common condition and the option condition of the preceding input condition of the contact as the output (coil) include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and a contact time for the contact. In this case, the contact time information, the on / off order, the contact state, and the contact type can be obtained from the log. The contact type indicates the type of contact, and there are two types of contacts, A contact and B contact. A contact is a contact that is conductive when the corresponding contact is ON in logic. B contact is a contact that is shorted when the corresponding contact is ON in logic. And the contact status shows the contact logic information at the contact time shown in the diagram. The contact time indicates the time when an abnormal state occurs in the automation process, and the on / off order indicates the operating sequence of the contacts, and the on / off order can be used to find the delay factor of the output contact.
도 12는 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 방법에 대한 흐름도이다. 본 발명의 실시예에 따른 자동화 공정 이상상태 알림 방법은 도 1의 시스템에 의해서 수행될 수 있다.12 is a flowchart illustrating an automatic process abnormal state notification method according to an embodiment of the present invention. The automated process abnormal state notification method according to an embodiment of the present invention may be performed by the system of FIG. 1.
도 12를 참조하면, 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC가 자동화 공정을 수행하는 설비들을 제어하여 발생하는 로그(Log data)를 상기 PLC로부터 수집한다(S10). Referring to FIG. 12, a PLC (Programmable Logic Controller) control program programmed with a ladder diagram (Ladder Diagram) collects log data generated by controlling a facility for which an PLC performs an automation process from the PLC (S10). ).
이후, 상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악한다(S20). 즉, 상기 로그로부터 상기 자동화 공정의 작업별로 해당 작업의 사이클 동안 해당 작업의 정상수행에 영향을 주는 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하여 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정한다. 상기 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악한다.Thereafter, the contact information of the equipment generating the abnormal state of the automation process is determined by comparing the master pattern generated using the log with the normal state reference information of the automation process (S20). That is, the process of extracting a sequence, which is an on / off flow according to time of the contacts, affecting the normal performance of the task during the cycle of the task for each task of the automation process is repeated from the log. Extraction to determine the sequence with the highest frequency of appearance as the master pattern. Check whether or not the master pattern and the sequence of the steady state reference information of the automated process is matched to determine the contact information of the equipment that caused the abnormal state of the automated process according to the check result.
이렇게 자동화 공정의 이상상태를 발생시킨 설비의 접점정보의 파악이 이루어진 후, 상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력한다(S30). 즉 상기 PLC로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출한다. 이후, 상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하며 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력한다. After the contact information of the equipment that generated the abnormal state of the automated process is identified, the contact information of the equipment which generated the abnormal state and the occurrence time information of the abnormal state identified from the log are visualized in a diagram form. Output (S30). That is, it is outputted from the PLC as IL (Instruction List) and extracts the position information of the ladder contact point using a PLC control program in a text format, and is a common input condition that must be turned on in order for the output to be turned on. Except for the condition and the common condition, an optional condition representing each of a plurality of parallel conditions for turning on the output is extracted. Then, using the common conditions and option conditions, the contact information of the equipment generating the abnormal state of the automated process and the occurrence time information of the abnormal state identified from the log, the contact point of the equipment generating the abnormal state as an output. A common condition and an option condition, which are preceding input conditions of the output contact point, are output as a diagram to be displayed as a lower condition of the output contact point.
이제까지 본 발명에 대하여 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 따라서 본 발명의 범위는 전술한 실시예에 한정되지 않고 특허청구범위에 기재된 내용 및 그와 동등한 범위 내에 있는 다양한 실시 형태가 포함되도록 해석되어야 할 것이다. So far, the present invention has been described with reference to the embodiments. Those skilled in the art will understand that the present invention may be implemented in a modified form without departing from the essential characteristics of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. Therefore, the scope of the present invention should not be construed as being limited to the above-described examples, but should be construed to include various embodiments within the scope of the claims and equivalents thereof.
본 발명은 자동화 공정의 이상상태의 원인 파악에 이용될 수 있다.The present invention can be used to determine the cause of the abnormal state of the automated process.

Claims (10)

  1. 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC가 자동화 공정을 수행하는 설비들을 제어하여 발생하는 로그(Log data)를 상기 PLC로부터 수집하는 로그 수집부;A log collector configured to collect, from the PLC, log data generated by controlling a facility in which a PLC performs an automated process by a PLC (Programmable Logic Controller) control program programmed with a ladder diagram;
    상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 이상상태 파악부; 및An abnormal state determining unit which grasps contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated using the log with normal state reference information of the automated process; And
    상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력하는 다이어그램 표현부를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 시스템.Automated process abnormal state notification system, characterized in that it comprises a diagram display unit for visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in the form of a diagram.
  2. 청구항 1에 있어서,The method according to claim 1,
    상기 이상상태 파악부는,The abnormal state determiner,
    상기 자동화 공정의 작업별로 해당 작업의 시작과 끝을 구분하는 접점인 사이클과 해당 작업의 정상수행에 영향을 주는 접점들의 명칭을 포함한 그룹을 설정받고, 상기 로그로부터 상기 작업별로 해당 작업의 사이클 동안 해당 작업의 그룹에 포함된 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하고, 상기 추출된 시퀀스들 중 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정하는 마스터 패턴 생성부; 와A group including a cycle, which is a contact point that distinguishes a start and an end of the work from each task of the automation process, and a group including the names of the contact points that affect the normal performance of the work is set, The process of extracting a sequence, which is an on / off flow over time, of contacts included in a group of jobs is repeatedly extracted, and the master having the highest occurrence frequency among the extracted sequences is mastered. A master pattern generation unit determining the pattern; Wow
    상기 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 이상상태 확인부를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 시스템.And an abnormal state checking unit for checking whether or not the master pattern and the sequence of the normal state reference information of the automated process match each other and determining contact information of a facility that has generated an abnormal state of the automated process according to the checking result. Automated process abnormal status notification system.
  3. 청구항 1에 있어서,The method according to claim 1,
    상기 다이어그램 표현부는,The diagram expression unit,
    상기 PLC로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출하는 로직 변환부; 와Common condition, which is a pre-input condition that must be turned on to output the position information of the ladder contact by outputting it from the PLC as an IL (Instruction List) and using a text-type PLC control program. And a logic converting unit extracting an option condition representing each of a plurality of parallel conditions for turning on an output except for the common condition. Wow
    상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하고, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력하는 다이어그램 가시화부를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 시스템.The contact point of the equipment which generated the abnormal state is outputted by using the common condition and the option condition, the contact information of the equipment which generated the abnormal state of the automated process and the occurrence time information of the abnormal state identified from the log. Automated process abnormal state notification system, characterized in that it comprises a diagram visualization unit for outputting a common condition and an option condition that is a preceding input condition of the output contact point as a diagram to be displayed as a sub-condition of the output contact point.
  4. 청구항 3에 있어서,The method according to claim 3,
    상기 다이어그램 가시화부는,The diagram visualization unit,
    상기 출력인 접점 정보와, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건이 하나의 화면상에서 다이어그램으로 출력되도록 하는 것을 특징으로 하는 자동화 공정 이상상태 알림 시스템.The automated process abnormal state notification system, characterized in that the output contact information, and the common condition and the option condition that is the preceding input condition of the output contact is output in a diagram on one screen.
  5. 청구항 3에 있어서,The method according to claim 3,
    상기 공용조건 및 옵션조건은, 접점에 대한 접점명칭, 접점 어드레스, 온/오프 순서, 접점상태, 접점타입, 접점 시간정보 중 적어도 하나를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 시스템.The common condition and the optional condition may include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and contact time information for a contact point.
  6. 래더 다이어그램(Ladder Diagram)으로 프로그래밍 된 PLC(Programmable Logic Controller) 제어 프로그램으로 PLC가 자동화 공정을 수행하는 설비들을 제어하여 발생하는 로그(Log data)를 상기 PLC로부터 수집하는 단계;Collecting, from the PLC, log data generated by controlling a facility in which a PLC performs an automated process by a PLC (Programmable Logic Controller) control program programmed with a ladder diagram;
    상기 로그를 이용하여 생성된 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보와의 비교를 통해 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계; 및Identifying contact information of a facility that has generated an abnormal state of the automated process by comparing the master pattern generated by using the log with normal state reference information of the automated process; And
    상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램(Diagram) 형식으로 가시화하여 출력하는 단계를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 방법.Automatic process abnormal state notification method comprising the step of visualizing and outputting the contact information of the equipment generating the abnormal state and the occurrence time information of the abnormal state identified from the log in the form of a diagram.
  7. 청구항 6에 있어서,The method according to claim 6,
    상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계는,Identifying the contact information of the equipment that caused the abnormal state of the automated process,
    상기 로그로부터 상기 자동화 공정의 작업별로 해당 작업의 사이클 동안 해당 작업의 정상수행에 영향을 주는 접점들의 시간에 따른 온(On)/오프(Off) 흐름인 시퀀스(sequence)의 추출과정을 반복해서 추출하여 출현 빈도 수가 가장 많은 시퀀스를 상기 마스터 패턴으로 결정하는 단계; 와From the log, the extraction process of the sequence, which is on / off flow over time, of contact points affecting the normal performance of the task during the cycle of the task is repeatedly extracted from the log. Determining the master pattern with the most occurrence frequency as the master pattern; Wow
    상기 마스터 패턴과 상기 자동화 공정의 정상상태 기준정보의 시퀀스의 일치 여부를 확인하여 그 확인결과에 따라 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보를 파악하는 단계를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 방법.Checking whether the master pattern matches the sequence of the normal state reference information of the automation process and determining contact information of a facility that has generated an abnormal state of the automation process according to the confirmation result How to notify process abnormalities.
  8. 청구항 6에 있어서,The method according to claim 6,
    상기 이상상태를 발생시킨 설비의 접점정보와 상기 로그로부터 파악된 이상상태의 발생 시간정보를 다이어그램 형식으로 가시화하여 출력하는 단계는,The step of visualizing and outputting the contact information of the equipment that generated the abnormal state and the occurrence time information of the abnormal state identified from the log in a diagram form,
    상기 PLC로부터 IL(Instruction List)로 출력되어 텍스트 형식의 PLC 제어 프로그램을 이용하여 래더 접점의 위치(Position) 정보를 추출해서, 출력이 온(On) 되기 위해서 반드시 온 되어야 하는 선행입력 조건인 공용조건 및 상기 공용조건을 제외하고 출력이 온 되기 위한 다수의 병렬조건 각각을 나타내는 옵션조건을 추출하는 단계; 와Common condition, which is a pre-input condition that must be turned on to output the position information of the ladder contact by outputting it from the PLC as an IL (Instruction List) and using a text-type PLC control program. And extracting an option condition representing each of a plurality of parallel conditions for the output to be turned on except for the common condition. Wow
    상기 공용조건 및 옵션조건, 상기 자동화 공정의 이상상태를 발생시킨 설비의 접점정보 및 상기 로그로부터 파악된 이상상태의 발생 시간정보를 이용하여, 상기 이상상태를 발생시킨 설비의 접점을 출력으로 하며 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건을 상기 출력된 접점의 하위조건으로 표시되도록 하는 다이어그램으로 출력하는 단계를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 방법.By using the common condition and the option condition, the contact information of the equipment generating the abnormal state of the automated process and the occurrence time information of the abnormal state identified from the log, the contact point of the equipment generating the abnormal state is outputted. Automated process abnormal state notification method comprising the step of outputting a common condition and an option condition that is a preceding input condition of the output contact point as a diagram to be displayed as a sub-condition of the output contact.
  9. 청구항 8에 있어서,The method according to claim 8,
    상기 출력인 접점 정보와, 상기 출력인 접점의 선행 입력조건인 공용조건 및 옵션조건이 하나의 화면상에서 다이어그램으로 출력되는 것을 특징으로 하는 자동화 공정 이상상태 알림 방법.The automated process abnormal state notification method, characterized in that the output contact information, the common condition and the option condition, which is a preceding input condition of the output contact is output on the diagram on a screen.
  10. 청구항 8에 있어서,The method according to claim 8,
    상기 공용조건 및 옵션조건은, 접점에 대한 접점명칭, 접점 어드레스, 온/오프 순서, 접점상태, 접점타입, 접점 시간정보 중 적어도 하나를 포함하는 것을 특징으로 하는 자동화 공정 이상상태 알림 방법.The common condition and the optional condition may include at least one of a contact name, a contact address, an on / off order, a contact state, a contact type, and contact time information of a contact point.
PCT/KR2015/006819 2014-07-28 2015-07-02 System and method for notifying abnormal state of automated process WO2016017944A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2014-0095760 2014-07-28
KR1020140095760A KR101566358B1 (en) 2014-07-28 2014-07-28 System and method of alarming uncommon state of automatic process

Publications (1)

Publication Number Publication Date
WO2016017944A1 true WO2016017944A1 (en) 2016-02-04

Family

ID=54601255

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2015/006819 WO2016017944A1 (en) 2014-07-28 2015-07-02 System and method for notifying abnormal state of automated process

Country Status (2)

Country Link
KR (1) KR101566358B1 (en)
WO (1) WO2016017944A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101909836B1 (en) * 2017-12-04 2018-10-18 김정석 HMI system for industrial process automation control, Process automation monitoring method based on the same
KR102116064B1 (en) * 2018-01-29 2020-05-27 (주)윈텍 Plant diagnosis method using the same system
KR102165207B1 (en) * 2019-12-17 2020-10-13 주식회사 뮤온시스템 Method, server, program and computer readable recording medium for performing ai-based smart automatic process malfunction diagnosis
KR102483811B1 (en) * 2021-03-11 2023-01-04 영풍산전(주) Abnormal status monitoring and controlling system for automated process

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0675244B2 (en) * 1987-06-15 1994-09-21 マツダ株式会社 Monitor device for sequence program control system
JPH1097318A (en) * 1996-09-20 1998-04-14 Matsushita Electric Works Ltd Preparation of abnormality diagnostic reference pattern for automation equipment system and automatic diagnostic device using the reference pattern
JP2009080844A (en) * 2005-10-21 2009-04-16 Omron Corp Data collection system, analyzer, analysis method, and program
JP2009251790A (en) * 2008-04-03 2009-10-29 Honda Motor Co Ltd Device for monitoring automatic machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0675244B2 (en) * 1987-06-15 1994-09-21 マツダ株式会社 Monitor device for sequence program control system
JPH1097318A (en) * 1996-09-20 1998-04-14 Matsushita Electric Works Ltd Preparation of abnormality diagnostic reference pattern for automation equipment system and automatic diagnostic device using the reference pattern
JP2009080844A (en) * 2005-10-21 2009-04-16 Omron Corp Data collection system, analyzer, analysis method, and program
JP2009251790A (en) * 2008-04-03 2009-10-29 Honda Motor Co Ltd Device for monitoring automatic machine

Also Published As

Publication number Publication date
KR101566358B1 (en) 2015-11-06

Similar Documents

Publication Publication Date Title
WO2016017944A1 (en) System and method for notifying abnormal state of automated process
CN102867010B (en) The system and method that taking-up, storage and supply arrangement define fileinfo
CN106844775B (en) Spacecraft fault rapid detection system
EP2680175B1 (en) Design assistance system
CN104778124B (en) A kind of software application automated testing method
US7734357B2 (en) System for operating an installation by editing graphic objects
CN103809499B (en) remote monitoring system and method
JP5030852B2 (en) Device management apparatus, device management method, and program
US9385924B2 (en) Assistance system
CN101821750A (en) Method of automatically generating an SSD file
US8381164B2 (en) Method and system of intelligent interactive graphics electrical plug map to analyze text and distances between electrical contacts and physical layout file builder
CN105074591A (en) Ladder program display program and ladder program display device
CN102521125B (en) Method for automatically detecting syntax error in control policy configuration
CN104991506B (en) Producing line initialization system and its establishing method based on PLC and touch-screen control
CN101876935B (en) Debugging program monitoring method and device
CN109146137A (en) Predict the method, apparatus and terminal device of operation state of generator variation tendency
CN103093028A (en) Modeling method and simulation method for monitoring signals in electric power dispatching simulation training system
WO2016017943A1 (en) Master pattern generation method and apparatus for determining normal operation of automated process
CN111108453A (en) Control system, control method, and control program
JPH1049206A (en) Sequence control generating device
EP3952223A1 (en) Network management device, management method, management program, and recording medium
WO2017047951A1 (en) Method and system for integrated monitoring of enterprise business service levels
Jung et al. An incremental objective achievement model in computerized procedure execution
Koehler et al. A Novel Block-Based Programming Framework for Non-programmers to Validate PLC Based Machine Tools for Automotive Manufacturing Facilities
US11803376B2 (en) Programming support apparatus for developing a user program to be executed by a programmable logic controller

Legal Events

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

Ref document number: 15826409

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15826409

Country of ref document: EP

Kind code of ref document: A1