Browse Source

添加写plc数组的接口配置

pull/140/head
zhangxin 3 years ago
parent
commit
9a7fc1aa77
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      conf/config.go
  2. +2
    -0
      conf/config.yaml

+ 2
- 0
conf/config.go View File

@ -31,6 +31,7 @@ type EnvConfig struct {
PortalHost string `yaml:"portalhost"`
Proxy string `yaml:"proxy"`
PLCWriteBackend string `yaml:"plcwritebackend"`
PLCWriteStringBackend string `yaml:"plcwritestringbackend"`
PLCReadBackend string `yaml:"plcreadbackend"`
PLCStep1DB string `yaml:"plcstep1db"`
PLCStep2DB string `yaml:"plcstep2db"`
@ -38,6 +39,7 @@ type EnvConfig struct {
// 南沙工厂座椅下线的PLC地址位
OfflineDBSign string `yaml:"offlinedbsign"`
OfflineDBSave string `yaml:"offlinedbdata"`
OfflineDBSaveLen int `yaml:"offlinedbdatalen"`
OfflinePLCType string `yaml:"offlineplctype"`
OfflinePLCAddress string `yaml:"offlineplcaddress"`
OfflinePLCRetry int `yaml:"offlineplcretry"`


+ 2
- 0
conf/config.yaml View File

@ -37,11 +37,13 @@ proxy: http://10.10.5.18:8080
project: nansha
# 南沙座椅下线PLC地址
plcwritebackend: http://10.122.64.96:9009/WriteToSiemensPLC
plcwritestringbackend:
plcreadbackend: http://10.122.64.96:9009/ReadToSiemensPLC
offlineplctype: S1500
offlineplcaddress: 10.207.0.3
offlinedbsign: DB2.0.0
offlinedbdata: DB2.B2.50
offlinedbdatalen: 50
offlineplcretry: 2
# 南沙座椅出库PLC地址
shipplcaddress: 1

Loading…
Cancel
Save