SLAU915 May 2024 ULC1001
The GUI Monitor flags and faults are Green/Red LED boxes located in the North Pane. ULC1001 reports back 5 flags and also reads one fault from the DRV2911 amplifier. On the right side of the North Pane, there is a check box to enable or disable the Fault Monitor feature of the GUI, which reads both flags and faults. The fault monitor period is 500ms. The reading of the fault registers is not logged by the Status Log detailed in or in the Python Script Recorder described in Section 3.3.5.9. The Flag and Fault Indicators are cleared when the Clear Faults button is selected.
The Faults and Flags are described in Table 4-17. The sequences for reading faults is in Table 4-18, and the sequence for clearing faults is in Table 4-19.
Flag Name | Register | Description |
---|---|---|
Over Power | USER_Flags_flag_overPowerFault | Sticky Flag set when power is over the Upper Threshold. |
Under Power | USER_Flags_flag_underPowerFault | Sticky Flag set when power is under the Lower Threshold. |
System Fault | USER_Flags_flag_systemFault | Sticky Flag set when System Fault Mode is run and the LCS has a mechanical failure. |
Open Load | USER_Flags_flag_openLoad | Sticky Flag set when the measured LCS current is too low. |
Over Temp | USER_Flags_flag_overTemp | Sticky Flag set when the measured LCS temperature is above user set OverTemp Threshold. |
DRV_ERR Fault |
INT_LTCH7, bit 6 | Sticky Fault set by DRV2911. |
DRV_ERR2 Fault | INT_LTCH7, bit 7 |
Second Fault from driver. Not used with DRV2911. |
Register | Read/Write | Data | Description |
---|---|---|---|
00 | W | 00 | Change to Page 0 |
7F | W | 00 | Change to Book 0 |
02 | W | 00 | Put device in active mode. |
NA | NA | NA | Wait 5ms |
00 | W | 1A | Change to page 0x1A |
60 | R | NA | Open Load Flag |
64 | R | NA | Over Power Flag |
68 | R | NA | Over Temp Flag |
6C | R | NA | System (LCS) Flag |
70 | R | NA | Under Power Flag |
00 | W | 02 | Change to page 2 |
34 | R | NA |
Bit 6 = DRV2911 fault |
00 | W | 00 | Change to page 0 |
02 | W | 02 | Put device in software shutdown mode |
Register | Read/Write | Data | Description |
---|---|---|---|
00 | W | 00 | Change to Page 0 |
7F | W | 00 | Change to Book 0 |
02 | W | 00 | Put device in active mode. |
NA | NA | NA | Wait 5ms |
00 | W | 1A | Change to page 0x1A |
58 | W | 0000000D | Set ClearFlags Command in the UserCommand Register |
5C | W | 00000001 | Tells device there is a new command to be executed. |
NA | NA | NA | Wait until above register, 0x5C, = 0. (5ms). |
00 | W | 00 | Change to page 0 |
30 | W | 05 | Bit 2 = 1 clears sticky faults. Default register value is 0x01. |
02 | W | 02 | Put device in software shutdown mode |
In the GUI, the following script can be used in the Python window to clear the flags.
GUI_Module=__import__('ULC1001')
import time
GUI=GUI_Module.Device_GUI("ULC1001.exe",6640.000000)
GUI.write_register("ULC1001","PWR_CTL",0x0) # put device in active mode
GUI.write_register("USER_Commands","USER_Commands_userCommand",0xD) # command for ClearFaults
GUI.write_register("USER_Commands","USER_Commands_flag_newCommand",0x1) # sets lock bit
time.sleep(0.01) #delay 10ms
GUI.write_register("ULC1001","INT & CLK CFG",0x1D) # clears hardware sticky flauts
GUI.write_register("ULC1001","PWR_CTL",0x02) # returns device to Software Shutdown