KR100976324B1 - Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool - Google Patents

Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool Download PDF

Info

Publication number
KR100976324B1
KR100976324B1 KR1020080047680A KR20080047680A KR100976324B1 KR 100976324 B1 KR100976324 B1 KR 100976324B1 KR 1020080047680 A KR1020080047680 A KR 1020080047680A KR 20080047680 A KR20080047680 A KR 20080047680A KR 100976324 B1 KR100976324 B1 KR 100976324B1
Authority
KR
South Korea
Prior art keywords
padt
plc
processing unit
central processing
write
Prior art date
Application number
KR1020080047680A
Other languages
Korean (ko)
Other versions
KR20090121666A (en
Inventor
박길환
Original Assignee
엘에스산전 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘에스산전 주식회사 filed Critical 엘에스산전 주식회사
Priority to KR1020080047680A priority Critical patent/KR100976324B1/en
Publication of KR20090121666A publication Critical patent/KR20090121666A/en
Application granted granted Critical
Publication of KR100976324B1 publication Critical patent/KR100976324B1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14122Prevent conflicting writing of data; use lock flags

Landscapes

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

Abstract

본 발명은 PLC(Programmable Logic Controller)에 소정 프로그램의 읽기 및 쓰기를 수행할 수 있는 복수의 PADT(Programmable And Debugging Tool)가 PLC의 중앙처리장치에 연결되어 있을 경우에 그 복수의 PADT가 모두 선택적으로 쓰기 권한을 획득하여 PLC에 소정 프로그램의 쓰기를 수행할 수 있도록 한다.According to the present invention, when a plurality of programmable and debugging tools (PADTs) capable of reading and writing a predetermined program to a programmable logic controller (PLC) are connected to a central processing unit of the PLC, all of the plurality of PADTs are selectively selected. Acquisition of write permission enables writing of a certain program to PLC.

본 발명에 따르면, PLC의 중앙처리장치에 연결된 복수의 PADT들 중에서 PLC에 소정의 프로그램을 저장하고자 하는 제 2 PADT가 쓰기 권한을 요청할 경우에 PLC의 중앙처리장치가 쓰기 권한을 보유하고 있는 제 1 PADT에 쓰기 권한을 요청하고, 쓰기 권한의 요청에 따라 제 1 PADT의 쓰기 권한을 상기 중앙처리장치가 제공받으며, 그 제공받은 쓰기 권한을 제 2 PADT에 제공하여 PLC에 소정의 프로그램을 저장할 수 있도록 한다.According to the present invention, when a second PADT which wants to store a predetermined program to the PLC among the plurality of PADTs connected to the central processing unit of the PLC requests write permission, the first centralized processor of the PLC holds the write right. The write request of the PADT is requested, the central processing unit receives the write permission of the first PADT according to the request of the write permission, and provides the provided write permission to the second PADT to store a predetermined program in the PLC. do.

PADT, PLC, 쓰기 권한, 프로그램, 중앙처리장치, PADT, PLC, write permission, program, central processing unit,

Description

PADT를 이용한 PLC의 프로그램 쓰기 방법{Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool}Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool}

본 발명은 PADT(Programmable And Debugging Tool)를 이용한 PLC(Programmable Logic Controller)의 프로그램 쓰기 방법에 관한 것이다.The present invention relates to a program writing method of a programmable logic controller (PLC) using a programmable and debugging tool (PADT).

보다 상세하게는 전동기 등을 비롯한 각종 부하의 구동을 제어하는 PLC에 소정의 프로그램의 읽기 및 쓰기를 수행할 수 있는 복수의 PADT를 PLC에 연결하고, 그 복수의 PADT가 선택적으로 쓰기 권한을 획득하여 상기 PLC에 소정 프로그램의 쓰기를 수행할 수 있도록 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법에 관한 것이다.More specifically, a plurality of PADTs capable of reading and writing a predetermined program may be connected to a PLC to a PLC that controls driving of various loads, including an electric motor, and the plurality of PADTs selectively acquire write permission. The present invention relates to a program writing method of a PLC using a PADT that enables writing of a predetermined program to the PLC.

일반적으로 PLC는 전동기를 비롯한 각종 부하의 동작을 제어하는데 많이 사용되고 있다.In general, PLC is widely used to control the operation of various loads, including electric motors.

이러한 PLC에 소정 동작 프로그램의 읽기 및 쓰기를 수행할 경우에 PADT를 사용하고 있다. 상기 PADT는 예를 들면, RS-232C 및 USB(Universal Serial Bus) 등과 같은 인터페이스 수단을 통해 PLC의 중앙처리장치와 접속하여 소정의 데이터를 상호간에 전송하고 있다.PADT is used to read and write a predetermined operation program to such a PLC. The PADT is connected to the central processing unit of the PLC through interface means such as, for example, RS-232C and Universal Serial Bus (USB), and transmits predetermined data to each other.

상기 PADT를 PLC의 중앙처리장치에 복수 개를 연결할 경우에 그 복수 개의 PADT들 중에서 최초로 PLC의 중앙처리장치에 연결한 하나의 PADT만 쓰기 권한이 부여된다.When a plurality of PADTs are connected to the central processing unit of the PLC, only one PADT that is connected to the central processing unit of the PLC for the first time among the plurality of PADTs is granted write permission.

상기 쓰기 권한이 부여된 PADT는 PLC의 중앙처리장치로 소정의 프로그램을 전송하여 저장할 수 있고, 나머지 PADT는 쓰기 권한이 부여되지 않아 PLC에 저장되어 있는 소정 프로그램의 읽기만을 수행하여 모니터링만 할 수 있을 뿐이고, PLC의 중앙처리장치로 소정의 프로그램을 전송하여 저장할 수는 없었다.The PADT granted the write right may transmit and store a predetermined program to the central processing unit of the PLC, and the remaining PADTs may be monitored only by performing a read of a predetermined program stored in the PLC because the write right is not granted. It was not possible to transmit and store a predetermined program to the central processing unit of the PLC.

상기 쓰기 권한이 부여되지 않은 하나의 PADT가 쓰기 권한을 획득하여 PLC에 소정의 프로그램을 전송하여 저장하도록 하기 위해서는 상기 하나의 PADT 자신을 제외한 모든 PADT들이 PLC와의 연결을 해제해야 되었다. 즉, 상기 쓰기 권한을 획득하고자 하는 하나의 PADT는 계속 PLC와의 연결상태를 유지하고, 상기 쓰기 권한이 부여되어 있는 PADT는 물론 상기 쓰기 권한이 없고, 또한 쓰기 권한을 획득하고자 하지 않는 모든 PADT가 PLC와의 연결을 해제해야 쓰기 권한을 획득하고자 하는 하나의 PADT가 쓰기 권한을 획득하여 PLC에 소정의 프로그램을 저장할 수 있었다.In order for one PADT to which write permission is not granted, to obtain write permission and transmit and store a predetermined program to the PLC, all PADTs except the one PADT itself need to disconnect from the PLC. That is, one PADT to obtain the write right continues to be connected to the PLC, and all PADTs that do not have the write right as well as the PADT to which the write right is granted are not the PLC. The PADT that wants to acquire the write permission only needs to be disconnected so that the program can be stored in the PLC.

그러므로 본 발명이 해결하고자 하는 과제는 쓰기 권한이 부여되어 있지 않은 복수의 제 2 PADT와 쓰기 권한이 부여된 하나의 제 1 PADT가 PLC에 연결되어 있는 상태에서 쓰기 권한이 부여되어 있지 않은 복수의 제 2 PADT들 중에서 하나의 제 2 PADT가 쓰기 권한을 획득하여 PLC에 소정의 프로그램을 저장할 수 있도록 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법을 제공한다.Therefore, an object of the present invention is to solve the problem of a plurality of second PADTs that are not given write permission and a plurality of second PADTs in which write permission is not granted in a state in which one write PADT that is granted write permission is connected to a PLC. Provided is a program writing method of a PLC using a PADT that allows a second PADT of two PADTs to obtain write permission to store a predetermined program in the PLC.

본 발명의 PADT를 이용한 PLC의 프로그램 쓰기 방법에 따르면, 쓰기 권한이 없는 제 2 PADT가 중앙처리장치에 쓰기 권한을 요청할 경우에 상기 중앙처리장치는 상기 쓰기 권한을 요청하는 제 2 PADT에 쓰기 권한을 부여하여 PLC에 소정의 프로그램을 저장할 수 있도록 한다.According to a method of writing a program of a PLC using a PADT of the present invention, when a second PADT having no write permission requests a write permission from a central processing unit, the central processing unit grants write permission to a second PADT requesting the write permission. To store a certain program in the PLC.

상기 쓰기 권한의 부여는 상기 중앙처리장치가 쓰기 권한을 보유하고 있을 경우에 그 쓰기 권한을 상기 PADT에 제공한다.The granting of the write right provides the write right to the PADT when the CPU has the write right.

그리고 상기 중앙처리장치가 쓰기 권한을 보유하고 있지 않을 경우에 중앙처리장치는 쓰기 권한을 보유하고 있는 제 1 PADT에 쓰기 권한을 요청하고, 그 요청에 따라 제 1 PADT가 제공하는 쓰기 권한을 상기 중앙처리장치가 상기 제 2 PADT에 제공하여 제 2 PADT가 PLC에 소정의 프로그램을 저장할 수 있도록 한다.If the CPU does not have write permission, the CPU requests a write permission from the first PADT having write permission, and according to the request, writes the write permission provided by the first PADT. The processing device provides the second PADT so that the second PADT can store a predetermined program in the PLC.

그러므로 본 발명의 PADT를 이용한 PLC의 프로그램 쓰기 방법은, PLC(Programmable Logic Controller)의 중앙처리장치에 소정의 프로그램을 저장하고자 하는 제 2 PADT(Programmable And Debugging Tool)가 쓰기 권한을 요청할 경우에 상기 중앙처리장치가 쓰기 권한을 보유하고 있는 제 1 PADT에 쓰기 권한을 요청하는 단계와, 상기 쓰기 권한의 요청에 따라 제 1 PADT의 쓰기 권한을 상기 중앙처리장치가 제공받는 단계와, 상기 중앙처리장치가 상기 쓰기 권한을 제 2 PADT에 제공하여 상기 PLC에 소정의 프로그램을 저장할 수 있도록 하는 단계를 포함하여 구성됨을 특징으로 한다.Therefore, in the program writing method of the PLC using the PADT of the present invention, when the second PADT (Programmable And Debugging Tool) that wants to store a predetermined program is requested to write to the central processing unit of the programmable logic controller (PLC), the central authority is requested. Requesting, by the processor, write permission from a first PADT having write permission; receiving, by the CPU, the write permission of the first PADT according to the request of the write permission; And providing the write right to the second PADT to store a predetermined program in the PLC.

상기 중앙처리장치가 쓰기 권한을 보유하고 있을 경우에 제 2 PADT가 쓰기 권한을 요청할 경우에 상기 중앙처리장치가 보유하고 있는 쓰기 권한을 상기 제 2 PADT에 제공하는 단계를 더 포함하는 것을 특징으로 한다.And providing the second PADT with the write right held by the CPU when the second PADT requests the write right when the CPU has the write right. .

그리고 본 발명은 상기 제 1 PADT 및 제 2 PADT가 상기 중앙처리장치에 접속을 요청하여 접속하는 단계를 더 포함하는 것을 특징으로 한다.The present invention further includes the step of connecting the first PADT and the second PADT to the CPU by requesting access to the CPU.

상기 제 1 PADT 및 제 2 PADT가 상기 중앙처리장치에 접속하는 단계는 상기 제 1 PADT 및 제 2 PADT가 접속을 요청할 경우에 상기 중앙처리장치에 접속 요청에 응답하는 단계와, 상기 접속 요청에 응답한 이후 상기 제 1 PADT 및 제 2 PADT가 상태를 요청할 경우에 상기 중앙처리장치가 상기 제 1 PADT 및 제 2 PADT의 읽기 권한 및 쓰기 권한에 대한 정보를 포함하는 상태 정보로 응답하는 단계를 포함하는 것을 특징으로 한다.The connecting of the first PADT and the second PADT to the CPU may include responding to the CPU when the first PADT and the second PADT request a connection, and responding to the connection request. And when the first PADT and the second PADT request a status, the CPU responding with status information including information on read and write permissions of the first PADT and the second PADT. It is characterized by.

상기 상태 정보로 응답한 이후에, 상기 제 1 PADT 및 제 2 PADT가 접속을 요청할 경우에 상기 중앙처리장치가 암호를 제공하고 상기 제 1 PADT 및 제 2 PADT가 사용자로부터 암호를 입력받는 단계와, 상기 중앙처리장치가 제공한 암호와 상기 사용자로부터 입력받는 암호가 일치할 경우에 접속을 완료하는 단계를 더 포함하는 것을 특징으로 한다.After responding with the status information, when the first PADT and the second PADT request a connection, the central processing unit provides a password and the first PADT and the second PADT receive a password from a user; And completing a connection when a password provided by the central processing unit and a password input from the user match.

본 발명의 PADT를 이용한 PLC의 프로그램 쓰기 방법에 따르면, PLC의 중앙처리장치에 복수의 PADT가 연결된 상태에서 하나의 PADT가 쓰기 권한을 요청할 경우에 PLC의 중앙처리장치가 그 하나의 PADT에 쓰기 권한을 부여함으로써 복수의 PADT가 간단히 쓰기 권한을 획득하여 PLC에 소정의 프로그램을 저장할 수 있다.According to the method of writing a program of a PLC using a PADT of the present invention, when a single PADT requests write permission while a plurality of PADTs are connected to a central processing unit of a PLC, the central processing unit of the PLC writes to the single PADT. By granting a plurality of PADTs can simply obtain write permission and store certain programs in the PLC.

이하의 상세한 설명은 예시에 지나지 않으며, 본 발명의 실시 예를 도시한 것에 불과하다. 또한 본 발명의 원리와 개념은 가장 유용하고, 쉽게 설명할 목적으로 제공된다.The following detailed description is only illustrative, and merely illustrates embodiments of the present invention. In addition, the principles and concepts of the present invention are provided for the purpose of explanation and most useful.

따라서, 본 발명의 기본 이해를 위한 필요 이상의 자세한 구조를 제공하고자 하지 않았음은 물론 통상의 지식을 가진 자가 본 발명의 실체에서 실시될 수 있는 여러 가지의 형태들을 도면을 통해 예시한다.Accordingly, various forms that can be implemented by those of ordinary skill in the art, as well as not intended to provide a detailed structure beyond the basic understanding of the present invention through the drawings.

도 1은 본 발명의 프로그램 쓰기 방법이 적용되는 시스템의 구성을 보인 블록도이다. 여기서, 부호 100은 소정의 부하를 구동시키는 PLC이다. 상기 PLC(100)에는 중앙처리장치(102)를 구비하고, 그 중앙처리장치(102)가 소정의 프로그램에 따라 동작하면서 상기 부하를 구동시킨다.1 is a block diagram showing the configuration of a system to which the program writing method of the present invention is applied. Here, reference numeral 100 denotes a PLC for driving a predetermined load. The PLC 100 includes a central processing unit 102, and the central processing unit 102 drives the load while operating according to a predetermined program.

부호 110은 복수의 PADT이다. 상기 복수의 PADT(110)들 중에서 쓰기 권한을 획득한 하나의 제 1 PADT(110a)는 상기 PLC(100)의 중앙처리장치(102)와 통신을 수행하여 상기 PLC(100)에 소정의 프로그램을 읽기 및 쓰기를 할 수 있다.Reference numeral 110 denotes a plurality of PADTs. One first PADT 110a having a write right among the plurality of PADTs 110 communicates with the central processing unit 102 of the PLC 100 to provide a predetermined program to the PLC 100. Can read and write.

그리고 상기 복수의 PADT(110)들 중에서 쓰기 권한을 획득하지 않은 복수의 제 2 PADT(110b)는 상기 PLC(100)의 중앙처리장치(102)와 통신을 수행하고, 상기 PLC(100)가 동작하는 소정 프로그램의 읽기를 수행하여 모니터링할 수 있다.In addition, the plurality of second PADTs 110b that do not acquire write permission among the plurality of PADTs 110 communicate with the central processing unit 102 of the PLC 100, and the PLC 100 operates. Can be monitored by performing a read of a predetermined program.

도 2는 본 발명의 프로그램 쓰기 방법에서 PADT가 PLC의 중앙처리장치에 접속하는 바람직한 실시 예의 동작을 보인 신호흐름도이다. PADT(110)가 PLC(100)에 접속할 경우에 먼저 PADT(110)가 PLC(100)의 중앙처리장치(102)에 접속을 요청하고(S200), 그 접속 요청에 상기 중앙처리장치(102)가 접속 요청에 대한 응답을 하는지의 여부를 판단한다(S202).Figure 2 is a signal flow diagram showing the operation of the preferred embodiment of the PADT connected to the central processing unit of the PLC in the program writing method of the present invention. When the PADT 110 connects to the PLC 100, the PADT 110 first requests a connection to the central processing unit 102 of the PLC 100 (S200), and the central processing unit 102 in response to the connection request. It is determined whether the response to the access request (S202).

상기 단계(S202)의 판단 결과 상기 중앙처리장치(102)가 응답하지 않을 경우에 상기 PADT(110)가 상기 PLC(100)의 중앙처리장치(102)와 연결되지 않았거나 또는 에러가 발생한 것으로서 상기 PADT(110)는 상기 PLC(100)의 중앙처리장치(102)와 연결하는 동작을 종료한다.If the CPU 102 does not respond as a result of the determination in step S202, the PADT 110 is not connected to the CPU 102 of the PLC 100 or an error occurs. The PADT 110 ends the operation of connecting with the central processing unit 102 of the PLC 100.

그리고 상기 판단 결과 상기 PLC(100)의 중앙처리장치(102)가 접속 요청에 대한 응답을 하였을 경우에 상기 PADT(110)는 상기 PLC(100)의 중앙처리장치(102) 에 상태를 요청하고(S204), 상기 PLC(100)의 중앙처리장치(102)가 상태 응답을 하는지의 여부를 판단한다(S206).When the CPU 102 of the PLC 100 responds to the connection request as a result of the determination, the PADT 110 requests a state from the CPU 102 of the PLC 100 ( In step S204, it is determined whether the central processing unit 102 of the PLC 100 makes a status response (S206).

상기 단계(S206)의 판단 결과 상기 중앙처리장치(102)가 상태 응답하지 않을 경우에 상기 PADT(110)가 상기 PLC(100)의 중앙처리장치(102)와 연결되지 않았거나 또는 에러가 발생한 것으로서 상기 PADT(110)는 상기 PLC(100)의 중앙처리장치(102)와 연결하는 동작을 종료한다.As a result of the determination in step S206, when the central processing unit 102 does not respond to the status, the PADT 110 is not connected to the central processing unit 102 of the PLC 100 or an error occurs. The PADT 110 terminates the operation of connecting to the central processing unit 102 of the PLC 100.

상기 단계(S206)의 판단 결과 상기 중앙처리장치(102)가 상태 응답을 하였을 경우에 상기 PADT(110)는 상기 상태 응답한 패킷을 분석하여 상태를 판단한다(S208). 즉, 상기 중앙처리장치(102)가 응답한 상태 응답 패킷에는 'cnf_info'가 포함되어 있고, 그 'cnf_info'는 상기 중앙처리장치(102)에 기 접속되어 있는 PADT(110)의 유무와 상기 접속한 PADT(110)에 프로그램의 읽기 및 쓰기 권한이 부여되어 있는지의 여부를 알리는 정보가 포함되어 있는 것으로서 상기 PADT(110)는 'cnf_info'를 이용하여 상기 중앙처리장치(102)에 기 접속되어 있는 PADT(110)의 유무와, 자신에게 읽기 권한 및 쓰기 권한이 부여되어 있는지의 여부를 확인한다.When the CPU 102 makes a status response as a result of the determination in step S206, the PADT 110 analyzes the packet in response to the status and determines the status (S208). That is, the status response packet responded by the central processing unit 102 includes 'cnf_info', and the 'cnf_info' indicates whether the PADT 110 is connected to the central processing unit 102 and the connection is present. The PADT 110 includes information indicating whether a read and write permission of a program is granted to the PADT 110, and the PADT 110 is connected to the CPU 102 using 'cnf_info'. It is checked whether the PADT 110 is present and whether it is granted read permission and write permission.

이와 같은 상태에서 상기 PADT(110)는 상기 중앙처리장치(102)에 암호를 요청하고(S210), 그 암호 요청에 따라 상기 중앙처리장치(102)로부터 암호가 응답되는지의 여부를 판단한다(S212).In this state, the PADT 110 requests a password from the central processing unit 102 (S210), and determines whether the password is answered from the central processing unit 102 according to the password request (S212). ).

상기 판단 결과 상기 중앙처리장치(102)로부터 암호가 응답되지 않았을 경우에 암호가 설정되어 있지 않은 것으로서 상기 PADT(110)는 상기 중앙처리장치(102)와의 접속을 완료하고(S218), 종료한다.If the password is not set from the CPU 102 as a result of the determination, the password is not set, and the PADT 110 completes the connection with the CPU 102 (S218) and terminates.

그리고 상기 판단 결과 상기 중앙처리장치(102)로부터 암호가 응답되었을 경우에 상기 PADT(110)는 사용자로부터 암호를 입력받고(S214), 그 입력받은 암호가 상기 중앙처리장치(102)가 응답한 암호와 동일한 지의 여부를 판단한다(S216).When the password is answered from the CPU 102 as a result of the determination, the PADT 110 receives a password from the user (S214), and the received password is a password that the CPU 102 responds to. It is determined whether or not equal to (S216).

상기 판단 결과 암호가 동일하지 않을 경우에 상기 PADT(110)는 상기 단계(S214)로 복귀하여 다시 암호를 입력받고, 그 입력받은 암호가 상기 중앙처리장치(102)가 응답한 암호와 동일한 지의 여부를 판단하는 동작을 반복 수행한다.If the password is not the same as the determination result, the PADT 110 returns to step S214 and receives the password again, and whether the received password is the same as the password that the central processing unit 102 responds to. Repeat the operation of determining.

그리고 상기 판단 결과 암호가 동일할 경우에 상기 PADT(110)는 상기 PADT(110)는 상기 중앙처리장치(102)와의 접속을 완료하고(S218), 종료한다.When the encryption result is the same, the PADT 110 completes the connection with the central processing unit 102 (S218) and terminates.

도 3은 본 발명의 프로그램 쓰기 방법에서 PADT가 권한을 획득하여 PLC에 소정 프로그램의 쓰기 동작을 수행하는 바람직한 실시 예의 동작을 보인 신호흐름도이다. 쓰기 권한을 가지지 못한 제 2 PADT(110b)가 PLC(100)에 소정의 프로그램을 저장할 경우에 제 2 PADT(110b)는 PLC(100)의 중앙처리장치(102)에 쓰기 권한을 요청한다(S300).FIG. 3 is a signal flow diagram illustrating an operation of a preferred embodiment in which a PADT acquires authority to perform a write operation of a predetermined program to a PLC in the program writing method of the present invention. When the second PADT 110b which does not have the write right stores the predetermined program in the PLC 100, the second PADT 110b requests the write right to the central processing unit 102 of the PLC 100 (S300). ).

그러면, 상기 중앙처리장치(102)는 자신이 쓰기 권한을 보유하고 있는지의 여부를 판단한다(S302).Then, the central processing unit 102 determines whether or not it has write permission (S302).

상기 판단 결과 중앙처리장치(102)가 쓰기 권한을 가지고 있지 않을 경우에 중앙처리장치(102)는 쓰기 권한을 가지고 있는 제 1 PADT(110a)에 쓰기 권한을 요청하고(S304), 제 1 PADT(110a)가 쓰기 권한을 제공하는지의 여부를 판단한다(S306).If the central processing unit 102 does not have the write right as a result of the determination, the central processing unit 102 requests the write right to the first PADT 110a having the write right (S304), and the first PADT ( It is determined whether 110a) provides write permission (S306).

상기 제 1 PADT(110a)가 쓰기 권한을 제공하지 않을 경우에 상기 중앙처리장치(102)는 상기 단계(S304)로 복귀하여 제 1 PADT(110a)에 쓰기 권한을 요청하고, 제 1 PADT(110a)가 쓰기 권한을 제공하는지의 여부를 판단하는 동작을 반복 수행한다.If the first PADT 110a does not provide write permission, the CPU 102 returns to step S304 to request the write permission from the first PADT 110a, and the first PADT 110a. ) Repeatedly determines whether or not to provide write permission.

그리고 상기 제 1 PADT(110a)가 쓰기 권한을 제공할 경우에 상기 중앙처리장치(102)는 쓰기 권한을 보유한다(S308).When the first PADT 110a provides the write right, the central processing unit 102 retains the write right (S308).

이와 같이 상기 중앙처리장치(102)가 쓰기 권한을 보유하게 되면, 중앙처리장치(102)는 그 보유한 쓰기 권한을 제 2 PADT(110b)에 제공한다(S310).When the central processing unit 102 retains the write right as described above, the central processing unit 102 provides the retained write right to the second PADT 110b (S310).

그러면, 상기 제 2 PADT(110b)는 쓰기 권한을 부여받고, 중앙처리장치(102)로 소정의 프로그램을 전송하여 저장한다.Then, the second PADT 110b is given write permission and transmits and stores a predetermined program to the central processing unit 102.

이상에서는 대표적인 실시 예를 통하여 본 발명에 대하여 상세하게 설명하였으나, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 상술한 실시 예에 대하여 본 발명의 범주에서 벗어나지 않는 한도 내에서 다양한 변형이 가능함을 이해할 것이다.The present invention has been described in detail with reference to exemplary embodiments, but those skilled in the art to which the present invention pertains can make various modifications without departing from the scope of the present invention. Will understand.

그러므로 본 발명의 권리범위는 설명된 실시 예에 국한되어 정해져서는 안 되며, 후술하는 특허청구범위뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims below and equivalents thereof.

본 발명은 PLC의 복수의 PADT를 접속한 상태에서 그 복수의 PADT가 선택적으로 PLC의 중앙처리장치에 쓰기 권한을 요청하여 획득하고, 그 쓰기 권한을 획득한 하나의 PADT는 PLC에 소정의 프로그램을 전송하여 저장할 수 있도록 한다.According to the present invention, when a plurality of PADTs of a PLC are connected, the plurality of PADTs selectively request write permission from the central processing unit of the PLC, and the acquired PADT obtains a predetermined program from the PLC. It can be transferred and stored.

도 1은 본 발명의 프로그램 쓰기 방법이 적용되는 시스템의 구성을 보인 블록도,1 is a block diagram showing the configuration of a system to which the program writing method of the present invention is applied;

도 2는 본 발명의 프로그램 쓰기 방법에서 PADT가 PLC의 중앙처리장치에 접속하는 바람직한 실시 예의 동작을 보인 신호흐름도, 및Figure 2 is a signal flow diagram showing the operation of the preferred embodiment of the PADT connected to the central processing unit of the PLC in the program writing method of the present invention, and

도 3은 본 발명의 프로그램 쓰기 방법에서 PADT가 쓰기 권한을 획득하여 PLC에 소정 프로그램의 쓰기 동작을 수행하는 바람직한 실시 예의 동작을 보인 신호흐름도이다.3 is a signal flow diagram illustrating an operation of a preferred embodiment in which a PADT acquires a write right and performs a write operation of a predetermined program in a PLC in the program writing method of the present invention.

Claims (5)

PLC(Programmable Logic Controller)의 중앙처리장치에 소정의 프로그램을 저장하고자 하는 제 2 PADT(Programmable And Debugging Tool)가 쓰기 권한을 요청할 경우에 상기 중앙처리장치가 쓰기 권한을 보유하고 있는 제 1 PADT에 쓰기 권한을 요청하는 단계;When the second PADT (Programmable And Debugging Tool) wishing to store a predetermined program in the CPU of the programmable logic controller (PLC) requests write permission, the CPU writes to the first PADT that the CPU has write permission. Requesting authority; 상기 쓰기 권한의 요청에 따라 상기 제 1 PADT가 제공하는 쓰기 권한을 상기 중앙처리장치가 획득하는 단계; 및Acquiring, by the CPU, the write right provided by the first PADT according to the request of the write right; And 상기 중앙처리장치가 상기 쓰기 권한을 상기 제 2 PADT에 제공하여 상기 제 2 PADT가 상기 PLC에 소정의 프로그램을 저장할 수 있도록 하는 단계를 포함하여 구성된 PADT를 이용한 PLC의 프로그램 쓰기 방법.And providing, by the central processing unit, the write right to the second PADT to allow the second PADT to store a predetermined program in the PLC. 제 1 항에 있어서, 상기 중앙처리장치가 쓰기 권한을 보유하고 있을 경우에;2. The system of claim 1, wherein the central processing unit has write permission; 제 2 PADT가 쓰기 권한의 요청에 따라, 상기 중앙처리장치가 보유하고 있는 쓰기 권한을 상기 제 2 PADT에 제공하는 단계를 더 포함하는 것을 특징으로 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법.And providing, by the second PADT, a write right held by the central processing unit to the second PADT according to a request for write permission. 제 1 항에 있어서,The method of claim 1, 상기 제 1 PADT 및 제 2 PADT가 상기 중앙처리장치에 접속을 요청하여 접속하는 단계를 더 포함하는 것을 특징으로 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법.And requesting, by the first PADT and the second PADT, to connect to the CPU. 제 3 항에 있어서, 상기 제 1 PADT 및 제 2 PADT가 상기 중앙처리장치에 접속하는 단계는;4. The method of claim 3, wherein connecting the first PADT and the second PADT to the central processing unit; 상기 제 1 PADT 및 제 2 PADT가 접속을 요청할 경우에 상기 중앙처리장치가 접속 요청에 응답하는 단계; 및Responding, by the central processing unit, to the connection request when the first PADT and the second PADT request a connection; And 상기 접속 요청에 응답한 이후 상기 제 1 PADT 및 제 2 PADT가 상태를 요청할 경우에 상기 중앙처리장치가 상기 제 1 PADT 및 제 2 PADT의 읽기 권한 및 쓰기 권한에 대한 정보를 포함하는 상태 정보로 응답하는 단계를 포함하는 것을 특징으로 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법.When the first PADT and the second PADT request a status after responding to the access request, the CPU responds with status information including information on read and write rights of the first PADT and the second PADT. Program writing method of a PLC using a PADT, characterized in that it comprises a step of. 제 4 항에 있어서, 상기 상태 정보로 응답한 이후에;5. The method of claim 4, further comprising: after responding with the status information; 상기 제 1 PADT 및 제 2 PADT가 접속을 요청할 경우에 상기 중앙처리장치가 암호를 제공하고 상기 제 1 PADT 및 제 2 PADT가 사용자로부터 암호를 입력받는 단계;When the first PADT and the second PADT request a connection, the CPU providing a password and the first PADT and the second PADT receiving a password from a user; 상기 중앙처리장치가 제공한 암호와 상기 사용자로부터 입력받는 암호가 일 치할 경우에 접속을 완료하는 단계를 더 포함하는 것을 특징으로 하는 PADT를 이용한 PLC의 프로그램 쓰기 방법.And completing a connection when a password provided by the central processing unit and a password input from the user match.
KR1020080047680A 2008-05-22 2008-05-22 Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool KR100976324B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080047680A KR100976324B1 (en) 2008-05-22 2008-05-22 Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080047680A KR100976324B1 (en) 2008-05-22 2008-05-22 Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool

Publications (2)

Publication Number Publication Date
KR20090121666A KR20090121666A (en) 2009-11-26
KR100976324B1 true KR100976324B1 (en) 2010-08-16

Family

ID=41604564

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080047680A KR100976324B1 (en) 2008-05-22 2008-05-22 Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool

Country Status (1)

Country Link
KR (1) KR100976324B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020197011A1 (en) * 2019-03-25 2020-10-01 엘에스일렉트릭(주) Memory mapping method for mixing programming language and language defined by manufacturer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0151180B1 (en) * 1993-10-13 1998-12-15 이희종 The high speed operating method of direct i/o command for plc
KR20040076382A (en) * 2003-02-25 2004-09-01 엘지산전 주식회사 Handy loader having function of protocol analyzer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0151180B1 (en) * 1993-10-13 1998-12-15 이희종 The high speed operating method of direct i/o command for plc
KR20040076382A (en) * 2003-02-25 2004-09-01 엘지산전 주식회사 Handy loader having function of protocol analyzer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020197011A1 (en) * 2019-03-25 2020-10-01 엘에스일렉트릭(주) Memory mapping method for mixing programming language and language defined by manufacturer

Also Published As

Publication number Publication date
KR20090121666A (en) 2009-11-26

Similar Documents

Publication Publication Date Title
US10623290B2 (en) Securing remote ethernet access to a processor and a register via an internal access port of a network device
AU2015274582B2 (en) Reversible connector for accessory devices
US8390150B2 (en) Field device interface with network protection mechanism
CN111813731B (en) Method, device, server and medium for reading memory information
US20070204334A1 (en) Information security protection method based on network software and the data security control system thereof
KR20040101281A (en) Data processing system with peripheral access protection and method therefor
CN107528829B (en) BMC chip, server side and remote monitoring management method thereof
US20100162223A1 (en) Control device, disk array device, and control method
CN114936373A (en) Trusted security chip, trusted data processing system and method
KR100638234B1 (en) Apparatus and method for drive control, and computer product
KR100976324B1 (en) Method for writing program of Programmable Logic Controller using Programmable And Debugging Tool
JP6241319B2 (en) Information processing apparatus, communication path determination program, and communication path determination method
JP4666589B2 (en) USB device, USB system and USB control program
KR101111466B1 (en) Communication steering for use in a multi-master shared resource system
JP2003521033A (en) Method of operating a microprocessor system and corresponding microprocessor system
JP4666258B2 (en) Data access system
JP5010471B2 (en) Data processing system
JP7325658B2 (en) Program execution device and communication method
CN103812893A (en) Virtual desktop external equipment transmission method and system
US10291582B2 (en) System and method of supporting more than 256 sensors by intelligent platform management interface (IPMI) based server management controller
JP6948186B2 (en) Equipment management equipment, equipment management system, and equipment management method
JP2001075765A (en) Electronic device, method for managing exchange information with other equipment and storage medium
CN113608914B (en) Chip, functional safety detection method of chip, medium and electronic equipment
JP2009169511A (en) Information processor
JP6482434B2 (en) Data processing system

Legal Events

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

Payment date: 20130515

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20140620

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20150702

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20160701

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20170703

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20180702

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20190701

Year of fee payment: 10