Cmd_query_power – GBS Elektronik MCA-527 Firmware Commands User Manual
Page 28
MCA527
MCA Query Commands:
Command name
CMD_QUERY_POWER
Compatibility
Compatible to the MCA166 command.
Execution right
Not necessary
Description
The command reads the power state.
Format
integer
integer
integer
long
integer
Parameter
preamble
command
0
0
end flag
Byte string (HEX)
A5
5A
59
00
00
00
00
00
00
00
B9
9B
Result data array
Byte offset 0
Battery current [mA]
unsigned long At the MCA527Micro this data
corresponds to the USB input
current.
Byte offset 4
HV primary current [mA]
unsigned long
Byte offset 8
+12 V primary current [mA]
unsigned long
Byte offset 12
-12 V primary current [mA]
unsigned long
Byte offset 16
+24 V primary current [mA]
unsigned long
Byte offset 20
-24 V primary current [mA]
unsigned long
Byte offset 24
Battery voltage [mV]
unsigned long At the MCA527Micro this data
corresponds to the USB input
voltage.
Byte offset 28
HV [ * 1.2 V]
unsigned long
Byte offset 32
HV state
unsigned long meaningless for MCA527
Byte offset 36
+ 12 V actual value [ * 0.0625 V]
unsigned char
Byte offset 37
- 12 V actual value [ * 0.0625 V]
unsigned char
Byte offset 38
+ 24 V actual value [ * 0.125 V]
unsigned char
Byte offset 39
- 24 V actual value [ * 0.125 V]
unsigned char
Byte offset 40
Current high voltage [V]
unsigned long
Byte offset 44
Voltage on SUB-D9 pin3 [ * 0.3125 mV]
unsigned short
Byte offset 46
Voltage on SUB-D9 pin5 [ * 0.3125 mV]
unsigned short
Byte offset 48
Power switches
unsigned long 0X80
-24V
ON
0X40
+24V
ON
0X20
-12V
ON
0X10
+12V
ON
Byte offset 52
Charger current [mA]
unsigned long
Byte offset 56
Current source value on SUB-D9 pin5 [ * 0.1 µA] unsigned short
Byte offset 58
Current source state on SUB-D9 pin5
unsigned short 0 = off, 1 = on
Byte offset 60
Input resistance on SUB-D9 pin5 [kΩ]
unsigned short
Byte offset 62
ADC correction offset on SUB-D9 pin5 [LSB]
char
Byte offset 63
Gain correction factor on SUB-D9 pin5
char
factor = 0.001 * value + 1
Byte offset 64
Battery current [mA] at stop
unsigned long At the MCA527Micro this data
corresponds to the USB input
voltage.
Byte offset 68
HV primary current [mA] at stop
unsigned long
28