59 lines
1.8 KiB
Go
59 lines
1.8 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 (
|
||
StpClosedPosition1 SwitchThreePosition = iota + 1 //开关合闸到位置1,与位置1线路导通
|
||
StpClosedPosition2 //开关合闸到位置2,与位置2线路导通
|
||
StpOpened //开关分闸,线路断开,未与任何位置接通
|
||
StpFault //异常
|
||
)
|
||
|
||
// SwitchTwoPosition 两工位开关位置定义
|
||
type SwitchTwoPosition = uint8
|
||
|
||
const (
|
||
S2pClosed SwitchTwoPosition = iota + 1 //开关合闸到位,与线路导通
|
||
S2pOpened //开关分闸,线路断开,未与任何位置接通
|
||
S2pFault //故障异常
|
||
)
|
||
|
||
// HandcarPosition 手车式开关位置定义
|
||
type HandcarPosition = uint8
|
||
|
||
const (
|
||
HpClosed HandcarPosition = iota + 1 //工作位合闸
|
||
HpOpened //工作位分闸
|
||
HpTest //实验位
|
||
)
|
||
|
||
// EpuStateEnum 一般电力设备状态定义
|
||
type EpuStateEnum = uint8
|
||
|
||
const (
|
||
EpuNormal EpuStateEnum = iota + 1 //正常
|
||
EpuFault //故障,有预告信号产生
|
||
EpuAlarm //报警,有事故信号产生
|
||
)
|