KR19980035314A - PD data transmission and reception method - Google Patents
PD data transmission and reception method Download PDFInfo
- Publication number
- KR19980035314A KR19980035314A KR1019960053637A KR19960053637A KR19980035314A KR 19980035314 A KR19980035314 A KR 19980035314A KR 1019960053637 A KR1019960053637 A KR 1019960053637A KR 19960053637 A KR19960053637 A KR 19960053637A KR 19980035314 A KR19980035314 A KR 19980035314A
- Authority
- KR
- South Korea
- Prior art keywords
- data
- queue
- area
- transmitted
- list
- Prior art date
Links
Landscapes
- Communication Control (AREA)
Abstract
본 발명은 피엘씨의 데이타 송수신 방법에 관한 것으로, 종래의 장치는 큐를 통하여 데이타를 전달할 경우 데이타를 저장한 큐풀의 포인터값을 타스크에 넣어서 상대방으로 하여금 처리하도록 하였는데, 이때 노이즈 등으로 인하여 타스크에 넣어주는 큐 포인터값이 깨어지면 오류검출 방법에 의하여 큐 영역을 초기화하기 때문에 모든 데이타가 상실되는 문제점이 있었다. 본 발명은 이러한 종래의 문제점을 해결하기 위해 송신할 데이타 갯수만큼의 큐의 영역을 미리 설정하는 제 1 단계와; 상기 송신할 데이타의 포인터를 리스트로 작성하는 제 2 단계와; 상기 제 1 단계의 영역에서 데이타 송수신시 큐의 포인터값이 정상인가를 판단하여 정상이 아니면 상기 제 2 단계에서 작성한 포인터 리스트를 확인하여 해당 영역의 값만 업데이트하는 제 3 단계로 이루어진 피엘씨의 데이타 송수신 방법을 창안한 것으로, 이와 같이 고속의 반복되는 데이타를 송수신할 경우 반복되는 데이타의 설정된 블록의 갯수만큼 큐를 버퍼처럼 미리 예약하여 사용함으로써 고속의 반복되는 데이타를 정해진 영역에서만 읽고 쓰기 때문에 메모리의 효율성을 높일 수 있고, 각 데이타의 포인터를 리스트로 작성함으로써 노이즈 등으로 인해 큐가 깨진 경우 해당 데이타만을 업데이트하기 때문에 데이타의 손실을 방지할 수 있는 효과가 있다.The present invention relates to a method of data transmission and reception of a PLC, the conventional apparatus is to send the data through the queue to the task by putting the pointer value of the queue of the data stored in the task to the counterpart, at this time due to noise, etc. If the queue pointer value is broken, all data is lost because the queue area is initialized by the error detection method. The present invention provides a first step of presetting an area of a queue corresponding to the number of data to be transmitted in order to solve such a conventional problem; A second step of creating a list of pointers of the data to be transmitted; It is determined whether the pointer value of the queue is normal when transmitting or receiving data in the area of the first step, and if it is not normal, it is a third step of updating the value of the corresponding area by checking the pointer list created in the second step. In this way, when a high-speed repetitive data is transmitted and received in this way, the buffer is reserved and used as a buffer in advance for the set number of repetitive data, so the high-speed repetitive data can be read and written only in a predetermined area, thereby improving memory efficiency. By increasing the number of pointers for each data in the list, if the queue is broken due to noise or the like, only the corresponding data is updated, thereby preventing data loss.
Description
제 1 도는 종래 피엘씨 인터페이스 장치의 블럭 구성도,1 is a block diagram of a conventional PLC interface device,
제 2 도는 제 1 도에 있어서, 공용램내 큐의 상세 블럭 구성도,2 is a detailed block diagram of a queue in a common RAM according to FIG.
제 3 도는 종래 피엘씨의 데이타 송수신 동작 흐름도,3 is a flowchart of a data transmission / reception operation of a conventional PLC,
제 4 도는 본 발명 피엘씨 인터페이스 장치의 블럭 구성도,4 is a block diagram of a PLC interface device of the present invention;
제 5 도는 본 발명에 있어서, 포인터 리스트를 나타낸 표,5 is a table showing a pointer list according to the present invention;
제 6 도는 본 발명 피엘씨의 데이타 송수신 동작 흐름도.6 is a flowchart of data transmission and reception of the present invention.
*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *
100 : 피엘씨인터페이스콘트롤러200 : 링크인터페이스콘트롤러100: PLC interface controller 200: Link interface controller
300 : 공용램310 : 큐300: common ram 310: queue
320 : 큐풀매니저321-324 : 큐풀320: cupid manager
본 발명은 피엘씨의 데이타 송수신 방법에 관한 것으로, 특히 고속의 반복되는 데이타를 송수신할 경우 반복되는 데이타의 설정된 블록의 갯수만큼 큐를 버퍼처럼 미리 예약하여 사용하고, 데이타의 포인터를 리스트로 작성함으로써 데이타의 손실을 방지하는데 적당하도록 한 피엘씨의 데이타 송수신 방법에 관한 것이다.The present invention relates to a method of data transmission and reception of PLC, and in particular, in the case of sending and receiving high-speed repetitive data, the queue is reserved in advance as a buffer as the number of set blocks of repetitive data, and the data pointers are created as a list. The present invention relates to a method of data transmission and reception of PLC, which is suitable for preventing data loss.
피엘씨와 통신모듈 사이의 데이타 및 명령어의 전달은 제 1 도에 도시된 바와 같이 피엘씨내의 피엘씨인터페이스콘트롤러(100)에 의해서 공용램(300)내의 큐(310)에 저장되어 전달되며, 통신모듈로부터의 모든 데이타 역시 링크인터페이스콘트롤러(200)에 의해서 공용램(300)내의 큐(310)를 통하여 피엘씨로 전달된다.Transmission of data and commands between the PLC and the communication module is stored in the queue 310 in the common RAM 300 and transmitted by the PLC interface controller 100 in the PLC as shown in FIG. All data from the module is also transmitted by the link interface controller 200 to the PLC through the queue 310 in the common RAM (300).
상기 공용램(300)에는 큐의 관리의 효율성을 위해 제 2 도에 도시된 바와 같이 인터페이스 데이타의 크기에 따라 4가지 종류의 큐풀(QUEUE POOL)(321-324)을 가지고 있으며, 이것을 관리하는 버퍼를 큐풀매니저(320)라고 한다.The common RAM 300 has four types of QUEUE POOLs 321 to 324 according to the size of interface data, as shown in FIG. 2, for efficient management of queues. This is referred to as the cue manager 320.
상기 큐풀(321-324)의 헤드넘버(HEAD NO)에는 사용 가능한 첫번째 큐의 포인터가 저장되고, 테일넘버(TAIL NO)에는 사용 가능한 마지막 포인터가 저장되어 공용램을 사용하고자 할 때에는 헤드넘버가 가리키는 번지의 큐를 사용하며, 이미 사용한 큐를 반납시에는 사용한 큐의 어드레스를 테일넘버에 등록하여 다음 사용을 가능하게 한다.The head number (HEAD NO) of the queue pool (321-324) is stored a pointer of the first queue available, the tail number (TAIL NO) is stored the last pointer available to the head number indicated when using the common RAM When using the queue of address, and returning the already used cue, register the used cue's address in tail number to enable the next use.
예를 들어 피엘씨에서 통신모듈측으로 데이타를 전달할 경우, 데이타를 저장한 큐풀의 포인터 값을 타스크(TASK)에 넣어서 상대방으로 하여금 처리하게 한다.For example, in case of transferring data from the PC to the communication module, the counterpart puts the pointer value of the queue pool that stores the data into the task and causes the counterpart to process it.
이후, 상대방은 상기 헤드넘버의 타스크를 다 처리하면, 이 큐를 큐풀매니저의 테일넘버에 넣어서 타스크를 해제시킴으로서 데이타를 송수신한다.Then, when the other party completes the task of the head number, the queue puts the queue into the tail number of the queue manager and releases the task to send and receive data.
이때 노이즈 등으로 인하여 타스크에 넣어주는 큐포인터값이 깨어지면 제 3 도의 동작 흐름도에 도시된 바와 같이 오류검출 방법에 의하여 큐의 전체 영역을 초기화한다.At this time, if the cue pointer value inserted into the task is broken due to noise, the entire area of the queue is initialized by the error detection method as shown in the operation flowchart of FIG.
이상에서 설명한 바와 같이 종래의 장치는 큐를 통하여 데이타를 전달할 경우 데이타를 저장한 큐풀의 포인터값을 타스크에 넣어서 상대방으로 하여금 처리하도록 하였는데, 이때 노이즈 등으로 인하여 타스크에 넣어주는 큐 포인터값이 깨어지면 오류검출 방법에 의하여 큐 영역을 초기화하기 때문에 모든 데이타가 상실되는 문제점이 있었고, 그리고 고속링크 데이타 갯수에 관게없이 항상 일정한 크기의 영역을 할당하고 있기 때문에 메모리를 효율적으로 사용할 수 없는 문제점이 있었다.As described above, in the case of transmitting data through a queue, the conventional apparatus puts a pointer value of a queue pool storing data into a task to process the counterpart, and when the queue pointer value inserted into the task is broken due to noise, etc. There is a problem that all data is lost because the queue area is initialized by the error detection method, and there is a problem that the memory cannot be efficiently used because a constant size area is always allocated regardless of the number of HS link data.
본 발명의 목적은 이러한 종래의 문제점을 해결하기 위해 고속의 반복되는 데이타를 송수신할 경우 반복되는 데이타의 설정된 블록의 갯수만큼 큐를 버퍼처럼 미리 예약하여 사용하고, 그 데이타의 포인터를 리스트로 작성하여 큐가 깨진 경우에는 해당 영역의 데이타만 업데이트하게 함으로써 데이타의 손실을 방지할 수 있도록 한 피엘씨의 데이타 송수신 방법을 제공하는데 있다.An object of the present invention is to solve the conventional problems, when using the same number of blocks of the repetitive data in the case of sending and receiving high-speed repetitive data, the queue is reserved in advance as a buffer, and the pointer of the data to create a list When the queue is broken, it provides a method of data transmission and reception of PL so that only data in the corresponding area can be updated to prevent data loss.
상기 본 발명의 목적을 달성하기 위한 피엘씨의 데이타 송수신 방법은 송신할 데이타 갯수만큼의 큐의 영역을 미리 설정하는 제 1 단계와; 상기 송신할 데이타의 포인터를 리스트로 작성하는 제 2 단계와; 상기 제 1 단계의 영역에서 데이타 송수신시 큐의 포인터값이 정상인가를 판단하여 정상이 아니면 상기 제 2 단계에서 작성한 포인터 리스트를 확인하여 해당 영역의 값만 업데이트하는 제 3 단계로 이루어진다.In order to achieve the object of the present invention, the data transmission / reception method of PLC includes a first step of presetting an area of a queue corresponding to the number of data to be transmitted; A second step of creating a list of pointers of the data to be transmitted; The third step is to determine whether the pointer value of the queue is normal when transmitting / receiving data in the area of the first step, and if not, check the pointer list created in the second step and update only the value of the corresponding area.
이하, 본 발명의 작용 및 효과에 관하여 첨부한 도면을 참조하여 설명한다.Hereinafter, the operation and effects of the present invention will be described with reference to the accompanying drawings.
먼저, 본 발명은 제 4 도에 도시한 바와 같이 고속의 반복되는 데이타를 송수신하는 경우 그 반복되는 데이타의 설정된 블록의 갯수만큼 공용램(300)내 큐(310)의 일정영역을 미리 예약하여 그 정해진 영역에서만 읽고, 쓰도록 한다.First, as shown in FIG. 4, when transmitting and receiving high-speed repeated data, the present invention reserves a predetermined area of the queue 310 in the common RAM 300 in advance by the number of set blocks of the repeated data. Read and write only in the designated area.
그리고 피엘씨인터페이스콘트롤러(100) 및 링크인터페이스콘트롤러(200)는 송신할 데이타의 포인터를 제 5 도에 도시한 바와 같이 64개의 리스트로 작성하여 둔다.The PLC interface controller 100 and the link interface controller 200 prepare pointers of the data to be transmitted as 64 lists as shown in FIG.
이와 같이 송신할 데이타의 포인터를 미리 작성하여 두고 공용램(300)내 큐(310)의 일정영역에서만 데이타의 송수신을 한다.In this way, a pointer of data to be transmitted is prepared in advance, and data is transmitted and received only in a predetermined area of the queue 310 in the common RAM 300.
즉, 데이타를 저장한 큐풀의 포인터값을 타스크에 넣어서 상대방으로 하여금 처리하게 한다.That is, the counterpart puts a pointer value of a queue pool that stores data into a task and causes the counterpart to process it.
이때, 그 타스크에 넣어주는 큐풀의 포인터값이 깨진 경우에는 모든 큐를 초기화하는 것이 아니라, 포인터 리스트를 통해 해당 데이타만 업데이트한다.In this case, if the pointer value of the queue pool put into the task is broken, not all the queues are initialized, but only the corresponding data is updated through the pointer list.
이상에서 상세히 설명한 바와 같이 본 발명은 고속의 반복되는 데이타를 송수신할 경우 반복되는 데이타의 설정된 블록의 갯수만큼 큐를 버퍼처럼 미리 예약하여 사용함으로써 고속의 반복되는 데이타를 정해진 영역에서만 읽고 쓰기 때문에 메모리의 효율성을 높일 수 있고, 각 데이타의 포인터를 리스트로 작성함으로써 노이즈 등으로 인해 큐가 깨진 경우 해당 데이타만을 업데이트하기 때문에 데이타의 손실을 방지할 수 있는 효과가 있다.As described in detail above, the present invention reads and writes high-speed repeated data only in a predetermined area by using a reserved queue as a buffer in advance for transmitting and receiving high-speed repeated data. The efficiency can be increased, and if the queue is broken due to noise or the like by creating a list of pointers to each data, only the corresponding data is updated, thereby preventing data loss.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019960053637A KR19980035314A (en) | 1996-11-13 | 1996-11-13 | PD data transmission and reception method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019960053637A KR19980035314A (en) | 1996-11-13 | 1996-11-13 | PD data transmission and reception method |
Publications (1)
Publication Number | Publication Date |
---|---|
KR19980035314A true KR19980035314A (en) | 1998-08-05 |
Family
ID=66519564
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019960053637A KR19980035314A (en) | 1996-11-13 | 1996-11-13 | PD data transmission and reception method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR19980035314A (en) |
-
1996
- 1996-11-13 KR KR1019960053637A patent/KR19980035314A/en not_active Application Discontinuation
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4205373A (en) | System and method for accessing memory connected to different bus and requesting subsystem | |
US6044030A (en) | FIFO unit with single pointer | |
EP0789302A1 (en) | Communication network end station and adaptor card | |
KR19980035314A (en) | PD data transmission and reception method | |
CN100361433C (en) | Communication device using three step communication buffer storage | |
US6112229A (en) | Secure terminal and method of communicating messages among processing systems internal thereto | |
US5163049A (en) | Method for assuring data-string-consistency independent of software | |
US5590279A (en) | Memory data copying apparatus | |
CN106407307A (en) | Interaction method and interaction device for node data of distributed database | |
KR100311619B1 (en) | How to send and receive messages between processors in a distributed processing system | |
US6922833B2 (en) | Adaptive fast write cache for storage devices | |
KR950009763B1 (en) | A method of data transmission and synchronization between two cpu's | |
KR900013752A (en) | Private Exchange System and Maintenance Virtual Terminal Connection Method | |
KR930008501B1 (en) | Apparatus and method for transmitting and receiving message | |
KR0150068B1 (en) | Data que module and its control method | |
JP2552025B2 (en) | Data transfer method | |
JP3343460B2 (en) | HDLC frame processing device | |
KR100462585B1 (en) | How to handle download information | |
KR100190015B1 (en) | Transmitting method for bit block of data | |
EP1104612B1 (en) | Data-communications unit suitable for asynchronous serial data transmission | |
KR950007436B1 (en) | First input first output memory test method | |
JPH09185882A (en) | First-in first-out memory device with different size of input output data and its method | |
KR950012357B1 (en) | Network communication apparatus for msx computer | |
KR960001269B1 (en) | Buffer control method | |
JPH023343B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |