rts-sim-module/component/iscs_bas_flow_switch.go

21 lines
653 B
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 component
import (
"joylink.club/ecs"
"joylink.club/rtsssimulation/consts"
)
// FlowSwitch 流量开关
//
// 主要是在水、气、油等介质管路中在线或者插入式安装监控水系统中水流量的大小。
// 在水流量高于或者低于某一个设定点时候触发输出报警信号传递给机组,
// 系统获取信号后即可作出相应的指示动作。避免或减少主机“干烧”。
type FlowSwitch struct {
Open bool //true-开启false-关闭
Exception consts.DeviceExceptionEnum //具体异常-通信中断
}
var (
FlowSwitchType = ecs.NewComponentType[FlowSwitch]()
)