44 lines
1.4 KiB
Go
44 lines
1.4 KiB
Go
package component
|
||
|
||
import "joylink.club/ecs"
|
||
|
||
// FanDevice 风机设备
|
||
// 正转即顺时针转-排风;反转即逆时针转-进风
|
||
type FanDevice struct {
|
||
Speed uint16 //风机转速,r/min
|
||
Forward bool //true-正转;false-反转
|
||
}
|
||
|
||
// FanFcUnit 风机变频器
|
||
type FanFcUnit struct {
|
||
Fc bool //true-变频器已开启
|
||
}
|
||
|
||
// FanBypassUnit 风机旁路装置
|
||
type FanBypassUnit struct {
|
||
Bypass bool //true-风机旁路已开启
|
||
}
|
||
|
||
// FanSoftStartUnit 风机软启装置
|
||
type FanSoftStartUnit struct {
|
||
SoftStart bool //true-风机软启已开启
|
||
}
|
||
|
||
// FanHighLowSpeedMode 风机双速模式控制
|
||
type FanHighLowSpeedMode struct {
|
||
HighMode bool //true-风机高速模式;false-风机低速模式
|
||
}
|
||
|
||
var (
|
||
FanDeviceType = ecs.NewComponentType[FanDevice]() //风机设备
|
||
FanFcUnitType = ecs.NewComponentType[FanFcUnit]() //风机变频装置
|
||
FanBypassUnitType = ecs.NewComponentType[FanBypassUnit]() //风机旁路装置
|
||
FanSoftStartUnitType = ecs.NewComponentType[FanSoftStartUnit]() //风机软启装置
|
||
FanHighLowSpeedModeType = ecs.NewComponentType[FanHighLowSpeedMode]() //风机双速模式控制
|
||
|
||
CommonFanTag = ecs.NewTag() //一般风机
|
||
FcBypassFanTag = ecs.NewTag() //变频旁路风机
|
||
SoftStartFanTag = ecs.NewTag() //软启动风机
|
||
HighLowSpeedFanTag = ecs.NewTag() //双速风机
|
||
)
|