KR970002398B1 - The emergency detection method using interrupt handler - Google Patents

The emergency detection method using interrupt handler Download PDF

Info

Publication number
KR970002398B1
KR970002398B1 KR1019930020989A KR930020989A KR970002398B1 KR 970002398 B1 KR970002398 B1 KR 970002398B1 KR 1019930020989 A KR1019930020989 A KR 1019930020989A KR 930020989 A KR930020989 A KR 930020989A KR 970002398 B1 KR970002398 B1 KR 970002398B1
Authority
KR
South Korea
Prior art keywords
adjustment
interrupt
vect
old
emergency
Prior art date
Application number
KR1019930020989A
Other languages
Korean (ko)
Other versions
KR950012211A (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 KR1019930020989A priority Critical patent/KR970002398B1/en
Publication of KR950012211A publication Critical patent/KR950012211A/en
Application granted granted Critical
Publication of KR970002398B1 publication Critical patent/KR970002398B1/en

Links

Classifications

    • 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/46Multiprogramming arrangements

Abstract

The method is characterized by comprising the steps of: loading adjustment data after initializing all sorts of parameters; storing the present timer interrupt vector(OLD VECT); setting a new timer interrupt vector; and completing the adjustment by recovering the stored present timer vector(OLD VECT) after finishing measurement adjustment after performing measurement and adjustment by steps.

Description

인터럽트 핸들러 방식에 의한 위급(EMERGENCY) 상태 검출방법How to detect EMERGENCY status by interrupt handler method

제1도는 본 발명의 블럭도.1 is a block diagram of the present invention.

제2도는 본 발명의 주조정 루틴 플로우챠트.2 is a main adjustment routine flowchart of the present invention.

제3도는 제2도의 새로운 인터럽트 단계를 설정하는 상세 플로우챠트.3 is a detailed flowchart of setting up a new interrupt step of FIG.

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

1 : 컴퓨터 2 : 포트확장기1: Computer 2: Port Expander

3 : 직류모터제어기 4 : 고속 A/D 변환부3: DC motor controller 4: high-speed A / D converter

5 : 주파수 측정부 6 : 신호절환부5: frequency measuring unit 6: signal switching unit

7 : 신호발생부 8 : 전원제어부7: signal generator 8: power controller

9 : D I/O(DIGITAL IN PUT/OUT PUT) 제어부9: D I / O (DIGITAL IN PUT / OUT PUT) Control Unit

10 : 전원부 11 : 하지그10: power supply unit 11: Hajig

12 : PCB 어셈블리 13 : 상지그프레스부12: PCB assembly 13: upper jig press portion

14 : DC 모터14 DC motor

15 : PLC(PROGRAMMBLE LOGIC CONTROLLER)15: PLC (PROGRAMMBLE LOGIC CONTROLLER)

16 : 조작판넬 17 : 방전장치16: operation panel 17: discharge device

본 발명은 PCB 자동 조정기에 관한 것으로 특히 PC 버스상에서 PCB 조정기의 EMR(EMERGENCY)키(KEY) 검출을 소프트웨어루틴을 추가하여 간편하고 손쉽게 하기 위한 인터럽트 핸들러 방식에 의한 위급상태 검출방법에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a PCB automatic regulator, and more particularly, to an emergency state detection method by an interrupt handler method for easily and easily adding ERM (EMERGENCY) key detection of a PCB regulator on a PC bus by adding a software routine.

종래에는 PC에 의한 자동조정기에서 위급(EMERGENCY)상황시에 PLC에서만 처리하였으므로 PCB 어셈블리를 계측 조정하는 중에 EMR 키가 눌려졌을 때 PCB 어셈블리에 현재 공급되는 전원(AC)을 끊지않고 하지그를 다운시킴과 동시에 상지그를 상승시키므로 PCB 어셈블리내의 각각의 콘덴서에 잔류하는 전류에 의해 작업자나 PCB 부품에 악영향을 미쳤다.In the past, only the PLC was processed in the emergency condition of the automatic controller by the PC, so when the EMR key is pressed during the measurement and adjustment of the PCB assembly, the power supply (AC) currently supplied to the PCB assembly is not interrupted. At the same time, as the upper jig is raised, the current remaining in each capacitor in the PCB assembly adversely affects the operator or the PCB components.

또한 계측부에서는 EMR 키 눌림을 조정이 끝난후에야 눌림상태를 파악할 수 있으므로 상당한 시간적 손실을 가져왔던 것이다.In addition, the measurement unit can detect the pressed state only after the EMR key press is adjusted, resulting in considerable time loss.

그리고 하드웨어적 방법은 잡음제거나 회로구성등의 어려움이 뒤따랐고 설계가 상당히 까다로웠던 것이다.And the hardware method was accompanied by difficulties such as noise reduction and circuit configuration, and the design was quite difficult.

본 발명에서는 컴퓨터의 인터럽트 벡터 테이블에 저장되어 있는 주소를 사용자가 원하는(작성한) 함수의 주소로 바꾸어 내부 타이머가 1초에 18.2번씩 인터럽트를 발생시킬 때 사용자가 정의한 함수를 실행가능하게 하여 위급시 상기 루틴을 삽입하여 프로그램의 메인흐름과 관계없이 적절한때에 EMR 키가 온(ON)이 되었을시에 자동적으로 사용자가 정의한 함수를 실행가능하게 하는데 그 목적이 있다.In the present invention, by changing the address stored in the interrupt vector table of the computer to the address of the user (written), the user-defined function can be executed when the internal timer generates an interrupt 18.2 times per second. The goal is to insert routines so that user-defined functions can be executed automatically when the EMR key is turned on at any time, regardless of the main flow of the program.

이를 첨부 도면에 의해 설명한다.This will be described with reference to the accompanying drawings.

신호를 확장하여 입,출력을 행하는 포트확장기(2)로 PCB 도착 및 조정스타트신호를 인가하는 PLC(15)와 시스템을 총괄 제어하는 컴퓨터(1)를 연결하고, 상기 컴퓨터(1)에서 PWM 신호를 발생하여 DC 모터(14)를 구동하여 PCB 어셈블리(12) 조정점을 조정하는 직류모터제어기(3)와 아날로그 신호를 디지탈 신호로 변환하는 고속 A/D 변환부(4)와 일정한 주기를 가진 신호를 측정하는 주파수 측정부(5)와 하지그(11)로부터 취출된 신호를 각종 계측모듈에 프로그래머블로 절환하는 신호절환부(6)와 사인파 또는 비데오 패턴신호를 발생하는 신호발생부(7)와 전원부(10)에서 발생된 교류 또는 직류를 제어하는 전원제어부(8)와 잔여전류를 방전시키는 방전장치(17)를 D I/O 제어부(9)에 PC 버스로 상호 연결되게 하고 상기 전원부(10)를 하지그(11)를 통해 PCB 어셈블리(12)에 접속하고 하지그(11)를 방전장치(17)에 연결하며 신호발생부(7)를 신호절환부(6)를 거쳐 주파수 측정부(5)와 고속 A/D 변환부(4)에 연결하고 EMR(위급) 버튼등으로 구성된 조작판넬(16)을 PLC(15)에 접속한다.A port expander (2) that expands the signal and performs input and output is connected to the PLC (15) for applying the PCB arrival and adjustment start signal and the computer (1) for total control of the system, and the PWM signal from the computer (1). A DC motor controller 3 for driving the DC motor 14 to adjust the adjustment point of the PCB assembly 12 and a high speed A / D converter 4 for converting an analog signal into a digital signal. Signal measuring section 6 for programmatically converting signals extracted from frequency measuring section 5 for measuring signals and hajig 11 into various measurement modules, and signal generating section 7 for generating sine wave or video pattern signals. And a power supply control unit 8 for controlling AC or DC generated in the power supply unit 10 and a discharge device 17 for discharging residual current are connected to the DI / O control unit 9 by a PC bus. ) To the PCB assembly 12 through the Connect the Hajig 11 to the discharge device 17, and connect the signal generator 7 to the frequency measuring section 5 and the high-speed A / D conversion section 4 through the signal switching section 6 and EMR ( Operation panel 16, which is composed of buttons, and the like, is connected to the PLC 15.

이하 본 발명을 상세히 설명한다.Hereinafter, the present invention will be described in detail.

PLC(15)에서 PCB 도착 및 스타트(START) 신호를 포트확장기(2)를 통해 컴퓨터(1)에 알리면 상기 컴퓨터(1)는 전원제어부(8)에 의해 전원 ON 신호인 D I/O 신호를 전원부(10)에 송출하여 AC 전원을 하지그(11)에 공급하고, 신호발생부(7)에서 발생된 비데오 패턴신호가 신호절환부(6)를 경유하여 하지그(11)에 공급된다. 따라서 PCB 어셈블리(12)에서는 공급된 AC 전원과 비데오 패턴신호에 의해 PCB가 동작되고 각 조정점(TP)의 신호가 신호절환부(6)를 거쳐 주파수 측정부(5)와 고속 A/D 변환부(4)에 입력된다.When the PLC 15 notifies the computer 1 of the PCB arrival and start signal through the port expander 2, the computer 1 transmits the DI / O signal, which is a power ON signal, by the power control unit 8 to the power supply unit. The AC power is supplied to (10) and supplied to the restraint 11, and the video pattern signal generated by the signal generation section 7 is supplied to the restraint 11 via the signal switching section 6. As shown in FIG. Therefore, in the PCB assembly 12, the PCB is operated by the supplied AC power and the video pattern signal, and the signal of each control point TP is passed through the signal switching unit 6 to the frequency measuring unit 5 and the high-speed A / D conversion. It is input to the part 4.

상기 주파수 측정부(5)와 고속 A/D 변환부(4)에서 프로그램된 알고리즘에 의해 신호처리가 되어 컴퓨터(1)에 전송되면 계측조정 알고리즘에 의해 직류모터제어기(3)를 통하여 상지그(13)에 장착된 DC 모터(14)를 구동시켜 PCB 어셈블리(12)를 조정한다.When the signal is processed by the algorithm programmed by the frequency measuring unit 5 and the high-speed A / D conversion unit 4 and transmitted to the computer 1, the image jig (3) is transmitted through the DC motor controller 3 by the measurement adjustment algorithm. The DC motor 14 mounted on the 13 is driven to adjust the PCB assembly 12.

한편 상기와 같이 조정시에 PCB 어셈블리(12)가 쇼트(SHORT)되어 과전류로 인하여 파괴될 상황이나 아니면 작업자의 신체 일부가 프레스부인 상지그(13)에 의해 짖눌려질 위급 상황시에는 조작판넬(16)에 있는 EMR 키를 누른다.On the other hand, when the PCB assembly 12 is shorted during adjustment as described above and destroyed due to an overcurrent, or in an emergency situation in which an operator's body part is barked by the upper jig 13 as a press part, the operation panel ( Press the EMR key in 16).

이때 컴퓨터(1)에서는 프로그램에 의해 항상 1초에 18.2회씩 주기로 포트확장기(2)의 PA1포트를 계속 체크하여 PLC 제어부(15)의 EMR 신호가 ON 상태이면 컴퓨터(1)는 현재 동작중인 직류모터제어기(3)와 고속 A/D 변환부(4)와 주파수 측정부(5)와 신호절환부(6)와 신호발생부(7) 및 전원제어부(8)를 오프(OFF)시키고 D I/O 제어부(9)를 사용하여 방전장치(17)에 방전신호를 보내어 PCB 어셈블리(12)를 방전시키고 컴퓨터(1)에서 포트확장기(2)를 통해 PLC(15)에 END 신호를 보내 프로그램 진행을 최초의 스텝으로 점프(JUMP)하고 스타트 신호를 기다린다.At this time, the computer 1 constantly checks the PA 1 port of the port expander 2 every 18.2 times per second by the program. When the EMR signal of the PLC control unit 15 is ON, the computer 1 operates the direct current. Turn off the motor controller (3), high-speed A / D converter (4), frequency measuring unit (5), signal switching unit (6), signal generating unit (7), and power supply control unit (8). O Discharge the PCB assembly 12 by sending a discharge signal to the discharge device 17 by using the control unit 9 and sends a END signal from the computer 1 through the port expander 2 to the PLC 15 to proceed with the program. Jump to the first step and wait for the start signal.

이때 PLC(15)에서는 포트확장기(2)를 통하여 컴퓨터(1)로부터 END 신호를 받은 후 조작판넬(16)의 EMR 버튼이 오프(OFF)될때까지 그대로 유지한다.At this time, the PLC 15 receives the END signal from the computer 1 through the port expander 2 and maintains the same until the EMR button of the operation panel 16 is turned off.

작업자는 응급처치가 끝난 후 조작판넬(16)의 EMR 버튼을 다시 눌러 오프시킨다.After the emergency treatment is over, the operator presses the EMR button on the operation panel 16 again to turn it off.

새로운 대상 PCB 어셈블리가 유입되어 정위치되면 처음 과정부터 다시 시작한다.Once the new target PCB assembly has been introduced and placed in place, start over from the beginning.

이를 플로우챠트 형식으로 열거하면 다음과 같다.Enumerating this in flowchart form looks like this:

주조정 루틴시에는 제2도에서와 같이 각종 변수를 초기화시킨 후 조정데이타를 로딩시키는 단계와 현재 타이머 인터럽트 벡터(OLD VECT)를 저장하는 단계와 새로운 타이머 인터럽트 벡터를 설정하는 단계와 계측조정을 완료한 후 저장된 현재 타이머 벡터(OLD VECT)를 복원하여 조정을 완료한다.In the main adjustment routine, initialize the various variables as shown in Fig. 2, load the adjustment data, save the current timer interrupt vector (OLD VECT), set a new timer interrupt vector, and complete the measurement adjustment. Then, the adjustment is completed by restoring the stored current timer vector (OLD VECT).

제3도는 새로운 인터럽트 벡터를 설정하는 상세 플로우챠트로서 그 전에 저장된 OLD VECT를 실행하고 인터럽트 인에이블 상태를 유지하는 단계와 EMR(위급) 키가 오프이면 리턴시키고 온(ON)이면 다른 인터럽트를 중지시키는 단계와 제1도의 각 모듈(3-8)을 오프시키고 방전, PLC에 END 신호송출, 프로그램리세트, 단계 1로 점등시켜 응급사항을 처리하는 단계와 인터럽트를 인에이블시켜 리턴시키는 단계로 이루어진다.Figure 3 is a detailed flowchart of setting up a new interrupt vector, which executes the previously stored OLD VECT, maintains the interrupt enable state, returns if the EMR (emergency) key is off, and stops other interrupts if it is on. Steps and the respective modules 3-8 in FIG. 1 are turned off, discharged, END signal sent to PLC, program reset, and lit in step 1 to process an emergency and enable and return an interrupt.

상술한 바와 같이 본 발명은 조작판넬내의 EMR 버튼의 눌림상태를 신속하게 검출하여 PCB 조정기의 응급처리를 신속하게 할 수 있는 유익한 발명이다.As described above, the present invention is an advantageous invention that can quickly detect the pressed state of the EMR button in the operation panel to prompt the emergency treatment of the PCB regulator.

Claims (2)

PCB 자동조정기에 있어서, 각종 변수를 초기화시킨 후 조정데이타를 로딩시키는 단계와 현재 타이머 인터럽트 벡터(OLD VECT)를 저장하는 단계와 새로운 타이머 인터럽트 벡터를 설정하는 단계와 스텝별 계측 및 조정을 실시한 후 계측조정이 끝난 후 저장된 현재 타이머 벡터(OLD VECT)를 복원하여 조정을 완료하는 것을 특징으로 하는 인터럽트 핸들러 방식에 의한 위급(EMR)상태 검출방법.In the PCB automatic controller, after initializing various variables, loading the adjustment data, storing the current timer interrupt vector (OLD VECT), setting a new timer interrupt vector, and performing measurement and adjustment for each step. An emergency handler detection method according to the interrupt handler method, characterized in that the adjustment is completed by restoring the stored current timer vector (OLD VECT) after the adjustment is completed. 제1항에 있어서, 상기 새로운 인터럽트 벡터를 설정하는 단계를 그전에 저장된 OLD VECT를 실행하고 인터럽트 인에이블 상태를 유지하는 단계와 EMR(위급) 키가 오프이면 리턴시키고 온(ON)이면 다른 인터럽트를 중지시키는 단계와 제1도의 각 모듈(3-8)을 오프시키고 방전, PLC에 END 신호송출, 프로그램리세트, 단계 1로 점프시켜 응급사항을 처리하는 단계와 인터럽트를 인에이블시켜 리턴시키는 단계로 이루어짐을 특징으로 하는 인터럽트 핸들러 방식에 의한 위급상태 검출방법.2. The method of claim 1, wherein the step of setting the new interrupt vector includes executing the previously stored OLD VECT and maintaining an interrupt enabled state and returning if the EMR key is off and stopping other interrupts if it is ON. And turning off each module (3-8) of FIG. 1, discharging, sending END signal to PLC, program reset, jumping to step 1, handling emergency matters, and enabling and returning an interrupt. Emergency state detection method by the interrupt handler method characterized in that.
KR1019930020989A 1993-10-11 1993-10-11 The emergency detection method using interrupt handler KR970002398B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930020989A KR970002398B1 (en) 1993-10-11 1993-10-11 The emergency detection method using interrupt handler

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930020989A KR970002398B1 (en) 1993-10-11 1993-10-11 The emergency detection method using interrupt handler

Publications (2)

Publication Number Publication Date
KR950012211A KR950012211A (en) 1995-05-16
KR970002398B1 true KR970002398B1 (en) 1997-03-05

Family

ID=19365591

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930020989A KR970002398B1 (en) 1993-10-11 1993-10-11 The emergency detection method using interrupt handler

Country Status (1)

Country Link
KR (1) KR970002398B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100347022B1 (en) * 1998-08-21 2002-12-11 엘지전자주식회사 Structure and Control Method of Refrigerator Ice Maker

Also Published As

Publication number Publication date
KR950012211A (en) 1995-05-16

Similar Documents

Publication Publication Date Title
KR970002398B1 (en) The emergency detection method using interrupt handler
US7096104B2 (en) Control unit for a load
JPH1078832A (en) Shut-down device
KR0155719B1 (en) Data process method of robot controller
KR0132819B1 (en) Device for an electronic appliance's door and method thereof
KR100455268B1 (en) Apparatus and method for safe shutdown in system using O/S such as windows 95
JP2002123301A (en) Controller
KR100349592B1 (en) Method and apparatus for automatically controlling system
KR100312895B1 (en) Dynamic break control apparatus and control method
KR0131056B1 (en) Home automation
JPH11353059A (en) Method and device for processing for turning off power source of numerical controller
KR960038560A (en) Power control method and device for data loss prevention of computer
KR100202700B1 (en) Multi-input apparatus and method of plc
JPH0553680A (en) Power controller for computer
KR970066802A (en) Method and apparatus for power control of personal computer
JPH04205014A (en) Power unit controller
KR100486025B1 (en) Motor driven control method of steel rolling line.
JPH0962404A (en) Power source control unit
KR970002366B1 (en) Apparatus for controlling power-out automatically of p.c.
KR940027601A (en) Control module switching circuit and method of exchange
JPH0651826A (en) Teaching device for robot
JPH041817A (en) Power consumption saving device for computer system
JPH04181413A (en) Input/output equipment activating system
JPS58208803A (en) Power supply controller
JPH0470914A (en) Information processor

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee