WO2024012254A1 - Industrial signal acquisition and triggering system and method - Google Patents

Industrial signal acquisition and triggering system and method Download PDF

Info

Publication number
WO2024012254A1
WO2024012254A1 PCT/CN2023/104535 CN2023104535W WO2024012254A1 WO 2024012254 A1 WO2024012254 A1 WO 2024012254A1 CN 2023104535 W CN2023104535 W CN 2023104535W WO 2024012254 A1 WO2024012254 A1 WO 2024012254A1
Authority
WO
WIPO (PCT)
Prior art keywords
pin
capacitor
module
resistor
trigger
Prior art date
Application number
PCT/CN2023/104535
Other languages
French (fr)
Chinese (zh)
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 上海电子信息职业技术学院
Publication of WO2024012254A1 publication Critical patent/WO2024012254A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the invention relates to the technical fields of industrial automatic control and modern detection, and specifically to an industrial signal acquisition and triggering system and method.
  • the current industrial signal acquisition system has problems such as fewer acquisition channels, complex parameter modification, poor human-computer interaction, and single acquisition mode. These problems will affect product quality, difficulty in training technical personnel, and system portability.
  • the purpose of the present invention is to provide an industrial signal acquisition and triggering system and method to solve the problems of fewer signal acquisition channels, complex parameter modification, poor human-computer interaction, and single acquisition mode in the modern industrial production process proposed in the above background technology. etc. And issues such as product quality that are affected by these situations.
  • an industrial signal acquisition and triggering system and method including a single-chip computer module of the main control board, at least including a control chip; a data receiving and conversion module, which is connected to the single-chip computer module of the main control board. Connection, used for data reception and conversion of analog signals into digital signals, and sending digital signals to the microcontroller module of the main control board.
  • the data reception and conversion module at least includes an analog signal to digital signal conversion chip; a signal acquisition and processing module, and The data reception and conversion module is connected to collect industrial signals from various industrial sensors; the trigger module is connected to the microcontroller module and the signal acquisition and processing module of the main control board and is used to collect and output trigger signals; and the display module , connected to the microcontroller module of the main control board, used for displaying information and human-computer interaction.
  • the microcontroller module of the main control board also includes a clock circuit, a working status indicator light, a power supply, a download interface, a reset circuit, a memory chip, and a filter circuit, all of which are connected to the control chip.
  • the memory chip is 24C1024, and the control chip is C8051F120.
  • the analog signal to digital signal conversion chip is ADS8365, which is used to improve the acquisition accuracy and communicate directly with the microcontroller.
  • Control chip pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 39, pin 40, pin 41, pin 42 , pin 43, pin 44, pin 45, and pin 46 respectively correspond to pin 33, pin 34, pin 35, pin 36, pin 37, and pin 38 of the analog signal to digital signal conversion chip.
  • Pin 39, pin 40, pin 41, pin 42, pin 43, pin 44, pin 45, pin 46, pin 47, and pin 48 are connected.
  • the data receiving and conversion module also includes capacitor C37, capacitor C38, capacitor C39, capacitor C40, capacitor C41 and resistor R14.
  • One end of the capacitor C37 is connected to ground, and the other end is connected to the +5V power supply.
  • One end of the capacitor C38 is connected to ground, and the other end is connected to the +5V power supply.
  • Capacitor C39 and capacitor C40 are connected in parallel to capacitor C41, one end is connected to pin 61 and pin 62 of the analog signal to digital signal conversion chip, the other end is connected to one end of resistor R14, and the other end of resistor R14 is connected to ground.
  • the signal acquisition and processing module includes four signal processing sub-modules and signal input terminals of the same design.
  • One of the signal processing sub-modules includes the operational amplifier OPA2227, resistors R15, R16, R17, R18, R19, R20, R21, capacitors C44, C45 and C46.
  • One end of the resistor R17 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 2 of the operational amplifier OPA2227.
  • One end of the resistor R18 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to the IN0 port of the signal input terminal.
  • resistor R19 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to pins 6 and 7 of the operational amplifier OPA2227.
  • One end of resistor R20 is connected to pin 6 and pin 7 of operational amplifier OPA2227, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, capacitor C44 and capacitor C46.
  • One end of the resistor R21 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, capacitor C45 and capacitor C44.
  • One end of resistor R15 is connected to ground, and the other end is connected to resistor R16.
  • resistor R16 is connected to resistor R15, and the other end is connected to pin 2 of operational amplifier OPA2227.
  • One end of the capacitor C44 is connected to ground, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor C21.
  • One end of the capacitor C46 is connected to ground, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor R20.
  • the trigger module includes a trigger collection sub-module, a trigger-controlled microcontroller sub-module and a trigger-controlled trigger output sub-module.
  • the trigger collection sub-module is connected to the microcontroller module of the main control board, and the trigger output sub-module of trigger control is connected to the trigger control microcontroller sub-module and the trigger collection sub-module.
  • the trigger acquisition sub-module includes 4 trigger acquisition devices of the same design and 4 trigger signal input terminals.
  • the trigger signal input terminal is a 0-5V pulse signal input port.
  • One of the trigger acquisition devices includes the first optocoupler isolator PC817.
  • capacitor C27, capacitor C28, resistor R6, resistor R7 one end of the capacitor C27 is connected to pin 3 of the first optocoupler isolator PC817 and ground, and the other end is connected to pin 4 of the first optocoupler isolator PC817, resistor R6 and Control chip pin 98
  • one end of capacitor C28 is connected to pin 2 of the first optocoupler isolator PC817 and pin 1 of the trigger signal input terminal, and the other end is connected to pin 1 of the first optocoupler isolator PC817 and resistor R7
  • one end of the resistor R6 is connected to the 3.3V power supply
  • one end of the resistor R7 is connected to pin 1 of the first optocoupler isolator PC817
  • the other end is connected to the 5V power supply.
  • the trigger-controlled microcontroller sub-module includes microcontroller STC12C5A60S2, capacitor C5, resistor R1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, crystal oscillator X1.
  • One end of capacitor C5 is connected to the power supply VCC, and the other end is connected to resistor R1 and the pin of the microcontroller STC12C5A60S2. 9.
  • One end of resistor R1 is connected to capacitor C5 and pin 9 of microcontroller STC12C5A60S2. The other end is connected to ground.
  • Capacitor R1 and capacitor R2 are connected in parallel. One end is connected to power supply VCC and pin 40 of microcontroller STC12C5A60S2. The other end is connected to ground and one end of capacitor C3.
  • the trigger output sub-module of trigger control includes four trigger output devices of the same design connected in parallel.
  • the trigger output device includes an optocoupler isolator PC817C, a resistor R3, and a resistor R21.
  • One end of the resistor R3 is connected to the power supply VCC, and the other end is connected to the optocoupler isolator.
  • the No. 1 pin of PC817C and the No. 2 trigger signal input pin of the optocoupler isolator PC817C are connected to the pin 3 of the microcontroller STC12C5A60S2.
  • One end of the resistor R21 is connected to the No.
  • the display module is a touchable DWIN LCD display, and its main control chip is DWIN K600+, which is used for image and data processing.
  • the touchable DWIN LCD display includes a processing chip sub-module.
  • the processing chip sub-module includes capacitor C33, capacitor C34, capacitor C35, capacitor C36, microcontroller MAX3232ECPE, port P5 and port P6.
  • One end of the capacitor C33 is connected to pin 1 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE.
  • One end of the capacitor C36 is connected to pin 4 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE.
  • one end of capacitor C34 is connected to capacitor C35 and ground, the other end is connected to pin 2 of microcontroller MAX3232ECPE, one end of capacitor C35 is connected to capacitor C34 and ground, the other end is connected to pin 6 of microcontroller MAX3232ECPE, the microcontroller MAX3232ECPE Pin No. 7 is connected to pin No. 3 of port P6, and pin No. 8 of the microcontroller MAX3232ECPE is connected to pin No. 3 of port P6.
  • the alarm module is connected to the microcontroller module of the main control board and generates an alarm signal when the measured signal exceeds the set limit; the power module is used to power each module.
  • the alarm module includes the second optocoupler isolator PC817, capacitor C35, capacitor C36, resistor R14, resistor R15, resistor R16, diode 1N4148, two-way relay, NPN transistor 8050, PNP transistor 8550, resistor R17, resistor R18, LED light 6 and passive buzzer, one end of capacitor C35 is connected to pin 1 of the second optocoupler isolator PC817 and the +5V power supply, the other end is connected to pin 2 of the second optocoupler isolator PC817, and one end of capacitor C36 Connect pin 3 of the optocoupler isolator PC817 and ground, the other end is connected to pin 4 of the second optocoupler isolator PC817, one end of the resistor R14 is connected to pin 93 of the control chip, and the other end is connected to the second optocoupler isolator PC817 Pin 2, one end of the resistor R15 is connected to the +5V power supply, the other end
  • the power module includes a 24V input sub-module, a 12V voltage conversion sub-module, two 5V voltage conversion sub-modules with the same design, and a 24V to ⁇ 9V sub-module.
  • the 24V input submodule includes input terminal J1, fuse F1, capacitor C1, and current filter T1. One end of fuse F1 is connected to pin 2 of input terminal J1, and the other end is connected to pin 1 of current filter T1.
  • the No. 1 pin of the input terminal J1 is connected to the No. 4 pin of the current filter T1
  • one end of the capacitor C1 is connected to the No. 2 pin of the current filter T1 and the 24V power supply, and the other end is connected to the No. 3 pin of the current filter T1. pin and ground.
  • the 12V voltage conversion sub-module includes electrolytic capacitor C28, capacitor C3, voltage conversion module U1, electrolytic capacitor C4, capacitor C5, light-emitting diode VD1, resistor R1.
  • the positive electrode of electrolytic capacitor C2 is connected to capacitor C3, +24V power supply and voltage conversion module U1. Pin No. 2, the negative electrode is connected to capacitor C3, ground and pin No. 1 of voltage conversion module U1.
  • the positive electrode of electrolytic capacitor C4 is connected to capacitor C5, +12V power supply, pin No. 3 of voltage conversion module U1 and the positive electrode of light-emitting diode VD1.
  • the negative electrode is connected to the capacitor C5, ground, pin 4 of the voltage conversion module U1 and the resistor R1.
  • the other end of the resistor R1 is connected to the negative electrode of the light-emitting diode VD1.
  • the 5V voltage conversion sub-module includes electrolytic capacitor C6, capacitor C7, voltage conversion module U2, electrolytic capacitor C8, capacitor C9, light-emitting diode VD2 and resistor R2.
  • the positive electrode of electrolytic capacitor C6 is connected to capacitor C7, +24V power supply and voltage conversion module U2. Pin No. 2, the negative electrode is connected to capacitor C7, ground, and pin No. 1 of voltage conversion module U2.
  • the positive electrode of electrolytic capacitor C8 is connected to capacitor C9, +12V power supply, pin No. 3 of voltage conversion module U2, and light-emitting diode VD2.
  • the positive and negative electrodes are connected to capacitor C8, ground, pin 4 of voltage conversion module U2 and resistor R2.
  • the other end of resistor R2 is connected to the negative electrode of light-emitting diode VD2.
  • the 24V to ⁇ 9V sub-module includes electrolytic capacitor C14, capacitor C11, voltage conversion module U4, electrolytic capacitor C16, capacitor C17, electrolytic capacitor C20, capacitor C21, light-emitting diode VD4, resistor R4, light-emitting diode VD5 and resistor R5, electrolytic capacitor C14
  • the positive electrode is connected to capacitor C11, +24V power supply and pin 1 of voltage conversion module U4, the negative electrode is connected to capacitor C11, ground and pin 2 of voltage conversion module U4, the positive electrode of capacitor C16 is connected to capacitor C17, +9V power supply, and light
  • the anode of diode VD4 is connected to pin 6 of voltage conversion module U4, and the cathode is connected to the anode of electrolytic capacitor C20, capacitor
  • Electrolytic resistor C20 It is connected to resistor R21, -9V power supply and the cathode of light-emitting diode VD5.
  • Resistor R5 is connected to the anode of light-emitting diode VD5.
  • Resistor R4 is connected to the anode of light-emitting diode VD4.
  • Step 1 set parameters through the display module; Step 2, the trigger module sends a trigger signal; Step 3, the signal acquisition and processing module performs processing on the acquisition channel after receiving the trigger signal. Data acquisition; Step 4, the signal acquisition and processing module sends the processing results to the data receiving and conversion module and converts them into digital signals, and the digital signals are sent to the microcontroller module of the main control board; Step 5, the processed data is displayed on the display module .
  • the industrial signal acquisition and triggering system of the present invention involves industrial signal detection, acquisition, processing and can generate specific trigger signals according to acquisition requirements. It can collect four different types of industrial standard output (voltage, current) transmitters , processing and display, using a touchable industrial-grade display to achieve good human-computer interaction and reduce the difficulty of parameter modification, and improve the portability of the system; it can simulate various industrial control trigger signals, and 16 trigger modes can be selected , the trigger speed is adjustable, and the trigger frequency, trigger time, trigger interval time parameters can also be adjusted, the upper limit of the collected signal can be set, and when the measured signal exceeds the set limit, an alarm signal is generated and recorded;
  • the industrial signal acquisition and triggering system of the present invention sets password protection to prevent specific parameters from being maliciously tampered with. Only if the password is correct can the specific parameters be modified to ensure the security of key parameters.
  • Specific parameters include sensor specifications, reference parameters, overload values, and calibration coefficients.
  • the control terminal can display the real-time signal collection size in real time. Multi-channel acquisition is set up, and the parameters of each channel can be set independently. Each channel is independent and the channels will not affect each other.
  • Figure 1 is a schematic diagram of an industrial signal acquisition and triggering system in an embodiment of the present invention
  • Figure 2 is a circuit diagram of the microcontroller module of the main control board in the embodiment of the present invention.
  • Figure 3 is a circuit diagram of the data receiving and conversion module in the embodiment of the present invention.
  • Figure 4 is a circuit diagram of a signal acquisition and processing module in an embodiment of the present invention.
  • Figure 5 is a logical flow chart of data collection and processing in the embodiment of the present invention.
  • Figure 6 is a circuit diagram of the alarm module in the embodiment of the present invention.
  • Figure 7 is a circuit diagram of the trigger collection sub-module in the embodiment of the present invention.
  • Figure 8 is a circuit diagram of a trigger controlled microcontroller sub-module in an embodiment of the present invention.
  • Figure 9 is a circuit diagram of a trigger output sub-module of trigger control in an embodiment of the present invention.
  • FIG. 10 is a logic flow diagram of the trigger module in the embodiment of the present invention.
  • Figure 11 is a circuit diagram of a power module in an embodiment of the present invention.
  • Figure 12 is a circuit diagram of a touchable DWIN LCD display in an embodiment of the present invention.
  • Figure 13 is a flow chart of the control terminal display module in the embodiment of the present invention.
  • Figure 14 is a main processor circuit board module diagram in an embodiment of the present invention.
  • Figure 15 is a logic flow chart of the operation of the industrial signal acquisition and triggering method in the embodiment of the present invention.
  • Figure 1 is a schematic diagram of the industrial signal collection and triggering system in an embodiment of the present invention.
  • the industrial signal acquisition and triggering system of this embodiment includes a single-chip microcomputer module 10 of the main control board, a data receiving and conversion module 20, a signal acquisition and processing module 30, an alarm system module 40, and a triggering module. 50. Power module 60 and display module 70.
  • the microcontroller module 10 of the main control board includes a control chip, a clock circuit, a working status indicator light, a power supply, a download line interface, a reset circuit, a memory chip, a filter circuit, and a main clock circuit, all of which are connected to the control chip.
  • the memory chip is 24C1024.
  • the control chip is C8051F120.
  • the data receiving and converting module 20 is connected to the single chip microcomputer module 10 of the main control board, and is used for data reception and converting analog signals into digital signals, and sending the digital signals to the single chip microcomputer module 10 of the main control board.
  • the data receiving and converting module 20 It includes an analog signal to digital signal conversion chip 21, capacitor C37, capacitor C38, capacitor C39, capacitor C40, capacitor C41 and resistor R14.
  • Figure 2 is a circuit diagram of the microcontroller module of the main control board in the embodiment of the present invention.
  • Figure 3 is a circuit diagram of a data receiving and converting module in an embodiment of the present invention.
  • the control chip has pins 29, 30, 31, 32, 33, 34, 35, 36, 39, and 40.
  • Pins 41, 42, 43, 44, 45, and 46 are respectively connected with pins 33, 34, 35, and 36 of the analog signal to digital signal conversion chip.
  • capacitor C37 As shown in Figure 3, one end of the capacitor C37 is connected to ground, and the other end is connected to the +5V power supply. One end of the capacitor C38 is connected to ground, and the other end is connected to the +5V power supply.
  • Capacitor C39 and capacitor C40 are connected in parallel to capacitor C41, one end is connected to pin 61 and pin 62 of the analog signal to digital signal conversion chip, the other end is connected to one end of resistor R14, and the other end of resistor R14 is connected to ground.
  • Figure 4 is a circuit diagram of the signal acquisition and processing module in the embodiment of the present invention.
  • the signal acquisition and processing module 30 includes four signal processing sub-modules and signal input terminals of the same design.
  • One of the signal processing sub-modules includes the operational amplifier OPA2227, resistors R15, R16, R17, R18, R19, R20, R21, capacitors C44, C45 and C46.
  • resistor R17 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 2 of the operational amplifier OPA2227.
  • One end of the resistor R18 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to the IN0 port of the signal input terminal.
  • One end of the resistor R19 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to pins 6 and 7 of the operational amplifier OPA2227.
  • resistor R20 is connected to pin 6 and pin 7 of operational amplifier OPA2227, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, capacitor C44 and capacitor C46.
  • resistor R21 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, capacitor C45 and capacitor C44.
  • One end of resistor R15 is connected to ground, and the other end is connected to resistor R16.
  • One end of resistor R16 is connected to resistor R15, and the other end is connected to pin 2 of operational amplifier OPA2227.
  • One end of the capacitor C44 is connected to ground, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor C21.
  • One end of the capacitor C46 is connected to ground, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor R20.
  • Figure 5 is a logical flow chart of data collection and processing in the embodiment of the present invention.
  • the operating logic flow of the data receiving and converting module 20 and the signal acquisition and processing module 30 is:
  • Step S1 determine whether there is a trigger pulse.
  • Step S2 Collect data after 450 analog-to-digital conversions, and send the largest data to the formula function.
  • Step S3 After formula operation, the final processed data result is sent to the display module for display.
  • the alarm module 40 is connected to the microcontroller module 10 of the main control board, and generates an alarm signal when the measured signal exceeds the set limit.
  • Figure 6 is a circuit diagram of the alarm module in the embodiment of the present invention.
  • the alarm module 40 includes a second optocoupler isolator PC817, a capacitor C35, a capacitor C36, a resistor R14, a resistor R15, a resistor R16, a diode 1N4148, two relays, an NPN transistor 8050, a PNP transistor 8550, and a resistor R17. , resistor R18, LED light 6 and passive buzzer.
  • One end of the capacitor C35 is connected to pin 1 of the second optocoupler isolator PC817 and the +5V power supply, the other end is connected to pin 2 of the second optocoupler isolator PC817, and one end of the capacitor C36 is connected to pin 3 of the optocoupler isolator PC817. and ground, and the other end is connected to pin 4 of the second optocoupler isolator PC817.
  • One end of the resistor R14 is connected to pin 93 of the control chip, and the other end is connected to pin 2 of the second optocoupler isolator PC817.
  • resistor R15 is connected to the +5V power supply, and the other end is connected to pin 4 of the second optocoupler isolator PC817.
  • One end of the resistor R16 is connected to pin 4 of the second optocoupler isolator PC817, and the other end is connected to the base of the PNP transistor 8550.
  • the emitter of the PNP transistor 8550 is connected to the +5V power supply, the base is connected to the resistor R16, and the collector is connected to pin 1 of the two relays.
  • One end of resistor R17 is connected to pin 94 of the control chip, and the other end is connected to the base of NPN transistor 8050.
  • resistor R18 One end of resistor R18 is connected to the emitter of NPN transistor 8050 and pin 1 of the passive buzzer, and the other end is connected to LED light 6. One end of LED lamp 6 is connected to resistor R18, and the other end is connected to pin 2 of the passive buzzer and ground.
  • the trigger module 50 includes a trigger acquisition sub-module 51, a trigger-controlled microcontroller sub-module 52, and a trigger-controlled trigger output sub-module 53.
  • the trigger collection sub-module 51 is connected to the microcontroller module 10 of the main control board, and the trigger output sub-module 53 of trigger control is connected to the trigger control microcontroller sub-module 10 and the trigger collection sub-module 51 .
  • Figure 7 is a circuit diagram of the trigger collection sub-module in the embodiment of the present invention.
  • the trigger collection sub-module 51 includes 4 trigger collection devices of the same design and 4 trigger signal input terminals.
  • the trigger signal input terminal is a 5-0V pulse signal input port.
  • One of the trigger acquisition devices includes a first optocoupler isolator PC817, capacitor C27, capacitor C28, resistor R6, and resistor R7.
  • One end of the capacitor C27 is connected to pin 3 of the first optocoupler isolator PC817 and ground, and the other end is connected to pin 4 of the first optocoupler isolator PC817, resistor R6 and pin 98 of the control chip.
  • One end of the capacitor C28 is connected to pin 2 of the first optocoupler isolator PC817 and pin 1 of the trigger signal input terminal, and the other end is connected to pin 1 of the first optocoupler isolator PC817 and the resistor R7.
  • One end of the resistor R6 is connected to the 3.3V power supply
  • one end of the resistor R7 is connected to pin 1 of the first optocoupler isolator PC817
  • the other end is connected to the 5V power supply.
  • FIG. 8 is a circuit diagram of a trigger-controlled microcontroller submodule in an embodiment of the present invention.
  • the trigger-controlled microcontroller sub-module 52 includes a microcontroller STC12C5A60S2, capacitor C5, resistor R1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, and crystal oscillator X1.
  • capacitor C5 is connected to the power supply VCC, and the other end is connected to the resistor R1 and pin 9 of the microcontroller STC12C5A60S2.
  • resistor R1 is connected to capacitor C5 and pin 9 of microcontroller STC12C5A60S2, and the other end is connected to ground.
  • Capacitor R1 and capacitor R2 are connected in parallel, one end is connected to the power supply VCC and pin 40 of the microcontroller STC12C5A60S2, and the other end is connected to ground.
  • One end of capacitor C3 is connected to capacitor C4 and pin 20 of microcontroller STC12C5A60S2, and the other end is connected to crystal oscillator X1 and pin 18 of microcontroller STC12C5A60S2.
  • capacitor C4 is connected to capacitor C3 and pin 20 of microcontroller STC12C5A60S2, and the other end is connected to crystal oscillator X1 and pin 19 of microcontroller STC12C5A60S2.
  • crystal oscillator X1 is connected to the capacitor C3 and pin 18 of the microcontroller STC12C5A60S2, and the other end is connected to the capacitor C4 and pin 19 of the microcontroller STC12C5A60S2.
  • Figure 9 is a circuit diagram of a trigger output sub-module of trigger control in an embodiment of the present invention.
  • the trigger output sub-module 53 of trigger control includes four parallel-connected trigger output devices of the same design.
  • the trigger output device includes optocoupler isolator PC817C, resistor R3, and resistor R21.
  • One end of the resistor R3 is connected to the power supply VCC, and the other end is connected to pin 1 of the optocoupler isolator PC817C.
  • the No. 2 trigger signal input pin of the optocoupler isolator PC817C is connected to the pin 3 of the microcontroller STC12C5A60S2.
  • One end of resistor R21 is connected to the No. 4 trigger signal output pin and trigger signal output terminal of the optocoupler isolator PC817C, and the other end is connected to the positive pole of the external signal input terminal.
  • Pin 3 of the optocoupler isolator PC817C is connected to ground.
  • Figure 10 is a logic flow chart of the trigger module in the embodiment of the present invention.
  • the operation logic flow of the trigger module is:
  • Step S1 before triggering, a self-check will be performed to ensure that the four channels can be triggered. By default, four channels will be triggered simultaneously. If you need to modify it, you can manually press the plus or minus key to adjust the number of channels that need to be triggered.
  • Step S2 after pressing the SET key for the first time, the digital tube will display the current trigger speed level. If you need to modify it, you can manually press the plus or minus key to adjust the speed that needs to be triggered.
  • Step S3 after pressing the SET key again, the digital tube will display the current level of the trigger holding time. If you need to modify it, you can manually press the plus or minus key to adjust the maintenance time that needs to be triggered.
  • Step S4 finally press the SET setting key again to exit the setting mode and send the trigger signal.
  • the power module 60 is used to provide power to each module.
  • Figure 11 is a circuit diagram of a power module in an embodiment of the present invention.
  • the power module 60 includes a 24V input sub-module 61, a 12V voltage conversion sub-module 62, two 5V voltage conversion sub-modules 63 with the same design, and a 24V to ⁇ 9V sub-module 64.
  • the 24V input sub-module 61 includes an input terminal J1, a fuse F1, a capacitor C1, and a current filter T1.
  • One end of the fuse F1 is connected to pin 2 of the input terminal J1, the other end is connected to pin 1 of the current filter T1, and pin 1 of the input terminal J1 is connected to pin 4 of the current filter T1.
  • one end of capacitor C1 is connected to pin 2 of current filter T1 and the 24V power supply, and the other end is connected to pin 3 of current filter T1 and ground.
  • the 12V voltage conversion sub-module 62 includes electrolytic capacitor C28, capacitor C3, voltage conversion module U1, electrolytic capacitor C4, capacitor C5, light-emitting diode VD1, and resistor R1.
  • the positive electrode of electrolytic capacitor C2 is connected to capacitor C3, +24V power supply and pin 2 of voltage conversion module U1, the negative electrode is connected to capacitor C3, ground and pin 1 of voltage conversion module U1, and the positive electrode of electrolytic capacitor C4 is connected to capacitor C5, + The 12V power supply, pin 3 of the voltage conversion module U1 and the anode of the light-emitting diode VD1, the cathode is connected to the capacitor C5, ground, pin 4 of the voltage conversion module U1 and resistor R1, the other end of the resistor R1 is connected to the cathode of the light-emitting diode VD1 connect.
  • the 5V voltage conversion sub-module 63 includes electrolytic capacitor C6, capacitor C7, voltage conversion module U2, electrolytic capacitor C8, capacitor C9, light-emitting diode VD2 and resistor R2.
  • the positive electrode of electrolytic capacitor C6 is connected to capacitor C7, +24V power supply, and pin 2 of voltage conversion module U2.
  • the negative electrode is connected to capacitor C7, ground, and pin 1 of voltage conversion module U2.
  • the positive electrode of electrolytic capacitor C8 is connected to capacitor C9, +12V power supply, pin 3 of the voltage conversion module U2 and the anode of the light-emitting diode VD2.
  • the cathode is connected to the capacitor C8, ground, pin 4 of the voltage conversion module U2 and resistor R2.
  • the other end of the resistor R2 is connected to the anode of the light-emitting diode VD2. Negative connection.
  • the 24V to ⁇ 9V sub-module 64 includes electrolytic capacitor C14, capacitor C11, voltage conversion module U4, electrolytic capacitor C16, capacitor C17, electrolytic capacitor C20, capacitor C21, light-emitting diode VD4, resistor R4, light-emitting diode VD5 and resistor R5.
  • the positive electrode of electrolytic capacitor C14 is connected to capacitor C11, +24V power supply and pin 1 of voltage conversion module U4, the negative electrode is connected to capacitor C11, ground and pin 2 of voltage conversion module U4, and the positive electrode of capacitor C16 is connected to capacitor C17, +9V
  • the positive electrode of the power supply, the light-emitting diode VD4 and the No. 6 pin of the voltage conversion module U4, and the negative electrode are connected to the positive electrode of the electrolytic capacitor C20, capacitor C17, resistor R4, capacitor C21, ground, resistor R5 and the No. 5 pin of the power conversion module U4.
  • the electrolytic resistor C20 is connected to the resistor R21, the -9V power supply and the cathode of the light-emitting diode VD5, the resistor R5 is connected to the anode of the light-emitting diode VD5, and the resistor R4 is connected to the anode of the light-emitting diode VD4.
  • the display module 70 is a touchable DWIN LCD display, and its main control chip is DWIN K600+, which is used for image and data processing.
  • the touchable DWIN LCD display includes a processing chip sub-module 71 .
  • Figure 12 is a circuit diagram of a touchable DWIN LCD display in an embodiment of the present invention.
  • the processing chip sub-module includes capacitor C33, capacitor C34, capacitor C35, capacitor C36, microcontroller MAX3232ECPE, port P5 and port P6.
  • One end of the capacitor C33 is connected to pin 1 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE.
  • One end of the capacitor C36 is connected to pin 4 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE.
  • one end of capacitor C34 is connected to capacitor C35 and ground, the other end is connected to pin 2 of microcontroller MAX3232ECPE, one end of capacitor C35 is connected to capacitor C34 and ground, the other end is connected to pin 6 of microcontroller MAX3232ECPE, the microcontroller MAX3232ECPE Pin No. 7 is connected to pin No. 3 of port P6, and pin No. 8 of the microcontroller MAX3232ECPE is connected to pin No. 3 of port P6.
  • Figure 13 is a flow chart of the control terminal display module in the embodiment of the present invention.
  • the operation logic flow of the display module is:
  • Step S1 after the system initialization is completed, it automatically switches to the homepage (single-channel data display page. If the system is collecting data, the data will be displayed directly.);
  • Step S2 select the page to jump to and click the button.
  • the pages that can be selected include channel selection, parameter settings, and history records.
  • Step S3 check historical records or other channel values and enter the password to modify parameter values
  • Step S4 return to the home page.
  • the channel selection can select the acquisition channel that needs to be displayed. You can choose single channel, dual channel, or four channel. Single channel only displays the data collected by channel one.
  • the dual-channel display can simultaneously display the data collected by channel one and channel two and the sum of the data collected by the two channels.
  • the four channels can simultaneously display the data collected by channel one, channel two, channel three, channel four and the sum of the data collected by the four channels.
  • Parameter setting can set the parameters of this system. After entering, you need to enter a password. Only when the password is correct can you change the parameters.
  • the parameter setting home page can display the current values of the parameters of each channel. Parameters that can be changed include sensor specifications, reference parameters, overload values, and calibration coefficients.
  • the history record can display the alarm time of each channel and the data collection results at the time of alarm.
  • the microcontroller module 10 of the main control board also includes an input and output module 11 .
  • Figure 14 is a main processor circuit board module diagram in an embodiment of the present invention.
  • the signal isolation input module 30 is the signal acquisition and processing module 30, the signal conversion and processing module 20 is the data reception and conversion module 20, and the main processor module 11 is the microcontroller module 10 of the main control board.
  • the power module 60 supplies power to the signal conversion module 20, the main processor module 10, and the signal isolation input module 30 through the input and output module 12.
  • the signal isolation input module 30 obtains the signal from the input and output module 12 and transmits it to the signal conversion module 20.
  • the signal conversion module 20 performs analog-to-digital conversion on the signal and transmits it to the main processor module 10 for processing, and then transmits it to the display through the input and output module 11. Module 70.
  • This embodiment also provides an industrial signal collection and triggering method.
  • Figure 15 is a logic flow chart of the operation of the industrial signal acquisition and triggering method in the embodiment of the present invention.
  • the industrial signal acquisition and triggering method in this embodiment includes the following steps:
  • Step S1 Set parameters through the display module.
  • Step S2 The trigger module sends a trigger signal.
  • Step S3 After receiving the trigger signal, the signal acquisition and processing module collects data from the acquisition channel.
  • step S4 the signal acquisition and processing module sends the processing results to the data receiving and conversion module and converts them into digital signals.
  • the digital signals are sent to the microcontroller module of the main control board.
  • Step S5 The processed data is displayed on the display module.
  • the industrial signal acquisition and triggering system of the present invention involves industrial signal detection, acquisition, processing and can generate specific trigger signals according to acquisition requirements. It can collect, process and generate four different types of industrial standard output (voltage, current) transmitters. Display adopts touch-control industrial-grade display to achieve good human-computer interaction and reduce the difficulty of parameter modification, and improves the portability of the system; it can simulate various industrial control trigger signals, 16 trigger modes can be selected, trigger speed It is adjustable and can also adjust the trigger frequency, trigger time, trigger interval time parameters, set the upper limit of the collected signal, and generate and record an alarm signal when the measured signal exceeds the set limit.
  • the industrial signal acquisition and triggering system of the present invention sets password protection to prevent specific parameters from being maliciously tampered with. Only if the password is correct can the specific parameters be modified to ensure the security of key parameters.
  • Specific parameters include sensor specifications, reference parameters, overload values, and calibration coefficients.
  • the control terminal can display the real-time signal collection size in real time. Multi-channel acquisition is set up, and the parameters of each channel can be set independently. Each channel is independent and the channels will not affect each other.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Electronic Switches (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

An industrial signal acquisition and triggering system, comprising: a single chip microcomputer module (10) of a main control panel, comprising at least a control chip; a data receiving and conversion module (20) connected to the single chip microcomputer module (10) of the main control panel, and used for receiving data, converting an analog signal into a digital signal, and sending the digital signal to the single chip microcomputer module (10) of the main control panel, wherein the data receiving and conversion module (20) comprises at least an analog signal to digital signal conversion chip; a signal acquisition and processing module (30) connected to the data receiving and conversion module (20), and used for acquiring industrial signals sent by various industrial sensors; a trigger module (50) connected to the single chip microcomputer module (10) of the main control panel and the signal acquisition and processing module (30), and used for acquiring and outputting a trigger signal; and a display module (70) connected to the single chip microcomputer module (10) of the main control panel, and used for displaying information and human-computer interaction.

Description

一种工业信号采集与触发系统及方法An industrial signal acquisition and triggering system and method 技术领域Technical field
本发明涉及工业自动控制、现代检测技术领域,具体为一种工业信号采集与触发系统及方法。The invention relates to the technical fields of industrial automatic control and modern detection, and specifically to an industrial signal acquisition and triggering system and method.
背景技术Background technique
随着现代化工业生产中,对产品精度要求愈来愈高,在现代工业生产尤其是自动化生产过程中,要用各种传感器来监视和控制生产过程中的各个参数,使设备工作在正常状态或最佳状态,并使产品达到最好的质量。With modern industrial production, the requirements for product accuracy are getting higher and higher. In modern industrial production, especially automated production processes, various sensors are used to monitor and control various parameters in the production process, so that the equipment can work in a normal state or The best condition and make the product reach the best quality.
目前的工业信号采集系统,存在采集通道较少、参数修改复杂、人机交互性差、采集模式单一等问题。这些问题会影响产品质量,技术人员培养难度,以及系统的可移植性等。The current industrial signal acquisition system has problems such as fewer acquisition channels, complex parameter modification, poor human-computer interaction, and single acquisition mode. These problems will affect product quality, difficulty in training technical personnel, and system portability.
针对上述问题,急需在原有的工业的基础上创新工业信号采集方法与触发系统。In response to the above problems, there is an urgent need to innovate industrial signal acquisition methods and triggering systems based on the original industry.
技术问题technical problem
本发明的目的在于提供一种工业信号采集与触发系统及方法,以解决上述背景技术中提出的现代工业生产过程中存在的信号采集通道较少、参数修改复杂、人机交互性差、采集模式单一等情况。以及通过这些情况影响到产品质量等的问题。The purpose of the present invention is to provide an industrial signal acquisition and triggering system and method to solve the problems of fewer signal acquisition channels, complex parameter modification, poor human-computer interaction, and single acquisition mode in the modern industrial production process proposed in the above background technology. etc. And issues such as product quality that are affected by these situations.
技术解决方案Technical solutions
为实现上述目的,本发明提供如下技术方案:一种工业信号采集与触发系统及方法,包括主控制板的单片机模块,至少包括控制芯片;数据接收与转换模块,与主控制板的单片机模块相连接,用于数据接收以及将模拟信号转换为数字信号,并将数字信号发送至主控制板的单片机模块,数据接收与转换模块至少包括模拟信号转数字信号转换芯片;信号采集与处理模块,与数据接收与转换模块相连接,用于采集各类工业传感器发出的工业信号;触发模块,与主控制板的单片机模块和信号采集与处理模块相连接,用于采集并输出触发信号;以及显示模块,与主控制板的单片机模块相连接,用于显示信息与人机交互。In order to achieve the above purpose, the present invention provides the following technical solution: an industrial signal acquisition and triggering system and method, including a single-chip computer module of the main control board, at least including a control chip; a data receiving and conversion module, which is connected to the single-chip computer module of the main control board. Connection, used for data reception and conversion of analog signals into digital signals, and sending digital signals to the microcontroller module of the main control board. The data reception and conversion module at least includes an analog signal to digital signal conversion chip; a signal acquisition and processing module, and The data reception and conversion module is connected to collect industrial signals from various industrial sensors; the trigger module is connected to the microcontroller module and the signal acquisition and processing module of the main control board and is used to collect and output trigger signals; and the display module , connected to the microcontroller module of the main control board, used for displaying information and human-computer interaction.
优选的,主控制板的单片机模块还包括时钟电路、工作状态指示灯、电源、下载接口、复位电路、存储芯片、滤波电路,均连接在控制芯片上,所述存储芯片是24C1024,控制芯片为C8051F120。模拟信号转数字信号转换芯片为ADS8365,用于提高采集精度和单片机直接进行通信。控制芯片的引脚29、引脚30、引脚31、引脚32、引脚33、引脚34、引脚35、引脚36、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46分别与模拟信号转数字信号转换芯片的引脚33、引脚34、引脚35、引脚36、引脚37、引脚38、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46、引脚47、引脚48连接。Preferably, the microcontroller module of the main control board also includes a clock circuit, a working status indicator light, a power supply, a download interface, a reset circuit, a memory chip, and a filter circuit, all of which are connected to the control chip. The memory chip is 24C1024, and the control chip is C8051F120. The analog signal to digital signal conversion chip is ADS8365, which is used to improve the acquisition accuracy and communicate directly with the microcontroller. Control chip pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 39, pin 40, pin 41, pin 42 , pin 43, pin 44, pin 45, and pin 46 respectively correspond to pin 33, pin 34, pin 35, pin 36, pin 37, and pin 38 of the analog signal to digital signal conversion chip. Pin 39, pin 40, pin 41, pin 42, pin 43, pin 44, pin 45, pin 46, pin 47, and pin 48 are connected.
优选的,数据接收与转换模块还包括电容C37、电容C38、电容C39、电容C40、电容C41以及电阻R14。电容C37的一端连接地,另一端连接+5V电源。电容C38的一端连接地,另一端连接+5V电源。电容C39和电容C40并联在电容C41上,一端连接模拟信号转数字信号转换芯片的引脚61和引脚62,另一端连接电阻R14的一端,电阻R14的另一端连接地。Preferably, the data receiving and conversion module also includes capacitor C37, capacitor C38, capacitor C39, capacitor C40, capacitor C41 and resistor R14. One end of the capacitor C37 is connected to ground, and the other end is connected to the +5V power supply. One end of the capacitor C38 is connected to ground, and the other end is connected to the +5V power supply. Capacitor C39 and capacitor C40 are connected in parallel to capacitor C41, one end is connected to pin 61 and pin 62 of the analog signal to digital signal conversion chip, the other end is connected to one end of resistor R14, and the other end of resistor R14 is connected to ground.
优选的,信号采集与处理模块包括4个相同设计的信号处理子模块和信号输入端子。其中一个信号处理子模块包括运算放大器OPA2227、电阻R15、电阻R16、电阻R17、电阻R18、电阻R19、电阻R20、电阻R21、电容C44、电容C45以及电容C46。电阻R17的一端连接运算放大器OPA2227的引脚1,另一端连接运算放大器OPA2227的引脚2。电阻R18的一端连接运算放大器OPA2227的引脚3,另一端连接信号输入端子的IN0口。电阻R19的一端连接运算放大器OPA2227的引脚3,另一端连接运算放大器OPA2227的引脚6和引脚7。电阻R20的一端连接运算放大器OPA2227的引脚6和引脚7,另一端连接到模拟信号转数字信号转换芯片的引脚64、电容C44以及电容C46。电阻R21的一端连接运算放大器OPA2227的引脚1,另一端连接模拟信号转数字信号转换芯片的引脚63、电容C45以及电容C44。电阻R15的一端连接地,另一端连接电阻R16。电阻R16的一端连接电阻R15,另一端连接运算放大器OPA2227的引脚2。电容C44的一端连接地,另一端连接模拟信号转数字信号转换芯片的引脚63、电容C45以及电阻C21。电容C46的一端连接地,另一端连接模拟信号转数字信号转换芯片的引脚64、电容C45以及电阻R20。Preferably, the signal acquisition and processing module includes four signal processing sub-modules and signal input terminals of the same design. One of the signal processing sub-modules includes the operational amplifier OPA2227, resistors R15, R16, R17, R18, R19, R20, R21, capacitors C44, C45 and C46. One end of the resistor R17 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 2 of the operational amplifier OPA2227. One end of the resistor R18 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to the IN0 port of the signal input terminal. One end of the resistor R19 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to pins 6 and 7 of the operational amplifier OPA2227. One end of resistor R20 is connected to pin 6 and pin 7 of operational amplifier OPA2227, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, capacitor C44 and capacitor C46. One end of the resistor R21 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, capacitor C45 and capacitor C44. One end of resistor R15 is connected to ground, and the other end is connected to resistor R16. One end of resistor R16 is connected to resistor R15, and the other end is connected to pin 2 of operational amplifier OPA2227. One end of the capacitor C44 is connected to ground, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor C21. One end of the capacitor C46 is connected to ground, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor R20.
优选的,触发模块包括触发采集子模块、触发控制的单片机子模块以及触发控制的触发输出子模块。触发采集子模块与主控制板的单片机模块相连接,触发控制的触发输出子模块与触发控制的单片机子模块和触发采集子模块相连接。Preferably, the trigger module includes a trigger collection sub-module, a trigger-controlled microcontroller sub-module and a trigger-controlled trigger output sub-module. The trigger collection sub-module is connected to the microcontroller module of the main control board, and the trigger output sub-module of trigger control is connected to the trigger control microcontroller sub-module and the trigger collection sub-module.
优选的,触发采集子模块包括4个相同设计的触发采集装置和4路触发信号输入端子,触发信号输入端子为0-5V脉冲信号输入端口,其中一个触发采集装置包括第一光耦隔离器PC817、电容C27、电容C28、电阻R6、电阻R7,电容C27的一端连接第一光耦隔离器PC817的引脚3和地,另一端连接第一光耦隔离器PC817的引脚4、电阻R6以及控制芯片的引脚98,电容C28的一端连接第一光耦隔离器PC817的引脚2和触发信号输入端子的引脚1,另一端连接第一光耦隔离器PC817的引脚1和电阻R7,电阻R6的一端连接3.3V电源,电阻R7的一端连接第一光耦隔离器PC817的引脚1,另一端连接5V电源。触发控制的单片机子模块包括单片机STC12C5A60S2、电容C5、电阻R1、电容C1、电容C2、电容C3、电容C4、晶振X1,电容C5的一端连接电源VCC,另一端连接电阻R1和单片机STC12C5A60S2的引脚9,电阻R1的一端连接电容C5和单片机STC12C5A60S2的引脚9,另一端连接地,电容R1和电容R2并联,一端连接电源VCC和单片机STC12C5A60S2的引脚40,另一端连接地,电容C3的一端连接电容C4和单片机STC12C5A60S2的引脚20,另一端连接晶振X1和单片机STC12C5A60S2的引脚18,电容C4的一端连接电容C3和单片机STC12C5A60S2的引脚20,另一端连接晶振X1和单片机STC12C5A60S2的引脚19,晶振X1的一端连接电容C3和单片机STC12C5A60S2的引脚18,另一端连接电容C4和单片机STC12C5A60S2的引脚19。触发控制的触发输出子模块包括4个并联的相同设计的触发输出装置,触发输出装置包括光耦隔离器PC817C、电阻R3、电阻R21,电阻R3的一端连接电源VCC,另一端连接光耦隔离器PC817C的1号引脚,光耦隔离器PC817C的2号触发信号输入引脚与单片机STC12C5A60S2的引脚3与相连,电阻R21的一端与光耦隔离器PC817C的4号触发信号输出引脚和触发信号输出端子连接,另一端与外接信号输入端子正极相连,光耦隔离器PC817C的3号引脚与地相连。Preferably, the trigger acquisition sub-module includes 4 trigger acquisition devices of the same design and 4 trigger signal input terminals. The trigger signal input terminal is a 0-5V pulse signal input port. One of the trigger acquisition devices includes the first optocoupler isolator PC817. , capacitor C27, capacitor C28, resistor R6, resistor R7, one end of the capacitor C27 is connected to pin 3 of the first optocoupler isolator PC817 and ground, and the other end is connected to pin 4 of the first optocoupler isolator PC817, resistor R6 and Control chip pin 98, one end of capacitor C28 is connected to pin 2 of the first optocoupler isolator PC817 and pin 1 of the trigger signal input terminal, and the other end is connected to pin 1 of the first optocoupler isolator PC817 and resistor R7 , one end of the resistor R6 is connected to the 3.3V power supply, one end of the resistor R7 is connected to pin 1 of the first optocoupler isolator PC817, and the other end is connected to the 5V power supply. The trigger-controlled microcontroller sub-module includes microcontroller STC12C5A60S2, capacitor C5, resistor R1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, crystal oscillator X1. One end of capacitor C5 is connected to the power supply VCC, and the other end is connected to resistor R1 and the pin of the microcontroller STC12C5A60S2. 9. One end of resistor R1 is connected to capacitor C5 and pin 9 of microcontroller STC12C5A60S2. The other end is connected to ground. Capacitor R1 and capacitor R2 are connected in parallel. One end is connected to power supply VCC and pin 40 of microcontroller STC12C5A60S2. The other end is connected to ground and one end of capacitor C3. Connect capacitor C4 to pin 20 of microcontroller STC12C5A60S2. The other end is connected to crystal oscillator X1 and pin 18 of microcontroller STC12C5A60S2. One end of capacitor C4 is connected to capacitor C3 and pin 20 of microcontroller STC12C5A60S2. The other end is connected to crystal oscillator X1 and pin of microcontroller STC12C5A60S2. 19. One end of crystal oscillator X1 is connected to capacitor C3 and pin 18 of microcontroller STC12C5A60S2, and the other end is connected to capacitor C4 and pin 19 of microcontroller STC12C5A60S2. The trigger output sub-module of trigger control includes four trigger output devices of the same design connected in parallel. The trigger output device includes an optocoupler isolator PC817C, a resistor R3, and a resistor R21. One end of the resistor R3 is connected to the power supply VCC, and the other end is connected to the optocoupler isolator. The No. 1 pin of PC817C and the No. 2 trigger signal input pin of the optocoupler isolator PC817C are connected to the pin 3 of the microcontroller STC12C5A60S2. One end of the resistor R21 is connected to the No. 4 trigger signal output pin of the optocoupler isolator PC817C and the trigger The signal output terminal is connected, the other end is connected to the positive pole of the external signal input terminal, and pin 3 of the optocoupler isolator PC817C is connected to ground.
优选的,显示模块为可触摸迪文液晶显示屏,其主控芯片是迪文K600+,用于图像和数据处理,可触摸迪文液晶显示屏包括处理芯片子模块。处理芯片子模块包括电容C33、电容C34、电容C35、电容C36、单片机MAX3232ECPE、端口P5以及端口P6。电容C33的一端与单片机MAX3232ECPE的1号引脚相连,另一端与单片机MAX3232ECPE的3号引脚相连,电容C36的一端与单片机MAX3232ECPE的4号引脚相连,另一端与单片机MAX3232ECPE的号引脚相连,电容C34的一端与电容C35和地相连,另一端与单片机MAX3232ECPE的2号引脚相连,电容C35的一端与电容C34和地相连,另一端与单片机MAX3232ECPE的6号引脚相连,单片机MAX3232ECPE的7号引脚与端口P6的3号引脚相连,单片机MAX3232ECPE的8号引脚与端口P6的3号引脚相连。Preferably, the display module is a touchable DWIN LCD display, and its main control chip is DWIN K600+, which is used for image and data processing. The touchable DWIN LCD display includes a processing chip sub-module. The processing chip sub-module includes capacitor C33, capacitor C34, capacitor C35, capacitor C36, microcontroller MAX3232ECPE, port P5 and port P6. One end of the capacitor C33 is connected to pin 1 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE. One end of the capacitor C36 is connected to pin 4 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE. , one end of capacitor C34 is connected to capacitor C35 and ground, the other end is connected to pin 2 of microcontroller MAX3232ECPE, one end of capacitor C35 is connected to capacitor C34 and ground, the other end is connected to pin 6 of microcontroller MAX3232ECPE, the microcontroller MAX3232ECPE Pin No. 7 is connected to pin No. 3 of port P6, and pin No. 8 of the microcontroller MAX3232ECPE is connected to pin No. 3 of port P6.
优选的,报警模块,与主控制板的单片机模块相连接,当被测信号超出设定限制时产生报警信号;电源模块,用于为各个模块供电。Preferably, the alarm module is connected to the microcontroller module of the main control board and generates an alarm signal when the measured signal exceeds the set limit; the power module is used to power each module.
优选的,报警模块包括第二光耦隔离器PC817、电容C35、电容C36、电阻R14、电阻R15、电阻R16、二极管1N4148、两路继电器、NPN三极管8050、PNP三极管8550、电阻R17、电阻R18、LED灯6以及无源蜂鸣器,电容C35的一端连接第二光耦隔离器PC817的引脚1和+5V电源,另一端连接第二光耦隔离器PC817的引脚2,电容C36的一端连接光耦隔离器PC817的引脚3和地,另一端连接第二光耦隔离器PC817的引脚4,电阻R14的一端连接控制芯片的引脚93,另一端连接第二光耦隔离器PC817的引脚2,电阻R15的一端连接+5V电源,另一端连接第二光耦隔离器PC817的引脚4,电阻R16的一端连接第二光耦隔离器PC817的引脚4,另一端连接PNP三极管8550的基极,PNP三极管8550的发射极连接+5V电源,基极连接电阻R16,集电极连接两路继电器的引脚1,电阻R17的一端连接控制芯片的引脚94,另一端连接NPN三极管8050的基极,电阻R18的一端连接NPN三极管8050的发射极和无源蜂鸣器的引脚1,另一端连接LED灯6,LED灯6的一端连接电阻R18,另一端连接无源蜂鸣器的引脚2和地。电源模块包括一个24V输入子模块、一个12V电压转换子模块、两个设计相同的5V电压转换子模块以及一个24V转±9V子模块。24V输入子模块包括输入端子J1、保险丝F1、电容C1、电流滤波器T1,保险丝F1的一端连接在输入端子J1的2号引脚上,另一端连接在电流滤波器T1的1号引脚上,输入端子J1的1号引脚连接电流滤波器T1的4号引脚上,电容C1的一端连接在电流滤波器T1的2号引脚和24V电源上,另一端连接电流滤波器T1的3号引脚和地。12V电压转换子模块包括电解电容C28、电容C3、电压转换模块U1、电解电容C4、电容C5、发光二极管VD1、电阻R1,电解电容C2的正极连接电容C3、+24V电源以及电压转换模块U1的2号引脚,负极连接电容C3、地以及电压转换模块U1的1号引脚,电解电容C4的正极连接电容C5、+12V电源、电压转换模块U1的3号引脚以及发光二极管VD1的正极,负极连接电容C5、地、电压转换模块U1的4号引脚以及电阻R1,电阻R1的另一端与发光二极管VD1的负极连接。5V电压转换子模块包括电解电容C6、电容C7、电压转换模块U2、电解电容C8、电容C9、发光二极管VD2以及电阻R2,电解电容C6的正极连接电容C7、+24V电源以及电压转换模块U2的2号引脚,负极连接电容C7、地、以及电压转换模块U2的1号引脚,电解电容C8的正极连接电容C9、+12V电源、电压转换模块U2的3号引脚以及发光二极管VD2的正极,负极连接电容C8、地、电压转换模块U2的4号引脚以及电阻R2,电阻R2的另一端与发光二极管VD2的负极连接。24V转±9V子模块包括电解电容C14、电容C11、电压转换模块U4、电解电容C16、电容C17、电解电容C20、电容C21、发光二极管VD4、电阻R4、发光二极管VD5以及电阻R5,电解电容C14的正极连接电容C11、+24V电源与电压转换模块U4的1号引脚,负极连接电容C11、地以及电压转换模块U4的2号引脚,电容C16的正极连接电容C17、+9V电源、发光二极管VD4的正极以及电压转换模块U4的6号引脚,负极与电解电容C20正极、电容C17、电阻R4、电容C21、地、电阻R5以及电源转换模块U4的5号引脚相连,电解电阻C20与电阻R21、-9V电源以及发光二极管VD5的负极相连,电阻R5与发光二极管VD5正极相连,电阻R4与发光二极管VD4的正极相连。Preferably, the alarm module includes the second optocoupler isolator PC817, capacitor C35, capacitor C36, resistor R14, resistor R15, resistor R16, diode 1N4148, two-way relay, NPN transistor 8050, PNP transistor 8550, resistor R17, resistor R18, LED light 6 and passive buzzer, one end of capacitor C35 is connected to pin 1 of the second optocoupler isolator PC817 and the +5V power supply, the other end is connected to pin 2 of the second optocoupler isolator PC817, and one end of capacitor C36 Connect pin 3 of the optocoupler isolator PC817 and ground, the other end is connected to pin 4 of the second optocoupler isolator PC817, one end of the resistor R14 is connected to pin 93 of the control chip, and the other end is connected to the second optocoupler isolator PC817 Pin 2, one end of the resistor R15 is connected to the +5V power supply, the other end is connected to the pin 4 of the second optocoupler isolator PC817, one end of the resistor R16 is connected to the pin 4 of the second optocoupler isolator PC817, and the other end is connected to PNP The base of the transistor 8550, the emitter of the PNP transistor 8550 is connected to the +5V power supply, the base is connected to the resistor R16, the collector is connected to pin 1 of the two relays, one end of the resistor R17 is connected to pin 94 of the control chip, and the other end is connected to NPN The base of the transistor 8050, one end of the resistor R18 is connected to the emitter of the NPN transistor 8050 and pin 1 of the passive buzzer, the other end is connected to the LED lamp 6, one end of the LED lamp 6 is connected to the resistor R18, and the other end is connected to the passive buzzer. buzzer pin 2 and ground. The power module includes a 24V input sub-module, a 12V voltage conversion sub-module, two 5V voltage conversion sub-modules with the same design, and a 24V to ±9V sub-module. The 24V input submodule includes input terminal J1, fuse F1, capacitor C1, and current filter T1. One end of fuse F1 is connected to pin 2 of input terminal J1, and the other end is connected to pin 1 of current filter T1. , the No. 1 pin of the input terminal J1 is connected to the No. 4 pin of the current filter T1, one end of the capacitor C1 is connected to the No. 2 pin of the current filter T1 and the 24V power supply, and the other end is connected to the No. 3 pin of the current filter T1. pin and ground. The 12V voltage conversion sub-module includes electrolytic capacitor C28, capacitor C3, voltage conversion module U1, electrolytic capacitor C4, capacitor C5, light-emitting diode VD1, resistor R1. The positive electrode of electrolytic capacitor C2 is connected to capacitor C3, +24V power supply and voltage conversion module U1. Pin No. 2, the negative electrode is connected to capacitor C3, ground and pin No. 1 of voltage conversion module U1. The positive electrode of electrolytic capacitor C4 is connected to capacitor C5, +12V power supply, pin No. 3 of voltage conversion module U1 and the positive electrode of light-emitting diode VD1. , the negative electrode is connected to the capacitor C5, ground, pin 4 of the voltage conversion module U1 and the resistor R1. The other end of the resistor R1 is connected to the negative electrode of the light-emitting diode VD1. The 5V voltage conversion sub-module includes electrolytic capacitor C6, capacitor C7, voltage conversion module U2, electrolytic capacitor C8, capacitor C9, light-emitting diode VD2 and resistor R2. The positive electrode of electrolytic capacitor C6 is connected to capacitor C7, +24V power supply and voltage conversion module U2. Pin No. 2, the negative electrode is connected to capacitor C7, ground, and pin No. 1 of voltage conversion module U2. The positive electrode of electrolytic capacitor C8 is connected to capacitor C9, +12V power supply, pin No. 3 of voltage conversion module U2, and light-emitting diode VD2. The positive and negative electrodes are connected to capacitor C8, ground, pin 4 of voltage conversion module U2 and resistor R2. The other end of resistor R2 is connected to the negative electrode of light-emitting diode VD2. The 24V to ±9V sub-module includes electrolytic capacitor C14, capacitor C11, voltage conversion module U4, electrolytic capacitor C16, capacitor C17, electrolytic capacitor C20, capacitor C21, light-emitting diode VD4, resistor R4, light-emitting diode VD5 and resistor R5, electrolytic capacitor C14 The positive electrode is connected to capacitor C11, +24V power supply and pin 1 of voltage conversion module U4, the negative electrode is connected to capacitor C11, ground and pin 2 of voltage conversion module U4, the positive electrode of capacitor C16 is connected to capacitor C17, +9V power supply, and light The anode of diode VD4 is connected to pin 6 of voltage conversion module U4, and the cathode is connected to the anode of electrolytic capacitor C20, capacitor C17, resistor R4, capacitor C21, ground, resistor R5, and pin 5 of power conversion module U4. Electrolytic resistor C20 It is connected to resistor R21, -9V power supply and the cathode of light-emitting diode VD5. Resistor R5 is connected to the anode of light-emitting diode VD5. Resistor R4 is connected to the anode of light-emitting diode VD4.
还包括一种工业信号采集与触发方法,包括以下步骤:步骤1,通过显示模块设置参数;步骤2,触发模块发出触发信号;步骤3,信号采集与处理模块接收到触发信号后对采集通道进行数据采集;步骤4,信号采集与处理模块把处理结果发送到数据接收与转换模块上转换为数字信号,数字信号被发送至主控制板的单片机模块;步骤5,显示模块上显示处理后的数据。It also includes an industrial signal acquisition and triggering method, which includes the following steps: Step 1, set parameters through the display module; Step 2, the trigger module sends a trigger signal; Step 3, the signal acquisition and processing module performs processing on the acquisition channel after receiving the trigger signal. Data acquisition; Step 4, the signal acquisition and processing module sends the processing results to the data receiving and conversion module and converts them into digital signals, and the digital signals are sent to the microcontroller module of the main control board; Step 5, the processed data is displayed on the display module .
有益效果beneficial effects
与现有技术相比,本发明的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:
(1)本发明的工业信号采集与触发系统涉及工业信号检测、采集、处理以及可根据采集需求产生特定触发信号,可以对四路不同类型的工业标准输出(电压、电流)变送器进行采集、处理和显示,采用可触控工业级显示屏以达到良好的人机交互性和降低参数修改难度,并且提高了系统的可移植性;能够模拟各类工控触发信号,16种触发模式可以选、触发速度可调,还能够调节触发频率、触发时间、触发间隔时间参数,能够设置采集信号的上限,以及当被测信号超出设定限制时产生报警信号并进行记录;(1) The industrial signal acquisition and triggering system of the present invention involves industrial signal detection, acquisition, processing and can generate specific trigger signals according to acquisition requirements. It can collect four different types of industrial standard output (voltage, current) transmitters , processing and display, using a touchable industrial-grade display to achieve good human-computer interaction and reduce the difficulty of parameter modification, and improve the portability of the system; it can simulate various industrial control trigger signals, and 16 trigger modes can be selected , the trigger speed is adjustable, and the trigger frequency, trigger time, trigger interval time parameters can also be adjusted, the upper limit of the collected signal can be set, and when the measured signal exceeds the set limit, an alarm signal is generated and recorded;
(2)本发明的工业信号采集与触发系统为了防止特定参数被恶意篡改而设定密码保护,只有密码正确才可以对特定参数进行修改以来确保关键参数的安全。特定参数包括传感器规格、参考参数、过载值、校准系数。在使用本系统时,当需要采集不同类型的工业信号时,则需要通过控制终端调整其传感器规格和参考参数,通过和标准信号对比调整校准系数来提高采集精度。如过对信号的强度需要警示时,则调整其过载值以来应对不同的报警需求。控制终端上能实时显示实时的信号采集的大小。设置了多通道采集,且各个通道可单独设置参数,各个通道是独立的,通道之间不会互相影响。(2) The industrial signal acquisition and triggering system of the present invention sets password protection to prevent specific parameters from being maliciously tampered with. Only if the password is correct can the specific parameters be modified to ensure the security of key parameters. Specific parameters include sensor specifications, reference parameters, overload values, and calibration coefficients. When using this system, when you need to collect different types of industrial signals, you need to adjust the sensor specifications and reference parameters through the control terminal, and adjust the calibration coefficient to improve the collection accuracy by comparing it with the standard signal. If the signal strength requires an alert, adjust its overload value to cope with different alarm requirements. The control terminal can display the real-time signal collection size in real time. Multi-channel acquisition is set up, and the parameters of each channel can be set independently. Each channel is independent and the channels will not affect each other.
附图说明Description of drawings
图1是本发明的实施例中工业信号采集与触发系统的示意图;Figure 1 is a schematic diagram of an industrial signal acquisition and triggering system in an embodiment of the present invention;
图2是本发明的实施例中主控制板的单片机模块的电路图;Figure 2 is a circuit diagram of the microcontroller module of the main control board in the embodiment of the present invention;
图3是本发明的实施例中数据接收与转换模块的电路图;Figure 3 is a circuit diagram of the data receiving and conversion module in the embodiment of the present invention;
图4是本发明的实施例中信号采集与处理模块的电路图;Figure 4 is a circuit diagram of a signal acquisition and processing module in an embodiment of the present invention;
图5是本发明的实施例中数据采集与处理逻辑流程图。Figure 5 is a logical flow chart of data collection and processing in the embodiment of the present invention.
图6是本发明的实施例中报警模块的电路图;Figure 6 is a circuit diagram of the alarm module in the embodiment of the present invention;
图7是本发明的实施例中触发采集子模块的电路图;Figure 7 is a circuit diagram of the trigger collection sub-module in the embodiment of the present invention;
图8是本发明的实施例中触发控制的单片机子模块的电路图;Figure 8 is a circuit diagram of a trigger controlled microcontroller sub-module in an embodiment of the present invention;
图9是本发明的实施例中触发控制的触发输出子模块的电路图;Figure 9 is a circuit diagram of a trigger output sub-module of trigger control in an embodiment of the present invention;
图10是本发明的实施例中触发模块逻辑流程图;Figure 10 is a logic flow diagram of the trigger module in the embodiment of the present invention;
图11是本发明的实施例中电源模块的电路图;Figure 11 is a circuit diagram of a power module in an embodiment of the present invention;
图12是本发明的实施例中可触摸迪文液晶显示屏的电路图;Figure 12 is a circuit diagram of a touchable DWIN LCD display in an embodiment of the present invention;
图13是本发明的实施例中控制终端显示模块流程图;Figure 13 is a flow chart of the control terminal display module in the embodiment of the present invention;
图14是本发明的实施例中的主处理器电路板模块图;Figure 14 is a main processor circuit board module diagram in an embodiment of the present invention;
图15是本发明的实施例中的工业信号采集与触发方法运行逻辑流程图。Figure 15 is a logic flow chart of the operation of the industrial signal acquisition and triggering method in the embodiment of the present invention.
本发明的最佳实施方式Best Mode of Carrying Out the Invention
请参阅图1-15,本发明提供一种技术方案:一种工业信号采集与触发系统,图1是本发明的实施例中工业信号采集与触发系统的示意图。Please refer to Figures 1-15. The present invention provides a technical solution: an industrial signal collection and triggering system. Figure 1 is a schematic diagram of the industrial signal collection and triggering system in an embodiment of the present invention.
如图1所示,本实施例的工业信号采集与触发系统包括主控制板的主控制板的单片机模块10、数据接收与转换模块20、信号采集与处理模块30、报警系统模块40、触发模块50、电源模块60以及显示模块70。As shown in Figure 1, the industrial signal acquisition and triggering system of this embodiment includes a single-chip microcomputer module 10 of the main control board, a data receiving and conversion module 20, a signal acquisition and processing module 30, an alarm system module 40, and a triggering module. 50. Power module 60 and display module 70.
主控制板的单片机模块10包括控制芯片、时钟电路、工作状态指示灯、电源、下载线接口、复位电路、存储芯片、滤波电路、主时钟电路,均连接在控制芯片上,存储芯片是24C1024,控制芯片为C8051F120。The microcontroller module 10 of the main control board includes a control chip, a clock circuit, a working status indicator light, a power supply, a download line interface, a reset circuit, a memory chip, a filter circuit, and a main clock circuit, all of which are connected to the control chip. The memory chip is 24C1024. The control chip is C8051F120.
数据接收与转换模块20与主控制板的单片机模块10相连接,用于数据接收以及将模拟信号转换为数字信号,并将数字信号发送至主控制板的单片机模块10,数据接收与转换模块20包括模拟信号转数字信号转换芯片21、电容C37、电容C38、电容C39、电容C40、电容C41以及电阻R14。The data receiving and converting module 20 is connected to the single chip microcomputer module 10 of the main control board, and is used for data reception and converting analog signals into digital signals, and sending the digital signals to the single chip microcomputer module 10 of the main control board. The data receiving and converting module 20 It includes an analog signal to digital signal conversion chip 21, capacitor C37, capacitor C38, capacitor C39, capacitor C40, capacitor C41 and resistor R14.
图2是本发明的实施例中主控制板的单片机模块的电路图。Figure 2 is a circuit diagram of the microcontroller module of the main control board in the embodiment of the present invention.
图3是本发明的实施例中数据接收与转换模块的电路图。Figure 3 is a circuit diagram of a data receiving and converting module in an embodiment of the present invention.
如图2~图3所示,控制芯片的引脚29、引脚30、引脚31、引脚32、引脚33、引脚34、引脚35、引脚36、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46分别与模拟信号转数字信号转换芯片的引脚33、引脚34、引脚35、引脚36、引脚37、引脚38、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46、引脚47、引脚48连接。As shown in Figures 2 and 3, the control chip has pins 29, 30, 31, 32, 33, 34, 35, 36, 39, and 40. Pins 41, 42, 43, 44, 45, and 46 are respectively connected with pins 33, 34, 35, and 36 of the analog signal to digital signal conversion chip. , pin 37, pin 38, pin 39, pin 40, pin 41, pin 42, pin 43, pin 44, pin 45, pin 46, pin 47, pin 48 connections.
如图3所示,电容C37的一端连接地,另一端连接+5V电源。电容C38的一端连接地,另一端连接+5V电源。电容C39和电容C40并联在电容C41上,一端连接模拟信号转数字信号转换芯片的引脚61和引脚62,另一端连接电阻R14的一端,电阻R14的另一端连接地。As shown in Figure 3, one end of the capacitor C37 is connected to ground, and the other end is connected to the +5V power supply. One end of the capacitor C38 is connected to ground, and the other end is connected to the +5V power supply. Capacitor C39 and capacitor C40 are connected in parallel to capacitor C41, one end is connected to pin 61 and pin 62 of the analog signal to digital signal conversion chip, the other end is connected to one end of resistor R14, and the other end of resistor R14 is connected to ground.
图4是本发明的实施例中信号采集与处理模块的电路图。Figure 4 is a circuit diagram of the signal acquisition and processing module in the embodiment of the present invention.
如图4所示,信号采集与处理模块30包括4个相同设计的信号处理子模块和信号输入端子。其中一个信号处理子模块包括运算放大器OPA2227、电阻R15、电阻R16、电阻R17、电阻R18、电阻R19、电阻R20、电阻R21、电容C44、电容C45以及电容C46。As shown in FIG. 4 , the signal acquisition and processing module 30 includes four signal processing sub-modules and signal input terminals of the same design. One of the signal processing sub-modules includes the operational amplifier OPA2227, resistors R15, R16, R17, R18, R19, R20, R21, capacitors C44, C45 and C46.
电阻R17的一端连接运算运算放大器OPA2227的引脚1,另一端连接运算放大器OPA2227的引脚2。电阻R18的一端连接运算放大器OPA2227的引脚3,另一端连接信号输入端子的IN0口。电阻R19的一端连接运算放大器OPA2227的引脚3,另一端连接运算放大器OPA2227的引脚6和引脚7。电阻R20的一端连接运算放大器OPA2227的引脚6和引脚7,另一端连接到模拟信号转数字信号转换芯片的引脚64、电容C44以及电容C46。电阻R21的一端连接运算放大器OPA2227的引脚1,另一端连接模拟信号转数字信号转换芯片的引脚63、电容C45以及电容C44。电阻R15的一端连接地,另一端连接电阻R16。电阻R16的一端连接电阻R15,另一端连接运算放大器OPA2227的引脚2。电容C44的一端连接地,另一端连接模拟信号转数字信号转换芯片的引脚63、电容C45以及电阻C21。电容C46的一端连接地,另一端连接模拟信号转数字信号转换芯片的引脚64、电容C45以及电阻R20。One end of the resistor R17 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 2 of the operational amplifier OPA2227. One end of the resistor R18 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to the IN0 port of the signal input terminal. One end of the resistor R19 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to pins 6 and 7 of the operational amplifier OPA2227. One end of resistor R20 is connected to pin 6 and pin 7 of operational amplifier OPA2227, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, capacitor C44 and capacitor C46. One end of the resistor R21 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, capacitor C45 and capacitor C44. One end of resistor R15 is connected to ground, and the other end is connected to resistor R16. One end of resistor R16 is connected to resistor R15, and the other end is connected to pin 2 of operational amplifier OPA2227. One end of the capacitor C44 is connected to ground, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor C21. One end of the capacitor C46 is connected to ground, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, the capacitor C45, and the resistor R20.
本发明的实施方式Embodiments of the invention
图5是本发明的实施例中数据采集与处理逻辑流程图。Figure 5 is a logical flow chart of data collection and processing in the embodiment of the present invention.
如图5所示,数据接收与转换模块20和信号采集与处理模块30的运行逻辑流程为:As shown in Figure 5, the operating logic flow of the data receiving and converting module 20 and the signal acquisition and processing module 30 is:
步骤S1,判断是否有触发脉冲。Step S1, determine whether there is a trigger pulse.
步骤S2,经过450次模数转换采集数据,把最大的数据发送到公式函数。Step S2: Collect data after 450 analog-to-digital conversions, and send the largest data to the formula function.
步骤S3,经过公式运算后把最终处理的数据结果发送到显示模块上显示。Step S3: After formula operation, the final processed data result is sent to the display module for display.
报警模块40与主控制板的单片机模块10相连接,当被测信号超出设定限制时产生报警信号。The alarm module 40 is connected to the microcontroller module 10 of the main control board, and generates an alarm signal when the measured signal exceeds the set limit.
图6是本发明的实施例中报警模块的电路图。Figure 6 is a circuit diagram of the alarm module in the embodiment of the present invention.
如图6所示,报警模块40包括第二光耦隔离器PC817、电容C35、电容C36、电阻R14、电阻R15、电阻R16、二极管1N4148、两路继电器、NPN三极管8050、PNP三极管8550、电阻R17、电阻R18、LED灯6以及无源蜂鸣器。As shown in Figure 6, the alarm module 40 includes a second optocoupler isolator PC817, a capacitor C35, a capacitor C36, a resistor R14, a resistor R15, a resistor R16, a diode 1N4148, two relays, an NPN transistor 8050, a PNP transistor 8550, and a resistor R17. , resistor R18, LED light 6 and passive buzzer.
电容C35的一端连接第二光耦隔离器PC817的引脚1和+5V电源,另一端连接第二光耦隔离器PC817的引脚2,电容C36的一端连接光耦隔离器PC817的引脚3和地,另一端连接第二光耦隔离器PC817的引脚4。电阻R14的一端连接控制芯片的引脚93,另一端连接第二光耦隔离器PC817的引脚2。电阻R15的一端连接+5V电源,另一端连接第二光耦隔离器PC817的引脚4。电阻R16的一端连接第二光耦隔离器PC817的引脚4,另一端连接PNP三极管8550的基极。PNP三极管8550的发射极连接+5V电源,基极连接电阻R16,集电极连接两路继电器的引脚1。电阻R17的一端连接控制芯片的引脚94,另一端连接NPN三极管8050的基极。电阻R18的一端连接NPN三极管8050的发射极和无源蜂鸣器的引脚1,另一端连接LED灯6。LED灯6的一端连接电阻R18,另一端连接无源蜂鸣器的引脚2和地。One end of the capacitor C35 is connected to pin 1 of the second optocoupler isolator PC817 and the +5V power supply, the other end is connected to pin 2 of the second optocoupler isolator PC817, and one end of the capacitor C36 is connected to pin 3 of the optocoupler isolator PC817. and ground, and the other end is connected to pin 4 of the second optocoupler isolator PC817. One end of the resistor R14 is connected to pin 93 of the control chip, and the other end is connected to pin 2 of the second optocoupler isolator PC817. One end of resistor R15 is connected to the +5V power supply, and the other end is connected to pin 4 of the second optocoupler isolator PC817. One end of the resistor R16 is connected to pin 4 of the second optocoupler isolator PC817, and the other end is connected to the base of the PNP transistor 8550. The emitter of the PNP transistor 8550 is connected to the +5V power supply, the base is connected to the resistor R16, and the collector is connected to pin 1 of the two relays. One end of resistor R17 is connected to pin 94 of the control chip, and the other end is connected to the base of NPN transistor 8050. One end of resistor R18 is connected to the emitter of NPN transistor 8050 and pin 1 of the passive buzzer, and the other end is connected to LED light 6. One end of LED lamp 6 is connected to resistor R18, and the other end is connected to pin 2 of the passive buzzer and ground.
触发模块50包括触发采集子模块51、触发控制的单片机子模块52、触发控制的触发输出子模块53。触发采集子模块51与主控制板的单片机模块10相连接,触发控制的触发输出子模块53与触发控制的单片机子模块10和触发采集子模块51相连接。The trigger module 50 includes a trigger acquisition sub-module 51, a trigger-controlled microcontroller sub-module 52, and a trigger-controlled trigger output sub-module 53. The trigger collection sub-module 51 is connected to the microcontroller module 10 of the main control board, and the trigger output sub-module 53 of trigger control is connected to the trigger control microcontroller sub-module 10 and the trigger collection sub-module 51 .
图7是本发明的实施例中触发采集子模块的电路图。Figure 7 is a circuit diagram of the trigger collection sub-module in the embodiment of the present invention.
如图7所示,触发采集子模块51包括4个相同设计的触发采集装置和4路触发信号输入端子,触发信号输入端子为5-0V脉冲信号输入端口。As shown in Figure 7, the trigger collection sub-module 51 includes 4 trigger collection devices of the same design and 4 trigger signal input terminals. The trigger signal input terminal is a 5-0V pulse signal input port.
其中一个触发采集装置包括第一光耦隔离器PC817、电容C27、电容C28、电阻R6、电阻R7。One of the trigger acquisition devices includes a first optocoupler isolator PC817, capacitor C27, capacitor C28, resistor R6, and resistor R7.
电容C27的一端连接第一光耦隔离器PC817的引脚3和地,另一端连接第一光耦隔离器PC817的引脚4、电阻R6以及控制芯片的引脚98。电容C28的一端连接第一光耦隔离器PC817的引脚2和触发信号输入端子的引脚1,另一端连接第一光耦隔离器PC817的引脚1和电阻R7。电阻R6的一端连接3.3V电源,电阻R7的一端连接第一光耦隔离器PC817的引脚1,另一端连接5V电源。One end of the capacitor C27 is connected to pin 3 of the first optocoupler isolator PC817 and ground, and the other end is connected to pin 4 of the first optocoupler isolator PC817, resistor R6 and pin 98 of the control chip. One end of the capacitor C28 is connected to pin 2 of the first optocoupler isolator PC817 and pin 1 of the trigger signal input terminal, and the other end is connected to pin 1 of the first optocoupler isolator PC817 and the resistor R7. One end of the resistor R6 is connected to the 3.3V power supply, one end of the resistor R7 is connected to pin 1 of the first optocoupler isolator PC817, and the other end is connected to the 5V power supply.
图8是本发明的实施例中触发控制的单片机子模块的电路图。FIG. 8 is a circuit diagram of a trigger-controlled microcontroller submodule in an embodiment of the present invention.
如图8所示,触发控制的单片机子模块52包括单片机STC12C5A60S2、电容C5、电阻R1、电容C1、电容C2、电容C3、电容C4、晶振X1。As shown in Figure 8, the trigger-controlled microcontroller sub-module 52 includes a microcontroller STC12C5A60S2, capacitor C5, resistor R1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, and crystal oscillator X1.
电容C5的一端连接电源VCC,另一端连接电阻R1和单片机STC12C5A60S2的引脚9。电阻R1的一端连接电容C5和单片机STC12C5A60S2的引脚9,另一端连接地。电容R1和电容R2并联,一端连接电源VCC和单片机STC12C5A60S2的引脚40,另一端连接地。电容C3的一端连接电容C4和单片机STC12C5A60S2的引脚20,另一端连接晶振X1和单片机STC12C5A60S2的引脚18。电容C4的一端连接电容C3和单片机STC12C5A60S2的引脚20,另一端连接晶振X1和单片机STC12C5A60S2的引脚19。晶振X1的一端连接电容C3和单片机STC12C5A60S2的引脚18,另一端连接电容C4和单片机STC12C5A60S2的引脚19。One end of the capacitor C5 is connected to the power supply VCC, and the other end is connected to the resistor R1 and pin 9 of the microcontroller STC12C5A60S2. One end of resistor R1 is connected to capacitor C5 and pin 9 of microcontroller STC12C5A60S2, and the other end is connected to ground. Capacitor R1 and capacitor R2 are connected in parallel, one end is connected to the power supply VCC and pin 40 of the microcontroller STC12C5A60S2, and the other end is connected to ground. One end of capacitor C3 is connected to capacitor C4 and pin 20 of microcontroller STC12C5A60S2, and the other end is connected to crystal oscillator X1 and pin 18 of microcontroller STC12C5A60S2. One end of capacitor C4 is connected to capacitor C3 and pin 20 of microcontroller STC12C5A60S2, and the other end is connected to crystal oscillator X1 and pin 19 of microcontroller STC12C5A60S2. One end of the crystal oscillator X1 is connected to the capacitor C3 and pin 18 of the microcontroller STC12C5A60S2, and the other end is connected to the capacitor C4 and pin 19 of the microcontroller STC12C5A60S2.
图9是本发明的实施例中触发控制的触发输出子模块的电路图。Figure 9 is a circuit diagram of a trigger output sub-module of trigger control in an embodiment of the present invention.
如图9所示,触发控制的触发输出子模块53包括4个并联的相同设计的触发输出装置。触发输出装置包括光耦隔离器PC817C、电阻R3、电阻R21。As shown in FIG. 9 , the trigger output sub-module 53 of trigger control includes four parallel-connected trigger output devices of the same design. The trigger output device includes optocoupler isolator PC817C, resistor R3, and resistor R21.
电阻R3的一端连接电源VCC,另一端连接光耦隔离器PC817C的1号引脚。光耦隔离器PC817C的2号触发信号输入引脚与单片机STC12C5A60S2的引脚3与相连。电阻R21的一端与光耦隔离器PC817C的4号触发信号输出引脚和触发信号输出端子连接,另一端与外接信号输入端子正极相连。光耦隔离器PC817C的3号引脚与地相连。One end of the resistor R3 is connected to the power supply VCC, and the other end is connected to pin 1 of the optocoupler isolator PC817C. The No. 2 trigger signal input pin of the optocoupler isolator PC817C is connected to the pin 3 of the microcontroller STC12C5A60S2. One end of resistor R21 is connected to the No. 4 trigger signal output pin and trigger signal output terminal of the optocoupler isolator PC817C, and the other end is connected to the positive pole of the external signal input terminal. Pin 3 of the optocoupler isolator PC817C is connected to ground.
图10是本发明的实施例中触发模块逻辑流程图。Figure 10 is a logic flow chart of the trigger module in the embodiment of the present invention.
如图10所示,触发模块的运行逻辑流程为:As shown in Figure 10, the operation logic flow of the trigger module is:
步骤S1,触发前,会进行自行检查保证四个通道能够进行触发。默认会进行四个通道同时触发。如需要修改,可手动按加键或减键进行需要触发的通道数的调节。Step S1, before triggering, a self-check will be performed to ensure that the four channels can be triggered. By default, four channels will be triggered simultaneously. If you need to modify it, you can manually press the plus or minus key to adjust the number of channels that need to be triggered.
步骤S2,第一次按下SET设置键后,数码管会显示当前的触发速度的级别。如需要修改,可手动按加键或减键进行需要触发的速度的调节。Step S2, after pressing the SET key for the first time, the digital tube will display the current trigger speed level. If you need to modify it, you can manually press the plus or minus key to adjust the speed that needs to be triggered.
步骤S3,再次按下SET设置键后,数码管会显示当前的触发维持时间的级别。如需要修改,可手动按加键或减键进行需要触发的维持时间的调节。Step S3, after pressing the SET key again, the digital tube will display the current level of the trigger holding time. If you need to modify it, you can manually press the plus or minus key to adjust the maintenance time that needs to be triggered.
步骤S4,最后再次按下SET设置键,退出设置模式,发送触发信号。Step S4, finally press the SET setting key again to exit the setting mode and send the trigger signal.
电源模块60用于为各个模块供电。The power module 60 is used to provide power to each module.
图11是本发明的实施例中电源模块的电路图。Figure 11 is a circuit diagram of a power module in an embodiment of the present invention.
如图11所示,电源模块60包括一个24V输入子模块61、一个12V电压转换子模块62、两个设计相同的5V电压转换子模块63以及一个24V转±9V子模块64。As shown in Figure 11, the power module 60 includes a 24V input sub-module 61, a 12V voltage conversion sub-module 62, two 5V voltage conversion sub-modules 63 with the same design, and a 24V to ±9V sub-module 64.
24V输入子模块61包括输入端子J1、保险丝F1、电容C1、电流滤波器T1。The 24V input sub-module 61 includes an input terminal J1, a fuse F1, a capacitor C1, and a current filter T1.
保险丝F1的一端连接在输入端子J1的2号引脚上,另一端连接在电流滤波器T1的1号引脚上,输入端子J1的1号引脚连接电流滤波器T1的4号引脚上,电容C1的一端连接在电流滤波器T1的2号引脚和24V电源上,另一端连接电流滤波器T1的3号引脚和地。One end of the fuse F1 is connected to pin 2 of the input terminal J1, the other end is connected to pin 1 of the current filter T1, and pin 1 of the input terminal J1 is connected to pin 4 of the current filter T1. , one end of capacitor C1 is connected to pin 2 of current filter T1 and the 24V power supply, and the other end is connected to pin 3 of current filter T1 and ground.
12V电压转换子模块62包括电解电容C28、电容C3、电压转换模块U1、电解电容C4、电容C5、发光二极管VD1、电阻R1。The 12V voltage conversion sub-module 62 includes electrolytic capacitor C28, capacitor C3, voltage conversion module U1, electrolytic capacitor C4, capacitor C5, light-emitting diode VD1, and resistor R1.
电解电容C2的正极连接电容C3、+24V电源以及电压转换模块U1的2号引脚,负极连接电容C3、地以及电压转换模块U1的1号引脚,电解电容C4的正极连接电容C5、+12V电源、电压转换模块U1的3号引脚以及发光二极管VD1的正极,负极连接电容C5、地、电压转换模块U1的4号引脚以及电阻R1,电阻R1的另一端与发光二极管VD1的负极连接。The positive electrode of electrolytic capacitor C2 is connected to capacitor C3, +24V power supply and pin 2 of voltage conversion module U1, the negative electrode is connected to capacitor C3, ground and pin 1 of voltage conversion module U1, and the positive electrode of electrolytic capacitor C4 is connected to capacitor C5, + The 12V power supply, pin 3 of the voltage conversion module U1 and the anode of the light-emitting diode VD1, the cathode is connected to the capacitor C5, ground, pin 4 of the voltage conversion module U1 and resistor R1, the other end of the resistor R1 is connected to the cathode of the light-emitting diode VD1 connect.
5V电压转换子模块63包括电解电容C6、电容C7、电压转换模块U2、电解电容C8、电容C9、发光二极管VD2以及电阻R2。The 5V voltage conversion sub-module 63 includes electrolytic capacitor C6, capacitor C7, voltage conversion module U2, electrolytic capacitor C8, capacitor C9, light-emitting diode VD2 and resistor R2.
电解电容C6的正极连接电容C7、+24V电源以及电压转换模块U2的2号引脚,负极连接电容C7、地、以及电压转换模块U2的1号引脚,电解电容C8的正极连接电容C9、+12V电源、电压转换模块U2的3号引脚以及发光二极管VD2的正极,负极连接电容C8、地、电压转换模块U2的4号引脚以及电阻R2,电阻R2的另一端与发光二极管VD2的负极连接。The positive electrode of electrolytic capacitor C6 is connected to capacitor C7, +24V power supply, and pin 2 of voltage conversion module U2. The negative electrode is connected to capacitor C7, ground, and pin 1 of voltage conversion module U2. The positive electrode of electrolytic capacitor C8 is connected to capacitor C9, +12V power supply, pin 3 of the voltage conversion module U2 and the anode of the light-emitting diode VD2. The cathode is connected to the capacitor C8, ground, pin 4 of the voltage conversion module U2 and resistor R2. The other end of the resistor R2 is connected to the anode of the light-emitting diode VD2. Negative connection.
24V转±9V子模块64包括电解电容C14、电容C11、电压转换模块U4、电解电容C16、电容C17、电解电容C20、电容C21、发光二极管VD4、电阻R4、发光二极管VD5以及电阻R5。The 24V to ±9V sub-module 64 includes electrolytic capacitor C14, capacitor C11, voltage conversion module U4, electrolytic capacitor C16, capacitor C17, electrolytic capacitor C20, capacitor C21, light-emitting diode VD4, resistor R4, light-emitting diode VD5 and resistor R5.
电解电容C14的正极连接电容C11、+24V电源与电压转换模块U4的1号引脚,负极连接电容C11、地以及电压转换模块U4的2号引脚,电容C16的正极连接电容C17、+9V电源、发光二极管VD4的正极以及电压转换模块U4的6号引脚,负极与电解电容C20正极、电容C17、电阻R4、电容C21、地、电阻R5以及电源转换模块U4的5号引脚相连,电解电阻C20与电阻R21、-9V电源以及发光二极管VD5的负极相连,电阻R5与发光二极管VD5正极相连,电阻R4与发光二极管VD4的正极相连。The positive electrode of electrolytic capacitor C14 is connected to capacitor C11, +24V power supply and pin 1 of voltage conversion module U4, the negative electrode is connected to capacitor C11, ground and pin 2 of voltage conversion module U4, and the positive electrode of capacitor C16 is connected to capacitor C17, +9V The positive electrode of the power supply, the light-emitting diode VD4 and the No. 6 pin of the voltage conversion module U4, and the negative electrode are connected to the positive electrode of the electrolytic capacitor C20, capacitor C17, resistor R4, capacitor C21, ground, resistor R5 and the No. 5 pin of the power conversion module U4. The electrolytic resistor C20 is connected to the resistor R21, the -9V power supply and the cathode of the light-emitting diode VD5, the resistor R5 is connected to the anode of the light-emitting diode VD5, and the resistor R4 is connected to the anode of the light-emitting diode VD4.
显示模块70为可触摸迪文液晶显示屏,其主控芯片是迪文K600+,用于图像和数据处理,可触摸迪文液晶显示屏包括处理芯片子模块71。The display module 70 is a touchable DWIN LCD display, and its main control chip is DWIN K600+, which is used for image and data processing. The touchable DWIN LCD display includes a processing chip sub-module 71 .
图12是本发明的实施例中可触摸迪文液晶显示屏的电路图。Figure 12 is a circuit diagram of a touchable DWIN LCD display in an embodiment of the present invention.
如图12所示,处理芯片子模块包括电容C33、电容C34、电容C35、电容C36、单片机MAX3232ECPE、端口P5以及端口P6。As shown in Figure 12, the processing chip sub-module includes capacitor C33, capacitor C34, capacitor C35, capacitor C36, microcontroller MAX3232ECPE, port P5 and port P6.
电容C33的一端与单片机MAX3232ECPE的1号引脚相连,另一端与单片机MAX3232ECPE的3号引脚相连,电容C36的一端与单片机MAX3232ECPE的4号引脚相连,另一端与单片机MAX3232ECPE的号引脚相连,电容C34的一端与电容C35和地相连,另一端与单片机MAX3232ECPE的2号引脚相连,电容C35的一端与电容C34和地相连,另一端与单片机MAX3232ECPE的6号引脚相连,单片机MAX3232ECPE的7号引脚与端口P6的3号引脚相连,单片机MAX3232ECPE的8号引脚与端口P6的3号引脚相连。One end of the capacitor C33 is connected to pin 1 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE. One end of the capacitor C36 is connected to pin 4 of the single-chip computer MAX3232ECPE, and the other end is connected to pin 3 of the single-chip computer MAX3232ECPE. , one end of capacitor C34 is connected to capacitor C35 and ground, the other end is connected to pin 2 of microcontroller MAX3232ECPE, one end of capacitor C35 is connected to capacitor C34 and ground, the other end is connected to pin 6 of microcontroller MAX3232ECPE, the microcontroller MAX3232ECPE Pin No. 7 is connected to pin No. 3 of port P6, and pin No. 8 of the microcontroller MAX3232ECPE is connected to pin No. 3 of port P6.
图13是本发明的实施例中控制终端显示模块流程图。Figure 13 is a flow chart of the control terminal display module in the embodiment of the present invention.
如图13所示,显示模块的运行逻辑流程为:As shown in Figure 13, the operation logic flow of the display module is:
步骤S1,系统初始化完成后自动切换到首页(单通道数据显示页面。诺系统正在采集数据,则会直接显示数据。);Step S1, after the system initialization is completed, it automatically switches to the homepage (single-channel data display page. If the system is collecting data, the data will be displayed directly.);
步骤S2,选择要跳转到页面点击按钮,可以选择的页面有通道选择、参数设置、历史记录。Step S2, select the page to jump to and click the button. The pages that can be selected include channel selection, parameter settings, and history records.
步骤S3,查看历史记录或者查看其他通道值以及输入密码修改参数值;Step S3, check historical records or other channel values and enter the password to modify parameter values;
步骤S4,回到首页。Step S4, return to the home page.
本实施例中,通道选择可以对需要显示的采集通道进行选择。可以选择单通道、双通道、四通道。单通道只显示通道一采集的数据。双通道显示可同时显示通道一、通道二采集的数据和两个通道采集的数据总和。四通道可同时显示通道一、通道二、通道三、通道四采集的数据和四个通道采集的数据总和。In this embodiment, the channel selection can select the acquisition channel that needs to be displayed. You can choose single channel, dual channel, or four channel. Single channel only displays the data collected by channel one. The dual-channel display can simultaneously display the data collected by channel one and channel two and the sum of the data collected by the two channels. The four channels can simultaneously display the data collected by channel one, channel two, channel three, channel four and the sum of the data collected by the four channels.
参数设置可以对本系统的参数进行设置。进入之后需要输入密码,密码正确后才可以对参数进行更改。参数设置主页可以显示当前的各个通道的参数目前的数值。可以更改的参数有传感器规格、参考参数、过载值、校准系数。Parameter setting can set the parameters of this system. After entering, you need to enter a password. Only when the password is correct can you change the parameters. The parameter setting home page can display the current values of the parameters of each channel. Parameters that can be changed include sensor specifications, reference parameters, overload values, and calibration coefficients.
历史记录可以显示各个通道报警时间和报警时的数据采集结果。The history record can display the alarm time of each channel and the data collection results at the time of alarm.
本实施例中,主控制板的单片机模块10还包括输入输出模块11。In this embodiment, the microcontroller module 10 of the main control board also includes an input and output module 11 .
图14是本发明的实施例中的主处理器电路板模块图。Figure 14 is a main processor circuit board module diagram in an embodiment of the present invention.
如图14所示,信号隔离输入模块30为信号采集与处理模块30,信号转换处理模块20为数据接收与转换模块20,主处理器模块11为主控制板的单片机模块10。电源模块60通过输入输出模块12给信号转换模块20、主处理器模块10、信号隔离输入模块30供电。信号隔离输入模块30从输入输出模块12得到信号后传输给信号转换模块20,信号转换模块20对信号进行模数转换后传输给主处理器模块10处理,然后再通过输入输出模块11传输给显示模块70。As shown in Figure 14, the signal isolation input module 30 is the signal acquisition and processing module 30, the signal conversion and processing module 20 is the data reception and conversion module 20, and the main processor module 11 is the microcontroller module 10 of the main control board. The power module 60 supplies power to the signal conversion module 20, the main processor module 10, and the signal isolation input module 30 through the input and output module 12. The signal isolation input module 30 obtains the signal from the input and output module 12 and transmits it to the signal conversion module 20. The signal conversion module 20 performs analog-to-digital conversion on the signal and transmits it to the main processor module 10 for processing, and then transmits it to the display through the input and output module 11. Module 70.
本实施例还提供了一种工业信号采集与触发方法。This embodiment also provides an industrial signal collection and triggering method.
图15是本发明的实施例中的工业信号采集与触发方法运行逻辑流程图。Figure 15 is a logic flow chart of the operation of the industrial signal acquisition and triggering method in the embodiment of the present invention.
如图15所示,本实施例中的工业信号采集与触发方法包括以下步骤:As shown in Figure 15, the industrial signal acquisition and triggering method in this embodiment includes the following steps:
步骤S1,通过显示模块设置参数。Step S1: Set parameters through the display module.
步骤S2,触发模块发出触发信号。Step S2: The trigger module sends a trigger signal.
步骤S3,信号采集与处理模块接收到触发信号后对采集通道进行数据采集。Step S3: After receiving the trigger signal, the signal acquisition and processing module collects data from the acquisition channel.
步骤S4,信号采集与处理模块把处理结果发送到数据接收与转换模块上转换为数字信号,数字信号被发送至主控制板的单片机模块。In step S4, the signal acquisition and processing module sends the processing results to the data receiving and conversion module and converts them into digital signals. The digital signals are sent to the microcontroller module of the main control board.
步骤S5,显示模块上显示处理后的数据。Step S5: The processed data is displayed on the display module.
工业实用性Industrial applicability
本发明的工业信号采集与触发系统涉及工业信号检测、采集、处理以及可根据采集需求产生特定触发信号,可以对四路不同类型的工业标准输出(电压、电流)变送器进行采集、处理和显示,采用可触控工业级显示屏以达到良好的人机交互性和降低参数修改难度,并且提高了系统的可移植性;能够模拟各类工控触发信号,16种触发模式可以选、触发速度可调,还能够调节触发频率、触发时间、触发间隔时间参数,能够设置采集信号的上限,以及当被测信号超出设定限制时产生报警信号并进行记录。The industrial signal acquisition and triggering system of the present invention involves industrial signal detection, acquisition, processing and can generate specific trigger signals according to acquisition requirements. It can collect, process and generate four different types of industrial standard output (voltage, current) transmitters. Display adopts touch-control industrial-grade display to achieve good human-computer interaction and reduce the difficulty of parameter modification, and improves the portability of the system; it can simulate various industrial control trigger signals, 16 trigger modes can be selected, trigger speed It is adjustable and can also adjust the trigger frequency, trigger time, trigger interval time parameters, set the upper limit of the collected signal, and generate and record an alarm signal when the measured signal exceeds the set limit.
此外,本发明的工业信号采集与触发系统为了防止特定参数被恶意篡改而设定密码保护,只有密码正确才可以对特定参数进行修改以来确保关键参数的安全。特定参数包括传感器规格、参考参数、过载值、校准系数。在使用本系统时,当需要采集不同类型的工业信号时,则需要通过控制终端调整其传感器规格和参考参数,通过和标准信号对比调整校准系数来提高采集精度。如过对信号的强度需要警示时,则调整其过载值以来应对不同的报警需求。控制终端上能实时显示实时的信号采集的大小。设置了多通道采集,且各个通道可单独设置参数,各个通道是独立的,通道之间不会互相影响。In addition, the industrial signal acquisition and triggering system of the present invention sets password protection to prevent specific parameters from being maliciously tampered with. Only if the password is correct can the specific parameters be modified to ensure the security of key parameters. Specific parameters include sensor specifications, reference parameters, overload values, and calibration coefficients. When using this system, when you need to collect different types of industrial signals, you need to adjust the sensor specifications and reference parameters through the control terminal, and adjust the calibration coefficient to improve the collection accuracy by comparing it with the standard signal. If the signal strength requires an alert, adjust its overload value to cope with different alarm requirements. The control terminal can display the real-time signal collection size in real time. Multi-channel acquisition is set up, and the parameters of each channel can be set independently. Each channel is independent and the channels will not affect each other.

Claims (1)

  1. 一种工业信号采集与触发系统,其特征在于,包括:An industrial signal acquisition and triggering system, which is characterized by including:
    主控制板的单片机模块,至少包括控制芯片;The microcontroller module of the main control board, at least including the control chip;
    数据接收与转换模块,与所述主控制板的单片机模块相连接,用于数据接收以及将模拟信号转换为数字信号,并将所述数字信号发送至所述主控制板的单片机模块,所述数据接收与转换模块至少包括模拟信号转数字信号的转换芯片;A data receiving and conversion module is connected to the single-chip computer module of the main control board, used for data reception and converting analog signals into digital signals, and sending the digital signals to the single-chip computer module of the main control board. The data receiving and conversion module at least includes a conversion chip for converting analog signals into digital signals;
    信号采集与处理模块,与所述数据接收与转换模块相连接,用于采集各类工业传感器发出的工业信号;A signal acquisition and processing module, connected to the data receiving and conversion module, is used to collect industrial signals emitted by various industrial sensors;
    触发模块,与所述主控制板的单片机模块和所述信号采集与处理模块相连接,用于采集并输出触发信号;以及显示模块,与所述主控制板的单片机模块相连接,用于显示信息与人机交互。a trigger module, connected to the microcontroller module of the main control board and the signal acquisition and processing module, for collecting and outputting trigger signals; and a display module, connected to the microcontroller module of the main control board, for display Information and human-computer interaction.
    2. 根据权利要求1所述的工业信号采集与触发系统,其特征在于:2. The industrial signal acquisition and triggering system according to claim 1, characterized in that:
    其中,所述主控制板的单片机模块还包括时钟电路、工作状态指示灯、电源、下载接口、复位电路、存储芯片、滤波电路,均连接在所述控制芯片上,所述存储芯片是24C1024,Among them, the microcontroller module of the main control board also includes a clock circuit, a working status indicator light, a power supply, a download interface, a reset circuit, a memory chip, and a filter circuit, all of which are connected to the control chip. The memory chip is 24C1024.
    所述控制芯片为C8051F120,The control chip is C8051F120,
    所述模拟信号转数字信号转换芯片为ADS8365,用于提高采集精度和单片机直接进行通信,The analog signal to digital signal conversion chip is ADS8365, which is used to improve the collection accuracy and communicate directly with the microcontroller.
    所述控制芯片的引脚29、引脚30、引脚31、引脚32、引脚33、引脚34、引脚35、引脚36、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46分别与所述模拟信号转数字信号转换芯片的引脚33、引脚34、引脚35、引脚36、引脚37、引脚38、引脚39、引脚40、引脚41、引脚42、引脚43、引脚44、引脚45、引脚46、引脚47、引脚48连接。Pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 39, pin 40, pin 41, and pin of the control chip Pin 42, pin 43, pin 44, pin 45, and pin 46 are respectively connected with pins 33, pin 34, pin 35, pin 36, and pin 37 of the analog signal to digital signal conversion chip. Pin 38, Pin 39, Pin 40, Pin 41, Pin 42, Pin 43, Pin 44, Pin 45, Pin 46, Pin 47, Pin 48 are connected.
    3. 根据权利要求1所述的工业信号采集与触发系统,其特征在于:3. The industrial signal acquisition and triggering system according to claim 1, characterized in that:
    其中,所述数据接收与转换模块还包括电容C37、电容C38、电容C39、电容C40、电容C41以及电阻R14,Among them, the data receiving and conversion module also includes capacitor C37, capacitor C38, capacitor C39, capacitor C40, capacitor C41 and resistor R14,
    所述电容C37的一端连接地,另一端连接+5V电源,One end of the capacitor C37 is connected to ground, and the other end is connected to the +5V power supply.
    所述电容C38的一端连接地,另一端连接+5V电源,One end of the capacitor C38 is connected to ground, and the other end is connected to the +5V power supply.
    所述电容C39和电容C40并联在电容C41上,一端连接所述模拟信号转数字信号转换芯片的引脚61和引脚62,另一端连接所述电阻R14的一端,所述电阻R14的另一端连接地。The capacitor C39 and the capacitor C40 are connected in parallel to the capacitor C41, one end is connected to the pin 61 and the pin 62 of the analog signal to digital signal conversion chip, the other end is connected to one end of the resistor R14, and the other end of the resistor R14 Connect to ground.
    4. 根据权利要求1所述的工业信号采集与触发系统,其特征在于:4. The industrial signal acquisition and triggering system according to claim 1, characterized in that:
    其中,所述信号采集与处理模块包括4个相同设计的信号处理子模块和信号输入端子,Among them, the signal acquisition and processing module includes 4 signal processing sub-modules and signal input terminals of the same design,
    其中一个所述信号处理子模块包括运算放大器OPA2227、电阻R15、电阻R16、电阻R17、电阻R18、电阻R19、电阻R20、电阻R21、电容C44、电容C45以及电容C46,One of the signal processing sub-modules includes an operational amplifier OPA2227, resistors R15, R16, R17, R18, R19, R20, R21, capacitors C44, C45 and C46,
    所述电阻R17的一端连接所述运算放大器OPA2227的引脚1,另一端连接所述运算放大器OPA2227的引脚2,One end of the resistor R17 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 2 of the operational amplifier OPA2227.
    所述电阻R18的一端连接所述运算放大器OPA2227的引脚3,另一端连接信号输入端子的IN0口,One end of the resistor R18 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to the IN0 port of the signal input terminal.
    所述电阻R19的一端连接所述运算放大器OPA2227的引脚3,另一端连接所述运算放大器OPA2227的引脚6和引脚7,One end of the resistor R19 is connected to pin 3 of the operational amplifier OPA2227, and the other end is connected to pins 6 and 7 of the operational amplifier OPA2227,
    所述电阻R20的一端连接所述运算放大器OPA2227的引脚6和引脚7,另一端连接到所述模拟信号转数字信号转换芯片的引脚64、所述电容C44以及所述电容C46,One end of the resistor R20 is connected to pin 6 and pin 7 of the operational amplifier OPA2227, and the other end is connected to pin 64 of the analog signal to digital signal conversion chip, the capacitor C44 and the capacitor C46,
    所述电阻R21的一端连接所述运算放大器OPA2227的引脚1,另一端连接所述模拟信号转数字信号转换芯片的引脚63、电容C45以及电容C44,One end of the resistor R21 is connected to pin 1 of the operational amplifier OPA2227, and the other end is connected to pin 63 of the analog signal to digital signal conversion chip, capacitor C45 and capacitor C44,
    所述电阻R15的一端连接地,另一端连接电阻R16,One end of the resistor R15 is connected to ground, and the other end is connected to the resistor R16.
    所述电阻R16的一端连接电阻R15,另一端连接所述运算放大器OPA2227的引脚2,One end of the resistor R16 is connected to the resistor R15, and the other end is connected to pin 2 of the operational amplifier OPA2227.
    所述电容C44的一端连接地,另一端连接所述模拟信号转数字信号转换芯片的引脚63、电容C45以及电阻C21,One end of the capacitor C44 is connected to ground, and the other end is connected to the pin 63 of the analog signal to digital signal conversion chip, the capacitor C45 and the resistor C21.
    所述电容C46的一端连接地,另一端连接所述模拟信号转数字信号转换芯片的引脚64、电容C45以及电阻R20。One end of the capacitor C46 is connected to ground, and the other end is connected to the pin 64 of the analog signal to digital signal conversion chip, the capacitor C45 and the resistor R20.
    5. 根据权利要求1所述的工业信号采集与触发系统,其特征在于:5. The industrial signal acquisition and triggering system according to claim 1, characterized in that:
    其中,所述触发模块包括触发采集子模块、触发控制的单片机子模块以及触发控制的触发输出子模块,Wherein, the trigger module includes a trigger collection sub-module, a trigger-controlled microcontroller sub-module and a trigger-controlled trigger output sub-module.
    所述触发采集子模块与所述主控制板的单片机模块相连接,所述触发控制的触发输出子模块与所述触发控制的单片机子模块和所述触发采集子模块相连接。The trigger collection sub-module is connected to the microcontroller module of the main control board, and the trigger output sub-module of trigger control is connected to the trigger control microcontroller sub-module and the trigger collection sub-module.
    6. 根据权利要求5所述的工业信号采集与触发系统,其特征在于:6. The industrial signal acquisition and triggering system according to claim 5, characterized in that:
    其中,所述触发采集子模块包括4个相同设计的触发采集装置和4路触发信号输入端子,所述触发信号输入端子为0-5V脉冲信号输入端口,其中一个所述触发采集装置包括第一光耦隔离器PC817、电容C27、电容C28、电阻R6、电阻R7,所述电容C27的一端连接所述第一光耦隔离器PC817的引脚3和地,另一端连接第一光耦隔离器PC817的引脚4、电阻R6以及所述控制芯片的引脚98,所述电容C28的一端连接所述第一光耦隔离器PC817的引脚2和所述触发信号输入端子的引脚1,另一端连接所述第一光耦隔离器PC817的引脚1和所述电阻R7,电阻R6的一端连接3.3V电源,电阻R7的一端连接所述第一光耦隔离器PC817的引脚1,另一端连接5V电源,Among them, the trigger acquisition sub-module includes 4 trigger acquisition devices of the same design and 4 trigger signal input terminals. The trigger signal input terminal is a 0-5V pulse signal input port, and one of the trigger acquisition devices includes a first Optocoupler isolator PC817, capacitor C27, capacitor C28, resistor R6, resistor R7. One end of the capacitor C27 is connected to pin 3 of the first optocoupler isolator PC817 and ground, and the other end is connected to the first optocoupler isolator. Pin 4 of PC817, resistor R6 and pin 98 of the control chip, one end of the capacitor C28 is connected to pin 2 of the first optocoupler isolator PC817 and pin 1 of the trigger signal input terminal, The other end is connected to pin 1 of the first optocoupler isolator PC817 and the resistor R7, one end of the resistor R6 is connected to the 3.3V power supply, and one end of the resistor R7 is connected to pin 1 of the first optocoupler isolator PC817. Connect the other end to the 5V power supply,
    所述触发控制的单片机子模块包括单片机STC12C5A60S2、电容C5、电阻R1、电容C1、电容C2、电容C3、电容C4、晶振X1,所述电容C5的一端连接电源VCC,另一端连接所述电阻R1和所述单片机STC12C5A60S2的引脚9,所述电阻R1的一端连接所述电容C5和所述单片机STC12C5A60S2的引脚9,另一端连接地,所述电容R1和电容R2并联,一端连接电源VCC和所述单片机STC12C5A60S2的引脚40,另一端连接地,所述电容C3的一端连接所述电容C4和所述单片机STC12C5A60S2的引脚20,另一端连接所述晶振X1和所述单片机STC12C5A60S2的引脚18,所述电容C4的一端连接所述电容C3和所述单片机STC12C5A60S2的引脚20,另一端连接所述晶振X1和所述单片机STC12C5A60S2的引脚19,所述晶振X1的一端连接所述电容C3和所述单片机STC12C5A60S2的引脚18,另一端连接所述电容C4和所述单片机STC12C5A60S2的引脚19,The trigger-controlled microcontroller sub-module includes microcontroller STC12C5A60S2, capacitor C5, resistor R1, capacitor C1, capacitor C2, capacitor C3, capacitor C4, and crystal oscillator X1. One end of the capacitor C5 is connected to the power supply VCC, and the other end is connected to the resistor R1. and pin 9 of the single-chip computer STC12C5A60S2. One end of the resistor R1 is connected to the capacitor C5 and pin 9 of the single-chip computer STC12C5A60S2. The other end is connected to ground. The capacitor R1 and capacitor R2 are connected in parallel. One end is connected to the power supply VCC and The other end of the pin 40 of the single-chip computer STC12C5A60S2 is connected to ground. One end of the capacitor C3 is connected to the capacitor C4 and the pin 20 of the single-chip computer STC12C5A60S2. The other end is connected to the crystal oscillator X1 and the pin of the single-chip computer STC12C5A60S2. 18. One end of the capacitor C4 is connected to the capacitor C3 and the pin 20 of the single-chip computer STC12C5A60S2, the other end is connected to the crystal oscillator X1 and the pin 19 of the single-chip computer STC12C5A60S2, and one end of the crystal oscillator X1 is connected to the capacitor. C3 and pin 18 of the single-chip computer STC12C5A60S2, and the other end is connected to the capacitor C4 and pin 19 of the single-chip computer STC12C5A60S2.
    所述触发控制的触发输出子模块包括4个并联的相同设计的触发输出装置,所述触发输出装置包括光耦隔离器PC817C、电阻R3、电阻R21,所述电阻R3的一端连接电源VCC,另一端连接所述光耦隔离器PC817C的1号引脚,所述光耦隔离器PC817C的2号触发信号输入引脚与所述单片机STC12C5A60S2的引脚3与相连,所述电阻R21的一端与所述光耦隔离器PC817C的4号触发信号输出引脚和触发信号输出端子连接,另一端与外接信号输入端子正极相连,所述光耦隔离器PC817C的3号引脚与地相连。The trigger output sub-module of the trigger control includes four trigger output devices of the same design connected in parallel. The trigger output device includes an optocoupler isolator PC817C, a resistor R3, and a resistor R21. One end of the resistor R3 is connected to the power supply VCC, and the other is connected to the power supply VCC. One end is connected to pin No. 1 of the optocoupler isolator PC817C, trigger signal input pin No. 2 of the optocoupler isolator PC817C is connected to pin 3 of the microcontroller STC12C5A60S2, and one end of the resistor R21 is connected to the The No. 4 trigger signal output pin of the optocoupler isolator PC817C is connected to the trigger signal output terminal, the other end is connected to the positive pole of the external signal input terminal, and the No. 3 pin of the optocoupler isolator PC817C is connected to the ground.
    7. 根据权利要求1所述的工业信号采集与触发系统,其特征在于:7. The industrial signal acquisition and triggering system according to claim 1, characterized in that:
    其中,所述显示模块为可触摸迪文液晶显示屏,其主控芯片是迪文K600+,用于图像和数据处理,Among them, the display module is a touchable DWIN LCD display, and its main control chip is DWIN K600+, which is used for image and data processing.
    所述可触摸迪文液晶显示屏包括处理芯片子模块,The touchable DWIN LCD screen includes a processing chip sub-module,
    所述处理芯片子模块包括电容C33、电容C34、电容C35、电容C36、单片机MAX3232ECPE、端口P5以及端口P6,The processing chip sub-module includes capacitor C33, capacitor C34, capacitor C35, capacitor C36, microcontroller MAX3232ECPE, port P5 and port P6,
    所述单片机MAX3232ECPE的引脚10、引脚9、引脚11、引脚12与所述控制芯片的引脚62、引脚61、引脚60、引脚59连接,Pins 10, 9, 11, and 12 of the microcontroller MAX3232ECPE are connected to pins 62, 61, 60, and 59 of the control chip,
    所述电容C33的一端与所述单片机MAX3232ECPE的1号引脚相连,另一端与所述单片机MAX3232ECPE的3号引脚相连,所述电容C36的一端与所述单片机MAX3232ECPE的4号引脚相连,另一端与所述单片机MAX3232ECPE的号引脚相连,所述电容C34的一端与所述电容C35和地相连,另一端与所述单片机MAX3232ECPE的2号引脚相连,所述电容C35的一端与所述电容C34和地相连,另一端与所述单片机MAX3232ECPE的6号引脚相连,所述单片机MAX3232ECPE的7号引脚与所述端口P6的3号引脚相连,所述单片机MAX3232ECPE的8号引脚与端口P6的3号引脚相连。One end of the capacitor C33 is connected to pin No. 1 of the single-chip computer MAX3232ECPE, and the other end is connected to pin No. 3 of the single-chip computer MAX3232ECPE. One end of the capacitor C36 is connected to pin No. 4 of the single-chip computer MAX3232ECPE. The other end is connected to the No. 2 pin of the single-chip computer MAX3232ECPE. One end of the capacitor C34 is connected to the capacitor C35 and ground. The other end is connected to the No. 2 pin of the single-chip computer MAX3232ECPE. One end of the capacitor C35 is connected to the No. 2 pin of the single-chip computer MAX3232ECPE. The capacitor C34 is connected to the ground, and the other end is connected to the No. 6 pin of the single-chip computer MAX3232ECPE. The No. 7 pin of the single-chip computer MAX3232ECPE is connected to the No. 3 pin of the port P6. The No. 8 pin of the single-chip computer MAX3232ECPE is connected to the ground. Pin is connected to pin 3 of port P6.
    8. 根据权利要求1所述的工业信号采集与触发系统,其特征在于,还包括:8. The industrial signal acquisition and triggering system according to claim 1, further comprising:
    报警模块,与所述主控制板的单片机模块相连接,当被测信号超出设定限制时产生报警信号;An alarm module, connected to the microcontroller module of the main control board, generates an alarm signal when the measured signal exceeds the set limit;
    电源模块,用于为各个模块供电。Power module, used to power each module.
    9. 根据权利要求1或8所述的工业信号采集与触发系统,其特征在于:9. The industrial signal acquisition and triggering system according to claim 1 or 8, characterized in that:
    其中,所述报警模块包括第二光耦隔离器PC817、电容C35、电容C36、电阻R14、电阻R15、电阻R16、二极管1N4148、两路继电器、NPN三极管8050、PNP三极管8550、电阻R17、电阻R18、LED灯6以及无源蜂鸣器,所述电容C35的一端连接所述第二光耦隔离器PC817的引脚1和+5V电源,另一端连接第二光耦隔离器PC817的引脚2,所述电容C36的一端连接光耦隔离器PC817的引脚3和地,另一端连接所述第二光耦隔离器PC817的引脚4,所述电阻R14的一端连接所述控制芯片的引脚93,另一端连接所述第二光耦隔离器PC817的引脚2,所述电阻R15的一端连接+5V电源,另一端连接所述第二光耦隔离器PC817的引脚4,所述电阻R16的一端连接所述第二光耦隔离器PC817的引脚4,另一端连接所述PNP三极管8550的基极,所述PNP三极管8550的发射极连接+5V电源,基极连接电阻R16,集电极连接所述两路继电器的引脚1,所述电阻R17的一端连接所述控制芯片的引脚94,另一端连接所述NPN三极管8050的基极,所述电阻R18的一端连接所述NPN三极管8050的发射极和所述无源蜂鸣器的引脚1,另一端连接所述LED灯6,所述LED灯6的一端连接电阻R18,另一端连接所述无源蜂鸣器的引脚2和地,Among them, the alarm module includes the second optocoupler isolator PC817, capacitor C35, capacitor C36, resistor R14, resistor R15, resistor R16, diode 1N4148, two-way relay, NPN transistor 8050, PNP transistor 8550, resistor R17, resistor R18 , LED lamp 6 and passive buzzer, one end of the capacitor C35 is connected to pin 1 of the second optocoupler isolator PC817 and the +5V power supply, and the other end is connected to pin 2 of the second optocoupler isolator PC817 , one end of the capacitor C36 is connected to the pin 3 of the optocoupler isolator PC817 and ground, the other end is connected to the pin 4 of the second optocoupler isolator PC817, and one end of the resistor R14 is connected to the pin of the control chip. Pin 93, the other end is connected to pin 2 of the second optocoupler isolator PC817, one end of the resistor R15 is connected to the +5V power supply, and the other end is connected to pin 4 of the second optocoupler isolator PC817. One end of the resistor R16 is connected to pin 4 of the second optocoupler isolator PC817, and the other end is connected to the base of the PNP transistor 8550. The emitter of the PNP transistor 8550 is connected to the +5V power supply, and the base is connected to the resistor R16. The collector is connected to pin 1 of the two-way relay, one end of the resistor R17 is connected to the pin 94 of the control chip, the other end is connected to the base of the NPN transistor 8050, and one end of the resistor R18 is connected to the The emitter of the NPN transistor 8050 and the pin 1 of the passive buzzer are connected to the LED lamp 6. One end of the LED lamp 6 is connected to the resistor R18, and the other end is connected to the passive buzzer. pin 2 and ground,
    所述电源模块包括一个24V输入子模块、一个12V电压转换子模块、两个设计相同的5V电压转换子模块以及一个24V转±9V子模块,The power module includes a 24V input sub-module, a 12V voltage conversion sub-module, two 5V voltage conversion sub-modules with the same design, and a 24V to ±9V sub-module.
    所述24V输入子模块包括输入端子J1、保险丝F1、电容C1、电流滤波器T1,所述保险丝F1的一端连接在所述输入端子J1的2号引脚上,另一端连接在所述电流滤波器T1的1号引脚上,所述输入端子J1的1号引脚连接所述电流滤波器T1的4号引脚上,所述电容C1的一端连接在所述电流滤波器T1的2号引脚和24V电源上,另一端连接所述电流滤波器T1的3号引脚和地,The 24V input sub-module includes an input terminal J1, a fuse F1, a capacitor C1, and a current filter T1. One end of the fuse F1 is connected to pin 2 of the input terminal J1, and the other end is connected to the current filter. The No. 1 pin of the input terminal J1 is connected to the No. 4 pin of the current filter T1. One end of the capacitor C1 is connected to the No. 2 pin of the current filter T1. pin and the 24V power supply, and the other end is connected to pin 3 of the current filter T1 and ground.
    所述12V电压转换子模块包括电解电容C28、电容C3、电压转换模块U1、电解电容C4、电容C5、发光二极管VD1、电阻R1,所述电解电容C2的正极连接所述电容C3、+24V电源以及所述电压转换模块U1的2号引脚,负极连接电容C3、地以及所述电压转换模块U1的1号引脚,所述电解电容C4的正极连接电容C5、+12V电源、电压转换模块U1的3号引脚以及发光二极管VD1的正极,负极连接所述电容C5、地、所述电压转换模块U1的4号引脚以及电阻R1,所述电阻R1的另一端与所述发光二极管VD1的负极连接,The 12V voltage conversion sub-module includes electrolytic capacitor C28, capacitor C3, voltage conversion module U1, electrolytic capacitor C4, capacitor C5, light-emitting diode VD1, resistor R1. The positive electrode of the electrolytic capacitor C2 is connected to the capacitor C3 and the +24V power supply. And the No. 2 pin of the voltage conversion module U1, the negative electrode is connected to the capacitor C3, ground and the No. 1 pin of the voltage conversion module U1, the positive electrode of the electrolytic capacitor C4 is connected to the capacitor C5, the +12V power supply, and the voltage conversion module The No. 3 pin of U1 and the anode of the light-emitting diode VD1 are connected to the capacitor C5, ground, the No. 4 pin of the voltage conversion module U1 and the resistor R1. The other end of the resistor R1 is connected to the light-emitting diode VD1. negative connection,
    所述5V电压转换子模块包括电解电容C6、电容C7、电压转换模块U2、电解电容C8、电容C9、发光二极管VD2以及电阻R2,所述电解电容C6的正极连接所述电容C7、+24V电源以及所述电压转换模块U2的2号引脚,负极连接所述电容C7、地、以及所述电压转换模块U2的1号引脚,所述电解电容C8的正极连接所述电容C9、+12V电源、所述电压转换模块U2的3号引脚以及所述发光二极管VD2的正极,负极连接所述电容C8、地、所述电压转换模块U2的4号引脚以及所述电阻R2,所述电阻R2的另一端与所述发光二极管VD2的负极连接,The 5V voltage conversion sub-module includes electrolytic capacitor C6, capacitor C7, voltage conversion module U2, electrolytic capacitor C8, capacitor C9, light-emitting diode VD2 and resistor R2. The positive electrode of the electrolytic capacitor C6 is connected to the capacitor C7 and the +24V power supply. And the No. 2 pin of the voltage conversion module U2, the negative electrode is connected to the capacitor C7, ground, and the No. 1 pin of the voltage conversion module U2, the positive electrode of the electrolytic capacitor C8 is connected to the capacitor C9, +12V The power supply, pin 3 of the voltage conversion module U2 and the anode of the light-emitting diode VD2, the cathode is connected to the capacitor C8, ground, pin 4 of the voltage conversion module U2 and the resistor R2, the The other end of the resistor R2 is connected to the negative electrode of the light-emitting diode VD2,
    所述24V转±9V子模块包括电解电容C14、电容C11、电压转换模块U4、电解电容C16、电容C17、电解电容C20、电容C21、发光二极管VD4、电阻R4、发光二极管VD5以及电阻R5,所述电解电容C14的正极连接所述电容C11、+24V电源与所述电压转换模块U4的1号引脚,负极连接所述电容C11、地以及所述电压转换模块U4的2号引脚,所述电容C16的正极连接所述电容C17、+9V电源、所述发光二极管VD4的正极以及所述电压转换模块U4的6号引脚,负极与所述电解电容C20正极、所述电容C17、所述电阻R4、所述电容C21、地、所述电阻R5以及所述电源转换模块U4的5号引脚相连,所述电解电阻C20与所述电阻R21、-9V电源以及所述发光二极管VD5的负极相连,所述电阻R5与所述发光二极管VD5正极相连,所述电阻R4与所述发光二极管VD4的正极相连。The 24V to ±9V sub-module includes electrolytic capacitor C14, capacitor C11, voltage conversion module U4, electrolytic capacitor C16, capacitor C17, electrolytic capacitor C20, capacitor C21, light-emitting diode VD4, resistor R4, light-emitting diode VD5 and resistor R5, so The positive electrode of the electrolytic capacitor C14 is connected to the capacitor C11, the +24V power supply and the No. 1 pin of the voltage conversion module U4, and the negative electrode is connected to the capacitor C11, ground and the No. 2 pin of the voltage conversion module U4, so The positive electrode of the capacitor C16 is connected to the capacitor C17, the +9V power supply, the positive electrode of the light-emitting diode VD4, and the No. 6 pin of the voltage conversion module U4, and the negative electrode is connected to the positive electrode of the electrolytic capacitor C20, the capacitor C17, and the The resistor R4, the capacitor C21, ground, the resistor R5 and the No. 5 pin of the power conversion module U4 are connected. The electrolytic resistor C20 is connected to the resistor R21, -9V power supply and the light-emitting diode VD5. The negative electrode is connected, the resistor R5 is connected to the anode of the light-emitting diode VD5, and the resistor R4 is connected to the anode of the light-emitting diode VD4.
    10. 一种工业信号采集与触发方法,其特征在于,包括以下步骤:10. An industrial signal acquisition and triggering method, characterized by including the following steps:
    步骤1,通过显示模块设置参数;Step 1, set parameters through the display module;
    步骤2,触发模块发出触发信号;Step 2, the trigger module sends a trigger signal;
    步骤3,信号采集与处理模块接收到所述触发信号后对采集通道进行数据采集;Step 3: After receiving the trigger signal, the signal acquisition and processing module collects data from the acquisition channel;
    步骤4,所述信号采集与处理模块把处理结果发送到数据接收与转换模块上转换为数字信号,所述数字信号被发送至所述主控制板的单片机模块;Step 4: The signal acquisition and processing module sends the processing results to the data receiving and conversion module and converts them into digital signals, and the digital signals are sent to the microcontroller module of the main control board;
    步骤5,所述显示模块上显示处理后的数据。Step 5: Display the processed data on the display module.
PCT/CN2023/104535 2022-07-13 2023-06-30 Industrial signal acquisition and triggering system and method WO2024012254A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210820732.XA CN115373304A (en) 2022-07-13 2022-07-13 Industrial signal acquisition and triggering system and method
CN202210820732.X 2022-07-13

Publications (1)

Publication Number Publication Date
WO2024012254A1 true WO2024012254A1 (en) 2024-01-18

Family

ID=84062636

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/104535 WO2024012254A1 (en) 2022-07-13 2023-06-30 Industrial signal acquisition and triggering system and method

Country Status (2)

Country Link
CN (1) CN115373304A (en)
WO (1) WO2024012254A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115373304A (en) * 2022-07-13 2022-11-22 上海电子信息职业技术学院 Industrial signal acquisition and triggering system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598347A (en) * 2015-02-26 2015-05-06 浪潮电子信息产业股份有限公司 Waveform data acquisition module suitable for high-density server test
CN208888810U (en) * 2018-12-05 2019-05-21 哈尔滨理工大学 A kind of time frequency analysis device based on high-speed data acquisition
US20190187666A1 (en) * 2017-12-18 2019-06-20 Fanuc Corporation Data collection device
CN111060155A (en) * 2019-12-27 2020-04-24 山东厚德测控技术股份有限公司 Collision wall information acquisition system
CN111399782A (en) * 2020-04-21 2020-07-10 中国人民解放军军事科学院国防工程研究院工程防护研究所 High-reliability triggering and data acquisition and storage method for dynamic test equipment
CN216069889U (en) * 2021-07-16 2022-03-18 台州市汽修酷网络科技有限公司 Electric automobile overhauls system
CN217846923U (en) * 2022-07-25 2022-11-18 西安瑞日电子发展有限公司 Multi-trigger mode data acquisition device
CN115373304A (en) * 2022-07-13 2022-11-22 上海电子信息职业技术学院 Industrial signal acquisition and triggering system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598347A (en) * 2015-02-26 2015-05-06 浪潮电子信息产业股份有限公司 Waveform data acquisition module suitable for high-density server test
US20190187666A1 (en) * 2017-12-18 2019-06-20 Fanuc Corporation Data collection device
CN208888810U (en) * 2018-12-05 2019-05-21 哈尔滨理工大学 A kind of time frequency analysis device based on high-speed data acquisition
CN111060155A (en) * 2019-12-27 2020-04-24 山东厚德测控技术股份有限公司 Collision wall information acquisition system
CN111399782A (en) * 2020-04-21 2020-07-10 中国人民解放军军事科学院国防工程研究院工程防护研究所 High-reliability triggering and data acquisition and storage method for dynamic test equipment
CN216069889U (en) * 2021-07-16 2022-03-18 台州市汽修酷网络科技有限公司 Electric automobile overhauls system
CN115373304A (en) * 2022-07-13 2022-11-22 上海电子信息职业技术学院 Industrial signal acquisition and triggering system and method
CN217846923U (en) * 2022-07-25 2022-11-18 西安瑞日电子发展有限公司 Multi-trigger mode data acquisition device

Also Published As

Publication number Publication date
CN115373304A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
WO2024012254A1 (en) Industrial signal acquisition and triggering system and method
CN102974000B (en) Hospital venous transfusion monitoring meter and management system
CN202892549U (en) Venous infusion monitoring instrument and management system in hospital
CN105116808A (en) Internet of things-based electrical appliance safety intelligent device
CN206161754U (en) Detecting system of radio frequency emission coil resonance point
CN209992020U (en) Household environment detection device
CN110570618B (en) Point-type air suction type fire detection system and method based on two buses
WO2021238451A1 (en) Ultrasonic displacement sensor
CN106768036A (en) Adjustable agricultural Temperature Humidity Sensor with infrared receiver
CN216050264U (en) Alarm device for detecting vehicle vibration noise
CN206249522U (en) Internet of Things intelligent safety and defence system based on cloud platform
CN209447300U (en) Air monitoring system
CN213787363U (en) Pulse body temperature tester
CN214333869U (en) Novel multifunctional sensor measuring system
CN203311578U (en) Smog detection alarm apparatus
CN209895467U (en) Remote fire monitoring system based on single chip microcomputer
CN206648602U (en) Multi-path laser line footpath abnormality detection system
CN206609537U (en) It is a kind of with temperature detection and the EMS analyzed in real time
CN205808988U (en) A kind of online pH analyser
CN215726107U (en) Temperature and humidity monitoring device for infant incubator body
CN201876448U (en) Toxic gas detector for chemical laboratory
CN214096154U (en) Temperature and humidity alarm control system based on single chip microcomputer
CN214540458U (en) Master control controller based on PIC
CN204576783U (en) Based on the radio transmitting device of X-bee
CN220252412U (en) Household indoor temperature and humidity detection control device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23838746

Country of ref document: EP

Kind code of ref document: A1