zhangqian
2023-09-01 1ba32f7b79af42830a2a1f2c488675e8bd25f150
constvar/const.go
@@ -6,6 +6,7 @@
   NsqTopicSendPlcAddress        = "aps.%v.sendPlcAddress"
   NsqTopicProcessParamsRequest  = "aps.%v.processParams.request"
   NsqTopicProcessParamsResponse = "aps.%v.processParams.response"
   NsqTopicApsProcessParams      = "aps.%v.aps.processParams" //有了新的工艺模型
)
type PlcStartAddressType int
@@ -38,3 +39,8 @@
func (slf PlcMethod) Valid() bool {
   return slf == PlcMethodModbusTCP || slf == PlcMethodSerial
}
const (
   PlcCacheKeyFinishNumber = "finish_number"
   PlcCacheKeyTotalNumber  = "total_number"
)