Claims (14)
다수의 피제어부로 부터의 입력 신호가 인가되는 입력부와, 피제어부에 대한 다수의 출력 신호가 인가되는 출력부와, 기능 선택키와 데이타 입력키로 구성되며, 그라프 세트 도형을 문자화한 5종류의 축소 명령과 2종류의 기호에 의해 상기 피제어부에 대한 제어 프로그램을 작성할 수 있는 프로그램 로더와, 상기 프로그램 로더로 부터 순차 입력된 제어 프로그램의 편집된 프로그램의 기능코드 데이타와 상기 기능코드에 따른 기계어 실행 파일을 기억하기 위한 프로그램 메모리와, 상기 기능 선택키와 데이타 입력키의 조작에 따라 입력되는 키 입력 데이타의 해석과 각 명령문에 대한 기능 판별을 하고 기능코드를 생성하여 상기 프로그램 메모리의 해당 메모리 블럭에 기록시키는 편집기와, 상기 편집된 기능코드에 따라 기계어 코드로 변환하고 각 명령에 따른 기계어 코드 기입 순서대로 기계어 실행 파일을 작성하는 컴파일러와, 기계어 실행 파일을 순차적으로 기계어 실행 파일을 작성하는 컴파일러와, 기계어 실행 파일을 순차적으로 실행하는 실행자로 구성되는 오퍼레이팅 시스템을 갖는 제 1기억부와, 상기 제 1기억부의 내용이 일시적으로 기억되는 제2기억부와, 상기 제 1기억부의 오퍼레이팅 시스템에 따라 프로그램 메모리에 기억된 명령을 해석하여 상기 입력 신호에 응답한 출력 신호를 발생하는 중앙처리장치로 구성되는 것을 특징으로 하는 축소 명령형 PLC.It consists of an input unit to which input signals from a plurality of controlled units are applied, an output unit to which a plurality of output signals to a controlled unit is applied, a function selection key and a data input key, and five kinds of reductions in which a graph set graphic is characterized. A program loader capable of creating a control program for the controlled unit by an instruction and two kinds of symbols, the function code data of the edited program of the control program sequentially input from the program loader, and the machine code execution file according to the function code A program memory for storing the data, an input of the key input data according to the operation of the function selection key and the data input key, a function discrimination for each statement, and a function code to be generated and recorded in the corresponding memory block of the program memory. And the machine code according to the edited function code. A first operating system comprising a compiler for creating a machine code executable file in order of writing machine code, a compiler for sequentially creating a machine code executable file, and an executor for executing machine code executable file sequentially. A storage unit, a second storage unit in which contents of the first storage unit are temporarily stored, and an output signal in response to the input signal by interpreting a command stored in a program memory according to an operating system of the first storage unit; Reduced command type PLC, characterized in that composed of a central processing unit.
제1항에 있어서, 상기 제 1기억부는 주제어기와의 데이타 통신을 위한 통신 프로그램 모듈과, 2축 직각 좌표 로보트 위치제어 프로그램 모듈 및 스텝형 모터 제어 프로그램 모듈을 더 포함하는 것을 특징으로 하는 축소 명령형 PLC.The reduced command type PLC according to claim 1, wherein the first memory unit further comprises a communication program module for data communication with the main controller, a two-axis rectangular coordinate robot position control program module, and a stepped motor control program module. .
제1항에 있어서, 상기 데이타 입력키에 의한 5종류의 입력 명령은 액튜에이터에 대한 작동 명령인 ACT와, 다음에 오는 명령문에 따라 조건 분기를 행하는 IF SENSE와, IF SENSE 명령뒤에 올 경우 무조건 분기를 행하는 GOT0와, 작동에 필요한 데이타를 입력하는 DATA WRITE와, 작동 데이타를 읽으라는 명령인 DATA READ로 구성되고, 2종류의 기호는 정, 긍정 또는 활성화를 나타내는 “+”와 부, 부정 또는 비활성화를 나타내는 “-”로 구성되는 것을 특징으로 하는 축소 명령형 PLC.The five kinds of input commands by the data input key are ACT, which is an operation command for the actuator, IF SENSE which performs conditional branching according to the following statement, and unconditional branching after the IF SENSE command. It consists of GOT0 to execute, DATA WRITE for inputting the data required for operation, and DATA READ, which is a command to read operation data. The two kinds of symbols are “+” indicating positive, positive or activation and negative, negative or inactive. Reduced command type PLC, characterized in that consisting of "-" indicating.
제1항에 있어서, 상기 실행자는 연속 실행과 단계 실행 중 어느 하나의 방법으로 명령을 실행하는 것을 특징으로 하는 축소 명령형 PLC.2. The reduced command PLC according to claim 1, wherein said implementer executes an instruction in any one of a continuous execution and a step execution.
프로그램 로더를 통해 5개의 명령어와 2개의 기호를 조합하여 작성된 명령과 피제어부로 부터의 입력 데이타를 입력하는 입력 단계와, 상기 입력 단계에서 입력된 명령에 대한 기능 판별을 하고 기능 표시 코드를 생성하며, 입력 명령 및 입력 데이타를 메모리 블럭에 기록하는 편집 단계와, 상기 편집단계에서 생성된 기능 표시 코드를 가지고 명령의 종류를 판별하여 각 명령에 따라 정해진 순서로 기계어 코드를 기입하여 기계어 실행 파일을 작성하는 컴파일링 단계와, 상기 기계어 실행 파일의 기계어 코드에 따라 연속 실행과 단계 실행 중 어느 하나의 방법으로 명령을 실행하는 실행 단계로 구성되는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.In the input step of inputting the command and input data from the controlled unit through the program loader combining five commands and two symbols, the function of the command input in the input step is discriminated and a function display code is generated. And an editing step of recording the input command and the input data in the memory block, and determining the type of the command using the function display code generated in the editing step, and writing the machine code in a predetermined order according to each command to create the machine execution file. And a executing step of executing a command in any one of a continuous execution and a step execution according to a machine language code of the machine language executable file.
제5항에 있어서, 상기 명령어는 액튜에이터에 대한 작동 명령인 ACT와, 다음에 오는 명령문에 따라 조건 분기를 행하는 IF SENSE와, IF SENSE 명령뒤에 올 경우 조건 분기를 행하고 그렇지 않는 경우 무조건 분기를 행하는 GOTO와, 작동에 필요한 데이타를 입력하는 DATA WRITE와, 작동 데이타를 읽으라는 DATA READ로 구성되고 2종류의 기호는 정, 긍정 또는 활성화를 나타내는 “+”와, 부, 부정 또는 비활성화를 나타내는 “-”로 구성되는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.6. The GOTO of claim 5, wherein the instruction is an ACT which is an operation instruction for an actuator, IF SENSE which performs conditional branching according to the following statement, and GOTO which performs conditional branching after the IF SENSE instruction and otherwise unconditional branching. And DATA WRITE for inputting the data required for operation, DATA READ for reading the operation data. The two types of symbols are “+” for positive, positive or active, and “-” for negative, negative or inactive. Control method of a reduced command type PLC, characterized in that consisting of.
제6항에 있어서, 상기 ACT에 대한 변환 규칙은 점출력일 때 하나의 논리실행문으로 변환되고, ACT 다음에 WRITE 또는 READ 명령이 오면 1개의 실행문 기능을 만드는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.The reduced rule of type PLC according to claim 6, wherein the conversion rule for the ACT is converted into one logical execution statement when the output is a point output, and when the WRITE or READ command is followed by the ACT, one execution statement function is created. Control method.
제6항에 있어서, 상기 SENSE 명령에 대한 변환 규칙은 “+” 또는 “-”조건이 충족되면 다음 명령으로 가도록 실행문을 만들고, 다음 명령이 “′GOTO”명령인 경우 조건 분기를 행하며, 동시 수행분기에서는 큐를 만들어 SENSE의 조건 판단 루프를 큐를 따라가도록 실행문을 만드는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.The method of claim 6, wherein the conversion rule for the SENSE command makes an execution statement to go to the next command when the "+" or "-" condition is satisfied, and performs a conditional branch when the next command is the "'GOTO" command, and simultaneously In the execution branch, a control method for a reduced command type PLC characterized in that an execution statement is made to follow a queue by creating a queue and following a condition determination loop of SENSE.
제6항에 있어서, 상기 ACT는 특수 기능을 가지며, 이에 대한 변환 규칙은 이미 준비된 특수 제어 모듈을 부르는 실행문으로 변환되는 것을 특징으로 하는 축소 명령형 PLC의 제어방법.7. The control method according to claim 6, wherein the ACT has a special function, and the conversion rule thereof is converted into an execution statement calling a special control module that has been prepared.
제5항에 있어서, 상기 편집 단계는 입력 신호가 명령문인가를 판단하는 명령문 판단 단계와, 입력 신호가 명령문일 경우 액정 표시기에 입력 명령을 표시하고 메모리 블럭에 입력 명령을 기록하는 입력 명령 표시 단계와, 입력 신호가 데이타인가를 판단하는 데이타 판단 단계와, 입력 신호가 데이타인 경우 액정 표시기에 입력 데이타를 표시하고 메모리 블럭에 입력 데이타를 기록하는 입력 데이타 표시 단계와, 편집 종료 여부를 판단하는 종료 여부 판단 단계로 구성되며, 명령문 판단 단계와 데이타 판단 단계는 판단단계 명령문 또는 입력 데이타가 아니면 오류를 표시하고, 수정키 입력 여부를 판단하는데 오류 표시와 수정키 입력 여부 판단은 수정키가 입력될 때 까지 반복되며 수정키가 입력되면 명령문 판단 단계 및 데이타 판단 단계를 재 수행하는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.6. The method of claim 5, wherein the editing step comprises: a statement determination step of determining whether an input signal is a statement, an input command display step of displaying an input command on a liquid crystal display and recording an input command in a memory block when the input signal is a statement; A data determination step of determining whether the input signal is data, an input data display step of displaying the input data on the liquid crystal display and writing the input data in the memory block if the input signal is data, and whether or not to end the editing. It consists of a judgment step, and the statement judgment step and the data judgment step indicate an error if it is not a judgment step statement or input data, and it is determined whether to input a correction key. Repeatedly, if the modification key is input, the statement judgment step and the data judgment step are executed again. A control method of a reduction command type PLC, characterized in that.
제5항에 있어서, 상기 컴파일링 단계는 메모리를 지우고, 선번호 0000부터 시작하는 초기 단계와 명령문을 판단하는 명령문 판단 단계와, 상기 명령문 판단 단계결과 GOTO 명령, ACT 명령 및 SENSE 명령중 어느 하나의 명령으로 판단될 때 해당 명령에 따라 기계어 변환 동작을 수행하는 기계어 코드 기입단계와, 다음 명령 선 번호와 다음 메모리 번지를 계산하는 번지 계산 단계로 구성되는 것을 특징으로하는 축소 명령형 PLC의 제어 방법.6. The method of claim 5, wherein the compiling step includes: an initial step starting from line number 0000, a statement judgment step of determining a statement, and a result of the statement determination step; one of a GOTO command, an ACT command, and a SENSE command. And a machine code writing step of performing a machine code conversion operation according to the command when determined to be a command, and a address calculation step of calculating a next command line number and a next memory address.
제11항에 있어서, 상기 기계어 코드 기입단계는 GOTO명령일 때 병렬 수행인 경우 스트림의 시작과 끝을 찾아내어, 그안의 명령에 큐데이터를 기입하는 큐데이터 기입단계와, 분기 명령일 경우 실행자 호출문, 분기문으로 기계어 코드를 기입하는 기계어 코드 기입 단계로 구성되고, ACT명령일 때 액튜에이터 또는 특수 기기를 조작하며, 실행자 호출문과 병렬 수행의 끝인 경우 다음 스트림으로의 조건분기문과, 점출력의 경우 입출력 포트 제어문과, 특수 기능의 경우 특수 기능 호출문 순으로 기계어 코드를 기입하고, SENSE 명령일 때 센서의 상태를 판단하여 실행자 호출문과, 병렬 수행의 끝인 경우 다음 스트림으로의 조건 분기문과, 불충분 조건 분기문 순으로 기계어 코드를 기입하는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.12. The method of claim 11, wherein the writing of the machine code comprises: a queue data writing step of finding a start and an end of a stream in parallel when a GOTO command is written, and writing queue data to an instruction therein; It consists of a machine code writing step of writing a machine code into a statement and a branch statement, and operates an actuator or a special device in the case of an ACT instruction. Write machine code in the order of I / O port control statement and special function call statement in case of special function, judge the state of sensor when SENSE command, execute caller statement, condition branch to next stream when parallel execution ends, insufficient condition A control method for a reduced command type PLC, characterized by writing machine code in order of branch statement.
제5항에 있어서, 상기 실행 단계는 실행이 시작되어 프로그램 로더 또는 PC로 부터 새로운 명령이 있는지를 살피는 단계와, 만일 새 명령인 경우에는 그 명령이 종료 명령이면 실행을 중지하고 아니면 그 명령이 연속 실행 명령인가 단계 실행 명령인가를 판단하는 단계와, 단계 실행일 경우 편집 파일에서 지금 실행할 명령을 찾아 이를 표시한 다음 실행 명령이 내려지면 실행할 명령이 병렬 수행 루프내에 있는가를 판단하고 실행할 명령이 병렬 수행 루프내에 있으면 큐데이터를 판단하여 분기할 어드레스를 큐에 기입하는 단계와 명령문을 판단하여 조건 분기시 분기할 어드레스를 계산하고 명령문 하나를 실행하는 단계로 구성되는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.6. The method according to claim 5, wherein the executing step starts execution and checks whether there is a new command from the program loader or the PC, and if the command is a new command, stops execution if the command is an end command or continues the command. Determining whether it is an execution command or a step execution command, and if it is a step execution, find the command to be executed now in the edit file and mark it, and when the execution command is issued, it is determined whether the command to be executed is in a parallel execution loop, And a step of judging the queue data to write the address to branch to, and the step of judging the statement to calculate the address to branch upon condition branching and executing one statement.
제5항에 있어서, 상기 실행 단계는 컴파일러가 계산한 절대 번지와 실행할 기계어 수를 계수하는 방법으로 다음에 실행할 명령을 찾아가는 것을 특징으로 하는 축소 명령형 PLC의 제어 방법.The control method according to claim 5, wherein the executing step searches for a next instruction to be executed by counting the absolute address calculated by the compiler and the number of machine words to be executed.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.