wincc编译过程出错

六套PLC 一个os,编译过程出错,说一个变量存在多次,如下是编译的错误信息:到底是什么问题啊,
SIMATIC AS-OS-Engineering V6.1
Copyright ?SIEMENS AG 1995-2004. All Rights Reserved.

Compilation log
===============

S7 project name:                              MSS7(ETHERNET)-02
S7 project path:                              D:\msws7.24\MSS7-2(ETH)\MSS7(ETH.s7p
Co&mpilation mode:                            AS-oriented
Scope of compilation:                         Changes
Date of compilation:                          2011年5月6日 13:02:50

Options
-------

Variables and messages                        Yes
SFC Visualization                             No
Picture tree                                  No
Create / update block icons                   No
Archive tags                                  No


WinCC project paths
-------------------

MS-OS1               D:\msws7.24\MSS7-2(ETH)\wincproj\MS-OS1\MS-OS1.mcp


PLC-OS assignments and network connections
------------------------------------------

OS               S7 program       Subnet           Subnet type  WinCC unit           Station  Segment       Rack       Slot              Address

MS-OS1           S7 Program(1)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.190
MS-OS1           S7 Program(2)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.192
MS-OS1           S7 Program(3)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.191
MS-OS1           S7 Program(4)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.193
MS-OS1           S7 Program(5)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.194
MS-OS1           S7 Program(6)    Ethernet(1)      Ind. Eth.    TCP/IP                                         0          2        192.168.1.195

Data update (S7 Program(1))
---------------------------

There were no variables to be updated.


Data update (S7 Program(2))
---------------------------

There were no variables to be updated.


Data update (S7 Program(3))
---------------------------

There were no variables to be updated.


Data update (S7 Program(4))
---------------------------

There were no variables to be updated.


Data update (S7 Program(5))
---------------------------

There were no variables to be updated.


Data update (S7 Program(6))
---------------------------

There were no variables to be updated.


*** Error(s) ***: There are process variables whose names are not unique within the project after replacing special characters. 
  
  The following process variables exist more than once:
  
  
S7 Program(1)/DB_YC_WINCC
S7 Program(1)/DB_YC_WINCC

00 h 00 min 04 sec

问题补充:
难道两个PLC  db块内的变量名称不能一样,例如
第一个PLC  S7program(1)/LT_101:DB2.DBW0
第二个PLC  S7program(2)/LT_101:DB3.DBW20

最佳答案

1.你的变量名重复了
2.为什么会重复呢,因为你两套PLC里面有一样的变量名。按照道理说是可以的。但是你用是是step集成wincc,在wincc编译自动生成变量的时候会发现你将要生成的两个变量名是一样的,所以失败了。换句话说,就是两套PLC的变量可以重复,但是wincc里面即便是两个通讯连接里面的变量名也不能一样。
3.解决的办法,一般在做这样的项目的时候建议你在符号表中给PLC的变量命名的时候带一个后缀_PLC1 _PLC2,这样又简单明了,又直观形象。还可以避免重名
4.看了一下你的项目路径D:\msws7.24\MSS7-2(ETH)\wincproj\MS-OS1\MS-OS1.mcp
这样很不好,路径名中最好不要出现中文字符 也不要出现空格 .  - 这些,也就是不要出现标点符号。真的很不好,很危险,问题出现的那天要哭很久才能发现。呵呵!
祝工作顺利 天天开心

提问者对于答案的评价:
郁闷,至今没找到哪两个变量名一样

原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc265745.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2019年6月11日 上午3:58
下一篇 2019年6月11日 上午3:58

相关推荐