Multifunctional channel circuit, module and electronic equipment

By using multi-functional channel circuits in industrial control systems and using strobe signals to switch circuit functions, the problem of single and multiple types of functional modules in the existing technology is solved, application flexibility is improved and control system costs are reduced.

CN119341565APending Publication Date: 2025-01-21HANGZHOU HOLLYSYS AUTOMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411362357.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Due to the single function and numerous types of functional modules in the existing industrial control system, it is necessary to prepare multiple types of functional modules to meet control needs, which reduces the flexibility of module application and increases the overall cost of the control system.

Method used

A multifunctional channel circuit is provided. Through the combination of an external module, a first strobe module and a multi-channel circuit, the strobe signal is used to switch different circuit functions to meet the control needs in different scenarios.

Benefits of technology

It improves application flexibility, reduces the overall cost of the control system, and can provide a variety of different circuit functions according to needs to meet the control needs in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341565A_ABST
    Figure CN119341565A_ABST
Patent Text Reader

Abstract

The invention provides a multifunctional channel circuit, module and electronic equipment, which are applied to the technical field of automation control, the circuit comprises an external module, a first gating module and a plurality of channel circuits, the channel circuits are used for realizing preset circuit functions, and the preset circuit functions corresponding to the channel circuits are different from one another. The first gating module is respectively connected with the external module and each channel circuit, indicates a circuit function needing to be used at present through a gating signal, and communicates a target channel circuit indicated by the current gating signal with the external module according to the current gating signal; therefore, the multifunctional channel circuit provided by the invention can provide various different circuit functions according to requirements, so that the control requirements in different scenes are met, the application flexibility is improved, and the overall cost of a control system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation control technology, and in particular to a multifunctional channel circuit, module and electronic device. Background Art

[0002] Industrial control systems usually use various types of functional modules, such as temperature acquisition modules, analog voltage output modules, analog current output modules, analog voltage input modules, analog current input modules, digital output modules, and digital input modules. In practical applications, the corresponding functional modules are selected according to the control requirements to build a control system.

[0003] The inventors have found that since the functional modules have single functions and numerous types, it is necessary to prepare multiple types of functional modules to meet the needs of industrial control systems, which not only reduces the flexibility of module application, but also increases the overall cost of the control system. Summary of the invention

[0004] In view of this, the present application is committed to providing a multifunctional channel circuit, module and electronic device, which switches different circuit functions according to the selection signal, thereby meeting the control requirements in different scenarios, improving application flexibility and reducing the overall cost of the control system.

[0005] In a first aspect, the present application provides a multifunctional channel circuit, comprising: an external module, a first selection module and a multi-channel circuit, wherein:

[0006] The external module is used to connect peripheral devices;

[0007] The channel circuits are used to implement preset circuit functions, and the preset circuit functions corresponding to the channel circuits are different from each other;

[0008] The first gating module is respectively connected to the external module and each of the channel circuits;

[0009] The first gating module connects the target channel circuit and the external module in response to the current gating signal, wherein the target channel circuit is the channel circuit indicated by the current gating signal in each of the channel circuits.

[0010] In an optional implementation, the multi-channel circuit includes: an analog voltage input circuit, an analog current input circuit and a temperature acquisition circuit.

[0011] In an optional implementation, the multi-channel circuit further includes: an analog voltage output circuit and an analog current output circuit.

[0012] In an optional implementation, the multi-channel circuit further includes: a digital quantity input circuit and a digital quantity output circuit.

[0013] In an optional implementation, the first gating module includes a multi-way gating circuit, wherein:

[0014] One end of the gating circuit is connected to the external module, and the other end of the gating circuit is connected to at least one channel circuit;

[0015] The channel circuit connected to the target channel circuit is turned on in response to the current selection signal.

[0016] In an optional implementation, the temperature acquisition circuit includes: a constant current source circuit, a filter circuit, an analog-to-digital converter ADC, and a second gating module, wherein:

[0017] The input end of the constant current source circuit is connected to the power supply end of the ADC, and the output end of the constant current source circuit is connected to the first gating module;

[0018] The first input end of the second gating module is connected to the first gating module, and the output end of the second gating module is connected to the input end of the filter circuit;

[0019] The output end of the filter circuit is connected to the sampling end of the ADC;

[0020] In the case where the target channel circuit includes the temperature acquisition circuit, the second gating module connects the first gating module and the filtering circuit in response to the current gating signal.

[0021] In an optional implementation, the analog voltage input circuit includes: a voltage attenuation circuit, a first voltage conversion circuit, a second voltage conversion circuit, the second gating module, the filter circuit and the ADC, wherein:

[0022] The voltage attenuation circuit is connected between the first gating module and the input end of the first voltage conversion circuit;

[0023] An input end of the second voltage conversion circuit is connected to the first gating module;

[0024] The output ends of the first voltage conversion circuit and the second voltage conversion circuit are respectively connected to the second input end of the second gating module, and the output end of the second gating module is connected to the input end of the filter circuit;

[0025] The output end of the filter circuit is connected to the sampling end of the ADC;

[0026] In the case where the target channel circuit includes the analog voltage input circuit, the second gating module connects the filtering circuit with the first voltage conversion circuit and the second voltage conversion circuit in response to the current gating signal.

[0027] In an optional implementation, the analog current input circuit includes: a current sensing resistor, the second gating module, the filter circuit and the ADC, wherein:

[0028] One end of the current-sensing resistor is connected to the external module, and the other end of the current-sensing resistor is connected to the first gating module;

[0029] The third input terminal of the second gating module is connected to the current sensing resistor to collect the sampling voltage generated by the analog current flowing through the current sensing resistor;

[0030] The output end of the second gating module is connected to the input end of the filtering circuit;

[0031] The output end of the filter circuit is connected to the sampling end of the ADC;

[0032] In the case where the target channel circuit includes the analog current input circuit, the second gating module connects the current sensing resistor and the filtering circuit in response to the current gating signal.

[0033] In an optional implementation, the analog voltage output circuit includes: a first power conversion circuit, a digital-to-analog converter DAC and a third gating module, wherein:

[0034] The input end of the third gating module is connected to the output end of the DAC, and the first output end of the third gating module is connected to the input end of the first power conversion circuit;

[0035] The output end of the first power conversion circuit is connected to the first gating module;

[0036] The first power conversion circuit is used to convert the output voltage of the DAC into an analog voltage;

[0037] In the case where the target channel circuit includes the analog voltage output circuit, the third gating module is connected to the first power conversion circuit and the DAC.

[0038] In an optional implementation, the analog current output circuit includes: a second power conversion circuit, the DAC and the third gating module, wherein:

[0039] The input end of the third gating module is connected to the output end of the DAC, and the second output end of the third gating module is connected to the input end of the second power conversion circuit;

[0040] The output end of the second power conversion circuit is connected to the first gating module;

[0041] The second power conversion circuit is used to convert the output voltage of the DAC into an analog current;

[0042] In the case where the target channel circuit includes the analog current output circuit, the third gating module is connected to the second power conversion circuit and the DAC.

[0043] In an optional implementation, the digital quantity input circuit includes: a digital quantity input controller, wherein:

[0044] The input end of the digital quantity input controller is connected to the first gating module;

[0045] The digital quantity output circuit comprises: a digital quantity output controller, wherein:

[0046] The output end of the digital output controller is connected to the first gating module;

[0047] The power supply end of the digital output controller is connected to the external module.

[0048] In a second aspect, the present application provides a multifunctional channel module, comprising a multifunctional channel circuit as described in any one of the first aspect of the present application.

[0049] In a third aspect, the present application provides an electronic device comprising the multifunctional channel module as described in the second aspect of the present application.

[0050] Based on the above content, the multifunctional channel circuit provided by the present application includes an external module, a first selection module and a multi-channel circuit, wherein the channel circuit is used to realize a preset circuit function, and the preset circuit functions corresponding to each channel circuit are different from each other, the first selection module is respectively connected to the external module and each channel circuit, and indicates the circuit function currently required to be used through a selection signal, and the first selection module connects the target channel circuit indicated by the current selection signal with the external module according to the current selection signal, and then provides the preset circuit function of the target channel circuit to the peripheral device connected to the external module. It can be seen that through the multifunctional channel circuit provided by the present application, a variety of different circuit functions can be provided according to needs, thereby meeting the control requirements in different scenarios, improving application flexibility, and reducing the overall cost of the control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 It is a structural block diagram of a multi-functional channel circuit provided by an embodiment of the present invention.

[0053] Figure 2a-2c It is a structural block diagram of another multi-functional channel circuit provided by an embodiment of the present invention.

[0054] Figure 3a-Figure 3b This is a structural block diagram of another multi-functional channel circuit provided by an embodiment of the present invention.

[0055] Figure 4a-4b This is a structural block diagram of another multi-functional channel circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] As mentioned above, industrial control systems usually use various types of functional modules, such as temperature acquisition modules, analog voltage output modules, analog current output modules, analog voltage input modules, analog current input modules, digital output modules, and digital input modules. In practical applications, the corresponding functional modules are selected according to the control requirements to build a control system.

[0058] The inventors have found that the above-mentioned functional modules have single functions and numerous types, which requires the preparation of multiple types of functional modules to meet the needs of industrial control systems. This not only reduces the flexibility of module application, but also increases the overall cost of the control system.

[0059] To solve the above problems, the present application provides a multifunctional channel circuit, which provides multiple channel circuits, and the preset circuit functions corresponding to each channel circuit are different. The first selection module connects the target channel circuit indicated by the current selection signal with the external module according to the current selection signal, and then provides the preset circuit function of the target channel circuit to the peripheral device connected to the external module, thereby realizing the provision of a variety of different circuit functions according to needs, thereby meeting the control requirements in different scenarios, improving application flexibility, and reducing the overall cost of the control system.

[0060] Based on the above, see Figure 1 The multifunctional channel circuit provided by the present application comprises: an external module 10, a first selection module 20 and a multi-channel circuit 30 (in Figure 1 , where n is an integer greater than 1).

[0061] Specifically, the channel circuit 20 provided in this embodiment is used to realize preset circuit functions, such as digital input function, digital output function, analog voltage input function and temperature acquisition function, etc., and the preset circuit functions corresponding to each channel circuit are different from each other, that is, each channel circuit is used to realize its own independent and unique preset circuit function.

[0062] One side of the external module 10 is used to connect to the peripheral device 40, and the other side is connected to the first gating module 20. In an optional embodiment, the external module 10 includes a plurality of external terminals ( Figure 1 (not shown in the figure), each channel circuit 30 is connected to some of the multiple external terminals through the first selection module 20 based on input or output requirements, and is further connected to the peripheral device 40 through the corresponding external terminal. In other words, when connecting the peripheral device 40, it is necessary to select the corresponding external terminal in the external module 10 in combination with the actual function or requirement of the peripheral device 40. As for the specific setting of the external terminal and the specific connection relationship between the external terminal and the peripheral device 40, it will be expanded in combination with the specific channel circuit selection in the subsequent content, and will not be described in detail here.

[0063] Further, the first gating module 20 is connected to each channel circuit 20 respectively. In an optional embodiment, the first gating module 20 includes a multi-channel gating circuit ( Figure 1 (not shown in the figure), for any gating circuit, one end of the gating circuit is connected to the external module 10, and the other end of the gating circuit is connected to at least one channel circuit 30, that is, the channel circuits 30 can share the gating circuit in the first gating module 20. It can be understood that by sharing the gating circuit, the number of gating circuits can be reduced, the complexity of circuit design can be simplified, and the overall cost of the circuit can be reduced.

[0064] In the multi-channel circuit provided in the present application, the conduction state of the first gating module 20 is controlled by the gating signal, and the gating signal can also indicate the target channel circuit in the multi-channel circuit that needs to be connected to the peripheral device. Based on this, the first gating module 20 responds to the current gating signal, connects the target channel circuit indicated by the current gating signal and the external module 10, and further connects the peripheral device 40 through the external module 10, providing the peripheral device 40 with the preset circuit function corresponding to the target channel circuit. Among them, the gating signal can come from a host computer or other dedicated controller that can control the operation process of the multi-functional channel circuit provided in this embodiment, and the present application does not limit the specific source of the gating signal.

[0065] To summarize, the multifunctional channel circuit provided by the present application includes an external module, a first selection module and a multi-channel circuit, wherein the channel circuit is used to realize a preset circuit function, and the preset circuit functions corresponding to each channel circuit are different from each other, the first selection module is respectively connected to the external module and each channel circuit, and indicates the circuit function currently required to be used through a selection signal, and the first selection module connects the target channel circuit indicated by the current selection signal with the external module according to the current selection signal, and then provides the preset circuit function of the target channel circuit to the peripheral device connected to the external module. It can be seen that through the multifunctional channel circuit provided by the present application, a variety of different circuit functions can be provided according to needs, thereby meeting the control requirements in different scenarios, improving application flexibility, and reducing the overall cost of the control system.

[0066] In an optional implementation, the multi-channel circuit in the multi-function channel circuit provided in this embodiment includes an analog voltage input circuit, an analog current input circuit, and a temperature acquisition circuit. In this case, the circuit structure of the multi-function channel circuit can be referred to Figure 2a to Figure 2c As shown in any of the attached drawings. It should be noted that Figure 2a The bold circuit diagram shows the circuit structure of providing temperature acquisition function through the temperature acquisition circuit. Figure 2b The bold circuit diagram shows the circuit structure that provides analog voltage acquisition function through analog voltage input circuit. Figure 2c The bold circuit diagram portion shows the circuit structure of providing analog current acquisition function through the analog current input circuit.

[0067] Combination Figure 2a-2cAs shown in any of the accompanying drawings, in the multifunctional channel circuit provided in this embodiment, the first gating module 20 includes a gating circuit SW10, a gating circuit SW11, a gating circuit S12, a gating circuit SW13, a gating circuit SW14 and a gating circuit SW16. It should be noted that the 1:x shown in some of the gating circuits in the accompanying drawings indicates that the gating circuit includes a first connection terminal and x second connection terminals, and the gating circuit can respond to a gating signal to connect a second connection terminal indicated by the gating signal among the x second connection terminals to the first connection terminal, wherein x is an integer greater than 1. As an optional implementation, such a gating circuit can be implemented based on a multiplexer (MUX). Furthermore, for a gating circuit that does not contain 1:x information, such as Figure 2a The gating circuit SW14 and the gating circuit SW16 shown in the figure include a first connection terminal and a second connection terminal. Accordingly, the first connection terminal and the second connection terminal can be connected based on the gating signal, or the first connection terminal and the second connection terminal can be disconnected. In practical applications, such gating circuits can be implemented in a variety of ways, such as analog switches, relays, or controllable switches, etc., which are not listed here one by one. Without exceeding the core idea of ​​the present application, they also fall within the scope of protection of the present application. The schematic diagrams of the gating circuits in other embodiments are subject to the description here, and the subsequent content will not be repeated.

[0068] Based on the above, see Figure 2a The temperature acquisition circuit provided in this embodiment includes a constant current source circuit, a filter circuit 312, an analog-to-digital converter (ADC) 313, and a second gating module, wherein the constant current source circuit includes a first constant current source circuit 310 and a second constant current source circuit 311, and the second gating module includes a gating circuit SW21 and a gating circuit SW22.

[0069] Combination Figure 2a As shown, in this embodiment, the external module 10 includes an external terminal 0, an external terminal 1 and an external terminal 2. Accordingly, the peripheral device is specifically a three-wire thermal sensor. Figure 2a In the figure, RTD (Resistance Temperature Detector) is used as an example. The first connection line of the three-wire thermal sensor is connected to terminal 0, the second connection line is connected to terminal 1, and the compensation line is connected to terminal 2.

[0070] Based on the above circuit structure, ADC313 is provided with a power supply terminal, the input terminals of the first constant current source circuit 310 and the second constant current source circuit 311 are respectively connected to the power supply terminal of ADC313, the output terminal of the first constant current source circuit 310 is connected to the first connection terminal of the gating circuit SW10, one of the second connection terminals of the gating circuit SW10 is connected to the wiring terminal 0, and the output terminal of the corresponding second constant current source circuit 311 is connected to the first connection terminal of the gating circuit SW11, and one of the second connection terminals of the gating circuit SW11 is connected to the wiring terminal 1. The first constant current source circuit 310 and the second constant current source circuit 311 are mainly used to convert the output voltage of the power supply terminal of ADC313 into a stable sampling current, that is, to provide a constant current source output for the three-wire thermal sensor. As for the specific structure of the first constant current source circuit 310 and the second constant current source circuit 311, it can be realized by referring to the relevant technology, and the present application does not limit the specific circuit topology of the two.

[0071] It should be noted that the ADC313 provided in this embodiment cooperates with the first constant current source circuit 310 and the second constant current source circuit 311 to simultaneously collect the resistance values ​​of 8 three-wire thermal sensors. Therefore, the gating circuit SW10 and the gating circuit SW11 in the first gating module 10 are selected in a specification of 1:8. For the convenience of describing the circuit implementation process, Figure 2a The example in the figure only takes the connection of a three-wire thermal sensor as an example.

[0072] Furthermore, the gating circuit SW21 and the gating circuit SW22 are both of 1:4 specifications, and the four second connection terminals included in the two are respectively used as the input terminals of the second gating module, and correspondingly, the first connection terminals of the two are respectively used as the output terminals of the second gating module. Figure 2a In the circuit shown, a second connection terminal of the gating circuit SW21 is connected to a second connection terminal of the gating circuit SW12 as a first input terminal of the second gating module, and a first connection terminal of the gating circuit SW21 is connected to an input terminal of the filter circuit 312. Correspondingly, a second connection terminal of the gating circuit SW22 is also connected to a second connection terminal of the gating circuit SW13 in the first gating module 20 as a first input terminal of the second gating module, and a first connection terminal of the gating circuit SW22 is connected to another input terminal of the filter circuit 312. The output terminal of the filter circuit 312 is connected to the sampling terminal of the ADC 313 (denoted by A in the figure). IN0 and A IN1 shown).

[0073] One end of the selection circuit SW16 is connected to the compensation line of the three-wire thermal sensor via the external terminal 2, and the other end is grounded via the diode D5.

[0074] It should be noted that each gating circuit in the first gating module 20 and the second gating module receives the aforementioned gating signal and switches the connection state under the control of the gating signal.

[0075] Based on the above circuit structure, when the current gating signal indicates that the temperature acquisition circuit is the target channel circuit, the related gating circuit in the first gating module 20 is controlled to connect the external module and the temperature acquisition circuit. Correspondingly, the second gating module responds to the current gating signal to connect the first gating module and the filter circuit 312. The constant current source circuit provides a constant current sampling current to the three-wire thermal sensor, and the gating circuit SW16 is gated, so that the compensation line of the three-wire thermal sensor is grounded. At the same time, ADC312 collects the voltage across the thermal resistor through the voltage acquisition channel composed of the filter circuit 312, the gating circuit SW21, the gating circuit SW22, the gating circuit SW12 and the gating circuit SW13, and determines the resistance value of the thermal resistor based on the sampling result. As for the specific implementation process of ADC313 determining the resistance value of the thermal resistor based on the acquisition result and further determining the sampling temperature, it can be realized by referring to the relevant technology, and this application does not limit it.

[0076] Of course, in order to ensure the normal operation of ADC312, the temperature acquisition circuit also includes a clock circuit for providing a clock signal to ADC313, a power supply circuit for providing a reference voltage for ADC313 to calculate the resistance value of the thermal resistor, and a first communication isolation circuit required for ADC313 to communicate with the host computer. Among them, since the reference power supply circuit collected by ADC313 provides, the accuracy and temperature drift of the circuit have higher requirements, and the circuit layout and routing when arranging the circuit board should be kept away from digital interference sources. The power supply circuit at least meets the following parameter requirements: within the full temperature range, the temperature drift at least meets 10ppm / ℃, and within the full temperature range, the initial accuracy at least meets ±0.1%. Of course, in practical applications, other peripheral circuits can also be included, which are no longer listed one by one in this embodiment. Without exceeding the core idea of ​​this application, they also belong to the scope of protection of this application.

[0077] In an optional implementation, ADC313 can be selected with reference to the following parameters: built-in PGA (Programmable Gain Amplifier) ​​with 1 to 128 channels to meet the requirements of various ranges; built-in buffer memory for input and reference voltages to greatly improve the input impedance of the ADC and greatly reduce the accuracy loss caused by leakage; select ΔΣ ADC and use oversampling to reduce the design difficulty of the anti-aliasing filter at the front end of the ADC; when using multiple ADCs, the clock output pin of the first chip can be used to drive the clock input pin of the second chip, greatly reducing the cost of the clock. A digital filter circuit is integrated, and the power frequency interference can be effectively suppressed by configuring the sampling rate.

[0078] Based on the above, see Figure 2b The analog voltage input circuit provided in this embodiment includes: a voltage attenuation circuit 321, a first voltage conversion circuit 322, and a second voltage conversion circuit 323. At the same time, the analog voltage input circuit also shares the second selection module, the filter circuit 312 and the ADC313 with the aforementioned temperature acquisition circuit.

[0079] Combination Figure 2b As shown, in this embodiment, the peripheral device can be a device that provides ±10V analog voltage. Figure 2b As shown by AI_10V, the output end of the peripheral device is connected to the external terminal 0 and the external terminal 1 of the external module 10.

[0080] The external terminal 0 is connected to the first connection end of the gating circuit SW12, the other second connection end of the gating circuit SW12 is connected to the input end of the voltage attenuation circuit 321, and the output end of the voltage attenuation circuit 321 is connected to the input end of the first voltage conversion circuit 322. The first connection end of the gating circuit SW13 is connected to the external terminal 1, and the other second connection end of the gating circuit SW13 is connected to the input end of the second voltage conversion circuit 323. A second connection end of the gating circuit SW21 and a second connection end of the gating circuit SW22 are respectively used as the second input end of the second gating module, and are respectively connected to the output ends of the first voltage conversion circuit 322 and the second voltage conversion circuit 323. Specifically, the gating circuit SW21 is connected to the output end of the first voltage conversion circuit 322, and the gating circuit SW22 is connected to the output end of the second voltage conversion circuit 323. The output end of the second selection circuit is connected to the input end of the filter circuit 312. When the target channel circuit is an analog voltage input circuit, the second selection module responds to the current selection signal to connect the filter circuit 312 with the first voltage conversion circuit 322 and the second voltage conversion circuit 323. Furthermore, the output end of the filter circuit 312 is connected to the sampling end of ADC313.

[0081] Based on the above connection relationship, when the current selection signal indicates that the target channel circuit is an analog voltage input circuit, according to Figure 2b As shown, a closed acquisition channel is formed, and ADC313 acquires the analog input voltage provided by the peripheral device. The connection path of the first gating module and the second gating module is based on the above-mentioned acquisition path, which will not be repeated here.

[0082] In practical applications, the voltage range of the analog input voltage provided by the peripheral device is ±10V, while the input range of the sampling end of ADC313 is 0-5V. Therefore, it is necessary to perform voltage conversion through the voltage attenuation circuit 321, the first voltage conversion circuit 322 and the second voltage conversion circuit 323. Specifically, after the peripheral device provides the analog input voltage, the input voltage is reversely attenuated to a preset ratio by the voltage attenuation circuit 321, such as attenuating to 1 / 10 of the input voltage amplitude, so that the input voltage is attenuated from ±10V to ±1V. Further, the first voltage conversion circuit 322 provides a bias voltage, such as providing a 1.25V common-mode bias voltage, to convert the voltage signal from ±1V to 0.25V to 2.25V. Correspondingly, the second voltage conversion circuit 323 provides a 1.25V common-mode bias voltage for the negative pole of the acquisition line. In this way, the sampling voltage acquired by the ADC313 by differential can be within the range of ±1V. Furthermore, to improve the acquisition accuracy, the PGA in ADC313 is configured with a gain of 4, so that the range of the acquired voltage signal is expanded to ±4V, covering 80% of the full scale of ±5V of ADC313, thereby meeting the voltage sampling requirement.

[0083] As for Figure 2b The specific implementation of the voltage attenuation circuit, the first voltage conversion circuit and the second voltage conversion circuit shown in the figure can all be implemented with reference to related technologies, and this application does not make any specific limitations on this.

[0084] See also Figure 2c The analog current input circuit provided in this embodiment includes a current sensing resistor 331. At the same time, the analog current input circuit also shares the second selection circuit, the filter circuit 312 and the ADC 313 with the temperature acquisition circuit and the analog voltage input circuit provided in the above-mentioned embodiment.

[0085] Combination Figure 2c As shown, in this embodiment, the peripheral device is a device that can provide 4-20mA analog current, which is shown as AI_4-20mA in the figure. The peripheral device is connected between the external terminal 0 and the external terminal 1, and the other end of the external terminal 0 is connected to one end of the gating circuit SW14 in the first gating module 20, and the other end of the gating circuit SW14 is connected to one end of the current sensing resistor 331, and the other end of the current sensing resistor 331 is connected to the external terminal 1. Further, the two ends of the current sensing resistor 331 are also respectively connected to the third input end of the second gating module. Specifically, in combination with Figure 2cAs shown, an unused second connection terminal in the gating circuit SW21 and the gating circuit SW22 is used as the third input terminal of the second gating module, one end of the current sensing resistor 331 is connected to the second connection terminal in the gating circuit SW21, and the other end of the current sensing resistor 331 is connected to the second connection terminal in the gating circuit SW22. Referring to the foregoing, the output terminal of the second gating module is connected to the input terminal of the filter circuit 312. In the case where the target channel circuit includes an analog current input circuit, the second gating module connects the current sensing resistor 331 and the filter circuit 312 in response to the current gating signal. Further, the output terminal of the filter circuit 312 is connected to the sampling terminal of the ADC 313.

[0086] When the current selection signal indicates that the analog current input circuit is the target channel circuit, the selection circuit SW14 in the first selection module 20 is turned on in response to the current selection signal, and at the same time, the second selection module forms a signal as shown in FIG. Figure 2c The connection path shown. The peripheral device provides a 4-20mA analog input current, which enters the current-sensing resistor 331 through the external terminal 0 and the gating circuit SW14, and returns to the peripheral device through the current-sensing resistor 331 and the external terminal 1. In this process, a sampling voltage will be generated at both ends of the current-sensing resistor 331. The sampling voltage enters the filter circuit 312 through the gating circuit SW21 and the gating circuit SW22. After being filtered by the filter circuit 312, it is finally collected by ADC313 in the form of a differential signal. Since the resistance value of the current-sensing resistor 331 is known, ADC313 can obtain the analog input current provided by the peripheral device according to the obtained sampling voltage and the resistance value of the current-sensing resistor 331, and complete the collection of the analog input current.

[0087] In practical applications, if the resistance of the current-sense resistor is 100Ω, the analog input current range is 4-20mA, and accordingly, the sampling voltage range generated on the 100Ω current-sense resistor is 0.4V~2V. To meet the sampling requirements, the ADC can use a 2x PGA to amplify the signal to 0.8V~4V, and then calculate the analog input current.

[0088] To sum up, the multifunctional channel circuit provided by this embodiment can provide three functions of temperature acquisition, analog voltage input acquisition and analog current input acquisition. In practical applications, any one of them can be selected according to the selection signal for application in control system construction. In other words, the functions of three channel circuits in the prior art can be realized through the multifunctional channel circuit provided by this application. Compared with the prior art, the multifunctional channel circuit provided by this application can meet the control requirements in different scenarios, improve application flexibility and reduce the overall cost of the control system.

[0089] It should be noted that the second gating module provided in the aforementioned embodiment mainly functions to realize the sharing of the filter circuit and ADC by the analog voltage input circuit, the analog current input circuit and the temperature acquisition circuit. In practical applications, the second gating module responds to the current gating signal and connects the corresponding acquisition channel with the filter circuit and the ADC according to the circuit path described in the aforementioned embodiment, thereby constructing the target channel circuit indicated by the current gating signal. It can be understood that by sharing the filter circuit and the ADC, the overall cost of the circuit can be effectively reduced. In other words, ignoring the cost factor, the second gating module can be cancelled, and the corresponding filter circuit and ADC can be set for the analog voltage input circuit, the analog current input circuit and the temperature acquisition circuit, respectively. This is also optional and also falls within the scope of protection of this application.

[0090] Furthermore, the present application provides another multifunctional channel circuit. Figure 2a-2c Based on the embodiment shown, the multifunctional channel circuit provided in this embodiment further includes an analog voltage output circuit and an analog current output circuit. Referring to the above embodiment, the circuit structure of the multifunctional channel circuit provided in this embodiment can be seen in Figure 3a to Figure 3b As shown in any of the attached drawings. It should be noted that Figure 3a The bold circuit diagram shows the circuit structure that provides analog voltage output function through the analog voltage output circuit. Figure 3b The bold circuit diagram portion shows the circuit configuration for providing an analog current output function through an analog current output circuit.

[0091] Based on the above, see Figure 3a The analog voltage output circuit provided in this embodiment includes a first power conversion circuit 340, a digital to analog converter (DAC) 341 and a third selection module, wherein the third selection module includes a selection circuit SW31. In this embodiment, the selection circuit SW31 is of a 1:2 specification, that is, it includes 1 first connection terminal and 2 second connection terminals. The first connection terminal can be connected to any one of the second connection terminals according to a selection signal.

[0092] Specifically, the output terminal of DAC341 ( Figure 3aThe first output terminal of the third selection module, that is, a second connection terminal in the selection circuit SW31, is connected to the input terminal of the first power conversion circuit 340. The output terminal of the first power conversion circuit 340 is connected to the first selection module 20. Specifically, the output terminal of the first power conversion circuit 340 is connected to one end of the selection circuit SW15 in the first selection circuit 20, and the other end of the selection circuit SW15 is connected to the external terminal 0. The external terminal 0 and the ground terminal GND are used to connect peripheral devices (in Figure 3a AO_±10V is shown in the figure).

[0093] Based on the above circuit structure, when the target channel circuit includes an analog voltage output circuit, the gating circuit SW15 is turned on, and at the same time, the third gating module is connected to the first power conversion circuit 340 and the DAC341, and the DAC341 outputs the voltage through the output terminal AO, and the first power conversion circuit 340 is used to convert the output voltage of the DAC341 into an analog voltage that matches the peripheral device. As for the specific structure of the first power conversion circuit 340, it can be realized with reference to the relevant technology, and this application does not make specific limitations on this.

[0094] In one possible implementation, the output voltage of DAC341 is 0-5V. After gain amplification and power amplification by the first power conversion circuit 340, an analog voltage within the range of ±10V is output, and after passing through the first selection module and the corresponding external terminal, it is output to the peripheral device.

[0095] In another possible implementation, the analog voltage acquisition circuit is in an idle state. Therefore, when the target channel circuit is an analog voltage output circuit, a circuit structure such as Figure 3a The voltage acquisition channel shown in the figure acquires the analog voltage actually output by the analog voltage output circuit through the voltage acquisition channel, and performs correction and fault diagnosis on the analog voltage output process according to the acquisition result. The channel implementation of the voltage acquisition channel described in this embodiment can be found in Figure 3a The circuit in bold is shown in FIG. 1 and will not be described in detail here.

[0096] For further information, see Figure 3b As shown, the analog current output circuit provided in this embodiment includes: a second power conversion circuit 350. At the same time, the analog current output circuit also shares the DAC341 and the third gating module with the aforementioned analog voltage output circuit.

[0097] Specifically, the input end of the third gating module, that is, the first connection end of the gating circuit SW31 is connected to the output end of the DAC341, the second output end of the third gating module, that is, the other second connection end of the gating circuit SW31 is connected to the input end of the second power conversion circuit 350, and the output end of the second power conversion circuit 350 is connected to the first gating module 20, combined with Figure 3b As shown, the second power conversion circuit 350 is specifically connected to one end of the gating circuit SW17 in the first gating module 20, and the other end of the gating circuit SW17 is connected to the external terminal 2. The external terminal 2 and the ground terminal GND are used to connect peripheral devices ( Figure 3b AO_4-20mA is shown in FIG.

[0098] Based on the above circuit structure, when the target channel circuit includes an analog current output circuit, the gating circuit SW17 in the first gating module is in a conducting state, and at the same time, the gating circuit SW31 in the third gating module is connected to the second power conversion circuit 350 and DAC341, DAC341 provides an output voltage, and the second power conversion circuit 350 converts the output voltage of DAC341 into an analog current that matches the peripheral device, wherein the conversion process of the second power conversion circuit 350 mainly includes converting the voltage into a current, and further performing power conversion on the current, and finally obtaining the aforementioned analog current. As for the specific circuit structure of the second power conversion circuit 350, it can be realized with reference to the relevant technology, and this application does not make specific limitations by comparison.

[0099] As a preferred implementation method, this application Figure 3a as well as Figure 3b The DAC involved in the illustrated embodiment can be optionally integrated with multiple independent data conversion channels to achieve the output of multiple analog voltages or analog currents, and each channel can continuously maintain the set output state to meet the output requirements of high-density multi-channels. Furthermore, a high-precision reference voltage circuit is provided inside the DAC, with an initial accuracy of 0.2% and a temperature drift of 25ppm / ℃ over the full temperature range.

[0100] In an optional implementation, the DAC also needs to exchange information with the host computer. In this case, the multifunctional channel circuit provided in this embodiment also includes a second communication isolation circuit. The DAC is connected to the host computer for communication via the second communication isolation circuit. The second communication isolation circuit is used to establish a communication connection between the DAC and the host computer, and at the same time, it is also used to achieve electrical isolation between the two to prevent signal crosstalk.

[0101] To sum up, based on the previous embodiments, the multifunctional channel circuit provided in this embodiment can also provide an analog voltage output function or an analog current output function. Compared with the multifunctional channel circuit provided in the previous embodiments, the multifunctional channel circuit provided in this application has richer application scenarios and higher application flexibility.

[0102] It should be noted that the third gating module provided in the aforementioned embodiment mainly functions to realize that the analog voltage output circuit and the analog current output circuit share the DAC. In practical applications, the third gating module responds to the current gating signal and connects the corresponding acquisition channel with the DAC according to the circuit path described in the aforementioned embodiment, thereby constructing the target channel circuit indicated by the current gating signal. It can be understood that by sharing the DAC, the overall cost of the circuit can be effectively reduced. In other words, ignoring the cost factor, the third gating module can be cancelled, and corresponding ADCs can be set for the analog voltage output circuit and the analog current output circuit respectively. This is also optional and also falls within the scope of protection of this application.

[0103] Further, based on the multifunctional channel circuit provided in any of the above embodiments, this embodiment provides another multifunctional channel circuit, further comprising a digital quantity input circuit and a digital quantity output circuit. Figure 3a Based on the illustrated embodiment, the multifunctional channel circuit provided by this embodiment is introduced in detail.

[0104] Referring to the above embodiments, the circuit structure of the multi-function channel circuit provided in this embodiment can be seen in Figure 4a to Figure 4b As shown in any of the attached drawings. It should be noted that Figure 4a The bold circuit diagram shows the circuit structure that provides the digital input acquisition function through the digital input circuit. Figure 4b The bold portion of the circuit diagram shows the circuit configuration that provides a digital output function through a digital output circuit.

[0105] See also Figure 4a As shown, the digital input circuit provided in this embodiment includes a digital input (DI) controller 360. The input terminal ( Figure 4a DI in the figure) is connected to the first selection module 20, specifically, connected to one end of the selection circuit SW18 in the first selection module 20, and the other end of the selection circuit SW18 is connected to the external terminal 2, and the external terminal 2 and the ground terminal GND are used to connect the peripheral device ( Figure 4a DI_24V is shown in the figure).

[0106] In the case where the target channel circuit is a digital input circuit, the selection circuit SW18 is turned on in response to the current drive signal, and the DI controller 360 Figure 4a The digital quantity acquisition path shown can acquire the digital quantity input information provided by the peripheral device.

[0107] It can be understood that, based on the foregoing content, the external terminal 2 is also used to connect other external devices, and the selection circuit SW18 is set. When the target channel circuit is not a digital input circuit, the selection circuit SW18 is in a disconnected state, thereby effectively avoiding the influence of the external signal on the DI controller 360, which helps to improve the safety of the DI controller 360.

[0108] For further information, see Figure 4b As shown, the digital output circuit provided in this embodiment includes a digital output (Digital Output, DO) controller 370, wherein the output terminal ( Figure 4b DO in the figure) is connected to the first selection module 20, specifically, connected to one end of the selection circuit SW19 in the first selection module 20, and the other end of the selection circuit SW19 is connected to the external terminal 2, and the external terminal 2 and the ground terminal GND are used to connect the peripheral device ( Figure 4b DO_24V is shown in the figure).

[0109] When the target channel circuit is a digital output circuit, the selection circuit SW19 is turned on in response to the current drive signal, and the DO controller 370 is turned on by Figure 4b The digital output path shown outputs digital information to peripheral devices.

[0110] It can be understood that, based on the above content, the external terminal 2 is also used to connect other external devices, and the gating circuit SW19 is set. When the target channel circuit is not a digital output circuit, the gating circuit SW19 is in a disconnected state, thereby effectively avoiding the influence of the external signal on the DO controller 370, which helps to improve the safety of the DO controller 370. At the same time, it can also effectively prevent the DO controller 370 from outputting digital signals to the outside in the case of malfunction, affecting the safe operation of peripheral devices. Of course, in a possible implementation, the gating circuit SW19 can also be cancelled, and the output end of the DO controller 370 is directly connected to the external terminal 2.

[0111] Further, combined with Figure 4b As shown, the DO controller 370 requires an external 24V DC power supply to operate. Based on this, the external module 10 also includes power terminals VM+ and VM-. In actual applications, the 24V power supply is connected to the power terminal of the DO controller 370 through the power terminals VM+ and VM- ( Figure 4b ) to provide power to the DO controller 370.

[0112] In order to ensure power supply safety, the circuit provided in this embodiment is also provided with an anti-reverse connection circuit 371. When the 24V power supply is reversely connected, the anti-reverse connection circuit 371 is in an open circuit state and does not form a closed loop, thereby ensuring the safe operation of the DO controller 370. As for the specific structure of the anti-reverse connection circuit 371, it can be implemented with reference to relevant technologies, and this application does not make specific limitations on this.

[0113] In a possible implementation, the DO controller will also communicate with the host computer. In this case, the digital output circuit provided in this embodiment also includes a third communication isolation circuit. The DO controller is connected to the host computer through the third communication isolation circuit. The third communication isolation circuit is used to establish a communication connection between the DO controller and the host computer, and at the same time, it is also used to achieve electrical isolation between the two to prevent signal crosstalk.

[0114] To sum up, based on the previous embodiments, the multi-functional channel circuit provided in this embodiment can also provide a digital output function or a digital input function. Compared with the multi-functional channel circuit provided in the previous embodiments, the multi-functional channel circuit provided in this application has richer application scenarios and higher application flexibility.

[0115] In a possible implementation, the multifunctional channel circuit provided by any of the aforementioned embodiments further includes a controller, which is respectively connected to each selection circuit and each channel circuit in the first selection module. The controller provided in this embodiment responds to the configuration instruction of the host computer, outputs the aforementioned selection signal, and controls the multifunctional channel circuit to provide the circuit function of the target channel circuit indicated by the selection signal.

[0116] Based on the control process and circuit diagram of each multifunctional channel circuit mentioned above, it can be known that for any circuit function provided by the multifunctional channel circuit, when providing the circuit function, the connectivity relationship between the first selection circuit in the multifunctional channel circuit and the corresponding channel circuit is determined, and the connectivity relationship between each channel circuit is also determined. Therefore, corresponding selection codes can be set for different circuit functions respectively. According to the circuit function selection of the host computer, the selection signal including the corresponding selection code can be output to control the multifunctional channel circuit to provide the corresponding circuit function. For example, the channel function is divided into: 0000, disable, that is, no circuit function is provided; 0001, provide temperature acquisition function; 0011, provide analog voltage input function, etc., and so on, it can be realized to select the corresponding circuit function according to the demand.

[0117] It should be noted that in the multifunctional channel circuit provided in any of the above embodiments, diodes D1-D7 are also provided, and these diodes can effectively prevent external signals from affecting the inside of the multifunctional channel circuit. Furthermore, the circuit is also connected to the channel input clamping voltage (i.e., the +13V and -13V voltages shown in the accompanying drawings) through corresponding diodes. By setting the channel input clamping voltage, the channel can be prevented from being mistakenly connected to high voltage and damaging the device. ADC313 is connected to the +5V voltage and the grounding point through the corresponding diode, which can effectively ensure the safe operation of ADC313. Correspondingly, the 24V voltage and the grounding point connected by the diode can play a similar role, which will not be repeated here. At the same time, in the multifunctional channel circuit provided in each embodiment, current limiting resistors R1-R5 are also provided, and the current limiting resistors can effectively prevent the corresponding line from overcurrent, avoid damaging the subsequent circuit, and improve the safety of the circuit as a whole. For the relevant contents involved in this part, all can be implemented with reference to the relevant technology, and this application does not limit this.

[0118] Furthermore, the present application provides a multi-functional channel module, comprising: the multi-functional channel circuit provided by any of the aforementioned embodiments.

[0119] Furthermore, the present application also provides an electronic device, including the multi-functional channel module provided in the above embodiment.

[0120] Those skilled in the art will appreciate that the contents disclosed in this disclosure may be subject to various modifications and improvements. For example, the various devices or components described above may be implemented by hardware, or by software, firmware, or a combination of some or all of the three.

[0121] In addition, although the present disclosure makes various references to certain units in the system according to embodiments of the present disclosure, any number of different units can be used and run on the client and / or server. The units are only illustrative, and different aspects of the system and method can use different units.

[0122] Flowcharts are used in this disclosure to illustrate the steps of the method according to the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes.

[0123] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, etc. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits. Accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.

[0124] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.

[0125] The above is an explanation of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure are described, it will be readily understood by those skilled in the art that many modifications may be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure as defined in the claims. It should be understood that the above is an explanation of the present disclosure and should not be considered to be limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

Claims

1. A multifunctional channel circuit, characterized in that: include: An external module, a first selection module and a multi-channel circuit, wherein: The external module is used to connect peripheral devices; The channel circuits are used to implement preset circuit functions, and the preset circuit functions corresponding to the channel circuits are different from each other; The first gating module is respectively connected to the external module and each of the channel circuits; The first gating module connects the target channel circuit and the external module in response to the current gating signal, wherein the target channel circuit is the channel circuit indicated by the current gating signal in each of the channel circuits.

2. The multifunctional channel circuit according to claim 1, characterized in that: The multi-channel circuit includes: an analog voltage input circuit, an analog current input circuit and a temperature acquisition circuit.

3. The multifunctional channel circuit according to claim 2, characterized in that: The multi-channel circuit also includes: an analog voltage output circuit and an analog current output circuit.

4. The multifunctional channel circuit according to claim 1 or 3, characterized in that: The multi-channel circuit also includes: a digital quantity input circuit and a digital quantity output circuit.

5. The multifunctional channel circuit according to claim 1, characterized in that: The first gating module includes a multi-way gating circuit, wherein: One end of the gating circuit is connected to the external module, and the other end of the gating circuit is connected to at least one channel circuit; The channel circuit connected to the target channel circuit is turned on in response to the current selection signal.

6. The multifunctional channel circuit according to claim 2, characterized in that: The temperature acquisition circuit includes: a constant current source circuit, a filter circuit, an analog-to-digital converter ADC, and a second gating module, wherein: The input end of the constant current source circuit is connected to the power supply end of the ADC, and the output end of the constant current source circuit is connected to the first gating module; The first input end of the second gating module is connected to the first gating module, and the output end of the second gating module is connected to the input end of the filter circuit; The output end of the filter circuit is connected to the sampling end of the ADC; In the case where the target channel circuit includes the temperature acquisition circuit, the second gating module connects the first gating module and the filtering circuit in response to the current gating signal.

7. The multifunctional channel circuit according to claim 6, characterized in that: The analog voltage input circuit includes: a voltage attenuation circuit, a first voltage conversion circuit, a second voltage conversion circuit, the second gating module, the filtering circuit and the ADC, wherein: The voltage attenuation circuit is connected between the first gating module and the input end of the first voltage conversion circuit; An input end of the second voltage conversion circuit is connected to the first gating module; The output ends of the first voltage conversion circuit and the second voltage conversion circuit are respectively connected to the second input end of the second gating module, and the output end of the second gating module is connected to the input end of the filter circuit; The output end of the filter circuit is connected to the sampling end of the ADC; In the case where the target channel circuit includes the analog voltage input circuit, the second gating module connects the filtering circuit with the first voltage conversion circuit and the second voltage conversion circuit in response to the current gating signal.

8. The multifunctional channel circuit according to claim 6, characterized in that: The analog current input circuit includes: a current sensing resistor, the second gating module, the filter circuit and the ADC, wherein: One end of the current-sensing resistor is connected to the external module, and the other end of the current-sensing resistor is connected to the first gating module; The third input terminal of the second gating module is connected to the current sensing resistor to collect the sampling voltage generated by the analog current flowing through the current sensing resistor; The output end of the second gating module is connected to the input end of the filtering circuit; The output end of the filter circuit is connected to the sampling end of the ADC; In the case where the target channel circuit includes the analog current input circuit, the second gating module connects the current sensing resistor and the filtering circuit in response to the current gating signal.

9. The multifunctional channel circuit according to claim 3, characterized in that: The analog voltage output circuit comprises: a first power conversion circuit, a digital-to-analog converter DAC and a third gating module, wherein: The input end of the third gating module is connected to the output end of the DAC, and the first output end of the third gating module is connected to the input end of the first power conversion circuit; The output end of the first power conversion circuit is connected to the first gating module; The first power conversion circuit is used to convert the output voltage of the DAC into an analog voltage; In the case where the target channel circuit includes the analog voltage output circuit, the third gating module is connected to the first power conversion circuit and the DAC.

10. The multifunctional channel circuit according to claim 9, characterized in that: The analog current output circuit includes: a second power conversion circuit, the DAC and the third gating module, wherein: The input end of the third gating module is connected to the output end of the DAC, and the second output end of the third gating module is connected to the input end of the second power conversion circuit; The output end of the second power conversion circuit is connected to the first gating module; The second power conversion circuit is used to convert the output voltage of the DAC into an analog current; In the case where the target channel circuit includes the analog current output circuit, the third gating module is connected to the second power conversion circuit and the DAC.

11. The multifunctional channel circuit according to claim 4, characterized in that: The digital quantity input circuit comprises: a digital quantity input controller, wherein: The input end of the digital quantity input controller is connected to the first gating module; The digital quantity output circuit comprises: a digital quantity output controller, wherein: The output end of the digital output controller is connected to the first gating module; The power supply end of the digital output controller is connected to the external module.

12. A multifunctional channel module, characterized in that: The method comprises the multifunctional channel circuit as claimed in any one of claims 1 to 11.

13. An electronic device, characterized in that: include: The multifunctional channel module as claimed in claim 12.