User Tools

Site Tools

한국어

cubloc:connecting_a_backup_battery_to_cb290_cb405:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cubloc:connecting_a_backup_battery_to_cb290_cb405:index [2023/04/17 13:33]
COMFILE Technology
cubloc:connecting_a_backup_battery_to_cb290_cb405:index [2023/04/18 11:46] (current)
COMFILE Technology
Line 1: Line 1:
-====== Backup Battery ​for the CB290 / CB405 / CT1721 ​======+====== Backup Battery ======
  
 ===== CB290 / CB405 ===== ===== CB290 / CB405 =====
Line 13: Line 13:
 the case of an emergency. the case of an emergency.
  
-{{ :​cubloc:​connecting_a_backup_battery_to_cb290_cb405:​backupbattery.png?​500 }}+{{ :​cubloc:​connecting_a_backup_battery_to_cb290_cb405:​backupbattery.png?​ }}
  
 ==== Power Features ==== ==== Power Features ====
Line 32: Line 32:
 SIN, SOUT, and ATN, please do not connect them to anything. SIN, SOUT, and ATN, please do not connect them to anything.
  
-===== CT1721 ​=====+===== CT1721C ​=====
  
-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 [[cubloc:​ramclear:​index|RamClear]] to clear all data memory at the start of your program.+The CT1721C ​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.
  
-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 batteryplease connect ​to the ports labeled "​External Battery"​ under the super-capacitor (not visible when the back cover is in place).+<code xbasic>​ 
 +Const Device = CT1720 
 +Dim TX1 As IntegerTY1 As Integer 
 +TY1 = 0       '​ Clear only TY1 
 +</​code>​ 
 + 
 +Use [[cubloc:​ramclear:​index|RamClear]] ​to clear all data memory at the start of your program.
  
 <code xbasic> <code xbasic>
 Const Device = CT1720 Const Device = CT1720
 Dim TX1 As Integer, TY1 As Integer Dim TX1 As Integer, TY1 As Integer
-TX1 = 0 +RamClear ​     ' Clear all RAM, both TX1 and TY2
-TY1 = 0       '​ Clear just this variable +
-RamClear ​     ' Clear all RAM+
 </​code>​ </​code>​
 +
 +To add a backup battery to the CT1721C, connect a 3V battery to the "Batt. Backup"​ terminal on the back, bottom right side of the CT1721C and leave the "​JUMPER_SUPERCAP"​ open.  To use a super capacitor instead of battery, connect the super capacitor to "Batt. Backup"​ and short the "​JUMPER_SUPERCAP"​ terminal to enable charging while the power is on.
 +
 +{{ :​cubloc:​connecting_a_backup_battery_to_cb290_cb405:​cutouch_battery.png }}
  
 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: 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:
Line 51: Line 59:
 Const Device = CT1720 Const Device = CT1720
 Dim i As Integer Dim i As Integer
-For i=0 to 32   '​ Clear only Register ​M0 to M32+For i=0 to 32   '​ Clear only M0 to M32
  _M(i) = 0  _M(i) = 0
 Next Next
 Set Ladder On Set Ladder On
 </​code>​ </​code>​
 +
 +[[cubloc:​index|CUBLOC - Embedded Controller]]
cubloc/connecting_a_backup_battery_to_cb290_cb405/index.1681705993.txt.gz · Last modified: 2023/04/17 13:33 by COMFILE Technology