From b6b889b3fcd1ecba07aa90f7ec82c6b7d5d5da3f Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 29 十二月 2023 11:49:02 +0800
Subject: [PATCH] 同步加工数过滤掉加工数为0的记录

---
 constvar/const.go |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/constvar/const.go b/constvar/const.go
index 7e0671c..d92819b 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -15,9 +15,22 @@
 type PlcStartAddressType int
 
 const (
-	PlcStartAddressTypeFinishNumber PlcStartAddressType = 1
-	PlcStartAddressTypeTotalNumber  PlcStartAddressType = 2
+	PlcStartAddressTypeFinishNumber     PlcStartAddressType = 1
+	PlcStartAddressTypeTotalNumber      PlcStartAddressType = 2
+	PlcStartAddressTypeTotalNumberWrite PlcStartAddressType = 3
 )
+
+type EndianType string
+
+const (
+	EndianTypeBig    EndianType = "big"
+	EndianTypeLittle EndianType = "little"
+	EndianTypeMix    EndianType = "mix"
+)
+
+func (t EndianType) Valid() bool {
+	return t == EndianTypeBig || t == EndianTypeLittle || t == EndianTypeMix
+}
 
 type PlcStartAddressValueType string
 
@@ -136,3 +149,10 @@
 	ReportTypeSystemDeviceID ReportType = 1
 	ReportTypeReportWork     ReportType = 2
 )
+
+type SyncStatus int //鍚屾鐘舵��
+
+const (
+	SyncStatusWait SyncStatus = 1 //寰呭悓姝�
+	SyncStatusOk   SyncStatus = 2 //宸插畬鎴�
+)

--
Gitblit v1.8.0