WO2021182785A1 - Plc 프로그램 블록 간 디바이스 간섭 방지 방법 - Google Patents

Plc 프로그램 블록 간 디바이스 간섭 방지 방법 Download PDF

Info

Publication number
WO2021182785A1
WO2021182785A1 PCT/KR2021/002584 KR2021002584W WO2021182785A1 WO 2021182785 A1 WO2021182785 A1 WO 2021182785A1 KR 2021002584 W KR2021002584 W KR 2021002584W WO 2021182785 A1 WO2021182785 A1 WO 2021182785A1
Authority
WO
WIPO (PCT)
Prior art keywords
plc
dependency
program
program block
devices
Prior art date
Application number
PCT/KR2021/002584
Other languages
English (en)
French (fr)
Inventor
이승환
Original Assignee
엘에스일렉트릭 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘에스일렉트릭 주식회사 filed Critical 엘에스일렉트릭 주식회사
Publication of WO2021182785A1 publication Critical patent/WO2021182785A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC
    • 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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1208Communication, exchange of control, I-O data between different plc

Definitions

  • the present invention relates to a programmable logic controller (PLC), and more particularly to a program for controlling the PLC.
  • PLC programmable logic controller
  • PLC is a control device used for automatic control or monitoring of factories. It receives sensor values, performs logical operations according to a preset user program, and controls externally connected devices according to the results.
  • Programs for PLC operation are written using PADT (Program and Debugging Tool), a dedicated editing tool. Since the user divides the program into several blocks according to the object or purpose to be controlled, the number of blocks can range from tens to hundreds depending on the complexity of the program.
  • PADT Program and Debugging Tool
  • the program design method differs depending on the programming language used, the method of allocating devices such as contacts, coils, and commands provided by PLC to each program block is commonly permitted.
  • the possibility of unintended duplication or interference between devices increases. Even during actual PLC system operation, there is a problem that a fatal error may occur if interference occurs differently from the user's intention.
  • the inventors of the present invention have been researching and trying to solve the problem of interference between PLC devices of the prior art. After much effort, the present invention was completed after much effort to complete a method for preventing interference between PLC devices that can detect and prevent interference or collision different from the user's intention when creating a program block.
  • An object of the present invention is to provide a method for automatically preventing device interference between program blocks by parameterizing the properties of program blocks that can access PLC devices.
  • the method for preventing interference between PLC devices comprises the steps of (a) receiving a PLC control program block, (b) checking a PLC device controlled by the program block, (c) the PLC device having another program block and (d) generating a warning message if the PLC device is dependent on another program block.
  • step (c) it is preferable to check whether the PLC device is dependent on another program block by the dependency parameter.
  • dependency parameter may be set to include two or more dependent PLC devices in one program block.
  • the dependency parameter may be set so that one PLC device is dependent on two or more programs.
  • the dependency parameter is compressed in a binary file format and downloaded to the PLC device.
  • the present invention it is possible to prevent malfunction of PLC devices by preventing unintended interference between devices in a PLC control program in advance, and to reduce the time required to rewrite the program due to an error.
  • 1 and 2 are flowcharts of a method for determining interference between devices according to the prior art.
  • FIG. 3 is a flowchart of a method for preventing interference between PLC devices according to a preferred embodiment of the present invention.
  • FIG. 6 shows a process of downloading/uploading dependency parameters according to a preferred embodiment of the present invention.
  • 'first' and 'second' may be used to describe various elements, but the elements should not be limited by the above terms. The above term may be used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, a 'first component' may be referred to as a 'second component', and similarly, a 'second component' may also be referred to as a 'first component'. can Also, the singular expression includes the plural expression unless the context clearly dictates otherwise. Unless otherwise defined, terms used in the embodiments of the present invention may be interpreted as meanings commonly known to those of ordinary skill in the art.
  • 1 is a flowchart of a dependency checking method of the prior art.
  • the user edits the program for controlling the PLC device using the PADT (S110). Programs can be edited in units of program blocks.
  • the user inputs a PLC device to a contact, a coil, a command, etc. while editing a program (S210) (S220).
  • the user determines whether to rework by determining whether to change the device in the program block by checking the device duplicate list (S270).
  • FIG. 3 is a flowchart of a method for preventing interference between PLC devices of the present invention for solving the problems of the prior art.
  • the user Prior to program editing, the user first receives the input of setting the dependency parameter for each device (S310).
  • the dependency parameter is a parameter that is set to which program block the device is dependent on.
  • FIG. 4 shows an example of a screen for setting a dependency parameter.
  • the user can input into the dependency parameter by setting important devices that should not be referenced between program blocks among the devices to be used.
  • a device for which a dependency is to be set may be selected in the device column 410 and a description thereof may be described in the comment column 420 .
  • a program block to which each device depends may be input. For example, since device 0 (M0000) and device 3 (M0003) are both dependent on program block 1, dependency columns corresponding to device 0 and device 3 are set as program block 1. Since device 1 (M0001) and device 2 (M0002) have no dependencies, “None” can be selected for the dependency column.
  • One device may depend on more than one program block.
  • the additional dependency column 440 by selecting the additional dependency column 440 and selecting a pull-down menu, it is possible to select a dependent program block from among the additional program blocks (program block 2 to program block n).
  • the maximum dependent field that one device can have is the same as the maximum number of program blocks provided by PLC. For example, if the PLC allows 128 program blocks, you can also set up to 128 dependency fields.
  • the dependency parameter it is possible to set several devices to be dependent on one program block, and it is also possible to set one device to be dependent on several program blocks.
  • program editing is started to receive the user's program (S320).
  • a device For each next program block, a device is input to a contact, a coil, a command, etc. (S330).
  • FIG. 6 schematically shows a process of downloading/uploading a dependency parameter to a PLC device according to the present invention.
  • the dependency parameter 632 written by the user in the PADT 610 is encoded and downloaded to the PLC device 620 as a table 634 in the form of a compressed binary file. Since the capacity of the dependency parameter 632 may increase, the capacity is reduced by compressing it in a binary form.
  • the process of uploading the dependency parameter from the PLC device 620 to the PADT 610 is reversed to the downloading process.
  • the table 638 in the compressed binary form from the PLC device 620 is uploaded to the PDAT 610, it is made into a dependency parameter 636 through a decoding process and displayed on the dependency parameter input window.
  • the head 510 and the tail 550 are marks for indicating the start and end of the dependency parameter, and are composed of “HEAD” and “TAIL” as 4-byte ASCII codes, respectively.
  • the size 520 represents the total size of parameters except for the head 510 and the tail 550 . Used to check the size of the dependency parameter.
  • the island 540 contains checksum data from the head 510 to the data 530 . Data from validation to check if there are any errors in the frame.
  • the data 530 indicates dependency setting information for each device.
  • Each device consists of a 1-byte device code field 532, a 4-byte device index field 534, and an 8-byte info field 536.
  • the device code expresses the type of device provided by the PLC as a 1-byte ASCII code. Examples of codes may include P, M, K, L, and the like.
  • the device code is M, hexadecimal 0x4D, an ASCII code corresponding to M, is displayed in the device code field 532, and if D, hexadecimal 0x43, an ASCII code corresponding to D, is displayed in the device code field 532.
  • the device index represents a unique index of a device.
  • a 4-byte hexadecimal number 0x00000003 is displayed in the device index field 534
  • a 4-byte hexadecimal number 0x000004D2 is displayed in the device index field 534 .
  • info field 536 program dependency information of the corresponding device is bit-masked and displayed.

Landscapes

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

Abstract

본 발명은 PLC 디바이스간 종속성에 의한 충돌 및 간섭을 방지하는 방법에 관한 것으로, 디바이스와 프로그램 블록 사이의 종속성을 미리 설정해 놓은 종속성 파라미터에 의해 프로그램 블록 입력 과정에서 자동으로 종속성을 체크함으로써 PLC 시스템 운전 시 사용자가 의도하지 않은 디바이스간 간섭에 의해 PLC 시스템이 오동작하거나 파손되는 것을 막을 수 있는 효과가 있다.

Description

PLC 프로그램 블록 간 디바이스 간섭 방지 방법
본 발명은 PLC(Programmable Logic Controller)에 관한 것으로, 특히 PLC를 제어하는 프로그램에 관한 것이다.
PLC는 공장의 자동제어나 감시에 사용되는 제어장치로, 센서값을 입력 받아 미리 설정된 사용자의 프로그램에 따라 논리연산하고 그 결과에 따라 외부에 연결된 장치들을 제어하는 장치이다.
PLC의 동작을 위한 프로그램은 전용 편집 툴인 PADT(Program and Debugging Tool)을 사용하여 작성한다. 사용자는 제어할 대상 또는 용도에 따라 프로그램을 여러 개의 블록 단위로 나누어 작성하게 되므로 프로그램의 복잡도에 따라 블록의 개수는 수십에서 수백 개 까지도 존재할 수 있다.
프로그램 설계 방식은 사용되는 프로그램언어에 따라 차이가 있지만 각각의 프로그램 블록에 PLC에서 제공하는 접점, 코일, 명령어 등의 디바이스를 할당하는 방식은 공통적으로 허용된다. 이러한 방식은 사용하는 프로그램 블록의 개수와 디바이스의 개수가 늘어날수록 의도치 않은 디바이스간의 중복이나 간섭이 발생할 가능성이 높아진다. 실제 PLC 시스템 운전시에도 이와 같이 사용자의 의도와 다르게 간섭이 발생할 경우 치명적인 오류가 발생할 수 있는 문제가 있다.
본 발명의 발명자들은 이러한 종래 기술의 PLC 디바이스 간 간섭 문제의 해결을 위해 연구 노력해왔다. 프로그램 블록 작성 시 사용자의 의도와 다른 간섭이나 충돌을 미리 감지하여 예방할 수 있는 PLC 디바이스간 간섭 방지 방법을 완성하기 위해 많은 노력 끝에 본 발명을 완성하기에 이르렀다.
본 발명의 목적은 PLC 디바이스에 접근할 수 있는 프로그램 블록의 속성을 파라미터화 하여 자동으로 프로그램 블록 간 디바이스 간섭을 방지하는 방법을 제공하는 것이다.
한편, 본 발명의 명시되지 않은 또 다른 목적들은 하기의 상세한 설명 및 그 효과로부터 용이하게 추론할 수 있는 범위 내에서 추가적으로 고려될 것이다.
본 발명에 따른 PLC 디바이스간 간섭 방지 방법은, (a) PLC 제어 프로그램 블록을 입력받는 단계, (b) 상기 프로그램 블록에서 제어하는 PLC 디바이스를 확인하는 단계, (c) 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있는 지 확인하는 단계 및 (d) 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있으면 경고 메시지를 발생시키는 단계를 포함한다.
상기 (a) 단계 이전에 프로그램 블록과 PLC 디바이스들간의 종속성을 설정한 종속성 파라미터를 입력받는 단계를 더 포함하는 것이 좋다.
바람직하게는 상기 (c) 단계는 상기 종속성 파라미터에 의해 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있는지 확인하는 것이 좋다.
또한 상기 종속성 파라미터는 하나의 프로그램 블록에 둘 이상의 종속되는 PLC 디바이스가 포함되도록 설정할 수 있다.
상기 종속성 파라미터는 하나의 PLC 디바이스가 둘 이상의 프로그램에 종속되도록 설정할 수도 있다.
상기 종속성 파라미터는 바이너리 파일 포맷으로 압축되어 PLC 디바이스에 다운로드되는 것을 특징으로 한다.
본 발명에 따르면 PLC 제어 프로그램에서 디바이스간 의도치 않은 간섭을 사전에 예방함으로써 PLC 디바이스들의 오동작을 막을 수 있고, 오류로 인한 프로그램 재작성에 소요되는 시간을 줄일 수 있는 효과가 있다.
한편, 여기에서 명시적으로 언급되지 않은 효과라 하더라도, 본 발명의 기술적 특징에 의해 기대되는 이하의 명세서에서 기재된 효과 및 그 잠정적인 효과는 본 발명의 명세서에 기재된 것과 같이 취급됨을 첨언한다.
도 1 및 도 2는 종래기술에 따른 디바이스간 간섭 확인 방법의 흐름도이다.
도 3은 본 발명의 바람직한 어느 실시예에 따른 PLC 디바이스간 간섭 방지 방법의 흐름도이다.
도 4는 본 발명의 바람직한 어느 실시예에 따른 PLC 디바이스간 간섭 방지 방법에 사용되는 종속성 파라미터 작성의 예이다.
도 5는 본 발명의 바람직한 어느 실시예에 따른 종속성 파라미터의 구체적인 예이다.
도 6은 본 발명의 바람직한 어느 실시예에 따른 종속성 파라미터의 다운로드/업로드 과정을 나타낸다.
※ 첨부된 도면은 본 발명의 기술사상에 대한 이해를 위하여 참조로서 예시된 것임을 밝히며, 그것에 의해 본 발명의 권리범위가 제한되지는 아니한다.
이하, 도면을 참조하여 본 발명의 다양한 실시예가 안내하는 본 발명의 구성과 그 구성으로부터 비롯되는 효과에 대해 살펴본다. 본 발명을 설명함에 있어서 관련된 공지기능에 대하여 이 분야의 기술자에게 자명한 사항으로서 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략한다.
'제1', '제2' 등의 용어는 다양한 구성요소를 설명하는데 사용될 수 있지만, 상기 구성요소는 위 용어에 의해 한정되어서는 안 된다. 위 용어는 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용될 수 있다. 예를 들어, 본 발명의 권리범위를 벗어나지 않으면서 '제1구성요소'는 '제2구성요소'로 명명될 수 있고, 유사하게 '제2구성요소'도 '제1구성요소'로 명명될 수 있다. 또한, 단수의 표현은 문맥상 명백하게 다르게 표현하지 않는 한, 복수의 표현을 포함한다. 본 발명의 실시예에서 사용되는 용어는 다르게 정의되지 않는 한, 해당 기술분야에서 통상의 지식을 가진 자에게 통상적으로 알려진 의미로 해석될 수 있다.
이하, 도면을 참조하여 본 발명의 다양한 실시예가 안내하는 본 발명의 구성과 그 구성으로부터 비롯되는 효과에 대해 살펴본다.
도 1은 종래기술의 종속성 체크 방법의 흐름도이다.
사용자는 PADT를 사용하여 PLC 디바이스를 제어하기 위한 프로그램을 편집한다(S110). 프로그램은 프로그램 블록 단위로 편집할 수 있다.
프로그램 편집이 완료되면 전체 프로그램 검사를 수행한다(S120). PADT의 프로그램 검사 기능을 통해 이중코일 오류를 포함해서 프로그램에 발생한 모든 오류 및 경고를 찾아낼 수 있다.
프로그램 검사가 완료되면 오류 내용인 디바이스 중복 리스트를 출력할 수 있다(S130).
사용자는 이 리스트를 직접 일일이 확인하여 중복되는 디바이스를 제거해야 할 것이다. 이를 위해 재작업을 할 것인지 판단하고(S140), 재작업이 필요하면 프로그램 편집과 프로그램 검사를 다시 반복한다.
이러한 검사 방법은 프로그램의 편집이 모두 완료되어야 가능하므로 실시간성이 없고 프로그램이 많은 블록으로 이루어진 경우 재작업에 많은 시간이 소요되며 사용자가 종속성을 직접 체크해서 수정해야 하는 불편이 있다.
도 2는 이를 개선한 다른 종래기술에 따른 종속성 체크 방법의 흐름도이다.
사용자는 프로그램을 편집하면서(S210) 접점, 코일, 명령어 등에 PLC 디바이스를 입력한다(S220).
프로그램 편집이 끝나면 프로그램 전체에 사용된 디바이스 리스트를 생성하고(S230), 동일 디바이스를 추출한다(S240).
추출된 변수가 출력 속성을 가지고 있는지 확인한 다음(S250) 이중코일 등 디바이스 중복 리스트를 표시한다(S260).
사용자는 디바이스 중복 리스트를 확인하여 프로그램 블록에서 디바이스를 변경할 것인지를 판단하여 재작업 여부를 결정한다(S270).
이와 같은 방법은 도 1의 방법과 달리 프로그램 편집 과정에서 PLC 디바이스를 입력하여 실시간으로 프로그램 블록간 디바이스 간섭 내용을 확인할 수 있다. 하지만 디바이스를 입력할 때마다 간섭 여부를 확인하게 되므로 PADT에 많은 부하를 발생시켜 PADT의 버퍼링 형태로 나타나고, PADT 실행이 느려져서 사용자는 불편함을 느끼게 되는 문제가 있다.
도 3은 이러한 종래기술들의 문제를 해결하기 위한 본 발명의 PLC 디바이스간 간섭 방지 방법의 흐름도이다.
프로그램 편집 전에 우선 사용자가 디바이스 별로 종속성 파라미터를 설정한 것을 입력받는다(S310).
종속성 파라미터는 디바이스가 어떤 프로그램 블록에 종속되어 있는 지 설정되어 있는 파라미터이다.
도 4는 종속성 파라미터를 설정하는 화면의 한 예를 나타낸다.
사용자는 사용하고자 하는 디바이스 중에서 프로그램 블록간 참조가 발생되면 안 되는 중요 디바이스를 설정하여 종속성 파라미터에 입력할 수 있다.
디바이스 칼럼(410)에서 종속성을 설정할 디바이스를 선택하고 설명문 칼럼(420)에서 이에 대한 설명을 기재할 수 있다.
종속성 칼럼(430)에서는 각 디바이스가 종속되는 프로그램 블록을 입력할 수 있다. 예를 들어, 디바이스 0(M0000)과 디바이스 3(M0003)은 모두 프로그램 블록 1에 종속되어 있으므로 디바이스 0과 디바이스 3에 해당하는 종속성 칼럼을 프로그램 블록 1로 설정하는 것이다. 디바이스 1(M0001)과 디바이스 2(M0002)는 종속성이 없으므로 종속성 칼럼은 “None”으로 선택할 수 있다.
하나의 디바이스가 둘 이상의 프로그램 블록에 종속될 수 있다. 이런 경우 추가 종속성 칼럼(440)을 선택하고 풀다운 메뉴를 선택하여 추가 프로그램 블록들(프로그램 블록 2 ~ 프로그램 블록 n) 중에 종속되는 프로그램 블록을 선택할 수 있다. 하나의 디바이스가 가질 수 있는 최대 종속 필드는 PLC가 제공하는 프로그램 최대 블록 개수와 동일하다. 예를 들어 PLC에서 128개의 프로그램 블록을 허용한다면 종속성 필드 역시 128개까지 설정할 수 있다.
이렇게 종속성 파라미터에서 하나의 프로그램 블록에 여러 디바이스가 종속되도록 설정할 수 있고, 하나의 디바이스가 여러 프로그램 블록에 종속되도록 설정하는 것도 가능하다.
다시 도 3으로 돌아와서, 종속성 파라미터를 입력받은 후 프로그램 편집을 시작하여 사용자의 프로그램을 입력 받는다(S320).
다음 프로그램 블록 별로 접점, 코일, 명령어 등에 디바이스를 입력받게 된다(S330).
사용자가 입력한 디바이스가 프로그램 종속성을 가지고 있는 지 확인한다(S340). 종속성 확인은 도 2의 종속성 파라미터를 이용하면 어떤 디바이스가 어떤 프로그램 블록에 종속되어 있는 지 확인할 수 있으므로 종속성 파라미터를 이용하여 진행된다.
종속성이 없는, 즉, 종속성 필드가 None인 디바이스라면 프로그램의 편집이 완료되었는지 확인하고(S360), 종속성 확인을 마치게 된다.
종속성이 있는 경우에는 다른 프로그램 블록과 충돌 가능성이 있는지 확인하게 된다(S350). 디바이스에 종속성이 설정된 프로그램 블록이 현재 편집중인 프로그램 블록과 일치하는지 확인하는 것이다. 다른 프로그램 블록과 충돌 가능성이 없다면 프로그램 편집이 완료되었는지 확인하게 된다(S360). 하지만 충돌 가능성이 있어서 디바이스를 사용할 수 없다면 사용할 수 없다는 메시지를 출력하고(S355) 다른 디바이스를 입력하여(S330) 다시 종속성 파라미터를 확인하게 되는 것이다.
이러한 절차를 거치면 미리 설정된 종속성 파라미터에 의해 실시간으로 간편하게 디바이스간 충돌이나 간섭 여부를 확인할 수 있으므로 PADT의 부하를 줄이고 PLC 시스템의 오작동도 사전에 예방할 수 있다.
도 6은 본 발명에 따른 종속성 파라미터를 PLC 디바이스에 다운로드/업로드하는 과정을 개략적으로 나타낸다.
종속성 파라미터를 PLC 디바이스(620)로 다운로드 할 때는 사용자가 PADT(610)에서 작성한 종속성 파라미터(632)는 인코딩을 거쳐 압축된 바이너리 파일 형태의 테이블(634)로 PLC 디바이스(620)에 다운로드 된다. 종속성 파라미터(632)의 용량이 커질 수 있으므로 바이너리 형태로 압축하여 용량을 줄이는 것이다.
종속성 파라미터를 PLC 디바이스(620)에서 PADT(610)로 업로드하는 과정은 다운로드 과정과 반대로 이루어진다. PLC 디바이스(620)에서 압축된 바이너리 형태의 테이블(638)을 PDAT(610)에 업로드 하면 디코딩 과정을 거쳐 종속성 파라미터(636)로 만들어 종속성 파라미터 입력 창에 표시하게 된다.
도 5는 압축된 바이너리 형태의 종속성 파라미터의 구조를 나타낸다.
헤드(510)와 테일(550)은 종속성 파라미터의 시작과 끝을 나타내기 위한 표시이고 각각 4바이트의 아스키 코드로 “HEAD”와 “TAIL”로 구성된다.
사이즈(520)는 헤드(510)와 테일(550)을 제외한 파라미터의 전체 사이즈를 나타낸다. 종속성 파라미터의 크기를 확인하는 데 사용된다.
섬(540)은 헤드(510)부터 데이터(530)까지의 체크섬 데이터를 포함한다. 프레임에 오류가 있는지 확인하기 위한 유효성 확인의 데이터이다.
데이터(530)에는 디바이스 별 종속성 설정 정보를 나타낸다. 디바이스 마다 1바이트의 디바이스 코드 필드(532), 4바이트의 디바이스 인덱스 필드(534), 8바이트의 인포 필드(536)로 구성된다.
디바이스 코드는 PLC에서 제공되는 디바이스의 종류를 1바이트의 아스키 코드로 표현한다. 코드의 예로는 P, M, K, L 등이 있을 수 있다.
예를 들어, 디바이스 코드가 M이라면 M에 해당하는 아스키 코드인 16진수 0x4D가 디바이스 코드 필드(532)에 표시되고, D라면 D에 해당하는 아스키 코드인 16진수 0x43가 디바이스 코드 필드(532)에 표시되는 것이다.
디바이스 인덱스는 디바이스의 고유 인덱스를 표현한다.
디바이스 인덱스가 3이면 4바이트의 16진수 0x00000003이 디바이스 인덱스 필드(534)에 표시되고, 1234이면 4바이트의 16진수 0x000004D2가 디바이스 인덱스 필드(534)에 표시되는 것이다.
인포 필드(536)에는 해당 디바이스의 프로그램 종속성 정보가 비트 마스크 되어 표시된다.
예를 들어 프로그램 블록 1, 2, 4, 10에 종속성을 가지고 있으면 2진수 1, 2, 4, 10번째 비트만 1로 표시된 ……10 0000 1011…이 16진수로 변환된 0x0000 0000 0000 0206)이 인포 필드(536)에 표시된다. 프로그램 블록 31, 255에 종속성을 가진다면 이진수 31번째 비트와 255번째 비트가 1을 가지는 16진수인 0x8000 0000 8000 0000이 인포 필드(536)에 표시될 것이다.
본 발명의 보호범위가 이상에서 명시적으로 설명한 실시예의 기재와 표현에 제한되는 것은 아니다. 또한, 본 발명이 속하는 기술분야에서 자명한 변경이나 치환으로 말미암아 본 발명이 보호범위가 제한될 수도 없음을 다시 한 번 첨언한다.

Claims (6)

  1. 하나 이상의 프로세서를 포함하는 PLC 제어장치에 의해 수행되는 PLC 디바이스 간섭 방지 방법에 있어서:
    (a) PLC 제어 프로그램 블록을 입력받는 단계;
    (b) 상기 프로그램 블록에서 제어하는 PLC 디바이스를 확인하는 단계;
    (c) 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있는 지 확인하는 단계; 및
    (d) 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있으면 경고 메시지를 발생시키는 단계;
    를 포함하는, PLC 디바이스간 간섭 방지 방법.
  2. 제1항에 있어서,
    상기 (a) 단계 이전에 프로그램 블록과 PLC 디바이스들간의 종속성을 설정한 종속성 파라미터를 입력받는 단계;
    를 더 포함하는 것을 특징으로 하는, PLC 디바이스간 간섭 방지 방법.
  3. 제2항에 있어서,
    상기 (c) 단계는 상기 종속성 파라미터에 의해 상기 PLC 디바이스가 다른 프로그램 블록에 종속되어 있는 지 확인하는 것을 특징으로 하는, PLC 디바이스간 간섭 방지 방법.
  4. 제2항에 있어서,
    상기 종속성 파라미터는 하나의 프로그램 블록에 둘 이상의 종속되는 PLC 디바이스가 포함되도록 설정할 수 있는 것을 특징으로 하는, PLC 디바이스간 간섭 방지 방법.
  5. 제2항에 있어서,
    상기 종속성 파라미터는 하나의 PLC 디바이스가 둘 이상의 프로그램에 종속되도록 설정할 수 있는 것을 특징으로 하는, PLC 디바이스간 간섭 방지 방법.
  6. 제2항에 있어서,
    상기 종속성 파라미터는 바이너리 파일 포맷으로 압축되어 PLC 디바이스에 다운로드되는 것을 특징으로 하는, PLC 디바이스간 간섭 방지 방법.
PCT/KR2021/002584 2020-03-10 2021-03-03 Plc 프로그램 블록 간 디바이스 간섭 방지 방법 WO2021182785A1 (ko)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020200029364A KR102533869B1 (ko) 2020-03-10 2020-03-10 Plc 프로그램 블록 간 디바이스 간섭 방지 방법
KR10-2020-0029364 2020-03-10

Publications (1)

Publication Number Publication Date
WO2021182785A1 true WO2021182785A1 (ko) 2021-09-16

Family

ID=77671907

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/002584 WO2021182785A1 (ko) 2020-03-10 2021-03-03 Plc 프로그램 블록 간 디바이스 간섭 방지 방법

Country Status (2)

Country Link
KR (1) KR102533869B1 (ko)
WO (1) WO2021182785A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06318113A (ja) * 1993-05-07 1994-11-15 Omron Corp 故障診断のための診断対象のグループ化方法および装置
KR100235190B1 (ko) * 1992-05-30 2000-04-01 윤종용 로보트제어기의 감시프로그램과 plc간의 인터페이스방법
JP2007128378A (ja) * 2005-11-07 2007-05-24 Fuji Electric Fa Components & Systems Co Ltd プログラマブルコントローラのプログラミング装置
KR101429738B1 (ko) * 2014-06-09 2014-08-13 비콤시스템주식회사 환경기초시설 통합감시제어장치
KR20190107786A (ko) * 2018-03-13 2019-09-23 엘에스산전 주식회사 Plc시스템의 유닛 증설방법

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001175308A (ja) * 1999-12-15 2001-06-29 Matsushita Electric Works Ltd プログラマブルコントローラ用のプログラム作成装置及びその表示方法
KR101864565B1 (ko) * 2015-06-01 2018-06-04 미쓰비시덴키 가부시키가이샤 디버그 장치, 디버그 방법 및 디버그 프로그램
KR20190121011A (ko) * 2018-04-17 2019-10-25 엘에스산전 주식회사 Plc의 사용자 프로그램 파일 관리 장치 및 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100235190B1 (ko) * 1992-05-30 2000-04-01 윤종용 로보트제어기의 감시프로그램과 plc간의 인터페이스방법
JPH06318113A (ja) * 1993-05-07 1994-11-15 Omron Corp 故障診断のための診断対象のグループ化方法および装置
JP2007128378A (ja) * 2005-11-07 2007-05-24 Fuji Electric Fa Components & Systems Co Ltd プログラマブルコントローラのプログラミング装置
KR101429738B1 (ko) * 2014-06-09 2014-08-13 비콤시스템주식회사 환경기초시설 통합감시제어장치
KR20190107786A (ko) * 2018-03-13 2019-09-23 엘에스산전 주식회사 Plc시스템의 유닛 증설방법

Also Published As

Publication number Publication date
KR102533869B1 (ko) 2023-05-17
KR20210114125A (ko) 2021-09-23

Similar Documents

Publication Publication Date Title
US5377315A (en) Regeneration of process control flow diagrams for programmable logic controllers
CN1920714B (zh) 安全可编程逻辑控制器
US7110837B2 (en) Control system and method for on-line editing of user program
CN109117362B (zh) 一种基于中间语言的plc程序验证系统
US6826432B2 (en) Process for programming an automation application
CN106707848A (zh) 一种控制系统的控制程序组织结构和下载方法
DE102004055971A1 (de) Verfahren und Vorrichtung zur sicheren Parametierung gemäß IEC 61508 SIL 1 bis 3 oder EN 954-1 Kategorie 1 bis 4
US6883161B1 (en) Universal graph compilation tool
WO2021182785A1 (ko) Plc 프로그램 블록 간 디바이스 간섭 방지 방법
CN112558541B (zh) 一种plc编程扩展系统、方法及电子设备
US6725283B2 (en) Programmable controller
KR102004456B1 (ko) Plc 제어 프로그램을 구조체 데이터로 변환하는 장치 및 방법
CN110472411B (zh) 一种内存溢出处理方法、装置、设备及可读存储介质
US10776536B2 (en) Method for generating a Petri Net simulation model of an industrial control system
WO2022244425A1 (ja) 開発支援装置、開発支援装置の制御方法、情報処理プログラム、および記録媒体
DE10242916A1 (de) System zur Bereitstellung eines Standard-Frameworks für Automatisierungsgeräte
EP0444535B1 (en) Programmable controller having automatic control of interlock process
CN112714015A (zh) 通信数据故障注入方法及其系统、通信设备和存储介质
CN114138242A (zh) 基于rpa软件的无代码跨系统接口开发方法
CN113671924A (zh) Dcs实时值置值方法和系统、设备及存储介质
KR20200113405A (ko) 프로그램 언어와 제조사에서 정의한 언어의 혼용을 위한 메모리 매핑 방법
JPS619723A (ja) 印字出力エラ−回復方式
US11762364B2 (en) Automated programming of a programmable-logic controller (PLC) of a microcontroller using an expert system
CN109669721B (zh) 一种可二次开发软件的方法
KR100234982B1 (ko) 임의 작성된 기능 블록도의 실행 순서 결정방법

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: 21769031

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: 21769031

Country of ref document: EP

Kind code of ref document: A1