KR200341577Y1 - Education device for programmable logic controller through network - Google Patents
Education device for programmable logic controller through network Download PDFInfo
- Publication number
- KR200341577Y1 KR200341577Y1 KR20-2003-0028572U KR20030028572U KR200341577Y1 KR 200341577 Y1 KR200341577 Y1 KR 200341577Y1 KR 20030028572 U KR20030028572 U KR 20030028572U KR 200341577 Y1 KR200341577 Y1 KR 200341577Y1
- Authority
- KR
- South Korea
- Prior art keywords
- input
- plc
- program
- output
- memory
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
본 고안은 프로그래머블 로직 콘트롤러(이하 PLC라고 한다)의 교육장치에 관한 것으로, 보다 상세하게는 네트웍에 연결된 한 대의 PLC를 복수의 교육생이 동시에 PLC 프로그램을 작성하여 실습할 수 있는 교육장치에 관한 것이다.The present invention relates to an educational device of a programmable logic controller (hereinafter referred to as a PLC), and more particularly, to an educational device that allows a plurality of students to simultaneously create and practice a PLC program on a single PLC connected to a network.
본 고안의 PLC 교육장치는, PLC와 데이터통신을 하기 위한 네트웍인터페이스부와, 상기 PLC에서 수행하기 위한 프로그램을 작성하기 위한 프로그램입력부와, 상기 프로그램입력부에서 프로그램작성 시 사용할 상기 PLC의 데이터메모리에서 입력/출력 데이터메모리의 범위를 선택하고, 선택된 입력/출력 데이터메모리에 대응하는 입력/출력 내부메모리를 할당하는 메모리맵핑부와, 상기 PLC의 선택된 출력 데이터메모리의 값을 상기 네트웍인터페이스부를 통하여 전송받아 대응하는 내부메모리에 기록하고, 상기 입력 내부메모리에 값을 읽어서 상기 PLC의 선택된 출력 데이터메모리에 기록하도록 네트웍인터페이스부로 전송하는 신호처리부와, 상기 선택된 가상의 입력/출력 장치에 대응하는 내부메모리의 값을 읽어들여 상기 프로그램입력부에서 작성된 프로그램의 논리에 따라서 출력장치의 작동상태를 모니터에 출력하는 시뮬레이션부를 포함한다.The PLC teaching apparatus of the present invention includes a network interface unit for data communication with a PLC, a program input unit for creating a program to be executed in the PLC, and a data memory of the PLC to be used to create a program in the program input unit. A memory mapping unit for selecting a range of the output / output data memory and allocating an input / output internal memory corresponding to the selected input / output data memory, and receiving the value of the selected output data memory of the PLC through the network interface unit. And a signal processor for reading the value in the input internal memory and transmitting it to a network interface unit for writing to the selected output data memory of the PLC, and the value of the internal memory corresponding to the selected virtual input / output device. Read from the program input section Thus the logic of the programs include simulation unit for outputting the operating status of the output device to the monitor.
Description
본 고안은 프로그래머블 로직 콘트롤러(PROGRAMMABLE LOGIC CONTROLLER, 이하 PLC라고 한다)의 교육장치에 관한 것으로, 보다 상세하게는 네트웍에 연결된 한 대의 PLC를 복수의 교육생이 동시에 서로 다른 PLC 프로그램을 작성하여 실습할 수 있는 교육장치에 관한 것이다.The present invention relates to a training device of a programmable logic controller (PROGRAMMABLE LOGIC CONTROLLER, hereinafter referred to as PLC). It relates to the educational device.
PLC는 프로그램 가능한 논리 제어기로서 산업 및 프로세스 제어에 광범위하게 이용되고 있다. 도1에 도시된 것과 같이, 일반적으로 PLC(20)는 중앙처리 장치(21, 이하 'CPU'라고 한다)와, 프로그램 메모리(22) 및 데이터 메모리(23)와, 입력부(24) 및 출력부(25)와, 전원부(26)로 구성된다. PLC 프로그램 입력장치(10)는 레더 프로그램(ladder program)과 같은 PLC 고유의 프로그램 언어로 된 프로그램을 작성하여 프로그램메모리(22)에 입력하는 장치이나, 범용 사용자 컴퓨터에서 PLC 제어 프로그램을 작성하여 RS232C 통신포트를 이용하여 PLC에 다운로드 할 수도 있다. 입력장치(27)는 스위치나 각종의 센서와 같이 신호를 출력하는 장치로PLC의 입력부(24) 단자에 연결되고, 출력장치(28)는 램프나 솔레노이드 밸브와 같이 PLC의 출력을 받아 구동되는 장치로 PLC의 출력부(25) 단자에 연결된다.PLCs are widely used in industrial and process control as programmable logic controllers. As shown in Fig. 1, the PLC 20 generally includes a central processing unit 21 (hereinafter referred to as a 'CPU'), a program memory 22 and a data memory 23, an input unit 24 and an output unit. And a power supply unit 26. The PLC program input device 10 is a device for creating a program in a PLC-specific program language such as a ladder program and inputting it into the program memory 22, or by creating a PLC control program in a general-purpose user computer for RS232C communication. The port can also be downloaded to the PLC. The input device 27 is a device that outputs a signal such as a switch or various sensors, and is connected to the input terminal 24 of the PLC, and the output device 28 is driven by a PLC output such as a lamp or a solenoid valve. Is connected to the output 25 terminal of the PLC.
PLC의 CPU(21)는 프로그램메모리(22)에 저장된 프로그램을 순차로 실행하고, 주기적으로 입력부(24)를 통하여 입력장치(27) 각각의 입력값을 읽어서 대응하는 데이터메모리(23)에 기록하고, 출력장치(28)에 대응하는 데이터메모리(23)에 기록된 값을 읽어서 출력부(25)를 통하여 출력장치(28)로 출력한다. 즉, 프로그램의 실행과 입출력 스캔닝을 반복적으로 수행한다.The CPU 21 of the PLC sequentially executes the programs stored in the program memory 22, periodically reads input values of the input devices 27 through the input unit 24, and records them in the corresponding data memory 23. The value recorded in the data memory 23 corresponding to the output device 28 is read and output to the output device 28 through the output unit 25. In other words, program execution and I / O scanning is performed repeatedly.
상기와 같은 작동을 하는 PLC를 사용자가 프로그램 할 수 있도록 교육하기 위해서는 도 1에 도시된 것과 같이, 한 셋트의 교육장비(프로그램 입력장치, PLC 및 PLC에 연결된 입출력 장치)가 필요하다. 특히 교육생의 수가 많을 경우에는 교육생의 수많큼 교육장비를 구비하여야 하므로 장비구입에 비용이 많이 소요되고, 한대의 교육장비로 순차로 교육을 실시할 경우에는 교육자의 대기 시간이 길어지게 되어 교육의 효율이 저하된다는 문제가 있다.In order to educate a user to program a PLC that operates as described above, as illustrated in FIG. 1, a set of educational equipment (a program input device, a PLC, and an input / output device connected to the PLC) is required. In particular, if there are a large number of trainees, the number of trainees must be provided with a large number of trainees, so it is expensive to purchase the equipment. There is a problem that this is lowered.
또한, 프로그램 내용의 변경에 따라서 이에 연결된 입출력 장비를 교체하여야 할 경우에는 입력 및 출력부에 연결된 입출력 장치의 결선을 일일이 교체하여야 하는 번거로움이 있다.In addition, when it is necessary to replace the input and output equipment connected thereto according to the change of the program contents, there is a hassle of having to replace the wiring of the input and output devices connected to the input and output units one by one.
본 고안은 상기와 같은 문제점을 개선하기 위한 것으로서, 한대의 PLC를 가지고, 복수의 사용자가 동시에 프로그램을 작성하고, 실습할 수 있는 PLC 교육장치를 제공하는 것을 목적으로 한다.The present invention is to improve the above problems, and has an object to provide a PLC training apparatus that can have a single PLC, a plurality of users can create a program and practice at the same time.
또한, 본 고안은 교육하고자 하는 프로그램이 변경되어도 입출력 장비의 결선을 변경하지 않고 가상적으로 입출력 장치를 시뮬레이션 할 수 있는 PLC 교육장치를 제공하는 것을 목적으로 한다.In addition, an object of the present invention is to provide a PLC training apparatus that can simulate the input and output device virtually without changing the wiring of the input and output equipment even if the program to be changed.
도 1은 일반적인 PLC 의 개략적인 블럭 구성도1 is a schematic block diagram of a general PLC
도 2는 본 고안에 의한 PLC 교육장치의 시스템 구성도2 is a system configuration diagram of the PLC training apparatus according to the present invention
도 3은 본 고안에 의한 PLC 교육장치의 사용자 컴퓨터의 내부 구성도3 is an internal configuration diagram of a user computer of the PLC training apparatus according to the present invention
도 4는 본 고안의 PLC 교육장치의 개략적인 작동 순서도4 is a schematic operation flowchart of the PLC training apparatus of the present invention
도 5a는 PLC의 데이타메모리 개념도5A is a conceptual diagram of a data memory of a PLC
도 5b은 PLC의 테이타메모리를 사용자 컴퓨터의 내부메모리에 할당한 상태를 도시하는 개념도5B is a conceptual diagram showing a state in which the data memory of the PLC is allocated to the internal memory of the user computer;
도 6은 가상의 입력/출력 장치의 개략도6 is a schematic diagram of a virtual input / output device
도 7은 도 6에 도시된 가상의 입력/출력 장치를 제어하기 위한 PLC 프로그램의 예시도7 is an exemplary diagram of a PLC program for controlling the virtual input / output device shown in FIG.
<도면부호의 설명><Description of Drawing>
10 PLC 프로그램 입력장치 20 PLC10 PLC program input device 20 PLC
21 CPU 22 프로그램 메모리21 CPU 22 Program Memory
23 데이터 메모리 24 입력부23 Data Memory 24 Input Section
25 출력부 30 사용자 컴퓨터25 Outputs 30 User Computer
31 네트웍인터페이스부 32 신호처리부31 Network interface part 32 Signal processing part
33 PLC프로그램부 34 I/O 맵핑부33 PLC program section 34 I / O mapping section
35 시뮬레이션부 40 PLC 랙35 Simulation Unit 40 PLC Rack
50 CPU 모듈 60 네트웍인터페이스 모듈50 CPU Module 60 Network Interface Module
70 인풋모듈 80 아웃풋모듈70 Input Module 80 Output Module
상기의 목적을 달성하기 위한 본 고안의 PLC 교육장치는, 네트웍에 연결된 PLC와, 상기 네트웍에 연결되어 작성된 프로그램을 상기 PLC에 전송하기 위한 복수의 사용자 컴퓨터를 구비한 PLC 교육장치로서, 상기 사용자 컴퓨터는 상기 PLC와 데이터통신을 하기 위한 네트웍인터페이스부와, 상기 PLC에서 수행하기 위한 프로그램을 작성하여 상기 인터페이스부를 통하여 PLC에 전송하기 위한 프로그램입력부와, 상기 프로그램입력부에서 프로그램작성 시 사용할 상기 PLC의 데이터메모리에서 입력/출력 데이터메모리의 범위를 선택하고, 선택된 입력/출력 데이터메모리에 대응하는 입력/출력 내부메모리를 할당하고, 가상의 입력/출력 장치를 선택하고 선택된 입력/출력 장치에 대응하는 입력/출력 신호를 저장하기 위하여 상기 내부메모리를 할당하고, 상기 할당된 메모리에 입력/출력 장치의 초기값을 셋팅하는 메모리맵핑부와, 상기 PLC의 선택된 출력 데이터메모리의 값을 상기 네트웍인터페이스부를 통하여 전송받아 대응하는 내부메모리에 기록하고, 상기 입력 내부메모리에 값을 읽어서 상기 PLC의 선택된 출력 데이터메모리에 기록하도록 네트웍인터페이스부로 전송하는 신호처리부와, 상기 선택된 가상의 입력/출력 장치에 대응하는 내부메모리의 값을 읽어들여 상기 프로그램입력부에서 작성된 프로그램의 논리에 따라서 가상의 출력 장치의 작동시 발생하는 입력장치의 입력값을 상기 입력 내부메모리에 기록하고, 출력장치의 작동상태를 모니터에 출력하는 시뮬레이션부를 포함하는 것을 특징으로 한다.The PLC teaching apparatus of the present invention for achieving the above object is a PLC teaching apparatus having a PLC connected to a network and a plurality of user computers for transmitting a program created connected to the network to the PLC. A network interface unit for data communication with the PLC, a program input unit for creating a program to be executed in the PLC and transmitting the program to the PLC through the interface unit, and a data memory of the PLC to be used for program creation at the program input unit. Selects the range of input / output data memory, assigns the input / output internal memory corresponding to the selected input / output data memory, selects the virtual input / output device, and inputs / outputs corresponding to the selected input / output device. Allocate the internal memory to store a signal, and assign A memory mapping unit for setting an initial value of an input / output device in a predetermined memory, a value of a selected output data memory of the PLC is transmitted through the network interface unit, and recorded in a corresponding internal memory, and the value is written in the input internal memory. A signal processing unit which reads and transmits to a network interface unit to write to the selected output data memory of the PLC, and reads a value of an internal memory corresponding to the selected virtual input / output device, according to the logic of a program created in the program input unit. It characterized in that it comprises a simulation unit for recording the input value of the input device generated during the operation of the output device to the input internal memory, and outputs the operating state of the output device to the monitor.
본 고안의 PLC 교육장치는, 상기 네트웍은 이더넷(Ethernet) 통신 프로토콜을 사용하는 것이 바람직하며, 상기 교육하고자 하는 프로그램에서 사용하고자 하는 PLC의 데이터 메모리의 범위를 각각의 사용자 컴퓨터 별로 고정하여서 사용할 수도 있다.In the PLC teaching apparatus of the present invention, it is preferable that the network uses an Ethernet communication protocol, and the range of the data memory of the PLC to be used in the training program can be fixed for each user computer. .
이하에서는 첨부의 도면을 참조하여, 본 고안에 의한 PLC 교육장치의 바람직한 실시예에 대하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the PLC training apparatus according to the present invention.
도 2는 본 고안에 의한 PLC 교육장치의 시스템 구성도이고, 도 3은 본 고안에 의한 PLC 교육장치의 사용자 PC의 내부 구성도이다.2 is a system configuration diagram of the PLC teaching apparatus according to the present invention, Figure 3 is an internal configuration diagram of a user PC of the PLC teaching apparatus according to the present invention.
도 2에 도시된 것과 같이, 본 실시예의 PLC 교육장치는 네트웍(90)과, 상기 네트웍(90)에 연결된 복수의 사용자 컴퓨터(30)와, 상기 네트웍에 연결된 PLC로 구성된다. PLC는 랙타입으로 CPU모듈(50)과 상기 네트웍에 연결된 다른 기기와 데이타 통신을 하기 위한 네트웍인터페이스모듈(60)과, 각종의 입력모듈(70) 및 출력모듈(80)로 구성된다. 본 실시예에서 네트웍은 이더넷(Ethernet) 통신 프로토콜을 사용하는 것이 바람직하나, 이에 한정되는 것은 아니다.As shown in FIG. 2, the PLC teaching apparatus of this embodiment includes a network 90, a plurality of user computers 30 connected to the network 90, and a PLC connected to the network. The PLC is a rack type and is composed of a network interface module 60 for data communication with the CPU module 50 and other devices connected to the network, and various input modules 70 and output modules 80. In the present embodiment, the network preferably uses an Ethernet communication protocol, but is not limited thereto.
상기 PLC의 입력/출력 모듈에는 스위치나 센서와 같은 입력장치나 램프나 솔레노이드밸브와 같은 출력장치가 단자에 연결될 수도 있으나, 본 고안에 있어서는 일력 및 출력장치를 가상으로 선택하여 사용자 컴퓨터에서 그래픽으로 동작하는 것을 시뮬레이션 할 수 있기 때문에 입력 및 출력장치를 반드시 연결할 필요가 없다.The input / output module of the PLC may be connected to an input device such as a switch or a sensor, or an output device such as a lamp or a solenoid valve to a terminal. However, in the present invention, the power and the output device are virtually selected to operate graphically on a user computer. You don't have to connect the input and output devices because you can simulate doing so.
도 3에 도시된 것과 같이, 사용자 컴퓨터(30)는 네트웍인터페이스부(31)를 통하여 네트웍에 연결되어 있다. 네트웍인터페이스부(31)는 네트웍(90)을 통하여 PLC(40)와 데이터통신을 한다. 즉, 프로그램작성부(33)에서 사용자가 작성한 PLC프로그램을 입력받아 PLC에 전송하고 PLC의 프로그램메모리(22)에 저장된 프로그램을 전송받아 프로그램작성부(33)로 제공하거나, PLC의 데이터메모리(23)에 저장된 데이타를 PLC로부터 전송받거나, 사용자 컴퓨터의 내부메모리에 저장된 데이터 값을 PLC에 전송하여 데이타메모리에 저장하도록 한다.As shown in FIG. 3, the user computer 30 is connected to a network through a network interface unit 31. The network interface unit 31 communicates with the PLC 40 via the network 90. That is, the program creation unit 33 receives the PLC program created by the user and transmits the program to the PLC and receives the program stored in the program memory 22 of the PLC and provides the program to the program creation unit 33 or the data memory 23 of the PLC. Receive data saved in PLC) or transfer data value stored in internal memory of user computer to PLC and save it in data memory.
프로그램입력부(33)는 사용자가 PLC에서 수행하고자 하는 프로그램을 작성하여 네트웍인터페이스부(31)를 통하여 PLC로 전송한다. 또한, PLC의 프로그램메모리에 저장된 프로그램을 전송받아 수정하여 사용자 컴퓨터의 내부메모리에 저장하거나 네트웍인터페이스부를 통하여 PLC로 전송할 수도 있다. 프로그램입력부(33)는 통상 PLC의 프로그램의 언어인 레더프로그램(LADDER PROGRAM)을 지원하나 이에 한정되는 것은 아니다.The program input unit 33 creates a program that the user wants to perform in the PLC and transmits the program to the PLC through the network interface unit 31. In addition, the program stored in the program memory of the PLC can be received and modified to be stored in the internal memory of the user computer or transmitted to the PLC through the network interface unit. The program input unit 33 supports, but is not limited to, a ladder program (LADDER PROGRAM), which is a language of a PLC program.
메모리맵핑부(34)는 상기 프로그램입력부(33)에서 PLC 프로그램을 작성할 때 사용될 PLC의 데이터메모리(23)의 입력/출력 데이터메모리의 범위를 선택하고(도 5a 참조), 선택된 입력/출력 데이터메모리에 대응하는 입력/출력 내부메모리를 할당한다(도 5b 참조). 또한, 메모리맵핑부(34)는, 선택된 가상의 입력/출력 장치에 대응하는 입력/출력 신호를 저장하기 위한 상기 내부메모리를 할당하고, 상기 할당된 내부메모리에 입력/출력 장치의 초기값을 셋팅한다.The memory mapping unit 34 selects a range of the input / output data memory of the data memory 23 of the PLC to be used when creating the PLC program in the program input unit 33 (see FIG. 5A), and selects the selected input / output data memory. Allocate the input / output internal memory corresponding to (see Fig. 5b). In addition, the memory mapping unit 34 allocates the internal memory for storing an input / output signal corresponding to the selected virtual input / output device, and sets an initial value of the input / output device in the allocated internal memory. do.
신호처리부(32)는 일정한 시간 간격으로 상기 PLC의 출력 데이터메모리의 값을 상기 네트웍인터페이스부(31)를 통하여 전송받아 대응하는 내부메모리에 기록하고, 상기 입력 내부메모리에 값을 읽어서 상기 PLC의 입력 데이터메모리에 기록하도록 네트웍인터페이스부(31)를 통하여 PLC로 전송한다.The signal processing unit 32 receives the value of the output data memory of the PLC through the network interface unit 31 at regular time intervals, records it in the corresponding internal memory, reads the value in the input internal memory, and inputs the PLC. The data is transferred to the PLC through the network interface unit 31 so as to be recorded in the data memory.
시뮬레이션부(35)는 가상의 입력/출력 장치를 선택하고, 선택된 가상의 입력/출력 장치에 대응하는 내부메모리의 값을 읽어들여 상기 프로그램입력부(33)에서 작성된 프로그램의 논리에 따라서 가상의 출력 장치의 작동시 발생하는 입력장치의 입력값을 상기 입력 내부메모리에 기록하고, 출력장치의 작동상태를 모니터(미도시)와 같은 표시장치에 출력한다.The simulation unit 35 selects a virtual input / output device, reads a value of an internal memory corresponding to the selected virtual input / output device, and according to the logic of the program created by the program input unit 33, the virtual output device. The input value of the input device generated at the time of operation is recorded in the input internal memory, and the operation state of the output device is output to a display device such as a monitor (not shown).
상기 메모리맵핑부(34)와, 신호처리부(32)와, 시뮬레이션부(35)는 메모리맵핑부(34)에 의해서 할당된 미도시된 사용자컴퓨터 내부의 내부메모리를 매개로 서로 독립적으로 사용자 컴퓨터 내에서 수행된다.The memory mapping unit 34, the signal processing unit 32, and the simulation unit 35 independently of each other in the user computer through the internal memory inside the user computer, not shown, allocated by the memory mapping unit 34. Is performed in
이하에서는 도 4 내지 도 6의 도면을 참조하여 본 고안에 의한 PLC 교육장치의 작동관계에 대하여 설명한다.Hereinafter, the operation relationship of the PLC training apparatus according to the present invention will be described with reference to the drawings of FIGS. 4 to 6.
도 4를 참조하면, 먼저 가상 입력 및 출력 장치를 선택한다(S10). 본 실시예에서 가상의 입출력 장치로 도 6에 도시된 것과 같이, 하나의 복동 실린더(3)와 실린더의 전단에 설치된 후진 리드스위치(1)와 전진리드스위치(2)와 상기 실린더에 연결된 솔레노이드밸브(4)를 선택한다.Referring to FIG. 4, first, a virtual input and output device is selected (S10). As shown in FIG. 6 as a virtual input / output device in this embodiment, one double acting cylinder 3 and a reverse reed switch 1 and a forward lead switch 2 provided at the front end of the cylinder are connected to the cylinder and the solenoid valve connected to the cylinder. Select (4).
다음으로, PLC의 입력/출력 데이타메모리의 범위를 선택한다(S20). 본 실시예에서는 도 5a 에 도시된 것과 같이, 입력 테이타메모리는 M001 부터 M100 까지, 출력 데이타메모리는 M101 부터 M200 까지 선택한다.Next, the range of the input / output data memory of the PLC is selected (S20). In this embodiment, as shown in Fig. 5A, the input data memory is selected from M001 to M100, and the output data memory is selected from M101 to M200.
다음으로, 선택된 가상의 입력/출력 장치의 입출력 데이타 값을 저장하기 위한 내부메모리와 이에 대응하는 PLC의 데이타메모리를 할당하고, 초기 테이타를 세팅하는 메모리맵핑을 수행 한다(S30). 메모리 할당의 예는 도 5b에 도시된 것과 같이, 사용자 컴퓨터의 내부메모리 주소 0001 부터 0100 까지는 입력 데이타메모리 M001 부터 M100 까지에 대응하고, 내부메모리 주소 0101부터 0200 까지는 출력 데이타메모리 M101 부터 M200 까지에 대응한다. 또한, 초기 데이터 값은 도 6에 도시된 초기 상태, 즉 M001 = 1, M002 = 0, M101 = 0 로 셋팅한다.Next, an internal memory for storing the input / output data values of the selected virtual input / output device and a data memory of the corresponding PLC are allocated, and memory mapping for setting initial data is performed (S30). As an example of memory allocation, as shown in Fig. 5B, the internal memory addresses 0001 to 0100 of the user computer correspond to the input data memories M001 to M100, and the internal memory addresses 0101 to 0200 correspond to the output data memories M101 to M200. do. In addition, the initial data value is set to the initial state shown in Fig. 6, that is, M001 = 1, M002 = 0, M101 = 0.
다음으로, 가상의 선택된 입력/출력 장치에 대한 PLC 제어 프로그램을 작성하여, PLC의 프로그램메모리로 전송한다(S40). 본 실시예에서는 도 7에 도시된 것과 같은 레더 프로그램을 작성하여 PLC로 전송하고 수행시킨다. 도 7에 도시된 프로그램은 후진리드수위치(1)의 입력 M001 = 1 이고, 전진리드스위치(2) 입력 M002 = 0인 상태에서 솔레노이드(4)를 동작시키기 위한 출력을 유지하고(즉 M101에 의한 셀프홀딩), 실린더가 완전히 전진하여 전진리드스위치(2)에서 M002 = 1 신호가 입력되면, 솔레노이드 동작 출력을 중지하여 실린더가 후진하도록 된 것이다. 따라서 실린더는 전진과 후진을 반복한다.Next, a PLC control program for the virtual selected input / output device is created and transferred to the program memory of the PLC (S40). In this embodiment, a ladder program as shown in FIG. 7 is created, transmitted to the PLC, and executed. The program shown in FIG. 7 maintains the output for operating the solenoid 4 in the state where the input M001 = 1 of the reverse lead number position 1 and the forward lead switch 2 input M002 = 0 (i.e., at M101). Self-holding), when the cylinder is fully advanced and the M002 = 1 signal is input from the forward lead switch 2, the solenoid operation output is stopped to allow the cylinder to reverse. The cylinder therefore repeats forward and backward.
다음으로, 입력/출력 메모리를 업데이트한다(S50). 즉, 주기적으로 PLC의 출력 데이타메모리(출력 데이타메모리 M101 부터 M200 까지)의 값을 읽어서 내부메모리(내부메모리 주소 0101 부터 0201 까지)에 기록하고, 입력 내부메모리(내부메모리 주소 0001 부터 0100 까지)의 값을 읽어서 PLC의 입력 데이터메모리(입력 데이타메모리 M001 부터 M100 까지)에 기록한다.Next, the input / output memory is updated (S50). That is, periodically reading the value of PLC output data memory (output data memory M101 to M200) and writing it to internal memory (internal memory addresses 0101 to 0201), and writing the value of input internal memory (internal memory addresses 0001 to 0100). Read the value and write it to the PLC's input data memory (input data memory M001 to M100).
다음으로, 시뮬레이션을 수행한다(S70). 시뮬레이션에서는 내부메모리에 기록된 입력 및 출력 값을 읽어서, 도 7에 도시된 프로그램의 논리와 입출력 장치의 성질을 반영하여 센서의 입력값을 적절히 기록한다. 즉, 출력 내부메모리의 M101 = 1 이 된 경우에 실린더가 전진하는 데 필요한 적당한 시간을 반영하여 전진리드스위치(2)에 대응하는 내부 메모리 0002 = 1 의 값을 기록한다. PLC 프로그램이 종료하지 않는 경우(S70)에는 입력출력 메모리가 업데이트 되고, PLC 제어 프로그램이 수행되어 Y1 = 0 으로 된다. 따라서, 실린더는 프로그램을 종료할 때 까지, 전진과 후진을 계속 반복하게 된다. 또한, 시뮬레이션 과정에서 상기 가상의 입력/출력 장치를 그래픽으로 표시하고, 상기 내부메모리의 값들을 읽어서 작동관계를 그레픽으로 표시할 수 있다.Next, a simulation is performed (S70). In the simulation, the input and output values recorded in the internal memory are read, and the input values of the sensors are appropriately recorded in consideration of the logic of the program and the characteristics of the input / output device shown in FIG. That is, when M101 = 1 of the output internal memory, the value of the internal memory 0002 = 1 corresponding to the forward lead switch 2 is recorded, reflecting the proper time required for the cylinder to advance. If the PLC program does not end (S70), the input output memory is updated, and the PLC control program is executed so that Y1 = 0. Thus, the cylinder will continue to move forward and backward until the end of the program. In addition, the virtual input / output device may be graphically displayed in a simulation process, and the operating relationship may be graphically displayed by reading the values of the internal memory.
본 고안에 의하면, 한 대의 PLC를 가지고, 복수의 사용자가 가상의 입력/출력 장치를 설정하고 그래픽화면에서 프로그램의 동작상태를 확인하면서 동시에 프로그램을 작성하고 실습할 수 있게 된다.According to the present invention, with a single PLC, a plurality of users can set up a virtual input / output device and check the operation state of the program on the graphic screen while simultaneously creating and practicing the program.
앞에서 설명되고, 도면에 도시된 본 고안의 일 실시예는, 본 고안을 기술적 사상을 한정하는 것으로 해석되어서는 안 된다. 본 고안의 보호범위는 청구범위에 기재된 사항에 의하여만 제한되고, 본 고안의 기술분야에서 통상의 지식을 가진 자는 본 고안의 기술적 사상을 다양한 형태로 개량 변경하는 것이 가능하다. 따라서 이러한 개량 및 변경은 통상의 지식을 가진 자에게 자명한 것인 한 본 고안의 보호범위에 속하게 될 것이다.An embodiment of the present invention described above and illustrated in the drawings should not be construed as limiting the technical idea of the present invention. The scope of protection of the present invention is limited only by the matters described in the claims, and those skilled in the art can change and change the technical idea of the present invention in various forms. Therefore, such improvements and modifications will fall within the protection scope of the present invention as long as it will be apparent to those skilled in the art.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20-2003-0028572U KR200341577Y1 (en) | 2003-09-05 | 2003-09-05 | Education device for programmable logic controller through network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR20-2003-0028572U KR200341577Y1 (en) | 2003-09-05 | 2003-09-05 | Education device for programmable logic controller through network |
Publications (1)
Publication Number | Publication Date |
---|---|
KR200341577Y1 true KR200341577Y1 (en) | 2004-02-11 |
Family
ID=49343215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR20-2003-0028572U Expired - Fee Related KR200341577Y1 (en) | 2003-09-05 | 2003-09-05 | Education device for programmable logic controller through network |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR200341577Y1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101323937B1 (en) * | 2012-01-02 | 2013-10-31 | 엘에스산전 주식회사 | A simulation system of communication between HMI simulator and PLC simulator |
-
2003
- 2003-09-05 KR KR20-2003-0028572U patent/KR200341577Y1/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101323937B1 (en) * | 2012-01-02 | 2013-10-31 | 엘에스산전 주식회사 | A simulation system of communication between HMI simulator and PLC simulator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0504866A2 (en) | Programmable controller processor with a removable function card | |
JP2772604B2 (en) | Data processing system | |
CN110928243B (en) | Method for configuring EtherCAT bus configuration through demonstrator | |
KR970002580A (en) | Display device, display system and display control method | |
EP3767410B1 (en) | Control system, controller, and control method | |
CN100543672C (en) | Program creation device and program creation method | |
KR100315884B1 (en) | Data transmission method and device | |
US6272388B1 (en) | Program structure and method for industrial control | |
KR200341577Y1 (en) | Education device for programmable logic controller through network | |
JP2019152949A (en) | Display device, screen generation method, and screen generation program | |
KR20020061186A (en) | A study system for the control, design and application of robot | |
CN111694309A (en) | Method for realizing FPGA (field programmable Gate array) online platform | |
JP2625565B2 (en) | Communication network programmer | |
US7383413B2 (en) | Card-cage audio visual signal control system with card ID assignment | |
CN113986178A (en) | Universal display driving device and method for display screen of DCS platform of nuclear power plant | |
JPH0549991B2 (en) | ||
JP2000047775A (en) | Display screen generation support device for program type display device | |
KR100247870B1 (en) | A device for remotely operating the industrial robot | |
CN115616955B (en) | Arduino controller based on visual arrangement | |
JP2731245B2 (en) | Graphic display device | |
CN109483552B (en) | Method and equipment for debugging software and hardware of substrate carrying robot system | |
US4187540A (en) | Control panel self-test | |
JPH1115697A (en) | How to debug a programmable display device | |
JP3392663B2 (en) | Programmable display | |
JP2001056704A (en) | Program expression display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
UA0108 | Application for utility model registration |
Comment text: Application for Utility Model Registration Patent event code: UA01011R08D Patent event date: 20030905 |
|
REGI | Registration of establishment | ||
UR0701 | Registration of establishment |
Patent event date: 20040202 Patent event code: UR07011E01D Comment text: Registration of Establishment |
|
UR1002 | Payment of registration fee |
Start annual number: 1 End annual number: 1 Payment date: 20030908 |
|
UG1601 | Publication of registration | ||
UR1001 | Payment of annual fee |
Payment date: 20041229 Start annual number: 2 End annual number: 3 |
|
FPAY | Annual fee payment |
Payment date: 20070202 Year of fee payment: 4 |
|
UR1001 | Payment of annual fee |
Payment date: 20070202 Start annual number: 4 End annual number: 4 |
|
LAPS | Lapse due to unpaid annual fee | ||
UC1903 | Unpaid annual fee |
Termination date: 20090110 Termination category: Default of registration fee |