feat: 新增收集式校验错误弹窗及工位报警语音播报
新增 ErrorListDialog 组件用于统一展示结构化校验错误信息,实现报错一次收全;新增工位报警语音播报功能,通过浏览器 SpeechSynthesis 播放本工位相关报警;调整物料类别及序列号字段文案,移除「其他」类别;新增工单实际开始字段及采集方式配置;优化 AGV 及 PlcSend 页签刷新逻辑;新增看板物料追溯及工位报警接口;删除 PLC 强制写 M 位及相关测试代码;同步数据库字段注释及补丁。
This commit is contained in:
@@ -37,12 +37,8 @@ type Client interface {
|
||||
ReadBits(ctx context.Context) ([]bool, error)
|
||||
// ReadMW 读取 16 位寄存器(MW)当前值(大端)。用于监控页读 MW800~MW886。
|
||||
ReadMW(ctx context.Context, addr int) (int, error)
|
||||
// WriteMW 向 16 位寄存器(MW)写入值(大端)。用于手动下发路径指令。
|
||||
// WriteMW 向 16 位寄存器(MW)写入值(大端)。用于手动下发路径指令、在途指令清零。
|
||||
WriteMW(ctx context.Context, addr, value int) error
|
||||
// WriteBit 对单个 Merker 位(MB merkerByte 的 merkerBit 位)强制置/复位(on=true 置 1)。
|
||||
// 返回写入前的位值 before 与写后即时回读的位值 after(M 位可能被 PLC 程序循环覆盖,after 仅反映即时态)。
|
||||
// 仅用于停机/调试。
|
||||
WriteBit(ctx context.Context, merkerByte, merkerBit int, on bool) (before, after bool, err error)
|
||||
}
|
||||
|
||||
// Manager 管理 PLC 客户端实例
|
||||
|
||||
Reference in New Issue
Block a user