CN112596462B - Output method, device and system based on signal type - Google Patents

Output method, device and system based on signal type Download PDF

Info

Publication number
CN112596462B
CN112596462B CN202011527223.5A CN202011527223A CN112596462B CN 112596462 B CN112596462 B CN 112596462B CN 202011527223 A CN202011527223 A CN 202011527223A CN 112596462 B CN112596462 B CN 112596462B
Authority
CN
China
Prior art keywords
control signal
output
signal
module
selection instruction
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
CN202011527223.5A
Other languages
Chinese (zh)
Other versions
CN112596462A (en
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.)
Shenzhen Invt Electric Co Ltd
Original Assignee
Shenzhen Invt Electric Co Ltd
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 Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN202011527223.5A priority Critical patent/CN112596462B/en
Publication of CN112596462A publication Critical patent/CN112596462A/en
Application granted granted Critical
Publication of CN112596462B publication Critical patent/CN112596462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/11Plc I-O input output
    • G05B2219/1103Special, intelligent I-O processor, also plc can only access via processor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measuring Volume Flow (AREA)
  • Electronic Switches (AREA)

Abstract

The embodiment of the invention discloses an output method, a device and a system based on signal types, wherein the method comprises the steps of converting selection instruction information into a selection instruction signal if the input detection module detects the selection instruction information; if the control module receives the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to a driving circuit, wherein the control signal is a first control signal or a second control signal; and if the driving module receives the control signal, selecting a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to external equipment through an output module in the target output mode. The embodiment of the invention not only can realize the compatibility of output based on different signal types, but also can effectively reduce the cost and the wiring difficulty and improve the use experience of users.

Description

Output method, device and system based on signal type
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a signal type based output method, device and system.
Background
Source and drain type output devices are commonly used in industrial PLCs (programmable logic controllers). In general, the source output and the drain output are separated into two independent circuits, and in a specific working process, the mode of each output circuit is fixed to be a circuit structure, and when one type of output is needed, the corresponding circuit structure is selected, so that the flexibility is poor, and the circuit structure is complex. The other situation is that different signal types of output circuits are compatible, for example, a source type and a drain type output circuit are compatible, a source type or a drain type output is selected through a dial switch, the output circuits are compatible at the moment, but output modules are incompatible, when the source type is selected, the output module needs to be connected to a source type port, when the drain type is selected, the output module needs to be connected to a drain type port, and the interface is complex, easy to mistake and humanized.
Disclosure of Invention
The embodiment of the invention provides an output method, device and system based on signal types, which not only can realize the compatibility based on output of different signal types, but also can effectively reduce the cost and wiring difficulty and improve the use experience of users.
In a first aspect, an embodiment of the present invention provides a signal type-based output method, where the method is applied to an output device, where the output device includes an input detection module, a control module, a driving module, and an output module, which are electrically connected in sequence, and the method includes:
if the input detection module detects the selection instruction information, converting the selection instruction information into a selection instruction signal;
if the control module receives the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the driving module, wherein the control signal is a first control signal or a second control signal;
if the driving module receives the control signal, selecting a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to external equipment through the output module in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
Further, the first control signal is a source control signal, and the second control signal is a drain control signal.
Further, the driving module includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface, a logic control unit, a first gate driving unit, a second gate driving unit, a first switch tube and a second switch tube, the serial communication interface is connected to an input terminal of the logic control unit, an output terminal of the logic control unit is connected to a gate of the first switch tube through the first gate driving unit, a source of the first switch tube is connected to an output terminal of the output module, a drain of the first switch tube is connected to a power terminal of the output module, an output terminal of the logic control unit is further connected to a gate of the second switch tube through the second gate driving unit, a source of the second switch tube is connected to a ground terminal of the output module, a drain of the second switch tube is connected to an output terminal of the output module, when the control signal is a source control signal, if the driving module receives the control signal, selecting a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to an external device through the output module in the target output mode, including:
if the logic control unit receives the source control signal through a serial communication interface, a high level signal is input to a first gate driving unit according to the source control signal, a low level signal is input to a second gate driving unit, so that a first switching tube is conducted, a second switching tube is turned off, and the target output signal is connected with external equipment through a source electrode of the first switching tube and an output end of the output module.
Further, the driving module includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface, a logic control unit, a first gate driving unit, a second gate driving unit, a first switch tube and a second switch tube, the serial communication interface is connected to an input terminal of the logic control unit, an output terminal of the logic control unit is connected to a gate of the first switch tube through the first gate driving unit, a source of the first switch tube is connected to an output terminal of the output module, a drain of the first switch tube is connected to a power terminal of the output module, an output terminal of the logic control unit is further connected to a gate of the second switch tube through the second gate driving unit, a source of the second switch tube is connected to a ground terminal of the output module, a drain of the second switch tube is connected to an output terminal of the output module, when the control signal is a drain control signal, if the driving module receives the control signal, selecting a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to an external device through the output module in the target output mode, including:
if the logic control unit receives the drain control signal through a serial communication interface, a high level signal is input to a second gate driving unit according to the drain control signal, a low level signal is input to the first gate driving unit, so that the second switching tube is switched on and the first switching tube is switched off, and the target output signal is connected with external equipment through a drain electrode of the second switching tube and the output end of the output module.
In a second aspect, an embodiment of the present invention further provides an output device based on signal types, where the output device includes an input detection module, a control module, a driving module, and an output module, which are electrically connected in sequence,
the input detection module is used for detecting selection instruction information and converting the selection instruction information into a selection instruction signal;
the control module is used for receiving the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the driving module; the control signal is a first control signal or a second control signal;
the driving module is used for receiving the control signal and selecting a target output mode corresponding to the control signal according to the control signal so as to enable the target output signal to be transmitted to external equipment through the output module in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
Further, the first control signal is a source control signal, and the second control signal is a drain control signal.
Further, the driving module includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface, a logic control unit, a first gate driving unit, a second gate driving unit, a first switch tube and a second switch tube, the serial communication interface is connected to an input terminal of the logic control unit, an output terminal of the logic control unit is connected to a gate of the first switch tube through the first gate driving unit, a source of the first switch tube is connected to an output terminal of the output module, a drain of the first switch tube is connected to a power terminal of the output module, an output terminal of the logic control unit is further connected to a gate of the second switch tube through the second gate driving unit, a source of the second switch tube is connected to a ground terminal of the output module, a drain of the second switch tube is connected to an output terminal of the output module, wherein, when the control signal is a source type control signal,
and the logic control unit receives the source type selection signal through a serial communication interface, inputs a high level signal to the first gate driving unit according to the source type selection signal, and inputs a low level signal to the second gate driving unit so as to enable the first switching tube to be switched on and the second switching tube to be switched off, and enables a target output signal to be connected with external equipment through the source electrode of the first switching tube and the output end of the output module.
Further, the driving module includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface, a logic control unit, a first gate driving unit, a second gate driving unit, a first switch tube and a second switch tube, the serial communication interface is connected to an input terminal of the logic control unit, an output terminal of the logic control unit is connected to a gate of the first switch tube through the first gate driving unit, a source of the first switch tube is connected to an output terminal of the output module, a drain of the first switch tube is connected to a power terminal of the output module, an output terminal of the logic control unit is further connected to a gate of the second switch tube through the second gate driving unit, a source of the second switch tube is connected to a ground terminal of the output module, a drain of the second switch tube is connected to an output terminal of the output module, wherein, when the control signal is a drain control signal,
and the logic control unit receives the drain control signal through a serial communication interface, inputs a high level signal to the second gate driving unit according to the drain control signal, and inputs a low level signal to the first gate driving unit so as to enable the second switching tube to be switched on and the first switching tube to be switched off, and enable a target output signal to be connected with external equipment through the drain electrode of the second switching tube and the output end of the output module.
Furthermore, the half-bridge driving circuit further comprises a diode, a cathode of the diode is connected with a drain electrode of the first switching tube, and an anode of the diode is connected with a power supply end of the output module.
In a third aspect, an embodiment of the present invention further provides an output system based on signal types, the output system and an output apparatus, where the output apparatus includes an input detection module, a control module, a driving module and an output module, which are electrically connected in sequence,
the input detection module is used for detecting selection instruction information and converting the selection instruction information into a selection instruction signal;
the control module is used for receiving the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the drive circuit; the control signal is a first control signal or a second control signal;
the driving module is used for receiving the control signal and selecting a target output mode corresponding to the control signal according to the control signal so as to enable the target output signal to be transmitted to external equipment through the output module in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
The embodiment of the invention not only can realize the compatibility of output based on different signal types, but also can effectively reduce the cost and the wiring difficulty and improve the use experience of users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a signal type-based output method according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of an output device based on signal type according to an embodiment of the present invention;
fig. 3 is a block diagram of an output system based on signal types according to an embodiment of the present invention.
Reference numerals: 10. an output device; 11. an input detection module; 12. a control module; 13. a drive module; 131. a serial communication interface; 132. a logic control unit; 133. a first gate driving unit; 134. a second gate driving unit; 135. a first switch tube; 136. a second switching tube; 14. an output module; 20. and (4) an external device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and fig. 2, which are schematic flow charts of an output method based on signal types according to an embodiment of the present invention, in order to implement compatibility of outputs of different signal types, the method of the present embodiment may be implemented based on a PLC (programmable logic controller), where the PLC is a Programmable Logic Controller (PLC), which is a digital integrated circuit capable of automatically configuring logic functions according to requirements, and is more suitable for completing various algorithms and combinational logic. The output method is applied to an output device 10, and the output device 10 comprises an input detection module 11, a control module 12, a driving module 13 and an output module 14 which are electrically connected in sequence. Therefore, the output method based on signal type in this embodiment may include steps S101 to S105, which are as follows:
step S101, if the input detection module 11 detects the selection instruction information, converting the selection instruction information into a selection instruction signal.
In this embodiment, the selection instruction information is input by a user, specifically, the selection instruction information is instruction information sent by the user, and the instruction may be a selection of the user to select a source type or a drain type output, or a selection of other signal types output, which is not limited herein. The instruction method includes, but is not limited to, a dial switch, a touch signal, a voice instruction, a gesture instruction, and the like. When the input detection module detects the selection instruction information input by the user, the selection instruction information can be converted into a selection instruction signal which can be identified by the control module, and the selection instruction signal can be an electric signal, wherein the electric signal includes but is not limited to a level signal, a serial communication signal, a parallel communication signal and the like.
Step S102, if the control module 12 receives the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the driving circuit 13; the control signal is a first control signal or a second control signal.
In this embodiment, if the control module receives the selection instruction signal, it indicates that there is no problem in connection between the control module and the input detection module, and at this time, the selection instruction signal may be analyzed to obtain a corresponding control signal. The control signal is the corresponding electric signal which can be output based on different signal types. After the control signal is sent to the driving circuit, the driving of the corresponding type of output can be realized. The control module can be any one of MCU, FPGA, DSP, CPU, etc.
Step S103, if the driving module 13 receives the control signal, selecting a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to an external device through the output module 14 in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
In this embodiment, if the driving module receives the control signal, the target output mode corresponding to the control signal may be selected according to the control signal. When the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
As a preferred embodiment, when the first control signal is a source type selection signal, the corresponding target output mode is a source type output mode, that is, the driving module selects the source type output mode at this time, that is, the first target output mode is the source type output mode; and when the second control signal is a drain control signal, the corresponding target output mode is a drain output mode, that is, the second target output mode is a drain output mode.
In another embodiment, the driving module 13 comprises a half-bridge driving circuit. The half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to an input terminal of the logic control unit 132 through the serial communication interface 131, an output terminal of the logic control unit 132 is connected to a gate of the first switching tube 135 through the first gate driving unit 133, a source S of the first switching tube 135 is connected to an output terminal OUTi (where i is a positive integer) of the output module 14, a drain D of the first switching tube 135 is connected to a power supply terminal VSS of the output module 14, an output terminal of the logic control unit 132 is further connected to a gate G of the second switching tube 136 through the second gate driving unit 134, a source S of the second switching tube 136 is connected to a ground terminal COM of the output module 14, the second switch tube 136 is connected to an output terminal OUTi (where i is a positive integer) of the output module 14. Specifically, the output end of the output interface 14 may include several output ends, such as 1, 2, 3, 4, etc., which are not limited in this embodiment, that is, the output end may be set and selected according to the actual needs of the user.
Wherein, when the control signal is a source control signal, the step S103 includes:
if the logic control unit 132 receives the source control signal through the serial communication interface 131, a high level signal is input to the first gate driving unit 133 according to the source control signal, and a low level signal is input to the second gate driving unit 134, so that the first switching tube 135 is turned on and the second switching tube 136 is turned off, and the target output signal is connected to an external device through the source S of the first switching tube 135 and the output terminal OUTi (where i is a positive integer) of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information output by the source type, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the source type control signal through the serial communication interface 131, and inputs the high level signal to the first gate driving unit 133 according to the source type control signal, and inputs the low level signal to the second gate driving unit 134, so as to turn on the first switching tube 135 and turn off the second switching tube 136, and at this time, the target output signal is connected to the external device through the source S of the first switching tube 135 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the first switch tube Q1 is overcurrent, and at this time, the control logic control unit 132 outputs a low level, and the first switch tube Q1 is turned off, so that self-protection is realized.
Further, the half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to the input terminal of the logic control unit 132 through the serial communication interface 131, the output terminal of the logic control unit 132 is connected to the gate of the first switching tube 135 through the first gate driving unit 133, the source S of the first switching tube 135 is connected to the output terminal OUTi (where i is a positive integer) of the output module 14, the drain D of the first switching tube 135 is connected to the power terminal VSS of the output module 14, the output terminal of the logic control unit 132 is further connected to the gate G of the second switching tube 136 through the second gate driving unit 134, the source S of the second switching tube 136 is connected to the ground terminal COM of the output module 14, the second switch tube 136 is connected to an output terminal OUTi (where i is a positive integer) of the output module 14, where, when the control signal is a drain control signal, the step S103 includes:
if the logic control unit 132 receives the drain control signal through the serial communication interface 131, a high level signal is input to the second gate driving unit 134 according to the drain control signal, and a low level signal is input to the first gate driving unit 133, so that the second switching tube 136 is turned on and the first switching tube 135 is turned off, and the target output signal is connected to an external device through the drain D of the second switching tube 136 and the output terminal OUTi (where i is a positive integer) of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information of the drain output, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the drain control signal through the serial communication interface 131, and inputs the high level signal to the second gate driving unit 134 according to the drain control signal, and inputs the low level signal to the first gate driving unit 133, so as to turn on the second switching tube 136 and turn off the first switching tube 135, and at this time, the target output signal is connected to the external device through the drain D of the second switching tube 136 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the second switching tube Q2 is over-current, and at this time, the control logic control unit 132 outputs a low level, and the second switching tube Q2 is turned off, so that self-protection is realized.
In a further embodiment, the half-bridge driving circuit further includes a diode D1, a cathode of the diode D1 is connected to the drain D of the first switch tube 135, and an anode of the diode D1 is connected to the power supply terminal VSS of the output module 14.
Specifically, if the user connects the wrong wire to the output module 14, such that the power terminal VSS and the ground terminal COM are connected in reverse, the diode D1 is isolated in reverse, thereby protecting the circuit.
The embodiment of the invention not only can realize the compatibility of output based on different signal types, but also can effectively reduce the cost and the wiring difficulty and improve the use experience of users.
As shown in fig. 2, an embodiment of the present invention further provides an output device 10 based on signal types, where the output device 10 includes an input detection module 11, a control module 12, a driving module 13, and an output module 14, which are electrically connected in sequence. Wherein the content of the first and second substances,
the input detection module 11 is configured to detect selection instruction information, and convert the selection instruction information into a selection instruction signal.
In this embodiment, the selection instruction information is input by a user, specifically, the selection instruction information is instruction information sent by the user, and the instruction may be a selection of the user to select a source type or a drain type output, or a selection of other signal types output, which is not limited herein. The instruction method includes, but is not limited to, a dial switch, a touch signal, a voice instruction, a gesture instruction, and the like. When the input detection module detects the selection instruction information input by the user, the selection instruction information can be converted into a selection instruction signal which can be identified by the control module, and the selection instruction signal can be an electric signal, wherein the electric signal includes but is not limited to a level signal, a serial communication signal, a parallel communication signal and the like.
The control module 12 is configured to receive the selection instruction signal, analyze the selection instruction signal to obtain a corresponding control signal, and send the control signal to the driving circuit 13; the control signal is a first control signal or a second control signal.
In this embodiment, if the control module receives the selection instruction signal, it indicates that there is no problem in connection between the control module and the input detection module, and at this time, the selection instruction signal may be analyzed to obtain a corresponding control signal. The control signal is an electrical signal capable of being output based on different signal types. After the control signal is sent to the driving circuit, the driving of the corresponding type of output can be realized. The control module can be any one of MCU, FPGA, DSP, CPU, etc.
The driving module 13 is configured to receive the control signal, select a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to the external device 20 through the output module 14 in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
In this embodiment, if the driving module receives the control signal, the target output mode corresponding to the control signal may be selected according to the control signal. When the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
As a preferred embodiment, when the first control signal is a source type selection signal, the corresponding target output mode is a source type output mode, that is, the driving module selects the source type output mode at this time, that is, the first target output mode is the source type output mode; and when the second control signal is a drain control signal, the corresponding target output mode is a drain output mode, that is, the second target output mode is a drain output mode.
Further, the driving module 13 includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to the input terminal of the logic control unit 132 through the serial communication interface 131, the output terminal of the logic control unit 132 is connected to the gate of the first switching tube 135 through the first gate driving unit 133, the source S of the first switching tube 135 is connected to the output terminal OUTi (where i is a positive integer) of the output module 14, the drain D of the first switching tube 135 is connected to the power supply terminal VSS of the output module, the output terminal of the logic control unit 132 is further connected to the gate G of the second switching tube 136 through the second gate driving unit 134, the source S of the second switching tube 136 is connected to the ground terminal COM of the output module 14, and the output terminal OUTi (where i is a positive integer) of the output module 14 of the second switching tube 136 is connected. Wherein, when the control signal is a source type control signal,
the logic control unit 132 receives the source control signal through the serial communication interface 131, inputs a high level signal to the first gate driving unit 133 according to the source control signal, and inputs a low level signal to the second gate driving unit 134, so as to turn on the first switching tube 135 and turn off the second switching tube 136, and connect the target output signal to an external device through the source S of the first switching tube 135 and the output terminal OUTi (where i is a positive integer) of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information output by the source type, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the source type control signal through the serial communication interface 131, and inputs the high level signal to the first gate driving unit 133 according to the source type control signal, and inputs the low level signal to the second gate driving unit 134, so as to turn on the first switching tube 135 and turn off the second switching tube 136, and at this time, the target output signal is connected to the external device through the source S of the first switching tube 135 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the first switch tube Q1 is overcurrent, and at this time, the control logic control unit 132 outputs a low level, and the first switch tube Q1 is turned off, so that self-protection is realized.
Further, the half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to the input terminal of the logic control unit 132 through the serial communication interface 131, the output terminal of the logic control unit 132 is connected to the gate of the first switching tube 135 through the first gate driving unit 133, the source S of the first switching tube 135 is connected to the output terminal OUTi (where i is a positive integer) of the output module 14, the drain D of the first switching tube 135 is connected to the power supply terminal of the output module, the output terminal of the logic control unit 132 is further connected to the gate G of the second switching tube 136 through the second gate driving unit 134, the source S of the second switching tube 136 is connected to the ground terminal COM of the output module 14, the second switch tube 136 is connected to an output terminal OUTi (where i is a positive integer) of the output module 14. Specifically, the output end of the output interface 14 may include several output ends, such as 1, 2, 3, 4, etc., which are not limited in this embodiment, that is, the output end may be set and selected according to the actual needs of the user.
When the control signal is a drain control signal, the logic control unit 132 receives the drain control signal through the serial communication interface 131, inputs a high level signal to the second gate driving unit 134 according to the drain control signal, and inputs a low level signal to the first gate driving unit 133, so as to turn on the second switching tube 136 and turn off the first switching tube 135, and connect the target output signal to an external device through the drain D of the second switching tube 136 and the output terminal OUTi of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information output in the drain mode, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the source control signal through the serial communication interface 131, inputs the high level signal to the second gate driving unit 134 according to the source control signal, and inputs the low level signal to the first gate driving unit 133, so as to turn on the second switching tube 136 and turn off the first switching tube 135, and at this time, the target output signal is connected to the external device through the drain D of the second switching tube 136 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the second switching tube Q2 is over-current, and at this time, the control logic control unit 132 outputs a low level, and the second switching tube Q2 is turned off, so that self-protection is realized.
In a further embodiment, the half-bridge driving circuit further includes a diode D1, a cathode of the diode D1 is connected to the drain D of the first switch tube 135, and an anode of the diode D1 is connected to the power supply terminal VSS of the output module 14.
Specifically, if the user connects the wrong wire to the output module 14, such that the power terminal VSS and the ground terminal COM are connected in reverse, the diode D1 is isolated in reverse, thereby protecting the circuit.
As shown in fig. 3, an embodiment of the present invention further provides an output system 30 based on signal types, where the output system includes an external device 20 and an output apparatus 10, and the output apparatus 10 includes an input detection module 11, a control module 12, a driving module 13, and an output module 14, which are electrically connected in sequence.
The input detection module 11 is configured to detect selection instruction information, and convert the selection instruction information into a selection instruction signal.
In this embodiment, the selection instruction information is input by the user, and the specific instruction may be a selection of the source type or the drain type output selected by the user, or a selection of other signal types output, which is not limited herein. The instruction method includes, but is not limited to, a dial switch, a touch signal, a voice instruction, a gesture instruction, and the like. When the input detection module detects the selection instruction information input by the user, the selection instruction information can be converted into a selection instruction signal which can be identified by the control module, and the selection instruction signal can be an electric signal, wherein the electric signal includes but is not limited to a level signal, a serial communication signal, a parallel communication signal and the like.
The control module 12 is configured to receive the selection instruction signal, analyze the selection instruction signal to obtain a corresponding control signal, and send the control signal to the driving circuit 13; the control signal is a first control signal or a second control signal.
In this embodiment, if the control module receives the selection instruction signal, it indicates that there is no problem in connection between the control module and the input detection module, and at this time, the selection instruction signal may be analyzed to obtain a corresponding control signal. The control signal is an electrical signal that can realize source type output and drain type output. After the control signal is sent to the driving circuit, the driving of the corresponding type of output can be realized. The control module can be any one of MCU, FPGA, DSP, CPU, etc.
The driving module 13 is configured to receive the control signal, select a target output mode corresponding to the control signal according to the control signal, so that the target output signal is transmitted to the external device 20 through the output module 14 in the target output mode; when the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
In this embodiment, if the driving module receives the control signal, the target output mode corresponding to the control signal may be selected according to the control signal. When the control signal is a first control signal, the corresponding target output mode is a first target output mode; and when the control signal is a second control signal, the corresponding target output mode is a second target output mode.
As a preferred embodiment, when the first control signal is a source type selection signal, the corresponding target output mode is a source type output mode, that is, the driving module selects the source type output mode at this time, that is, the first target output mode is the source type output mode; and when the second control signal is a drain control signal, the corresponding target output mode is a drain output mode, that is, the second target output mode is a drain output mode.
Further, the driving module 13 includes a half-bridge driving circuit, the half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to the input terminal of the logic control unit 132 through the serial communication interface 131, the output terminal of the logic control unit 132 is connected to the gate of the first switching tube 135 through the first gate driving unit 133, the source S of the first switching tube 135 is connected to the output terminal OUTi (where i is a positive integer) of the output module 14, the drain D of the first switching tube 135 is connected to the power supply terminal VSS of the output module, the output terminal of the logic control unit 132 is further connected to the gate G of the second switching tube 136 through the second gate driving unit 134, the source S of the second switching tube 136 is connected to the ground terminal COM of the output module 14, and the output terminal OUTi (where i is a positive integer) of the output module 14 of the second switching tube 136 is connected.
When the control signal is a source control signal, the logic control unit 132 receives the source control signal through the serial communication interface 131, inputs a high level signal to the first gate driving unit 133 according to the source control signal, and inputs a low level signal to the second gate driving unit 134, so as to turn on the first switching tube 135 and turn off the second switching tube 136, and connect the target output signal to an external device through the source S of the first switching tube 135 and the output terminal OUTi of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information output by the source type, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the source type control signal through the serial communication interface 131, and inputs the high level signal to the first gate driving unit 133 according to the source type control signal, and inputs the low level signal to the second gate driving unit 134, so as to turn on the first switching tube 135 and turn off the second switching tube 136, and at this time, the target output signal is connected to the external device through the source S of the first switching tube 135 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the first switch tube Q1 is overcurrent, and at this time, the control logic control unit 132 outputs a low level, and the first switch tube Q1 is turned off, so that self-protection is realized.
Further, the half-bridge driving circuit includes a serial communication interface 131, a logic control unit 132, a first gate driving unit 133, a second gate driving unit 134, a first switching tube 135 and a second switching tube 136, the control circuit 12 is connected to the input terminal of the logic control unit 132 through the serial communication interface 131, the output terminal of the logic control unit 132 is connected to the gate of the first switching tube 135 through the first gate driving unit 133, the source S of the first switching tube 135 is connected to the output terminal OUTi (where i is a positive integer) of the output module 14, the drain D of the first switching tube 135 is connected to the power supply terminal of the output module, the output terminal of the logic control unit 132 is further connected to the gate G of the second switching tube 136 through the second gate driving unit 134, the source S of the second switching tube 136 is connected to the ground terminal COM of the output module 14, the second switch tube 136 is connected to an output terminal OUTi (where i is a positive integer) of the output module 14.
When the control signal is a drain control signal, the logic control unit 132 receives the drain control signal through the serial communication interface 131, inputs a high level signal to the second gate driving unit 134 according to the drain control signal, and inputs a low level signal to the first gate driving unit 133, so as to turn on the second switching tube 136 and turn off the first switching tube 135, and connect the target output signal to an external device through the drain D of the second switching tube 136 and the output terminal OUTi of the output module 14.
Specifically, when the selection instruction information input by the user is the instruction information output in the drain mode, the control module 12 sends the corresponding control signal converted from the selection instruction signal to the logic control unit 132 through the serial communication interface 131 of the serial bus, the logic control unit 132 receives the source control signal through the serial communication interface 131, inputs the high level signal to the second gate driving unit 134 according to the source control signal, and inputs the low level signal to the first gate driving unit 133, so as to turn on the second switching tube 136 and turn off the first switching tube 135, and at this time, the target output signal is connected to the external device through the drain D of the second switching tube 136 and the output terminal OUTi (where i is a positive integer) of the output module 14.
When the output terminal OUTi (where i is a positive integer) of the output module 14 is short-circuited, the driving circuit 13 detects that the second switching tube Q2 is over-current, and at this time, the control logic control unit 132 outputs a low level, and the second switching tube Q2 is turned off, so that self-protection is realized.
In a further embodiment, the half-bridge driving circuit further includes a diode D1, a cathode of the diode D1 is connected to the drain D of the first switch tube 135, and an anode of the diode D1 is connected to the power supply terminal VSS of the output module 14.
Specifically, if the user connects the wrong wire to the output module 14, such that the power terminal VSS and the ground terminal COM are connected in reverse, the diode D1 is isolated in reverse, thereby protecting the circuit.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. An output method based on signal types is applied to an output device, the output device comprises an input detection module, a control module, a driving module and an output module which are electrically connected in sequence, the driving module comprises a half-bridge driving circuit, the half-bridge driving circuit comprises a serial communication interface, a logic control unit, a first gate driving unit, a second gate driving unit, a first switch tube and a second switch tube, the serial communication interface is connected with the input end of the logic control unit, the output end of the logic control unit is connected with the grid electrode of the first switch tube through the first gate driving unit, the source electrode of the first switch tube is connected with the output end of the output module, the drain electrode of the first switch tube is connected with the power supply end of the output module, the output end of the logic control unit is also connected with the grid electrode of the second switch tube through the second gate driving unit, the source electrode of the second switch tube is connected with the grounding end of the output module, the drain electrode of the second switch tube is connected with the output end of the output module, and the method comprises the following steps:
if the input detection module detects the selection instruction information, converting the selection instruction information into a selection instruction signal;
if the control module receives the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the driving module, wherein the control signal is a source type control signal or a drain type control signal;
when the control signal is the source control signal, if the logic control unit receives the source control signal through a serial communication interface, a high level signal is input to a first gate driving unit according to the source control signal, and a low level signal is input to a second gate driving unit, so that the first switching tube is switched on and the second switching tube is switched off, and a target output signal is connected with external equipment through a source electrode of the first switching tube and an output end of the output module; or when the control signal is the drain control signal, if the logic control unit receives the drain control signal through a serial communication interface, a high level signal is input to a second gate driving unit according to the drain control signal, and a low level signal is input to the first gate driving unit, so that the second switching tube is turned on and the first switching tube is turned off, and a target output signal is connected with an external device through a drain of the second switching tube and an output end of the output module.
2. An output device based on signal types is characterized in that the output device comprises an input detection module, a control module, a drive module and an output module which are electrically connected in sequence, the drive module comprises a half-bridge drive circuit, the half-bridge drive circuit comprises a serial communication interface, a logic control unit, a first gate drive unit, a second gate drive unit, a first switch tube and a second switch tube, the serial communication interface is connected with the input end of the logic control unit, the output end of the logic control unit is connected with the grid electrode of the first switch tube through the first gate drive unit, the source electrode of the first switch tube is connected with the output end of the output module, the drain electrode of the first switch tube is connected with the power end of the output module, the output end of the logic control unit is also connected with the grid electrode of the second switch tube through the second gate drive unit, the source electrode of the second switch tube is connected with the grounding end of the output module, the drain electrode of the second switch tube is connected with the output end of the output module, wherein,
the input detection module is used for detecting selection instruction information and converting the selection instruction information into a selection instruction signal;
the control module is used for receiving the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the driving module; the control signal is a source type control signal or a drain type control signal;
the driving module is used for receiving the control signal, and when the control signal is the source control signal, if the logic control unit receives the source control signal through a serial communication interface, a high level signal is input to a first gate driving unit according to the source control signal, and a low level signal is input to a second gate driving unit, so that the first switching tube is switched on and the second switching tube is switched off, and a target output signal is connected with an external device through a source electrode of the first switching tube and an output end of the output module; or when the control signal is the drain control signal, if the logic control unit receives the drain control signal through a serial communication interface, a high level signal is input to a second gate driving unit according to the drain control signal, and a low level signal is input to the first gate driving unit, so that the second switching tube is turned on and the first switching tube is turned off, and a target output signal is connected with an external device through a drain of the second switching tube and an output end of the output module.
3. The signal-type based output device of claim 2, wherein the half-bridge driving circuit further comprises a diode, a cathode of the diode is connected to the drain of the first switching tube, and an anode of the diode is connected to the power supply terminal of the output module.
4. An output system based on signal types is characterized in that the output system comprises external equipment and an output device, the output device comprises an input detection module, a control module, a driving module and an output module which are electrically connected in sequence,
the input detection module is used for detecting selection instruction information and converting the selection instruction information into a selection instruction signal;
the control module is used for receiving the selection instruction signal, analyzing the selection instruction signal to obtain a corresponding control signal, and sending the control signal to the drive circuit; the control signal is a first control signal or a second control signal;
the driving module is used for receiving the control signal and selecting a target output mode corresponding to the control signal according to the control signal so as to enable the target output signal to be transmitted to external equipment through the output module in the target output mode; when the control signal is the first control signal, the corresponding target output mode is a first target output mode; and when the control signal is the second control signal, the corresponding target output mode is a second target output mode.
CN202011527223.5A 2020-12-22 2020-12-22 Output method, device and system based on signal type Active CN112596462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011527223.5A CN112596462B (en) 2020-12-22 2020-12-22 Output method, device and system based on signal type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011527223.5A CN112596462B (en) 2020-12-22 2020-12-22 Output method, device and system based on signal type

Publications (2)

Publication Number Publication Date
CN112596462A CN112596462A (en) 2021-04-02
CN112596462B true CN112596462B (en) 2022-04-22

Family

ID=75199945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011527223.5A Active CN112596462B (en) 2020-12-22 2020-12-22 Output method, device and system based on signal type

Country Status (1)

Country Link
CN (1) CN112596462B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0191654A (en) * 1987-10-02 1989-04-11 Hitachi Ltd Redundant controller
US5371420A (en) * 1992-03-30 1994-12-06 Mitsubishi Denki Kabushiki Kaisha Output circuit having reduced switching noise
CN101854112A (en) * 2009-03-30 2010-10-06 兄弟工业株式会社 Interface circuit
CN102419568A (en) * 2010-09-24 2012-04-18 兄弟工业株式会社 Input circuit and input device
CN102436218A (en) * 2010-09-29 2012-05-02 兄弟工业株式会社 Output circuit and output device
CN106896775A (en) * 2015-12-21 2017-06-27 施耐德电气工业公司 For the output circuit of programmable logic controller (PLC)
CN208985008U (en) * 2018-12-25 2019-06-14 珠海格力电器股份有限公司 Detection circuit and detection device
CN210780724U (en) * 2019-07-24 2020-06-16 深圳鸿源茂自动化有限公司 Sensor matching device
CN111711441A (en) * 2019-03-18 2020-09-25 青海凯之成智能装备有限公司 Apply to adjustable interface circuit of high-low pressure signal of controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3511355B2 (en) * 1997-09-18 2004-03-29 沖電気工業株式会社 Output circuit
GB0024226D0 (en) * 2000-10-04 2000-11-15 Lsi Logic Corp Improvements in or relating to the reduction of simultaneous switching noise in integrated circuits
KR100515300B1 (en) * 2003-10-07 2005-09-15 삼성에스디아이 주식회사 A circuit and method for sampling and holding current, de-multiplexer and display apparatus using the same
EP3746851A1 (en) * 2018-01-30 2020-12-09 Parker-Hannifin Corporation Method and apparatus for configuring i/o modules connected to a fieldbus controller

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0191654A (en) * 1987-10-02 1989-04-11 Hitachi Ltd Redundant controller
US5371420A (en) * 1992-03-30 1994-12-06 Mitsubishi Denki Kabushiki Kaisha Output circuit having reduced switching noise
CN101854112A (en) * 2009-03-30 2010-10-06 兄弟工业株式会社 Interface circuit
CN102419568A (en) * 2010-09-24 2012-04-18 兄弟工业株式会社 Input circuit and input device
CN102436218A (en) * 2010-09-29 2012-05-02 兄弟工业株式会社 Output circuit and output device
CN106896775A (en) * 2015-12-21 2017-06-27 施耐德电气工业公司 For the output circuit of programmable logic controller (PLC)
CN208985008U (en) * 2018-12-25 2019-06-14 珠海格力电器股份有限公司 Detection circuit and detection device
CN111711441A (en) * 2019-03-18 2020-09-25 青海凯之成智能装备有限公司 Apply to adjustable interface circuit of high-low pressure signal of controller
CN210780724U (en) * 2019-07-24 2020-06-16 深圳鸿源茂自动化有限公司 Sensor matching device

Also Published As

Publication number Publication date
CN112596462A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN207352398U (en) General digital input/output multiplexing circuit and input/output control device
CN104269893B (en) Charge control method and charging system
CN205791799U (en) A kind of distribution monitor instrument that can automatically exchange phase sequence
EP3367187A1 (en) Communications equipment, adapter device and communications system
CN102457384A (en) Power device
CN105510759A (en) Electric leakage detection equipment and detection method thereof
CN103926853A (en) Programmable resistance output device and method
CN2737060Y (en) Control signal transmission installation in high voltage frequency converter
CN105934898B (en) A kind of analog-digital converter protection circuit and its control method, controller
CN112596462B (en) Output method, device and system based on signal type
CN115411769A (en) Photovoltaic system, optimizer and working state adjusting method of optimizer
CN109270382A (en) Soft straight change of current valve test device and system
CN213358045U (en) Washing machine control circuit
CN205910520U (en) Power control chip and be provided with electronic equipment of this chip
EP2259433A1 (en) Apparatus and method for processing parallel digital input signals from plurality of circuit breakers
CN209513924U (en) Soft straight change of current valve test device and system
CN205082040U (en) Nimble medical X -ray production apparatus high voltage generator of interface
CN215870788U (en) Energy storage inverter system and grid-connected and off-grid switching circuit thereof
CN108847771A (en) Extend the power supply circuit and Expander backboard in PMC chip service life
CN212255592U (en) Switching-on and switching-off detection circuit of circuit breaker, equipment and Internet of things system
CN210958339U (en) Digital combined key circuit
JP2007323464A (en) Communication control device
CN209731211U (en) More level converters and converting system
CN202153639U (en) On-site bus intelligent distributor based on IEC61158-2 transmission technique
CN102957142B (en) Based on the Fieldbus Intelligent distributor of IEC61158-2 transmission technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant