KR930005212B1 - Command processing control circuit of plc - Google Patents
Command processing control circuit of plc Download PDFInfo
- Publication number
- KR930005212B1 KR930005212B1 KR1019900009790A KR900009790A KR930005212B1 KR 930005212 B1 KR930005212 B1 KR 930005212B1 KR 1019900009790 A KR1019900009790 A KR 1019900009790A KR 900009790 A KR900009790 A KR 900009790A KR 930005212 B1 KR930005212 B1 KR 930005212B1
- Authority
- KR
- South Korea
- Prior art keywords
- data
- differential output
- latch
- clock pulse
- memory unit
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Human Computer Interaction (AREA)
- Manufacturing & Machinery (AREA)
- Programmable Controllers (AREA)
- Manipulation Of Pulses (AREA)
Abstract
Description
제1도는 종래 PLC미분출력 명령처리 회로의 신호흐름도.1 is a signal flow diagram of a conventional PLC differential output command processing circuit.
제2도는 본 발명 PLC의 미분출력 명령처리 제어장치 블럭도.2 is a block diagram of a differential output command processing control device of the present invention PLC.
제3도는 제2도의 타이밍 발생부에 대한 상세도.3 is a detailed view of the timing generator of FIG.
제4도는 제2도의 코드래치부에 대한 상세도.4 is a detailed view of the cord latch of FIG.
제5도는 제2도의 출력데이타 발생부에 대한 상세도.5 is a detailed view of the output data generator of FIG.
제6도는 제2도의 판독/기록신호 발생부에 대한 상세도.6 is a detailed view of the read / write signal generator of FIG.
제7도의 (a) 내지 (g)는 제3도의 타이밍 발생부에 대한 출력 파형도.7A to 7G are output waveform diagrams for the timing generator of FIG.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
1 : 타이밍 발생부 2 : 프로그램 카운터부1: timing generator 2: program counter
3 : 메모리부 4 : 코드래치부3: memory section 4: code latch section
5 : 출력데이타 발생부 6 : 판독/기록신호 발생부5: Output data generator 6: Read / write signal generator
IC1 : 시프트 레지스터 IC2, IC3 : 래치IC1: shift register IC2, IC3: latch
IC4, IC5 : 버퍼 OR1~OR3 : 오아게이트IC4, IC5: Buffer OR1 to OR3: Oagate
본 발명은 프로그램 가능 로직 제어기(PLC : Programmable Logic Controller)의 미분출력 명령어 처리에 관한 것으로, 특히 하드웨어적으로 미분출력 명령어를 분류하여 사용자의 프로그램이 많은 경우 명령어의 처리를 고속으로 하여 시간을 단축하도록 한 PLC의 미분출력 명령처리 제어회로에 관한 것이다.The present invention relates to the differential output instruction processing of a programmable logic controller (PLC), in particular to classify the differential output instruction in hardware to reduce the time by speeding up the instruction processing when there are many user programs A differential output command processing control circuit of a PLC.
종래의 프로그램 가능 로직제어기에 있어서, 미분출력 명령어의 입력조건이 온(on)에서 오프(off)되거나 또는 오프에서 온되었을때 한 주사(Scan)주기 동안 미분출력이 온되는 로직을 단지 소프트웨어만으로 처리함으로써 한 명령어를 처리하는데 걸리는 시간이 수백 마이크로 초(μsec)소요되었다.In the conventional programmable logic controller, only the software that processes the derivative output on during one scan period when the input condition of the derivative output instruction is turned on or off is turned on or off only by software. This required hundreds of microseconds (μsec) to process one instruction.
즉, 입력정보를 판독하는 마이크로프로세서와, 시스템롬 및 입력정보를 저장하는 램등으로 구성되어 있고, 이를 첨부된 도면 제1도에 의하여 구체적으로 설명하면 다음과 같다.That is, it consists of a microprocessor for reading the input information, the system ROM and the RAM for storing the input information, which will be described in detail with reference to FIG.
먼저 마이크로프로세서가 시스템롬의 프로그램수행에 따라 미분출력 명령어를 판단하여 온 미분출력과 오프 미분출력으로 분류하고, 온 미분출력이면 현재 스캔에서 입력조건을 판단하고, 현재스캔에서 입력조건이 온되었으면 바로 이전 스캔의 입력상태를 판단하여 이전 스캔입력 조건이 온되었으면 미분출력 명령어를 오프시켜 다음 명령어를 수행하고, 이전 스캔 입력조건이 오프되었으면 미분출력 명령어를 온하여 다음 명령어를 수행하고, 또한 오프 미분출력 명령이면 현재 스캔 입력조건을 판단하여 현재스캔의 입력조건이 오프되고 이전스캔의 입력이 온되었을때 미분출력 명령어를 온하고, 현재스캔 입력조건이 오프되고, 이전스캔의 입력이 오프되었을때는 미분출력 명령어를 오프시켜 다음 명령어를 수행하게 되어 있었다.First, the microprocessor judges the differential output instruction according to the program execution of the system ROM and classifies it into the differential output and off differential output.If the differential output is on, the input condition is judged in the current scan. Determining the input status of the previous scan, if the previous scan input condition is on, turn off the derivative output command to execute the next command. If the previous scan input condition is off, execute the next command by turning on the differential output command, and also off derivative output. Command, the current scan input condition is determined and the differential scan command is turned on when the current scan input condition is off and the previous scan input is on, the differential scan output when the current scan input condition is off and the previous scan input is off. The command was to be turned off to execute the next command.
그러나 이와같은 종래 프로그램 가능 로직제어기의 미분출력 명령어 처리방법에 있어서 미분출력 명령어를 단지 소프트웨어(Software)적으로 처리하고 이에 따라 한 명령어를 처리하는데 걸리는 시간이 수백 마이크로초 정도 소요되어 보다 바른 주사타임이 요구되는 시스템에서는 사용이 불가능한 문제점이 발생하였다.However, in the differential output instruction processing method of the conventional programmable logic controller, it takes only several hundred microseconds to process the differential output instruction only in software, and thus, a more accurate scanning time is achieved. There was a problem that could not be used in the required system.
본 발명은 이와같은 종래의 문제점을 감안하여, 타이밍 발생부로 미분출력 명령어를 분류하고, 그 분류된 미분출력 명령어에 따라 고속으로, 사용자의 데이타를 저장하는 메모리부, 데이타를 래치하는 코드래치부, 미분출력 명령어의 해당비트를 발생하는 출력 데이타 발생부를 동작시켜 미분출력 명령어 처리 수행시 보다 빠름 속도로 고속처리하도록 창안한 것으로, 이하 본 발명은 첨부된 도면에 의하여 상세히 설명하면 다음과 같다.SUMMARY OF THE INVENTION In view of such a conventional problem, the present invention classifies a differential output instruction by a timing generator, and at a high speed according to the classified differential output instruction, a memory unit for storing user data, a code latch unit for latching data, Invented to operate at an output data generating unit for generating a corresponding bit of the derivative output instruction to perform faster processing at a higher speed than when performing differential output instruction processing, the present invention will be described in detail with reference to the accompanying drawings.
제2도는 본 발명 PLC의 미분출력 명령처리 제어회로 블럭도이고, 제3도 내지 제6도는 제2도의 각부에 대한 상세도로서, 이에 도시한 바와같이 외부로부터 인가된 수정발진기의 클럭펄스와 마이컴으로부터 출력된 제어신호에 의해 동기되어 기본 클럭펄스를 발생하는 엔드게이트(AND1), 노아게이트(NOR1) 및 시프트레지스터(IC1)로된 타이밍 발생부(1)와, 사용자의 프로그램 데이타를 읽어오기 위하여 상기 타이밍 발생부(1)로부터 발생된 클럭펄스를 카운트하고 그에 해당하는 어드레스를 발생하는 프로그램 카운터부(2)와, 상기 프로그램 카운터부(2)의 어드레스 지정에 의해 사용자의 원하는 데이타를 출력함과 아울러 사용자의 데이타를 저장하는 메모리부(3)와, 상기 프로그램 카운터부(2)의 어드레스에 의해 읽혀진 메모리부(3)의 데이타를 래치하는 오아게이트(OR1), 래치(IC2)(IC3) 및 , 버퍼(IC4)(IC5)로된 코드래치부(4)와, 상기 타이밍 발생부(1)의 클럭펄스에 의해 메모리부(3)에서 출력된 데이타를 래치시키고 4바이트 미분출력 명령의 해당비트를 선정하여 다시 메모리부(3)에 저장하는 래치(IC6)(IC7), 오아게이트(OR2), 인버터게이트(I1), 비트선정부(IC8) 및 버퍼(IC9)로된 출력 데이타 발생부(5)와, 상기 타이밍 발생부(1)의 클럭펄스에 의해 메모리부(3)의 미분출력의 코드를 읽고 미분출력을 온/오프시키는 오아게이트(OR3)(OR4)로된 판독/기록신호 발생부(6)로서 구성한다.2 is a block diagram of the differential output command processing control circuit of the present invention PLC, and FIGS. 3 to 6 are detailed views of each part of FIG. 2, and as shown therein, the clock pulse and the microcomputer of the crystal oscillator applied from the outside are shown. In order to read the user's program data and a
이와같이 구성된 본 발명의 작용, 효과를 상세히 설명하면 다음과 같다.Referring to the operation, effects of the present invention configured as described above in detail.
먼저 외부에서 사용자가 수정발진기를 이용하여 타이밍 발생부(1)에 구성된 엔드게이트(AND1)의 일측입력단자에 클럭펄스(CLK)를 인가하고, 엔드게이트(AND1)의 타측 입력단자에는 마이컴으로부터 출력된 제어신호(CS)를 인가시키게되면 엔드게이트(AND1)는 이를 엔드화시켜 시프트레지스터(IC1)의 클럭단자(CLK)의 클럭펄스를 인가하게 되고, 엔드게이트(AND1)의 클럭펄스에 의해 동기된 시프트레지스터(IC1)는 제7도의 (a)내지 (g)와 같은 클럭펄스(S1~S7)를 순차적으로 발생하여 프로그램 카운터부(2)에 인가하게되며, 프로그램 카운터부(2)는 이를 순차적으로 카운트하여 그에 해당하는 어드레스를 발생시키게 된다.First, a user externally applies a clock pulse CLK to one input terminal of the end gate AND1 configured in the
이때 타이밍 발생부(1)의 시프트레지스터(IC1)에서 제7도의 (a)와 같은 클럭펄스(S1)가 발생되면 프로그램 카운터부(2)가 이를 카운트한 후 메모리부(3)의 해당 어드레스를 지정하여 그에 지정된 첫번째 1바이트(Byte)의 데이타를 읽어내고, 이렇게 읽혀진 1바이트의 데이타는 타이밍 발생부(1)에서 출력된 클럭펄스(S2)의 상승에지에 의해서 코드래치부(4)에 구성된 상위의 래치(IC3)에 래치되고, 또한 프로그램 카운터부(2)가 타이밍 발생부(1)에서 출력된 클럭펄스(S1)의 하강에지에서 어드레스를 지정한다. 이는 메모리부(3)의 두번째 어드레스와 세번째 어드레스에는 헛 데이타가 저장되어 있으므로 이 두개의 데이타를 건너뛰우기 위해서이다.At this time, if a clock pulse S1 such as (a) of FIG. 7 is generated in the shift register IC1 of the
그리고 타이밍 발생부(1)에서 클럭펄스(S3)가 출력되면 프로그램 카운터부(2)가 이를 카운트하여 메모리부(3)의 4번째 어드레스를 지정하여 그에 저장된 마지막 1바이트의 데이타를 읽어내고 이렇게 읽혀진 마지막 1바이트의 데이타를 타이밍 발생부(1)에서 출력된 클럭펄스(S4)의 상승에지에 의해서 코드래치부(4)에 구성된 하위의 래치(IC2)에 래치시킨 후 코드래치부(4)의 버퍼(IC4)(IC5)에 각각 저장함과 아울러 코드래치부(4)에 구성된 오아게이트(OR1)에 클럭펄스(S4)를 인가하여 오아랑한 후 버퍼(IC4)(IC5)를 인에이블시켜 여기서 출력된 데이타로 메모리부(3)의 해당 어드레스를 지정하고, 클럭펄스(S4)를 판독/기록신호 발생부(6)의 오아게이트(OR3)를 통해 메모리부(3)의 판독단자()에 인가시켜 그에 저장된 바로 이전의 스캔의 입력상태를 읽어내고 이렇게 읽혀진 데이타를 출력데이타 발생부(5)에 구성된 래치(IC6)에 래치시킨다. 이때 타이밍 발생부(1)에서 출력된 클럭펄스(S4)가 출력데이타 발생부(5)에 구성된 인버터게이트(I1)를 통해 반전되어 래치(IC6)를 동기시킴으로써 래치가 된다.When the clock pulse S3 is output from the
또한 타이밍 발생부(1)로부터 출력된 클럭펄스(S5)가 코드래치부(4)의 오아게이트(OR1)를 통해 버퍼(IC4)(IC5)를 인에이블 시키면 현재 래치(IC2)(IC3)를 통한 데이타가 메모리부(3)의 해당어드레스를 지정하게 되고, 아울러 판독/기록신호 발생부(6)의 오아게이트(OR4)를 통해 클럭펄스(S5)가 메모리부(3)의 기록단자()에 인가됨으로서 버퍼(IC4)(IC5)를 통한 현재 미분출력의 데이타가 메모리부(3)의 펄스 정보영역에 기록이 된다.In addition, when the clock pulse S5 output from the
한편 타이밍 발생부(1)에서 클럭펄스(S6)가 출력되면 이 신호는 코드래치부(4)의 오아게이트(OR1)를 통해 오아링된 후 버퍼(IC4)(IC5)를 인에이블시킨다. 따라서 클럭펄스(S2)(S4)에 의하여 래치(IC2)(IC3)에 래치된 데이타는 버퍼(IC4)(IC5)를 통해 메모리부(3)의 해당어드레스를 지정함과 아울러 클럭펄스(S6)가 판독/기록신호 발생부(6)의 오아게이트(OR3)를 통하여 메모리부(3)의 판독단자()에 인가되므로, 메모리부(3)에서는 비트정보의 내용이 출력되어 출력데이타 발생부(5)에 구성된 래치(IC7)에 래치된다.On the other hand, when the clock pulse S6 is output from the
이때 클럭펄스(S6)가 래치(IC7)의 클럭단자에 인가됨으로서 래치가 이루어지며, 아울러 프로그램 카운터부(2)는 어드레스를 하나 증가시켜 다음 명령어의 코드를 읽어낼 수 있도록 한다.At this time, the latch is performed by applying the clock pulse S6 to the clock terminal of the latch IC7, and the
마지막으로 타이밍 발생부(1)에서 클럭펄스(S7)가 출력되면 이 클럭펄스(S7)는 코드래치부(4)의 오아게이트(OR1)를 통해 버퍼(IC4)(IC5)를 인에이블 시키게 되고, 판독/기록신호 발생부(6)의 오아게이트(OR4)를 통해 메모리부(3)의 기록단자()에 인가하게 되는데 만일 클럭펄스(S7)의 상태에서 메모리부(3)가 미분 출력의 경우에 현재 미분출력 명령이 입력이 온된 상태면 클럭펄스(S4)에 의해 출력 데이타 발생부(5)의 래치(IC6)에 래치되어 있던 바와 이전 스캔의 입력정보가 반전되고, 비트선정부(IC8)에서 선정된 후 클럭펄스(S5)(S7)가 오아게이트(OR2)를 통해 인에이블 단자로 인가되는 버퍼(IC9)를 통해 메모리부(3)의 미분출력 비트에 쓰기동작을 행하게 되고, 오프 미분출력의 경우는 현재 미분출력의 입력이 오프된 상태일 경우 클럭펄스(S4)의 하강에지에서 래치된 내용을 비트선정부(IC8) 및 버퍼(IC9)를 통해 메모리부(3)에 쓰기 동작을 행한다.Finally, when the clock pulse S7 is output from the
이렇게 하여 미분출력 명령은 클럭펄스(S1~S7)까지 7개 상태의 하드웨어로직의 한 명령어를 처리하게 된다.In this way, the differential output command processes one instruction of hardware logic in seven states from clock pulses (S1 to S7).
이와같이 본 발명은 미분출력 명령을 7개의 상태로 분류하여 각 상태별 하드웨어로 처리함으로써 사용자의 프로그램이 많은 경우에 명령어의 처리시간을 줄여 보다 빠른 스캔타임을 얻을 수 있는 효과가 있다.As such, the present invention classifies the differential output command into seven states and processes the hardware for each state, thereby reducing the processing time of the instruction when the user program is large, thereby obtaining faster scan time.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019900009790A KR930005212B1 (en) | 1990-06-29 | 1990-06-29 | Command processing control circuit of plc |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019900009790A KR930005212B1 (en) | 1990-06-29 | 1990-06-29 | Command processing control circuit of plc |
Publications (2)
Publication Number | Publication Date |
---|---|
KR920001286A KR920001286A (en) | 1992-01-30 |
KR930005212B1 true KR930005212B1 (en) | 1993-06-16 |
Family
ID=19300663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019900009790A KR930005212B1 (en) | 1990-06-29 | 1990-06-29 | Command processing control circuit of plc |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR930005212B1 (en) |
-
1990
- 1990-06-29 KR KR1019900009790A patent/KR930005212B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR920001286A (en) | 1992-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0180196A2 (en) | Programmable counter/timer device | |
KR930005212B1 (en) | Command processing control circuit of plc | |
JPH05324452A (en) | External memory interface circuit | |
KR880000994B1 (en) | Microinstruction controlled data processor | |
KR870003503A (en) | Writing circuit for EPROM of microcomputer | |
JP3276205B2 (en) | Writing method of phase change type liquid crystal display | |
JPH079589B2 (en) | Electronic musical instrument | |
JPH0795269B2 (en) | Instruction code decoding device | |
JPS6410854B2 (en) | ||
JPS61249163A (en) | Wait cycle generating circuit | |
JP2523662B2 (en) | Memory access circuit | |
JPS636872B2 (en) | ||
JPH0799478B2 (en) | Electronic musical instrument | |
JP2892375B2 (en) | Pulse input device | |
JPH079280Y2 (en) | Stack circuit | |
JP2595992B2 (en) | Electronic musical instrument | |
SU1443141A1 (en) | Generator of pseudorandom sequences | |
JP2504974B2 (en) | Sequencer high-speed processing method | |
KR930003224B1 (en) | Processing system of plc command | |
JP3619629B2 (en) | Memory access time control device | |
JPS6319027B2 (en) | ||
JPS623458B2 (en) | ||
JPS6341895A (en) | Sequence control | |
JPS5853380B2 (en) | Program erase method | |
JPS61125669A (en) | Memory controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20040329 Year of fee payment: 12 |
|
LAPS | Lapse due to unpaid annual fee |