KR20010113413A - control System for use in industrial apparatus - Google Patents

control System for use in industrial apparatus Download PDF

Info

Publication number
KR20010113413A
KR20010113413A KR1020000033737A KR20000033737A KR20010113413A KR 20010113413 A KR20010113413 A KR 20010113413A KR 1020000033737 A KR1020000033737 A KR 1020000033737A KR 20000033737 A KR20000033737 A KR 20000033737A KR 20010113413 A KR20010113413 A KR 20010113413A
Authority
KR
South Korea
Prior art keywords
program
user program
control
instructions
stored
Prior art date
Application number
KR1020000033737A
Other languages
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 설욱진
Priority to KR1020000033737A priority Critical patent/KR20010113413A/en
Priority to KR2020000017560U priority patent/KR200202046Y1/en
Publication of KR20010113413A publication Critical patent/KR20010113413A/en

Links

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/42Recording and playback systems, i.e. in which the programme is recorded from a cycle of operations, e.g. the cycle of operations being manually controlled, after which this record is played back on the same machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • 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/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23327Modification of program in real time
    • 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/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23328Modification program
    • 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/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23333Modify program and store it

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Abstract

편리하고 쉬운 환경을 제공하여 산업용 사용자 프로그램의 작성, 수정, 실행을 보다 용이하게 하기 위한 산업기기의 제어장치가 개시된다. 산업용 기기의 동작을 제어하기 위해 입력부 및 출력부를 가지는 제어장치는, 사용자 프로그램 데이터 및 오퍼레이팅 시스템 데이터를 저장하는 영역들을 가지는 프로그램 메모리와; 텍스트 환경 하에서 쉬운 프로그램 명령어로 작업된 사용자 프로그램을 상기 프로그램 메모리에 저장시킨 후, 실행모드에서는 상기 프로그램 메모리에 저장된 사용자 프로그램에 따라 입력 데이터를 연산하여 상기 산업용 기기를 제어하며, 수정모드에서는 상기 사용자 프로그램을 상기 텍스트 환경 하에서 쉬운 프로그램 명령어로 수정토록 하고 상기 프로그램 메모리에 기 저장된 사용자 프로그램을 상기 수정된 사용자 프로그램으로 갱신시키는 제어처리부를 구비한다.Disclosed is a control device of an industrial apparatus for providing a convenient and easy environment to more easily create, modify, and execute an industrial user program. A control apparatus having an input unit and an output unit for controlling the operation of an industrial device, includes: a program memory having areas for storing user program data and operating system data; After the user program stored in the program memory is stored in the program memory in a text environment, in the execution mode, the input data is calculated according to the user program stored in the program memory to control the industrial device. And a control processor for modifying the program to an easy program command under the text environment and updating the user program previously stored in the program memory to the modified user program.

Description

산업용 기기의 제어장치{control System for use in industrial apparatus}Control system for industrial equipment

본 발명은 산업용 기기의 제어에 관한 것으로, 특히 산업용 기기를 보다 용이하게 제어하기 위한 제어장치에 관한 것이다.The present invention relates to the control of industrial equipment, and more particularly to a control device for controlling the industrial equipment more easily.

산업의 눈부신 발달에 따라 산업용 기기의 제어도 더욱 복잡하고 다양한 형태로 되어지고 있다. 예컨대, 산업용 기기 중의 하나로서 대표적인 사출기는 대량생산을 제공하기 위해 개발된 장치이다. 인젝션몰딩 장치라고도 불리우는 사출기의 일 예를 보인 구조는 도 1에 나타나 있다.With the remarkable development of the industry, the control of industrial devices is becoming more complicated and diverse. For example, a representative injection machine as one of the industrial devices is a device developed to provide mass production. A structure showing an example of an injection molding machine, also called an injection molding apparatus, is shown in FIG.

도 1은 종래기술에 따른 인젝션몰딩 장치의 기본적 어셈블리를 수직단면으로 보인 개략도이다. 용기(12)내에 녹아있는 몰딩재료(14)가 통로(20)를 통해 이동 노즐(22)에서 분출되어 몰드 다이(72)에 주입됨에 따라 설정된 형상을 갖는 몰딩 제품이 제조된다. 여기서, 인젝션 압력은 서보밸브 어셈블리(52)의 동작에 의해 챔버(18)내의 피스톤(34)이 이동하는 거리에 따라 결정된다. 상기 도 1에 대한 상세한 구조 및 동작의 설명은 미국에서 특허발행된 미합중국 특허 4,274,823호에 상세히 개시되어 있다. 상기한 바와 같은 인젝션몰딩 장치의 몰딩 온도제어, 압력제어, 서보 밸브구동제어는 흔히 사출기 콘트롤러라고 불리우는 전자적 제어장치에 의해 수행된다.1 is a schematic view showing the basic assembly of the injection molding apparatus according to the prior art in a vertical section. As the molding material 14 dissolved in the container 12 is ejected from the moving nozzle 22 through the passage 20 and injected into the mold die 72, a molded product having a set shape is produced. Here, the injection pressure is determined according to the distance that the piston 34 in the chamber 18 moves by the operation of the servovalve assembly 52. The detailed structure and operation of FIG. 1 is described in detail in US Pat. No. 4,274,823 issued in the United States. Molding temperature control, pressure control, and servovalve drive control of the injection molding apparatus as described above are performed by an electronic control apparatus commonly called an injection molding machine controller.

도 2는 도 1의 장치를 제어하기 위한 종래의 제어장치의 개략적 블륵도이다. 도면을 참조하면, 압력, 속도, 온도, 위치 등을 감지하는 각종 센서(S1,S2,..,Sn)로부터 인터페이스(81)를 통해 들어오는 센싱 데이터는 입력 레지스터(82)에 저장된다. 한편, 아나로그 입력부(84)에서는 서보 콘트롤(89)등의 피드백 신호가 출력된다. PLC(Programmable Logic Controller : 2)는 상기 저장된 센싱 데이터와 상기 피드백 신호를 수신 및 분석하고 미리 설정된 사용자 프로그램에 따른 장치제어를 수행한다. 상기 PLC(2)는 사용자 프로그램에 따른 제어수행중의 하나로서 상기 서보 콘트롤(89)을 구동하기 위해 구동 데이터를 디지털 대 아나로그 변환기(DAC:86)로 인가하고, 인젝션몰딩 장치의 상태 및 제어상황을 알리는 표시 데이터를 디스플레이(85)로 인가한다. 여기서, 상기 PLC(2)의 세부적 구성 및 제어동작에 관한 것은 1994년 5월 31일자로 특허 발행된 미합중국 특허 5,316,707호에 자세히 개시되어 있다.2 is a schematic block diagram of a conventional control device for controlling the device of FIG. Referring to the drawings, sensing data coming through the interface 81 from various sensors S1, S2,..., Sn for detecting pressure, speed, temperature, position, and the like are stored in the input register 82. On the other hand, the analog input unit 84 outputs a feedback signal such as the servo control 89 or the like. A programmable logic controller (PLC) 2 receives and analyzes the stored sensing data and the feedback signal and performs device control according to a preset user program. The PLC 2 applies drive data to a digital-to-analog converter (DAC) 86 to drive the servo control 89 as one of the control executions according to a user program, and the state and control of the injection molding apparatus. Display data informing the situation is applied to the display 85. Here, the detailed configuration and control operation of the PLC 2 is disclosed in detail in US Patent No. 5,316,707, issued May 31, 1994.

도 2를 통하여 설명된 바와 같이, PLC(2)는 사출기나 프레스 등과 같은 산업용 기기를 프로그램에 따라 제어하여 소망하는 동작이 달성되게 하는 증요한 역할을 수행함을 알 수 있다. 그러한 역할을 수행하기 위해 상기 PLC(2)는 도 3에서 도시된 바와 같은 래더(ladder) 다이아그램으로 이루어진 프로그램을 도 4에서와 같은 회로적 시스템에서 전송받는다.As described with reference to FIG. 2, it can be seen that the PLC 2 plays an important role in controlling an industrial device such as an injection molding machine or a press according to a program so that a desired operation is achieved. In order to perform such a role, the PLC 2 receives a program consisting of a ladder diagram as shown in FIG. 3 in a circuit system as in FIG.

도 3은 종래기술에 따라 도 2내의 프로그래머블 로직 콘트롤러(2)의 사용자 프로그램을 나타낸 예시도로서, 예로서 도시된 래더 다이아그램을 수식으로 표현하면 다음과 같다.FIG. 3 is an exemplary diagram illustrating a user program of the programmable logic controller 2 in FIG. 2 according to the related art.

Y1 = (X1+X2) X3 [X4 X5 X6 + X7 X8 (X9 + Y2)] X10 (여기서, Y는 출력신호, X는 입력신호). 즉, 상기의 수식에 의한 조건이 만족되었을 경우에 출력신호 Y1은 온(ON)이 되고, 만족되지 않았을 경우에 Y1이 오프된다. 상기 래더 다이아그램은 부울(boolean)알고리즘을 사용하여 표현할 수 있다. 이에 관한 상세한 설명은 국내에서 공고된 특허공고번호 92-6970호에 개시되어 있다.Y1 = (X1 + X2) X3 [X4 X5 X6 + X7 X8 (X9 + Y2)] X10 (where Y is the output signal and X is the input signal). That is, the output signal Y1 is turned ON when the condition according to the above expression is satisfied, and Y1 is turned off when it is not satisfied. The ladder diagram can be represented using a boolean algorithm. Detailed description thereof is disclosed in Korean Patent Publication No. 92-6970.

도 4는 편집되거나 수정된 사용자 프로그램을 도 2내의 프로그래머블 로직 콘트롤러에 전송하는 방식을 보인 종래의 전체 시스템 개요도이다. 상기 PLC(2)는 라인(L2)을 통해 연결된 CPU (Central Processing Unit:3)와 프로그램 메모리(4)로 구성된다. 상기 CPU(3)가 사용자 프로그램을 순차적으로 반복 수행할 수 있도록 하기 위해 내부 메모리인 프로그램 메모리(4)에는 프로그램이 저장되어야 한다. 이를 위해 사용자 프로그램이 프로그래밍 장치(1)에 의해 편집되거나 수정되며, 편집 또는 수정된 사용자 프로그램은 실행코드로 변환하는 컴파일 과정을 거친 후, 라인(L1)을 통해 상기 프로그램 메모리(4)에 저장된다. 그럼에 의해, 상기 CPU(3)는 프로그램에 따라 장치의 제반 동작을 제어하기 위해 라인 (L3)을 통해 피제어부(5)로 제어 데이터를 제공한다.4 is a schematic diagram of a conventional overall system showing a method of transmitting an edited or modified user program to the programmable logic controller in FIG. The PLC 2 is composed of a central processing unit (CPU) 3 and a program memory 4 connected via a line L2. In order for the CPU 3 to repeatedly execute the user program sequentially, a program must be stored in the program memory 4 which is an internal memory. To this end, the user program is edited or modified by the programming device 1, and the edited or modified user program is stored in the program memory 4 through a line L1 after a compilation process for converting into executable code. . Thereby, the CPU 3 provides control data to the controlled part 5 via the line L3 in order to control the overall operation of the apparatus according to the program.

그런데, 내부 메모리인 프로그램 메모리(4)에 저장된 사용자 프로그램은 작업환경의 변화 또는 변경에 따라 수정 또는 교체되어야 하는 경우가 있다. 예컨대, 디버그 운전시 사용자 프로그램 오류가 발견되거나 재질의 변경 또는 금형다이의 교체 등과 같은 작업조건의 변화로 그 일부공정을 변경해 주어야 할 때에는 사용자 프로그램이 수정 또는 교체된다. 프로그램의 일부를 수정해야 할 경우 프로그래밍 장치(1)를 통해 해당 프로그램이 수정되고, 수정의 완료시 수정된 프로그램과 수정되지 아니한 기존의 프로그램이 모두 합하여져 새로이 컴파일 된다. 컴파일된 프로그램은 통신 케이블을 통하여 전송되고, 그 전송된 프로그램은 프로그램 메모리(4)에 새로이 저장된다. 전송이 완료되면 CPU(3)는 새로이 수정된 프로그램에 의해 필요한 연산동작을 수행하여 장치를 동작시킨다. 이러한 것은 1999년 7월 5일자로 국내에 공개된 특허 공개번호 1999-0050897호에 개시되어 있다.By the way, the user program stored in the program memory 4, which is an internal memory, may need to be modified or replaced in accordance with the change or change of the working environment. For example, when a user program error is found during debug operation, or when a part of the process needs to be changed due to a change in working conditions such as a change of material or a die die, the user program is corrected or replaced. When a part of the program needs to be modified, the corresponding program is modified through the programming device 1, and when the modification is completed, the modified program and the existing unmodified program are added together and newly compiled. The compiled program is transmitted via a communication cable, and the transferred program is newly stored in the program memory 4. When the transfer is completed, the CPU 3 performs the operation required by the newly modified program to operate the device. This is disclosed in Korean Patent Publication No. 1999-0050897, published July 5, 1999 in Korea.

그렇지만, 사용자 프로그램의 편집이나 수정은 장치의 작업자가 행하기에는 너무나 어려운 점이 있다. 특히, 상기한 래더 다이아그램의 프로그램의 경우에 편집 및 수정하기 위해서는 전용의 PLC 래더 편집 프로그램 환경이 필요하게 되며,난이성이 있는 작업 프로그램을 논리적인 구조로 작성하기가 어려워, 중소기업 등에서 작업하는 통상의 작업자들이 이용하기 힘들었다. 더욱이 기존의 컴퓨터용 언어(assembly, c, basic, pascal등)를 사용자 프로그램으로 사용하는 경우에 계측제어나 기계제어에 불합리한 부분이 많으며, 또한 그러한 언어의 난이성에 기인하여 전문적인 교육을 받지 않는 사람은 접근 자체가 매우 어렵다. 따라서, 사용자 프로그램이 수시로 바뀌는 다품종 소량 생산하는 각종 기기, 기계, 제어장치는 상기한 어려움으로 인하여 시스템이 조금이라도 수정되면 고급의 전문기술자를 동원하여야 한다. 또한, 각종 개인용 컴퓨터와 이와 유사한 장치에서 사용되는 프로그램은 사무용에 적합한 용도로 개발이 된 것이어서, 산업용으로 사용하기에는 불합리한 부분이 매우 많아 산업용 기기의 제어용으로는 사용하기 어려웠다.However, editing or modifying a user program is too difficult for the operator of the apparatus to perform. In particular, in the case of the ladder diagram programs described above, a dedicated PLC ladder editing program environment is required for editing and modifying the programs, and it is difficult to create a difficult work program in a logical structure, which is a common task for working in small and medium-sized businesses. It was hard for workers to use. In addition, there are many parts that are unreasonable for measurement control or machine control when using existing computer language (assembly, c, basic, pascal, etc.) as user program, and those who do not have professional education due to the difficulty of such language. The approach itself is very difficult. Therefore, various devices, machines, and control devices for producing small quantities of various kinds of products whose user programs are changed frequently should employ advanced technicians if any of the systems are modified due to the above-mentioned difficulties. In addition, since the programs used in various personal computers and similar devices were developed for the purpose of office use, there are many unreasonable parts for industrial use, and it is difficult to use them for the control of industrial devices.

상기한 바와 같이, 종래에는 사용자 프로그램의 편집이나 수정의 필요시 전문가를 동원하여야 하므로 유지 보수의 부담이 크며, 생산공정을 신속하면서도 쉽게 바꾸지 못하여 시장환경의 변화에 적응적으로 대처하지 못하는 문제점이 있었다.As described above, there is a problem in that a maintenance burden is largely required when editing or modifying a user program is required, and the production process cannot be changed quickly and easily, thereby failing to adapt to changes in the market environment. .

따라서, 본 발명의 목적은 상기한 종래의 문제점들을 해결할 수 있는 산업용 기기의 제어장치를 제공함에 있다.Accordingly, it is an object of the present invention to provide a control apparatus for an industrial apparatus that can solve the above-mentioned problems.

본 발명의 다른 목적은 종래의 사용자 프로그램에 대한 접근의 어려움 및 불합리를 개선하여 산업용 기기의 제어용에 적합한 제어장치를 제공함에 있다.Another object of the present invention is to provide a control device suitable for controlling industrial equipment by improving the difficulty and irrationality of access to a conventional user program.

본 발명의 또 다른 목적은 사용자 프로그램이 수시로 바뀌는 다품종 소량 생산에 적합한 산업용 기기의 제어장치를 제공함에 있다.It is still another object of the present invention to provide a control device for an industrial device suitable for small quantity production of a large variety of products whose user program is changed frequently.

본 발명의 또 다른 목적은 비 숙련 기술자라고 하더라도 쉽게 프로그램에 접근하여 프로그래밍 할 수 있도록 하는 쉽고 간결한 명령어 체계를 제공함에 있다.Still another object of the present invention is to provide an easy and concise instruction system that allows an expert to easily access and program a program.

본 발명의 또 다른 목적도 통상의 개인용 컴퓨터에서 편집환경을 제공하여 산업용 사용자 프로그램의 작성, 수정, 실행을 할 수 있도록 함에 있다.Still another object of the present invention is to provide an editing environment in a general personal computer to create, modify, and execute an industrial user program.

상기한 목적을 달성하기 위한 본 발명에 따라, 산업용 기기의 동작을 제어하기 위해 입력부 및 출력부를 가지는 제어장치는, 사용자 프로그램 데이터 및 오퍼레이팅 시스템 데이터를 저장하는 영역들을 가지는 프로그램 메모리와; 텍스트 환경 하에서 쉬운 프로그램 명령어로 작업된 사용자 프로그램을 상기 프로그램 메모리에 저장시킨 후, 실행모드에서는 상기 프로그램 메모리에 저장된 사용자 프로그램에 따라 입력 데이터를 연산하여 상기 산업용 기기를 제어하며, 수정모드에서는 상기 사용자 프로그램을 상기 텍스트 환경 하에서 쉬운 프로그램 명령어로 수정토록 하고 상기 프로그램 메모리에 기 저장된 사용자 프로그램을 상기 수정된 사용자 프로그램으로 갱신시키는 제어 처리부를 구비함을 특징으로 한다.According to the present invention for achieving the above object, a control apparatus having an input unit and an output unit for controlling the operation of an industrial device, the control device comprising: a program memory having areas for storing user program data and operating system data; After the user program stored in the program memory is stored in the program memory in a text environment, in the execution mode, the input data is calculated according to the user program stored in the program memory to control the industrial device. It is characterized in that it comprises a control processing unit for modifying the easy program command in the text environment and updating the user program previously stored in the program memory to the modified user program.

도 1은 종래기술에 따른 제어 장치의 기본적 어셈블리를 수직단면으로 보인 개략도1 is a schematic view showing in vertical section the basic assembly of a control device according to the prior art;

도 2는 도 1의 장치를 제어하기 위한 종래의 제어장치의 개략적 블록도2 is a schematic block diagram of a conventional control device for controlling the device of FIG.

도 3은 종래기술에 따라 도 2내의 프로그래머블 로직 콘트롤러의 사용자 프로그램을 나타낸 예시도3 is an exemplary diagram illustrating a user program of the programmable logic controller in FIG. 2 according to the prior art.

도 4는 편집되거나 수정된 사용자 프로그램을 도 2내의 프로그래머블 로직 콘트롤러에 전송하는 방식을 보인 종래의 전체 시스템 개요도4 is a schematic diagram of a conventional overall system showing a method of transmitting an edited or modified user program to the programmable logic controller in FIG.

도 5는 본 발명의 일 실시예에 따른 제어장치의 개략적 블록도5 is a schematic block diagram of a control device according to an embodiment of the present invention;

도 6는 도 5에 따른 제어장치의 실행동작을 보여주는 제어흐름도6 is a control flow diagram showing an execution operation of the control device according to FIG.

이하에서, 산업용 기기의 제어장치에 대한 본 발명의 바람직한 일 실시 예가 상세히 설명된다. 도면들 내에서 서로 동일한 부분이나 유사한 부분들은 참조의 편의상 동일 내지 유사한 참조부호로써 부여됨을 유의하여야 한다.Hereinafter, a preferred embodiment of the present invention for a control device of an industrial device is described in detail. It should be noted that the same or similar parts to one another in the drawings are given the same or similar reference numerals for convenience of reference.

종래의 산업용 기기의 제어장치에서는 작업자 또는 사용자가 접근하기 어려운 고급 언어 또는 특정한 래더 프로그램을 사용해왔기 때문에 사용자 프로그램을수정, 편집 등의 작업이 매우 난이 하였다. 따라서, 본 발명에서는 이를 해결하기 위해 초보자라도 손쉽게 제어장치에 접근하여 사용자 프로그램의 편집 및 수정작업을 행할 수 있게 하는 프로그램 명령어(language)를 제공한다. 또한, 통상의 개인용 컴퓨터에서도 쉽게 편집을 할 수 있는 편집기(editor)를 제공하여 사용자 프로그램의 작성, 수정, 실행이 용이하게 되도록 하는 것이다.In the control apparatus of the conventional industrial equipment, since a high-level language or a specific ladder program is difficult to be accessed by an operator or a user, it is very difficult to modify or edit a user program. Therefore, the present invention provides a program instruction (language) that allows a beginner to easily access the control device to perform the editing and modification of the user program to solve this problem. In addition, by providing an editor that can be easily edited in a normal personal computer to facilitate the creation, modification, and execution of user programs.

본 발명의 실시예에서 사용되는 명령어의 종류 및 그 주석을 이하에서 설명한다.The types of commands used in the embodiments of the present invention and their comments will be described below.

1) 기본명령어1) Basic Command

-.IFEN : IF이하의 조건식이 참이면 THEN 이하를, 참이 아니면 ELSE 이하를 실행하는 조건판별 명령.-.IFEN: Conditional command that executes THEN or below if the conditional expression below IF is true, or ELSE or below.

-. THEN : IF 혹은 IFEN의 조건이 참이면 본 명령이하를 실행.-. THEN: If the condition of IF or IFEN is true, execute this command or less.

-. ELSE : IF 혹은 IFEN의 조건이 참이 아니면 본 명령이하를 실행.-. ELSE: If the condition of IF or IFEN is not true, execute this command or less.

-. X#, X-# : 입력회로부를 통하여 지정된 번호입력(#)의 ON입력 (X#), OFF입력( X-#)을 받아드리는 명령.-. X #, X- #: This command accepts ON input (X #) and OFF input (X- #) of the specified number input (#) through the input circuit section.

-. Y#, Y-# : 출력회로를 통하여 지정된 번호 출력(#)을 ON 출력(Y#), OFF 출력(Y-#)하는 명령어.-. Y #, Y- #: Command to turn ON (Y #) and OFF (Y- #) the designated number output (#) through the output circuit.

-. KB#, KB-#: 조작 key input부를 통하여 지정된 번호입력(#)의 ON입력 (KB#), OFF 입력(KB-#)을 받아드리는 명령.-. KB #, KB- #: This command accepts ON input (KB #) and OFF input (KB- #) of the number input (#) specified through the operation key input section.

-.KBL#, KBL-# : 조작 패널의 스위치 램프의 지정된 번호 출력(#)을 ON 출력(KBL#), OFF 출력(KBL-#)하는 명령어.-. KBL #, KBL- #: Command to turn ON (KBL #) and OFF (KBL- #) the number output (#) of the switch lamp of the operation panel.

-.ATOD#: 아날로그 회로의 입력회로(#: 1-8)를 통하여 입력하는 명령어.-.ATOD #: Command to input through analog circuit's input circuit (#: 1-8).

-.DTOA#: 아날로그 회로의 출력회로(#: 1-8)를 통하여 아날로그 량을 출력하는 명령어.-.DTOA #: Command to output analog quantity through analog circuit output circuit (#: 1-8).

2) 비교명령어2) Comparison instruction

-. =, >, <, >=, <= 등의 산술 비교 명령 5종류.-. Five arithmetic comparison instructions such as =,>, <,> =, and <=.

-. RZ# : 지정된 레지스타(#)의 내용이 0(zero) 이면 분기.-. RZ #: Branch if the content of designated register (#) is zero.

-. RNZ# : 지정된 레지스타(#)의 내용이 0(zero)가 아니면 분기.-. RNZ #: branch if the contents of specified register (#) is not zero.

-. TZ# : 지정된 타이머 레지스타(#)의 내용이 0(zero) 이면 분기.-. TZ #: branch if the contents of the specified timer register is zero.

-. TNZ# : 지정된 타이머 레지스타(#)의 내용이 0(zero)가 아니면 분기.-. TNZ #: branch if the contents of the specified timer register (#) are not zero.

3) 산술명령어.3) arithmetic instructions.

-. INCR# : 지정된 레지스타(#)의 내용을 1증가.-. INCR #: Increase the contents of the specified register (#) by 1.

-. DECR# : 지정된 레지스타(#)의 내용을 1감소.-. DECR #: Decreases the contents of the specified register (#) by one.

-. LTR#, ## : 지정된 타이머 레지스타(#)에 임의의 값(##)를 라이트(write).-. LTR #, ##: Write an arbitrary value (##) to the specified timer register (#).

-. LCR#, ## : 지정된 카운타(counter) 레지스타(#)에 임의의 값(##)를 라이트(write).-. LCR #, ##: Write an arbitrary value (##) to the specified counter register (#).

도 5에는 본 발명의 일 실시예에 따른 제어장치의 개략적 블록도가 도시된다. 도 5를 참조하면, 중앙처리장치(130), ROM(150), RAM(160), 키패널(170), 직렬 통신부(180), 센싱입력부(100), 구동신호 출력부(110), 및 아날로그 입/출력부(120)는 상기 제어장치에 포함된다.5 is a schematic block diagram of a control device according to an embodiment of the present invention. Referring to FIG. 5, the CPU 130, the ROM 150, the RAM 160, the key panel 170, the serial communication unit 180, the sensing input unit 100, the driving signal output unit 110, and The analog input / output unit 120 is included in the control device.

상기 중앙처리장치(130)은 본 발명에 따라 작성된 미리 설정된 사용자 프로그램에 따라 산업용 기기의 제반동작을 제어한다. 상기 중앙처리장치(130)는 제어장치내에서 연산, 판단 등을 행하는 장치로서, 직렬 통신부(180)를 통해 개인용 컴퓨터와 연결되어 본 발명에 따라 쉬운 프로그램 명령어로 작성된 프로그램을 다운로드받거나 수정시 프로그램 메모리(150)에 저장된 프로그램을 개인용 컴퓨터로 업로딩하는 역할을 한다. 상기 ROM(150)은 사용자 메모리로서 사용자가 작성한 프로그램언어를 저장하기 위한 영역을 가지며, 전기적으로 소거 및 프로그램 가능한 불휘발성 메모리이다. 여기서, 상기 ROM(150)은 잘 알려진 롬 메모리인 "27040" 제품을 사용하였다. 상기 RAM(160)은 1메가 바이트 이상의 시스템 메모리로서 상기 중앙처리장치(130)이 사용자 프로그램을 리드하여 해석하고 전체의 동작을 제어하기 위해 필요한 작업용 메모리이다. 직렬통신부(180)는 상기 제어장치의 외부에 있는 개인용 컴퓨터 등과 연결되어 사용자 프로그램을 다운로드(down load) 또는 업 로드(up load)시에 RS-422 직렬 통신을 제공하는 기능을 한다. 또한, 상기 직렬통신부(180)는 스텝핑모터 등과 같은 피제어부를 상기 중앙처리장치(130)가 제어할 수 있도록 RS-232C 직렬통신 인터페이스를 제공할 수 있다. 센싱입력부(100)는 산업용 기기가 동작시 외부의 각종 스위치 및 센서(sensor)등에서 출력되는 신호를 받아 증폭 및 레벨변환하여 상기 중앙처리장치(130)로 전달하는 역할을 한다. 구동신호 출력부(110)는 중앙처리장치(130)에 연결되어 상기 산업용 기기가 동작되게 하기 위해 외부의 각종 구동기기들 예컨대 릴레이, 모타. 유공압 밸브 등을 구동하는 구동데이터를 출력한다. 아날로그 입/출력부(120)는 외부 각종 아날로그(analog)신호를 받아 내부에 전달하며 반대로 내부의 출력신호에 따라 외부로 각종 아날로그 신호를 출력하는 역할을 담당한다. 전원부(132)는 상용 교류전원을 받아 제어장치에 필요한 각종 DC 전원을 생성하여 각 회로블록에 공급한다.The central processing unit 130 controls the overall operation of the industrial device according to a preset user program created in accordance with the present invention. The central processing unit 130 is a device for performing calculations, determinations, etc. in the control device, connected to the personal computer through the serial communication unit 180 to download or modify the program created by easy program instructions according to the present invention program memory Upload a program stored in 150 to a personal computer. The ROM 150 is a user memory and has an area for storing a user-written program language. The ROM 150 is an electrically erasable and programmable nonvolatile memory. Here, the ROM 150 used a "27040" product which is a well-known ROM memory. The RAM 160 is a system memory of 1 megabyte or more, which is a working memory required for the CPU 130 to read and interpret a user program and to control overall operations. The serial communication unit 180 is connected to a personal computer external to the control device and functions to provide RS-422 serial communication when downloading or uploading a user program. In addition, the serial communication unit 180 may provide an RS-232C serial communication interface so that the CPU 130 can control a controlled unit such as a stepping motor. The sensing input unit 100 serves to amplify and level convert signals received from various external switches and sensors when the industrial apparatus is operated, and transfer the signals to the central processing unit 130. The drive signal output unit 110 is connected to the central processing unit 130 so that the industrial device is operated, various external drive devices such as relays and motors. Drive data for driving a hydraulic valve or the like is output. The analog input / output unit 120 receives various external analog signals and transmits them to the inside, and conversely plays a role of outputting various analog signals to the outside according to the internal output signals. The power supply unit 132 receives commercial AC power and generates various DC powers required for the control device and supplies them to each circuit block.

도 6는 도 5에 따른 제어장치의 실행동작을 보여주는 제어흐름도로서, 제200단계에서 제208단계까지로 나타나 있다.FIG. 6 is a control flow diagram showing an execution operation of the control device according to FIG. 5, which is shown from step 200 to step 208.

도 6을 참조하면, 제200단계에서 도 5에 도시된 하드웨어 초기화 및 각종 신호점검이 수행되는데, 이는 중앙처리장치(130)에 의해 수행된다. 여기서, 상기 프로그램 메모리(150)에는 이미 사용자 프로그램 데이터 및 오퍼레이팅 시스템 데이터가 저장되어 있는 상태이다. 상기 사용자 프로그램 데이터는 기본명령어, 비교명령어, 산술명령어, 회전명령어, 특수명령어, 기타명령어, 및 특수명령어를 포함하는 쉬운 프로그램 명령어로 작성된 것이다. 실제로는 상기 쉬운 프로그램 명령어로 작성된 사용자 프로그램을 컴파일한 실행코드가 상기 프로그램 메모리(150)에 저장된다. 상기 쉬운 프로그램 명령어의 그룹은 상기 화면상에 툴 바로서 메뉴 표시되게 하는 것이 좋다. 제201단계에서 실행모드로 판단되면, 제202단계가 수행되어 상기 프로그램 메모리에 저장된 명령어가 순차로 리드된다. 따라서, 상기 중앙처리장치(130)는 제203단계에서 리드된 명령어를 실행 후, 제204단계에서 스탑이면 실행을 완료하고 아니면 제201단계로 리턴한다. 한편, 제201단계에서 다운로드로 판단되면, 제206단계에서 다운로드가 실행된다. 그 결과로서 도 5의 직렬통신부(180)를 통해 외부의 개인용 컴퓨터로부터 사용자 프로그램이 제어장치 내부로 수신되고, 이는 상기 프로그램 메모리인 ROM(150)에 저장된다. 제207단계에서 업로드로 판단되면, 제208단계에서 업로드가 실행된다. 그 결과로서 도 5의 직렬통신부(180)를 통해 내부의 상기 프로그램 메모리인 ROM(150)에 저장된 사용자 프로그램이 외부의 개인용 컴퓨터로 전송된다. 그러나, 다운로딩이나 업로딩 없이도 도 5의 키 패널(170)을 통하여 동작의 실행 및 프로그램 수정이나 편집을 할 수도 있다.Referring to FIG. 6, in operation 200, hardware initialization and various signal checks illustrated in FIG. 5 are performed, which is performed by the CPU 130. In this case, the program memory 150 has already stored user program data and operating system data. The user program data is written in easy program instructions including basic instructions, comparison instructions, arithmetic instructions, rotation instructions, special instructions, other instructions, and special instructions. In practice, executable code that compiles a user program created by the easy program command is stored in the program memory 150. The group of easy program commands may be a menu displayed as a tool bar on the screen. When it is determined in the execution mode in step 201, step 202 is performed to sequentially read the instructions stored in the program memory. Therefore, after executing the command read in step 203, the CPU 130 completes execution if it stops in step 204, and returns to step 201. On the other hand, if it is determined that the download in step 201, the download is executed in step 206. As a result, a user program is received into the control apparatus from an external personal computer through the serial communication unit 180 of FIG. 5, which is stored in the program memory ROM 150. If it is determined in the step 207 that the upload, the upload is executed in step 208. As a result, the user program stored in the ROM 150, which is the program memory therein, is transmitted to the external personal computer through the serial communication unit 180 of FIG. However, it is also possible to execute an operation and modify or edit a program through the key panel 170 of FIG. 5 without downloading or uploading.

본 실시예에서 제공하는 텍스트 환경은 윈도우 95 환경이상에서 동작을 하며, 상기한 쉬운 프로그램 명령어들에 의해 작업자는 프로그램의 갱신을 쉽게 할 수 있는 것이다.The text environment provided in this embodiment operates in a Windows 95 environment or more, and the operator can easily update the program by the above-mentioned easy program commands.

상술한 바와 같이, 비 숙련자라도 쉽게 프로그램에 접근하여 프로그래밍 할 수 있도록 하는 본 발명에 따르면, 산업용 각종 기기 및 계측분야의 각종 기기를 제어하는 제어장치의 사용자 프로그램을 쉽게 수정 및 편집할 수 있는 효과가 있다. 따라서, 사용자 프로그램이 수시로 바뀌는 다품종 소량 생산에 특히 유리한 이점을 갖는다. 또한, 통상의 개인용 컴퓨터에서 편집환경을 제공하여 산업용 사용자 프로그램의 작성, 수정, 실행을 할 수 있도록 하는 장점이 있다.As described above, according to the present invention, even an inexperienced person can easily access and program a program, the effect of easily modifying and editing a user program of a control device controlling various devices in various industrial devices and measurement fields have. Thus, there is a particular advantage in producing small quantities of multi-products in which the user program changes frequently. In addition, there is an advantage in that it is possible to create, modify, and execute an industrial user program by providing an editing environment in a general personal computer.

Claims (4)

산업용 기기의 동작을 제어하기 위해 입력부 및 출력부를 가지는 제어장치에 있어서:In a control device having an input and an output for controlling the operation of an industrial device: 사용자 프로그램 데이터 및 오퍼레이팅 시스템 데이터를 저장하는 영역들을 가지는 프로그램 메모리와;A program memory having areas for storing user program data and operating system data; 텍스트 환경 하에서 쉬운 프로그램 명령어로 작업된 사용자 프로그램을 상기 프로그램 메모리에 저장시킨 후, 실행모드에서는 상기 프로그램 메모리에 저장된 사용자 프로그램에 따라 입력 데이터를 연산하여 상기 산업용 기기를 제어하며, 수정모드에서는 상기 사용자 프로그램을 상기 텍스트 환경 하에서 쉬운 프로그램 명령어로 수정토록 하고 상기 프로그램 메모리에 기 저장된 사용자 프로그램을 상기 수정된 사용자 프로그램으로 갱신시키는 제어처리부를 구비함을 특징으로 하는 제어장치.After the user program stored in the program memory is stored in the program memory in a text environment, in the execution mode, the input data is calculated according to the user program stored in the program memory to control the industrial device. And a control processing unit for modifying the program to an easy program command under the text environment and updating the user program previously stored in the program memory to the modified user program. 제1항에 있어서, 상기 제어장치가 외부의 컴퓨터를 통하여 상기 사용자 프로그램을 다운 로딩하고 프로그램을 수정할 수 있도록 하기 위하여 상기 제어처리부에 연결되는 직렬통신부를 더 구비함을 특징으로 하는 제어장치.The control apparatus according to claim 1, further comprising a serial communication unit connected to said control processing unit to enable said control device to download said user program and modify said program via an external computer. 제1항에 있어서, 상기 쉬운 프로그램 명령어는 기본명령어, 비교명령어, 산술명령어, 회전명령어, 특수명령어, 및 기타명령어로 구별되는 것을 특징으로 하는제어장치.The control apparatus according to claim 1, wherein the easy program instructions are distinguished by basic instructions, comparison instructions, arithmetic instructions, rotation instructions, special instructions, and other instructions. 제4항에 있어서, 상기 쉬운 프로그램 명령어는,The method of claim 4, wherein the easy program command, IF, IFEN, THEN, ELSE, X#, X-#, Y#, Y-#, KB#, KB-#, KBL#, KBL-#, ATOD#, 및 DTOA#으로 이루어진 기본명령어와;A basic instruction consisting of IF, IFEN, THEN, ELSE, X #, X- #, Y #, Y- #, KB #, KB- #, KBL #, KBL- #, ATOD #, and DTOA #; =, >, <, >=, <=, RZ#, RZ#, TZ#, 및 TNZ#으로 이루어진 비교명령어와;A comparison instruction consisting of =,>, <,> =, <=, RZ #, RZ #, TZ #, and TNZ #; INCR#, DECR#, LTR#, ##, 및 LCR#, ##으로 이루어진 산술명령어를 포함함을 특징으로 하는 제어장치.And an arithmetic instruction composed of INCR #, DECR #, LTR #, ##, and LCR #, ##.
KR1020000033737A 2000-06-19 2000-06-19 control System for use in industrial apparatus KR20010113413A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020000033737A KR20010113413A (en) 2000-06-19 2000-06-19 control System for use in industrial apparatus
KR2020000017560U KR200202046Y1 (en) 2000-06-19 2000-06-20 Control system for use in industrial apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000033737A KR20010113413A (en) 2000-06-19 2000-06-19 control System for use in industrial apparatus

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR2020000017560U Division KR200202046Y1 (en) 2000-06-19 2000-06-20 Control system for use in industrial apparatus

Publications (1)

Publication Number Publication Date
KR20010113413A true KR20010113413A (en) 2001-12-28

Family

ID=19672631

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000033737A KR20010113413A (en) 2000-06-19 2000-06-19 control System for use in industrial apparatus

Country Status (1)

Country Link
KR (1) KR20010113413A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61147304A (en) * 1984-12-20 1986-07-05 Hitachi Seiki Co Ltd Automatic generating device of sequence program
JPH0667711A (en) * 1992-08-21 1994-03-11 Enshu Ltd Ladder program input method
JPH07104665A (en) * 1993-10-04 1995-04-21 Wacom Co Ltd Method of transferring comment for control system cad device
JPH10333717A (en) * 1997-06-02 1998-12-18 Akira Ichikawa Sequencer soft design supporting soft concept
JPH1139010A (en) * 1997-07-23 1999-02-12 Yaskawa Electric Corp Device and method for supporting program generation for programmable controller
KR19990069764A (en) * 1998-02-12 1999-09-06 류종열 How to simplify PLC user program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61147304A (en) * 1984-12-20 1986-07-05 Hitachi Seiki Co Ltd Automatic generating device of sequence program
JPH0667711A (en) * 1992-08-21 1994-03-11 Enshu Ltd Ladder program input method
JPH07104665A (en) * 1993-10-04 1995-04-21 Wacom Co Ltd Method of transferring comment for control system cad device
JPH10333717A (en) * 1997-06-02 1998-12-18 Akira Ichikawa Sequencer soft design supporting soft concept
JPH1139010A (en) * 1997-07-23 1999-02-12 Yaskawa Electric Corp Device and method for supporting program generation for programmable controller
KR19990069764A (en) * 1998-02-12 1999-09-06 류종열 How to simplify PLC user program

Similar Documents

Publication Publication Date Title
US7505817B2 (en) Programming automation by demonstration
US5689415A (en) Control of paint spraying machines and the like
WO2011080945A1 (en) Program creation support device
JP4311349B2 (en) Numerical control system
US20070233288A1 (en) System and method for industrial process control
WO2021153521A1 (en) Control program generation device, control program generation method, and program
CN106909123B (en) Control programming auxiliary assembly
US5784621A (en) Sequence program display apparatus
EP0254352B1 (en) A programmable machine system
KR200202046Y1 (en) Control system for use in industrial apparatus
KR890002435B1 (en) A numerical control method
WO2014064830A1 (en) Development support device and development support program
KR20010113413A (en) control System for use in industrial apparatus
US5229950A (en) Numerical control unit
KR100400060B1 (en) Control System for use in injection molding machine
WO1990014620A1 (en) System for displaying data on a screen
JP2011108008A (en) Hmi-screen automatic generation method
WO1992011590A1 (en) Instruction method for robot operation program
JP2537418B2 (en) Control program generator
JP2533370B2 (en) Control program creation method
JP2533373B2 (en) Control program creation method
KR100514038B1 (en) A method for setting of robot action
JP2004318494A (en) Numerical control device for shaft feed controlling device of machine tool
CN117111496A (en) Drag programming configuration low code platform for automation devices
KR200376856Y1 (en) A method for setting of robot action

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application