33 lines
684 B
Go
33 lines
684 B
Go
package model
|
|
|
|
// 继电器位置
|
|
type Relay_Position int
|
|
|
|
const (
|
|
// 继电器位置-后(表示落下/反位)
|
|
RelayPos_H Relay_Position = 0
|
|
// 继电器位置-前(表示吸起/定位)
|
|
RelayPos_Q Relay_Position = 1
|
|
)
|
|
|
|
// 继电器型号
|
|
type Relay_Model int
|
|
|
|
const (
|
|
RelayModel_JPXC_1000 Relay_Model = 1
|
|
RelayModel_JPXC_1700 Relay_Model = 2
|
|
RelayModel_JWJXC_480 Relay_Model = 3
|
|
RelayModel_JWJXC_H125_80 Relay_Model = 4
|
|
RelayModel_JWXC_1700 Relay_Model = 5
|
|
RelayModel_JWXC_H340 Relay_Model = 6
|
|
RelayModel_JYJXC_160_260 Relay_Model = 7
|
|
RelayModel_JZXC_H18 Relay_Model = 8
|
|
)
|
|
|
|
// 继电器
|
|
type Relay interface {
|
|
Model
|
|
Code()
|
|
Model() Relay_Model
|
|
}
|