RPICT3V1 Disable channels sketch 2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
debug is coded on 8 bits where each bit correspond to the following (LSB first).<br> | debug is coded on 8 bits where each bit correspond to the following (LSB first).<br> | ||
bit 1 - debug 0 = OFF 1 = ON<br> | bit 1 - debug 0 = OFF 1 = ON<br> | ||
bit 2 - Apparent Power 1 = OFF 0 = ON<br> | bit 2 - Apparent Power 1 = OFF 0 = ON<br> | ||
Line 17: | Line 18: | ||
bit 7 - ct2 = OFF 0 = ON<br> | bit 7 - ct2 = OFF 0 = ON<br> | ||
bit 8 - ct1 1 = OFF 0 = ON<br> | bit 8 - ct1 1 = OFF 0 = ON<br> | ||
* By default alls channels are ON and debug if OFF. | |||
This is 00000000 in binary and 0 in decimal. | |||
debug = 0 | |||
* To disable apparent power and enable debug then set bits 1 and 2 to 1 | |||
This is 00000011 in binary and 3 in decimal | |||
debug = 3 | |||
* To disable ct2 and ct3 and set debug OFF | |||
This is 01100000 in binary and 96 in decimal | |||
debug = 96 | |||
To convert form binary and back use this [https://www.cs.princeton.edu/courses/archive/fall07/cos109/bc.html webtool here]. |
Revision as of 14:03, 14 February 2019
RPICT3V1 by default outputs all channels. WHich are
RealPower ApparentPower Irms Vrms PowerFactor
for all 3 Current Voltage pairs computed (ct1 ct2 ct3).
To prevent some of the channels to appear we can disable then by setting the debug variable with a particular number.
debug is coded on 8 bits where each bit correspond to the following (LSB first).
bit 1 - debug 0 = OFF 1 = ON
bit 2 - Apparent Power 1 = OFF 0 = ON
bit 3 - Irms 1 = OFF 0 = ON
bit 4 - Vrms 1 = OFF 0 = ON
bit 5 - PowerFactor 1 = OFF 0 = ON
bit 6 - ct3 1 = OFF 0 = ON
bit 7 - ct2 = OFF 0 = ON
bit 8 - ct1 1 = OFF 0 = ON
- By default alls channels are ON and debug if OFF.
This is 00000000 in binary and 0 in decimal.
debug = 0
- To disable apparent power and enable debug then set bits 1 and 2 to 1
This is 00000011 in binary and 3 in decimal
debug = 3
- To disable ct2 and ct3 and set debug OFF
This is 01100000 in binary and 96 in decimal
debug = 96
To convert form binary and back use this webtool here.