CN210294856U - RS-485-based multi-channel counting frequency measurement digital input and output module - Google Patents
RS-485-based multi-channel counting frequency measurement digital input and output module Download PDFInfo
- Publication number
- CN210294856U CN210294856U CN201921654768.5U CN201921654768U CN210294856U CN 210294856 U CN210294856 U CN 210294856U CN 201921654768 U CN201921654768 U CN 201921654768U CN 210294856 U CN210294856 U CN 210294856U
- Authority
- CN
- China
- Prior art keywords
- circuit
- input
- output
- digital
- microcontroller
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 27
- 238000002955 isolation Methods 0.000 claims abstract description 18
- 230000000087 stabilizing effect Effects 0.000 claims description 18
- 239000011324 bead Substances 0.000 claims description 15
- 229910000859 α-Fe Inorganic materials 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 18
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000001914 filtration Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 239000013078 crystal Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001105 regulatory effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Measurement Of Current Or Voltage (AREA)
Abstract
The utility model discloses a multi-path counting and frequency measuring digital input/output module based on RS-485, which comprises a power circuit, a counting and frequency measuring circuit and a digital input circuit, the output end of the counting frequency measurement circuit and the output end of the digital quantity input circuit are respectively connected with the microcontroller through the programmable digital filter, the counting frequency measurement circuit is provided with a plurality of first isolation input channels and a plurality of first non-isolation input channels, the digital quantity input circuit is provided with a plurality of second isolation input channels and a plurality of second non-isolation input channels, the input end of the digital quantity output circuit is respectively connected with the microcontroller, the digital quantity output circuit is provided with a plurality of non-isolation output channels, the RS-485 transceiver is connected with the microcontroller through an electrical isolator, and the power supply circuit provides stable working voltage for the whole module. The module can collect voltage signals output by the sensor.
Description
Technical Field
The utility model belongs to the technical field of the data acquisition module, concretely relates to multichannel count frequency measurement digital quantity input/output module based on RS-485.
Background
In industrial control processes, there are many sensor output signals that are pulsed and it is often necessary to count or measure the frequency and pulse width of these signals in order to analyze them for field device control, and the count/frequency measurement data acquisition module is generated therefrom. Therefore, it is necessary to design a multi-counting frequency measurement digital input and output module based on RS-485.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to provide a multichannel count frequency measurement digital quantity input/output module based on RS-485.
In order to achieve the above purpose, the utility model adopts the following technical scheme: a multi-channel counting and frequency measuring digital input and output module based on RS-485 comprises a power supply circuit, a counting and frequency measuring circuit, a digital input circuit, a programmable digital filter, a digital output circuit, an RS-485 transceiver and a microcontroller, wherein the output end of the counting and frequency measuring circuit and the output end of the digital input circuit are respectively connected with the microcontroller through the programmable digital filter, the counting and frequency measuring circuit is provided with a plurality of first isolating input channels and a plurality of first non-isolating input channels, the digital input circuit is provided with a plurality of second isolating input channels and a plurality of second non-isolating input channels, the input end of the digital output circuit is respectively connected with the microcontroller, the digital output circuit is provided with a plurality of non-isolating output channels, and the RS-485 transceiver is connected with the microcontroller through an electrical isolator, the power supply circuit provides stable working voltage for the whole module.
Further, the input type of the digital input circuit is a voltage type signal and/or a switch type signal, and the output type of the digital output channel is open collector output.
Further, the monitoring system also comprises a watchdog circuit, and the watchdog circuit is connected with the microcontroller.
Further, the system also comprises an EEPROM memory, and the EEPROM memory is connected with the microcontroller.
Furthermore, the power supply device further comprises a power supply indicating lamp and a working state indicating lamp, wherein the power supply indicating lamp is connected with the power supply circuit, and the working state indicating lamp is respectively connected with the power supply circuit and the microcontroller.
Furthermore, the power supply circuit comprises a main power supply circuit, a secondary voltage stabilizing circuit, a ferrite bead filter and a tertiary voltage stabilizing circuit, wherein the output end of the main power supply circuit is respectively connected with the input end of the secondary voltage stabilizing circuit, the digital quantity input circuit and the counting frequency measuring circuit, the output end of the secondary voltage stabilizing circuit is respectively connected with the input end of the ferrite bead filter, the microcontroller and the RS-485 transceiver, the output end of the ferrite bead filter is connected with the input end of the tertiary voltage stabilizing circuit, and the output end of the tertiary voltage stabilizing circuit and the output end of the ferrite bead filter are respectively connected to the programmable digital filter.
Further, the microcontroller adopts a 32-bit RISC CPU ARM chip.
Compared with the prior art, the utility model discloses following beneficial effect has: the module is provided with a counting frequency measurement circuit which comprises a plurality of isolated input channels and a plurality of non-isolated input channels so as to meet the requirements of different occasions and is suitable for collecting pulse signals of an industrial field; the module also has a digital input circuit comprising multiple isolated inputs and multiple non-isolated input channels, configurable as a gated input signal for the count/frequency measurement channel; the module also has a digital output circuit that includes multiple non-isolated output channels that can be configured for either a match or an overrun alarm output function. The module is designed aiming at industrial application, adopts configurable digital filtering to input signals, greatly reduces the influence of industrial field interference on the normal operation of the module, and has good reliability. The RS-485 communication interface with isolation is adopted, so that the influence of industrial field signals on the communication interface of the microcontroller can be avoided, and ESD, overvoltage and overcurrent protection is realized.
Drawings
Fig. 1 is a schematic block diagram of an embodiment of the present invention.
Fig. 2 is a circuit diagram of a microcontroller according to an embodiment of the present invention.
Fig. 3 is a circuit diagram of a first isolated input channel of a counting frequency measuring circuit according to an embodiment of the present invention.
Fig. 4 is a circuit diagram of a second isolated input channel of a digital input circuit according to an embodiment of the present invention.
Fig. 5 is an integrated circuit diagram of a first non-isolated input channel of a count frequency measurement circuit and a second non-isolated input channel of a digital quantity input circuit according to an embodiment of the present invention.
Fig. 6 is a circuit diagram of a digital output channel of the digital output circuit according to the embodiment of the present invention.
Fig. 7 is an integrated circuit diagram of an RS-485 transceiver and electrical isolator according to an embodiment of the present invention.
Fig. 8 is an integrated circuit diagram of the watchdog circuit and the EEPROM memory according to the embodiment of the present invention.
Fig. 9 is a circuit diagram of a power indicator according to an embodiment of the present invention.
Fig. 10 is a circuit diagram of an operation status indicator lamp according to an embodiment of the present invention.
Fig. 11 is a circuit diagram of a main power circuit according to an embodiment of the present invention.
Fig. 12 is a circuit diagram of a two-stage voltage regulator circuit according to an embodiment of the present invention.
Fig. 13 is a circuit diagram of a ferrite bead filter according to an embodiment of the present invention.
Fig. 14 is a circuit diagram of a three-level voltage regulator circuit according to an embodiment of the present invention.
Fig. 15 to fig. 19 are circuit diagrams of the programmable digital filter based on FPGA according to the embodiment of the present invention.
Fig. 20 is a circuit diagram of an 8-bit bus transceiver according to an embodiment of the present invention.
Fig. 21 is a circuit diagram of a digital potentiometer according to an embodiment of the present invention.
Fig. 22 is a circuit diagram of a crystal oscillator according to an embodiment of the present invention.
In FIG. 1, the labels: 1. a power supply circuit; 2. a counting frequency measurement circuit; 21. a first isolated input channel; 22. a first non-isolated input channel; 3. a digital quantity input circuit; 31. a second isolated input channel; 32. a second non-isolated input channel; 4. a programmable digital filter; 5. a digital quantity output circuit; 6. an RS-485 transceiver; 7. a microcontroller; 8. an electrical isolator; 9. a watchdog circuit; 10. an EEPROM memory.
Detailed Description
In order to make the aforementioned and other features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
As shown in fig. 1, this embodiment provides a multi-channel frequency-counting and measuring digital input/output module based on RS-485, which includes a power supply circuit 1, a frequency-counting and measuring circuit 2, a digital input circuit 3, a programmable digital filter 4, a digital output circuit 5, an RS-485 transceiver 6, and a microcontroller 7, wherein an output terminal of the frequency-counting and measuring circuit 2 and an output terminal of the digital input circuit 3 are respectively connected to the microcontroller 7 through the programmable digital filter 4, the frequency-counting and measuring circuit 2 has a plurality of first isolated input channels 21 and a plurality of first non-isolated input channels 22, the digital input circuit 3 has a plurality of second isolated input channels 31 and a plurality of second non-isolated input channels 32, an input terminal of the digital output circuit 5 is respectively connected to the microcontroller 7, the digital output circuit 5 has a plurality of non-isolated output channels, the RS-485 transceiver 6 is connected with the microcontroller 7 through the electrical isolator 8, and the power circuit 1 provides stable working voltage for the whole module.
In this embodiment, the microcontroller 7 adopts a 32-bit RISC CPU ARM chip, and specifically can adopt an LPC2131 single chip microcomputer shown in fig. 2, which has a very fast data processing capability and can be applied in a high-performance and high-speed application environment; operating the system: a real-time operating system; supply voltage: +10 to +30VDCThe power source is reversely connected for protection; working temperature range: -40 ℃ to +85 ℃; an industrial grade plastic housing, mounted with standard DIN rails; communication interface: isolation 2500VDCESD, overvoltage, overcurrent protection.
IN this embodiment, the first isolated input channel 21 and the first non-isolated input channel 22 of the count frequency measurement circuit 2 may adopt circuits as shown IN fig. 3 and fig. 5, respectively, where the first isolated input channel 21 adopts a TLP113 optocoupler, IN2+, IN 2-are isolated input terminals of the first isolated input channel 21, and EIN0 is a non-isolated input terminal of the first non-isolated input channel 22. The main indicators for counting the frequency measurement input are as follows: the number of input paths: 2 first isolated input channels 21 and 2 first non-isolated input channels 22; maximum count value: 32 bits; programmable digital filtering: 1-65535 us; input signal frequency: non-isolated channels: <200kHz, isolation channel: <1 MHz; 2-way isolated input voltage: low level: 1V or less, high level: +3.5 to + 10V; 2-way non-isolated input voltage: programmable threshold voltage, low level: 0-5V (default 0.8V), high level: 0-5V (default 2.4V); the gating input mode can be selected, and the measured value is captured; the matching/overrun function is provided, and the matching/overrun value is configured independently.
In this embodiment, the second isolated input channel 31 and the second non-isolated input channel 32 of the digital input circuit 3 may adopt the circuits shown in fig. 4 and fig. 5, respectively, where the second isolated input channel 31 adopts a TLP113 optical coupler, GATE2+, GATE 2-is the isolated input terminal of the second isolated input channel 31, and GATE0 is the non-isolated input terminal of the second non-isolated input channel 32. The main indicators of the digital quantity input are as follows: the number of input paths: 2 paths of isolated inputs and 2 paths of non-isolated inputs; inputting types: a switch contact signal (i.e., a switch type signal) or a level signal (i.e., a voltage type signal); input range: high level (digital 1): + 3.5V to +10V, low level (digital 0): less than or equal to + 1V; digital filtering can be selected to be consistent with the corresponding counting/frequency measuring channel; a gated input mode may be selected.
In the present embodiment, the non-isolated output channel of the digital quantity output circuit 5 may adopt a circuit as shown in fig. 6. The main indicators of digital quantity output are as follows: number of output paths: 4 paths of non-isolated outputs; and (3) output type: open-collector output; maximum load voltage: 50V; maximum load current: 50 mA; an output mode can be selected; under the user control mode, the system has a safe output function, and a safe output value can be configured by software.
In this embodiment, the RS-485 transceiver 6 and the electrical isolator 8 preferably, but not limited to, include an RSM3485CHT isolation transceiver module as shown in fig. 7, and the RSM3485CHT isolation transceiver module integrates power isolation, electrical isolation, an RS-485 interface chip and a bus protection device, so as to be conveniently embedded in a user equipment, so that the product has a function of connecting to an RS-485 network.
In this embodiment, the module further includes a watchdog circuit 9 and an EEPROM memory 10, and the watchdog circuit 9 and the EEPROM memory 10 are respectively connected to the microcontroller 7. The watchdog circuit 9 and the EEPROM memory 10 are preferably, but not limited to, a CAT1023 monitoring circuit as shown in fig. 8, which is a complete solution for memory and power supply monitoring based on microcontroller 7 systems. The watchdog circuit 9 is adopted, so that the system of the module can be restarted when an accident occurs, and the system is more stable and reliable.
In this embodiment, the module further includes a power indicator shown in fig. 9 and an operating status indicator shown in fig. 10, the power indicator is connected to the power circuit 1, and the operating status indicator is connected to the power circuit 1 and the microcontroller 73, respectively. The power supply indicator lamp is a red indicator lamp, and when the lamp is on, the power supply of the module is normal; the working state indicator light is a red-green double-color indicator light, the fact that the module is not electrified or does not operate is indicated when the light is not on, the fact that the module is initialized to make mistakes is indicated when the red light is on, the fact that the module normally operates but does not communicate with the host machine is indicated when the green light is normally on, and the fact that the module is connected with the host machine and normally communicates is indicated when the green light flickers.
In this embodiment, the power circuit 1 includes a main power circuit, a secondary voltage stabilizing circuit, a ferrite bead filter and a tertiary voltage stabilizing circuit, the output end of the main power circuit is respectively connected with the input end of the secondary voltage stabilizing circuit, the digital input circuit 3, the counting and frequency measuring circuit 2 is connected, the output end of the secondary voltage stabilizing circuit is respectively connected with the input end of the ferrite bead filter, the microcontroller 7, the RS-485 transceiver 6, the watchdog circuit 9, the EEPROM memory 10, the power indicator lamp, the working state indicator lamp and the like, the output end of the ferrite bead filter is connected with the input end of the tertiary voltage stabilizing circuit, and the output end of the tertiary voltage stabilizing circuit and the output end of the ferrite bead filter are respectively connected to the. Wherein, the main power circuit is preferably but not limited to TPS5430 power module as shown in FIG. 11, the secondary voltage regulating circuit is preferably but not limited to SP6201EM5-L-3.3 power module as shown in FIG. 12, the ferrite bead filter is preferably but not limited to CBG201209U151T patch bead as shown in FIG. 13, and the tertiary voltage regulating circuit is preferably but not limited to SP6201EM5-L-1.5 power module as shown in FIG. 14.
In this embodiment, the programmable digital filter 4 may adopt an FPGA circuit of A3P125-1VQ100 model shown in fig. 15 to 19, the frequency counting and measuring circuit 2 and the digital quantity input circuit 3 are respectively connected to the programmable digital filter 4 through an 8-way bus transceiver of an SN74LVCC3245A model shown in fig. 20, wherein the first non-isolated input channel 21 is connected to a digital potentiometer of CAT5221JI-10 model shown in fig. 21, and the programmable digital filter 4 is further connected to a crystal oscillator of NAGTC-50M model shown in fig. 22.
The working principle of the embodiment is as follows: the module is provided with a counting frequency measurement circuit which comprises 2 isolated input channels and 2 non-isolated input channels so as to meet the requirements of different occasions and is suitable for collecting pulse signals of an industrial field; the module also has a digital input circuit comprising 2 isolated inputs and 2 non-isolated input channels, configurable as a gated input signal for the count/frequency measurement channel; the module also has a digital output circuit that includes 4 non-isolated output channels that can be configured to match or overrun the alarm output function. The module is designed aiming at industrial application, adopts configurable digital filtering to input signals, greatly reduces the influence of industrial field interference on the normal operation of the module, and has good reliability. The RS-485 communication interface with isolation is adopted, so that the influence of industrial field signals on the communication interface of the microcontroller 7 can be avoided, and ESD, overvoltage and overcurrent protection is realized.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and any person skilled in the art should not depart from the technical solution of the present invention, and any simple modification, equivalent change and modification made to the above embodiments according to the technical spirit of the present invention should fall within the scope of the present invention.
Claims (7)
1. The utility model provides a multichannel count frequency measurement digital quantity input/output module based on RS-485 which characterized in that: the digital quantity frequency measurement circuit comprises a power supply circuit, a counting frequency measurement circuit, a digital quantity input circuit, a programmable digital filter, a digital quantity output circuit, an RS-485 transceiver and a microcontroller, wherein the output end of the counting frequency measurement circuit and the output end of the digital quantity input circuit are respectively connected with the microcontroller through the programmable digital filter, the counting frequency measurement circuit is provided with a plurality of first isolation input channels and a plurality of first non-isolation input channels, the digital quantity input circuit is provided with a plurality of second isolation input channels and a plurality of second non-isolation input channels, the input end of the digital quantity output circuit is respectively connected with the microcontroller, the digital quantity output circuit is provided with a plurality of non-isolation output channels, the RS-485 transceiver is connected with the microcontroller through an electrical isolator, and the power supply circuit provides stable working voltage for the whole module.
2. The RS-485 based multi-channel counting frequency measurement digital input and output module according to claim 1, wherein: the input type of the digital quantity input circuit is a voltage type signal and/or a switch type signal, and the output type of the digital quantity output channel is open-collector output.
3. The RS-485 based multi-channel counting frequency measurement digital input and output module according to claim 1, wherein: the watch dog circuit is connected with the microcontroller.
4. The RS-485 based multi-counting frequency measurement digital input and output module according to claim 1 or 3, wherein: the system also comprises an EEPROM memory, and the EEPROM memory is connected with the microcontroller.
5. The RS-485 based multi-channel counting frequency measurement digital input and output module according to claim 1, wherein: the power supply indicating lamp is connected with the power circuit, and the working state indicating lamp is connected with the power circuit and the microcontroller respectively.
6. The RS-485 based multi-channel counting frequency measurement digital input and output module according to claim 1, wherein: the power supply circuit comprises a main power supply circuit, a secondary voltage stabilizing circuit, a ferrite bead filter and a tertiary voltage stabilizing circuit, wherein the output end of the main power supply circuit is respectively connected with the input end of the secondary voltage stabilizing circuit, a digital quantity input circuit and a counting frequency measuring circuit, the output end of the secondary voltage stabilizing circuit is respectively connected with the input end of the ferrite bead filter, a microcontroller and an RS-485 transceiver, the output end of the ferrite bead filter is connected with the input end of the tertiary voltage stabilizing circuit, and the output end of the tertiary voltage stabilizing circuit and the output end of the ferrite bead filter are respectively connected to a programmable digital filter.
7. The RS-485 based multi-channel counting frequency measurement digital input and output module according to claim 1, wherein: the microcontroller adopts a 32-bit RISC CPU ARM chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921654768.5U CN210294856U (en) | 2019-09-30 | 2019-09-30 | RS-485-based multi-channel counting frequency measurement digital input and output module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921654768.5U CN210294856U (en) | 2019-09-30 | 2019-09-30 | RS-485-based multi-channel counting frequency measurement digital input and output module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN210294856U true CN210294856U (en) | 2020-04-10 |
Family
ID=70066153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921654768.5U Expired - Fee Related CN210294856U (en) | 2019-09-30 | 2019-09-30 | RS-485-based multi-channel counting frequency measurement digital input and output module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN210294856U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113156157A (en) * | 2021-04-14 | 2021-07-23 | 中国船舶重工集团公司第七0三研究所 | Method for measuring rotating speed signal frequency of power turbine of ship gas turbine |
-
2019
- 2019-09-30 CN CN201921654768.5U patent/CN210294856U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113156157A (en) * | 2021-04-14 | 2021-07-23 | 中国船舶重工集团公司第七0三研究所 | Method for measuring rotating speed signal frequency of power turbine of ship gas turbine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN209342803U (en) | A kind of High-accuracy direct current electric energy meter | |
CN210294856U (en) | RS-485-based multi-channel counting frequency measurement digital input and output module | |
CN104090154A (en) | Leak current detection module for train power supply monitoring subsystem | |
CN203249957U (en) | Multi-path voltage monitoring device | |
CN103176939A (en) | Redundant serial communication device with automatic replacing function | |
CN203786498U (en) | Diagnosable multi-type signal acquisition module | |
CN210536655U (en) | Mining anti-interference communication module | |
CN210626921U (en) | Relay output isolation digital quantity input module based on RS-485 communication | |
CN218733305U (en) | Wireless charging device | |
CN214540463U (en) | Relay board for switching and detecting multiple paths of signals | |
CN203521905U (en) | Terminal intelligent modularization distribution box | |
CN210626920U (en) | 16-channel isolation digital quantity transmission module based on RS-485 communication | |
CN204145529U (en) | A kind of master-slave mode CAN module | |
CN204855748U (en) | Treatment circuit is patrolled and examined to battery based on many channel switching of ARM platform | |
CN203405532U (en) | Cable line fault indicator having current measuring function | |
CN207623395U (en) | A kind of divider of ontology and second divided voltage plate Phototube Coupling | |
CN203178400U (en) | Short circuit and ground fault indicator and distribution automation system | |
CN202524381U (en) | GSM wireless communication circuit | |
CN106410658B (en) | A kind of electronic type of distribution terminal is anti-jump and switching on and off monitoring arrangement | |
CN108963966A (en) | A kind of distribution controller for power supply and distribution | |
CN202424108U (en) | Power supply detection and control circuit | |
CN111351543A (en) | Wet-type water meter M-BUS BUS photoelectric direct-reading sensor | |
CN220020393U (en) | Multichannel signal acquisition device | |
CN219999396U (en) | CAN communication distribution box of forklift | |
CN110943537B (en) | Low-power-consumption high-voltage line load monitoring trigger circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200410 |
|
CF01 | Termination of patent right due to non-payment of annual fee |