CN103744747A - Power failure controlling device for programmable logic controller (PLC) - Google Patents

Power failure controlling device for programmable logic controller (PLC) Download PDF

Info

Publication number
CN103744747A
CN103744747A CN201410007365.7A CN201410007365A CN103744747A CN 103744747 A CN103744747 A CN 103744747A CN 201410007365 A CN201410007365 A CN 201410007365A CN 103744747 A CN103744747 A CN 103744747A
Authority
CN
China
Prior art keywords
plc
mcu
power
power failure
detection
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.)
Pending
Application number
CN201410007365.7A
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.)
Southeast University
Original Assignee
Southeast University
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 Southeast University filed Critical Southeast University
Priority to CN201410007365.7A priority Critical patent/CN103744747A/en
Publication of CN103744747A publication Critical patent/CN103744747A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses a power failure controlling g device for a programmable logic controller (PLC). The power failure controlling device comprises a microprogrammed control unit (MCU), a PLC, a power failure detection module, a permanent memory storage and a power module, when power failure of the PLC occurs, the power failure detection module transmits a power failure signal to the MCU, the data of the PLC, which are required to be stored, are stored by the MCU in the permanent memory storage, when the power failure detection module again detects that the supply voltage of the PLC reaches a certain threshold value, the power failure detection module transmits a power recover signal to the MCU, and thereby, the MCU is awakened and enabled to recover stored data. By means of the power failure controlling device for the PLC, when the power failure or instable voltage of the PLC occurs, the data of the PLC, which are required to be stored, can be stored, and when the voltage recovers, the stored data can be read so as to continue to work.

Description

A kind of for PLC power down control device
Technical field
The present invention relates to a kind of for PLC power down control device.
Background technology
Programmable Logic Controller, works under industrial environment and the computer control of design as a kind of aiming at, and should possess high reliability and strong anti-interference ability, and some impacts that produce of can happening suddenly on industry spot complicated and changeable are made timely and being reacted.Therefore, this just requires the key control unit of Programmable Logic Controller to have arithmetic speed and stronger processing capability in real time faster.Yet current Programmable Logic Controller, can be able to not be dealt with stable not in the situation that in time at suddenly power down or voltage, these consequences directly have influence on the performance of Programmable Logic Controller sometimes.
Summary of the invention
Goal of the invention: the object of the invention is provides a kind of for PLC power down control device for the deficiencies in the prior art, the data that make PLC in power down or PLC need to be able to be preserved when there is spread of voltage are preserved, and can read storage data to work on after voltage recovers.
Technical scheme: in order to realize the object of the invention, the invention discloses a kind ofly for PLC power down control device, comprise MCU, PLC, detection of power loss module, permanent memory storer and power module; When PLC power down, a power-off signal of detection of power loss module transmission is to MCU, the data that MCU can need to preserve PLC store in permanent memory storer, treat that detection of power loss module again detects PLC supply voltage and reaches certain threshold values, one of detection of power loss module transmission recovers electric signal to MCU, thereby wakes MCU up and make MCU recover the data that the above-mentioned needs that are stored in permanent memory storer are preserved.
As preferably, in order to guarantee the job stability of PLC, the condition that detection of power loss module is sent power-off signal is that supply voltage is lower than 4.63V.
As preferably, in order to ensure system after voltage stabilization, just to work and increase work efficiency, the recovery electric signal of detection of power loss module provides after delay 140~300ms.
As preferably, in order to realize the low-power consumption of whole control device, MCU adopts the Cortex-M3 processor of ARM.
As preferably, for user program is without just realizing download and renewal by host computer, MCU is connected with USB flash disk by USB Host interface module.
Beneficial effect: the present invention compared with prior art, the present invention can so that PLC in power down or the data that PLC need to be able to be preserved when there is spread of voltage preserved, after voltage recovers, can read storage data to work on.
Accompanying drawing explanation
Fig. 1 is that the present invention is for the structural drawing of PLC power down control device;
Fig. 2 is PLC detection of power loss and restoration schedule figure;
Fig. 3 is that the present invention is for the control flow chart of PLC power down control device.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described.
As shown in Figure 1, of the present inventionly for PLC power down control device, comprise MCU, MCU includes IO interface, other interfaces, expansion interface and special functional module; Wherein, IO interface comprises 16 tunnel inputs, 16 tunnel output and 2 road A/D, other interface comprises operation/program switch, the power down/external interrupt that powers on and duty LED light, expansion comprises expansion module interface, human-computer interaction interface and external memory storage, and special functional module comprises USB-HOST, USB-DEVICE, RS-232 and JTAG.
Described MCU adopts the STM32F103VET6 chip of the ARM Cortex-M3 processor cores based on super low-power consumption, reaches as high as the dominant frequency of 72MHz, has higher travelling speed; In the sheet of 512KB, the on-chip SRAM of Flash and 64KB, can support larger user program capacity; Integrated nested to amount controller, there is higher interrupt response efficiency; Described outer memory module, adopts ferroelectric memory as External memory equipment, and such storer has the features such as power-off is not lost and can repeatedly wipe, the data of soft element and the status data of Programmable Logic Controller that preservation power down capable of circulation keeps.Described ferroelectric memory chip is FM24C128, has the capacity of 16KB, and it is more than one hundred million time that erasable number of times can reach, and reaches as high as the clock frequency of 400KHz, has higher read or write speed, thereby, can meet well the work requirements of small-sized programmable controller.The MCU pin being connected with the SCL pin of FM24C128 chip is I2C2_SCL pin, and the MCU pin being connected with the SDA pin of FM24C128 chip is I2C2_SDA pin.MCU is as the control chip of PLC and be provided with the detection of power loss module detecting for system power failure power-up state and for power-off, do not lose the outer memory module that can repeatedly wipe, when the data that PLC can need to preserve PLC in power down or when there is spread of voltage are preserved, after recovering, can read voltage storage data to work on.
As shown in Figure 2, described detection of power loss module, when system power failure, detection of power loss chip provides a power-off signal to MCU, allows system go storage to need the data of preserving.When system powers on again, wake MCU up, the data of backup are recovered, the state so that system can continue during last time power down continues operation.Described detection of power loss chip is IMP809L, when system power supply power supply Vcc is 5V, selects to detect as system power failure the threshold values of voltage.When system power failure to time, IMP809L can produce a negative edge and provide power-off signal to MCU; When system powers on, IMP809L can time delay at least produce a rising edge signal after 140ms again, can guarantee like this power supply stable after system just start working.The MCU pin being connected with the RESET pin of IMP809L is set to external interrupt pin.
As shown in Figure 3, first user program is kept in USB memory device and by USB memory device and is connected with MCU by USB-HOST interface with specific filename; Recognizing after USB memory device inserts, Programmable Logic Controller can be enumerated the USB memory device inserting, and then can carry out the sequence of operations such as file reading, finally user program can be read in the user program memory block of MCU of PLC.Thereby realized user program without just realizing and download and upgrade by host computer.
Such design has just guaranteed PLC in power down or the data that PLC need to be able to be preserved when there is spread of voltage are preserved, and after voltage recovers, can read storage data to work on; The different operating state that ARM Cortex-M3 processor itself has simultaneously, has also guaranteed that this device can complete a series of activities under low-power consumption.

Claims (5)

1. for a PLC power down control device, it is characterized in that, comprise MCU, PLC, detection of power loss module, permanent memory storer and power module;
When PLC power down, a power-off signal of detection of power loss module transmission is to MCU, the data that MCU can need to preserve PLC store in permanent memory storer, treat that detection of power loss module again detects PLC supply voltage and reaches certain threshold values, one of detection of power loss module transmission recovers electric signal to MCU, thereby wakes MCU up and make MCU recover the data that the above-mentioned needs that are stored in permanent memory storer are preserved.
2. as claimed in claim 1 a kind ofly it is characterized in that for PLC power down control device, the condition that detection of power loss module is sent power-off signal is that supply voltage is lower than 4.63V.
3. as claimed in claim 1 a kind ofly it is characterized in that for PLC power down control device, the recovery electric signal of detection of power loss module provides after 140~300ms postponing.
4. as claimed in claim 1 a kind ofly it is characterized in that for PLC power down control device, MCU adopts the Cortex-M3 processor of ARM.
5. as claimed in claim 1 a kind ofly it is characterized in that for PLC power down control device, MCU is connected with USB flash disk by USB Host interface module.
CN201410007365.7A 2014-01-08 2014-01-08 Power failure controlling device for programmable logic controller (PLC) Pending CN103744747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410007365.7A CN103744747A (en) 2014-01-08 2014-01-08 Power failure controlling device for programmable logic controller (PLC)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410007365.7A CN103744747A (en) 2014-01-08 2014-01-08 Power failure controlling device for programmable logic controller (PLC)

Publications (1)

Publication Number Publication Date
CN103744747A true CN103744747A (en) 2014-04-23

Family

ID=50501767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410007365.7A Pending CN103744747A (en) 2014-01-08 2014-01-08 Power failure controlling device for programmable logic controller (PLC)

Country Status (1)

Country Link
CN (1) CN103744747A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016045303A1 (en) * 2014-09-24 2016-03-31 中兴通讯股份有限公司 Data saving method and device and terminal
CN110410935A (en) * 2019-08-09 2019-11-05 宁波奥克斯电气股份有限公司 A kind of control method of air-conditioning power down Auto Power On
CN110907688A (en) * 2018-09-17 2020-03-24 宁德时代新能源科技股份有限公司 Power failure detection circuit and control method thereof
CN112711381A (en) * 2020-12-28 2021-04-27 深圳市合信自动化技术有限公司 Method for accelerating power failure data storage and PLC
CN114428477A (en) * 2021-12-07 2022-05-03 首钢京唐钢铁联合有限责任公司 Programmable Logic Controller (PLC), data recovery method and device thereof and storage medium
CN114490194A (en) * 2022-04-19 2022-05-13 海光信息技术股份有限公司 Power failure processing method, functional node, processing system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6038669A (en) * 1996-12-17 2000-03-14 Lg Industrial Systems Co., Ltd. PLC having power failure compensation function and power failure compensation method
CN1837449A (en) * 2005-03-25 2006-09-27 海尔集团公司 A washing machine capable of being renewed or appended with washing procedure
CN201336019Y (en) * 2009-01-22 2009-10-28 无锡市中远工业自动化有限公司 Power-failure protecting circuit for programmable controller
CN102033502A (en) * 2009-09-25 2011-04-27 松下电工株式会社 Programmable controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6038669A (en) * 1996-12-17 2000-03-14 Lg Industrial Systems Co., Ltd. PLC having power failure compensation function and power failure compensation method
CN1837449A (en) * 2005-03-25 2006-09-27 海尔集团公司 A washing machine capable of being renewed or appended with washing procedure
CN201336019Y (en) * 2009-01-22 2009-10-28 无锡市中远工业自动化有限公司 Power-failure protecting circuit for programmable controller
CN102033502A (en) * 2009-09-25 2011-04-27 松下电工株式会社 Programmable controller

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016045303A1 (en) * 2014-09-24 2016-03-31 中兴通讯股份有限公司 Data saving method and device and terminal
CN110907688A (en) * 2018-09-17 2020-03-24 宁德时代新能源科技股份有限公司 Power failure detection circuit and control method thereof
US11048316B2 (en) 2018-09-17 2021-06-29 Contemporary Amperex Technology Co., Limited Power-down detection circuit and control method
US11656672B2 (en) 2018-09-17 2023-05-23 Contemporary Amperex Technology Co., Limited Method for controlling a power-down detection circuit, controller and computer readable storage media
CN110410935A (en) * 2019-08-09 2019-11-05 宁波奥克斯电气股份有限公司 A kind of control method of air-conditioning power down Auto Power On
CN112711381A (en) * 2020-12-28 2021-04-27 深圳市合信自动化技术有限公司 Method for accelerating power failure data storage and PLC
CN114428477A (en) * 2021-12-07 2022-05-03 首钢京唐钢铁联合有限责任公司 Programmable Logic Controller (PLC), data recovery method and device thereof and storage medium
CN114490194A (en) * 2022-04-19 2022-05-13 海光信息技术股份有限公司 Power failure processing method, functional node, processing system, device and storage medium

Similar Documents

Publication Publication Date Title
CN103744747A (en) Power failure controlling device for programmable logic controller (PLC)
US9042197B2 (en) Power fail protection and recovery using low power states in a data storage device/system
CN101620539B (en) Method for start-up and shutdown and computer
TWI475368B (en) Power control system and method thereof
TWI567541B (en) Implementing a power off state in a computing device
CN103345189A (en) Controller and power fail safeguard method
CN102360244A (en) Standby method for lengthening standby time of computer
CN107068172A (en) The ultra-deep power-down mode of storage arrangement leaves control
CN105446916A (en) USB bus state switching method and apparatus
CN100561405C (en) Method for managing power supply under the computer system electricity-saving state
CN104317671A (en) Power-down data storage and recovery algorithm prolonging service life of non-volatile memory
CN102541247A (en) System on chip and resting and arousing method thereof
CN205485425U (en) Power down protection controller
CN105759679A (en) Power-failure protection controller and power-failure protection method thereof
CN103150288B (en) A kind of SOC of quick turn-on and its implementation
CN103631677B (en) A kind of method that PLC device power-down data keeps
CN110427279A (en) A kind of method and system for the Raid parity data restoring to write band
CN102810007A (en) Computer state conversion method and device as well as computer
CN204087809U (en) A kind of solid state hard disc data security erase equipment
CN103678040A (en) Snapshooting and backspacing method and system based on computer system
CN107608824B (en) Nonvolatile computing device and working method thereof
CN103984543A (en) Method for implementing standby, hibernation and wake-up on domestic FeiTeng processor
CN101980103A (en) Power state management method and related computer system
CN103198861A (en) Memory storage device, memory controller and memory control method
CN205193779U (en) RAID card based on multi -path server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423

RJ01 Rejection of invention patent application after publication