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" )