rts-sim-module/consts/pscada.go
2023-12-07 16:28:29 +08:00

59 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 //报警,有事故信号产生
)