# bulk Ground Fault Current Threshold Settings and Readings # scondam: 24-Sept-2021: Per T.Beukers, Ground Fault Current can be equated to Ground voltage (sort of) # It is possibly not the same scale factor as bulk voltage but use the same calculation for now. # 28-Sept-2021: M.Lavoie's tests: # Created a ground fault on CH0, and saw that the 'Bulk Gnd Flt Curr' field displayed a value slightly over 10% higher # than what I measured directly across the load resistor when using several different resistive loads (30 and 7.5 ohms). # Max. ground fault currents were in the low 40mA range, and did not see the 'Bulk Gnd Fault' change state at any time. # BTW - would be good to include units of mA in the 'Bulk Gnd Flt Curr' field. # 29-Sept-2021: M.Lavoie repeated test. Concluded that the CALC field reading is in mA # He induced a Gnd Flt Curr of 30.1mA and BULK_GNDFLT_CURR was reading -31 mA and is reasonably stable. # BULK_GNDCURR_FLT_THLD_S threhsold could not be set. No matter what, _S and _R always reads zero. # Thus was unable to set a threshold to try and trip the Bulk PS on a Ground Current Fault. # Bulk Ground Fault current state BULKGNDCURRFLTSTATE did not change at any time. # record(calc, "$(crate):BULK_GNDFLT_CURR") { field(DESC, "Bulk PS Ground Fault Curr") field(CALC, "((((A*40.0)/262144.0)*12.0)*0.9)") field(INPA, "$(crate):BULK_GNDFLT_CURR_R") field(EGU, "mA") field(PREC, "4") field(HIHI, "25") field(HIGH, "22") field(LOW, "-22") field(LOLO, "-25") field(HOPR, "25") field(LOPR, "-25") field(HYST, "0") field(LLSV, "MAJOR") field(LSV, "MINOR") field(HSV, "MINOR") field(HHSV, "MAJOR") field(PINI, "YES") field(FLNK, "$(crate):BulkGndCurrCheck") } # InhibitSetpt is set only by user to uninhibit after fault condition clears record(bo, "$(crate):InhibitSetpt") { field(DESC, "Unhinhibit all") field(ONAM, "Uninhibit") field(ZNAM, "Inhibit") field(ZSV, "MAJOR") field(PINI, "YES") field(FLNK, "$(crate):UnInhibitAllCalc") } record(calcout, "$(crate):UnInhibitAllCalc") { field(ASG, "Internal") field(CALC, "(A<2)&&B?0:1") field(INPA, "$(crate):BULK_GNDFLT_CURR.SEVR") field(INPB, "$(crate):InhibitSetpt") field(OUT, "$(crate):UnInhibitAll.DISA") field(FLNK, "$(crate):UnInhibitAll") } record(bi, "$(crate):Inhibit") { field(DESC, "Inhibit State") field(ONAM, "Uninhibit") field(ZNAM, "Inhibit") field(INP, "$(crate):InhibitSetpt CP MS") } # State is red if the crate is inhibited due to a ground fault. # The status check is done every 1 seconds so we run at # 1 second but at a higher PHAS so it's done after GndFault status. # record(calcout, "$(crate):BulkGndCurrCheck") { field(DESC, "Bulk Gnd Current Check") field(ASG, "Internal") field(CALC, "(C!=2)||(A>D+1)?0:((A