CN102789298B - Power control circuit and method - Google Patents

Power control circuit and method Download PDF

Info

Publication number
CN102789298B
CN102789298B CN201110127335.6A CN201110127335A CN102789298B CN 102789298 B CN102789298 B CN 102789298B CN 201110127335 A CN201110127335 A CN 201110127335A CN 102789298 B CN102789298 B CN 102789298B
Authority
CN
China
Prior art keywords
switch
power
electric power
circuit
power source
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
CN201110127335.6A
Other languages
Chinese (zh)
Other versions
CN102789298A (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.)
Schneider Electric SE
Original Assignee
Schneider Electric SE
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 Schneider Electric SE filed Critical Schneider Electric SE
Priority to CN201110127335.6A priority Critical patent/CN102789298B/en
Priority to TW101115124A priority patent/TWI602062B/en
Priority to PCT/CN2012/075441 priority patent/WO2012155820A1/en
Publication of CN102789298A publication Critical patent/CN102789298A/en
Application granted granted Critical
Publication of CN102789298B publication Critical patent/CN102789298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/263Arrangements for using multiple switchable power supplies, e.g. battery and AC

Abstract

A kind of power control circuit is provided, comprises: the first switch, receive the electric power from USB port, and output power is to the core circuit of programmable logic controller (PLC) PLC system; Second switch, receives the electric power from external power source, and output power is to the core circuit of PLC system; Power management circuitry, according to the electric power input state of USB port and the electric power input state of external power source, control switching on and off of the first switch and second switch, wherein, when there is the electric power input from USB port when the electric power input do not existed from external power source, power management circuitry controls the first switch connection and second switch disconnects.According to power control circuit of the present invention and method, when user needs to download or carry out some simple programmings and debugging, do not need external power source to be connected to PLC system.User can utilize USB to be connected to PLC by PC, and PLC carries out some main functions by being powered.

Description

Power control circuit and method
Technical field
The present invention relates to a kind of power control circuit and method, more particularly, relating to a kind of is that PLC powers for the power control circuit downloaded and debug and method by USB.
Background technology
Present many PLC (ProgrammableLogicController, programmable logic controller (PLC)) adopt USB port to programme the user application with debugging PLC.Usually, when normal operation or programming, PLC is by external power source.When user want programming, download or debugging PLC application program time, they must be powered to PLC by external power source.Its reason be PLC needs when normal operation electric current than USB can provide many, although the electric current that only can provide for MCU (MicroprogrammedControlUnit, the microprogram control unit) USB in PLC is enough.
Therefore, the application propose a kind of by use electronic switch cut off other circuit in case the MCU be only in PLC power for programming, debugging and download method.
The circuit diagram of powering for PLC system of prior art has been shown in Fig. 1.As shown in Figure 1, all circuit being PLC system 103 only by external power source 102 are powered.Therefore, even if user only wants by USB port download user application program, they also must connect external power source.
Summary of the invention
Additional aspects of the present invention and advantage part are set forth in the description below, also have part can find out significantly from description, or can obtain in the practice of the invention.
The present invention adopts USB cable to be that PLC energising is to carry out download and simple programming/debugging.
The more convenient user of the present invention uses PLC.
For prior art, even if user only wants by USB port download user application program, they also must connect external power source.
When user needs to download or carry out some simple programmings and debugging, do not need external power source to be connected to PLC system according to method of the present invention.User can utilize USB PLC to be connected to programming/modulating equipment (such as PC etc.), and PLC carries out some main functions by being powered, such as, download, programme, debugging etc.
When by USB be PLC power time, utilize electronic switch to carry out the electric power of some parts of cutting system according to the method for the embodiment of the present invention, to guarantee USB power source enough for core circuit is powered.
The invention provides a kind of power control circuit, comprising: the first switch, receive the electric power from USB port, and output power is to the core circuit of programmable logic controller (PLC) PLC system; Second switch, receives the electric power from external power source, and output power is to the core circuit of PLC system; Power management circuitry, according to the electric power input state of USB port and the electric power input state of external power source, control switching on and off of the first switch and second switch, wherein, when there is the electric power input from USB port when the electric power input do not existed from external power source, power management circuitry controls the first switch connection and second switch disconnects.
The present invention also provides a kind of power control method, comprise: when there is the electric power input from USB port when the electric power input do not existed from external power source, the core circuit being PLC system by USB port is powered, and cuts off the power supply to other circuit of PLC system.
Accompanying drawing explanation
Be described in detail the preferred embodiments of the present invention in conjunction with the drawings, above and other object of the present invention, characteristic and advantage will become apparent, and wherein identical label specifies mutually isostructural unit, and wherein:
Fig. 1 shows the circuit diagram of powering for PLC system of prior art; And
Fig. 2 shows the power control circuit figure powered for PLC system according to the embodiment of the present invention.
Embodiment
Below with reference to illustrating that the accompanying drawing of the embodiment of the present invention fully describes the present invention.But the present invention can realize in many different forms, and not will be understood that and be limited to embodiment described here.On the contrary, provide these embodiments to make the disclosure thorough and complete, and scope of the present invention will be given full expression to those skilled in the art.In the accompanying drawings, for the sake of clarity assembly is exaggerated.
Should be appreciated that when claim " element " " be connected to " or " coupling " to another element time, it can be directly connected or coupled to another element or can there is intermediary element.On the contrary, when claim element " be directly connected to " or " being directly coupled to " another element time, there is not intermediary element.Identical Reference numeral indicates identical element.Term "and/or" used herein comprises any and all combinations of one or more relevant project listed.
Although should be appreciated that and term first, second, third, etc. can be used here to describe each element, assembly and/or part, these elements, assembly and/or part do not limit by these terms.These terms are only for mutually making a distinction element, assembly or part.Therefore, the first element discussed below, assembly or part can be called the second element, assembly or part under the prerequisite not deviating from the present invention's teaching.
Term used herein is only used to the object describing specific embodiment, and is not intended to limit the present invention.Singulative used herein " one ", " one " and " that (this) " are also intended to comprise plural form, unless pointed out clearly in context not comprise.Be to be understood that, term " comprises " existence indicating described feature, integer, step, operation, element and/or assembly where used in this disclosure, but does not get rid of other features one or more, integer, step, operation, element, the existence of assembly and/or its combination or interpolation.
Fig. 2 shows the power control circuit figure powered for PLC system according to the embodiment of the present invention.
As shown in Figure 2, except by external power source 202 be PLC system 203 power supply, the present invention also adopts USB port 201 to be that the main circuit of PLC system 203 is powered.
In fig. 2, PLC system 203 is separated into 2 groups:
A) in group 1, core circuit 2031 can be powered by external power source 202 or USB201, and the circuit in group 1 comprises MCU and the circuit for programming, debugging, download, such as, MCU and/or storer, in addition, also can comprise the little lamp of electric current/LED and/or port etc.
B) in group 2, other circuit 2032 are only powered by external power source 202, and the circuit in group 2 comprises other circuit being not used in programming, debugging, download, such as, and I/O and/or status lamp/LED and/or communication port etc.
Control circuit 204 controls to be powered to PLC system 203 by one or two in external power source 202 and USB port 201.Control circuit 204 comprises: switch ES12041, switch ES22042 and power management circuitry 2043.Switch ES1 and ES2 such as can realize with diode, triode, MOSFET, even integrated circuit.
Power management circuitry 2043 controls the break-make of described switch 2041 and 2042.As shown in Figure 2, VCC1 is the electric power from USB port 201; VCC2 is the electric power from external power source 202.Electric power VCC1 from USB port 201 is connected respectively to switch 2041 and power management circuitry 2043; Electric power VCC2 from external power source 202 is connected respectively to other circuit 2032 of switch 2042, power management circuitry 2043 and PLC system 203.Other circuit 2032 of PLC system 203 are directly powered by the electric power VCC2 from external power source 202.And the core circuit 2031 of PLC system 203 is powered by the electric power VCC exported from switch 2041 and 2042.
A) when VCC2 can use and VCC1 is unavailable, power management circuitry 2043 gauge tap ES1 disconnects and switch ES2 connects.Now, power by means of only external power source 202 pairs of PLC system 203.
B) when VCC2 can use and VCC1 is available, power management circuitry 2043 gauge tap ES1 disconnects and switch ES2 connects.Now, also power by means of only external power source 202 pairs of PLC system 203.
C) when VCC2 is unavailable and VCC1 is available, power management circuitry 2043 gauge tap ES1 connects and switch ES2 disconnects.Now, be only that core circuit 2031 in PLC system 203 is powered from the electric power VCC1 of USB port 201, so that the major function such as user can carry out programming, debugs, download.And other circuit 2032 in PLC system 203 are not energized, be in off position.
D) when VCC2 is unavailable and VCC1 is unavailable, power management circuitry 2043 gauge tap ES1 disconnects and switch ES2 disconnects.Now, PLC system 203 does not work completely.
Power management circuitry 2043 in design PLC:
1) when the electric power input of external power source 202 is connected, PLC system 203 is completely normal to be run, and namely external power source 202 is circuit 2031 and 2032 normal power supply.
2) when the electric power input of external power source 202 disconnects, but when USB (subordinate) connects, only, by USB201 power supply input power supply, I/O and some communication are by power-off for core circuit 2031 (CPU, usb communication, 485/232, the LED of Ethernet and all or part).
According to the embodiment of the present invention, the present invention can bring following benefit for user:
When user needs to download, or when carrying out some simple programmings and debugging, they do not need power supply to be connected to PLC system.They can utilize USB PLC to be connected to programming/modulating equipment (such as PC etc.), and PLC can be energized for some main function, such as, download, programme, debugging etc.
When external power source is connected, all power on circuitry, PLC normally works.
When external power source disconnects, and when USB power source is connected, the MCU parts energising of PLC system, user can carry out programming, debugs, download, and some other down circuitry are to guarantee USB power source enough for core circuit is powered simultaneously.
When all power supplys disconnect, system stops.
Although the present invention describes with reference to its specific preferred embodiment, it should be appreciated by those skilled in the art, when not departing from the spirit and scope of the present invention be defined by the following claims, the various amendments of form and details can be carried out to it.

Claims (8)

1. a power control circuit, comprising:
First switch, receives the electric power from USB port, and output power is to the core circuit of programmable logic controller (PLC) PLC system;
Second switch, receives the electric power from external power source, and output power is to the core circuit of PLC system;
Power management circuitry, according to the electric power input state of USB port and the electric power input state of external power source, controls switching on and off of the first switch and second switch,
Wherein, when there is the electric power input from USB port when the electric power input do not existed from external power source, power management circuitry controls the first switch connection and second switch disconnects,
Wherein said core circuit be microprogram control unit and for carrying out programming, debugging, the circuit of down operation.
2. power control circuit as claimed in claim 1, as long as wherein the electric power existed from external power source inputs, then power management circuitry controls the first switch disconnection and second switch connection.
3. power control circuit as claimed in claim 2, wherein when the electric power input do not existed from external power source and when also there is not the electric power input from USB port, power management circuitry controls the first switch and second switch all disconnects.
4. power control circuit as claimed in claim 3, wherein said external power source also output power to other circuit of PLC system.
5. power control circuit as claimed in claim 4, wherein said first switch and second switch are electronic switches.
6. a power control method, comprising:
When there is the electric power input from USB port when the electric power input do not existed from external power source, the core circuit being PLC system by USB port is powered, and cuts off the power supply to other circuit of PLC system,
Wherein said core circuit be microprogram control unit and for carrying out programming, debugging, the circuit of down operation.
7. power control method as claimed in claim 6, as long as wherein the electric power existed from external power source inputs, then all circuit being whole PLC system by external power source are powered.
8. power control method as claimed in claim 7, wherein when also there is not the electric power input from USB port, cuts off the power supply of whole PLC system when the electric power input do not existed from external power source.
CN201110127335.6A 2011-05-17 2011-05-17 Power control circuit and method Active CN102789298B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201110127335.6A CN102789298B (en) 2011-05-17 2011-05-17 Power control circuit and method
TW101115124A TWI602062B (en) 2011-05-17 2012-04-27 Power control circuit and method
PCT/CN2012/075441 WO2012155820A1 (en) 2011-05-17 2012-05-14 Circuit and method for power supply control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110127335.6A CN102789298B (en) 2011-05-17 2011-05-17 Power control circuit and method

Publications (2)

Publication Number Publication Date
CN102789298A CN102789298A (en) 2012-11-21
CN102789298B true CN102789298B (en) 2016-03-30

Family

ID=47154713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110127335.6A Active CN102789298B (en) 2011-05-17 2011-05-17 Power control circuit and method

Country Status (3)

Country Link
CN (1) CN102789298B (en)
TW (1) TWI602062B (en)
WO (1) WO2012155820A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104953418A (en) * 2014-03-28 2015-09-30 无锡信捷电气股份有限公司 Novel PLC programming cable
CN105378666B (en) * 2014-07-04 2019-10-25 Abb瑞士股份有限公司 Free-standing automation equipment and machine
CN105373207B (en) * 2014-08-20 2018-10-12 深圳飞音时代网络通讯技术有限公司 A kind of idle method of wireless communication terminal
CN108139789A (en) * 2015-11-13 2018-06-08 德州仪器公司 Usb circuit and the method for low electric power operation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599502A (en) * 2003-09-02 2005-03-23 Lg电子株式会社 Power supply apparatus of mobile terminal
CN101581963A (en) * 2009-06-19 2009-11-18 北京红旗胜利科技发展有限责任公司 Method for reducing CPU power consumption and CPU

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3674855B2 (en) * 2002-03-20 2005-07-27 ソニー株式会社 Power supply control device and power supply control method
CN101312303B (en) * 2007-05-21 2010-06-02 佛山普立华科技有限公司 Power source switching apparatus
TWI345699B (en) * 2007-06-08 2011-07-21 Hon Hai Prec Ind Co Ltd Power source switching device
CN100549912C (en) * 2007-11-29 2009-10-14 无敌科技(西安)有限公司 A kind of electric power controller and method thereof that is applied in the USB device
CN201438289U (en) * 2009-05-07 2010-04-14 孙青河 Computer power supply

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599502A (en) * 2003-09-02 2005-03-23 Lg电子株式会社 Power supply apparatus of mobile terminal
CN101581963A (en) * 2009-06-19 2009-11-18 北京红旗胜利科技发展有限责任公司 Method for reducing CPU power consumption and CPU

Also Published As

Publication number Publication date
TW201248412A (en) 2012-12-01
TWI602062B (en) 2017-10-11
CN102789298A (en) 2012-11-21
WO2012155820A1 (en) 2012-11-22

Similar Documents

Publication Publication Date Title
CN102789298B (en) Power control circuit and method
CN101639724B (en) Computer, computer power supply control device and power supply control method
TWI408867B (en) Power distribution device and power distribution circuit
CN105095132B (en) The electronic installation and its operating method for the USB master-slave equipment pattern that can automatically switch
CN101566870A (en) Computer system and control method thereof
CN103425235A (en) Single chip microcomputer low power consumption standby circuit and control method
CN104239176A (en) Multi-user multi-target remote JTAG debugging system based on Internet
CN105378666A (en) Standalone automation device and machine
CN108732987A (en) It can customize the embedded soft PLC control system and its design method of I/O port numbers
US9219413B2 (en) Power supplies responsive to multiple control signal formats
CN208369484U (en) Power supply unit
TWM545396U (en) Power automatic switch controller
CN102221867B (en) Circuit for realizing computer soft off and control method thereof
CN104320594A (en) Serial port matrix switcher based on FPGA
CN206422791U (en) A kind of pattern fast switch over type network switch
CN205015883U (en) Multichannel serial ports debugging device
CN101626201A (en) Switch power supply circuit
CN204350149U (en) Based on the serial ports matrix switcher of FPGA
CN104937575A (en) USB controllers coupled to USB ports
CN111857310A (en) Power supply system and method for components
CN103336755B (en) Program control multimode serial port distributor
CN214670575U (en) USB switcher
CN101930381A (en) Debugging system of server
CN104656478A (en) Control circuit and control method for multi-power-supply module
CN203164742U (en) Magnetic-latching control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant