CN214474593U - Intelligent port conversion device and system - Google Patents

Intelligent port conversion device and system Download PDF

Info

Publication number
CN214474593U
CN214474593U CN202120826893.0U CN202120826893U CN214474593U CN 214474593 U CN214474593 U CN 214474593U CN 202120826893 U CN202120826893 U CN 202120826893U CN 214474593 U CN214474593 U CN 214474593U
Authority
CN
China
Prior art keywords
output
port
input
sub
digital
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.)
Active
Application number
CN202120826893.0U
Other languages
Chinese (zh)
Inventor
郭文辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202120826893.0U priority Critical patent/CN214474593U/en
Application granted granted Critical
Publication of CN214474593U publication Critical patent/CN214474593U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model provides an intelligence port conversion equipment and system belongs to and observes and controls and communication technology field, and it includes: the controller input/output sub-port module comprises at least one type of input/output sub-port and is used for outputting signals or receiving signals; the load input/output port is used for receiving signals output by the controller input/output sub-port module or outputting signals to the controller input/output sub-port module; and the port switching module is used for electrically connecting the corresponding type of input/output sub-port in the at least one type of input/output sub-port with the load input/output port according to the type of the signal output to the load input/output port by the controller input/output sub-port module or the type of the signal output to the controller input/output sub-port module by the load input/output sub-port. The utility model has the advantages of automatic conversion port type, reduction equipment complexity.

Description

Intelligent port conversion device and system
Technical Field
The utility model relates to a observe and control and the technical field of communication, concretely relates to intelligence port conversion equipment and system.
Background
The port is an outlet for communication between the device and the outside, and the port can be divided into a virtual port and a physical port, where the physical port is a visible port, for example, an RJ45 network port, a USB port, and a 232 port of a computer backplane, an RJ45 port such as a switch router hub, a switching value input port, an output port, and an AD input port of a PLC controller.
In the prior art, because the port type and the port direction are determined, in some application occasions, the port part with certain type or/and different direction is remained, and the port with other type or direction is insufficient. For example, a certain PLC is configured as 10-point digital input, 2-point analog input, 8-point digital output, and no analog input, while a certain item requires 3-point analog input, 10-point digital output, and 1-point analog output, and digital input requires only 5 points, so that in order to meet technical requirements, the requirement of the item can be met only by adopting a PLC model with more points, although the total point requirement does not exceed the input and output points of the PLC, or an analog input/output expansion unit is added, and a digital output expansion unit is added. Thus, although the project requirements are met, the cost and the system complexity are increased significantly, and a situation may occur in which a large number of ports of a certain type or direction are left and a small number of ports of another certain type/direction are not enough to meet the technical requirements.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to overcome the shortcoming among the prior art, provide an intelligence port conversion equipment and port conversion system, have automatic conversion port type and/or direction to solve a large amount of surplus and the port quantity of other certain type/direction of port of certain type or direction and be not enough can not reach technical requirement's problem, reduce the advantage of equipment complexity.
One of the embodiments of the present specification provides an intelligent port switching device, including;
the controller input/output sub-port module comprises at least one type of input/output sub-port and is used for outputting signals or receiving signals;
a load input/output port for receiving signals output by the controller input/output sub-port module or for outputting signals to the controller input/output sub-port module;
and the port switching module is used for electrically connecting the corresponding type of input/output sub-port in the at least one type of input/output sub-port with the load input/output port according to the type of the signal output to the load input/output port by the controller input/output sub-port module or the type of the signal output to the controller input/output sub-port module by the load input/output sub-port module.
The beneficial effects of the utility model are that, controller input/output subport module can external controller, the controller is used for exporting at least one type's signal to controller input/output subport module, and through the input/output subport that corresponds with the type of signal among the at least one type's input/output subport with signal transmission to load input/output port, load input/output port can external load, a signal for receiving controller output, port switching module is arranged in the type of controller input/output subport module output to the signal of load input/output port and corresponds the type's input/output subport and load input/output port electricity in with the input/output subport of at least one type and is connected. The load can also transmit signals to the controller, the port switching module is also used for electrically connecting the input/output sub-port of the corresponding type in at least one type of input/output sub-port with the load input/output port according to the type of the signals output by the load input/output sub-port module to the controller input/output sub-port module, so that the output signals of the load can be transmitted to the controller, or the signals output by the controller can be transmitted to the load, thereby achieving the technical effects of automatically converting the type of the port, solving the problem that a large number of the ports of a certain type or direction are left, but the number of the ports of other types/directions is insufficient, so that the technical requirements cannot be met, and reducing the complexity of equipment.
Further, the input/output sub-port is at least one or more combination of analog quantity output sub-port, analog quantity/digital quantity input sub-port and digital quantity output sub-port.
The intelligent port switching device has the advantages that the intelligent port switching device can be used for various types of signals according to requirements, and corresponding types of input/output sub-ports in at least one type of input/output sub-ports can be electrically connected with the load input/output ports according to the types of the signals.
Further, the port switching module comprises at least one of an analog quantity output switch, an analog quantity input switch, a digital quantity output switch and a digital quantity input switch;
the input end of the analog quantity output switch is electrically connected with the analog quantity output sub-port, and the output end of the analog quantity output switch is electrically connected with the load input/output port;
the input end of the analog quantity input switch is electrically connected with the load input/output port, and the output end of the analog quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port;
the input end of the digital quantity output switch is electrically connected with the digital quantity output sub-port, and the output end of the digital quantity output switch is electrically connected with the load input/output port;
the input end of the digital quantity input switch is electrically connected with the load input/output port, and the output end of the digital quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port.
The technical scheme has the advantages that when the external controller needs to output the analog quantity to the load input/output port, the input end of the analog quantity output switch is electrically connected with the analog quantity output sub-port, the output end of the analog quantity output switch is electrically connected with the load input/output port, and the analog quantity needing to be output is transmitted to the load input/output port through the analog quantity output sub-port. When an external controller needs to output digital quantity to a load input/output port, the input end of the digital quantity output switch is electrically connected with the digital quantity output sub-port, the output end of the digital quantity output switch is electrically connected with the load input/output port, and the digital quantity which needs to be output is transmitted to the load input/output port through the digital quantity output sub-port. When an external load needs to input analog quantity to the controller, the input end of the analog quantity input switch is electrically connected with the load input/output port, the output end of the analog quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port, and the analog quantity needing to be input is input to the analog quantity/digital quantity input sub-port through the load input/output port. When an external load needs to input digital quantity to the controller, the input end of the digital quantity input switch is electrically connected with the load input/output port, the output end of the digital quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port, and the digital quantity which needs to be input is input to the analog quantity/digital quantity input sub-port through the load input/output port.
Further, the analog output switch comprises a first resistor R1, an amplifier AMP, and an isolator, wherein an output signal of the analog output sub-port is coupled to the amplifier AMP through the first resistor R1, and the isolator is connected in series between an output end of the amplifier AMP and the load input/output port.
The beneficial effect of adopting the above further scheme is that the analog quantity output by the controller to the analog quantity output sub-port is coupled to the amplifier AMP through the first resistor R1 for amplification and then output, and the analog quantity output by the amplifier AMP is isolated by the isolator and then output to the load input/output port, so as to complete the output of the analog quantity.
Further, the analog input switch comprises a second resistor R2 and a third resistor R3, one end of the second resistor R2 is electrically connected to the load input/output port, the other end of the second resistor R2 is electrically connected to one end of the third resistor R3, the other end of the third resistor R3 is grounded, and a connection node between the second resistor R2 and the third resistor R3 is electrically connected to the analog/digital input sub-port.
The further scheme has the advantages that the analog quantity which needs to be input into the controller by the load is input into the second resistor R2 and the third resistor R3 through the load input/output port, divided and loaded to the analog quantity/digital quantity input sub-port.
Further, the digital output switch includes a first transistor switch connected in series between the digital output sub-port and the load input/output port, and a signal output from the digital output sub-port to the first transistor switch is used to control a conduction state of the first transistor switch.
The signal that the digital quantity that adopts above-mentioned further scheme is exported to the first transistor switch through digital quantity output subport is used for controlling the conducting state of first transistor switch.
Further, the digital input switch includes a digital input circuit;
the input end of the digital quantity input circuit is electrically connected with the load input/output port, and the output end of the digital quantity input circuit is electrically connected with the analog quantity/digital quantity input sub-port.
The further scheme has the advantages that the digital quantity input by the load is input to the analog quantity/digital quantity input sub-port through the digital quantity input circuit, and the controller receives the digital quantity input by the load from the analog quantity/digital quantity input sub-port. The analog quantity/digital quantity input sub-port can also receive voltage type digital switching value input with proper amplitude, for example, the voltage reaching a proper threshold represents a digital 1, and the voltage lower than the threshold represents a digital 0; the specific threshold is determined by the threshold characteristics of the corresponding interface of the external controller corresponding to the analog quantity/digital quantity input sub-port and the voltage division ratio of the second resistor R2 and the third resistor R3, and any value in the full range can be set as a critical value through ADC conversion software to be used as the input of digital input 1 or 0.
Furthermore, the digital quantity input switch also comprises an enable signal input sub-port and an optical isolation input circuit;
the input end of the optical isolation input circuit is electrically connected with the load input/output port, and the output end of the optical isolation input circuit is electrically connected with the analog quantity/digital quantity input sub-port;
the output signal of the enable signal input sub-port is used for controlling the conduction state of the optical isolation input circuit.
The technical scheme has the advantages that when digital quantity is required to be input through optical isolation, the optical isolation input circuit is controlled to be in a conducting state by the output signal of the enabling signal input sub-port, the optical isolation input circuit and the analog quantity/digital quantity input sub-port are connected, and the controller receives digital quantity signals from the analog quantity/digital quantity input sub-port. When the optical isolation input is adopted, the enabling signal input sub-port can receive signals of various dry contact switches, such as a button switch, an emergency stop button, a sensor for outputting the dry contact, an intermediate relay contact signal and the like.
One of the embodiments of the present disclosure provides an intelligent port conversion system, which includes a main control module and at least one intelligent port conversion device;
the main control module is electrically connected with at least one type of input/output sub-port of the intelligent port conversion device, the main control module is used for outputting signals to the at least one type of input/output sub-port, and the main control module is also used for receiving signals input by a load input/output port of the intelligent port conversion device.
The adoption of the further proposal has the advantages that the controller input/output sub-port module can be connected with the main control module, the main control module is used for outputting at least one type of signals to the controller input/output sub-port module, and transmits the signal to a load input/output port through an input/output sub-port corresponding to the type of the signal among the at least one type of input/output sub-ports, the load input/output port being externally connected to a load, the port switching module is used for controlling the type of the signal output from the input/output sub-port module to the load input/output port to electrically connect the corresponding type of input/output sub-port in at least one type of input/output sub-port with the load input/output port. The load can also transmit signals to the controller, and the port switching module is also used for electrically connecting the input/output sub-port of the corresponding type in at least one type of input/output sub-port with the load input/output port according to the type of the signals output by the load input/output sub-port module to the controller input/output sub-port module, so that the output signals of the load can be transmitted to the controller, thereby achieving the technical effects of automatically converting the port type, solving the problem that a large number of the ports of a certain type or direction are left, and the number of the ports of other types/directions is insufficient, so that the technical requirements cannot be met, and reducing the complexity of equipment.
Further, the device also comprises at least one of a power supply conversion device, an optional display device, an optional reference voltage device and a communication device;
the display device is used for displaying state data and/or working states;
the input device is used for locally setting system parameters including a system communication address and/or a baud rate;
the reference voltage device is used for providing voltage references of the analog quantity output switch and the analog quantity input switch;
the power conversion device is at least used for supplying power for the main control module and/or the reference voltage device.
The optional display device can be used for displaying set state data and/or system working states (for example, information such as digital quantity input and output states and analog quantity input and output parameter data), and the optional reference voltage device can provide voltage references of the analog quantity output switch and the analog quantity input switch and is used for improving the precision of the analog quantity unit. The power conversion device can provide a required working power supply for the main control module, and the working power supply VDD is subjected to voltage reduction conversion from the main power supply VCC and is provided for the main control module to use, and meanwhile, the working power supply VDD is provided for the reference voltage device to serve as a power supply. The power conversion device may also provide power to optional communication devices and/or display devices.
Drawings
Fig. 1 is a schematic diagram of an intelligent port conversion device according to the present invention;
fig. 2 is a schematic circuit diagram of an intelligent port switching device of the present invention for showing an analog output switch and a digital output switch;
fig. 3 is a schematic circuit diagram of an intelligent port switching device of the present invention for showing an analog output switch, an analog input switch, a digital input switch, and a digital output switch;
fig. 4 is a schematic circuit diagram of an intelligent port switching system according to the present invention;
fig. 5 is a schematic circuit diagram of an intelligent port switching device for showing an interlock logic circuit according to the present invention.
Detailed Description
The technical solution of the present invention is described in further detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
Referring to fig. 1, in some embodiments, an intelligent port switching apparatus includes a controller input/output sub-port module, a load input/output port I/O, and a port switching module.
In some embodiments, the controller input/output subport module may include at least one type of input/output subport for outputting signals or receiving signals. In some embodiments, the input/output sub-port is one of an analog output sub-port DAC, an analog/digital input sub-port ADC, and a digital output sub-port OUT. In some embodiments, the controller input/output subport module may include at least one input/output subport, e.g., the controller input/output subport module includes an analog output subport DAC; for another example, the controller input/output sub-port module comprises an analog quantity output sub-port DAC and an analog quantity/digital quantity input sub-port ADC; also for example, the controller input/output sub-port module includes an analog/digital input sub-port ADC and a digital output sub-port OUT.
In some embodiments, the load input/output port I/O may be used to receive signals output by the controller input/output sub-port module or to output signals to the controller input/output sub-port module.
In some embodiments, the port switching module may be configured to electrically connect a corresponding type of the at least one type of input/output sub-port with the load input/output port I/O according to a type of a signal output by the controller input/output sub-port module to the load input/output port I/O or a type of a signal output by the load input/output sub-port module to the controller input/output sub-port module.
In some embodiments, the port switching module comprises at least one of an analog output switch, an analog input switch, a digital output switch, and a digital input switch;
the input end of the analog quantity output switch is used for being electrically connected with the analog quantity output sub-port DAC, and the output end of the analog quantity output switch is used for being electrically connected with the load input/output port I/O;
the input end of the analog input switch is electrically connected with the load input/output port I/O, and the output end of the analog input switch is electrically connected with the analog/digital input sub-port ADC;
the input end of the digital output switch is electrically connected with a digital output sub-port OUT, and the output end of the digital output switch is electrically connected with a load input/output port I/O;
the input end of the digital quantity input switch is used for being electrically connected with the load input/output port I/O, and the output end of the digital quantity input switch is used for being electrically connected with the analog quantity/digital quantity input sub-port ADC.
Specifically, when the external controller needs to output the analog quantity to the load input/output port I/O, the input end of the analog quantity output switch is electrically connected to the analog quantity output sub-port DAC, the output end of the analog quantity output switch is electrically connected to the load input/output port I/O, and the analog quantity to be output is transmitted to the load input/output port I/O through the analog quantity output sub-port DAC. When an external controller needs to output digital quantity to a load input/output port I/O, the input end of the digital quantity output switch is electrically connected with a digital quantity output sub-port OUT, the output end of the digital quantity output switch is electrically connected with the load input/output port I/O, and the digital quantity which needs to be output is transmitted to the load input/output port I/O through the digital quantity output sub-port OUT. When an external load needs to input analog quantity to the controller, the input end of the analog quantity input switch is electrically connected with the load input/output port I/O, the output end of the analog quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port ADC, and the analog quantity needing to be input is input to the analog quantity/digital quantity input sub-port ADC through the load input/output port I/O. When an external load needs to input digital quantity to the controller, the input end of the digital quantity input switch is electrically connected with the load input/output port I/O, the output end of the digital quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port ADC, and the digital quantity needing to be input is input to the analog quantity/digital quantity input sub-port ADC through the load input/output port I/O.
In some embodiments, the port switching module may correspond to a controller input/output sub-port module.
For example, referring to fig. 2, the controller input/output sub-port module includes an analog output sub-port DAC and a digital output sub-port OUT, and the port switching module includes an analog output switch and a digital output switch. The analog output switch may include a first resistor R1, an amplifier AMP, and an isolator, the output signal of the analog output sub-port DAC being coupled to the amplifier AMP through the first resistor R1, the isolator being connected in series between the output terminal of the amplifier AMP and the load input/output port I/O. The isolator may include a first diode D1, an anode of the first diode D1 being electrically connected to the output terminal of the amplifier AMP, and a cathode of the first diode D1 being electrically connected to the load input/output port I/O. In some embodiments, the first diode D1 may be a schottky diode, reducing voltage drop and meeting high speed signal output requirements while achieving isolation.
The digital quantity output switch can comprise a first transistor switch which is connected between the digital quantity output sub-port OUT and the load input/output port I/O in series, and a signal output to the first transistor switch by the digital quantity output sub-port is used for controlling the conducting state of the first transistor switch; the first transistor switch includes a digital output transistor Q1 and a protection isolation transistor Q2. In some embodiments, the load may be a resistive load or a capacitive load. In other embodiments, the load may be an inductive load (e.g., a relay coil, etc.), and when the load is an inductive load, the output point of the digital output tube Q1 is connected to the third diode D3 of the main power VCC in the reverse direction, so as to release the reverse transient voltage generated by the inductive load inductor at the moment of disconnection, thereby ensuring that the digital output tube Q1 and the present circuit are not damaged by overvoltage. The fourth resistor R4 is a pull-down driving resistor, and is used to ensure that the digital output transistor Q1 is in an off state when the controller is initialized at power-on reset.
Specifically, the analog output sub-port DAC may be electrically connected to a DAC output port (a single chip with a DAC port) of the processor, a PWM output port of the processor may convert a PWM to DAC output formed by a PWM + filter circuit, a DAC output generated by an external DAC chip, and a DAC output generated by the parallel port module through an R/2R resistor network. In some embodiments, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc., wherein the general purpose Processor may be a microprocessor or the Processor may be any conventional Processor, etc.
When the analog quantity needs to be output, the output of the digital quantity output sub-port OUT is 0, the digital quantity output tube Q1 and the protection isolation tube Q2 are in a closed state, the analog quantity output by the analog quantity output sub-port DAC is coupled to the amplifier AMP through the first resistor R1 to be amplified and then output, and the analog quantity output by the amplifier AMP is isolated by the isolator and then output to the load input/output port I/O. When digital quantity is required to be output, the analog quantity output sub-port DAC is closed, digital signals required to be output are output to the digital quantity output sub-port OUT through a port of the single chip microcomputer to control the on-off state of a digital quantity output tube Q1, the open-drain output of the digital quantity output tube Q1 can be realized, meanwhile, a protection isolation tube Q2 is connected to the output digital quantity output tube Q1 in parallel, when the digital quantity output tube Q1 is connected and outputs effective signals, the output signals of the analog quantity output sub-port DAC are connected to the ground in a short-circuit mode through a first resistor R1, at the moment, a first resistor R1 is a load of an analog quantity output switch, the input end of an amplifier AMP is 0, the output quantity of the analog quantity output switch is guaranteed to be 0 when the digital quantity is output, therefore analog quantity signals cannot be generated due to system faults, software or interference, and the like, and the analog quantity signals cannot be directly short-circuited to the ground due to the conduction of the digital quantity output tube Q1, resulting in damage to the analog output switch, associated circuitry and devices.
For example, referring to fig. 3, the controller input/output sub-port module includes an analog output sub-port DAC, an analog/digital input sub-port ADC, and a digital output sub-port OUT, and the port switching module includes an analog output switch, an analog input switch, a digital output switch, and a digital input switch.
The analog output switch may include a first resistor R1, an amplifier AMP, and an isolator, the output signal of the analog output sub-port DAC is coupled to the amplifier AMP through the first resistor R1, and the isolator is connected in series between the output terminal of the amplifier AMP and the load input/output port I/O. It is noted that, in some embodiments, the isolator may be a first diode D1, the anode of the first diode D1 is electrically connected to the output terminal of the amplifier AMP, and the cathode of the first diode D1 is electrically connected to the load input/output port I/O. In some embodiments, the first diode D1 may be a schottky diode, reducing voltage drop and meeting high speed signal output requirements while isolation is accomplished; in other embodiments, the isolator may be a transmission gate and a MOS transistor switch.
The analog input switch may include a second resistor R2 and a third resistor R3, one end of the second resistor R2 is electrically connected to the load input/output port I/O, the other end of the second resistor R2 is electrically connected to one end of the third resistor R3, the other end of the third resistor R3 is grounded, and a connection node of the second resistor R2 and the third resistor R3 is electrically connected to the analog/digital input sub-port ADC. In some embodiments, the analog input switch may further include an isolation control and hardware filtering immunity circuit, which increases immunity to interference for reliable applications in harsh environments.
The digital quantity output switch can comprise a first transistor switch which is connected between the digital quantity output sub-port OUT and the load input/output port I/O in series, and a signal output by the digital quantity output sub-port OUT to the first transistor switch is used for controlling the on and off or off state of the first transistor switch; the first transistor switch comprises a digital output tube Q1 and a protection isolation tube Q2, wherein the output point of the digital output tube Q1 is reversely connected to a third diode D3 of a main power VCC, and the third diode D3 is used for releasing reverse instantaneous voltage generated by a load inductor at the moment of disconnection when an inductive load is driven, so that the digital output tube Q1 and the circuit can not be damaged due to overvoltage. The fourth resistor R4 is a pull-down driving resistor, and is used to ensure that the digital output transistor Q1 is in an off state when the controller is initialized at power-on reset.
The digital input switch may include a digital input circuit, and in some embodiments, the analog input switch may function as a digital input circuit. The digital quantity input switch further comprises an enabling signal input sub-port EN and an optical isolation input circuit, the optical isolation input circuit can comprise an optical isolation control tube Q3, an optical coupler IC and an optical coupler input current limiting resistor R5, the enabling signal sub-port EN is electrically connected with the optical isolation control tube Q3 and used for controlling the conduction state of the optical isolation control tube Q3. An external dry contact type input signal (e.g., from a control button, limit switch, etc.) is connected between the main power VCC and the load input/output port I/O to form an on/off connection to detect the switch state. The output of the optical coupler IC is connected to the analog quantity/digital quantity input sub-port ADC, the seventh resistor R7 is connected with an enabling signal to the ground, so that the optical isolation input enabling is in a determined closed state when the controller is powered on and reset, meanwhile, the signal EN also provides pull-up for the analog quantity/digital quantity input sub-port ADC through the sixth resistor R6, the necessary port level is ensured to be increased and anti-interference is avoided, and the pull-up provides isolation connection of the fourth diode D4, so that the circuit cannot influence the input of the analog quantity/digital quantity input sub-port ADC when the optical isolation input is not needed.
Specifically, the analog output sub-port OUT may be electrically connected to a DAC output port (a single chip with a DAC port) of the single chip, a PWM output port of the single chip is connected to a DAC output formed by the PWM + filter circuit, a DAC output generated by the external DAC chip, and a parallel port module is connected to a DAC output generated by the R/2R resistor network. When the analog quantity needs to be output, the output of the digital quantity output sub-port OUT is 0, the digital quantity output tube Q1 and the protection isolation tube Q2 are in a closed state, the analog quantity output by the analog quantity output sub-port DAC is coupled to the amplifier AMP through the first resistor R1 to be amplified and then output, and the analog quantity output by the amplifier AMP is isolated by the isolator and then output to the load input/output port I/O. And closing the enable signal input sub-port EN, so that the optical isolation input circuit does not influence the output of the analog quantity. When the isolating device adopts a diode, the actual output value is lower than the required preset value due to the influence of the voltage drop of the diode, the feedback signal is input to the analog quantity/digital quantity input sub-port ADC through the second resistor R2 and the third resistor R3, the output of the analog quantity output switch is detected, and the external controller can correct the output of the analog quantity output switch to reach the set value according to the output of the analog quantity output switch. The second diode D2 is connected between the analog/digital input sub-port ADC and the VDDA analog power port to ensure that the input voltage does not exceed the sum of the analog power voltage plus the voltage drop across the second diode D2 to ensure that the input voltage to the analog/digital input sub-port ADC does not break down because of being too high.
When analog quantity is required to be input, the analog quantity required to be input is input to the second resistor R2 and the third resistor R3 through the load input/output port I/O and then is loaded to the analog quantity/digital quantity input sub-port ADC, and the enable signal input sub-port EN and the digital quantity output sub-port OUT are closed.
When digital quantity is required to be output, the DAC of the analog quantity output sub-port is closed, digital signals required to be output are output to the OUT of the digital quantity output sub-port through a port of the single chip microcomputer to control the on-off state of the Q1 of the digital quantity output tube, the open-drain output of the Q1 of the digital quantity output tube can be realized, meanwhile, a protection isolation tube Q2 is connected to the Q1 of the output digital quantity output tube in parallel, when the Q1 of the digital quantity output tube is switched on and outputs effective signals, the output signals of the DAC of the analog quantity output sub-port are connected to the ground in a short mode through a first resistor R1, at the moment, a first resistor R1 is a load of an analog quantity output switch, the input end of an AMP amplifier is 0, the output quantity of the analog quantity output switch is ensured to be 0 when the digital quantity is output, therefore analog quantity signals cannot be generated due to system faults, software conflicts or interferences, and the digital signals cannot be directly short-circuited to the ground due to the conduction of the Q1 of the digital quantity output sub-port, resulting in damage to the analog output switch. When digital quantity is required to be output, the load input/output port I/O can be connected to loads of a relay, a light-blocking input point of other equipment and the like, current requirements above milliampere level are required, resistance values of the second resistor R2 and the third resistor R3 are set to be 10K Ω -100K Ω, and current divided from the second resistor R2 and the third resistor R3 is in microampere level, so that output is not influenced. The third diode D3, which is connected to the main power VCC in the reverse direction, of the load input/output port I/O, is used to release the reverse instantaneous voltage generated by the load inductor at the moment of disconnection when driving an inductive load, so as to ensure that the digital output tube Q1 is not damaged by overvoltage. The fourth resistor R4 is a pull-down driving resistor, and is used to ensure that the load I/O port is in an off state when the controller is initialized by power-on reset.
When a digital quantity is required to be input, the device can provide two modes, wherein the first mode is a digital semaphore input mode, when the digital semaphore input mode is adopted, the enable signal input sub-port EN and the digital quantity output sub-port OUT are closed, and a signal required to be input is input to the analog quantity/digital quantity input sub-port ADC through the analog quantity input switch; the second mode is an optical isolation input mode, when the optical isolation input mode is adopted, the digital quantity output sub-port OUT is fixed to be in an off state, namely output 0, the analog quantity output sub-port DAC is also fixed to be output 0, then the energy signal input sub-port EN is output to be 1, so that the optical isolation control tube Q3 is conducted and is connected to the load input/output port I/O to be used as an optical isolation input unit, and the output end of the optical isolation control tube Q3 is electrically connected with the analog quantity/digital quantity input sub-port ADC.
In some embodiments, an intelligent port switching system includes a main control module and at least one intelligent port switching device, for example, referring to fig. 4, the main control module is connected with four intelligent port switching devices FCM;
the port of the main control module is electrically connected with at least one type of input/output sub-port of the port conversion device FCM, and the main control module is used for outputting signals to the at least one type of input/output sub-port.
In some embodiments, the main control module may include a Processor, which may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like, wherein the general-purpose Processor may be a microprocessor or the Processor may be any conventional Processor, or the like.
In some embodiments, the system may further include at least one of a power conversion device, a keyboard (input device), a display device, a reference voltage device, and a communication device, where the communication device may employ at least one of 485, USB, WLAN, TTL serial port, 422, SPI, IIC, CAN, and the like, the keyboard (input device) may be used to set system parameters including system communication address and/or baud rate, and the input device may be a rotary encoder with/without buttons, a matrix keyboard, an input device with/without buttons, and in other embodiments, to meet harsh environment requirements, may also be one of a magnetic encoder, an optical sensor switch, a visible or infrared gesture sensor, or a combination thereof; the display device can be used for displaying set state data and/or system working states (for example, information such as digital quantity input and output states and analog quantity input and output parameter data), the reference voltage device can provide voltage references of the analog quantity output switch and the analog quantity input switch and is used for improving the precision of the analog quantity unit, and the voltage references are optional, can be integrated inside the single chip microcomputer or can be external. The power conversion device can provide a required working power supply for the single chip microcomputer, and the working power supply VDD is subjected to voltage reduction conversion from the main power supply VCC and is provided for the single chip microcomputer to use, and meanwhile, the working power supply VDD is provided for the reference voltage device to serve as a power supply.
In some embodiments, the system can also add a universal single direction/type port, integrate a port conversion device-related operational amplifier, a diode, a MOS transistor and the like together for implementation in the form of a chip product.
In some embodiments, the system can also change the NMOS open drain output to the open drain/open source output of the NMOS or PMOS transistor.
In some embodiments, the system can also change the NMOS switching value open-drain output into a half-bridge form to realize push-pull output.
In some embodiments, an interlock logic circuit may be added between the digital output sub-port OUT and the optical isolator input enable sub-port EN to ensure that the two signals cannot be simultaneously valid for any reason, such as hardware interference, software bugs, or faults. If the digital quantity output subport OUT and the enable signal input subport EN output signals simultaneously, when the external dry contact input signal is effective and is switched on, the main power supply is directly short-circuited to the ground of the power supply through the external dry contact input device, such as the button switch and the digital quantity output tube Q1, causing the device and the circuit to be burnt, therefore, in some embodiments, referring to FIG. 5, an eighth resistor R8 may be directly added to the gate of the protection isolation tube Q2 and the output signal of the main control module OUT to the digital quantity output tube Q1, one end of the eighth resistor R8 is connected to the pin of the digital quantity output subport OUT, the other end of the eighth resistor R8 is connected to the digital quantity output tube Q1 and the gate of the protection isolation tube Q2, and a fifth diode D5 is directly connected in series to the drain of the light isolation control tube Q3 and the other end of the digital quantity output tube Q5 and the positive electrode of the fifth diode D5 are connected to the digital quantity output tube Q2 6854 and the gate of the protection isolation tube Q2, The grid of the protection isolation tube Q2, the cathode of the fifth diode D5 is connected to the drain of the light isolation control tube Q3, when the enable signal is input into the subport EN to output signals, if the digital quantity output subport OUT outputs signals at the same time, the output signals of the digital quantity output subport OUT can be short-circuited to the power ground through the eighth resistor R8 and the fifth diode D5 and the EN enable control tube Q3, and the digital quantity output tube Q1 and the protection isolation tube Q2 cannot be opened.
The foregoing is merely a preferred embodiment of the invention, it is to be understood that the invention is not limited to the forms disclosed herein, but is not intended to be exhaustive or to exclude other embodiments and may be used in various other combinations, modifications, and environments, and is capable of changes within the scope of the invention as conceived of the invention, commensurate with the above teachings, or the skill or knowledge of the relevant art, and all changes and modifications thereof, as would occur to one skilled in the relevant art, without departing from the spirit and scope of the invention.

Claims (10)

1. An intelligent port conversion device is characterized by comprising;
the controller input/output sub-port module comprises at least one type of input/output sub-port and is used for outputting signals or receiving signals;
a load input/output port for receiving signals output by the controller input/output sub-port module or for outputting signals to the controller input/output sub-port module;
and the port switching module is used for electrically connecting the corresponding type of input/output sub-port in the at least one type of input/output sub-port with the load input/output port according to the type of the signal output to the load input/output port by the controller input/output sub-port module or the type of the signal output to the controller input/output sub-port module by the load input/output sub-port module.
2. The intelligent port conversion device according to claim 1, wherein the input/output sub-port is at least one or more of an analog output sub-port, an analog/digital input sub-port and a digital output sub-port.
3. The intelligent port conversion device according to claim 2, wherein the port switching module comprises at least one of an analog output switch, an analog input switch, a digital output switch and a digital input switch;
the input end of the analog quantity output switch is electrically connected with the analog quantity output sub-port, and the output end of the analog quantity output switch is electrically connected with the load input/output port;
the input end of the analog quantity input switch is electrically connected with the load input/output port, and the output end of the analog quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port;
the input end of the digital quantity output switch is electrically connected with the digital quantity output sub-port, and the output end of the digital quantity output switch is electrically connected with the load input/output port;
the input end of the digital quantity input switch is electrically connected with the load input/output port, and the output end of the digital quantity input switch is electrically connected with the analog quantity/digital quantity input sub-port.
4. The apparatus of claim 3, wherein the analog output switch comprises a first resistor R1, an amplifier AMP, and an isolator, the output signal of the analog output sub-port is coupled to the amplifier AMP through the first resistor R1, and the isolator is connected in series between the output terminal of the amplifier AMP and the load input/output port.
5. The intelligent port conversion device as claimed in claim 3 or 4, wherein the analog input switch comprises a second resistor R2 and a third resistor R3, one end of the second resistor R2 is electrically connected to the load I/O port, the other end of the second resistor R2 is electrically connected to one end of the third resistor R3, the other end of the third resistor R3 is grounded, and a connection node of the second resistor R2 and the third resistor R3 is electrically connected to the analog/digital input sub-port.
6. The intelligent port conversion device according to claim 3 or 4, wherein the digital output switch comprises a first transistor switch, the first transistor switch is connected in series between the digital output sub-port and the load input/output port, and a signal output from the digital output sub-port to the first transistor switch is used for controlling a conducting state of the first transistor switch.
7. The intelligent port conversion device according to claim 3 or 4, wherein the digital input switch comprises a digital input circuit;
the input end of the digital quantity input circuit is electrically connected with the load input/output port, and the output end of the digital quantity input circuit is electrically connected with the analog quantity/digital quantity input sub-port.
8. The intelligent port conversion device of claim 7, wherein the digital input switch further comprises an enable signal input sub-port and an optical isolation input circuit;
the input end of the optical isolation input circuit is electrically connected with the load input/output port, and the output end of the optical isolation input circuit is electrically connected with the analog quantity/digital quantity input sub-port;
the output signal of the enable signal input sub-port is used for controlling the conduction state of the optical isolation input circuit.
9. An intelligent port conversion system, comprising a master control module and at least one intelligent port conversion device according to any one of claims 1 to 8;
the main control module is electrically connected with at least one type of input/output sub-port of the intelligent port conversion device, the main control module is used for outputting signals to the at least one type of input/output sub-port, and the main control module is also used for receiving signals input by a load input/output port of the intelligent port conversion device.
10. The intelligent port conversion system according to claim 9, further comprising at least one of a power conversion device, a display device, a reference voltage device, a communication device, and an input device;
the display device is used for displaying state data and/or working states;
the input device is used for locally setting system parameters including a system communication address and/or a baud rate;
the reference voltage device is used for providing voltage references of the analog quantity output switch and the analog quantity input switch;
the power conversion device is at least used for supplying power for the main control module and/or the reference voltage device.
CN202120826893.0U 2021-04-21 2021-04-21 Intelligent port conversion device and system Active CN214474593U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202120826893.0U CN214474593U (en) 2021-04-21 2021-04-21 Intelligent port conversion device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202120826893.0U CN214474593U (en) 2021-04-21 2021-04-21 Intelligent port conversion device and system

Publications (1)

Publication Number Publication Date
CN214474593U true CN214474593U (en) 2021-10-22

Family

ID=78180322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202120826893.0U Active CN214474593U (en) 2021-04-21 2021-04-21 Intelligent port conversion device and system

Country Status (1)

Country Link
CN (1) CN214474593U (en)

Similar Documents

Publication Publication Date Title
CN207352398U (en) General digital input and output multiplex circuit and input-output control unit
CN104038207B (en) A kind of switching circuit and electronic equipment
CN206932038U (en) A kind of DC chargings control circuit compatible with USB and intelligent terminal
CN214474593U (en) Intelligent port conversion device and system
CN113110281A (en) Intelligent port conversion device and system
CN102855211A (en) Universal serial bus-balanced voltage digital interface converter
CN115877200B (en) Broken wire detecting system
CN107888183B (en) NPN/PNP sensor access device in low-voltage system
CN102063082B (en) Digital input circuit
CN208797824U (en) Output driving circuit and chip
CN208060982U (en) A kind of switching value output circuit
CN104850043A (en) Microcomputer protection measurement and control device
CN211719525U (en) Air switch for realizing remote closing control
CN202551001U (en) Electronic switching circuit
CN209976308U (en) High-safety door machine safety chain control system
AU2008200997A1 (en) A conversion circuit
CN104980134B (en) A kind of reset circuit and electronic equipment with the circuit
CN106533429B (en) Strong and weak current isolating device and electrical apparatus
CN207426980U (en) A kind of ON-OFF control circuit
CN208607547U (en) Dry contact Peripheral Interface
CN204331527U (en) The communicating circuit of adaptation power supply power supply and air conditioner
CN111045361A (en) Program-controlled NPN _ PNP switching input circuit and circuit board
CN109723316B (en) High-safety door machine safety chain control system
CN219611755U (en) Level processing circuit and debugging device
CN108845611A (en) Dry contact peripheral interface

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 641400 No. 18, group 11, Tai'an village, quelling Township, Jianyang City, Chengdu City, Sichuan Province

Patentee after: Guo Wenhui

Address before: 641400 No.18, group 11, Tai'an village, Ting Ping Township, Jianyang City, Ziyang City, Sichuan Province

Patentee before: Guo Wenhui

CP02 Change in the address of a patent holder