2023-10-08 13:11:34 +08:00
|
|
|
|
package component
|
|
|
|
|
|
|
|
|
|
import "joylink.club/ecs"
|
|
|
|
|
|
|
|
|
|
// Signal2XH1Electronic 电路状态:**信号机2XH-1(红-绿) 出段(场)信号机 或 **出站区间阻挡信号机
|
|
|
|
|
type Signal2XH1Electronic struct {
|
|
|
|
|
// 点灯继电器,true-吸合,常态落下表示逻辑点灯
|
|
|
|
|
Z2XH1_DDJ *ecs.Entry
|
|
|
|
|
//灯丝继电器,true-吸合
|
|
|
|
|
Z2XH1_DJ *ecs.Entry
|
|
|
|
|
//列车信号继电器,true-吸合
|
|
|
|
|
Z2XH1_LXJ *ecs.Entry
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Signal2XH1Filament 信号机2XH-1 灯丝状态
|
|
|
|
|
type Signal2XH1Filament struct {
|
|
|
|
|
// 物理绿灯,true-灯丝正常
|
|
|
|
|
Lf bool
|
|
|
|
|
// 物理红灯,true-灯丝正常
|
|
|
|
|
Hf bool
|
2023-10-08 13:59:15 +08:00
|
|
|
|
// 物理绿灯,true-亮
|
|
|
|
|
L bool
|
|
|
|
|
// 物理红灯,true-亮
|
|
|
|
|
H bool
|
2023-10-08 13:11:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
//Signal2XH1ElectronicType 2XH1信号机电路组件
|
|
|
|
|
Signal2XH1ElectronicType = ecs.NewComponentType[Signal2XH1Electronic]()
|
|
|
|
|
//Signal2XH1FilamentType 2XH1信号机灯丝组件
|
|
|
|
|
Signal2XH1FilamentType = ecs.NewComponentType[Signal2XH1Filament]()
|
|
|
|
|
)
|