KR101685613B1 - Data communication method for Communication module of digital Protective Relay - Google Patents

Data communication method for Communication module of digital Protective Relay Download PDF

Info

Publication number
KR101685613B1
KR101685613B1 KR1020110112518A KR20110112518A KR101685613B1 KR 101685613 B1 KR101685613 B1 KR 101685613B1 KR 1020110112518 A KR1020110112518 A KR 1020110112518A KR 20110112518 A KR20110112518 A KR 20110112518A KR 101685613 B1 KR101685613 B1 KR 101685613B1
Authority
KR
South Korea
Prior art keywords
data
communication
interrupt
communication module
flag
Prior art date
Application number
KR1020110112518A
Other languages
Korean (ko)
Other versions
KR20130047465A (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 KR1020110112518A priority Critical patent/KR101685613B1/en
Publication of KR20130047465A publication Critical patent/KR20130047465A/en
Application granted granted Critical
Publication of KR101685613B1 publication Critical patent/KR101685613B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H3/00Emergency protective circuit arrangements for automatic disconnection directly responsive to an undesired change from normal electric working condition with or without subsequent reconnection ; integrated protection
    • H02H3/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computing Systems (AREA)
  • Emergency Protection Circuit Devices (AREA)
  • Communication Control (AREA)

Abstract

본 발명은 디지털 보호 계전기용 통신모듈 및 그 데이타 통신방법에 관한 것으로서, 더욱 상세하게는 통신모듈에서 Rx 인터럽트가 발생된 것을 감지하는 제 1 단계; Rx 인터럽트 감지시 Rx Data length Register를 읽어 수신 데이타패킷의 영역의 길이를 확인하는 제 2 단계; 제 2 단계 이후 Destination Address, Source Address, Command/Response, Flag를 읽어오는 제 3 단계; Rx Data length Register에서 읽은 값만큼 버퍼의 데이타 영역을 읽어오는 제 4 단계; 제 4 단계 이후 interrupt Register의 Rx Interrupt Flag Bit에 1을 라이트(Write)하여 Rx Interrupt를 요청한 후 데이타 수신동작을 종료하는 제 5 단계; 로 구성된 것을 특징으로 한다.The present invention relates to a communication module for a digital protection relay and a data communication method thereof, and more particularly, to a communication module for a digital protection relay, A second step of reading the Rx data length register when the Rx interrupt is detected to check the length of the area of the received data packet; A third step of reading Destination Address, Source Address, Command / Response and Flag after the second step; A fourth step of reading the data area of the buffer by a value read from the Rx data length register; A fifth step of, after the fourth step, writing 1 to the Rx Interrupt Flag Bit of the interrupt register to request Rx interrupt, and terminating the data receiving operation; .

Description

디지털 보호 계전기용 통신모듈 및 데이타 통신방법{Data communication method for Communication module of digital Protective Relay}Technical Field [0001] The present invention relates to a communication module and a data communication method for a digital protection relay,

본 발명은 디지털 보호 계전기용 통신모듈 및 그 데이타 통신방법에 관한 것으로서, 더욱 상세하게는 HDLC 통신을 이용하여 마이크로 프로세서에 발생하는 인터럽트 주기를 최소화시킬 수 있는 데이타 통신방법을 제공하여 디지털 보호 계전기의 본연의 기능을 충실히 수행할 수 있도록 한 디지털 보호계전기용 통신모듈 및 그 데이타 통신방법에 관한 것이다.The present invention relates to a communication module for a digital protection relay and a data communication method thereof, and more particularly, to a data communication method capable of minimizing an interruption period occurring in a microprocessor using HDLC communication, And more particularly, to a communication module for a digital protection relay and a data communication method thereof.

일반적으로, 전력계통은 수많은 발전소, 변전소 및 송배전 선로 등의 요소를 포함하는 매우 복잡한 구조로 되어 있다. 이러한 전력계통은 일정한 전압과 주파수를 가져야 하고, 수요에 맞는 전력을 공급하도록 신뢰성 있게 운영되어야 한다.Generally, the power system has a very complicated structure including elements such as power plants, substations, and transmission and distribution lines. Such a power system must have a constant voltage and frequency, and must operate reliably to supply power to meet demand.

그러나 수요자의 의사에 따라 항상 변동하는 전력 수요와 자연상태에서의 고장은 전압, 주파수 등에 영향을 미쳐 신뢰성 있는 전력의 공급을 어렵게 만든다.However, the power demand and the failure in the natural state, which always fluctuate according to the consumer's will, affect the voltage, frequency and the like, making it difficult to supply reliable electric power.

특히, 계통에서 고장이 발생하는 경우에, 고장 지점에서는 매우 큰 전류가 발생하여 인명피해나 수많은 재산 피해는 물론 대규모 정전을 유발하게 될 수 있기 때문에 계전기(Relay)를 사용하고 있었다.In particular, when a fault occurs in a system, a very large current is generated at a fault point, and a relay is used because it can cause a large scale power failure as well as damage to human life and damage to property.

여기서, 계전기는 디지털 보호 계전기라고도 하는데, 이러한 디지털 보호 계전기는 SCADA(Supervisory Control and Data Acquisition)시스템과 통신으로 비정상적인 계통 조건을 검출하고, 가능한 한 신속하게 반응하여 계통을 정상 상태로 되돌리는 역할을 한다. 이와 같은 기능을 수행하기 위해서는 보호 계전을 위한 시스템 설계가 필수적이다.Here, the relay is also referred to as a digital protection relay, which detects abnormal system conditions by communicating with the SCADA (Supervisory Control and Data Acquisition) system and reacts as quickly as possible to return the system to a normal state . In order to perform such functions, system design for protection relay is essential.

이러한, 디지털 보호 계전기는 계통의 보다 신뢰성 있는 동작을 위하여, SCADA시스템과 통신으로 계측 및 동작 상태를 실시간으로 모니터링 할 수 있도록 거의 대부분이 구성되어 있다.These digital protection relays are mostly configured for real-time monitoring of the measurement and operation status by communicating with the SCADA system for more reliable operation of the system.

이때, 디지털 보호 계전기와의 통신을 하기 위해서 산업용 필드버스가 많이 사용되는데, 당사에서 개발한 디지털 보호계전기의 경우 고속의 신뢰성 있는 통신을 구현하기 위하여 HDLC(High-level Data Link Control)통신을 채택하여 구현하였다.In this case, industrial field buses are often used to communicate with digital protection relays. In the case of digital protection relays developed by our company, high-level data link control (HDLC) communication is adopted to realize high-speed and reliable communication Respectively.

상기 HDLC 통신 프로토콜을 지원하기 위해서는, 마이크로프로세서 내장되어 있는 제품이 없기 때문에, 별도의 외부 HDLC 통신제어 칩셋(예; Z85230 통신모듈)을 연결하여 적용하여 왔다.In order to support the HDLC communication protocol, a separate external HDLC communication control chipset (for example, Z85230 communication module) has been connected and applied since there is no product having a built-in microprocessor.

그러나, 상기 외부 HDLC 통신제어 칩셋(예; Z85230 통신모듈)은 오래전에 개발되어 불량률이 높고, 또한 사용중에 고장이 자주 발생하여 디지털 보호 계전기의 고장을 초래하는 단점이 발생되었다.However, the external HDLC communication control chipset (for example, Z85230 communication module) has been developed a long time ago and has a high defect rate, and a failure often occurs during use, causing a failure of the digital protection relay.

이에따라, 보급형 디지털 보호계전기의 경우 장비의 개발 단가를 낮추기 위해 조립 부품의 수량을 최소화시켜야만 한다.Therefore, in the case of low-cost digital protection relays, the number of assembly parts must be minimized in order to lower the development cost of the equipment.

예를 들면, 한 개의 마이크로 프로세서가 계전, 계측, 사용자 인터페이스, 상위 시스템과의 통신기능을 모두 처리하는 구조로 설계를 한다. 이때, 상위 모니터링 시스템인 디지털 보호 계전기와 HDLC 통신을 수행할 경우, 마이크로 프로세서에는 문자 데이터 크기의 단위로 인터럽트 신호가 발생되어 다른 서비스에서 사용되야 하는 인터럽트와의 잦은 충돌이 발생 되었다.For example, a microprocessor is designed to handle all functions of relaying, measurement, user interface, and communication with higher-level systems. At this time, when HDLC communication is performed with the digital protection relay, which is an upper monitoring system, an interrupt signal is generated in units of character data size in the microprocessor, and frequent collisions with interrupts to be used in other services have occurred.

만약, HDLC 통신이 아닌 다른 산업용 통신을 사용한다고 하더라도 이러한 상황을 피할 순 없을 것이다. 실제로 현장에서 과도한 상위 통신 인터럽트에 의한 문제 상황으로 생기는 처리비용이 발생하게 되는 문제점이 있었다.If you use an industrial communication other than HDLC communication, you will not be able to avoid this situation. There is a problem that a processing cost arises due to a problem situation due to an excessive upper communication interrupt in the field actually.

즉, 디지털 보호 계전기의 주된 역할은 전력계통의 이상 상황을 진단하여 실시간으로 보호동작을 시켜야하지만, 감시기능도 함께 제공되어야 하므로 기능들을 모두 만족시키기 위해서는 내부 성능을 적절히 낮추어 안정화될 수 있도록 조율해야 하는 어려움을 가지고 있었다.In other words, the main role of the digital protection relay is to diagnose the abnormal condition of the power system and to perform the protection operation in real time. However, in order to satisfy all the functions, the monitoring function must be provided. I had difficulties.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위한 것으로서, HDLC 통신을 이용하여 마이크로 프로세서에 발생하는 인터럽트 주기를 최소화시킬 수 있는 하는 통신모듈 및 그 데이타 통신방법을 제공하여 종래 외부 HDLC 통신제어 칩셋(예; Z85230 통신모듈)을 대체할 수 있도록 하면서, 디지털 보호 계전기의 본연의 기능을 충실히 수행할 수 있도록 한 디지털 보호계전기용 통신모듈의 데이타 통신방법을 제공하는데 그 목적이 있다.SUMMARY OF THE INVENTION Accordingly, the present invention has been made to solve the above-mentioned problems occurring in the prior art, and it is an object of the present invention to provide a communication module and a data communication method capable of minimizing an interrupt cycle occurring in a microprocessor using HDLC communication, It is an object of the present invention to provide a data communication method of a communication module for a digital protection relay capable of replacing a chipset (for example, Z85230 communication module) while faithfully performing the function of the digital protection relay.

상기 목적달성을 위한 본 발명 디지털 보호 계전기용 통신모듈은, 디지털 보호 계전기에서 마이크로프로세서가 내장되지 않아 외부 HDLC 통신제어 칩셋인 Z85230 통신모듈을 적용하는 것을 대체하는 통신모듈로, 상위 모니터링 시스템과 반 이중 방식의 통신을 수행하여 데이터를 송수신하기 위한 HDLC 프로토콜 수단(High Level Data Link Control Precedure); 상기 HDLC 프로토콜 수단과 데이터를 송수신하며, 양 방향성 인터페이스를 제공하는 공유 메모리(Shared Memory); 상기 공유 메모리와 데이터를 송수신하며, 복수의 회로 입력신호 중에서 선택된 제어신호에 의해 어느 하나의 입력신호를 선택하여 출력회로에 실어주는 멀티플렉서(MUX, Multiplexer); 상기 멀티플렉서와 데이터를 송수신하며, 데스크탑 및 컨트롤러와 통신을 하여 데이터를 송수신하는 통신부; 및, 상기 HDLC로 수신되는 한 개의 통신 패킷에 대해서 한 번의 신호를 컨트롤러에 송신하는 인터럽트; 를 포함한다.The communication module for digital protection relay according to the present invention for replacing the application of Z85230 communication module which is an external HDLC communication control chipset because a microprocessor is not built in a digital protection relay, (High Level Data Link Control Precedure) for transmitting / A shared memory for transmitting and receiving data with the HDLC protocol means and providing a bidirectional interface; A multiplexer (MUX) for transmitting and receiving data to and from the shared memory, selecting one of the plurality of input signals according to a control signal selected from the plurality of circuit input signals, and outputting the selected input signal to an output circuit; A communication unit for transmitting and receiving data with the multiplexer and communicating with a desktop and a controller to transmit and receive data; And an interrupt for transmitting one signal to one controller for one communication packet received in the HDLC; .

또한, 상기 통신부는 멀티플렉서와 데이터를 송수신하며, 데이터가 저장된 데스크탑의 직렬장치와 직렬 통신에 의해 데이터를 송수신하는 범용의 직렬통신부(UART)와, 상기 멀티플렉서와 데이터를 송수신하며, 제어를 위한 컨트롤러와 병렬 통신에 의해 고속으로 데이터를 송수신하는 병렬통신부를 포함할 수 있다.The communication unit includes a general-purpose serial communication unit (UART) that transmits and receives data to and from a multiplexer, and transmits and receives data by serial communication with a serial device of a desktop on which data is stored, a controller for transmitting and receiving data with the multiplexer, And a parallel communication unit that transmits and receives data at a high speed by parallel communication.

또한, 상기 병렬통신부에는 주소버스와 데이터버스가 포함될 수 있다.The parallel communication unit may include an address bus and a data bus.

다른 한편으로, 상기 통신모듈의 데이타 통신방법으로는, 통신모듈에서 Rx 인터럽트가 발생된 것을 감지하는 제 1 단계; 수신(Rx) 인터럽트 감지시 수신 데이터 길이 레지스터(Rx Data length Register)를 읽어 수신 데이타패킷의 영역의 길이를 확인하는 제 2 단계; 제 2 단계 이후 데스티네이션 어드레스(Destination Address), 소스 어드레스(Source Address), 명령/응답(Command/Response), 플래그(Flag)를 읽어오는 제 3 단계; 수신 데이터 길이 레지스터(Rx Data length Register)에서 읽은 값만큼 버퍼의 데이타 영역을 읽어오는 제 4 단계; 제 4 단계 이후 인터럽트 레지스터(interrupt Register)의 수신 인터럽트 플래그 비트(Rx Interrupt Flag Bit)에 1을 라이트(Write)하여 수신 인터럽트(Rx Interrupt)를 요청한 후 데이타 수신동작을 종료하는 제 5 단계; 로 구성되는 것이다.On the other hand, the data communication method of the communication module includes: a first step of detecting occurrence of an Rx interrupt in the communication module; A second step of reading the Rx data length register (Rx data length register) to detect the length of the area of the received data packet when a reception (Rx) interrupt is detected; A third step of reading a Destination Address, a Source Address, a Command / Response, and a Flag after the second step; A fourth step of reading a data area of the buffer by a value read from a received data length register (Rx data length register); A fifth step of, after the fourth step, writing 1 to the Rx Interrupt Flag Bit of the interrupt register to request a Rx interrupt, and terminating the data receiving operation; .

본 발명에 의하면, 종래에 사용되었던 외부 HDLC 통신제어 칩셋(예; Z85230 통신모듈)을 대체할 수 있도록 하면서, HDLC 통신을 이용하여 마이크로 프로세서에 발생하는 인터럽트 주기를 최소화시킬 수 있는 통신모듈 및 그 데이타 통신방법을 제공하여 디지털 보호 계전기의 본연의 기능을 충실히 수행할 수 있도록 하는 효과를 기대할 수 있다.According to the present invention, there is provided a communication module capable of replacing a conventional external HDLC communication control chipset (e.g., Z85230 communication module) and minimizing an interrupt cycle occurring in a microprocessor using HDLC communication, It is possible to expect an effect of faithfully performing the function of the digital protection relay by providing a communication method.

도 1은 본 발명의 구현을 위한 디지털 보호계전기용 통신모듈을 보인 블럭도.
도 2는 본 발명에 따른 디지털 보호계전기용 통신모듈에 대한 내부 메모리 및 레지스터를 보여주기 위한 도면.
도 3은 디지털 보호계전기용 통신모듈에 사용되는 데이타패킷을 보인 도면.
도 4는 본 발명의 디지털 보호계전기용 통신모듈의 데이타 통신방법을 보인 플로우챠트.
1 is a block diagram showing a communication module for a digital protection relay for implementing the present invention;
BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a digital protection relay communication module.
3 is a diagram showing a data packet used in a communication module for a digital protection relay.
4 is a flow chart showing a data communication method of a communication module for a digital protection relay according to the present invention.

이하, 첨부된 도면 도 1 내지 도 4를 참조하여 본 발명의 바람직한 실시예를 상세히 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명을 설명함에 있어서, 정의되는 용어들은 본 발명에서의 기능을 고려하여 정의 내려진 것으로, 본 발명의 기술적 구성요소를 한정하는 의미로 이해되어서는 아니 될 것이다.In describing the present invention, the defined terms are defined in consideration of the function of the present invention, and should not be understood in a limiting sense of the technical elements of the present invention.

도면에 도시된 바와같이, 본 발명에 따른 디지털 보호계전기용 통신모듈의 통신방법은, FPGA(field-programmable gate array)를 이용하는 HDLC 통신모듈의 통신방법에 관한 것으로, 마이크로 프로세서에 발생하는 인터럽트 신호 주기를 최소화시킴으로써 디지털 보호 계전기의 본연의 기능을 충실히 수행할 수 있도록 하기 위함이다.As shown in the figure, the communication method of the digital protection relay communication module according to the present invention is related to a communication method of an HDLC communication module using an FPGA (Field-Programmable Gate Array), in which an interrupt signal cycle So that the function of the digital protection relay can be faithfully performed.

이를 위한 본 발명은 디지털 보호 계전기에서 마이크로프로세서가 내장되지 않아 외부 HDLC 통신제어 칩셋인 Z85230 통신모듈을 적용하는 것을 대체하는 통신모듈로, 이러한 디지털 보호계전기용 통신모듈은, 상위 모니터링 시스템과 반 이중 방식의 통신을 수행하여 데이터를 송수신하기 위한 HDLC 프로토콜 수단(High Level Data Link Control Precedure, 100)과, 상기 HDLC 프로토콜 수단(100)과 데이터를 송수신하며, 양 방향성 인터페이스를 제공하는 공유 메모리(Shared Memory, 200)와, 상기 공유 메모리(200)와 데이터를 송수신하며, 복수의 회로 입력신호 중에서 선택된 제어신호에 의해 어느 하나의 입력신호를 선택하여 출력회로에 실어주는 멀티플렉서(MUX, Multiplexer, 300)와, 상기 멀티플렉서와 데이터를 송수신하며, 데스크탑(10) 및 컨트롤러(20)와 통신을 하여 데이터를 송수신하는 통신부(400) 및, 상기 HDLC로 수신되는 한 개의 통신 패킷에 대해서 한 번의 신호를 컨트롤러(20)에 송신하는 인터럽트(500)를 포함한다.A communication module for replacing the Z85230 communication module, which is an external HDLC communication control chipset, because the microprocessor is not incorporated in the digital protection relay. The communication module for the digital protection relay includes an upper monitoring system and a half- An HDLC protocol unit 100 for transmitting and receiving data by performing communication with the HDLC protocol unit 100 and a shared memory 100 for transmitting and receiving data and providing a bidirectional interface with the HDLC protocol unit 100, A multiplexer (MUX) 300 for transmitting and receiving data to and from the shared memory 200, selecting one of the input signals according to a control signal selected from a plurality of circuit input signals, Transmits data to and receives data from the multiplexer, communicates with the desktop 10 and the controller 20, And an interruption 500 for transmitting one signal to the controller 20 for one communication packet received by the HDLC.

즉, 통신모듈은 HDLC 통신을 수행하기 위하여 HDLC 프로토콜 수단(100) 기능을 탑재하는 것이고, 송수신 데이터를 전달하기 위해서 양 방향성 인터페이스를 제공하기 위한 셰어드메모리(Shared Memory)가 구성되는 것이다.That is, the communication module includes a function of the HDLC protocol unit 100 for performing HDLC communication and a shared memory for providing a bidirectional interface for transmitting / receiving data.

여기서, 상기 통신부(400)는 멀티플렉서(300)와 데이터를 송수신하며, 데이터가 저장된 데스크탑(10)의 직렬장치(미도시)와 직렬 통신에 의해 데이터를 송수신하는 범용의 직렬통신부(UART, 410)와, 상기 멀티플렉서(300)와 데이터를 송수신하며, 제어를 위한 컨트롤러(20)와 병렬 통신에 의해 고속으로 데이터를 송수신하는 병렬통신부(420)를 포함할 수 있다. 그리고 상기 병렬통신부(420)에는 주소버스와 데이터버스가 포함될 수 있다.The communication unit 400 includes a universal serial communication unit (UART) 410 that transmits and receives data to and from the multiplexer 300 and transmits and receives data by serial communication with a serial device (not shown) of the desktop 10 on which data is stored, And a parallel communication unit 420 transmitting and receiving data with the multiplexer 300 and transmitting and receiving data at a high speed by parallel communication with the controller 20 for control. The parallel communication unit 420 may include an address bus and a data bus.

즉, 보호 계전기나 범용의 직렬 포트가 있는 데스크탑(10) 및 컨트롤러(20)와 데이터를 송수신하기 위해 주소버스와 데이터버스로 구성된 병렬통신부(420)와, 범용적이지만 비교적 저속의 인터페이스를 위해서 직렬통신부(410)를 선택적으로 사용할 수 있다.That is, a parallel communication unit 420 composed of an address bus and a data bus for transmitting / receiving data to / from the desktop 10 and the controller 20 having a protection relay or a general-purpose serial port, and a serial communication unit 420 for a general- The communication unit 410 can be selectively used.

이때, 병렬통신부(420)와 직렬통신부(410)는 데이터를 내부에서 버퍼링 처리할 수 있도록 양 방향성 내부 메모리를 설계함으로써, 1Kbyte 까지의 데이터를 한번에 저장하여 전달되도록 할 수 있다. In this case, the parallel communication unit 420 and the serial communication unit 410 may designate a bidirectional internal memory so that data can be buffered therein, thereby storing and transmitting data up to 1 Kbyte at a time.

그리고, HDLC 프로토콜 수단(100)은 반 이중 방식(Half Duplex)의 통신을 수행하기 때문에, 메모리의 구조도 송신과 수신의 버퍼를 물리적으로 같은 메모리를 사용하여 양 방향성에 비해 메모리 용량을 두 배로 크게 사용할 수 있도록 하였다.Since the HDLC protocol unit 100 performs half duplex communication, the structure of the memory also uses the same physical memory for the transmission and reception buffers to double the memory capacity Respectively.

즉, 송신 중에는 메모리가 송신 버퍼 1Kbyte를 사용할 수 있으며, 반대로 수신 중에는 메모리가 수신 버퍼 1Kbyte로 사용할 수 있다. That is, the memory can use 1 Kbyte of the transmission buffer during transmission, while the memory can use 1 Kbyte of reception buffer during reception.

또한, 통신모듈에서 수신동작을 수행할 경우 1Kbyte 이내에서 수신되는 한 개의 통신 패킷에 대해서 컨트롤러(20)에 실시간으로 알려주기 위한 신호를 인터럽트(500)에서 발생하도록 하였다. In addition, when a receiving operation is performed in the communication module, a signal for notifying the controller 20 of one communication packet received within 1 Kbyte in real time is generated in the interruption 500.

즉, 이러한 기능을 장비에서 자신의 아이디(ID)로 수신되는 한 개의 통신 패킷에 대해서 한 번의 인터럽트 신호가 발생하게 된다. 이는, 컨트롤러(20)에서 인터럽트 신호를 받아서 DMA(Direct Memory Access)로 처리할 경우 CPU의 연산 부하를 대폭 줄일 수 있다. That is, one interrupt signal is generated for one communication packet received in the ID of the device. This can significantly reduce the computational load of the CPU when the controller 20 receives the interrupt signal and processes it with DMA (Direct Memory Access).

그리고, HDLC 프로토콜 수단(100)의 통신시 응답시간을 조절할 수 있어 상위시스템의 통신 부분과 신호의 충돌이 발생하지 않도록 할 수 있다. In addition, since the response time of the HDLC protocol means 100 can be adjusted, it is possible to prevent a collision between the communication portion of the upper system and the signal.

병렬통신부(420)를 사용하기 위해서는, 읽기/쓰기를 위해서 인터페이스 타이밍을 제시하였으며, 칩의 사용하기 위한 유효시간은 최소 120[nsec]로 동작을 할 수 있다. In order to use the parallel communication unit 420, the interface timing is provided for reading / writing, and the valid time for using the chip is at least 120 [nsec].

그리고, 도 2에서와 같이 계전기의 내부 데이타를 통신 데이터로 보내도록 하는 1Kbyte의 메모리 이외에, HDLC 프로토콜 수단(100)의 통신 속도, 보호 계전기의 통신 ID, 인터럽트 신호의 방향성 설정, 송수신시 수신데이터 개수 정보 및 송신하고자 하는 데이터 개수에 대한 설정기능이 있다. 그리고 수신시 수신된 데이터의 오류를 점검하는 CRC 기능에 대한 결과 상태 제공을 위한 레지스터를 정의하여 사용하도록 구성할 수 있다. In addition to the 1 Kbyte memory for sending the internal data of the relay as communication data as shown in FIG. 2, the communication speed of the HDLC protocol means 100, the communication ID of the protection relay, the directional setting of the interrupt signal, Information and the number of data to be transmitted. And a register for providing a result status for the CRC function that checks for errors in the received data upon reception.

직렬통신부(410)를 이용하기 위해서는, 본 발명의 내부에 별도의 핀을 지정하여 입력 디지털 신호를 강제적으로 하이(High)레벨로 만들었을 때 115,200[bps]의 속도로 인터페이스 되도록 함으로써, 병렬통신 방식의 인터페이스에서처럼 HDLC의 통신 속도 및 보호 계전기의 ID를 설정할 수 있는 설정 모드로 사용할 수 있도록 하였다. In order to use the serial communication unit 410, when a separate pin is designated in the present invention to forcibly set the input digital signal to a high level, the interface is interfaced at a speed of 115,200 [bps] The HDLC communication speed and the ID of the protection relay can be set in the setting mode.

상기와 같이 구성된 디지털보호 계전기용 통신모듈의 통신방법을 설명하면 다음과 같다.A communication method of the digital protection relay communication module configured as described above will be described as follows.

도 3은 통신모듈에서 사용되는 데이타패킷형태를 예시한다.3 illustrates a data packet format used in a communication module.

통신모듈은 도 3과 같이 플래그(Flag), 어드레스(Address), 데이터(Data), CRC(Cyclic Redundancy Check), Flag로 구성되는 데이타패킷을 RS-485 통신을 통하여 송수신할 수 있으며, 상기 Address는 Destination Address(DA), Source Address(SA), Command/Response(C/R), Flag로 이루어진다.The communication module can transmit and receive data packets including a flag, an address, data, a cyclic redundancy check (CRC), and a flag via RS-485 communication as shown in FIG. 3, Destination Address (DA), Source Address (SA), Command / Response (C / R), Flag.

통신모듈은 HDLC 통신을 제어하기 위한 레지스터(Register)들을 지원하고 데이타 송수신을 위한 충분한 데이타 버퍼(Data Buffer)를 가지고 있다.The communication module supports registers for controlling HDLC communication and has enough data buffer for data transmission and reception.

또한 통신모듈에서 이루어지는 통신 변조속도(Baud rate)는 디폴트값으로 62.5 kbps를 사용하고, 변조속도 제어 레지스터(Baud rate Control Register)를 이용하여 최대 256kbps까지 사용자가 조종할 수 있도록 다양한 변조속도(Baud rate)를 지원한다.In addition, the baud rate of the communication module is 62.5 kbps as a default value, and a baud rate control register (Baud rate control register) is used to control the user up to 256 kbps. ).

BaudBaud raterate ControlControl RegisterRegister H (0 H (0 xC000xC000 )) R/WR / W 0x02 (Default)0x02 (Default) BaudBaud raterate ControlControl RegisterRegister L (0 L (0 xC001xC001 )) R/WR / W 0x71 (Default)0x71 (Default)

위의 표 1과 같이 62.5kbps 가 디폴트(Default)인 경우, 백 단위 이하는 무시하고, 위와 같이 625 = 0x0271이므로 상위 바이트에는 0x02를 하위 바이트에는 0x71를 입력하여 설정한다.If 62.5kbps is the default as shown in Table 1 above, it is set by inputting 0x02 in the upper byte and 0x71 in the lower byte because 625 = 0x0271 as above is ignored.

상기 구성된 통신모듈은 제어레지스터(Control Register)를 이용하여 각종 통신설정을 수행할 수 있다. 통신모듈에 구성되는 제어레지스터는 리드/라이트(Read/Write)(R/W) 모두 가능하게 함으로써, 어떻게 통신모듈이 설정되어 있는지를 해당 레지스터를 읽어서 확인할 수 있다.The configured communication module can perform various communication settings using a control register. The control register configured in the communication module enables reading / writing (R / W), so that it can check how the communication module is set by reading the corresponding register.

콘트롤 레지스터에 의해 이루어지는 통신설정Communication setting made by control register ControlControl RegisterRegister (0 (0 xC002xC002 )) BitBit 역할role 설명Explanation 77 ModuleModule EnableEnable
(R/W)(R / W)
- 통신 모듈을 사용할 수 있도록 해준다. - It enables to use communication module.
- - DisableDisable 에서 in EnableEnable 하면 자동으로 통신모듈을 When you automate the communication module ResetReset 한다.do.
ll 0: 0: DisableDisable ( ( DefaultDefault ))
ll 1: One: EnableEnable
66 ModuleModule ResetReset
(R/W)(R / W)
- 통신 모듈을 - Communication module ResetReset 한다. do. ResetReset 이후 통신 모듈의 모든 설정 값은  Then all the settings of the communication module are DefaultDefault 값으로 돌아가고 Return to value RxRx // TxTx BufferBuffer 를 모두 Clear한다.Is cleared.
- - RxRx // TxTx LengthLength RegisterRegister 값을 모두 0으로  Set all values to 0 ResetReset 한다.do.
- - RxRx // TxTx InterruptInterrupt FlagFlag 모두  all ClearClear 한다.  do.
- 이 - This BitBit 를 1로 설정하면, Is set to 1, ModuleModule this ResetReset 되는 동안 1을 유지하고 있다가, While maintaining 1, ResetReset 이 완료되면 0으로 자동으로 돌아간다.When it is completed, it returns to 0 automatically.
ll 0: 0: ResetReset 완료 ( complete ( DefaultDefault ))
ll 1: One: ResetReset 실행. Execution.
55 RxRx BufferBuffer ClearClear
(R/W)(R / W)
- - DADA , , SASA , C/R, , C / R, FlagFlag , , DataData 영역의  Area RxRx 영역의 모든  All of the area BufferBuffer To ClearClear 한다.do.
- - RxRx LengthLength RegisterRegister 값을 0으로  Set the value to 0 ResetReset 한다. do.
- - RxRx BufferBuffer ClearClear 를 실행하면, Quot; BufferBuffer end ClearClear 되는 동시에 At the same time RxRx InterruptInterrupt FlagFlag Degree ClearClear 된다. do.
- - RxRx BufferBuffer ClearClear 를 실행하는 동안에는 1을 유지하다가, Clear 과정을 완료하면 0으로 자동으로 돌아간다., It keeps 1, and when it completes the clear process, it returns to 0 automatically.
ll 0: 0: RxRx BufferBuffer ClearClear 완료 ( complete ( DefaultDefault ))
ll 1: One: RxRx BufferBuffer ClearClear 실행 Execution
44 TxTx BufferBuffer ClearClear
(R/W)(R / W)
- - DADA , , SASA , C/R, , C / R, FlagFlag , , DataData 영역의  Area RxRx 영역의 모든  All of the area BufferBuffer To ClearClear 한다.do.
- - TxTx LengthLength RegisterRegister 값을 0으로  Set the value to 0 ResetReset 한다. do.
- - TxTx BufferBuffer ClearClear 를 실행하면, Quot; BufferBuffer end ClearClear 되는 동시에 At the same time TxTx InterruptInterrupt FlagFlag Degree ClearClear 된다. do.
- - TxTx BufferBuffer ClearClear 를 실행하는 동안에는 1을 유지하다가, Clear 과정을 완료하면 0으로 자동으로 돌아간다., It keeps 1, and when it completes the clear process, it returns to 0 automatically.
ll 0: 0: TxTx BufferBuffer ClearClear 완료 ( complete ( DefaultDefault ))
ll 1: One: TxTx BufferBuffer ClearClear 실행 Execution
33 TxTx InterruptInterrupt EnableEnable
(R/W)(R / W)
- - TxTx BufferBuffer NumberNumber RegisterRegister 의 있는 수만큼 As many as DataData 를 전송하고, Lt; / RTI > TxTx BufferBuffer To ClearClear 한 이후, 다시 Since then, again TxTx 서비스를 할 수 있을 때,  When the service is available, InterruptInterrupt PulsePulse 를 발생시킨다. 만약 . if TxTx Interrupt를  Interrupt EnableEnable 하지 않으면 If you do not TxTx BufferBuffer 에 있는 In DataData 를 모두 전송하고 나서, And then, TxTx InterruptInterrupt FlagFlag 만 1로 Only 1 SetSet 할 뿐 Interrupt Interrupt PulsePulse 를 발생시키지 않는다..
ll 0: 0: DisableDisable ( ( DefaultDefault ))
ll 1: One: EnableEnable
22 RxRx InterruptInterrupt EnableEnable
(R/W)(R / W)
- 통신 패킷을 - Communication packets CRCCRC 까지 모두 수신하면 When you receive all RxRx InterruptInterrupt PulsePulse 를 발생시킨다. 만약 . if RxRx InterruptInterrupt To EnableEnable 하지 않으면, Rx If not, Rx InterruptInterrupt FlagFlag 만 1로 Only 1 SetSet 되고, And, InterruptInterrupt PulsePulse 는 만들지 않는다.Do not create.
ll 0: 0: DisableDisable ( ( DefaultDefault ))
ll 1: One: EnableEnable
1One TxTx EnableEnable
(R/W)(R / W)
ll 0: 0: DisableDisable ( ( DefaultDefault ))
ll 1: One: EnableEnable
00 RxRx EnableEnable
(R/W)(R / W)

한편, 통신모듈에서 Rx/Tx Interrupt를 발생시킬 경우 Flag를 처리하는 방법을 아래의 표 3에 예시하였다.On the other hand, a method of processing a flag when an Rx / Tx interrupt is generated in the communication module is illustrated in Table 3 below.

InterruptInterrupt FlagFlag RegisterRegister (0 (0 xC003xC003 )) BitBit 역할role 설명Explanation 77 ReservedReserved
(R)(R)
- 사용하지 않음.- Not used.
66 55 44 33 22 1One TxTx InterruptInterrupt FlagFlag
(R/W)(R / W)
- Tx Data를 모두 전송하고, Tx Ready 상태가 되면, 1로 된다.
- Data를 전송하고 있을 때는 0이었다가, 전송을 완료하면 다시 1로 전환된다.
- Transmits all Tx data, and becomes 1 when Tx ready state is established.
- When data is being transmitted, it is 0, and when transmission is completed, it is switched back to 1.
00 RxRx InterruptInterrupt FlagFlag
(R/W)(R / W)
- Data Packet을 모두 수신 후, CRC 체크까지 완료 후, Packet의 이상이 없으면, 이 Bit가 1로 된다. Rx Interrupt가 Enable되어 있으면 이 Flag가 Rx Interrupt를 발생시킨다. 이 Bit에 다시 1을 입력하면 인터럽트 ACK로 다시 0으로 바뀐다.- After receiving all the data packets and after completing the CRC check, this bit becomes 1 if there is no error in the packet. If Rx Interrupt is enabled, this flag generates Rx Interrupt. If you enter 1 again in this bit, it is changed back to 0 by interrupt ACK.

상기와 같이 설명된 데이타 패킷을 이용한 본 발명의 통신모듈의 통신방법을 설명하면 다음과 같다.A communication method of the communication module of the present invention using the data packet described above will be described as follows.

◆ 데이타 수신 ◆◆ Receive data ◆

본 발명의 데이타 수신방법을 도 4의 플로우챠트를 참조하여 설명하면, 통신모듈에서 Rx 인터럽트가 발생된 것을 감지하는 제 1 단계와, Rx 인터럽트 감지시 Rx Data length Register를 읽어 수신데이타 영역의 길이를 확인하는 제 2 단계와, 제 2 단계 이후 Destination Address, Source Address, Command/Response, Flag를 읽어오는 제 3 단계와, Rx Data length Register에서 읽은 값만큼 버퍼의 데이타 영역을 읽어오는 제 4 단계, 그리고 제 4 단계 이후 interrupt Register의 Rx Interrupt Flag Bit에 1을 라이트(Write)하여 Rx Interrupt를 요청한 후 데이타 수신동작을 종료하는 제 5 단계; 로 구성되는 것이다.The method of receiving data according to the present invention will now be described with reference to the flow chart of FIG. 4. The first step is to detect the occurrence of an Rx interrupt in the communication module. The Rx data length register is read when the Rx interrupt is detected, A third step of reading a Destination Address, a Source Address, a Command / Response, and a Flag after the second step, a fourth step of reading a data area of the buffer by a value read from the Rx Data length Register, A fifth step of, after the fourth step, writing 1 to the Rx Interrupt Flag Bit of the interrupt register to request Rx interrupt, and terminating the data receiving operation; .

상기 제 3 단계에서, Destination Address(DA)가 셀프 어드레스 레지스터(Self Address Register)에 저장한 값과 동일할 경우에만 이후 CRC와 Flag가 나올 때까지 통신데이터를 수신하고, Self Address가 맞아서 통신데이터를 수신하면 통신모듈에서 16bits CRC를 체크하고 CRC까지 모두 맞을 때에만 Data를 Rx Buffer에 업로드 하고, Rx Interrupt Flag를 1로 Set 시키는 것을 특징으로 한다.In the third step, only when the Destination Address (DA) is the same as the value stored in the Self Address Register, the communication data is received until the CRC and Flag come out, Upon receipt, the communication module checks the 16 bits CRC and uploads the data to the Rx Buffer only when all of the CRC is satisfied, and sets the Rx Interrupt Flag to 1.

또한, 제 4 단계 이후 읽은 버퍼(DA,SA,C/R,Flag)를 클리어시키는 것을 특징으로 한다.Also, the buffer (DA, SA, C / R, Flag) read after the fourth step is cleared.

본 발명의 통신방법을 설명하면 다음과 같다.The communication method of the present invention will be described as follows.

우선, 수신데이타에 의해 통신모듈에서 Rx 인터럽트가 발생하면, 통신모듈은 Rx 인터럽트 감지시 Rx Data length Register를 읽어 수신데이타 영역의 길이를 확인한다.First, when a communication module generates an Rx interrupt due to reception data, the communication module reads the Rx data length register to check the length of the reception data area when an Rx interrupt is detected.

수신된 통신데이터의 크기는 byte로 표시하여 Rx Data Length Register에 저장한다. 예를들어, 수신된 통신데이터가 12byte라면, DA, SA, C/R, Flag와 Data를 포함한 메시지 크기이다.The size of the received communication data is displayed in byte and stored in the Rx Data Length Register. For example, if the received communication data is 12 bytes, it is a message size including DA, SA, C / R, Flag and Data.

아래의 [표 4]는 수신한 데이터가 500개인 경우 Rx Length Register에 저장되는 내용을 예시한 것이다.[Table 4] below shows the contents stored in the Rx Length Register when there are 500 received data.

RxRx LengthLength RegisterRegister ReadRead onlyonly RxRx DataData LengthLength H (0 H (0 xC005xC005 )) 0x010x01 RxRx DataData LengthLength L (0 L (0 xC006xC006 )) 00 xF4xF4

제 2 단계에서 수신데이타 영역의 길이가 확인되면 이후 Destination Address, Source Address, Command/Response, Flag를 읽어온다.When the length of the received data area is confirmed in the second step, the destination address, source address, command / response, and flag are read.

이때, Destination Address(DA)가 표 5와 같은 Self Address Register에 저장한 값과 동일할 경우에만 이후 CRC와 Flag가 나올 때까지 통신데이터를 수신한다.At this time, only when the Destination Address (DA) is the same as the value stored in the Self Address Register as shown in Table 5, the communication data is received until the CRC and Flag come out.

SelfSelf AddressAddress RegisterRegister (0 (0 xC004xC004 )) R/WR / W 0xXX0xXX

Self Address가 맞아서 통신데이터를 수신하면 통신모듈에서 16bits CRC를 체크하고 CRC까지 모두 맞을 때에만 Data를 Rx Buffer에 업로드 하고, Rx Interrupt Flag를 1로 Set 시킨다. 만약 Control Register에 Rx Interrupt Enable Bit가 Set 되어 있다면, Interrupt를 발생한다.When the communication data is received because the Self Address is correct, the communication module checks the 16 bits CRC and uploads the data to the Rx Buffer only when the CRC is fully satisfied, and sets the Rx Interrupt Flag to 1. If the Rx Interrupt Enable Bit is set in the Control Register, an interrupt is generated.

이와 같이 Self Address가 맞아서 통신데이터를 수신할 때에는 Rx Data length Register에서 읽은 값만큼 버퍼의 데이타 영역을 읽어온다.When communication data is received because the Self Address is correct, the data area of the buffer is read by the value read from the Rx data length register.

Buffer는 데이타를 읽으면 자동으로 Clear하며, Buffer를 다 읽지 않더라도 Control Register의 Rx Buffer Clear Bit를 1로 Set하면 DA, SA, C/R, Flag영역을 포함한 Data Buffer 전역을 Clear 하고, Control Register의 Rx Buffer Clear Bit는 다시 0으로 돌아간다. Clear를 하고 있는 도중에는 Clear Bit를 1로 유지한다.Buffer is automatically cleared when data is read. If Rx Buffer Clear Bit of Control Register is set to 1, it clears the entire data buffer including DA, SA, C / R and Flag area and Rx Buffer Clear Bit returns to 0 again. Keep Clear Bit at 1 during Clear.

데이타를 수신한 후에는 interrupt Register의 Rx Interrupt Flag Bit에 1을 라이트(Write)하여 Rx Interrupt를 요청한 후 데이타 수신동작을 종료한다.After receiving the data, 1 is written to the Rx Interrupt Flag Bit of the interrupt register to request Rx Interrupt and the data reception operation is terminated.

한편, 수신된 통신데이터를 업로드할 때에는 Destination Address(DA), Source Address(SA), Command/Response(C/R), Flag, Data영역으로 나누어 저장을 한다. 기존 프로그램과의 호환을 위하여 DA, SA, C/R, Flag, Data 순으로 메모리 Address를 설정하여 Address를 증가시킴으로써 차례로 액세스(Access)할 수 있도록 한다.On the other hand, when uploading the received communication data, it is divided into Destination Address (DA), Source Address (SA), Command / Response (C / R), Flag and Data area. In order to be compatible with existing programs, memory addresses are set in the order of DA, SA, C / R, Flag, and Data so that the addresses can be sequentially accessed by increasing addresses.

업로드시 Rx Buffer의 어드레스변화를 표 6에 예시하였다.Table 6 shows the change in address of the Rx buffer at the time of uploading.

RxRx BufferBuffer (0x0000)  (0x0000) ReadRead OnlyOnly AddressAddress 88 bitbit BufferBuffer 0x00000x0000 DADA 0x00010x0001 SASA 0x00020x0002 C/RC / R 0x00030x0003 FlagFlag 0x00040x0004 Data[0]Data [0] 0x00050x0005 Data[1]Data [1] ….... . ….... . 0x0247(583)0x0247 (583) Data[580]Data [580]

Rx Buffer를 읽는 경우, Address를 다시 설정하지 않아도 알아서 1씩 증가하도록 한다. 예를 들어 0x0000번지를 읽는 경우, 다음에는 DSP에서 Read 명령만 계속해도 알아서 Address가 1씩 증가하여 0x0001, 0x0002와 같이 다음 Data를 전송할 수 있도록 한다. 이후 Address를 설정하는 명령이 다시 나오면, 그 Address로 포인터가 이동하고, Read 명령을 내리면 그 Address에서부터 1씩 증가하여 Data를 전송한다.When reading the Rx Buffer, make sure to increase it by 1 without resetting the address. For example, if you read address 0x0000, then the address is incremented by 1 so that the next data can be transmitted as 0x0001 and 0x0002 even if you continue the Read command only in DSP. When the command to set the address is displayed again, the pointer moves to the address, and when the command is issued, the address is incremented by 1 and the data is transmitted.

그리고, Buffer가 Clear 되지 않았을 때, 또는 일부만 Clear 됐을 때에, 다시 통신 Data가 수신되면 모든 Buffer가 Clear 될 때까지 수신된 Data는 무시한다.If the Buffer is not cleared or only partially cleared, if communication data is received again, the received data is ignored until all buffers are cleared.

인터럽트를 발생시킨 이후, 100ms이내로 Buffer가 Clear되지 않으면 자동으로 Buffer를 Clear하고, 다음 통신데이터를 수신대기 한다If the buffer is not cleared within 100ms after generating the interrupt, it automatically clears the buffer and waits for the next communication data

이상에서 본 발명의 디지털 보호 계전기용 통신모듈의 데이타 통신방법에 대한 기술사상을 첨부도면과 함께 서술하였지만, 이는 본 발명의 가장 양호한 실시 예를 예시적으로 설명한 것이지 본 발명을 한정하는 것은 아니다.Although the technical idea of the data communication method of the digital protection relay communication module according to the present invention has been described above with reference to the accompanying drawings, it is to be understood that the present invention is not limited thereto.

따라서 이 기술분야의 통상의 지식을 가진 자이면 누구나 본 발명의 기술사상의 범위를 이탈하지 않는 범위 내에서 치수 및 모양 그리고 구조 등의 다양한 변형 및 모방할 수 있음은 명백한 사실이며 이러한 변형 및 모방은 본 발명의 기술 사상의 범위에 포함된다.Accordingly, it is a matter of course that various modifications and variations of the present invention are possible without departing from the scope of the present invention. And are included in the technical scope of the present invention.

10: 데스크탑 20: 컨트롤러
100: HDLC 프로토콜 수단 200: 공유 메모리
300: 멀티플렉서 400: 통신부
410: 직렬통신부 420: 병렬통신부
500: 인터럽트
10: Desktop 20: Controller
100: HDLC protocol means 200: shared memory
300: Multiplexer 400:
410: serial communication unit 420: parallel communication unit
500: Interrupt

Claims (7)

디지털 보호 계전기에 적용되는 외부 HDLC 통신제어 칩셋인 Z85230 통신모듈을 대체하는 통신모듈을 구성하는 것으로, 상기 통신모듈은;
상위 모니터링 시스템과 반 이중 방식의 통신을 수행하여 데이터를 송수신하기 위한 HDLC 프로토콜 수단;
상기 HDLC 프로토콜 수단과 데이터를 송수신하며, 양 방향성 인터페이스를 제공하는 공유 메모리;
상기 공유 메모리와 데이터를 송수신하며, 복수의 회로 입력신호 중에서 선택된 제어신호에 의해 어느 하나의 입력신호를 선택하여 출력회로에 실어주는 멀티플렉서;
상기 멀티플렉서와 데이터를 송수신하며, 데스크탑 및 컨트롤러와 통신을 하여 데이터를 송수신하는 통신부; 및,
상기 HDLC 프로토콜 수단으로 수신되는 한 개의 통신 패킷에 대해서 한 번의 신호를 컨트롤러에 송신하는 인터럽트; 를 포함하여 구성하는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈.
A communication module replacing the Z85230 communication module as an external HDLC communication control chipset applied to a digital protection relay, the communication module comprising:
An HDLC protocol means for transmitting and receiving data by performing half duplex communication with an upper monitoring system;
A shared memory for transmitting and receiving data with the HDLC protocol means and providing a bidirectional interface;
A multiplexer for transmitting and receiving data to and from the shared memory, selecting one of the input signals according to a control signal selected from a plurality of circuit input signals, and outputting the selected input signal to an output circuit;
A communication unit for transmitting and receiving data with the multiplexer and communicating with a desktop and a controller to transmit and receive data; And
An interrupt for transmitting one signal to a controller for one communication packet received by the HDLC protocol means; And a communication module for a digital protection relay.
제 1 항에 있어서, 상기 통신부는 멀티플렉서와 데이터를 송수신하며, 데이터가 저장된 데스크탑의 직렬장치와 직렬 통신에 의해 데이터를 송수신하는 범용의 직렬통신부(UART)와, 상기 멀티플렉서와 데이터를 송수신하며, 제어를 위한 컨트롤러와 병렬 통신에 의해 고속으로 데이터를 송수신하는 병렬통신부를 포함하여 구성하는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈.[2] The apparatus of claim 1, wherein the communication unit comprises: a general-purpose serial communication unit (UART) that transmits and receives data to and from a multiplexer, and transmits and receives data by serial communication with a serial device of the desktop on which data is stored; And a parallel communication unit for transmitting and receiving data at a high speed by parallel communication with the controller for the digital protection relay. 제 2 항에 있어서, 상기 병렬통신부에는 주소버스와 데이터버스를 포함하여 구성하는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈.The communication module for a digital protection relay according to claim 2, wherein the parallel communication unit includes an address bus and a data bus. 디지털 보호 계전기에 적용되는 외부 HDLC 통신제어 칩셋인 Z85230 통신모듈을 대체하는 통신모듈을 구성하고,
상기 통신모듈에서 Rx 인터럽트가 발생된 것을 감지하는 제 1 단계;
수신(Rx) 인터럽트 감지시 수신 데이터 길이 레지스터(Rx Data length Register)를 읽어 수신 데이타패킷의 영역의 길이를 확인하는 제 2 단계;
제 2 단계 이후 데스티네이션 어드레스(Destination Address), 소스 어드레스(Source Address), 명령/응답(Command/Response), 플래그(Flag)를 읽어오는 제 3 단계;
수신 데이터 길이 레지스터(Rx Data length Register)에서 읽은 값만큼 버퍼의 데이타 영역을 읽어오는 제 4 단계; 및,
제 4 단계 이후 한 개의 통신 패킷에 대해서 한 번의 신호를 송신하도록 인터럽트 레지스터(interrupt Register)의 수신 인터럽트 플래그 비트(Rx Interrupt Flag Bit)에 1을 라이트(Write)하여 수신 인터럽트(Rx Interrupt)를 요청한 후 데이타 수신동작을 종료하는 제 5 단계; 를 포함하여 진행하는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈의 데이타 통신방법.
A communication module replacing the Z85230 communication module, which is an external HDLC communication control chipset applied to digital protection relays,
A first step of detecting occurrence of an Rx interrupt in the communication module;
A second step of reading the Rx data length register (Rx data length register) to detect the length of the area of the received data packet when a reception (Rx) interrupt is detected;
A third step of reading a Destination Address, a Source Address, a Command / Response, and a Flag after the second step;
A fourth step of reading a data area of the buffer by a value read from a received data length register (Rx data length register); And
After the fourth step, 1 is written to the Rx Interrupt Flag bit of the interrupt register to request a reception interrupt (Rx Interrupt) so that one signal is transmitted for one communication packet A fifth step of terminating the data receiving operation; And transmitting the data to the digital protection relay module.
제 4 항에 있어서,
제 3 단계에서, Destination Address(DA)가 셀프 어드레스 레지스터(Self Address Register)에 저장한 값과 동일할 경우에만 이후 CRC와 Flag가 나올 때까지 통신데이터를 수신하고, Self Address가 맞아서 통신데이터를 수신하면 통신모듈에서 16bits CRC를 체크하고 CRC까지 모두 맞을 때에만 Data를 Rx Buffer에 업로드 하고, Rx Interrupt Flag를 1로 Set 시키는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈의 데이타 통신방법.
5. The method of claim 4,
In the third step, only when the Destination Address (DA) is the same as the value stored in the Self Address Register, communication data is received until the next CRC and Flag, and the communication data is received The communication module checks the 16-bit CRC and uploads the data to the Rx buffer only when the CRC is fully satisfied, and sets the Rx Interrupt Flag to 1. The data communication method of the communication module for the digital protection relay.
제 4 항에 있어서, 제 4 단계 이후 읽은 버퍼(DA,SA,C/R,Flag)를 클리어시키는 것을 특징으로 하는 디지털 보호 계전기용 통신모듈의 데이타 통신방법.The data communication method according to claim 4, wherein the buffer (DA, SA, C / R, Flag) read after the fourth step is cleared. 제 4 항에 있어서, 통신모듈에서 사용되는 데이타패킷은
Flag, Address, Data, CRC, Flag로 구성되고, 상기 Address는 Destination Address(DA), Source Address(SA), Command/Response(C/R), Flag로 이루어진것을 특징으로 하는 디지털 보호 계전기용 통신모듈의 데이타 통신방법.
5. The method according to claim 4, wherein the data packet used in the communication module
Wherein the address is composed of a Destination Address (DA), a Source Address (SA), a Command / Response (C / R), and a Flag. / RTI >
KR1020110112518A 2011-10-31 2011-10-31 Data communication method for Communication module of digital Protective Relay KR101685613B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020110112518A KR101685613B1 (en) 2011-10-31 2011-10-31 Data communication method for Communication module of digital Protective Relay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020110112518A KR101685613B1 (en) 2011-10-31 2011-10-31 Data communication method for Communication module of digital Protective Relay

Publications (2)

Publication Number Publication Date
KR20130047465A KR20130047465A (en) 2013-05-08
KR101685613B1 true KR101685613B1 (en) 2016-12-13

Family

ID=48658947

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020110112518A KR101685613B1 (en) 2011-10-31 2011-10-31 Data communication method for Communication module of digital Protective Relay

Country Status (1)

Country Link
KR (1) KR101685613B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101537680B1 (en) 2013-09-02 2015-07-17 엘에스산전 주식회사 Event communication apparatus for protection relay

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318697A (en) 2004-04-28 2005-11-10 Meidensha Corp Digital protection and control system
KR100779918B1 (en) 2006-09-28 2007-11-29 아진산업(주) Image process apparatus and method using stereo vision
JP2010041899A (en) 2008-08-08 2010-02-18 Toshiba Corp Protection relay system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318697A (en) 2004-04-28 2005-11-10 Meidensha Corp Digital protection and control system
KR100779918B1 (en) 2006-09-28 2007-11-29 아진산업(주) Image process apparatus and method using stereo vision
JP2010041899A (en) 2008-08-08 2010-02-18 Toshiba Corp Protection relay system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
S. Hamed Javadi 외 1인, Australian Journal of Basic and Applied Sciences, "Design and Implementation of a High Bit Rate HDLC Transceiver Based on a Modified MT8952B Controller" (2009.10. 공개)

Also Published As

Publication number Publication date
KR20130047465A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN102647320B (en) Integrated circuit suitable for high-speed 1553 bus protocol control
JP6140459B2 (en) Sensor data transmission device
CN112799992B (en) Fieldbus chip architecture
CN102253913B (en) Device for carrying out state acquisition and output control on multi-board-card port
US20220239576A1 (en) Error detection test device for a subscriber station of a serial bus system and method for testing mechanisms for detecting errors in a communication in a serial bus system
CN101500175A (en) Test method and apparatus for digital display interface
US20050038921A1 (en) Protocol adapter for passing diagnostic messages between vehicle networks and a host computer
CN102088444A (en) PROFIBUS DP and PROFIBUS PA protocol conversion gateway module
CN101854258B (en) Implementation method and device for eliminating communication chip failures
CN113849436A (en) CAN data conversion chip compatible with multiple serial protocols and method
US7827335B2 (en) Remote communication system of a network
KR101685613B1 (en) Data communication method for Communication module of digital Protective Relay
US9112736B2 (en) Data transfer apparatus, data transfer method, and inter-chip communication system
CN201378316Y (en) Universal input/output interface extension circuit and mobile terminal with same
CN210428141U (en) Digital sensor
CN112822290A (en) Train network communication device, system and method
CN110955620A (en) 1553B bus protocol system based on PCIE
US20100257299A1 (en) Transmission wire with switching apparatus and switching method thereof
CN114500148B (en) Conversion device, access method, electronic equipment and storage medium of PA equipment
CN214014269U (en) Train network communication device and system
EP1710707B1 (en) Memory interface device, memory interface method, and modem device
KR200309903Y1 (en) Universal asynchronous transceiver
JP5534605B2 (en) Asynchronous serial communication method
Liao et al. Application of IEC870-5-101 Protocol in FTU Based on TMS320F28335
KR100262864B1 (en) Communication protocol of plc

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