40 lines
1.2 KiB
Go
40 lines
1.2 KiB
Go
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 (
|
||
StpOpened SwitchThreePosition = iota //开关分闸,线路断开,未与任何位置接通
|
||
StpClosedPosition1 //开关合闸到位置1,与位置1线路导通
|
||
StpClosedPosition2 //开关合闸到位置2,与位置2线路导通
|
||
)
|
||
|
||
// HandcarPosition 手车式开关位置定义
|
||
type HandcarPosition = uint8
|
||
|
||
const (
|
||
HpOpened HandcarPosition = iota //工作位分闸
|
||
HpClosed //工作位合闸
|
||
HpTest //实验位
|
||
)
|