2.1.9. REG Command
The REG
command allows read the status/fault registers and to reset the fault register.
The status register is a 32-bit register that contains the general information of the status of the unit such as on/off status, update mode etc. See Status Register section for the detailed description of the register’s bits.
The fault register is a 32-bit register that contains the fault information of the unit such (if any). See Fault register section for the detailed description of the register’s 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 which was the first fault that occurs (this is useful in case of multiple faults) |
W |
REG:RESET |
#AK / #NAK |
Reset 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:FAULT:RESET
#AK
REG:STATUS:?
#REG:STATUS:0x10