ZDJ9道岔状态初始化

This commit is contained in:
xzb 2023-09-08 11:24:06 +08:00
parent 76db5769bb
commit bf56462d81

View File

@ -128,6 +128,68 @@ type SwitchZdj9State struct {
J2_Speed int8
}
// 创建ZDJ9道岔状态并初始化
func NewSwitchZdj9State() *SwitchZdj9State {
return &SwitchZdj9State{
DCJ: false,
DC_Pressed: false,
DCJ_ReleaseTime: 0,
FCJ: false,
FC_Pressed: false,
FCJ_ReleaseTime: 0,
YCJ: false,
YC_Pressed: false,
YCJ_ReleaseTime: 0,
ZDBJ: true,
ZFBJ: false,
J1_BB: SwitchBB{InDj220V: true, OutBb: 1},
J1_1DQJ: false,
J1_1DQJ_ReleaseTime: 0,
J1_BHJ: false,
J1_BHJ_ReleaseTime: 0,
J1_2DQJ: true,
J1_1DQJF: false,
J1_DBQ: DBQState{PhaseLoss: true, LimitedTime: 0, Dc24Voltage: false},
J1_DBJ: true,
J1_DBJ_ReleaseTime: 0,
J1_DB_K9: true,
J1_AKB: true,
J1_Power: Switch380ACPower{PhaseA: false, PhaseB: false, PhaseC: false},
J1_U1: ACPahseN,
J1_V1: ACPahseN,
J1_W1: ACPahseN,
J1_Speed: 0,
J1_FBJ: false,
J1_FBJ_ReleaseTime: 0,
J1_FB_K10: false,
J1_QDJ: true,
J1_QDJ_ReleaseTime: 0,
J1_QDJ_LcTime: 0,
J1_ZBHJ: false,
J1_ZBHJ_ReleaseTime: 0,
J2_BB: SwitchBB{InDj220V: true, OutBb: 1},
J2_1DQJ: false,
J2_1DQJ_ReleaseTime: 0,
J2_BHJ: false,
J2_BHJ_ReleaseTime: 0,
J2_2DQJ: true,
J2_1DQJF: false,
J2_DBQ: DBQState{PhaseLoss: true, LimitedTime: 0, Dc24Voltage: false},
J2_DBJ: true,
J2_DBJ_ReleaseTime: 0,
J2_DB_K9: true,
J2_FBJ: false,
J2_FBJ_ReleaseTime: 0,
J2_FB_K10: false,
J2_AKB: true,
J2_Power: Switch380ACPower{PhaseA: false, PhaseB: false, PhaseC: false},
J2_U1: ACPahseN,
J2_V1: ACPahseN,
J2_W1: ACPahseN,
J2_Speed: 0,
}
}
// 带限时功能断相保护器
// 限时13秒
type DBQState struct {