Apparatus for recognizing pulse signal
10110236 ยท 2018-10-23
Assignee
Inventors
Cpc classification
G05B2219/1176
PHYSICS
International classification
Abstract
The present disclosure relates to an apparatus for recognizing a pulse signal, and more particularly, to an apparatus for recognizing a pulse signal, which maintains the pulse signal being input for a scan time until an end time point of the scan time, and stores the pulse signal in a pulse signal storage area as pulse input data. The apparatus for recognizing a pulse signal according to one embodiment of the present disclosure includes a signal maintaining unit configured to maintain and output the pulse signal, which is input for the scan time, as a pulse maintaining signal; a signal transmission unit configured to receive the pulse maintaining signal from the signal maintaining unit and transmit the input pulse maintaining signal; and a control unit configured to output the transmission control signal to the signal transmission unit to receive and store the received pulse maintaining signal.
Claims
1. An apparatus for recognizing a pulse signal, which is input to a programmable logic controller (PLC) for a scan time, comprising: a signal maintaining unit configured to maintain and output the pulse signal, which is input for the scan time, as a pulse maintaining signal; a signal transmission unit configured to receive the pulse maintaining signal from the signal maintaining unit and transmit the input pulse maintaining signal based on a transmission control signal; a control unit configured to output the transmission control signal to the signal transmission unit to receive the pulse maintaining signal, and store the received pulse maintaining signal in a pulse signal storage area as pulse input data; and a signal delay unit configured to delay the pulse signal, which is input for the scan time, for a preset delay time and output the delayed pulse signal as a pulse delay signal, wherein the preset delay time is less than a pulse width of the pulse signal.
2. The apparatus of claim 1, wherein the control unit outputs the transmission control signal to the signal transmission unit before a preset transmission time from an end time point of the scan time, and a storing control signal at the end time point of the scan time.
3. The apparatus of claim 1, further comprising: a reset unit configured to output a reset signal, which resets an output of the signal maintaining unit, to the signal maintaining unit based on the transmission control signal and the storing control signal after the pulse input data is stored in the pulse signal storage area.
4. The apparatus of claim 1, wherein, when receiving the pulse delay signal, the signal maintaining unit maintains the pulse signal, which is input for the scan time, and outputs the maintained pulse signal as the pulse maintaining signal.
5. The apparatus of claim 1, wherein the pulse input data, which is stored in the pulse signal storage area for the scan time, is updated to the scan program at a start time point of a next scan time.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DETAILED DESCRIPTION
(10) The above and other objects, features, and advantages of the present disclosure will be described in detail with reference to the accompanying drawings, and therefore, the technical spirit of the present disclosure can be easily implemented by those skilled in the art. Also, in the following description of the present disclosure, if a detailed description of the known related art is determined to obscure the gist of the present disclosure, the detailed description thereof will be omitted. Hereinafter, preferred embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. In the drawing, the same reference numeral refers to the same or similar component.
(11)
(12) Referring to
(13) More particularly, the pulse signal input circuit C may maintain a non-conducting state using an optical coupler C-1 and then convert a pulse signal into a complementary metal-oxide semiconductor (CMOS) level when the pulse signal is input to the input terminal B for the scan time, thereby outputting the converted pulse signal to the apparatus 100 for recognizing a pulse signal.
(14) Here, the scan time refers to a time in which a micron process unit (MPU) of the PLC device begins to execute a scan program, which is programmed by a user, to terminate the execution of the scan program. That is, the MPU of the PLC device performs the scan program one time for the scan time, and then infinitely repetitively performs the scan program.
(15) To recognize a pulse signal being input for a pulse time, the apparatus 100 for recognizing a pulse signal includes a signal delay unit 110, a signal maintaining unit 120, a signal transmission unit 130, a control unit 140, and a reset unit 150.
(16) The signal delay unit 110 may delay a pulse signal P, which is input for a scan time, for a preset delay time to output the pulse signal P as a pulse delay signal Pd.
(17) More particularly, the signal delay unit 110 may delay and output the pulse delay signal Pd, which has a pulse width the same as that of the pulse signal P, by the preset delay time prior to a time in which the pulse signal P is input. Here, the preset delay time may be less than the pulse width of the pulse signal P. However, the present disclosure is not limited thereto and the preset delay time may be greater than the pulse width of the pulse signal P.
(18) The signal delay unit 110 according to one embodiment of the present disclosure may be a buffer gate.
(19)
(20) Referring to
(21) At this point, the signal delay unit 110 may output the pulse delay signal Pd at a time which is delayed by a preset delay time Td with respect to a time at which the pulse signal P is input.
(22) Thereafter, the signal maintaining unit 120 may maintain the pulse signal P, which is input for the scan time S, to output the maintained pulse signal P as a pulse maintaining signal Pm.
(23) More particularly, when receiving the pulse delay signal from the signal delay unit 110, the signal maintaining unit 120 may maintain the pulse signal P, which is input for the scan time S, to output the maintained pulse signal P as the pulse maintaining signal Pm.
(24) Meanwhile, the signal maintaining unit 120 according to one embodiment of the present disclosure may be a D flip-flop. When the signal maintaining unit 120 is a D flip-flop, it respectively receives the pulse signal P and the pulse delay signal Pd through a signal input terminal D and a clock terminal CLOCK, and outputs the pulse maintaining signal Pm through a signal output terminal Q.
(25) With reference to a truth table of the D flip-flop described in the following Table 1, the signal maintaining unit 120 will be described in detail.
(26) TABLE-US-00001 TABLE 1 INPUT OUTPUT SET RESET CLOCK DATA(D) Q H H H H H H
L L H H L X No Variance H H H X No Variance H H
X No Variance H L X X L
(27) The pulse signal P of a high level H is input to the signal input terminal D of the signal maintaining unit 120, and, after the preset delay time Td from a time when the pulse signal P is input, the pulse delay signal Pd changing from a low level L to a high level H is input to the clock terminal CLOCK.
(28) As shown in Table 1 with respect to the truth table of the D flip-flop, the signal maintaining unit 120 outputs a signal, which is input to the signal input terminal D at a time when a rising edge is input to the clock terminal CLOCK, to the signal output terminal Q, and maintains the signal until a signal of a low level L is input to the reset terminal RESET.
(29) Consequently, when the pulse signal P is input to the apparatus 100 for recognizing a pulse signal, the signal maintaining unit 120 outputs the pulse maintaining signal Pm of a high level H to the signal output terminal Q.
(30) That is, even when the pulse signal P is input a plurality of times to the apparatus 100 for recognizing a pulse signal for the scan time S, the signal maintaining unit 120 outputs the pulse maintaining signal Pm of a high level H from a time point when the pulse signal P is first input.
(31) Through such an operation, the signal maintaining unit 120 may maintain and output the pulse signal P, which is input for the scan time S, as the pulse maintaining signal Pm, thereby maintaining an input state of the pulse signal P, which is input for a time shorter than the scan time S, up to a time point at which the scan time S is terminated.
(32) The signal transmission unit 130 may receive the pulse maintaining signal Pm from the signal maintaining unit 120, and transmit the pulse maintaining signal Pm, which is input, to the control unit 140 based on a transmission control signal CS.
(33) That is, the signal transmission unit 130 may serve to transmit a signal by outputting a signal the same as the input signal based on the transmission control signal CS.
(34) Here, the transmission control signal CS is a signal which is output from the control unit 140 to the signal transmission unit 130 before a preset transmission time Tt from an end time point Te of the scan time S. Hereinafter, it will be described that a time point before the preset transmission time Tt from the end time point Te of the scan time S is a transmission time point Tt.
(35) Meanwhile, the signal transmission unit 130 according to one embodiment of the present disclosure may be a bus transceiver. When the signal transmission unit 130 is a bus transceiver, it respectively receives the pulse maintaining signal Pm and the transmission control signal CS through a signal input terminal A0 and an output enable terminal OE, and outputs the pulse maintaining signal Pm through a signal output terminal BO.
(36) With reference to a truth table of the bus transceiver described in the following Table 2, the signal transmission unit 130 will be described in detail.
(37) TABLE-US-00002 TABLE 2 INPUT INPUT/OUTPUT DIR OE An Bn H L INPUT B = A X H Z Z
(38) Before receiving the transmission control signal CS of a high level H from the control unit 140 through the output enable terminal OE, the signal transmission unit 130 does not transmit the pulse maintaining signal Pm, which is input to the signal input terminal AO, to the signal output terminal BO.
(39) Thereafter, the signal transmission unit 130 receives the transmission control signal CS of a low level L from the control unit 140 through the output enable terminal OE at the transmission time point Tt, and outputs the pulse maintaining signal Pm, which is input to the signal input terminal AO, to the signal output terminal BO.
(40) A pulse maintaining signal Pm, which is output from the signal transmission unit 130 to the control unit 140 by receiving the transmission control signal CS of a low level L from the control unit 140, is output to the control unit 140 until the transmission control signal CS of a high level H is input to the output enable terminal OE from the control unit 140.
(41) As described above, to receive the pulse maintaining signal Pm from the signal transmission unit 130, the control unit 140 outputs the transmission control signal CS of a low level L to the output enable terminal OE at the transmission time point Tt.
(42) At this point, the control unit 140 may receive the pulse maintaining signal Pm through a data bus, and may store the pulse maintaining signal Pm, which is read from the data bus and is transmitted, in a pulse signal storage area as pulse input data Pi.
(43) For this, the control unit 140 may output a storing control signal RD to store the pulse maintaining signal Pm, which is transmitted, in the pulse signal storage area as the pulse input data Pi.
(44) More particularly, to receive the pulse maintaining signal Pm, the control unit 140 may output the storing control signal RD of a low level L after outputting the transmission control signal CS of a low level L, and then may output the storing control signal of a high level H at an end time point Te of the scan time S.
(45) The control unit 140 stores the pulse maintaining signal Pm, which is transmitted at a time point when the storing control signal RD of a high level H is output, in the pulse signal storage area as the pulse input data Pi.
(46) Through such an operation, the control unit 140 may store the pulse maintaining signal Pm, which is transmitted at the end time point Te of the scan time S, in the pulse signal storage area as the pulse input data Pi, thereby recognizing the pulse signal P without suspending the scan program whenever the pulse signal P is input.
(47) Meanwhile, after storing the transmitted pulse maintaining signal Pm as the pulse input data Pi, the control unit 140 outputs the transmission control signal CS of a high level H to the output enable terminal OE of the signal transmission unit 130 so as to block an output of the signal transmission unit 130.
(48) At this point, the transmission control signal CS and the storing control signal RD, which are output from the control unit 140, may be output to the reset unit 150, which will be described below, in addition to the signal transmission unit 130.
(49) After the pulse input data Pi is stored in the pulse signal storage area, the reset unit 150 may output a reset signal R based on the transmission control signal CS and the storing control signal RD, thereby resetting an output of the signal maintaining unit 120.
(50) For this, the reset unit 150 according to one embodiment of the present disclosure may include a first NOT gate 151, a NAND gate 152, a second NOT gate 153, and an AND gate 154.
(51) By describing a circuit connection of such a reset unit 150, the first NOT gate 151 receives the transmission control signal CS and inverts and outputs a signal level thereof to the NAND gate 152. By describing a circuit connection of such a reset unit 150, the first NOT gate 153 receives the transmission control signal CS and inverts and outputs a signal level thereof to the NAND gate 154.
(52) The AND gate 154 receives and performs an AND operation on the storing control signal RD and an output signal of the second NOT gate 153 to output the operation result to the NAND gate 152. Lastly, the NAND gate 152 receives and performs a NAND operation on outputs of the first NOT gate 151 and the AND gate 154 to output the operation result to the reset terminal RESET of the signal maintaining unit 120 as the reset signal R.
(53)
(54) Referring to
(55) As described above, after outputting the transmission control signal CS of a low level L, the control unit 140 outputs the storing control signal RD of a low level L. At this point, the second NOT gate 153 and the AND gate 154 receive the storing control signal RD of a low level L. The second NOT gate 153 receives the storing control signal RD of a low level L from the control unit 140 and inverts a signal level of the storing control signal RD to output the storing control signal RD of the inverted signal level to the AND gate 154. At this point, as shown in
(56) Through such an operation, the AND gate 154 outputs a signal of a low level L to the NAND gate 152 until the end time point Te of the scan time S, at which the storing control signal RD of a high level is output from the control unit 140, and the NAND gate 152 outputs the reset signal R of a high level H to the reset terminal RESET of the signal maintaining unit 120 until the end time point Te of the scan time S.
(57) Consequently, the signal maintaining unit 120 receives a signal of a high level H through the reset terminal RESET until the end time point Te of the scan time S and outputs the pulse maintaining signal Pm according to the signals input to the signal input terminal D and the clock terminal CLOCK as shown in the truth table.
(58) Thereafter, to store the transmitted pulse maintaining signal Pm in the pulse signal storage area as the pulse input data Pi, the control unit 140 outputs the storing control signal RD of a high level H at the end time point Te of the scan time S, and then outputs the transmission control signal CS of a high level H.
(59) The AND gate 154 receives the storing control signal RD of a high level H and the signal of a low level L, which is not yet inverted into a high level H in the second NOT gate 153, to output a signal of a high level H to the NAND gate 152.
(60) The control unit 140 outputs the transmission control signal CS of a low level L at the end time point Te of the scan time S so that the first NOT gate 151 outputs a signal of a high level H to the NAND gate 152.
(61) Consequently, the NAND gate 152 receives only the signal of a high level H at the end time point Te of the scan time S to perform the NAND operation so that it outputs a signal of a low level L as the reset signal R.
(62) As shown in
(63) Afterward, the MPU of the PLC device may execute a scan program by updating the scan program, which is scheduled to be executed for the next scan time S, with the scan input data Pi stored in the scan signal storage area for the scan time S.
(64)
(65) Referring to
(66) Consequently, the control unit 140 according to another embodiment of the present disclosure may be provided with a reset output port PR and a transmission control output port PC which correspond to the GPIO port. More particularly, the reset output port PR provided at the control unit 140 may be connected to the reset terminal RESET of the signal maintaining unit 120 to output the reset signal R, thereby resetting an output of the signal maintaining unit 120.
(67) Through such an operation, the apparatus 100 for recognizing a pulse signal according to another embodiment of the present disclosure may reset the output of the signal maintaining unit 120 at the end time point Te of the scan time S without having the reset unit 150.
(68) Also, the transmission control output port PC provided at the control unit 140 may be connected to the output enable terminal OE of the signal transmission unit 130 to output the transmission control signal CS, thereby receiving the pulse maintaining signal Pm from the signal transmission unit 130.
(69)
(70) Referring to
(71) At this point, the signal delay unit of the apparatus for a pulse signal delays a pulse signal, which is input for the scan time, to output the delayed pulse signal as a pulse delay signal, and, when the pulse delay signal is input, the signal maintaining unit maintains and outputs the input pulse signal as a pulse maintaining signal until an end time point of the scan time.
(72) Thereafter, the signal transmission unit receives the transmission control signal from the control unit at a transmission time point and transmits the pulse maintaining signal, which is output from the signal maintaining unit, to the control unit, and the control unit outputs the storing control signal at the end time point of the scan to store the pulse maintaining signal, which is transmitted, in the pulse signal storage area as the pulse input data.
(73) Lastly, the MPU updates a scan program, which is scheduled to be executed for a next scan time, with the pulse input data stored in the pulse signal storage area and completes one time scan in Operation S103.
(74) As described above, when a pulse signal is input for the scan time, the PLC device provided with the apparatus 100 for a pulse signal may recognize the pulse signal without suspending the scan program, which is currently executed, to update a scan program, which is scheduled to be executed for the next scan time, with the recognized pulse signal.
(75) Through such an operation, the present disclosure may maintain and output the pulse signal, which is input for the scan time, as the pulse maintaining signal so that an input state of a pulse signal, which is input for a time shorter than the scan time, may be maintained up to a time point at which the scan time is terminated.
(76) Also, the present disclosure may store the pulse maintaining signal in the pulse signal storage area as the pulse input data at a termination time point of the scan time so that a pulse signal may be recognized without suspending of a scan program whenever the pulse signal is input.
(77) It should be understood that various substitutions, modifications, and alternations can be derived by those skilled in the art without departing from the technical spirit of the present disclosure and the present disclosure is not limited to the above described embodiments and the accompanying drawings.