3.1.8. REG Command
The REG
command allows to read the Status Register and the Fault Register, and to reset the Fault Register.
The Status Register is a 32-bit register that contains the general information to the status of the unit such as on/off status, update mode etc. See the Status Register section for a detailed description of the register bits.
The Fault Register is a 32-bit register that contains the fault information of the unit such (if any). See the Fault Register section for a detailed description of the register bits.
Command Format:
R/W |
Command |
Response |
Description |
---|---|---|---|
R |
REG:STATUS:? |
#REG:STATUS:<hex_value> |
Return the Status Register in hexadecimal representation |
R |
REG:FAULT:? |
#REG:FAULT:<hex_value> |
Return the Fault Register in hexadecimal representation [1] |
R |
REG:FAULT:FIRST:? |
#REG:FAULT:FIRST:<hex_value> |
Return the first fault that occurred (useful in case of multiple faults) [1] |
W |
REG:RESET |
#AK / #NAK |
Resets the Fault Register [2] and the relative Fault bit in the status register |
Parameter(s):
Name |
Type |
Description |
---|---|---|
<hex_value> |
hex string |
Hex string indicating the content of the relative register |
Example(s):
REG:STATUS:?
#REG:STATUS:0x14
REG:FAULT:?
#REG:FAULT:0x9
REG:FAULT:FIRST:?
#REG:FAULT:0x8
REG:RESET
#AK
REG:STATUS:?
#REG:STATUS:0x10