KR820002369B1 - Process control device - Google Patents

Process control device Download PDF

Info

Publication number
KR820002369B1
KR820002369B1 KR7903316A KR790003316A KR820002369B1 KR 820002369 B1 KR820002369 B1 KR 820002369B1 KR 7903316 A KR7903316 A KR 7903316A KR 790003316 A KR790003316 A KR 790003316A KR 820002369 B1 KR820002369 B1 KR 820002369B1
Authority
KR
South Korea
Prior art keywords
output
input
sequence
data
memory
Prior art date
Application number
KR7903316A
Other languages
Korean (ko)
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 KR7903316A priority Critical patent/KR820002369B1/en
Application granted granted Critical
Publication of KR820002369B1 publication Critical patent/KR820002369B1/en

Links

Images

Classifications

    • 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

Abstract

This is concerned with improvement of process control and is for flexible handling for checking of the logical operation. Figure shows an example of the invention whose components are as follows. 1) a process input-output device(PI/O, 500) 2) buffer storage in PI/O control device(9) used for storage of I/O data. 3) an arithmetic process unit(1001), and setter(3) which selects sequences of controlled objects from outside or inside.

Description

프로세스 제어장치Process control unit

제1도, 제2도는 종래의 프로세스 제어장치의 블록도.1 and 2 are block diagrams of a conventional process control apparatus.

제3도는 본 발명에 의한 프로세스 제어장치의 제1실시예의 블록도.3 is a block diagram of a first embodiment of a process control apparatus according to the present invention.

제4도는 제3도에 있어서의 프로세스 입출력제어장치 및 프로세스 입출력장치의 회로도.4 is a circuit diagram of the process input / output control device and process input / output device in FIG.

제5도는 제3도에 있어서의 시이퀀스 연산처리장치의 회로도.FIG. 5 is a circuit diagram of a sequence processor in FIG.

제6도는 시이퀀스회로의 1예를 나타낸 도면.6 is a diagram showing one example of a sequence circuit.

제7도는 설정기에 의해 설정되는 시이퀀스회로의 설정정보와 대응하는 기계어(語)를 나타낸 도면.Fig. 7 is a diagram showing machine language corresponding to the setting information of the sequence circuit set by the setting device.

제8도는 제6도에 나타낸 시이퀀스 회로에 대응한 기계어가 시이퀀스 프로그램메모리에 격납되어 있는 상태를 나타낸 도면.FIG. 8 is a diagram showing a state in which a machine word corresponding to the sequence circuit shown in FIG. 6 is stored in a sequence program memory. FIG.

제9도는 제3도에 나타낸 퍼엄웨어(firm ware)의 동작의 흐름을 나타낸 도면.9 is a view showing the flow of operation of the confirmware shown in FIG.

제10도는 제9도의 동작의 흐름에 따른 CRT에 표시되는 시이퀀스 회로의 1예를 나타낸 도면.FIG. 10 is a diagram showing an example of a sequence circuit displayed on a CRT according to the flow of the operation of FIG.

제11도는 제3도에 의한 표시용 작업메모리에 기억되어 있는 시이퀀스 회로의 정보의 1예를 나타낸 도면.FIG. 11 is a diagram showing one example of information of a sequence circuit stored in the display working memory shown in FIG.

제12도는 본 발명에 의한 프로세스 제어장치의 제2실시예를 나타낸 블록도.12 is a block diagram showing a second embodiment of a process control apparatus according to the present invention.

제13도는 제12도에 나타낸 퍼엄웨어의 동작의 흐름을 나타낸 도면.FIG. 13 is a view showing the flow of operation of the permware shown in FIG.

제14도는 시이퀀스 회로의 1예를 나타낸 도면.14 is a diagram showing one example of a sequence circuit.

제15도는 제13도의 동작의 흐름에 따른 CRT에 표시되는 정보의 1예를 나타낸 도면.FIG. 15 is a diagram showing an example of information displayed on a CRT according to the flow of the operation of FIG.

제16도는 제12도의 표시용 작업메모리의 1예를 나타낸 도면.FIG. 16 shows an example of the work memory for display shown in FIG.

제17도는 제12도의 표시용 작업메모리의 다른예를 나타낸 도면.FIG. 17 shows another example of the work memory for display shown in FIG.

제18도는 제12도에 나타낸 퍼엄웨어의 다른 동작의 흐름을 나타낸 도면이다.FIG. 18 is a diagram illustrating another operation flow of the permware shown in FIG.

본 발명은 프로세스 제어장치에 관한 것이다.The present invention relates to a process control device.

본 발명을 설명하기에 앞서 종래의 프로세스 제어장치의 처리장치측에서의 동작체크를 제1도, 제2도를 참조하여 설명한다.Prior to explaining the present invention, an operation check on the processing apparatus side of a conventional process control apparatus will be described with reference to FIG. 1 and FIG.

종래 시이퀀스의 프로세스 제어장치에 있어서 시이퀀스 프로그램부로부터 소망하는 시이퀀스 명령을 독출하여 연산회로로 시이퀀스를 처리하는 디지틀 논리의 시이퀀스 제어장치가 예컨대, KOYANAGI와 그 외의 미국특허 3944987호에 기재되어 있다. 또 기억부에 기억된 임의의 시이퀀스회로 블록을 탐색하여 그거슬 표시하도록 한 범용 시이퀀스 제어장치의 표시장치가 예컨대 YAMAUCRI와 그외에 미국특허 3964026호에 나타내져 있다. 그래서 종래 프로그램할 수 있는 논리 콘트롤러(이하 PLC라고 생략)로서는 그 처리장치측에서의 디버그(debug)등의 논리동작 체크는 프로세스 입출력제어장치(이하 PLOC라고 약칭한다. 그리고 PCE라고도 한다)를 통하여 행해지고 있었다. 제1방법은 제1도에 나타낸 바와 같이 시이퀀스 연산처리장치(상기한 처리장치에 해당)(100)와, 프로세스제어부(200)와, 생산설비(300)를 연결하여 제어대상인 생산설비(일반적이라는 프로세스계)(300)의 운용을 근거로 하여 동작체크를 행하고 있었다.BACKGROUND OF THE INVENTION [0003] A sequence logic controller of digital logic for reading a desired sequence instruction from a sequence program section and processing the sequence with a computation circuit in a conventional process control apparatus is described in, for example, KOYANAGI and other US patents 3944987. It is. In addition, a display device of a general-purpose sequence control device that searches for and displays an arbitrary sequence circuit block stored in a storage unit is shown in, for example, YAMAUCRI and others in US Pat. No. 3,964,026. Therefore, in the conventional programmable logic controller (hereinafter, referred to as PLC), logic operation check such as debug on the processing apparatus side has been performed through the process input / output control apparatus (hereinafter referred to as PLOC, also referred to as PCE). As shown in FIG. 1, the first method is a production facility (generally controlled) connected to a sequence processing apparatus (corresponding to the above-described processing apparatus) 100, a process control unit 200, and a production facility 300 (general purpose). The operation check was performed based on the operation of the process system 300.

그리고 프로세스 제어부(200)는 프로세스 입출력 제어장치(PLOC)와 프로세스 입출력장치(PI/O라고 약칭)로 형성되는 것은 주지하는 바와 같다. 이 방법의 특징은 생산설비를 설정한 후에 동작체크를 행하는 것이며 그 동작체크 내용으로서는 시이퀀스 프로그램의 디버그였다.In addition, the process control unit 200 may be formed of a process input / output controller (PLOC) and a process input / output device (abbreviated as PI / O). The characteristic of this method is to perform the operation check after setting up the production equipment. The operation check content is debug of the sequence program.

그러나 일반적으로 PLC를 도입하는 측에서는 새로운 생산설비의 건설공정에 맞춰 시이퀀서의 입하를 희망하는 경우가 대부분이다. 그래서 생산설비가 어느정도 건설된 이후가 아니면 시이퀀스 프로그램의 동작확인을 할 수 없는 것에서는 작업능률도 저하되며 실제의 생산설비와 접속시켜 디버그하기 때문에 기기를 파손한다든가 경우에 따라서는 인사사고를 일으키는 경우도 있다.However, in general, the PLC adopter wants to receive a sequencer in accordance with the construction process of a new production facility. Therefore, if the operation of the sequence program cannot be confirmed unless the production equipment has been built to some extent, the work efficiency is reduced, and the equipment is damaged because it is connected to the actual production equipment and debugged. In some cases.

이와 같은 불편함을 해소하기 위해 시물레이터 반(Simulator 盤)이라고 일컬어지는 장치를 부가한 방법이 있다. 이것을 제2도에 나타낸다.In order to solve such inconvenience, there is a method of adding a device called a simulator. This is shown in FIG.

도면으로서 이해할 수 있듯이 생산설비의 대용으로서 시뮬레이터반(400)을 접속하여 공장내에서 디버그를 행하는 방법이 있었다.As can be understood from the figure, there was a method of debugging in the factory by connecting the simulator board 400 as a substitute for production equipment.

시뮬레이터반(400)은 신호를 입력하기 위한 스위치와, 신호가 출력된 것을 확인하기 위한 램프가 반상(盤上)에 프로세스 입출력 점수에 대응하여 복수개(예컨대, 수천개의 오더)취부되어 있는데 이것을 사용하면 생산설비의 건설과 병행하여 디버그가 진행되기 때문에 작업 공정은 상당히 단축되고 기기가 파손된다든가 인사사고가 발생하지 않는 효과를 갖는다.The simulator board 400 has a switch for inputting a signal and a lamp for confirming that the signal has been output in a plurality of phases (for example, thousands of orders) in response to the process I / O score. Since the debugging proceeds in parallel with the construction of the production facility, the work process is considerably shortened, and the device is not damaged or personnel accidents do not occur.

그렇지만 이 시뮬레이터반을 사용하는 방법에도 다음과 같은 결점이 있다.However, the use of this simulator class also has the following drawbacks.

즉, 시뮬레이터반에는 수천개의 스위치가 사용되고 있으므로 값이 비싸다. 또 PI/O와 시뮬레이터반을 연결하는 복잡한 배선(통상 2000∼4000개) 작업을 해야되기 때문에 작업이 번거롭고 많은 비용이 든다(본래는 PI/O와 생산설간의 배선만으로 끝나는 것이지만 시뮬레이터반과 접속하기 때문에).That is, the simulator board is expensive because thousands of switches are used. In addition, complicated wiring (usually 2000 ~ 4000) is needed to connect PI / O and simulator board, which is cumbersome and expensive (originally, only wiring between PI / O and production site is done, but it is connected to simulator board). ).

이러한 결점이 발생하는 이유는 동작체크를 종래 개념의 프로세스제어부를 사용하여 체크하려고 하는 점에 있다. 즉, 처리장치측의 동작체크에는 반드시 프로세스의 복수의 입력점의 정보를 취입하는 한편 프로세스의 복수의 출력점에 처리결과를 내보내지 않으면 안되는 것이다.The reason for this drawback is that an operation check is to be checked using a conventional process control unit. In other words, the operation check on the processing apparatus side must take in the information of the plurality of input points of the process and send out the processing results to the plurality of output points of the process.

이것을 가능하게 하기 위해서는 상기 입력점, 출력점이 필요한 한편 그 각 입출력점과 처리장치와의 인터페이스가 필요해진다. 이 인터페이스를 종래의 프로세스 제어부에 보내도록 한 것이다. 이 결과로서 배선점수의 증가가 발생한 것이다. 또다른 관점에서 보면 처리장치 측에서의 체크내용은 어디까지나 입력점의 입력에 대한 출력점의 출력을 체크하는 형태로 행해지고 있다. 이것은 처리장치측의 동작체크의 내용을 한정하는데 지나지 않는다.In order to make this possible, the input point and the output point are required while the interface between the input and output points and the processing apparatus is required. This interface is sent to the conventional process control unit. As a result, an increase in the number of wiring points has occurred. From another point of view, the check content on the processing apparatus side is performed in the form of checking the output of the output point with respect to the input of the input point. This merely limits the contents of the operation check on the processing apparatus side.

또 이것과 관련하여 시이퀀서에서의 논리는 하나의 입력점에 입력이 주어지면 복수의 출력점에 변화가 발생하는 형태를 취할 수 있다. 이와 같은 경우 상기 시이퀀스반에서는 이와 같이 관련하여 오는 복수의 출력점의 변화를 포착하기 곤란하다. 또 현단계에서의 출력점 이외에도 그 이전의 출력점에 대한 상태변화를 알고 싶은 등의 요구에 대해서도 대처하기 곤란하다.In this regard, logic in the sequencer can take the form of a change in a plurality of output points given an input to one input point. In such a case, it is difficult to capture the change of the plurality of output points which are related in this way in the said sequence board. In addition to the output point at this stage, it is difficult to cope with a request such as to know the state change of the previous output point.

요컨대, 상기 방법에 의하면 논리동작 체크의 규모에의 유연한 대처를 할수 없다는 결점이 있었다.In short, the above method has a drawback in that it is not possible to flexibly cope with the scale of the logical operation check.

본 발명의 목적은 종래의 프로세스 제어장치의 상술한 결점을 제거하는데 있다.It is an object of the present invention to obviate the aforementioned drawbacks of conventional process control apparatus.

본 발명은 이와 같은 목적을 달성하기 위해 프로세스 입출력제어장치에 입출력데이터를 기억할 수 있는 완충기억기를 내장시켜, 그 완충기억기에는 프로세스 입출력장치를 개재시키지 않고 소프트적으로 입력데이터를 설정할수 있고 입출력데이터는 처리장치와 완충기억기 사이에서 교환되도록 하여 처리장치와 프로세스 입출력장치간의 전기적으로 분리 가능하게 한 것이다.In order to achieve the above object, the present invention incorporates a buffer memory capable of storing input / output data in a process input / output control device, and the input / output data can be set softly without intervening the process input / output device. Is to be exchanged between the processing unit and the buffer memory to enable electrical separation between the processing unit and the process input and output device.

이하 본 발명에 의한 프로세스 제어장치를 설명한다. 제3도는 본 발명에 의한 프로세스 제어장치의 제1실시에의 블록다이아그램을 나타낸다. 본 도면에 있어서, 시이퀀스 연산처리장치(1001)는 처리장치(8), 시이퀀스 프로그램격납용메모리(10), 데이터송수신장치(7), 데이터버스(11), 어드레스버스(12)로 성립되어 있다.Hereinafter, a process control apparatus according to the present invention will be described. 3 shows a block diagram of the first embodiment of the process control apparatus according to the present invention. In the figure, the sequence arithmetic processing unit 1001 comprises a processing unit 8, a sequence program storing memory 10, a data transmitting and receiving apparatus 7, a data bus 11, and an address bus 12. It is.

프로세스 입출력컨트로울러(프로세스 입출력 제어장치)(9)는 본 발명의 중심기술인 완충기억기를 내장하고 있다. 컨트로울러(9)를 개재시켜 서로 인터페이스 되어있는 처리장치(1001)와 프로세스 입출력장치(PIO)(500)는 전기적으로 떼어낼 수 있게 되어 있다. 완충기억기는 처리장치측으로부터 억세스 가능하게 되어 있다. 이것에 의해 완충기억기는 처리장치내의 각종의 입출력데이터시 기억용으로서 적극적으로이용된다.The process input / output controller (process input / output controller) 9 incorporates a buffer memory, which is the central technology of the present invention. The processing device 1001 and the process input / output device (PIO) 500 which are interfaced with each other via the controller 9 can be electrically detached. The buffer memory is accessible from the processing apparatus side. As a result, the buffer memory is actively used for storing various input / output data in the processing apparatus.

이 시이퀸스연산처리장치와 통신회선(13)을 개재시켜 접속되어 있는 프로그그래밍장치(1000)는 퍼엄웨어(1), 데이터송수신장치(2), 설정기(3), CRT(4), 표시용 작업 메모리(14), 데이터버스(5), 어드래스버스(6)등으로 형성되어 있다.The programming device 1000, which is connected to the sequence processing device and the communication line 13, is a platform software 1, a data transmission and reception device 2, a setter 3, a CRT 4, a display. The work memory 14, the data bus 5, the address bus 6, and the like are formed.

설정기(3)에는 시뮬레이션을 행하기 위한 모드절환버튼(31), 시이퀸스 프로그램의 분기, 접점, 접점번호를 각각 설정하는 분기지정버튼(32), 접점지정버튼(33), 접점번호지정버튼(34), 접점의 ON, OFF를 지정하기 위한 접점동작버튼(35)이 설치되어 있다.The setter 3 has a mode switching button 31 for performing simulation, a branch designation button 32 for setting branch, contact, and contact number of the sequence program, a contact designation button 33, and a contact number designation button, respectively. 34, contact operation buttons 35 for designating ON and OFF of the contact are provided.

퍼엄웨이(1)에는 제9도의 플로우챠트에 나타낸 동작을 하는 소프트웨어가 ROM화되어 들어가 있다. 프로세스 이출력 컨트로울러(9)와 프로세스 입출력장치(500)의 상세함은 제4도에 나타내져 있다. 프로세스 입출력 컨트로울러(9)는 완충기억기를 내장하며 도면에 있어서, 901, 902, ...99N, 981, ...98N은 완충기억내의 어드레스 게이트이고, 도면에서는 1001번지로부터 200N번지 까지의 에이어를 사용하는 사례를 나타내고 있다. 그리고, 911, 912, ...91N, 921, 922, ...92N은 그 데이터부를 나타내고 있다. 이 구성에서, 90i, 91i(i=1,2,...N)는 입력점용(用)의 기억영역이고, 98J, 92J (J=1,2,...N)는 출력점용의 기억영역이다.The software for performing the operation shown in the flowchart of FIG. 9 is ROMed in the feramway 1. Details of the process output controller 9 and the process input / output device 500 are shown in FIG. The process I / O controller 9 incorporates a buffer memory, and in the drawing, 901, 902, ... 99N, 981, ... 98N are address gates in the buffer memory, and in the drawing, an address from 1001 to 200N is shown. It shows an example of using ear. 911, 912, ... 91N, 921, 922, ... 92N represent the data portion. In this configuration, 90i and 91i (i = 1, 2, ... N) are storage areas for input points, and 98J and 92J (J = 1, 2, ... N) are memory for output points. Area.

프로세스 입출력장치(500)는 스캐너(53)와 시그널 콘디셔너(레벨변환기)(541), (542), (...54N), (551), (552...55N)를 가지며, 레벨변환기(541), (542), (...54N)는 각각 프로세스계 입력접점(561), (562), (...56N)에 접속되고 입력접점으로 부터의 접점상태를 나타내는 전압을 상태에 대응하는 소정의 전압 예컨대, OV또는 5V로 변환한다. 레벨변환기(551), (552), (...55N)는 각각 프로세스계 출력(571), (572), (...57N)에 접속되어 스캐너에 의해 대응하는 출력데이테부(921), (922), (...92N)로부터 부여되는 출력데이터를 소정의 전압으로 변환하여 프로세스계 출력에 부여한다.The process input / output device 500 has a scanner 53 and a signal conditioner (level converter) 541, 542, (... 54N), 551, and 552 ... 55N. 541), 542, and (... 54N) are connected to the process system input contacts 561, 562 and (... 56N), respectively, and correspond to a voltage indicating the state of a contact from the input contact. To a predetermined voltage, for example, OV or 5V. The level converters 551, 552, (... 55N) are connected to the process system outputs 571, 572, (... 57N), respectively, and corresponding output data units 921, The output data provided from 922 and (92N) is converted into a predetermined voltage and applied to the process system output.

여기서 프로세스계 출력(571), (572), (...57N)은 예컨대, 각각 솔레노이드, 램프, 모우터이다.The process system outputs 571, 572, (... 57N) are, for example, solenoids, lamps, and motors, respectively.

스캐너(53)는 내장하는 발진기로부터의 스캐닝클록에 따라 우선 레벨변환기(541)와 입력데이터부(911)를 접속한 후 다음에 레벨변환기(542)와 입력데이터부(912)를 접속하도록 하여 순차 이동하여 레벨변환기(541), (542), (......54N)를 스캔하여 입력접점의 상태를 나타내는 신호를 입력데이터부(911), (912), (......91N)에 부여한다.The scanner 53 first connects the level converter 541 and the input data unit 911 according to the scanning clock from the oscillator built in, and then connects the level converter 542 and the input data unit 912 in order. Move to scan the level converters 541, 542, (... 54N) and input signals representing the state of the input contact. 91N).

그리고 출력데이터부(921), (922), (……92N)를 순차 스캔하여 출력데이터부을 레벨변환기(551), (552), (……55N)에 부여한다.Then, the output data sections 921, 922 and (... 92N) are sequentially scanned to give the output data sections to the level converters 551, 552, and 55N.

스캐너에 의한 입출력 데이터의 스캐닝은 시이퀀스 연산처리장치(1001)내에 있어서 도시하지 않은 스캐닝 스위치에 의해 정지 가능하다.Scanning of the input / output data by the scanner can be stopped by a scanning switch (not shown) in the sequence processing unit 1001.

즉, 스캐닝 스위치를 OFF 하면 스캐너(53)의 이동이 정지됨과 동시에 스캐너와 레벨변환기, 입력 또는 출력데이터부를 접속하는 스위치(531), (532)가 각각 OFF 되어 완충기억기를 프로그램 입력장치(500)에서 때어낸다. 스위치를 ON하면 스캐너에 의한 스캐닝을 행해진다.That is, when the scanning switch is turned off, the movement of the scanner 53 is stopped and at the same time, the switches 531 and 532 for connecting the scanner and the level converter, the input or output data unit are turned off, respectively, and the buffer memory is stored in the program input device 500. Squeeze from When the switch is turned on, scanning with the scanner is performed.

이와 같은 스캐닝 스위치의 ON, OFF 상태는 설정기(3)의 도시하지 않은 램프 등에 의해 표시되어 프로그램 입력장치가 완충기억기에 접속되어 있는지 어떤지 식별 가능하게 되어 있다.The ON and OFF states of such a scanning switch are indicated by a lamp (not shown) of the setter 3 so as to identify whether the program input device is connected to the buffer memory.

처리장치(8)는 시이퀀스 프로그램 메모리(10)에 축적된 시이퀀스 프로그램인 시이퀀스 회로의 시이퀀스 명령을 독출하여 완충기억기의 입력데이터에 의해 시이퀀스 프로그램의 출력을 산출하여 완충기억기의 대응하는 출력데이터부에 부여되므로, 이 동작을 순차 각 시이퀀스 프로그램에 관하여 행하는 것이다.The processing unit 8 reads the sequence instruction of the sequence circuit, which is the sequence program stored in the sequence program memory 10, calculates the output of the sequence program from the input data of the buffer memory, and calculates the output of the sequence memory. Since this is given to the corresponding output data portion, this operation is performed for each sequence program in sequence.

이와 같은 처리장치로서는 예컨대, "시이퀀스 제어장치"로서 KEIJI HIDEJIMA 등에 의해 1978년 9월 13일자에 출원된 본 출원과 같은 양수인 일본 특허출원 제53-111661호에 명시된 것이다.Such a processing apparatus is, for example, specified in Japanese Patent Application No. 53-111661, which is the same as the present application filed on September 13, 1978 by KEIJI HIDEJIMA as a "sequence control apparatus".

제5도는 이와 같은 처리장치의 회로도이다.5 is a circuit diagram of such a processing apparatus.

도면에 있어서, 802는 명령레지스터, 814는 분기부, 815는 접점부, 816은 어드레스부, 806, 807, 808은 디코어더, 801은 어큐물레이터, 805는 칼럼(Column) 레지스터, 803은 AND 게이트, 804는 OR 게이트, 809는 입력접점 데이터라인, 810은 출력릴레이 데이터라인, 811은 입력접점 어드레스라인, 812는 출력릴레이 어드레스라인이다. 그리고 812'는 I 레지스터, 813은 J 레지스터이다.In the figure, 802 is a command register, 814 is a branch, 815 is a contact, 816 is an address, 806, 807, 808 is a decoder, 801 is an accumulator, 805 is a column register, and 803 is a AND gate, 804 is OR gate, 809 is input contact data line, 810 is output relay data line, 811 is input contact address line, and 812 is output relay address line. 812 'is an I register and 813 is a J register.

기억부(10)로 부터 보내진 기계어(語)를 명령 레지스터(802)에 격납 하여 분기부(814)에 격납된 분기 정보를 디코오더(806)에 의해 디코오더하여 아래에 분기가 있으면 I 레지스터(812')에, 위로 부터의 분기가 있으면 J 레 지스터(813)에 제어 신호를 보내 칼럼 레지스터(805)에 ACC(801)의 내용을 격납한다든가, 반대로 칼럼 레지스터(805)로부터 ACC(801)에 독출시킨다.The machine word sent from the storage unit 10 is stored in the instruction register 802, and the branch information stored in the branch unit 814 is decoded by the decoder 806, and if there is a branch below, the I register ( 812 '), if there is a branch from the top, a control signal is sent to the J register 813 to store the contents of the ACC 801 in the column register 805, or vice versa from the column register 805. To read.

입력부로부터의 입력접점 상태는 입력데이터라인(809)에서 들어와 ACC의 값과 AND 게이트(803)에 의해 논리적이 취해진다든가 OR 게이트(804)에 의해 논리합이 취해져 그 결과가 출력데이터라인(810)에 보내진다.The input contact state from the input is logically taken by the input data line 809 by the AND gate 803 or by the OR gate 804, and the result is output to the output data line 810. Is sent.

명령레지스터의 접점부(815)에 격납된 접점 정보는 디코오더(807)에 의해 디코오드되어 AND 게이트(803), 또는 OR 게이트(804)에 제어신호가 보내진다.The contact information stored in the contact portion 815 of the command register is decoded by the decoder 807 and a control signal is sent to the AND gate 803 or the OR gate 804.

명령레지스터의 어드레스부(816)에 격납된 어드레스 데이터는 디코오더(808)에 의해 디코오드되어 입력접점의 어드레스라인(811) 또는 출력 릴레이의 어드레스라인(812)에 출력된다.The address data stored in the address register 816 of the command register is decoded by the decoder 808 and output to the address line 811 of the input contact or the address line 812 of the output relay.

그리고 제11도는 작업용 표시메모리(14)의 기억내용을 나타낸 것으로서, 후술하는 바와 같이 설정기(3)에 의해 독출된 시이퀀스 회로의 기계어를 스토어하는 부분(141)과, 독출된 시이퀀스회로의 완충기억기에서 독출된 입출력 접점의 ON, OFF 상태를 스토어하는 부분(142)를 가진다.11 shows the stored contents of the work display memory 14, which stores the machine words of the sequence circuit read out by the setter 3 as described later, and the portion of the read sequence circuit. And a portion 142 for storing ON and OFF states of the input / output contact read out from the buffer memory.

시뮬레이션을 행하는 데는 먼저, 대상인 시이퀀스 프로그램이 메모리(10)에 격납되어 있어야 한다. 시이퀀스 프로그램이라는 것은 예컨대, 제6도에 나타낸 바와 같은 시이퀀스 회로도가 제7도에 나타낸 회로 설정정보와 기계어와의 대응관계에 따라 제8도에 기계어에 변역된 것이다.In order to perform the simulation, first, a target sequence program must be stored in the memory 10. The sequence program is, for example, a sequence circuit diagram as shown in FIG. 6, which is translated into machine language in FIG. 8 according to the correspondence between the circuit setting information shown in FIG.

제5도의 시이퀀스 회로는 설정기(3)의 조작버튼(31), (32), (33), (34)을 순차 조작하는 것에 의해 CRT(40)상에 작성됨과 동시에 그 분기정보, 접점 정보, 접점번호 정보가 시이퀀스 프로그램 메모리(10)에 스토어 된다.The sequence circuit of FIG. 5 is created on the CRT 40 by sequentially operating the operation buttons 31, 32, 33, and 34 of the setter 3, and at the same time, the branch information and the contact points thereof. The information and the contact number information are stored in the sequence program memory 10.

먼저 제9도의 스텝(101)에서 모드선택버튼(31)의 회로작성버튼(S1)이 압압되면 퍼엄웨어의 회로작성에 관한 소프트웨어가 시동한다. 다음에 스텝(102)에서 제1행 제1열의 분기정보, 접점정보, 접점번호를 버튼(32), (33), (34)에서 설정한다.First, when the circuit creation button S 1 of the mode selection button 31 is pressed in step 101 of FIG. 9, software related to circuit creation of the permware is started. Next, in step 102, branch information, contact information, and contact number in the first row and the first column are set in buttons 32, 33, and 34. Next, as shown in FIG.

그러면 스텝(103)에서 퍼엄웨어에 의해 그것 들은 기계어로 변환하여 스텝(104)에서 데이터 송수신장치(2), 통신회로(13), 데이터 송수신장치(7)를 거쳐 시이퀀스 프로그램 메모리의 번지(W1)에 SBS(Sequence Block Stant)가 설정됨과 동시에 제8도에 나타낸 기계어 OP1(101), OP2(

Figure kpo00001
Figure kpo00002
), AD2(
Figure kpo00003
Figure kpo00004
Figure kpo00005
Figure kpo00006
)가 스토어 된다.Then, in step 103, they are converted into machine language by step software, and in step 104, the address W of the sequence program memory is passed through the data transceiver 2, the communication circuit 13, and the data transceiver 7 in step 104. 1 ) SBS (Sequence Block Stant) is set, and the machine words OP 1 (101) and OP 2 (
Figure kpo00001
Figure kpo00002
), AD 2 (
Figure kpo00003
Figure kpo00004
Figure kpo00005
Figure kpo00006
) Is stored.

그리고

Figure kpo00007
은 "O"이나 "1"이라도 가(可)의 의미를 나타낸다.And
Figure kpo00007
Represents the meaning of "O" even if "O" or "1".

마찬가지로 제행 제2열의 입력점점(×100)에 관한 정보를 버튼(32), (33), (34)에서 설정하면 메모리(10)의 번지(W2)에 정보가 스토어되어 이하 제1행, 제3열, 제2행 제1열, 제2행, 제3열, 그리고 제2행, 제3열의 출력접점(Y001)까지의 정보를 순차 제8도에 나타낸 바와 같이 스토어한다.Similarly, if information about the input point (× 100) of the second row of the row is set in the buttons 32, 33, and 34, the information is stored in the address W 2 of the memory 10, and the first row, The information up to the output contact (Y001) of the third column, the second row, the first column, the second row, the third column, and the second row, the third column is stored as shown in FIG.

메모리(10)는 이와 같이 하여 다수의 시이퀀스 프로그램이 격납된다.In this manner, the memory 10 stores a plurality of sequence programs.

다음에 이와 같이 하여 스토어된 시이퀀스 프로그램의 시뮬레이션에 관하여 기술한다. 우선, 프로세스 입출력장치를 거쳐 취이된 입력접점 데이터에 의하여 시이퀀스 회로의 시뮬레이션에 관해 제9도를 참조하여 기술한다.Next, the simulation of the stored sequence program is described. First, the simulation of the sequence circuit will be described with reference to FIG. 9 by the input contact data taken through the process input / output device.

시뮬레이션의 제1단계는 소망하는 시이퀀스 회로를 독출하고 있다. 설정기(3)의 모드선택버튼(31)의 회로독출버튼(S2)을 압압하면(스텝 105) 퍼엄웨어(1)의 회로독출에 관한 소프트웨어가 시동한다.The first stage of the simulation reads out the desired sequence circuit. When the circuit read button S 2 of the mode selection button 31 of the setter 3 is pressed (step 105), the software relating to the circuit read of the permware 1 is started.

다음에 버튼(33)에 의해 출력접점-○-을 선택 하여 버튼(34)에 의해 출력 접점 번호 예컨대, Y001 이라고 조작하면(스텝 106) 출력 접점번호(Y001) 가 퍼엄웨어에 의해 기계어로 변환되어 메모리(10)를 억세스 한다(스텝 107). 그러면 메모리(10)에서 변환된 기계어 에서 대표되는 시이퀀스 프로 그램 예컨대, 제6도의 시이퀀스 회로가 독출 되어 표시용 작업메모리(14)의 부분(141)에 전송되어(스텝 108) CRT(4)에 시이퀀스 회로가 표시된다.Next, if the output contact-○-is selected by the button 33 and the output contact number, for example, Y001 is operated by the button 34 (step 106), the output contact number Y001 is converted into machine language by the platform software. The memory 10 is accessed (step 107). Then, a sequence program representative of the machine language converted in the memory 10, for example, the sequence circuit of FIG. 6 is read out and transmitted to the portion 141 of the display work memory 14 (step 108), and the CRT 4 The sequence circuit is displayed.

다음에 독출된 시이퀀스 회로의 입력접점, 출력접점의 상태를 독출하느 조작을 행한다. 설정기(3)의 모드선택버튼(31)의 시뮬레이션버튼(S4)을 압압하면(스텝 115) CRT 화면에 나와 있는 시이퀀스 회로의 입력접점(×001), (×002), (×003)의 현재의 입력데이터가 완충기억기(9)의 입력데이터부로부터 독출되어 메모리(14) 부분(142)에 전송됨과 동시에 이들의 입력접점 정보에 의하여 처리장치(8)에서 산출된 출력점전정보가 완충기억기의 출력데이터로부터 독출되어 메모리(14) 부분(142)에 전송된다(스텝 116).Next, an operation of reading the states of the input contact point and the output contact point of the read sequence circuit is performed. When the simulation button S 4 of the mode selector button 31 of the setter 3 is pressed (step 115), the input contacts of the sequence circuit shown on the CRT screen (× 001), (× 002), (× 003) The current input data of the ") is read out from the input data portion of the buffer memory 9 and transmitted to the memory 14 portion 142, and at the same time, the output point information calculated by the processing device 8 by their input contact information. Is read from the output data of the buffer memory and transferred to the memory 14 portion 142 (step 116).

독출된 입출력접점정보는 CRT(4)에 예컨대, 제10도에 나타낸 바와 가팅 표시되어(스텝 117) 예컨대, ON의 접점은 두텁게 OFF의 접점은 가늘게 표시된다.The read-out input / output contact information is displayed on the CRT 4, for example, as shown in FIG. 10 (step 117). For example, the ON contact is thick and the OFF contact is thinly displayed.

이상과 같이 소망하는 시이퀀스 회로의 입출력접점의 상태가 설정기의 조작에 의해 CRT에 표시할 수 있다.As described above, the state of the input / output contact of the desired sequence circuit can be displayed on the CRT by the operation of the setter.

다음에 입력접점의 정보를 프로그램 입출력장치를 거쳐 부여 되는 대신 소프트적 으로 설정하여 시이퀀스 처리를 행하는 경우에 관하여 설명한다.Next, a description will be given of a case of performing sequence processing by setting information of an input contact softly instead of being given through a program input / output device.

이 경우 우선 스캐닝 스위치를 OFF하여 스캐너(53)의 동작을 정지시켜 완충기억기(9)를 프로그램 입출력장치(500)에서 떼어낸다.In this case, first, the scanning switch is turned off to stop the operation of the scanner 53 and the buffer memory 9 is detached from the program input / output device 500.

다음에 설정기(3)의 모드선택버튼(31)의 회로독출버튼(S2)을 압압하여 퍼엄웨어(1)의회로독출에 돤한 소프트 웨어를 작동시켜 제9도의 스텝(105∼109)에 따라 상기와 마찬가지의 방법으로 CRT(4)에 회로의 표시를 행한다.Next, the circuit readout button S 2 of the mode selector button 31 of the setter 3 is pressed to operate the software corresponding to the circuit readout of the permware 1 to the steps 105 to 109 of FIG. Accordingly, the circuit is displayed on the CRT 4 in the same manner as described above.

다음에 독출된 시이퀀스 회로에 있어서의 입력접점 즉, 제6도의 시이퀀스 회로를 예로 들면, 입력접점(×001), (×002), (×003)에 대이터(ON, OFF 상태)를 설정하는 것이다. 우선, 모드선택버튼(31)의 입출력 설정버튼(S3) 압압하여 퍼엄웨어(1)의 입출력설정의 소프트웨어를 시동시킨다(스텝 110).Next, if the input contact in the sequence circuit read out, that is, the sequence circuit of FIG. 6 is taken as an example, the data (ON, OFF state) is applied to the input contacts (× 001), (× 002), and (× 003). To set. First, the input / output setting button S3 of the mode selection button 31 is pressed to start the software for setting the input / output of the permware 1 (step 110).

다음에 설정기의 접점번호 지령버튼(34)에 의해 접점번호 예컨대, ×001을 설정하여 그 접점의 ON, OFF 상태를 접점동작버튼(35)에 의해 예컨대, ON이라 설정하여 ×001=1로 하고, 또한 다른 접점 (×002), (×003)에 관해서도 ON, OFF 상태를 설정한다(스텝 111).Next, a contact number, e.g., x001, is set by the contact number command button 34 of the setter, and the ON and OFF states of the contact are set, e.g., ON by the contact operation button 35, to x001 = 1. Further, the ON and OFF states are also set for the other contacts (x002) and (x003) (step 111).

예컨대, 접점(×002)을 OFF (즉, ×002=0), 접점(×003)을 ON(즉, ×003=1)으로 한다. 그러면 이들 입력접점이 해당하는 어드레스에 퍼엄웨어에 의해 변환되어(스텝 112) 입력접점의 어드레스와 접점의 ON, OFF의 설정값이 PIOC(9)의 완충기억기에 보내져 설정값이 대응하는 입력 데이터부 예컨대, 911, 912, 913에 각각 격납된다.For example, the contact (x002) is turned OFF (that is, x002 = 0) and the contact (x003) is turned on (that is, x003 = 1). Then, these input contacts are converted to the corresponding address by means of stepware (step 112), and the address of the input contact point and the setting values of the ON and OFF points of the contact point are sent to the buffer memory of the PIOC 9, and the input data part corresponding to the setting value is given. For example, they are stored in 911, 912, and 913, respectively.

이 입출력완충기억기는처리장치에 의해 항상 스캔(일반적으로는 반드시 스캔만이 아니고 랜덤 억세스되어도 좋다)되어 있으므로 이 값은 바로 처리장치에 취입되어 시이퀀스 연산에 사용된다. 최후에 입력데이터에 의한 출력접점의 데이터를 독출한다.Since this input / output buffer memory is always scanned by the processing device (generally, it may be randomly accessed, not necessarily a scan), this value is directly taken into the processing device and used for sequence calculation. Finally, the data of the output contact by the input data is read.

설정기(3)의 시뮬레이션버튼(S4)을 압압하면 퍼엄웨어의 시뮬레이션에 관한 스프트웨어가 시동하여(스텝 115) CRT화면에 나와있는 입력접점(×001), (×002), (×003)의 입력에 데이터가 완충기억기의 입력데이터부(911), (912), (913)로 부터 독출되어 메모리(14)에 전송됨과 동시에 처리장치(8)에 의해 시이퀀스 연산이 행해져 얻어진 출력접점(Y001)의 데이터(본 예에서는 Y001=1)를 완충기억기의 출력데이터부 예켠대, 921로부터 독출메모리(14)에 전송한다(스텝 117), 이어서 메모리(14)에 취입된 입출력 데이터는 제10도와 같이 CRT에 표시된다.When pressing the simulation button S 4 of the setter 3, the software related to the simulation of the permware is started (step 115), and the input contacts (× 001), (× 002), and (× 003) shown on the CRT screen are displayed. The output contact obtained by reading data from the input data sections 911, 912, and 913 of the buffer memory and transferring the data to the memory 14 at the same time as a sequence operation is performed by the processing unit 8 at the input of the buffer memory. The data of (Y001) (Y001 = 1 in this example) is transferred from the 921 to the read memory 14 from the output data section of the buffer memory (step 117). Then, the input / output data taken into the memory 14 is It is displayed on the CRT as shown in FIG.

이상과 같이 설정기(3)에 의해 설정된 입력접점의 데이터에 의하여 시이퀀스 회로의 출력점의 상태를 한번보고 알아내 시이퀀스 회로의 동작검사가 간단하게 행해진다.As described above, the state of the output point of the sequence circuit is determined once by the data of the input contact set by the setter 3, and the operation test of the sequence circuit is easily performed.

프로세스 입출력컨트로울러 내에 완충기억기를 설치했으므로 시뮬레이션이 실제의 동작에 근접된 상태에서, 또한 맨-머시인성이 양호하게 행해진다.Since the buffer memory is installed in the process input / output controller, the man-machine toughness is satisfactorily performed while the simulation is close to the actual operation.

또한 프로세스 입력장치중 이 입출력완충기억기만 았으면 시뮬레이션이 가하므로 종래와 같이 프로세스 입출력장치의 제작, 시뮬레이션반과의 결선이 공정상의 애로가 되는일이 없게 되었다.In addition, since the simulation is performed only when this input / output buffer memory is stored in the process input device, the process input / output device manufacturing and the connection with the simulation board do not become a problem in the process.

본 발명에 의한 프로세스 제어장치의 제2실시예를 설명한다.A second embodiment of the process control device according to the present invention will be described.

본 실시예는 제12도에 나타낸 바와같이 제3도에 나타낸 제1실시예와 거의 동일한 구성을 가지지만 퍼엄웨어(1)의 프로그램 및 작업용 표시메모리(14)의 구성이 약간 다르다.As shown in Fig. 12, this embodiment has a configuration substantially the same as that of the first embodiment shown in Fig. 3, but the configuration of the program and work display memory 14 of the permware 1 is slightly different.

본 실시예의 특징은 다수 존재하는 시이퀀스 프로그램중의 1시이퀀스 프로그램을 변경한때의 다른 시이퀀스 프로그램에 부여하는 영향을 CRT의 표시표면상에서 아는 것이다. 즉, 실제로 생산설비와 PLC를 접속하여 시이퀀스 제어를 행하고 있는 중에 생산설비의 증설이나 개조등을 하기 위해 당연히 시이퀀스 프로그램도 변경할 필요가 발생하는 경우가 자주 있다.The feature of the present embodiment is to know on the display surface of the CRT the effect of changing one sequence program among a plurality of existing sequence programs on another sequence program. In other words, while the sequence control is actually performed by connecting the production equipment to the PLC, it is often necessary to naturally change the sequence program in order to expand or modify the production equipment.

이와 같은 경우 이 변경을 필요로 하는 시이퀀스 프로그램 자체가 변경된 후 정확하게 동작하는가의 여부 등의무제외에 다른 예기치 않은 시이퀀스 프로그램의 동작이 불량해지는 경우가 있다.In such a case, there may be a case in which the operation of another sequence program is poor except for the fact that the sequence program itself requiring the change is correctly operated after the change.

이것은 증설이나 개조 등을 한 생산설비의 부분이 2개 이상의 시이퀀스 프로그램 걸쳐 관련하여 있던 경우나 변경이 간접적으로 영향을 끼친 경우에 일어난다.This occurs when a part of a plant that has been expanded or refurbished is related to more than one sequence program, or when the change is indirectly affected.

예컨대, 제14도에 나타낸 바와 같이 시이퀀스 회로에서는 시이퀀스 회로(10A)의 ×001인 입력접점이 다른 2개의 시이퀀스 회로(10B), (10C)에 걸쳐 사용되고 있으므로 만약 ×001에 대응하는 생산설비를 제거하면 이 영향은 회로(10A), (10B)에 나타난다. 또 시이퀀스 회로(10C)에서는 시이퀀스 회로(10A)의 출력(Y001)의 회로요소로서 사용하고 있으므로 10A의 변경의 영향은 10C에도 나타난다.For example, as shown in FIG. 14, in the sequence circuit, since the input contact point of 001 of the sequence circuit 10A is used across two different sequence circuits 10B and 10C, a production corresponding to 001 is produced. If the facility is removed, this effect is seen in circuits 10A and 10B. In addition, since the sequence circuit 10C is used as a circuit element of the output Y001 of the sequence circuit 10A, the effect of the change of 10A also appears in 10C.

본 실시예는 이와 같은 영향을 가시적으로 일목요연하게 하기 위해 다수 존재하는 시이퀀스 프로그램 중의 어느 하나를 디버그 중에 변경한 경우 외의 프로그램에의 영향을 다음과 같이 하여 알 수 있도록 구성했다.In this embodiment, in order to visually make such an effect visible, the present invention is configured so that the influence on other programs when one of a large number of sequence programs is changed during debugging is as follows.

제14도에 있어서, 10A는 입력접점(×001), (×002), (×003)과 출력접점(Y001)으로 형성되는 시이퀀스 회로, 10B는 입력접점(×001), (×004), (×005)과 출력접점(Y002)으로 형성되는 시이퀀스 회로, 10C는 입력접점(×006), (×007)과 출력접점(Y001), (Y003)으로 이루어져 10A의 출력(Y001)을 회로의 구성요소로서 가지고 있다.In FIG. 14, 10A is a sequence circuit formed of input contacts (× 001), (× 002), (× 003) and output contact (Y001), and 10B is an input contact (× 001) and (× 004). , Sequence circuit formed of (× 005) and output contact (Y002), 10C consists of input contact (× 006), (× 007) and output contact (Y001), (Y003) to output 10A (Y001) It has as a component of a circuit.

본 실시예에서는 퍼엄웨어(1)의 프로그램은 제13도에 나타낸 것이고, 시이퀀스 회로작성의 프로그램(스텝 101∼109), 시이퀀스 회로의 입력접점의 상태설정의 프로그램(스텝 110∼113)은 제1실시예와 동일하다.In the present embodiment, the program of the permware 1 is shown in FIG. 13, and the program for creating the sequence circuit (steps 101 to 109) and the program for setting the state of the input contact of the sequence circuit (steps 110 to 113) are shown in FIG. Same as the first embodiment.

우선, 프로세스 입출력장치(500)의 스캐너(53)의 동작을 정지시켜 설정기(3)에 의해 시이퀀스 회로의 프로그램을 변경한 경우의 시이퀀스 회로의 상태변화를 표시하는 동작을 설명한다.First, an operation of displaying the state change of the sequence circuit when the program of the sequence circuit is changed by the setter 3 by stopping the operation of the scanner 53 of the process input / output device 500 will be described.

제1실시예와 마찬가지의 순서로 우선 예컨대, 제14도에 나타낸 시이퀀스 회로(10A) 즉, -점 쇄선(C)내의 부분을 스텝(105∼109)에서 시이퀀스 프로그램메모리(10)로부터 독출하여 제15도에 나타낸 바와 같이 CRT(4)에 표시시킨다.In the same procedure as in the first embodiment, first, for example, the sequence circuit 10A shown in FIG. 14, that is, the part within the dashed-dotted line C is read out from the sequence program memory 10 in steps 105 to 109. FIG. To the CRT 4 as shown in FIG.

다음에 CRT에 표시된 시이퀀스 회로(10A)의 입력접점(×001), (×002), (×003)의 ON, OFF 상태를 스텝(110∼113)에 따라 설정기(3)에 의해 설정하여 입출력 완충기억의 대응하는 입력데이터부(911∼913)에 ON, OFF 상태 즉, "1" 또는 "0"를 스토어한다.Next, the ON and OFF states of the input contacts (× 001), (× 002) and (× 003) of the sequence circuit 10A displayed on the CRT are set by the setter 3 in accordance with steps 110 to 113. The ON and OFF states, i.e., " 1 " or " 0 ", are stored in the corresponding input data portions 911 to 913 of the input / output buffer memory.

처리장치(8)는 이들 입력접점의 설정데이터 및 다른 입력접점의 데이터에 의해 시이퀀스 프로그램 메모리(10) 내의 각 시이퀀스 프로그램에 관하여 순차 시이퀀스 연산을 행하여 출력접점(Y001∼Y00N)의 데이터를 연산하여 완충기억기의 출력부(921∼92N)에 스토어한다.The processing apparatus 8 performs sequence operation on each sequence program in the sequence program memory 10 based on the setting data of these input contacts and the data of other input contacts, and performs the data of the output contacts Y001 to Y00N. The data is stored in the buffers output sections 921 to 92N.

다음에 설정기(3)의 모드선택버튼(31)의 시뮬레이션 설정버튼(S4)을 압압하면 완충기억기의 모든 출력부(921∼92N)에서 전출력점(Y001∼Y00N)의 데이터가 독출되어 표시용작업메모리(14)에 스토어된다(스텝 121). 이어서 표시용작업메모리내에서 입력설정버튼(S3)을 압압하기 전의 모든 시이퀀스 회로의 출력점(Y001∼Y00N)의 데이터 즉, S3을 압압하기 전의 입력접점 데이터에 의하여 출력점의 데이터와 입력접점의 데이터를 설정한 후의 전출력검의 데이터 즉, 스텝(121)에서 얻어진 전출력점의 데이터가 각 출력점마다 비교되어(스텝 122) 비교 결과는 퍼엄웨어의 의해 독출되어 퍼엄웨어에 의해 상태 변화가 있었던 출력점의 출력점 번호가 검출되어 그것이 CRT(4)에 표시된다(스텝 123). 이 상태변화의 표시는 예컨대, 제15도에 나타낸 바와 같이 상태변화의 타이틀(214), 상태변화가 있었던 출력점의 변호(215∼217)를 나타내도록 한다. 그리고 OFF에서 ON으로 변한 출력점의 출력점 번호를 굵게 하고, ON에서 OFF로 된 출력점의 번호를 가늘게 표시하도록 하여도 좋다.When the simulation setting button S 4 of the mode selection button 31 of the setter 3 is pressed next, the data of all the output points Y001 to Y00N is read from all the output sections 921 to 92N of the buffer memory. And is stored in the display working memory 14 (step 121). Subsequently, the data of the output point and the input contact point are based on the data of the output points Y001 to Y00N of all the sequence circuits before pressing the input setting button S3 in the display working memory, that is, the input contact data before pressing S3. The data of all the output checks after setting the data of the data, that is, the data of all the output points obtained in step 121 are compared for each output point (step 122). The output point number of the output point which was present is detected, and it is displayed on the CRT 4 (step 123). The display of the state change is, for example, to show the title 214 of the state change and the defenses 215 to 217 of the output point where the state change occurred, as shown in FIG. The output point number of the output point changed from OFF to ON may be thickened, and the output point number from ON to OFF may be thinly displayed.

다음에 CRT화면에 나와 있는 시이퀀스 회로(10A)의 입력점(×001), (×002), (×003)과 출력점(Y001)의 데이터를 완충기억기로부터 독출작업용 표시메모리(14)의 데이터부(제16도의 부분 142)에 전송하여(스텝 124) 독출된 데이터에 따라 화면상의 시이퀀스 회로(10A)의 입력점의 ON, OFF 상태를 표시한다(스텝 125). 그리고 스텝(121∼123)을 스텝(124), (125)의 후에 가져와도 좋다.Next, the display memory 14 for reading out the data of the input points (× 001), (× 002), (× 003) and output point (Y001) of the sequence circuit 10A shown in the CRT screen from the buffer memory. Is transferred to the data portion (part 142 of FIG. 16) (step 124), and the ON and OFF states of the input points of the sequence circuit 10A on the screen are displayed in accordance with the read data (step 125). The steps 121 to 123 may be taken after the steps 124 and 125.

상기의 동작은 시뮬레이션을 예컨대 즉, S4의 버튼을 압압하면 반드시 출력점의 상태변화가 표시되도록한 것이지만 시뮬레이션과 출력점 상태변화의 표시를 별도로 행하도록 하여도 좋다. 이와 같이 하는 경우의 퍼엄웨어(1)의 프로그램을 제18도에 나타낸다. 여기서 퍼엄웨어(1)는 101∼113까지의 스텝은 제13도와 동일하게 한다. 설정기(3)는 모드선택버튼(31)으로서 또한 출력상태변화 검출버튼(S5)(도시 않음)을 가진다.In the above operation, the state change of the output point is always displayed when the simulation is pressed, that is, when the button of S 4 is pressed, but the simulation and the output point state change may be displayed separately. The program of the permware 1 in this case is shown in FIG. Here, in stepware 1, steps 101-113 are the same as FIG. The setter 3 also has an output state change detection button S 5 (not shown) as the mode selection button 31.

제18도에서 독출된 시이퀀스 회로의 시뮬레이션을 행하는 스텝(120), (126), (127)은 제13도의 스텝(120), (124), (125)와 동일하다.Steps 120, 126, and 127 for simulating the sequence circuit read out in FIG. 18 are the same as steps 120, 124, and 125 in FIG.

출력점의 상태변화를 CRT에 표시시키는 데는 우선, 설정기(3)의 출력상태변화 검출버튼(S5)을 압압하면 퍼엄웨어(1)의 출력상태변화의 프로그램이 시동한다(스텝 128). 그러면 완충기억기의 출력데이터부(921∼92N)에 스토어되어 있는 모든 출력점의 데이터가 독출되어 표시용 작업메모리(14)에 스토어된다(스텝 129).In order to display the state change of the output point on the CRT, first, by pressing the output state change detection button S5 of the setter 3, the program of the output state change of the permware 1 is started (step 128). The data of all the output points stored in the output data sections 921 to 92N of the buffer memory is read out and stored in the display work memory 14 (step 129).

다음에 제13도의 스텝(110∼113)에 따라 설정기에 의해 입력점의 데이터를 설정한다.Next, the data of the input point is set by the setter in accordance with steps 110 to 113 in FIG.

다음에 다시 출력상태변화 검출버튼(S5)을 압압하면 설정기에 의해 설정된 입력점의 데이터에 의해 연산된 모든 출력점의 데이터를 완충기억기에서 독출메모리(14)에 스토어한다(스텝 129). 다음에 버튼(S3)을 압압하기 전의 모든 출력점의 상태와 압압한 후의 모든 출력점의 데이터가 비교되어(스텝 130) 상태변화가 있었던 출력점의 번호가 CRT에 표시된다(스텝 131). 여기서 표시용 작업메모리(14)의 구성을 제16도, 제17도를 참조하여 설명한다.Next, the pressing when the store to read out the memory 14 in the set groups buffer the data for all output points operation stored by the data of the input point set by group re-output state change detection button (S 5) to (step 129). Next, the state of all the output points before pressing the button S3 and the data of all the output points after pressing are compared (step 130), and the number of the output point which has changed state is displayed on the CRT (step 131). The configuration of the display working memory 14 will now be described with reference to FIGS. 16 and 17. FIG.

제16도는 표시용 작업메모리의 제1예를 나타내며, CRT에 표시되는 시이퀀스 회로 예컨대, 10A의 분기정보(OP1), 접점정보(OP2), 접점번호(AD2)의 각 기계어를 스토어하는 부분(141)과, 부분(141)에 스토어되어 있는 입출력점의 상태를 스토어하는 부분(142)을 가지고 있으며 부분(141), (142)의 구성은 제11도의 것과 동일하다.FIG. 16 shows a first example of the display working memory, and stores the sequence words displayed on the CRT, for example, branch information OP 1 of 10A, contact information OP 2 , and contact number AD 2 . And a portion 142 which stores the state of the input / output points stored in the portion 141. The configuration of the portions 141 and 142 is the same as that of FIG.

143, 144는 각각 모든 시이퀀스 회로의 출력점의 데이터를 스토어하는 메모리부이며, 제13도는 스텝(121)에서 완충기억기로부터 독출된 모든 출력점의 데이터는 퍼엄웨어(1)의 프로그램에 따라 상호 메모리부(143, 144)에 메모리된다.143 and 144 are memory sections for storing data of output points of all sequence circuits respectively, and FIG. 13 shows data of all output points read from the buffer memory in step 121 according to the program of the permware 1. The memory is stored in the mutual memory sections 143 and 144.

따라서 메모리부(143, 144)의 일방은 스텝(110)에서 입력점의 값이, 설정되기 전의 모든 출력점의 데이터가 메모리되고, 타방은 입력 설정된 후의 모든 출력점의 데이터가 메모리된다. 메모리부(143, 144)의 데이터는 비교기(145)에 부여되어 메모리부(143)에서의 출력점의 데이터와 메모리부(144)에서의 출력점의 데이터가 각 출력마다 비교되어 비교결과가 퍼엄웨어에 의해 독출되어 데이터가 다른 출력점의 출력점번호가 퍼엄웨어에 의해 독출되어 CRT에 표시된다.Therefore, one of the memory units 143 and 144 stores the data of all the output points before the value of the input point is set in step 110, and the data of all the output points after the input setting is stored in the other. The data of the memory units 143 and 144 is provided to the comparator 145 so that the data of the output point in the memory unit 143 and the data of the output point in the memory unit 144 are compared for each output and the comparison result is full. The output point numbers of the output points which are read by the wear and whose data are different are read by the wearware and displayed on the CRT.

제17도는 표시용 작업메모리의 제2예를 나타내며, 이 경우 출력점의 데이터를 스토어하는 메모리부는 하나 뿐이다. 즉, 스텝(121)에 의해 완충기억기로부터 독출된 모든 출력점의 데이터는 메모리부(146)에 부여됨과 동시에 비교기(147)에 부여된다. 이때 메모리부(146)는 입력점의 데이터 설정전의 각 출력점의 데이터를 스토어하고 있으며, 이들 데이터는 완충기억기로부터 다시 출력데이터가 부여되면 비교기(147)에 출력된다.Fig. 17 shows a second example of the display working memory, in which case there is only one memory section for storing data at the output point. That is, the data of all the output points read out from the buffer memory in step 121 is supplied to the memory unit 146 and to the comparator 147 at the same time. At this time, the memory unit 146 stores the data of each output point before setting the data of the input point, and these data are output to the comparator 147 when output data is given again from the buffer memory.

따라서 비교기(147)는 입력접점의 데이터 설정전의 가가 출력점의 데이터와 설정후의 출력점의 데이터를 비교하고, 비교 결과는 퍼엄웨어에서 독출되어 데이터가 다른 출력점의 접점번호가 독출되어 CRT에 표시된다.Therefore, the comparator 147 compares the data of the temporary output point before setting the data of the input contact point with the data of the output point after setting, and the result of the comparison is read by the programware, and the contact numbers of the output points having different data are read out and displayed on the CRT do.

그리고 본 실시예는 입력접점의 데이터를설정기로서 설정하는 대신 프로세스 입출력장치(500)를 개재하여 프로세스계 입력점(561∼56N)에서 스캐너(53)를 개재시켜 취입하는 경우에도 적용할 수 있다.In addition, the present embodiment can also be applied to the case of taking in the scanner 53 through the process input points 561 to 56N via the process input / output device 500 instead of setting the data of the input contact as the setter. .

즉, 제13도의 프로그램에 있어서, 설정기(3)에 의해 스텝(105∼109)에 따라 CRT상에 표시하고 싶은 시이퀀스 회로를 독출한다. 그후 모드선택버튼(31)의 시뮬레이션 버튼(S4)을 압압하여 모든 출력점의 데이터를 완충기억기로부터 메모리(14)에 독출하여 예컨대, 메모리부(143)에 스토어한다.That is, in the program of FIG. 13, the setter 3 reads out the sequence circuit to be displayed on the CRT in steps 105 to 109. FIG. Thereafter, the simulation button S 4 of the mode selection button 31 is pressed to read data of all output points from the buffer memory to the memory 14 and stored in the memory unit 143, for example.

그러면 메모리부(144)에 스토어되어 있는 시뮬레이션 버튼(S4)을 압압하기 전의 출력점의 모든 데이터와 메모리부(143)의 모든 데이터가 각 출력점마다 비교되어(스텝 122) 상태변화가 있었던 출력점의 출력번호가 CRT에 표시된다.Then, all the data of the output point before pressing the simulation button S 4 stored in the memory unit 144 and all the data of the memory unit 143 are compared for each output point (step 122). The output number of the dot is displayed on the CRT.

본 실시예는 이상과 같이 표시용 작업메모리 중에 프로세스 입출력 컨트로울러내의 입출력완충메모리의 내용을 독출하여 모든 출력접점의 상태를 기억시켜 입력설정전후의 출력점의 상태를 비교하도록 했으므로 소정의 시이퀀스에 관련하여 영향이 있었던 시이퀀스의 상태변화를 일목요연하게 할 수 있다.This embodiment reads the contents of the I / O buffer in the process I / O controller in the display work memory as described above, stores the state of all output contacts, and compares the states of the output points before and after the input setting. The state change of the affected sequence can be visualized.

또 본 실시예에 있어서는 표시용작업메모리를 CRT의 외부메모리에 한정하지 않고 CRT의 리플렉스 메모리의 개념도 포함되는 것이다.In the present embodiment, not only the display work memory but the CRT external memory is included, the concept of the CRT reflex memory is also included.

Claims (1)

제어대상 프로세스의 시이퀀스 제어를 행하는 것으로써 그 제어대상에 관하여 예정된 복수의 시이퀀스 프로그램을 기억하고 있는 프로그램 메모리를 가지며 그 프로그램 메모리를 독출하여 그 제어대상의 제어를 행하는 프로세스 제어장치에 있어서, 그 제어대상 프로세스의 상태신호 또는 그 제어대상에 제어신호를 순차적으로 절환하여 입력 또는 출력을 행하는 스캐너를 구비한 프로세스 입출력장치와, 그 상태신호 및 제어신호의 각각 기억부를 가지며 그 프로세스 입출력장치에 접속된 완충기억기와, 그 상태신호 기억부의 신호와 그 프로그램 메모리에서 독출된 시이퀀스에 의해 연산하여 그 결과를 완충기억기의 제어신호 기억부에 기억시키는 연산처리장치와, 그 제어대상의 시이퀀스를 외부에서 설정인지 또는 프로그램 메모리에서의 독출설정인지를 선택하는 설정기와, 그 설정기에의 신호가 외부로부터의 설정일 때는 그 외부 설정값을 그 완충기억기의 대응하는 상태신호기억부 또는 제어신호 기억부에 설정하는 ROM을 포함하는 기억제어수단과, 그 완충기억기의 각각의 기억부에 기억되어 있는 시이퀀스 프로그램의 상태를 선택 표시하는 표시기 등을 가지며 그 시이퀀스 프로그램의 상태 표시를 행하는 것을 특징으로 하는 프로세스 제어장치.A process control apparatus for performing sequence control of a control target process, having a program memory storing a plurality of sequence programs scheduled for the control target, and reading the program memory to control the control target. A process input / output device having a status signal of a process to be controlled or a scanner that sequentially switches control signals to the control object to perform input or output, and has a storage portion of the status signal and the control signal, and is connected to the process input / output device. An arithmetic processing unit that calculates the buffer memory, the signal of the state signal storage unit, and the sequence read out from the program memory, and stores the result in the control signal storage unit of the buffer memory; and a sequence of the control object. Is read from or read from program memory A storage control means including a setting device for selecting whether or not it is positive, and a ROM for setting the external setting value to a corresponding state signal storage unit or control signal storage unit of the buffer memory when the signal to the setter is externally set; And an indicator for selecting and displaying the status of the sequence program stored in each of the buffer memories, and displaying the status of the sequence program.
KR7903316A 1979-09-25 1979-09-25 Process control device KR820002369B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR7903316A KR820002369B1 (en) 1979-09-25 1979-09-25 Process control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR7903316A KR820002369B1 (en) 1979-09-25 1979-09-25 Process control device

Publications (1)

Publication Number Publication Date
KR820002369B1 true KR820002369B1 (en) 1982-12-27

Family

ID=19213033

Family Applications (1)

Application Number Title Priority Date Filing Date
KR7903316A KR820002369B1 (en) 1979-09-25 1979-09-25 Process control device

Country Status (1)

Country Link
KR (1) KR820002369B1 (en)

Similar Documents

Publication Publication Date Title
US4122519A (en) Data handling module for programmable controller
US4298958A (en) Sequence control system
US3975622A (en) Programmable logic controller system
US4328550A (en) Programmer unit with composite calculation capability
US4504900A (en) Sequence instruction display system
KR0171488B1 (en) Microcomputer with built-in debugging capability
US4725960A (en) Method of sizing an image on a graphic display for a numerical controller
KR820002369B1 (en) Process control device
US4326263A (en) Method and apparatus for controlling a plurality of like equipments
US20220326673A1 (en) Support device and storage medium
JPH03136107A (en) Programmable controller
EP0362392A1 (en) Pc simulation system
JPH0577143A (en) Failure diagnosis device for automated line
JPS58178408A (en) Programmable controller having simulating function
JPS6114524B2 (en)
JP2734176B2 (en) How to create a sequence program
JPH0443281B2 (en)
EP0014047A1 (en) Programmable dual stack relay ladder line solver and programming panel therefor
JP3413860B2 (en) Debug method
JP3556336B2 (en) Program creation device and creation method
JPH04373036A (en) Software testing device for computer system
JPH0472244B2 (en)
JPS63241602A (en) Sequence controller
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPH05158524A (en) Execution command display system