KR100642182B1 - CNC system utilizing a central processing unit - Google Patents

CNC system utilizing a central processing unit Download PDF

Info

Publication number
KR100642182B1
KR100642182B1 KR1020040099838A KR20040099838A KR100642182B1 KR 100642182 B1 KR100642182 B1 KR 100642182B1 KR 1020040099838 A KR1020040099838 A KR 1020040099838A KR 20040099838 A KR20040099838 A KR 20040099838A KR 100642182 B1 KR100642182 B1 KR 100642182B1
Authority
KR
South Korea
Prior art keywords
screen
module
file
real time
application module
Prior art date
Application number
KR1020040099838A
Other languages
Korean (ko)
Other versions
KR20060061001A (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 KR1020040099838A priority Critical patent/KR100642182B1/en
Publication of KR20060061001A publication Critical patent/KR20060061001A/en
Application granted granted Critical
Publication of KR100642182B1 publication Critical patent/KR100642182B1/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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/414Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller
    • G05B19/4145Structure of the control system, e.g. common controller or multiprocessor systems, interface to servo, programmable interface controller characterised by using same processor to execute programmable controller and numerical controller function [CNC] and PC controlled NC [PCNC]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31112Interface, SIOMS standard I-O for mechatronic systems, device drivers

Abstract

본 발명은 씨앤씨시스템에 관한 것으로써 상세하게는 시스템과의 컴파일 내지 링크과정없이 플러그앤플레이(Plug & Play)방식으로 응용모듈을 연결하도록 인터페이스규약을 정형화하므로 시스템에 부가되는 응용모듈의 확장 및 유지보수, 통합이 용이한 단일씨피유를 이용한 씨앤씨시스템에 관한 것이다. The present invention relates to a C & C system. In detail, the interface protocol is formalized to connect application modules in a Plug & Play manner without a compilation or linking process with a system, thereby expanding and maintaining application modules added to the system. It is about C & C system using single C oil which is easy to repair and integrate.

또한, 본 발명은 데이타파일을 통하여 사용자가 원하는 에이치앰아이(HMI)를 구성할 수 있도록 하는 개방형 에이치앰아이기능을 갖고, 단일 씨피유(CPU)상에서 표시제어부 기능을 갖는 에이치앰아이기능과 수치제어부의 모션제어기능을 동시에 수행하는 씨앤씨시스템에 관한 것이다. In addition, the present invention has an open HAM eye function that allows the user to configure the desired HM eye (HMI) through the data file, and the HAM eye function and numerical control unit having a display control unit function on a single CPU (CPU) C & C system that performs the motion control function of the same time.

이를 달성하기 위한 본 발명의 구성은 씨앤씨시스템의 모션제어 및 화면표시제어를 동시에 수행하는 씨피유와; 공작기기 및 자동화기기등의 하드웨어의 인터페이스 역할을 하면서 상기 씨피유를 관리하여 동작을 구동(booting)하고, 입출력을 제어하는 오퍼레이팅시스템과; 상기 하드웨어의 인터페이스를 가능케 하도록 상기 메인시스템과 링크되어 실행시키는 시스템인터페이스라이브러리(System Interface Library)와; 상기 시스템인터페이스라이브러리를 통해 상기 하드웨어를 구동제어하는 메인시스템과; 상기 메인시스템과 플러그앤플레이방식(Plug & Play)으로 연결되는 응용모듈을 포함하고, 상기 응용모듈의 화면과 상기 하드리얼타임모듈에 따라 모터 및 기기의 구동에 따른 위치변화를 화면에 표시하거나 내부 파라미터값을 설정하는 소프트리얼타임모듈과; 상기 응용모듈 및 메인시스템의 구동데이타와 상기 소프트리얼타임모듈으로 부터 인가되는 데이타를 저장하는 공유메모리와; 상기 공유메모리에 저장된 소프트리얼타임모듈의 데이타를 공유하여 상기 하드웨어를 구동제어하는 하드리얼타임모듈을 포함하는 것을 특징으로 한다. The configuration of the present invention for achieving this is CSI and perform the motion control and screen display control of the CNC system at the same time; An operating system which acts as an interface between hardware such as machine tools and automation devices, manages the CPI, drives an operation, and controls input and output; A System Interface Library, which is linked with and executed by the main system to enable the interface of the hardware; A main system for driving control of the hardware through the system interface library; It includes an application module connected to the main system and Plug & Play (Plug & Play), and displays the position change according to the drive of the motor and the device according to the screen of the application module and the hard time module on the screen or internal A soft real time module for setting parameter values; A shared memory configured to store driving data of the application module and the main system and data applied from the soft real time module; And a hard real time module configured to drive and control the hardware by sharing data of the soft real time module stored in the shared memory.

CNC시스템, HMI, 표준인터페이스함수, Plug & PlayCNC system, HMI, standard interface function, Plug & Play

Description

단일씨피유를 이용한 씨앤씨시스템{CNC system utilizing a central processing unit}CNC system utilizing a central processing unit

도 1a는 종래의 씨앤씨시스템에 있어서 소프트리얼타임 씨피유모듈과 모션제어기 씨피유모듈의 연결관계를 나타낸 블럭도,1A is a block diagram illustrating a connection relationship between a soft real-time CPI module and a motion controller CPI module in a conventional CNC system.

도 1b은 종래의 씨앤씨시스템에 있어서 응용모듈과 메인시스템의 연결관계를 나타낸 블럭도,1B is a block diagram showing a connection relationship between an application module and a main system in a conventional C & C system.

도 2는 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템의 블럭도, Figure 2 is a block diagram of the C and C system using a single C oil according to the present invention,

도 3은 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템의 소프트리얼타임듈을 나타낸 상세블럭도,3 is a detailed block diagram showing a soft real time module of a C & C system using a single C & C according to the present invention;

도 4는 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템의 응용모듈과 메인시스템의 연결관계를 나타낸 블럭도이다. 4 is a block diagram illustrating a connection relationship between an application module and a main system of a CNC system using a single C oil according to the present invention.

* 도면의 주요부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

10 : 씨피유 20 : 오퍼레이팅시스템10: CPI 20: Operating system

30 : 인터페이스라이브러리 40 : 메인시스템30: interface library 40: main system

50 : 소프트리얼타임모듈 51 : 에이치앰아이모듈50: soft real time module 51: HAM eye module

52 : 표준인터페이스함수부 53 : 응용모듈52: standard interface function 53: application module

54 : 맵매니져 60 : 공유메모리54: map manager 60: shared memory

61 ; 맵파일 70 : 하드리얼타임모듈 61; Map File 70: Hard Real-Time Module

71 : 피엘씨실행수단 72 : G코드해석수단 71: PLC execution means 72: G code interpretation means

73 : 위치경로설정수단 74 : 위치제어설정수단 73: position path setting means 74: position control setting means

75 : 씨앤씨커널매니져 81 : 아이오인터페이스 75: C & C Kernel Manager 81: Io Interface

82 : 서보인터페이스 511 : 입력신호발생수단 82: servo interface 511: input signal generating means

512 : 데이타리딩수단 513 : 머신제어수단 512: data reading means 513: machine control means

514 : 알람모니터링수단 515 : 에이치앰아이데이타파일514: alarm monitoring means 515: AM AM data file

516 : 알람백업메모리 516: alarm backup memory

본 발명은 씨앤씨시스템에 관한 것으로써 상세하게는 종래의 수치제어부와 표시제어부를 2개의 씨피유로 제어하도록 분류되어 있던 씨앤씨장치와는 다르게 수치제어부에 해당되는 모션제어모듈과 표시제어부에 해당되는 에이치앰아이실행모듈이 외부 통신이 아닌 시스템 내부의 공유공유메모리를 이용하여 하나의 씨피유상에서 동작될 수 있도록 하였고, 또한 사용자가 작성한 응용모듈이 플러그앤플레이(Plug & Play)방식으로 연결될 수 있도록 인터페이스규약을 정형화하여 시스템에 부가되는 응용모듈의 확장 및 유지보수, 통합이 용이한 단일씨피유를 이용한 씨앤씨시스템에 관한 것이다. The present invention relates to a C & C system, which is different from the C & C apparatus, which is classified to control the conventional numerical control unit and the display control unit by two CPUs, and the HAM corresponding to the motion control module and the display control unit corresponding to the numerical control unit. The iRun module can be operated on a single CPI using the shared shared memory inside the system rather than external communication, and the interface protocol is connected so that the application module written by the user can be connected by Plug & Play method. It is related to C & C system using single C.U that is easy to expand, maintain, and integrate application modules that are added to the system by formalization.

일반적으로 수치제어기(Numerical Control)는 프로그래밍, 제어장치, 공작기 계 또는 자동화기기 등의 3대 요소로 구성되어 있으나, 각 요소들이 급격한 속도로 발전을 거듭하고 있다. 이중 공작기계에서는 1종의 작업뿐만 아니라 여러 종류의 작업을 할 수 있는 머시닝 센터(Machining Center)가 선진국에서는 일반화되어 공구 자동 교환장치, 가공물 자동 탈착장치 등을 구비하여 성력화(省力化) 조업에 많은 발전을 보였고, 가공물과 공구도 자동 반송장치에서도 특수 컴퓨터를 공작기계에 비치한 것에서부터 범용 컴퓨터를 내부에 부착한 씨앤씨시스템(Computerized Numerical Control System)로 발전하였다. Generally, Numerical Control is composed of three elements such as programming, control device, machine tool or automation equipment, but each element is developing rapidly. Machining Center, which can do not only one kind of work but also various kinds of work in general machine tools, is generalized in developed countries, and is equipped with automatic tool changer and automatic removal of workpieces. Progress has been made, from work pieces and tools to automatic conveying devices, from special computers to machine tools, to computerized Numerical Control Systems with internal computers.

상기 씨앤씨시스템은 범용성이 있는 고속 전산기를 내부에 갖고 있어 직선 보간, 원호 보간, 공구경보정 등을 입력으로 주어 조정할 수 있는 기능 등이 가능하다. 또한 공구 중심 통로의 보정, 엔씨(NC)에서의 모방 작업, 고속윤곽가공 등 각종 기능을 갖고 있으며, 이들 씨앤씨에는 공구 교환장치, 가공 위치의 변환 등도 자동적으로 할 수 있는 머시닝 센터(Machining center_)로서 널리 이용된다. The C & C system has a general-purpose high-speed computer therein, so that linear interpolation, circular interpolation, tool radius compensation, and the like can be adjusted as inputs. In addition, it has various functions such as correction of tool center passage, copying in NC, high speed contour machining, etc. These C & Cs are machining centers that can automatically change the tool change device and machining position. Widely used.

이와 같은 씨앤씨시스템은 통상적으로 사용자의 조작신호 및 부가기능의 실행, 디스플레이 화면의 설정을 위한 에이치앰아이(HMI, Human Machine Interface) 모듈과, 센서 또는 모터등 하드웨어의 정밀제어를 위한 모션제어부 모듈로 구성된다. 여기서 상기 에이치앰아이모듈은 상기 씨앤씨시스템의 부가기능, 즉 공작기계 또는 자동화기기의 좌표계를 설정하는 좌표계설정수단과 엔씨프로그램(NC Program)의 편집수단, 그리고 하드웨어와의 접점신호의 이상유무를 판단하는 고장진단수단등을 포함하는 응용모듈을 포함하여 씨앤씨의 메인시스템과 연동되어 사용자의 조작에 의해 실행된다. The C & C system is typically a human machine interface (HMI) module for executing a user's operation signal and additional functions and setting a display screen, and a motion controller module for precise control of hardware such as a sensor or a motor. It is composed. In this case, the HAM module determines an additional function of the CNC system, that is, a coordinate system setting means for setting a coordinate system of a machine tool or an automation device, an NC program editing means, and an abnormality of a contact signal with hardware. It is executed by user's operation in conjunction with C & C's main system, including an application module including a fault diagnosis means.

상기와 같은 기능을 종래의 씨앤씨시스템에서는 에이치앰아이모듈을 제어하는 씨피유(1)와 모션제어모듈을 제어하는 씨피유(2)는 도 1a에 도시된 바와 같이 외부통신을 이용하여 데이타를 주고 받을 수 있도록 연결되어 있다. 이러한 통신을 이용하는 경우 통신을 요하는 데이타의 이동이 많은 경우 통신에 따른 부하가 발생되기도 하고, 통신상의 오류 및 통신케이블의 불량등의 이유로 화면표시부와 수치제어부의 인터페이스에 문제가 발생되는 경우가 있다. In the conventional C & C system, the CTU 1 controlling the HAM I module and the CTU 2 controlling the motion control module can transmit and receive data using external communication as shown in FIG. 1A. Are connected. In case of using such communication, if there is a lot of movement of data that requires communication, the load may be generated due to communication, and there may be a problem in the interface of the display unit and the numerical control unit due to communication error or poor communication cable. .

도 1b는 종래의 씨앤씨시스템에서 응용모듈과 메인시스템의 관계를 나타낸 블럭도이다. 1B is a block diagram showing a relationship between an application module and a main system in a conventional C & C system.

도 1을 참조하면, 종래의 씨앤씨시스템에서 좌표계설정 및 고장진단, 프로그램편집기등의 응용모듈(3)은 각각 메인시스템(4)과 동적으로 연결되어 하나의 모듈로 구성되어 구동되며, 응용모듈(3)중 한가지의 기능을 변경한다거나 새로운 응용모듈(3)을 상기 메인시스템(4)에 추가하기는 전체 메인시스템(4)의 원래소스를 모두 함께 컴파일해야된다. Referring to FIG. 1, in the conventional C & C system, application modules 3 such as coordinate system setting, fault diagnosis, and program editors are dynamically connected to the main system 4, respectively, and driven as a single module. To change one of the functions of 3) or add a new application module 3 to the main system 4, the original source of the entire main system 4 must be compiled together.

즉, 이와 같은 종래의 씨앤씨시스템에서 응용모듈(3)과 메인시스템(4)간의 인터페이스는 표준화된 규약이 없기 때문에 서로 다른 개발자에 의해 개발된 다수개의 응용모듈(3)간에 서로 다른 인터페이스규약에 의하여 메인시스템(4) 및 응용모듈(4)이 연결됨에 따라 시스템의 모든소스를 함께 컴파일(Compile)하여야 하는 경우가 되므로 새로운 기능을 갖는 모듈의 추가 또는 기능이 변경된 모듈만의 교체작업은 전체 시스템을 변경하지 않으면 불가능하다는 문제점이 있다. That is, in the conventional C & C system, since the interface between the application module 3 and the main system 4 does not have a standardized protocol, different interface protocols between a plurality of application modules 3 developed by different developers are used. As the main system 4 and the application module 4 are connected, it is necessary to compile all the sources of the system together. Therefore, the addition of a module having a new function or the replacement of only the module whose function has been changed requires a complete system. The problem is that it is impossible to change it.

상기와 같은 종래의 문제점을 해결하고자 안출된 본 발명은 화면표시제어 및 모션제어를 하나의 씨피유상에서 시스템 내부의 공유메모리를 이용하여 동작될 수 있는 단일씨피유를 이용한 씨앤씨시스템을 제공하는 것을 제 1 목적으로 한다. Disclosure of Invention The present invention devised to solve the above-mentioned problems has a first object of providing a C & C system using a single CSI that can operate screen display control and motion control using a shared memory inside the system on one CPI. It is done.

또한 본 발명은 응용모듈과 메인시스템간에 플러그앤플레이의 방식으로 연결관계를 구성하고, 이를 위해 응용모듈과 메인시스템간에 사용되는 기본함수를 정형화하여 인터페이스방식으로 정의한 표준인터페이스함수 및 에이치앰아이데이타파일을 이용한 에이치앰아이표시 및 변경이 가능한 씨앤씨시스템을 제공하는 것을 제 2 목적으로 한다. In addition, the present invention forms a connection relationship between the application module and the main system in a plug-and-play manner, and for this purpose, a standard interface function and HAM data file defined as an interface method by formalizing a basic function used between the application module and the main system. It is a second object of the present invention to provide a C & C system capable of displaying and changing HAM eye.

상기와 같은 목적을 달성하기 위한 본 발명의 구성은 씨앤씨시스템의 모션제어 및 화면표시제어를 동시에 수행하는 씨피유와; 공작기기 및 자동화기기등의 하드웨어의 인터페이스 역할을 하면서 상기 씨피유를 관리하여 동작을 구동(booting)하고, 입출력을 제어하는 오퍼레이팅시스템과; 상기 하드웨어의 인터페이스를 가능케 하도록 상기 메인시스템과 링크되어 실행시키는 시스템인터페이스라이브러리(System Interface Library)와; 상기 시스템인터페이스라이브러리를 통해 상기 하드웨어를 구동제어하는 메인시스템과; 상기 메인시스템과 플러그앤플레이방식(Plug & Play)으로 연결되는 응용모듈을 포함하고, 상기 응용모듈의 화면과 상기 하드리얼타임모듈에 따라 모터 및 기기의 구동에 따른 위치변화를 화면에 표시하거나 내부 파라미터값을 설정하는 소프트리얼타임모듈과; 상기 응용모듈 및 메인시스템의 구동데이타와 상기 소프트리얼타임모듈으로 부터 인가되는 데이타를 저장하는 공유메모리와; 상기 공유메모리에 저장된 소프트리얼타임모듈의 데이타를 공유하면서, 상기 하드웨어를 구동제어하는 하드리얼타임모듈을 포함한다. The configuration of the present invention for achieving the above object is the C and C to perform the motion control and the screen display control at the same time; An operating system which acts as an interface between hardware such as machine tools and automation devices, manages the CPI, drives an operation, and controls input and output; A System Interface Library, which is linked with and executed by the main system to enable the interface of the hardware; A main system for driving control of the hardware through the system interface library; It includes an application module connected to the main system and Plug & Play (Plug & Play), and displays the position change according to the drive of the motor and the device according to the screen of the application module and the hard time module on the screen or internal A soft real time module for setting parameter values; A shared memory configured to store driving data of the application module and the main system and data applied from the soft real time module; And a hard real time module configured to drive and control the hardware while sharing data of the soft real time module stored in the shared memory.

그리고 상기 하드리얼타임모듈은 상기 소프트리얼타임모듈에서 응용모듈이 구동시에 상기 공유메모리의 맵을 생성하고, 이후 상기 하드리얼타임모듈의 구성이 상기 맵에 저장된 데이타를 읽어들여 구동시에 정상적인 기능을 수행하는 지를 감지하는 씨앤씨커널매니져를 포함한다. The hard real-time module generates a map of the shared memory when an application module is driven in the soft real-time module, and then the configuration of the hard real-time module reads data stored in the map to perform a normal function. It includes C & C Kernel Manager to detect the

또한, 상기 소프트리얼타임모듈은 해당화면의 정보를 포함하는 에이치앰아이데이타파일(Human Machine Interface File)을 사용자의 입력신호에 따라 읽어들여 상기 메인시스템 및 응용모듈의 구동에 따라 해당화면을 표시하는 에이치앰아이모듈(Human Machine Interface Module)을 포함한다. The soft real time module reads a Human Machine Interface File including information of a corresponding screen according to a user input signal and displays the corresponding screen according to the operation of the main system and the application module. It includes a Human Machine Interface Module.

여기서, 상기 에이치앰아이데이타파일은 상기 표준인터페이스함수부에 링크되는 파일명과 화면번호를 입력한 파일과; 알람이 표시될 해당 화면번호를 입력한 파일과; 알람번호와 이에 해당되는 알람내용을 입력한 파일과; 화면번호와 그 화면에서 표시되는 내부변수의 위치 및 표시방법등을 입력한 파일과; 화면번호와 그 화면에서 표시되는 문자의 위치와 크기등을 입력한 파일과; 화면에 표시되는 그림파일의 이름과 위치를 입력한 파일과; 화면마다 표시되는 메뉴항목을 입력한 파일과; 각 화면에서 메뉴키를 누르는 경우 변경되고자 하는 화면번호를 입력한 파일과; 파라미터의 이름 및 값과 설명문을 표시할 수 있도록 입력한 파일중 적어도 어느하나를 포함한다. The HAM data file may include a file inputting a file name and a screen number linked to the standard interface function unit; A file for inputting a corresponding screen number for displaying an alarm; A file for inputting an alarm number and corresponding alarm content; A file for inputting a screen number, a location of internal variables displayed on the screen, and a display method thereof; A file for inputting a screen number and the position and size of characters displayed on the screen; A file for inputting the name and location of the picture file displayed on the screen; A file for inputting a menu item displayed for each screen; A file for inputting a screen number to be changed when the menu key is pressed on each screen; Include at least one of the files entered to display the parameter's name, value, and description.                         

또한, 상기 소프트리얼타임모듈은 상기 응용모듈과 링크(Linked)되고, 상기 메인시스템과는 플러그앤플레이(Plug & Play)방식으로 연결되어, 링크연결된 상기 응용모듈을 상기 메인시스템과 연동되어 실행시키는 표준인터페이스함수부를 포함한다. In addition, the soft real time module is linked with the application module, and is connected to the main system in a plug & play manner to execute the linked application module linked with the main system. Contains standard interface functions.

여기서, 상기 표준인터페이스함수부는 응용모듈의 생성, 응용모듈의 종료, 화면에 보여질때 호출되는 함수, 화면에 보여진 기능을 감추는 함수, 반복적인 작업 또는 기능으로 호출되는 함수, 메시지가 발생했을때 호출되는 함수, 문자열정보가 입력되었을때 호출되는 함수중 적어도 어느하나를 포함한다. Herein, the standard interface function unit is called when the application module is generated, the application module is terminated, a function called when it is displayed on the screen, a function that is hidden on the screen, a function called by a repetitive task or function, or a message is generated. Contains at least one of a function and a function to be called when string information is input.

이하, 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명한다. Hereinafter, with reference to the accompanying drawings a preferred embodiment of the C & C system using a single C oil according to the present invention will be described in detail.

도 2는 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템의 블럭도이다. 2 is a block diagram of a C & C system using a single C & C according to the present invention.

도 2를 참조하면, 씨피유(10)는 자동화기기 또는 공작기기등에 연결되어 구동프로그램인 메인시스템(40)을 구동시키고, 상기 메인시스템(40)에서 발생되는 프로그래밍적인 제어신호를 전기적신호로 변환시켜 연결되는 기계장치에 제어신호를 출력한다. Referring to FIG. 2, the CPI 10 is connected to an automation device or a machine tool to drive a main system 40, which is a driving program, and converts a programmable control signal generated from the main system 40 into an electrical signal. Output control signal to connected machinery.

그리고 오퍼레이팅시스템(20)은 상기 씨피유(10)의 상위계층으로써 상기 씨피유(10)를 관리하며 동작을 구동(booting)하고 입출력을 제어한다. The operating system 20 manages the CPI 10 as an upper layer of the CPI 10, drives an operation, and controls input / output.

여기서 상기 메인시스템(40)은 상기 공유메모리(60)에 저장되어 상기 씨앤씨시스템에 연결되는 자동화기기 및 공작기기등을 구동제어하는 구동프로그램을 포함 한다. 또한 상기 응용모듈(53)은 .dll확장자를 갖고 구성됨에 따라 .exe확장자를 갖는 상기 메인시스템(40)과 동적으로 연결되어 상기 메인시스템(40)과 연동되어 실행되며, 상기 메인시스템(40)의 기능외에 부가적으로 상기 하드리얼타임모듈(70)에 연결되는 각 기계장치의 구동데이타를 설정 및 변경을 할 수 있는 부가기능을 수행하며, 예를들면, 좌표계설정, 프로그램편집, 파라미터설정, 그래픽경로표시, 매크로변수의 설정, 고장진단등을 실행한다. Here, the main system 40 includes a drive program stored in the shared memory 60 to drive control the automation device and the machine tool connected to the C & C system. In addition, the application module 53 is dynamically connected to the main system 40 having the .exe extension as configured with the .dll extension is executed in conjunction with the main system 40, the main system 40 In addition to the function of performing the additional function to set and change the drive data of each mechanical device connected to the hard real-time module 70, for example, coordinate system setting, program editing, parameter setting, Executes graphic path display, macro variable setting and fault diagnosis.

그리고 시스템인터페이스라이브러리(30)는 상기 오퍼레이팅시스템(20)의 상위계층으로 연결되는 기계장치와 메인시스템(40)과의 인터페이스를 가능케 하도록 상기 메인시스템(40)과 링크되어 실행시킨다. The system interface library 30 is linked to and executed by the main system 40 to enable an interface between the main system 40 and the mechanical device connected to the upper layer of the operating system 20.

그리고 소프트리얼타임모듈(50)은 상기 메인시스템(40)과 플러그앤플레이방식으로 연결되는 다수개의 응용모듈(53)을 포함하고, 사용자의 입력 및 응용모듈(53)의 화면과 상기 메인시스템(40)의 구동에 따른 화면을 표시 및 설정한다. The soft real time module 50 includes a plurality of application modules 53 connected to the main system 40 in a plug and play manner, and includes a screen of the user input and application module 53 and the main system ( A screen according to the operation of 40) is displayed and set.

또한 상기 소프트리얼타임모듈(50)의 에이치앰아이모듈(51)은 해당화면의 정보를 포함하여 상기 공유메모리(60)에 저장된 에이치앰아이데이타파일(515)(Human Machine Interface Data File)을 사용자의 입력신호에 따라 읽어들여 상기 메인시스템(40) 및 응용모듈(53)의 구동에 따라 해당화면을 표시하고, 표준인터페이스함수부(52)는 후술되는 기본함수를 포함하여 상기 응용모듈(53)과 링크(Link)되고, 상기 메인시스템(40)과는 플러그앤플레이(Plug and play)방식으로 연결되어, 링크연결된 상기 응용모듈(53)을 상기 메인시스템(40)과 연동되도록 한다. 그리고 맵매니져(54)는 씨앤씨스템의 내부에서 사용하는 파라미터, 입력 및 출력접점, 시스템 내부의 상태정보를 관리하며 상기 응용모듈(53) 및 에이치앰아이모듈(51)의 공유메모리(60)에 액세스(Acess)를 관리한다. In addition, the HAM module 51 of the soft real-time module 50 includes the information of the corresponding screen to the user HM eye data file 515 (Human Machine Interface Data File) stored in the shared memory 60 Read according to the input signal of the main system 40 and the application module 53 to display the corresponding screen in accordance with the operation, the standard interface function unit 52 including the basic function described below the application module 53 And the main system 40 is connected to the main system 40 in a plug and play manner so that the linked application module 53 is linked with the main system 40. The map manager 54 manages parameters used in the CNC system, input and output contacts, and status information in the system. The map manager 54 manages the shared memory 60 of the application module 53 and the HAM module 51. Manage Access

또한, 공유메모리(60)는 상기 응용모듈(53) 및 메인시스템(40)의 구동데이타와 상기 소프트리얼타임모듈(50)로 부터 인가되는 데이타를 저장하고, 하드리얼타임모듈(70)은 상기 공유메모리(60)에 저장된 소프트리얼타임모듈(50)의 데이타를 읽어들여, 아이오인터페이스(81)(I/O Interface)와 서보인터페이스(82)(Servo Interface)를 통하여 연결되는 기계장치를 구동제어한다. In addition, the shared memory 60 stores driving data of the application module 53 and the main system 40 and data applied from the soft real time module 50, and the hard real time module 70 stores the data. Reads data from the soft real-time module 50 stored in the shared memory 60 to drive control the mechanical device connected via the I / O interface 81 and the servo interface 82. do.

즉, 하드리얼타임모듈(70)은 사용자가 상기 에이치앰아이모듈(51)을 통해 입력하는 조작신호에 따라 상기 소프트리얼타임모듈(50)의 각 응용모듈(53)에서 출력되는 데이타가 상기 공유메모리(60)에 저장되면, 상기 공유메모리(60)에 접근하여 해당 데이타를 읽어들여 각 구성에 연결되는 센서, 스핀들, 서보모터등을 구동제어한다. 여기서 피엘씨실행수단(71)은 사용자의 입력 및 동작조건(가공시작버튼, 스위치선택값등)에 대해 원하는 동작을 수행하도록 온/오프제어를 수행하고, G코드해석수단(72)은 G코드로 만들어진 가공프로그램을 해석하는 역할을 수행한다. 또한, 위치경로설정수단(73)은 해석된 가공프로그램을 이용해서 기계가 움직여야할 위치값들의 경로를 생성하고, 위치제어설정수단(74)은 매시간주기마다 기계위치값을 모터쪽으로 출력하고, 센서의 피드백(Feedback)신호를 수신하여 기계가 움직이는 경로상에서 정확한 위치를 갖도록 한다. 씨앤씨커널매니져(75)는 상기 소프트리얼타임모듈(50)에서 응용모듈(53)이 구동시에 상기 공유메모리(60)의 맵을 생성하고, 이후 상기 하드리얼타임모듈(70)의 구성이 상기 맵에 저장된 데이타를 읽어들여 구 동시에 정상적인 기능을 수행하는 지를 감지한다. 그리고 상기 씨앤씨커널매니져(75)는 상기 피엘씨실행수단(71) 내지 위치제어설정수단(74)에서 정상적인 구동을 하지 않으면 상기 공유메모리(60)에 알람정보를 저장하고, 이후 상기 소프트리얼타임모듈(50)에서는 상기 공유메모리(60)에 저장된 알람정보를 읽어들여 부저 또는 화면에 알람을 표시한다. That is, the hard real time module 70 shares the data output from each application module 53 of the soft real time module 50 according to an operation signal input by the user through the HAM eye module 51. When stored in the memory 60, the shared memory 60 is accessed to read the corresponding data to drive and control the sensors, spindles, servomotors, and the like connected to each component. Here, the PLC execution means 71 performs on / off control to perform a desired operation with respect to a user's input and operation conditions (processing start button, switch selection value, etc.), and the G code analysis means 72 performs a G code. It analyzes the part program created by the machine. In addition, the position path setting means 73 generates a path of the position values to be moved by the machine using the analyzed machining program, the position control setting means 74 outputs the machine position value to the motor every time period, the sensor Receive feedback signal of the to ensure that the machine has the correct position on the moving path. The CNC kernel manager 75 generates a map of the shared memory 60 when the application module 53 is driven in the soft real time module 50, and then the configuration of the hard real time module 70 is determined. It reads the data stored in and detects whether it is performing normal function at the same time. The CNC kernel manager 75 stores the alarm information in the shared memory 60 when the PLC execution means 71 to the position control setting means 74 do not operate normally, and then the soft real time module. In operation 50, alarm information stored in the shared memory 60 is read and an alarm is displayed on a buzzer or a screen.

그리고, 하드리얼타임모듈(70)은 시스템인터페이스라이브러리(30)(System Interface Library)를 통하여 연결된 장비의 모션제어기능과 온/오프제어를 수행하며, 장비로부터 피드백(Feed-back)되는 위치정보등의 신호를 받을 수 있다. The hard real time module 70 performs a motion control function and an on / off control of a connected device through a system interface library 30, and provides position information fed back from the device. You can receive a signal.

따라서 본 발명은 화면표시제어기능을 갖는 에이치앰아이모듈(50)을 통하여 설정 및 변경된 데이타는 공유메모리(60)에 저장되고, 상기 하드리얼타임모듈(70)은 상기 공유메모리(60)에 저장된 데이타를 읽어들여 아이오인터페이스(81) 및 서보인터페이스(82)를 통하여 연결되는 자동화기기 및 공작기기등을 제어하게 된다. 즉, 본 발명은 공유공유메모리(60)를 통한 상기 소프트리얼타임모듈(50) 및 하드리얼타임모듈(70)이 데이타를 상호 전달함에 따라 단일 씨피유(10)를 이용한 화면표시 및 모션제어가 가능하다. Therefore, in the present invention, the data set and changed through the HAM module 50 having the screen display control function are stored in the shared memory 60, and the hard real time module 70 is stored in the shared memory 60. The data is read to control automation devices and machine tools connected through the IO interface 81 and the servo interface 82. That is, according to the present invention, the soft real time module 50 and the hard real time module 70 transmit data to each other through the shared shared memory 60 so that the screen display and motion control using the single CPE 10 are possible. Do.

도 3은 본 발명에 따른 단일씨피유를 이용한씨앤씨시스템에서 소프트리얼타임모듈을 나타낸 상세블럭도이다. Figure 3 is a detailed block diagram showing a soft real-time module in the C and C system using a single C oil according to the present invention.

도 3을 참조하면, 에이치앰아이모듈(51)에서 입력신호발생수단(511)은 사용자가 키보드를 이용하여 소정의 조작신호를 입력하면 이를 수신하여 입력된 조작신호에 해당되는 제어신호를 발생하고, 데이타리딩수단(512)은 에이치앰아이데이타파 일(515)을 읽어들여 이를 화면에 표시하고, 머신제어수단(513)은 사용자의 조작신호에 따라 연결된 기계장치의 제어신호를 출력하고, 알람모니터링수단(514)은 연결되는 자동화기기 및 공작기기등의 구동상태를 모니터링하여 알람백업메모리(516)에 저장된 알람정보에 해당되면 부저 내지 화면에 표시토록 제어하여 각 하드웨어의 이상유무를 표시하도록 한다. 여기서 상기 에이치앰아이데이타파일(515)과 알람백업메모리(516)는 상기 공유메모리(60)와는 별도의 공간에 저장된다. Referring to FIG. 3, when the user inputs a predetermined operation signal using the keyboard, the input signal generating means 511 in the HAM module 51 generates a control signal corresponding to the input operation signal. The data reading means 512 reads the HAM data file 515 and displays it on the screen. The machine control means 513 outputs a control signal of a connected mechanical device according to a user's operation signal, and generates an alarm. The monitoring means 514 monitors the driving state of the connected automation device and the machine tool, and if the alarm information is stored in the alarm backup memory 516, it controls to display on the buzzer or the screen to display the abnormality of each hardware. . The HAM data file 515 and the alarm backup memory 516 are stored in a separate space from the shared memory 60.

또한 에이치앰아이데이타파일(515)은 .txt확장자로 형성되어 상기 공유메모리(60)에 저장되며 상기 메인시스템(40) 및 응용모듈(53)의 구동에 따른 각 디스플레이화면의 정보를 포함함에 따라 사용자가 각 파일에 포함된 정보를 수정하므로써 화면을 설정 또는 변경할 수 있으며 이는 하기와 같다. In addition, the HAM data file 515 is formed as a .txt extension and stored in the shared memory 60 and includes information on each display screen according to the operation of the main system 40 and the application module 53. The user can set or change the screen by modifying the information contained in each file, as follows.

상기 에이치앰아이데이타파일(515)은 메인시스템(40) 및 응용모듈(53)의 구동시에 설정된 각 화면의 정보를 포함하며, 이를 상기 데이타리딩수단(512)이 상기 에이치앰아이데이타파일(515)을 읽어들임으로써 상기 응용모듈(53) 또는 메인시스템(40)의 구동에 따른 각각의 화면을 확인하여 해당 화면을 출력하게 된다.The HAM data file 515 includes information of each screen set when the main system 40 and the application module 53 are driven, and the data reading means 512 stores the HAM data file 515. By reading), each screen according to the driving of the application module 53 or the main system 40 is checked and the corresponding screen is output.

따라서 사용자가 상기 표준인터페이스함수부(52)의 기본함수에 의해 구동되는 응용모듈(53)의 화면번호와 파일명을 상기 에이치앰아이데이타파일(515)에 포함된 asf.txt파일에 입력하므로써 상기 표준인터페이스함수부(52)의 기본함수에 의한 인터페이스포맷에 따라서 개발된 응용모듈(53)을 링크할 수 있다. 또한, vdata.txt와 stext.txt, bmp.txt파일에서 화면번호와 그 화면에 표시되는 변수와 문자의 위치와 크기를 설정하고, BMP형태의 그림파일의 이름과 위치를 입력하므로써 해당 화 면을 구성한다. 또한 사용자는 상기 에이치앰아이데이타파일(515)의 ftext.txt와 wtrans.txt파일을 통하여 화면에 표시되는 메뉴와 키를 설정하고, 각 메뉴의 선택에 따라서 이동되는 화면을 설정할 수 있고, 알람설정시에는 almdata.txt파일을 통해 알람번호와 그 내용을 설정할 수 있다. Therefore, the user inputs the screen number and file name of the application module 53 driven by the basic function of the standard interface function 52 into the asf.txt file included in the HAM data file 515. It is possible to link the developed application module 53 according to the interface format by the basic function of the interface function unit 52. Also, in the vdata.txt, stext.txt, and bmp.txt files, set the screen number, the position and size of variables and characters displayed on the screen, and enter the name and location of the picture file in BMP format to display the screen. Configure. In addition, the user may set menus and keys displayed on the screen through the ftext.txt and wtrans.txt files of the HAM data file 515, and set the screen to be moved according to the selection of each menu, and set alarms. In case of alarm, alarm number and its contents can be set through almdata.txt file.

그리고 알람백업메모리(516)는 상기 공유메모리(60)와는 별도의 구성으로써 연결되는 각 기계장치의 이상상태정보를 포함하고, 상기 알람모니터링수단(514)은 각 장비의 이상유무를 확인하고, 확인된 결과치와 상기 알람백업메모리(516)에 저장된 정보를 비교하여 장비의 이상유무를 표시하게 된다. 이때 상기 알람백업메모리(516)에 저장된 정보는 상기 데이타리딩수단(512)에 의해 독출되어 상기 알람모니터링수단(514)에 인가되며, 상기 알람모니터링수단(514)은 상기 정보와 측정치를 비교하여 장비의 이상유무를 판단하게 된다. In addition, the alarm backup memory 516 includes abnormal state information of each mechanical device connected as a separate configuration from the shared memory 60, and the alarm monitoring means 514 checks whether there is an abnormality of each device, and confirms. The result is compared with the information stored in the alarm backup memory 516 to display the presence or absence of equipment. The information stored in the alarm backup memory 516 is read by the data reading means 512 and applied to the alarm monitoring means 514. The alarm monitoring means 514 compares the information with the measured value. It will determine whether there is an abnormality.

또한 상기 맵매니져(54)는 상술한 바와 같이 상기 응용모듈(53)과 에이치앰아이모듈(51)의 공유메모리(60) 액세스를 관리하며, 이때 상기 에이치앰아이모듈(51) 및 응용모듈(53)은 상기 맵매니져(54)를 통해 상기 공유메모리(60)에 저장된 맵파일(61)에 데이타를 쓰거나 읽을 수 있다. In addition, the map manager 54 manages access to the shared memory 60 of the application module 53 and the HAM module 51 as described above, wherein the HAM eye module 51 and the application module ( 53 may write or read data to the map file 61 stored in the shared memory 60 through the map manager 54.

따라서 상기 에이치앰아이모듈(51)의 상기 입력신호발생수단(511)에 의해 사용자가 다수개의 응용모듈(53)중 어느하나를 선택하면, 상기 표준인터페이스함수부(52)에 링크연결된 응용모듈(53)이 상기 공유메모리(60)에 적재되어 실행된다. Therefore, when the user selects any one of the plurality of application modules 53 by the input signal generating means 511 of the HAM module 51, the application module (link) connected to the standard interface function unit 52 ( 53) is loaded into the shared memory 60 and executed.

즉, 상기 표준인터페이스함수부(52)는 상기 에이이앰아이모듈의 입력신호발생수단(511)에서 인가되는 사용자조작신호에 따라서 해당 응용모듈(53)을 구동시키 며, 이때 상기 표준인터페이스함수부(52)는 상기 응용모듈(53)과 링크연결되고 상기 에이치앰아이모듈(51)을 구동시키는 메인시스템(40)과는 플러그앤플레이(Plug & Play)방식으로 연결되며 이는 도 4에 도시된 바와 같다. That is, the standard interface function unit 52 drives the corresponding application module 53 according to a user manipulation signal applied from the input signal generating means 511 of the AM eye module, and at this time, the standard interface function unit ( 52 is connected to the application module 53 and is connected to the main system 40 for driving the HAM eye module 51 in a Plug & Play manner, as shown in FIG. same.

도 4 를 참조하면, 상기 표준인터페이스함수부(52)는 상술한 바와 같이 상기 에이치앰아이데이타파일(515)에서 Asf.txt파일에 상기 표준인터페이스함수부(52)와 링크연결되는 화면번호 및 응용모듈의 파일명을 입력하므로써 .dll확장자를 갖는 응용모듈(53)과 링크되여 연결되고, 상기 메인시스템(40)과의 컴파일단계에서 링크되지 않고 플러그앤플레이방식을 적용하여 연결된다. Referring to FIG. 4, the standard interface function unit 52 is a screen number and an application which are linked to the standard interface function unit 52 in the Asf.txt file in the HAM file 515 as described above. By inputting the filename of the module, it is linked and connected to the application module 53 having the .dll extension, and is connected by applying a plug and play method without being linked in the compilation step with the main system 40.

그러므로 상기 표준인터페이스함수부(52)는 상기 에이치앰아이모듈(51)을 통하여 사용자의 선택신호에 의한 상기 메인시스템(40)의 호출에 응해 응용모듈(53)을 구동시키는 역할을 하며, 이때 상기 화면에 표시되는 응용모듈(53)은 상기 표준인터페이스함수부(52)의 기본함수에 따라 표시된다. 여기서 상기 표준인터페이스함수부(52)의 정형화된 기본함수는 하기와 같다. Therefore, the standard interface function unit 52 serves to drive the application module 53 in response to a call of the main system 40 by the user's selection signal through the HAM module 51, wherein the standard interface function unit 52 The application module 53 displayed on the screen is displayed according to the basic function of the standard interface function 52. Here, the standardized basic function of the standard interface function unit 52 is as follows.

따라서, 상기 응용모듈(53)은 상기 메인시스템(40)의 호출에 의해 구동시에는 상기 표에서 데이타초기화기능을 구현하는 함수가 호출되고, 종료, 화면에 보여지는 기능, 화면에 감추어지는 기능, 반복적인 작업 및 감시해야되는 기능, 메시지가 발생했을 때 실행되는 기능, 문자열정보가 입력시 호출되는 됨에 따라 이를 처리하는 각각의 함수들이 경우에 따라서 각각 호출되어 상기 에이치앰아이모듈(51)의 구동에 의해 화면에 표시된다. Therefore, when the application module 53 is driven by a call of the main system 40, a function for implementing a data initialization function is called in the table, and the function of being terminated, displayed on the screen, hidden on the screen, Repetitive tasks and functions to be monitored, functions to be executed when a message is generated, and each function to process them as the string information is called upon input is driven in some cases to drive the HAM module 51 Is displayed on the screen.

즉, 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템은 상기의 에이치앰아 이데이타파일(515)에서 Asf.txt에 상기 표준인터페이스함수부(52)에 링크되는 응용모듈(53)의 파일명과 화면번호를 입력하므로써 상기 표준인터페이스함수부(52)와 링크되고, 상기 표준인터페이스함수부(52)는 후술되는 정형화된 기본함수를 포함하므로써 각 응용모듈(53)의 인터페이스규약을 설정한다. 따라서 서로다른 회사 또는 개발자에 의해 개발된 각 응용모듈(53)이 본 발명이 적용된 씨앤씨시스템에 설치되어 메인시스템(40)에 의해 구동에 의해 구동시에는 상기 표준인터페이스함수부(52)의 기본함수에 의해 동일한 기능을 구현할 수 있게 된다. That is, in the C & C system using the single C oil according to the present invention, the file name and the screen number of the application module 53 linked to the standard interface function unit 52 are linked to Asf.txt in the H.A.data file 515. By input, it is linked with the standard interface function unit 52, and the standard interface function unit 52 sets the interface protocol of each application module 53 by including the standard basic function described later. Accordingly, each application module 53 developed by different companies or developers is installed in the C & C system to which the present invention is applied, and when driven by the main system 40, the basic function of the standard interface function unit 52 is performed. It is possible to implement the same function.

이하에서는 상기와 같은 구성을 포함하는 본 발명의 작용을 도 2 내지 도 4를 이용하여 상세히 설명한다. Hereinafter, the operation of the present invention including the above configuration will be described in detail with reference to FIGS. 2 to 4.

사용자가 구동전원을 온하게 되면, 씨피유(10)가 구동되어 오퍼레이팅시스템(20)이 실행되므로 메인시스템(40)이 초기화된다. 그리고 상기 메인시스템(40)의 구동에 따라서 상기 에이치앰아이모듈(51)은 상기 메인시스템(40)의 초기화면을 상기 에이치앰아이데이타파일(515)을 읽어들여 상기 메모리(60)에서 초기화면에 해당하는 내부정보의 화면을 표시한다.When the user turns on the driving power, the CPI 10 is driven and the operating system 20 is executed so that the main system 40 is initialized. In response to the operation of the main system 40, the HAM eye module 51 reads the HAM eye data file 515 from the initial screen of the main system 40 and initializes the initial screen of the memory 60 in the memory 60. Displays the screen of internal information corresponding to

이때 사용자가 키보드를 통하여 좌표계설정등의 부가기능을 수행하기 위하여 해당 응용모듈(53)을 선택하면, 상기 입력신호발생수단(511)은 사용자의 키보드조작에 따른 입력신호를 발생하여 상기 표준인터페이스함수부(52)를 통하여 해당 응용모듈(53)을 호출한다. At this time, if the user selects the corresponding application module 53 to perform additional functions such as coordinate system setting through the keyboard, the input signal generating means 511 generates the input signal according to the user's keyboard operation to generate the standard interface function. The application module 53 is called through the unit 52.

그러므로 상기 응용모듈(53)은 상기 표준인터페이스함수부(52)에 포함된 기본함수에 의해 기능을 구현하며, 상기 에이치앰아이모듈(51)에서 상기 데이타리딩 수단(512)은 에이치앰아이데이타파일(515)에서 상기 응용모듈(53)의 해당 화면정보를 읽어들여 해당 화면을 표시하게 된다. Therefore, the application module 53 implements a function by a basic function included in the standard interface function unit 52, and the data reading means 512 in the HAM module 51 is an HAM data file. In operation 515, the corresponding screen information of the application module 53 is read and the corresponding screen is displayed.

그러므로 사용자는 화면에 표시되는 각 응용모듈(53)을 통해 좌표계설정 및 매크로변수를 설정하게 되며, 이때 생성되는 데이타는 상기 맵매니져(54)를 통해 공유메모리(60)에 파일로써 저장된다. Therefore, the user sets coordinate system settings and macro variables through each application module 53 displayed on the screen, and the generated data is stored as a file in the shared memory 60 through the map manager 54.

그리고 상기 하드리얼타임모듈(70)에서 상기 에이치앰아이모듈(50)의 구동에 따라 운전시작이라는 명령에 해당하는 상기 공유메모리(60)에 저장된 데이타가 변경되면, 상기 피엘씨실행수단(71) 내지 위치제어설정수단(74)은 생성됨 맵에 저장된 데이타를 읽어들여 상기 아이오인터페이스(81) 서보인터페이스(82)에 연결되는 기계장치를 제어한다.When the data stored in the shared memory 60 corresponding to the command to start operation is changed by the hard real time module 70 according to the driving of the HAM module 50, the PLC execution means 71 The position control setting means 74 reads the data stored in the generated map and controls the mechanism connected to the I / O interface 81 servo interface 82.

이때 상기 씨앤씨커널매니져(75)는 상기 피엘씨실행수단(71) 내지 위치제어수단(74)의 동작을 감시하게 되며, 이중 어느하나에서 이상동작이 감지되면, 이를 공유메모리(60)에 전달하여 저장하게 된다. 그러므로 알람모니터링수단(514)은 상기 공유메모리(60)에 저장된 이상정보를 읽어들여 상기 알람백업메모리(516)에 저장된 알람데이타와 비교를 하여 해당되면, 부저 또는 화면에 이를 표시하게 된다. At this time, the C & C kernel manager 75 monitors the operation of the PLC execution means 71 to the position control means 74, if any of the abnormal operation is detected, and transfers it to the shared memory 60 Will be saved. Therefore, the alarm monitoring means 514 reads the abnormality information stored in the shared memory 60 and compares it with the alarm data stored in the alarm backup memory 516 and displays it on the buzzer or the screen if applicable.

또한, 사용자가 자신의 목적에 맞는 신규 응용모듈(53)을 탑재시에는, 사용자가 키보드를 조작하면 상기 입력신호발생수단(511)은 사용자의 키보드조작에 따른 입력신호를 발생하고, 상기 데이타리딩수단(512)은 상기 에이치앰아이데이타파일(515)을 독출하여 화면에 표시하고, 화면에 표시된 상기 에이치앰아이데이타파일(515)에 신규 응용모듈(53)의 화면번호 및 이름을 입력하여 상기 표준인터페이스함 수부(52)와 링크시키고, 화면에 표시되는 문자의 크기, 알람을 표시하는 화면번호 및 내용, 그림파일의 위치 및 크기, 메뉴항목의 설정 및 메뉴항목의 선택에 따른 이동화면번호, 파라미터의 이름 및 값과 설명등의 정보를 입력하므로써 신규 탑재되는 응용모듈(53)의 화면을 설정한다. In addition, when the user mounts the new application module 53 suitable for his purpose, when the user operates the keyboard, the input signal generating means 511 generates an input signal according to the user's keyboard operation, and the data reading. The means 512 reads the HAM data file 515 and displays it on the screen, and inputs the screen number and name of the new application module 53 into the HAM data file 515 displayed on the screen. Link with the standard interface box 52, the size of the characters displayed on the screen, the screen number and contents to display the alarm, the position and size of the picture file, the setting of the menu item and the moving screen number according to the selection of the menu item, By inputting information such as parameter name, value, and description, the screen of the newly installed application module 53 is set.

또한, 본 발명은 상기 표준인터페이스함수부(52)의 정형화된 기본함수를 통하여 상기 응용모듈(53)의 기능을 구현하게 되며 이를 상세히 설명하면, 생성(Create)함수를 통해 응용모듈의 로딩시에 공유메모리생성, 리소스생성, 데이타초기화등 처음에 한번만 해야될 기능들을 구현하고, 종료(Destroy)함수를 통해 시스템의 종료시에 공유메모리파괴, 리소스파괴등의 기능을 구현한다. 또한, 표시(Show)함수와 숨김(Hide)함수를 통해 화면에 표시되는 기능 및 감추어지는 기능을 구현하고, 반복(Refresh)함수를 통해 시스템의 타이머에 의해 일정시간에 반복적으로 실행되는 반복적인 작업이나 계속해서 감시해야되는 등의 기능을 구현하고, 메세지호출(Paint)함수를 이용하여 시스템의 메세지를 호출할 수 있고, 크기(Size)함수를 통해 응용모듈의 화면크기를 설정하며, 메세지처리(WndProc)함수를 통해 시스템에서 다양한 메세지가 발생했을때 각 메세지를 서로 연결하여 필요한 메세지를 받아서 처리하는 기능을 설정하고, 키입력(KeyData)함수를 통하여 사용자가 입력한 문자열을 받아서 처리하는 기능을 설정하게 된다. In addition, the present invention implements the functions of the application module 53 through the standardized basic functions of the standard interface function 52. When this is described in detail, the loading of the application module through the create function It implements functions that need to be done only once, such as shared memory creation, resource creation, and data initialization, and implements functions such as shared memory destruction and resource destruction at system shutdown through the Destroy function. In addition, it implements the function to be displayed on the screen and the hidden function through the Show function and the Hide function, and the repetitive task that is repeatedly executed at a certain time by the timer of the system through the Refresh function. It is possible to implement functions such as continuous monitoring, call the system messages using the message function, set the screen size of the application module through the size function, and process the message ( WndProc) is a function that connects each message to each other and receives necessary messages when various messages occur in the system through the WndProc) function, and sets a function that receives and processes the string entered by the user through the KeyData function. Done.

즉, 본 발명은 상기 표준인터페이스함수부(52)와 응용모듈(53)간에 링크연결관계를 갖고, 상기 표준인터페이스함수부(52)와 메인시스템(40)간에는 정형화된 기본함수로써 플러그앤플레이방식으로 연결됨에 따라 신규 응용모듈(53)의 탑재시에 별도의 컴파일(Compile)과정과 링크과정을 거치치지 않고도 상기 에이치앰아이데이타파일(515)의 Asf.txt파일에 상기 표준인터페이스함수부(52)에 링크되는 응용모듈(53)을 지정하므로써 상기 응용모듈(53)을 디엘엘(DLL, Dynamic Link Library)방식으로 연결시킴이 가능하다. That is, the present invention has a link connection relationship between the standard interface function unit 52 and the application module 53, and the plug and play method as a standard basic function between the standard interface function unit 52 and the main system 40. The standard interface function unit 52 is stored in the Asf.txt file of the HAM data file 515 without going through a separate compilation process and a link process when the new application module 53 is mounted. By designating the application module 53 to be linked to) it is possible to connect the application module 53 in the DL (DLL, Dynamic Link Library) method.

본 발명은 특정의 바람직한 실시예에 관련하여 도시하고 설명하였지만, 이하의 특허청구범위에 의해 마련되는 본 발명의 정신이나 분야를 이탈하지 않는 한도 내에서 본 발명이 다양하게 개조 및 변화될 수 있다는 것을 당업계에서 통상의 지식을 가진 자는 용이하게 알 수 있다.While the invention has been shown and described with respect to certain preferred embodiments, it will be appreciated that the invention can be modified and modified in various ways without departing from the spirit or scope of the invention as set forth in the claims below. One of ordinary skill in the art will readily know.

상술한 바와 같이 본 발명에 따른 단일씨피유를 이용한 씨앤씨시스템에서는 시스템의 운영시에 발생되는 상황을 구분하여 정형화된 기본함수를 정의하였고, 상기 정형화된 기본함수에 제공된 인터페이스를 이용하여 필요한 기능을 구현함에 따라 응용모듈의 신규 탑재 또는 제거가 용이하여 사용자의 요구에 맞는 새로운 형태의 에이치앰아이 구성이 손쉬워지고, 제어기의 기능향상에 드는 작업시간이 대폭 절약되는 효과가 있다.As described above, in the C & C system using the single C oil according to the present invention, a standardized basic function is defined by distinguishing a situation occurring during the operation of the system, and the necessary functions are implemented by using the interface provided in the standardized basic function. Accordingly, the application module can be easily installed or removed, thereby easily constructing a new type of HAME suitable for the user's needs, and greatly reducing work time for improving the function of the controller.

또한, 단일 씨피유상에서 화면표시기능과 수치제어기능을 동시에 처리하게 됨으로써 씨앤씨시스템의 하드웨어구성을 간단히 할 수 있게 되었으며, 시스템의 안정성 확보 및 유지보수에 소요되는 시간과 비용을 대폭 줄일 수 있게 되었다. In addition, since the screen display function and the numerical control function are simultaneously processed on a single CPI, the hardware configuration of the C & C system can be simplified, and the time and cost required for securing and maintaining the stability of the system can be greatly reduced.

Claims (6)

삭제delete 삭제delete 삭제delete 삭제delete 씨앤씨시스템의 모션제어 및 화면표시제어를 동시에 수행하는 씨피유(10)와; 공작기기 및 자동화기기등의 하드웨어의 인터페이스 역할을 하면서 상기 씨피유(10)를 관리하여 동작을 구동(booting)하고, 입출력을 제어하는 오퍼레이팅시스템(20)과; 상기 하드웨어의 인터페이스를 가능케 하도록 상기 메인시스템(40)과 링크되어 실행시키는 시스템인터페이스라이브러리(30)(System Interface Library)와; 상기 시스템인터페이스라이브러리(30)를 통해 상기 하드웨어를 구동제어하는 메인시스템(40)과; 상기 메인시스템(40)과 플러그앤플레이방식(Plug & Play)으로 연결되는 응용모듈(53)을 포함하고, 상기 응용모듈(53)의 화면과 상기 하드리얼타임모듈(70)에 따라 모터 및 기기의 구동에 따른 위치변화를 화면에 표시하거나 내부 파라미터값을 설정하고, 상기 응용모듈(53)을 메인시스템(40)과 연동되어 실행시키는 표준인터페이스함수부(52)를 구비하는 소프트리얼타임모듈(50)과; 상기 응용모듈(53) 및 메인시스템(40)의 구동데이타와 상기 소프트리얼타임모듈(50)으로 부터 인가되는 데이타를 저장하는 공유메모리(60)와; 상기 공유메모리(60)에 저장된 소프트리얼타임모듈(50)의 데이타를 공유하면서, 상기 하드웨어를 구동제어하는 하드리얼타임모듈(70)을 포함하고, 상기 하드리얼타임모듈(70)은 소프트리얼타임모듈(50)에서 응용모듈(53)이 구동시에 상기 공유메모리(60)에 생성되는 맵을 정의하고, 이후 상기 하드리얼타임모듈(70)에서 상기 맵에 저장된 데이타를 읽어들여 모션제어를 실행시 정상적인 구동을 수행하는 지를 감시하는 씨앤씨커널매니져(75)를 포함하고, 상기 소프트리얼타임모듈(50)은 해당화면의 정보를 포함하는 에이치앰아이데이타파일(515)(Human Machine Interface File)을 사용자의 입력신호에 따라 읽어들여 상기 메인시스템(40) 및 응용모듈(53)의 구동에 따라 해당화면을 표시하는 에이치앰아이모듈(51)(Human Machine Interface Module)을 포함하는 것을 특징으로 하는 단일씨피유를 이용한 씨앤씨시스템에 있어서,CPI 10 for simultaneously performing motion control and screen display control of the C & C system; An operating system 20 which serves as an interface of hardware such as a machine tool and an automation device, drives the CPI 10 to drive an operation, and controls input and output; A system interface library (30) for linking and executing the main system (40) to enable the interface of the hardware; A main system (40) for driving control of the hardware through the system interface library (30); It includes an application module 53 connected to the main system 40 and the Plug & Play (Plug & Play), the motor and the device according to the screen of the application module 53 and the hard real time module 70 Soft real-time module having a standard interface function unit 52 for displaying the position change according to the operation of the screen or setting the internal parameter value, and executes the application module 53 in conjunction with the main system 40 ( 50); A shared memory (60) for storing driving data of the application module (53) and the main system (40) and data applied from the soft real time module (50); And a hard real time module 70 for controlling driving of the hardware while sharing data of the soft real time module 50 stored in the shared memory 60, wherein the hard real time module 70 is a soft real time. The module 50 defines a map generated in the shared memory 60 when the application module 53 is driven, and then executes motion control by reading data stored in the map in the hard real time module 70. And a CNC kernel manager 75 for monitoring whether normal driving is performed, and the soft real time module 50 uses a human machine interface file 515 including information of a corresponding screen. It is characterized in that it comprises a HM eye module 51 (Human Machine Interface Module) for reading according to the input signal of the main system 40 and the application module 53 to display the corresponding screen In the C & C system using IL CUI, 상기 에이치앰아이데이타파일(515)은The AM AM data file 515 is 상기 표준인터페이스함수부(52)에 링크되는 파일명과 화면번호를 입력한 파일과;A file inputting a file name and a screen number linked to the standard interface function unit 52; 알람이 표시될 해당 화면번호를 입력한 파일과;A file for inputting a corresponding screen number for displaying an alarm; 알람번호와 이에 해당되는 알람내용을 입력한 파일과;A file for inputting an alarm number and corresponding alarm content; 화면번호와 그 화면에서 표시되는 내부변수의 위치 및 표시방법등을 입력한 파일과;A file for inputting a screen number, a location of internal variables displayed on the screen, and a display method thereof; 화면번호와 그 화면에서 표시되는 문자의 위치와 크기등을 입력한 파일과;A file for inputting a screen number and the position and size of characters displayed on the screen; 화면에 표시되는 그림파일의 이름과 위치를 입력한 파일과;A file for inputting the name and location of the picture file displayed on the screen; 화면마다 표시되는 메뉴항목을 입력한 파일과;A file for inputting a menu item displayed for each screen; 각 화면에서 메뉴키를 누르는 경우 변경되고자 하는 화면번호를 입력한 파일과;A file for inputting a screen number to be changed when the menu key is pressed on each screen; 파라미터의 이름 및 값과 설명문을 표시할 수 있도록 입력한 파일중 적어도 어느하나를 포함하는 것을 특징으로 하는 단일씨피유를 이용한 씨앤씨시스템. C & C system using a single C, including at least one of the input file to display the name and value of the parameter and the comment. 제 5 항에 있어서, 상기 표준인터페이스함수부(52)는 The method of claim 5, wherein the standard interface function 52 응용모듈의 생성, 응용모듈의 종료, 화면에 보여질때 호출되는 함수, 화면에 보여진 기능을 감추는 함수, 반복적인 작업 또는 기능으로 호출되는 함수, 메시지가 발생했을때 호출되는 함수, 문자열정보가 입력되었을때 호출되는 함수중 적어도 어느하나를 포함하는 것을 특징으로 하는 단일씨피유를 이용한 씨앤씨시스템. The creation of an application module, the termination of the application module, the function called when it is displayed on the screen, the function that is hidden on the screen, the function called with repetitive tasks or functions, the function called when a message occurs, the string information C & C system using a single C, including at least one of the functions called when.
KR1020040099838A 2004-12-01 2004-12-01 CNC system utilizing a central processing unit KR100642182B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020040099838A KR100642182B1 (en) 2004-12-01 2004-12-01 CNC system utilizing a central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020040099838A KR100642182B1 (en) 2004-12-01 2004-12-01 CNC system utilizing a central processing unit

Publications (2)

Publication Number Publication Date
KR20060061001A KR20060061001A (en) 2006-06-07
KR100642182B1 true KR100642182B1 (en) 2006-11-02

Family

ID=37157610

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040099838A KR100642182B1 (en) 2004-12-01 2004-12-01 CNC system utilizing a central processing unit

Country Status (1)

Country Link
KR (1) KR100642182B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160075062A (en) 2014-12-19 2016-06-29 (주)에로바테크놀러지 Cnc machine preset system using cmm measuring machine and method thereof

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495590A (en) * 2011-12-20 2012-06-13 上海三一精机有限公司 Electric adjustment method of numerical control system
CN102540967A (en) * 2012-03-10 2012-07-04 苏州佰思迈信息咨询有限公司 Numerical control (NC) machine control system
US10054926B2 (en) * 2013-09-24 2018-08-21 Mitsubishi Electric Corporation Programmable controller and control method of programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160075062A (en) 2014-12-19 2016-06-29 (주)에로바테크놀러지 Cnc machine preset system using cmm measuring machine and method thereof

Also Published As

Publication number Publication date
KR20060061001A (en) 2006-06-07

Similar Documents

Publication Publication Date Title
US5485620A (en) Integrated control system for industrial automation applications
US5950006A (en) Object-oriented programmable controller
US7505817B2 (en) Programming automation by demonstration
US9483043B2 (en) Method and system for programmable numerical control
US5644487A (en) Monitoring and control system and method
JP4952401B2 (en) PLC
EP1906275B1 (en) Natively retaining project documentation in a controller
KR20000022660A (en) A processor-based process control system with intuitive programming capabilities
JP2009501984A (en) Method of operating and monitoring a control device, corresponding operation / monitoring device, control device and machine comprising such a control device, method of using the method, and data storage medium
JP2004524620A (en) Method and apparatus for programming a fail-safe control system
US20120117548A1 (en) System and method for free form comments for a programmable logic controller
EP1650618B1 (en) Systems and methods that facilitate management of add-on instruction generation, selection, and/or monitoring during execution
US7386359B2 (en) Device and method for testing machine tools and production machines
US20240025034A1 (en) Enhancement of human-machine interface (hmi) for controlling a robot
KR100642182B1 (en) CNC system utilizing a central processing unit
WO2019167512A1 (en) Display device, screen generation method, and screen generation program
JP2007086921A (en) Machinery control program execution system
JP3847585B2 (en) Editor registration device, registration program, and recording medium recording the same
CN110968051B (en) Method and engineering system for planning an automation system
JP4556787B2 (en) Programmable controller editing device
US5239476A (en) Multi-level state language controller for multi-threaded machine control
US7107119B2 (en) Controller for a machine tool or production machine
CN112147949A (en) Parameter management device and management system thereof
WO2019054929A1 (en) A method of configuring an automation system
JP3795357B2 (en) Editor device, editor program, and recording medium recording the same

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

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20130830

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20140821

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20161010

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20170920

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20181022

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20191010

Year of fee payment: 14