如何组态WinCC 开机自动启动

本文介绍了三种方法用于组态wincc 开机自动运行,当电脑开机或重新启动时,wincc 运行系统自动启动。
注:测试环境
操作系统版本为:windows 7
wincc 版本为: 7.0 sp2 asia
simatic net 版本为:8.0 sp1
其他版本的组态可能会稍有区别。
1 使用wincc autostart工具进行组态
1.1 打开 wincc autostart 工具
通过“windows 开始菜单 〉all programs > siemens automation > simatic > wincc > autostart”打开 wincc autostart 工具(如果安装了其他的操作系统,路径会有区别,如xp操作系统路径为:“windows 开始菜单 〉all programs > simatic > wincc > autostart”);或者通过绝对路径“<siemens installation path> siemens > wincc > bin > autostartrt.exe”找到 autostartrt.exe 打开 wincc autostart 工具。(如图1所示)
图1 wincc autostart 工具组态
1.2 wincc autostart 组态
1) 在项目中通过“…”选择需要开机自动运行的wincc 项目;如果是冗余项目,则激活“添加另一个项目/冗余项目”并选择冗余项目。
2) 选择“启动时激活项目”选项。
3) 根据需求选择“激活时允许‘取消’”选项。
4) 单击“激活自动启动”。
5) 单击“确定”完成组态。
2 使用simatic net 组态
2.1 打开 simatic net configuration console
通过“windows 开始菜单 〉all programs > siemens automation > simatic > simatic net > configuration console”打开 configuration console(如果安装了其他的操作系统,路径会有区别,如xp操作系统路径为:“windows 开始菜单 〉all programs > simatic > simatic net > configuration console”);或者通过绝对路径“<siemens installation path> siemens >simatic.net>opc2>bincfg>ibawiz.exe”找到ibawiz.exe打开configuration console。(如图2所示)
图2 configuration consolen
2.2 组态autostart 对话框
1) 打开autostart 对话框: 在configuration console 中通过 “pc station > simatic net configuration > applications > autostart”选择 autostart。
2) 选择“autostartrt.exe”为自动启动应用程序:单击 “new” 按钮插入一个新的应用程序。在弹出的对话框中选择”<siemens installation path> siemens > wincc > bin > autostartrt.exe”。
3) 为“autostartrt.exe”分配参数:在 arguments中添加如下参数:
<drive>:<project path><project name>.mcp /active:yes /lang=enu /enablebreak:no
4) 点击“apply”来保存设置。
arguments 参数说明:
<drive>:<project path><project name>.mcp参数指的是需要启动的wincc项目的完整路径。
/active 参数决定仅仅激活 wincc 运行系统或者项目暂时打开然后立即关闭。
• /active:yes
表示只启动wincc 运行系统。wincc explorer 不启动。
• /active:no
表示 wincc运行系统在 wincc explorer 中启动后立即关闭。
此处参数一定要选择为/active:yes ,否则无法启动 wincc 运行系统。
/lang 参数是指autostart的运行语言。
• /lang=cht
autostart运行语言为中文(中国)。
• /lang=enu
autostart运行语言为英语。
/enablebreak 参数是指启动时是否激活取消按钮。
• /enablebreak:no
启动时不激活取消按钮。
• /enablebreak:yes
启动时激活取消按钮。
注意:需要在每个参数之间添加空格将参数分隔开。
3 使用windows 启动菜单组态
3.1 组态wincc 运行系统直接启动快捷方式
1) 发送autostartrt.exe快捷方式:在wincc 默认安装路径下“<siemens installation path> siemens > wincc > bin > autostartrt.exe”找到autostartrt.exe文件,右键此文件选择“发送到>桌面快捷方式”。
2) 定义autostartrt.exe 快捷方式属性:右键建立好的桌面快捷方式,打开“属性”对话框,并切换到“快捷方式”标签页(如图3所示)。在“目标”之后添加空格和以下参数(不要删除引号内已有内容):<drive>:<project path><project name>.mcp /active:yes /lang=enu /enablebreak:no
图3 autostart 快捷方式属性
3)单击“确定”保存设置。
注:
(1)参数说明请参考2.2节“arguments 参数说明”部分。
(2)需要在每个参数之间添加空格将参数分隔开。这样autostart 快捷方式的属性中的target的完整格式如下:
“<siemens installation path>siemenswinccbinautostartrt.exe” <drive>:<project path><project name>.mcp /active:yes /lang=enu /enablebreak:no
斜体部分请根据实际情况修改。
3.2 组态 windows 启动菜单
将3.1步骤中建立好的快捷方式拷贝到“c:usersusernameappdataroaming
microsoftwindowsstart menuprogramsstartup”。 (如果安装了不同语言版本的操作系统,路径会有所不同;如果安装了其他的操作系统,路径也会有区别,如xp操作系统路径为:“c:documents and settingsusernamestart menuprogramsstartup”)。
注:
对于以上路径中,username 指的是当前登录的windows 用户名;如果username选择为 all users,则任意windows 用户登录都会自动启动此项目。
关键词
wincc 自动启动