KR0179760B1 - Output data check circuit of programmable logic controller - Google Patents

Output data check circuit of programmable logic controller Download PDF

Info

Publication number
KR0179760B1
KR0179760B1 KR1019950031546A KR19950031546A KR0179760B1 KR 0179760 B1 KR0179760 B1 KR 0179760B1 KR 1019950031546 A KR1019950031546 A KR 1019950031546A KR 19950031546 A KR19950031546 A KR 19950031546A KR 0179760 B1 KR0179760 B1 KR 0179760B1
Authority
KR
South Korea
Prior art keywords
data
cpi
checksum
output
latch
Prior art date
Application number
KR1019950031546A
Other languages
Korean (ko)
Other versions
KR970016956A (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 KR1019950031546A priority Critical patent/KR0179760B1/en
Publication of KR970016956A publication Critical patent/KR970016956A/en
Application granted granted Critical
Publication of KR0179760B1 publication Critical patent/KR0179760B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Abstract

본 발명은 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로에 관한 것으로, 종래에는 프로그래머블 로직 콘트롤러(PLC)는 산업 현장에서 사용되기 때문에 외부로 부터 침입하는 노이즈등에 의해 데이타 파괴가 발생하고 쉽고, 특히 특수카드 또는 씨피유 내부에서 메모리의 리드(READ), 라이트(WRITE)는 신뢰성이 높은 반면에 씨피유와 특수카드가 데이타를 송수신할 때 외부 노이즈에 취약해지는 문제점이 있다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output data check circuit of a programmable logic controller. In the related art, a programmable logic controller (PLC) is used in an industrial field, and data destruction is easily caused by noise from invading from the outside. While the memory READ and WRITE of the internal memory have high reliability, there is a problem that the CPI and the special card are vulnerable to external noise when transmitting and receiving data.

따라서, 본 발명은 다량의 데이타를 씨피유와 특수카드가 주고 받을 때 체크섬회로를 이용하여 데이타 오류를 신속하게 감지하여 오류가 발생하면 송수신을 수행하지 않도록 하고 오류가 발생하지 않으면 송수신을 행하도록 하여 데이타 전송의 효율을 높일 수 있도록 한다.Therefore, the present invention uses a checksum circuit to quickly detect a data error when a large amount of data is exchanged between a CPI and a special card so as not to perform transmission and reception when an error occurs and to perform transmission and reception when the error does not occur. To improve the efficiency of the transmission.

Description

프로그래머블 로직 콘트롤러의 출력 데이타 체크회로Output data check circuit of programmable logic controller

제1도는 일반적인 프로그래머블 로직 콘트롤러(PLC)의 각종 카드 장착을 보여주는 구성도.1 is a block diagram showing mounting of various cards of a general programmable logic controller (PLC).

제2도는 종래 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로도.2 is an output data check circuit diagram of a conventional programmable logic controller.

제3도는 제2도에서, 데이타 출력 형태를 보여주는 설명도.3 is an explanatory diagram showing a data output form in FIG.

제4도는 제2도에서, 씨피유와 특수카드의 체크섬 동작을 보인 과정도.4 is a process diagram showing the checksum operation of CFIU and a special card.

제5도는 본 발명 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로도.5 is an output data check circuit diagram of the programmable logic controller of the present invention.

제6도는 제5도에서, 체크섬 회로의 상세도.6 is a detail of the checksum circuit in FIG.

제7도는 제5도에서, 체크섬 회로의 다른 구성도.7 is another configuration diagram of the checksum circuit in FIG.

제8도는 제5도에 의한 공용램 데이타의 라이트동작 과정도.8 is a write operation process of the common RAM data according to FIG.

제9도는 제5도에서, 제2래치신호로 라이트신호를 사용할 경우의 신호파형도.FIG. 9 is a signal waveform diagram when the write signal is used as the second latch signal in FIG.

제10도는 제5도에서, 제2래치신호로 선택신호를 사용할 경우의 신호파형도.FIG. 10 is a signal waveform diagram when the selection signal is used as the second latch signal in FIG.

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

10 : 씨피유 20 : 공용램10: CPI 20: Shared RAM

30 : 특수카드 프로세서 40 : 체크섬 회로30: special card processor 40: checksum circuit

41 : 제1래치 42 : 가산기41: first latch 42: adder

43 : 제2래치 44 : 버퍼43: second latch 44: buffer

45 : 오아게이트45: Oagate

본 발명은 프로그래머블 로직 콘트롤러(PLC)의 출력 데이타 체크회로에 관한 것으로, 특히 다량의 데이타를 특수카드와 주고받을 때 데이타 오류를 신속하게 감지하여 데이타 전송의 효율을 높일 수 있도록 한 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로에 관한 것이다.The present invention relates to an output data check circuit of a programmable logic controller (PLC). In particular, when a large amount of data is exchanged with a special card, the output of the programmable logic controller can quickly detect data errors and improve the efficiency of data transfer. It relates to a data check circuit.

프로그래머블 로직 콘트롤러의 일반적인 구성은, 제1도에서와 같이, 씨피유(CPU:101)가 장착되고, 일반 디지탈 입출력(I/O)카드(102,103,106,107)가 장착되고, 특수카드(104,105,108,109)가 장착되어 있는 상태를 보여주고 있다.The general configuration of the programmable logic controller is as shown in Fig. 1, in which CPI (101) is mounted, general digital input / output (I / O) cards (102, 103, 106, 107) are mounted, and special cards (104, 105, 108, 109) are mounted. It is showing the status.

상기에서와 같이 카드가 장착되어 있는 프로그래머블 로직 콘트롤러에서 씨피유와 특수카드가 데이타를 주고받아 출력 데이타를 체크하기 위한 구성은, 제2도에 도시된 바와같이, 특수카드와 데이타를 주고받기 위해 체크섬 동작을 수행하고 그 결과에 따른 동작을 행하는 씨피유(201)와, 상기 씨피유(201)로 부터 전송되는 데이타에 대해 체크섬 동작을 행하고 그 동작을 행하여 얻은 결과 데이타를 씨피유(201)로 전송하여 주는 특수카드 프로세서(203)와, 상기 씨피유(201)와 특수카드 프로세서(203) 사이에서 데이타를 서로 교환할 수 있도록 한 공용램(202)으로 구성된다.As shown in FIG. 2, the configuration for checking output data between the CPI and the special card in the programmable logic controller equipped with the card as shown in FIG. 2 is a checksum operation for exchanging data with the special card. And a special card for performing a checksum operation on the data transmitted from the CPI 201 and transmitting the result data obtained by performing the operation to the CPI 201. The common memory 202 is configured to exchange data between the processor 203 and the CPU 201 and the special card processor 203.

이와같이 구성된 종래의 기술에 대하여 제4도의 동작 과정도에 의거하여 살펴보면 다음과 같다.The conventional technology configured as described above will be described with reference to the operation flowchart of FIG. 4.

먼저 제4도의 (a)에 의거하여 씨피유의 동작에 대하여 살펴보면, 씨피유(201)가 공용램(202)에 데이타를 쓰려고 할때 먼저 어드레스 버스(ADD BUS)를 통해 어드레스를 지정하고 그 지정한 어드레스에 해당하는 A버퍼를 클리어한 후 출력하고자 하는 데이타 '0'을 A버퍼의 값(A)과 더한다.First, referring to the operation of CPI according to (a) of FIG. 4, when CPI 201 tries to write data to the common RAM 202, it first addresses through the ADD BUS and assigns the address to the designated address. After clearing the corresponding A buffer, add '0' data to the value of A buffer (A).

그 다음 데이타 '0'을 공용램(202)에 라이트한다.The data '0' is then written to the common RAM 202.

이후에 지정된 어드레스에 해당하는 데이타 '1'을 A와 더하고 다시 공용램(202)에 출력한다.Thereafter, data '1' corresponding to the designated address is added to A and output again to the common RAM 202.

제3도에서와 같이 각 어드레스에 지정된 데이타 및 그 지정된 데이타를 모두 더한 체크섬 데이타를 순차적으로 공용램(202)에 라이트한다.As shown in FIG. 3, the checksum data obtained by adding up the data designated for each address and the designated data is sequentially written to the common RAM 202. FIG.

모든 데이타 출력 후 특수카드 프로세서(203)로 부터의 체크섬 결과를 기다린다.After all data is output, the result of the checksum from the special card processor 203 is waited for.

여기서, 특수카드 프로세서란 프로그래머블 로직 콘트롤러(PLC)의 씨피유에 의해 제어되는 피제어기들이 매우 다양한 기능이 있으므로 이들 다양한 피제어기들을 제어할 수 있는 기능을 갖는 마이크로 프로세서를 말한다.Here, the special card processor refers to a microprocessor having a function capable of controlling these various controllers because the controllers controlled by the CPI of the programmable logic controller (PLC) have a wide variety of functions.

이때 특수카드 프로세서(203)는 공용램(202)으로 부터 데이타를 읽어들여 모두 더한 후 그 결과를 공용램(202)의 B버퍼에 보관하고 있다가 씨피유(201)로 부터 전달된 체크섬 결과(C)를 받아 들여 B버퍼에 보관하고 있는 데이타와 비교한다.At this time, the special card processor 203 reads data from the common RAM 202, adds all the data, and stores the result in the B buffer of the common RAM 202. ) And compare it to the data stored in the B buffer.

그 비교결과를 씨피유(201)에 통보한다.The result of the comparison is notified to the CPI 201.

따라서, 상기 씨피유(201)는 특수카드 프로세서(203)로 부터 통보받은 비교결과 같으면 즉, 체크섬 오케이(OK)이면 다음 실행에 돌입하고 체크섬 오케이가 아니면 처음부터 재시도하게 된다.Therefore, the CPI 201 enters the next execution if the comparison result is notified from the special card processor 203, that is, checksum OK, and retries from the beginning if it is not the checksum OK.

그리고, 특수카드 프로세서(203)의 동작은 씨피유(201)의 동작과 마찬가지로 B버퍼를 클리어한 후 씨피유(201)에서 공용램(202)으로 라이트한 데이타를 읽어들여 순차적으로 더하여 나가다가 최종 데이타까지 더한 체크섬 결과와 씨피유(201)로 부터 전달된 체크섬 결과를 더하여 두 결과가 같으면 씨피유(201)로 체크섬 오케이신호를 출력하고, 다르면 에러신호를 출력한다.The operation of the special card processor 203 is similar to the operation of the CPI 201, and after clearing the B buffer, the C 202 reads the data written from the CRAM 201 to the common RAM 202 and sequentially adds the data to the final data. The sum of the checksum results and the checksum transmitted from the CPI 201 is added, and if the two results are the same, a checksum OK signal is output to the CUI 201, and an error signal is output.

이상에서와 같은 방법으로 프로그래머블 로직 콘트롤러의 씨피유와 특수카드는 데이타를 송수신한다.As described above, the CPI and the special card of the programmable logic controller transmit and receive data.

그러나 상기에서와 같은 종래기술에 있어서, 프로그래머블 로직 콘트롤러(PLC)는 산업 현장에서 사용되기 때문에 외부로 부터 침입하는 노이즈등에 의해 데이타 파괴가 발생하고 쉽고, 특히 특수카드 또는 씨피유 내부에서 메모리의 리드(READ), 라이트(WRITE)는 신뢰성이 높은 반면에 씨피유와 특수카드가 데이타를 송수신할 때 외부 노이즈에 취약해지는 문제점이 있다.However, in the prior art as described above, since the programmable logic controller (PLC) is used in the industrial field, data destruction occurs easily due to noise from invading from the outside, and in particular, the read of the memory inside the special card or CPI. ), While the WRITE is highly reliable, there is a problem that the CPI and the special card are vulnerable to external noise when transmitting and receiving data.

상기의 취약점을 보완하기 위한 체크섬을 실행하는데, 이는 체크섬 결과를 공용램에 써놓고 특수카드에서 읽어내어 이를 체크완료할 때 까지 씨피유는 다음 데이타를 보낼 수 없고 기다려야 하므로 다량의 데이타 송수신시 또는 특수카드를 많이 장착했을때는 매우 비효율적으로 되는 문제점이 있다.It executes a checksum to compensate for the above weakness, which writes the checksum result in the common RAM and reads it from the special card, and until the check is completed, CPI cannot send the next data and must wait. When equipped with a lot of problems that become very inefficient.

따라서, 상기에서와 같은 종래의 문제점을 해결하기 위한 본 발명의 목적은 특수카드에 다량의 데이타를 전송할 때 또는 여러장의 특수카드가 장착되어 있을때 데이타 출력에 따른 대기시간을 줄이고 보다 효율적으로 데이타 출력을 가능하게 하는 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로를 제공함에 있다.Accordingly, an object of the present invention for solving the conventional problems as described above is to reduce the waiting time according to the data output when a large amount of data is transmitted to the special card or when a plurality of special cards are mounted to reduce the data output more efficiently It provides an output data check circuit of a programmable logic controller that makes it possible.

상기 목적을 달성하기 위한 본 발명 프로그래머블 로직 콘트롤러의 출력 데이터 체크회로 구성은, 제5도에 도시한 바와같이, 제어신호를 출력하여 데이타를 특수카드와 송수신하고 그 송수신한 데이타의 결과에 따른 업무를 수행하는 씨피유(10)와, 상기 씨피유(10)와 데이타를 주고받아 다양한 피제어기들을 제어할 수 있는 기능을 갖춘 특수카드 프로세서(30)와, 상기 씨피유(10)와 특수카드 프로세서(30) 사이의 데이타 송수신 역할을 담당하는 공용램(20)과, 상기 씨피유(10)와 특수카드 프로세서(30) 간의 데이타 송수신시 데이타 오류를 감지하는 체크섬회로(40)로 구성한다.The output data check circuit configuration of the programmable logic controller of the present invention for achieving the above object, as shown in Figure 5, outputs a control signal to send and receive data with a special card and perform the task according to the result of the data transmitted and received A CPI oil 10 to perform, a special card processor 30 having a function of exchanging data with the CPI 10 to control various controlled devices, between the CPI 10 and the special card processor 30 And a checksum circuit 40 for detecting a data error during data transmission and reception between the CPU 10 and the special card processor 30.

그리고 상기 체크섬회로는, 제6도에 도시한 바와같이, 클리어신호와 라이트신호(WR)에 의해 씨피유로 부터 전송되는 데이타를 래치하거나 그 래치된 데이터를 출력하는 제1래치(41)와, 상기 제1래치(41)의 출력과 제2래치 출력을 가산하는 가산기(42)와, 상기 가산기(42)를 통해 가산된 데이타를 래치하다가 패드백하여 상기 가산기(42)의 입력으로 전달하는 제2래치(43)와, 상기 제2래치(43)의 결과를 전달받아 씨피유로 전송하는 버퍼(44)와, 씨피유로 부터 전달받은 선택신호와 리드신호를 조합하여 만든 신호로 상기 버퍼(44)의 동작을 제어하는 오아게이트(45)로 구성한다.As shown in FIG. 6, the checksum circuit includes a first latch 41 for latching data or outputting the latched data by the clear signal and the write signal WR; An adder 42 for adding the output of the first latch 41 and the second latch output, and a second latching and padding data added through the adder 42 to the input of the adder 42. The buffer 44 receives a result of the latch 43, the second latch 43, and transmits the result of the second latch 43 to the CPI, and a signal formed by combining the selection signal and the read signal received from the CPI. It consists of an oragate 45 which controls an operation.

이와같이 구성된 본 발명의 동작 및 작용효과에 대하여 상세히 설명하면 다음과 같다.When described in detail with respect to the operation and effect of the present invention configured as described above.

씨피유(10)로 부터 데이타가 데이타 버스를 통해 출력되면, 그 데이터는 공용램(20)과 체크섬회로(40)에 각각 입력된다.When data is output from the CPI 10 through the data bus, the data is input to the common RAM 20 and the checksum circuit 40, respectively.

그러면 특수카드 프로세서(30)는 데이타 버스를 통해 공용램(20)으로 부터 데이타를 읽어들이고 그 읽어들인 데이타를 합산하여 다시 공용램(20)에 저장하여 둔다.Then, the special card processor 30 reads data from the common RAM 20 through the data bus, sums the read data, and stores the data again in the common RAM 20.

이때 체크섬회로(40)에 대하여는 제6도에 의거하여 살펴보면 다음과 같다.In this case, the checksum circuit 40 will be described with reference to FIG.

씨피유(10)에서 라이트신호(WR)를 출력하면 제1래치(41)가 그의 클럭단자(CK)로 입력받아 데이타 버스를 통해 씨피유(10)로 부터 전달되는 데이타를 래치하고, 그 래치한 데이타(A)를 가산기(42)로 출력한다.When the write signal WR is output from the CPI 10, the first latch 41 is inputted to the clock terminal CK thereof to latch data transmitted from the CPI 10 through the data bus, and the latched data. (A) is output to the adder 42.

그러면 가산기(42)는 제1래치(41)의 출력 데이타와 제2래치(43)의 출력 데이타(B)를 피드백받아 가산하고 그 가산한 데이타를 제2래치(43)로 출력한다.Then, the adder 42 receives the output data of the first latch 41 and the output data B of the second latch 43 by adding them back and outputs the added data to the second latch 43.

따라서 제2래치(43)에서는 씨피유로 부터 전달되는 제2래치신호에 의해 가산기(42)에서 가산한 결과 데이터를 래치한다.Accordingly, the second latch 43 latches the result data added by the adder 42 by the second latch signal transmitted from the CPI.

제2래치(43)가 래치한 데이타를 버퍼(44)로 출력하면, 씨피유(10)에서는 모든 데이타를 출력하고 그 출력한 데이타를 가산한 값과 버퍼(44)로 부터 읽어들인 값을 비교하여 일치하면 라이트동작을 완료하고, 불일치하면 처음부터 재시도하게 된다.When the second latch 43 outputs the latched data to the buffer 44, the CPI 10 outputs all data and compares the value obtained by adding the output data with the value read from the buffer 44. If there is a match, the write operation is completed. If there is a mismatch, the retry is performed from the beginning.

상기에서 가산기(42)와 제2래치(43) 대신에 제7도에 도시한 클리어단자를 구비한 가산기를 사용할 수도 있다.Instead of the adder 42 and the second latch 43, an adder having a clear terminal shown in FIG. 7 may be used.

상기에서와 같이 동작하는 과정에 대하여 제8도에 의거하여 다시한번 살펴보면, 씨피유(10)는 먼저 체크섬 버퍼(A)를 클리어하고, 제1래치(41)와 제2래치(43)를 클리어하여 데이타 A와 데이타 B를 '0'으로 해둔다.Referring to FIG. 8 again for the process as described above, CFI 10 first clears the checksum buffer A, and then clears the first latch 41 and the second latch 43. Leave data A and data B '0'.

이후에 씨피유(10)는 체크섬 버퍼(A)에 출력 데이타 '0'을 더하고, 그 데이타 '0'을 공용램(20)에 데이타를 라이트하고, 또한 제1래치(41)에 데이타를 출력하여 래치하도록 한다.Thereafter, CPI 10 adds output data '0' to the checksum buffer A, writes the data '0' to the common RAM 20, and outputs data to the first latch 41. Latch it.

그 래치된 데이타(A)는 가산기(42)에서 제2래치(43)에서 출력된 데이타(B)와 가산되어 결과 데이타로 취한다.The latched data A is added with the data B output from the second latch 43 by the adder 42 and taken as result data.

이때 제10도에서 처럼 제2래치신호로 선택신호를 사용할 경우 데이타 출력과 동시에 제2래치(43)에 출력하게 되고, 제9도에서와 같이 라이트신호를 사용할 경우 제2래치신호는 데이타 '1'을 출력할 때 연산 결과 데이타가 제2래치(43)에 래치되게 된다.At this time, when the selection signal is used as the second latch signal as shown in FIG. 10, the output signal is output to the second latch 43 simultaneously with the data output. As shown in FIG. 9, when the write signal is used as shown in FIG. Is output, the operation result data is latched in the second latch 43.

따라서 라이트신호를 사용할 경우에는 마지막 데이타를 라이트하고 의미없는 데이타를 하나 더 출력해야지 체크섬 결과가 제2래치(43)에 래치되게 된다.Therefore, when using the write signal, the last data must be written and one more meaningless data is output. The checksum result is latched to the second latch 43.

다음 체크섬 버퍼(A)에 출력 데이타 '1'을 더하고 그 데이타 '1'을 공용램(20)에 출력한다.Next, the output data '1' is added to the checksum buffer A and the data '1' is output to the common RAM 20.

상기 공용램(20)에 출력됨과 동시에 제1래치(41)에 래치되어 이전 체크섬 데이타(B)와 데이타(A)가 가산되어 결과로 출력한다.It is output to the common RAM 20 and latched to the first latch 41 and the previous checksum data B and the data A are added and output as a result.

이렇게하여 데이타 '0'부터 'n'까지 출력하게 되면 체크섬 데이타(B)는 데이타 '0' + 데이타 '1' + 데이타 '2' +………+ 데이타 'n'의 결과가 보존된다.In this way, when data '0' to 'n' is outputted, the checksum data (B) becomes data '0' + data '1' + data '2' +... … … + The result of data 'n' is preserved.

그러면 씨피유(10)는 모든 데이타를 출력한 후 제2래치(43)를 통해 출력되는 체크섬 데이타(B)를 버퍼(44)를 통해 리드하여 내부의 체크섬버퍼(A)를 통해 가산한 데이타와 비교하여 비교결과가 같으면 라이트동작을 완료하고 다르면 처음부터 재시도하게 된다.Then, CPI 10 outputs all data and reads the checksum data B output through the second latch 43 through the buffer 44 and compares the data added through the internal checksum buffer A. FIG. If the comparison result is the same, the write operation is completed and if it is different, it is retried from the beginning.

이상에서와 같이 씨피유(10)에서 공용램(20)에 데이타를 라이트함과 동시에 체크섬회로(40)에 출력하면, 그 체크섬회로(40)에 래치되면서 이전 체크섬 데이타와 가산되고 그 가산된 결과가 체크섬 데이타가 되는데, 씨피유(10)에서 모든 데이타를 출력한 후 체크섬한 체크섬 데이타를 체크섬회로(40)로 부터 읽어들여 씨피유(10) 내부에서 가산한 데이타와 비교하여 같으면 라이트동작을 완료하고, 다르면 이는 에러가 발생한 것이므로 다시 재시도하여 상기의 동작을 반복한다.As described above, when CPI 10 writes data to the common RAM 20 and simultaneously outputs the data to the checksum circuit 40, the CSI 10 is latched to the checksum circuit 40 and added to the previous checksum data, and the result is added. Checksum data is outputted, and all data are output from the CPI 10. The checksum data read from the checksum is read from the checksum circuit 40 and compared with the data added in the CPI 10. Since this is an error, retry again and repeat the above operation.

이상에서 상세히 설명한 바와같이 본 발명은 다량의 데이타를 주고 받을 때 체크섬회로를 이용하여 데이타 오류를 신속하게 감지하여 데이타 전송의 효율을 높일 수 있도록 한 효과가 있다.As described in detail above, the present invention has an effect of increasing the efficiency of data transmission by quickly detecting a data error by using a checksum circuit when sending and receiving a large amount of data.

Claims (3)

씨피유가 데이터 송수신을 행하는 공용램을 통해 다양한 특수기능을 갖춘 특수카드 프로세서를 제어하는 프로그래머블 로직 콘트롤러에 있어서, 상기 씨피유와 특수카드 프로세서가 다량의 데이터를 주고 받을 때 상기 씨피유에서 출력되어 상기 공용램으로 라이트되는 데이터를 가산하고, 그 가산한 체크섬 데이터와 상기 씨피유 내부에서 가산한 가산데이터를 비교하여 같으면 라이트 동작을 종료하고, 같지않으면 재시도하도록 하는 체크섬 회로를 더 포함하여 구성된 것을 특징으로 하는 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로.A programmable logic controller for controlling a special card processor having various special functions through a common RAM through which data is transmitted / received by CPI, wherein the CPI is output from the CPI when the special card processor exchanges a large amount of data. And a checksum circuit which adds the data to be written, compares the added checksum data with the addition data added in the CPI, terminates the write operation if it is equal, and retries if not equal. Output data check circuit of the controller. 제1항에 있어서, 체크섬 회로는 클리어신호와 라이트신호에 의해 씨피유로부터 전송되는 데이타를 래치하거나 그 래치된 데이터를 출력하는 제1래치와, 상기 제1래치의 출력과 제2래치 출력을 가산하고, 그 가산한 체크섬 데이터를 출력하는 가산기와, 상기 가산기를 통해 체크섬 데이타를 래치하다가 패드백하여 상기 가산기의 입력으로 전달하는 제2래치와, 상기 제2래치의 결과를 전달받아 씨피유로 전송하는 버퍼와, 씨피유로 부터 전달받은 선택신호와 리드신호를 조합하여 만든 신호로 상기 버퍼의 동작을 제어하는 오아게이트로 구성된 것을 특징으로 하는 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로.The method of claim 1, wherein the checksum circuit adds a first latch for latching or outputting the latched data by the clear signal and the write signal, the output of the first latch, and the second latch output; And an adder for outputting the added checksum data, a second latch for latching the checksum data through the adder, padding and passing the result to the input of the adder, and a buffer receiving the result of the second latch and transmitting the result to the CPI. And an ore gate configured to control the operation of the buffer using a signal made by combining a selection signal and a read signal received from the CPI. 제1항에 있어서, 체크섬 회로는 씨피유로 부터 전송되는 데이터를 래치하는 제1래치와, 클리어신호에 따라 상기 제1래치에서 출력되는 데이터와 피드백되는 자신의 출력 데이터를 가산하여 체크섬 데이터를 얻도록 하는 가산기와, 상기 가산기의 출력을 씨피유로 전송하는 버퍼로 구성된 것을 특징으로 하는 프로그래머블 로직 콘트롤러의 출력 데이타 체크회로.The checksum circuit of claim 1, wherein the checksum circuit acquires checksum data by adding a first latch for latching data transmitted from the CPI and a data output from the first latch and its output data fed back according to a clear signal. And an adder and a buffer for transmitting the output of the adder to the CPI.
KR1019950031546A 1995-09-23 1995-09-23 Output data check circuit of programmable logic controller KR0179760B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950031546A KR0179760B1 (en) 1995-09-23 1995-09-23 Output data check circuit of programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950031546A KR0179760B1 (en) 1995-09-23 1995-09-23 Output data check circuit of programmable logic controller

Publications (2)

Publication Number Publication Date
KR970016956A KR970016956A (en) 1997-04-28
KR0179760B1 true KR0179760B1 (en) 1999-05-15

Family

ID=19427682

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950031546A KR0179760B1 (en) 1995-09-23 1995-09-23 Output data check circuit of programmable logic controller

Country Status (1)

Country Link
KR (1) KR0179760B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101297973B1 (en) * 2009-05-21 2013-08-19 엘에스산전 주식회사 Base of plc system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101297973B1 (en) * 2009-05-21 2013-08-19 엘에스산전 주식회사 Base of plc system

Also Published As

Publication number Publication date
KR970016956A (en) 1997-04-28

Similar Documents

Publication Publication Date Title
US5193093A (en) Data transfer process with loop checking
KR0179760B1 (en) Output data check circuit of programmable logic controller
US8291270B2 (en) Request processing device, request processing system, and access testing method
JP3526031B2 (en) Data transfer device
JPS62242258A (en) Storage device
JPS63290033A (en) Data transmission reception circuit
KR930004903B1 (en) Parallel data communication system and its method between processors by using data bus
JP2001043104A (en) Bus monitor device for computer system
JP2561477B2 (en) Data transmission device
KR100292059B1 (en) Data retransmission system at the exchange
KR930003994B1 (en) Circuit for interfacing data
JP2692469B2 (en) Data controller
KR100488981B1 (en) Ic circuit structure using of a gpio port
KR970007157Y1 (en) Interface apparatus between system bus and multiple parallel port
KR920001543Y1 (en) Circuit protecting data of elevator system
KR910007746B1 (en) A method and apparatus for relaying unidirectional communication between processors
KR940006296Y1 (en) Circuit for transmitting data between two cpus
KR0118651Y1 (en) Interface apparatus between pc and image processor
SU1247856A1 (en) Information input-output device
JPH02228739A (en) Parity generating and checking circuit
JPH05282218A (en) Data transmitting method
JPH06110788A (en) Ram operation monitoring circuit
JPS60167052A (en) Data transfer method
JPH0394349A (en) Parity check circuit for memory
JPS5827221A (en) Data processing device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120919

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20130916

Year of fee payment: 16

FPAY Annual fee payment

Payment date: 20141001

Year of fee payment: 17

EXPY Expiration of term