使用SCPI指令设置双向直流电源的输出电压与电流上限,需分别配置电压保护阈值(OVP)、电流保护阈值(OCP)以及输出极性(双向模式)。以下是详细步骤与示例:
plaintextSOURce:VOLTage:PROTection:LEVel <V_max> // 设置电压保护阈值(单位:V)SOURce:VOLTage:PROTection:STATe ON // 启用电压保护(默认通常为ON)
plaintextSOURce:VOLTage:PROTection:LEVel 60
plaintextSOURce:CURRent:PROTection:LEVel <I_max> // 设置电流保护阈值(单位:A)SOURce:CURRent:PROTection:STATe ON // 启用电流保护(默认通常为ON)
plaintextSOURce:CURRent:PROTection:LEVel 10
双向电源需明确输出极性范围(如±电压或双向电流):
plaintextSOURce:VOLTage:RANGe <range> // 设置电压范围(如BI(双向)、POS(正)、NEG(负))SOURce:CURRent:RANGe <range> // 设置电流范围(如BI(双向)、POS(正)、NEG(负))
plaintextSOURce:VOLTage:RANGe BI // 或具体值如 "±60"(依设备支持)
plaintextSYSTem:REMote // 进入远程模式*RST // 复位设备(可选)
plaintext* 设置电压上限为60V,启用保护SOURce:VOLTage:PROTection:LEVel 60
SOURce:VOLTage:PROTection:STATe ON
* 设置电流上限为10A,启用保护
SOURce:CURRent:PROTection:LEVel 10
SOURce:CURRent:PROTection:STATe ON
plaintext* 启用双向电压输出(±60V)SOURce:VOLTage:RANGe BI // 或 "±60"(依设备手册)
* 启用双向电流输出(±10A)
SOURce:CURRent:RANGe BI // 或 "±10"
plaintextOUTPut:STATe ON // 开启输出
plaintext* 电压保护SOURce:VOLTage:PROTection:LEVel 60
SOURce:VOLTage:PROTection:CLEar // 清除保护状态(触发后需执行)
* 电流保护
SOURce:CURRent:PROTection:LEVel 10
SOURce:CURRent:PROTection:DELAY 0.1 // 设置保护延迟时间(秒)
plaintext* 双向电压范围SOURce:VOLTage:RANGe:AUTO OFF // 关闭自动范围,手动设置
SOURce:VOLTage:RANGe:LEVel 60, -60 // 正负60V(部分型号支持)
* 双向电流范围
SOURce:CURRent:RANGe:LEVel 10, -10 // 正负10A
plaintext* 保护阈值SOURce:VOLTage:PROTection:HIGH 60 // 电压上限
SOURce:CURRent:PROTection:HIGH 10 // 电流上限
* 双向模式
SOURce:POLarity AUTO // 自动双向(或手动设置正负)
plaintextSOURce:VOLTage:PROTection:LEVel? // 查询电压上限SOURce:CURRent:PROTection:LEVel? // 查询电流上限
OUTPut:PROTect:STATe? // 查询保护是否触发
手动设置超过阈值的值,验证保护功能:
plaintextSOURce:VOLTage:LEVel 65 // 超过60V上限,触发OVP
触发后需清除保护状态:
plaintextOUTPut:PROTect:CLEar
plaintextSYSTem:ERRor? // 检查错误代码(如502表示OVP触发)
SOURce:CURRent:PROTection:DELAY),避免瞬态信号误触发。HIGH而非LEVel)。在测试过程中可动态修改保护阈值(需电源支持):
plaintext* 临时提高电流上限至15ASOURce:CURRent:PROTection:LEVel 15
* 恢复原设置
SOURce:CURRent:PROTection:LEVel 10
通过以上步骤,可安全配置双向直流电源的电压与电流上限,适用于电池测试、电机驱动等需要双向功率流动的场景。