Description of drawings
Fig. 1 is that the integral body of apparatus of the present invention connects block diagram;
Fig. 2 is rectangular array scanning buffer memory driving circuit 102, direct-current voltage reducing circuit 101 and subtending port circuit 105 schematic diagrams in apparatus of the present invention;
Fig. 3 is row matrix signal read circuits 104 schematic diagrams in apparatus of the present invention;
Fig. 4 is matrix logic circuit 103 schematic diagrams in apparatus of the present invention;
Fig. 5 is first and the 8th group a schematic diagram in the signal input circuit 106 in apparatus of the present invention;
Fig. 6 is the sequential control synoptic diagram of rectangular array control signal of the present invention.
Among the figure, 101. direct-current voltage reducing circuits, 102. rectangular arrays scanning buffer memory driving circuit, 103. matrix logic circuit, 104. row matrix signal read circuits, 105. subtending port circuit, 106. signal input circuits,
In addition, R1, R2 ... R203 representes each resistance respectively;
OU1, OU2 ... OU20 representes each photoelectrical coupler respectively;
NA1, NA2, NA3, NA4 ... NA16 representes each Sheffer stroke gate device respectively;
U1 seals in and the chip that goes out to be shifted;
DI1, DI2 ... DI64 representes the input terminal of each digital quantity signal respectively;
DO1, DO2 ... DO8 representes the batch lead-out terminal of collection point signal respectively;
F1, F2 ... The row output signal of F8 difference representing matrix column scan circuit 104 and the tie point of matrix logic circuit 103;
Q0, Q2 ... The tie point of Q7 difference representing matrix column scan buffer memory driving circuit 102 and matrix logic circuit 103;
P11, P12 ... The tie point of capable signal read circuits 104 of P88 difference representing matrix and signal input circuit 106;
PWR is the 24V power end, and SI, SCK, CLR be the serial data signal of control end respectively, displacement control signal and buffer, register clear signal;
SRCK, SER, QH, RCK, Cache and Q0-Q7 refer to the signal of shift pulse signal, serial data signal, latch pulse signal, serial data output end signal, offset buffer signal and the delivery outlet of 74HC595 respectively.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is elaborated.
With reference to Fig. 1; Matrix form digital quantity signal collector structure of the present invention is; The output terminal of direct-current voltage reducing circuit 101 is connected with signal input circuit 106 with rectangular array scanning buffer memory driving circuit 102, matrix logic circuit 103, row matrix signal read circuits 104 respectively simultaneously; An output terminal of rectangular array scanning buffer memory driving circuit 102 is connected with subtending port circuit 105; Another output terminal of rectangular array scanning buffer memory driving circuit 102 is connected with matrix logic circuit 103, and the output terminal of signal input circuit 106 is connected with matrix logic circuit 103, and the output terminal of matrix logic circuit 103 is connected with row matrix signal read circuits 104.
The 24V voltage that direct-current voltage reducing circuit 101 is used for actual condition is the 5V voltage of logical device needs through DC converter DC-DC step-down, the 5V voltage of exporting is linked into each logical device feeder ear, for each logical device is supplied power.
Rectangular array scanning buffer memory driving circuit 102 is made up of the shifting cache chip for driving and the current-limiting resistance of photoelectric coupled device and one 8 bit serial input and line output, and column selection sequence and control signal are through isolating and reverse back access shifting cache chip for driving.
Row matrix signal read circuits 104 is made up of photoelectrical coupler and current-limiting resistance; The output of gate circuit is arranged according to row; The parallelly connected respectively input end subtending port that is linked into the photoelectric isolating device of capable signal output then of each row; Be a mouthful process photoelectricity coupling to be shifted out in the serial of shifting cache chip for driving guide to lead-out terminal, be used for the column scan signal input of next collector of cascade.
Signal input circuit 106 is realized by photoelectric coupled device and current-limiting resistance, is isolated the input end that the matrix logic circuit is received in output respectively.
With reference to Fig. 2, be the circuit structure of rectangular array scanning buffer memory driving circuit 102, direct-current voltage reducing circuit 101 and subtending port circuit 105.Direct-current voltage reducing circuit 101 is driving circuit 102 and 105 power supplies of subtending port circuit; Direct-current voltage reducing circuit 101 wherein comprises DC-DC; The DC-DC input end is connected with the 24V power supply with PRW simultaneously, and the DC-DC output terminal is connected with the 5V power supply, and DC-DC also is provided with earth terminal.
Subtending port circuit 105 wherein comprises that two resistance (R9, R10) and photoelectric coupled device OU2 form, and the output terminal of photoelectric coupled device OU2 input side is connected with resistance R 9, and the input end of OU2 input side is connected with the 5V power supply; The direct ground connection of output terminal of photoelectric coupled device OU2 outgoing side, the input end of OU2 outgoing side is connected with Q7 ' terminal with resistance R 10, and resistance R 10 is connected with the 24V power supply again.
Rectangular array scanning buffer memory driving circuit 102 comprises shifting cache chip for driving U1 (model is 74HC595) and a plurality of current-limiting resistance of 1 photoelectric coupled device OU1 (model is TLP521-4), 8 bit serial input and line output.Signal end CLR wherein, SI are connected with the input end of the upper and lower road input side of photoelectrical coupler OU1 respectively; Signal end SCK is connected with the input end of middle the two-way input side of photoelectrical coupler OU1 simultaneously, the output terminal of four road input sides of OU1 contact separately behind the resistance (being respectively R1, R2, R3, R4) distinguish ground connection again; The 5V voltage end is contacted respectively and is inserted three input ends of the signal outgoing side of photoelectrical coupler OU1 behind the resistance (being respectively R5, R6, R7) separately, and the 5V voltage end is direct the 4th input end of the signal outgoing side of access photoelectrical coupler OU1 in addition; The input end of the OU1 outgoing side that CLR is corresponding is connected with the SRCLR pin of U1; SCK wherein one tunnel corresponding OU1 outgoing side input end is connected with the RCK pin of U1; SCK other one tunnel corresponding OU1 outgoing side input end is connected with the SRCK pin of U1; The OU1 outgoing side output terminal that SI is corresponding is connected with the SER pin of U1 through resistance R 8, and the pin VCC of U1 is connected with the 5V power supply; The pin of U1 also comprises eight output terminal Q0 to Q7, and the Q7 ' pin of U1 is connected with input end of OU2 with resistance R 9 series connection backs and isolates the OE pin ground connection of U1.
Above-mentioned circuit carries out electrical isolation through OU1 to CLR, SCK, SI, accomplishes simultaneously CLR, SCK negate, and the high level through control end is accomplished the control that resets of U1 low level, and the output latch of accomplishing displacement and latch through SCK is simultaneously controlled.Through the pulse signal of input SI, import shift pulse then successively, the selection signal of high level just can appear to Q7 at output terminal Q0 successively; Continue to move; Maintenance SI is a low level, and then Q1 just can obtain lowly entirely to Q7, and high level moves to Q7 '; Treat as the SI input signal of another capture card, thereby realized the function of cascade increase-volume.
With reference to Fig. 3, row matrix signal read circuits 104 circuit structures are, comprise that 2 photoelectrical couplers (OU3 and OU4) (model is TLP521-4) form, and wherein 8 input ends of two photoelectrical couplers (OU3 and OU4) input side all directly are connected with the 5V power supply; 8 output terminals of two photoelectrical couplers (OU3 and OU4) input side respectively with a F1, F2 ... F8 is corresponding to be connected; 8 input ends of two photoelectrical couplers (OU3 and OU4) outgoing side are connected with the 24V power supply respectively; 8 output terminals of two photoelectrical couplers (OU3 and OU4) outgoing side respectively with batch lead-out terminal DO0, DO1 ... DO7 is corresponding to be connected.
As F1, F2 ... When low level appearred in F8, two photoelectrical couplers (OU3 and OU4) were switched on, and made its corresponding outgoing side output terminal the 24V high level occur.Control array selecting signal, just can collect the signal of respective column in batches.
With reference to Fig. 4, the circuit structure of matrix logic circuit 103 is that each row comprises 242 input nand gate devices (model is 74SL24); 8 row amount to 16 (NA1 among the figure, NA2 ... NA16), each the Sheffer stroke gate device in every row, wherein one road input end is connected respectively to column select circuit (Q0, Q1 ... Q7); Another road input end be connected respectively to input signal Pxy (wherein x represent row; Value is 1-8, and y representes the position of every row, and same value is 1-8); The output terminal of each Sheffer stroke gate device is connected respectively behind the resistance to connect together according to row value and is outputed to Fy (wherein y representes the position of every row, and value is 1-8 equally).
As Q0, Q1 ... When Q7 is high level; With Q0, Q1 ... The Q7 value of the input signal Pxy of Sheffer stroke gate device altogether oppositely is mapped to F1, F2 ... F8 is last, promptly works as any Qn (n is 0 to 7) for high, representes that the n row are selected; As Pnx when being high; Correspondence is output as low, and the corresponding resistance that connects is pull down resistor, the high level of exporting in all the other each row is also all drawn be low level; As Pnx when being high, outputs of all the other each row are invalid, are always high level, so show high level input, F1, F2 in elected ... The effective low level of the last output of F8.
With reference to Fig. 5; Signal input circuit 106 circuit structures are; Comprise 16 photoelectrical couplers (OU5, OU6 ... OU19, OU20) (selecting for use model to be TLP521-4) connect to form with the corresponding a plurality of current-limiting resistances (R75, R76...R202) that are connected; The size that is limited to accompanying drawing only demonstrates part-structure among the figure.Signal input terminal DI0, DI2 ... The every tetrad of DI63 is directly connected to each photoelectrical coupler (OU5, OU5 ... OU19, OU20) the input end of input side; The output terminal of each photoelectrical coupler input side directly ground connection of a resistance (being respectively R75, R2, R3, R138) back of connecting respectively; Each photoelectrical coupler (OU5, OU5 ... OU19, OU20) the input end of outgoing side be connected with the 5V power supply respectively, the output terminal of each the photoelectrical coupler outgoing side resistance of contacting respectively (is respectively R139, R140 ... R201, R202) after separately with row matrix signal read circuits 104 tie point P11, P12 with signal input circuit 106 ... P88 connects.
With reference to Fig. 6, be the control timing of shifting cache chip for driving U1 (74HC595), SRCK, SER are directly obtained through OU1 by input control signal, and SRCLR is obtained through photoelectrical coupler OU1 by CLR.In first cycle, import 1, rising edge appears in the middle of the one-period in SRCK, deposits the data of SER in buffer first buffering position; First end cycle; Negative edge appears in SRCK, and rising edge appears in the pulse RCK that deposits, and the QO mouth of collector is output as high level; Choose first row, the DO mouth of collector just obtains the signal of first row (DI0-DI7); In second period SI input 0,1 of beginning is displaced to second, and then selected secondary series this moment, and the DO mouth just obtains the signal of secondary series (DI8-DI15), and then 3-8 cycle imports 0, the data that are followed successively by (DI16-DI63) that obtain again; As required, in the displacement of not accomplishing 8 cycles, reset through SCLR and to accomplish the scanning in the specified scope from new scan round.
During cascade, with DO mouth, SRCK, CLR, the parallel connection of each matrix form digital quantity signal collector, Q7 ' connects with SI, increases the train of impulses (cycle period) of scanning then, realizes the signals collecting of each point.So scan round is read in controller step by step with the signal of all accesses.
Matrix form digital quantity signal collector of the present invention pursues the signal that current scan line is read in column scan through the matrix circulation, and the mode that reads in batches realizes the digital data acquisition function of few IO mouth multiple spot.Direct-current voltage reducing circuit is the TTL voltage that logical device needs with the voltage step-down of actual condition, and output is linked into each logical device feeder ear; Gating matrix array selecting signal buffer clear signal CLR, matrix array selecting signal SI and shift pulse signal SCK are connected on the column selection driver after isolating through photoelectricity, and rectangular array selects the output of driver to be connected to the column circuits of matrix logic; The signal input is connected to rectangular array through signal isolation circuit; Output to the row of appointment then by row, be connected to the row matrix signal read circuits, the other end of row signal is directly received lead-out terminal; As long as capable signal DO mouth, SCLR, parallel connection with each matrix form digital quantity signal collector; Serial ports shifts out signal Q7 ' series connection, increases the cycle period of scanning, can realize the function of increase-volume.
In other words; Matrix form digital quantity signal collector of the present invention; Utilize the array selecting signal of the 3DO gating matrix column scan buffer memory driving circuit 102 of controller; Selecteed row are delivered to row matrix signal read circuits 104 with signal by row through matrix logic circuit 103, and the 8DI of controller reads the signal of current selection row, and the mode through the scan round rectangular array is reading of data in batches; The control signal of the capable signal of matrix logic circuit 103 and rectangular array scanning buffer memory driving circuit 102 has been formed subtending port circuit 105; Thereby through cascade can realize 128 points, 192,256 in addition more reading of multiple spot number practice thrift input channel greatly, simplify field wiring; The employing photoelectric coupled device is isolated, and has realized the electrical isolation of signal, has guaranteed the security of system.
Adopt this collector can improve the input port service efficiency of controller, significantly reduce and import the configuration of counting, wiring is reduced for distributed capture in the limited space of practicing thrift controller, and low cost solution is provided; Control interface is open, and controller is not had the bus resource requirement, uses flexibly.