Files
bj_power/bj_power_mes/internal/plc/config.go
T

12 lines
521 B
Go
Raw Normal View History

package plc
type PlcConf struct {
Host string
ConnectType int `json:",optional"`
2026-08-27 19:50:57 +08:00
// 工序号下发相关(现场信号未定义前先用默认约定,联调对齐后改配置即可)
ProcessAddr string `json:",default=DB100.DBW0"` // 工序号写入地址(DBW0=uint16,如 125 执行1序2序5序)
DoneBitAddr string `json:",default=M100.0"` // 完成位读取地址(收齐后清复位)
SimDoneSeconds int `json:",default=3"` // 模拟模式下经过多少秒自动确认完成
}