This is an old revision of the document!
When a supercapacitor is connected to VBB, the memory can be maintained anywhere from a couple days to a couple weeks once powered off. The CB290/CB405 consumes about 15-20mA of current when idling. For a longer backup period, a battery pack can be used. A protection diode, as shown below, is necessary when using a battery, as the device normally attempts to charge a capacitor through VBB. Due to the relatively high standby current for battery backup, it is recommended to keep the device powered if possible and only maintain battery backup for short periods in the case of an emergency.
If a CUBLOC module is supplied with power above the recommended voltage, the device can be destroyed. Also please be careful to avoid electrostatic discharge, as it too can destroy the device. Please be aware that P1 is an input-only pin. To reduce accidental power drain, please set unused pins to input. All I/O ports are set to input as default at power on. When not using SIN, SOUT, and ATN, please do not connect them to anything.
The CT1721 will maintain data in its volatile memory when powered off by using a backup battery. If backup is not needed, the program should clear the memory at the beginning of the program. Use RamClear to clear all data memory at the start of your program.
The CT1721 comes with a self-charging 1.0F super-capacitor that can last about a day (up to 30hrs). You can replace it with a 10.0F super-capacitor to extend the duration to about 300 hours (12.5 days). Adding a battery can provide additional backup time depending on capacity. To add a backup battery, please connect to the ports labeled “External Battery” under the super-capacitor (not visible when the back cover is in place).
Const Device = CT1720 Dim TX1 As Integer, TY1 As Integer TX1 = 0 TY1 = 0 ' Clear just this variable RamClear ' Clear all RAM
In Ladder Logic, all registers S, M, C, T, and D are retained by the backup battery. Register P is cleared by default when the device is powered on. If you only want to clear parts of a register, rather than all registers, use the following method:
Const Device = CT1720 Dim i As Integer For i=0 to 32 ' Clear only Register M0 to M32 _M(i) = 0 Next Set Ladder On