Browse Source

添加南沙顺引解析功能依赖配置

pull/141/head
zhangxin 3 years ago
parent
commit
3700d870c3
2 changed files with 21 additions and 4 deletions
  1. +10
    -1
      conf/config.go
  2. +11
    -3
      conf/config.yaml

+ 10
- 1
conf/config.go View File

@ -44,7 +44,16 @@ type EnvConfig struct {
OfflinePLCAddress string `yaml:"offlineplcaddress"` OfflinePLCAddress string `yaml:"offlineplcaddress"`
OfflinePLCRetry int `yaml:"offlineplcretry"` OfflinePLCRetry int `yaml:"offlineplcretry"`
// 南沙 顺引 // 南沙 顺引
ShipPlcAddress string `yaml:"shipplcaddress"`
CallOffFolder string `yaml:"callofffolder"`
OutCallOffFolder string `yaml:"outcallofffolder"`
ErrorCallOffFolder string `yaml:"errorcallofffolder"`
CallOffPlcAddress string `yaml:"calloffplcaddress"`
CallOffPlcType string `yaml:"calloffplctype"`
CallOffPlcReadSign string `yaml:"calloffplcreadsign"`
CallOffPlcWrite string `yaml:"calloffplcwrite"`
CallOffPlcWriteLen int `yaml:"calloffplcwritelen"`
CallOffPlcWriteSign string `yaml:"calloffplcwritesign"`
} }
//read yaml config //read yaml config


+ 11
- 3
conf/config.yaml View File

@ -36,9 +36,9 @@ proxy: http://10.10.5.18:8080
# 项目ID: # 项目ID:
project: nansha project: nansha
# 南沙座椅下线PLC地址 # 南沙座椅下线PLC地址
plcwritebackend: http://10.122.64.96:9009/WriteToSiemensPLC
plcwritebackend: 1http://10.122.64.96:9009/WriteToSiemensPLC
plcwritestringbackend: plcwritestringbackend:
plcreadbackend: http://10.122.64.96:9009/ReadToSiemensPLC
plcreadbackend: 1http://10.122.64.96:9009/ReadToSiemensPLC
offlineplctype: S1500 offlineplctype: S1500
offlineplcaddress: 10.207.0.3 offlineplcaddress: 10.207.0.3
offlinedbsign: DB2.0.0 offlinedbsign: DB2.0.0
@ -46,4 +46,12 @@ offlinedbdata: DB2.B2.50
offlinedbdatalen: 50 offlinedbdatalen: 50
offlineplcretry: 2 offlineplcretry: 2
# 南沙座椅出库PLC地址 # 南沙座椅出库PLC地址
shipplcaddress: 1
callofffolder: C:\Users\Leit\Desktop\workspace\LAPP_Acura_MES_Backend2\web\public\Toyota\Inbox
outcallofffolder: C:\Users\Leit\Desktop\workspace\LAPP_Acura_MES_Backend2\web\public\Toyota\OutBox
errorcallofffolder: C:\Users\Leit\Desktop\workspace\LAPP_Acura_MES_Backend2\web\public\Toyota\ErrorBox
calloffplcaddress: 10.207.0.3
calloffplctype: S1500
calloffplcreadsign: DB2.54.2
calloffplcwrite: DB2.56
calloffplcwritelen: 50
calloffplcwritesign: DB2.54.0

Loading…
Cancel
Save