From 252e32a126b3bbddba335b12c44dad671be33fbb Mon Sep 17 00:00:00 2001 From: zhangxin Date: Tue, 22 Feb 2022 10:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0plc=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.go | 14 +++++++++++++- conf/config.yaml | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/conf/config.go b/conf/config.go index df277d1..562772f 100644 --- a/conf/config.go +++ b/conf/config.go @@ -53,7 +53,19 @@ type EnvConfig struct { CallOffPlcWrite string `yaml:"calloffplcwrite"` CallOffPlcWriteLen int `yaml:"calloffplcwritelen"` CallOffPlcWriteSign string `yaml:"calloffplcwritesign"` - + // 南沙 座椅返修 + RepairPlcAddress string `yaml:"repairplcaddress"` + RepairPlcType string `yaml:"repairplctype"` + RepairPlcReadSign string `yaml:"repairplcreadsign"` + RepairPlcWrite string `yaml:"repairplcwrite"` + RepairPlcWriteLen int `yaml:"repairplcwritelen"` + // 南沙 座椅数据回写 + BackFlushPlcAddress string `yaml:"backflushaddress"` + BackFlushPlcType string `yaml:"backflushplctype"` + BackFlushPlcReadSign string `yaml:"backflushreadsign"` + BackFlushPlcWriteSign string `yaml:"backflushwritesign"` + BackFlushPlcReadData string `yaml:"backflushreaddata"` + BackFlushPlcReadLen int `yaml:"backflushreadlen"` } //read yaml config diff --git a/conf/config.yaml b/conf/config.yaml index 240d6f1..e032706 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -55,3 +55,18 @@ calloffplcreadsign: DB2.54.2 calloffplcwrite: DB2.56 calloffplcwritelen: 50 calloffplcwritesign: DB2.54.0 +# 南沙座椅返修PLC配置 +repairplcaddress: 10.207.0.3 +repairplctype: S1500 +repairplcreadsign: DB2.54.2 +repairplcwrite: DB2.56 +repairplcwritelen: 50 +# 南沙座椅数据回写 +backflushplctype: S1500 +backflushaddress: 10.207.0.3 +backflushreadsign: DB2.54.2 +backflushreaddata: DB2.54.2 +backflushwritesign: DB2.54.2 +backflushreadlen: 50 + +