2023-12-07 16:28:29 +08:00
|
|
|
|
package consts
|
|
|
|
|
|
|
|
|
|
// VoltageLevel 电压等级定义
|
|
|
|
|
type VoltageLevel = uint8
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
VlNon VoltageLevel = iota //未知电压等级
|
|
|
|
|
VlAc110Kv //110kV交流电 红色
|
|
|
|
|
VlAc35Kv //35kV交流电 黄色
|
|
|
|
|
VlAc400V //400V交流电 浅蓝色
|
|
|
|
|
VlDc1500V //1500V直流电
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// ElecYwEnum 电的有无定义
|
|
|
|
|
type ElecYwEnum = uint8
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
EywLossing ElecYwEnum = iota //失电,未受电
|
|
|
|
|
EywReceiving //受电
|
|
|
|
|
EywStatic //静态
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// SwitchThreePosition 三工位开关位置定义
|
|
|
|
|
type SwitchThreePosition = uint8
|
|
|
|
|
|
|
|
|
|
const (
|
2023-12-08 17:44:25 +08:00
|
|
|
|
StpOpened SwitchThreePosition = iota //开关分闸,线路断开,未与任何位置接通
|
|
|
|
|
StpClosedPosition1 //开关合闸到位置1,与位置1线路导通
|
|
|
|
|
StpClosedPosition2 //开关合闸到位置2,与位置2线路导通
|
2023-12-07 16:28:29 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// HandcarPosition 手车式开关位置定义
|
|
|
|
|
type HandcarPosition = uint8
|
|
|
|
|
|
|
|
|
|
const (
|
2023-12-08 17:44:25 +08:00
|
|
|
|
HpOpened HandcarPosition = iota //工作位分闸
|
|
|
|
|
HpClosed //工作位合闸
|
|
|
|
|
HpTest //实验位
|
2023-12-07 16:28:29 +08:00
|
|
|
|
)
|