Files
bj_power/bj_power_mes/internal/processor/station/fanuc.go
T

18 lines
772 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package station
import "context"
// FanucOption FANUC 宏变量写入配置(高压清洗机放料前先写 #666/#888 再发 PLC 命令)。
type FanucOption struct {
// WriteMacro 写宏变量(macroNo: 666 左工位 / 888 右工位,value: 清洗机组号 1~9)
WriteMacro func(ctx context.Context, macroNo int, value float64) error
// GroupNo 查询工单零件号对应的清洗机组号(jobID → washerGroupNo
GroupNo func(ctx context.Context, jobID int) (int, error)
}
// PreLoadFanucStation 放料前需先写 FANUC 宏变量的工站(高压清洗机)。
// 调用时机:AllocateSlot 之后、Station.LoadPLC 放料命令)之前。
type PreLoadFanucStation interface {
PreLoadFanuc(ctx context.Context, jobID, machineSlot int) error
}