用户仿真多cpu应当注意什么

上传人:wt****50 文档编号:45891267 上传时间:2018-06-20 格式:PDF 页数:8 大小:304.27KB
返回 下载 相关 举报
用户仿真多cpu应当注意什么_第1页
第1页 / 共8页
用户仿真多cpu应当注意什么_第2页
第2页 / 共8页
用户仿真多cpu应当注意什么_第3页
第3页 / 共8页
用户仿真多cpu应当注意什么_第4页
第4页 / 共8页
用户仿真多cpu应当注意什么_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《用户仿真多cpu应当注意什么》由会员分享,可在线阅读,更多相关《用户仿真多cpu应当注意什么(8页珍藏版)》请在金锄头文库上搜索。

1、Service & Support (填写文档类型:常问问题) P1-8 用户如何同时仿真多用户如何同时仿真多 CPU 并且应注意什么?并且应注意什么? 说明:说明: 从 S7-PLCSIM V5.4+SP3 开始,用户可以使用 S7-PLCSIM 在一个 STEP 7 项目中同时仿真多 CPU 并建立 CPU 间的通讯。可仿真下面的通讯块用于通讯: SFB8 USEND“ SFB9 “URCV“ SFB12 “BSEND“ SFB13 “BRCV“ SFB15 “PUT“ SFB14 “GET“ SFB19 “START“ SFB 20 “STOP“ SFB 22 “STATUS“ SFB

2、 23 “USTATUS“ 通讯过程中,有可能存在时间问题,因为 S7-PLCSIM 不支持实时。 也可参考 S7-PLCSIM 自述文件中 7.3 节的信息。 如果运行大量 Windows 程序时,用户不能启动任何 其它程序或不能打开任何窗口,那么必须改变计算机操作系统的 “ 桌面堆存储器” 属性。 一种解决方 法在 表 02 中描述。 用户不能用真实 CPU 和 S7-PLCSIM 同时测试一个 STEP 7 项目中的程序。如果用户希望用 S7- PLCSIM 仿真 CPU,那么必须断开和实际 CPU 的所有连接。 下面的 表 01 描述了同时仿真多 CPU 的过程。 No. 步骤:步骤:

3、 1 在 SIMATIC Manager 中打开 S7-PLCSIM , 或者通过菜单命令 “ Options Simulate Modules ” 或者点击菜单工具条中 “ Simulation on/off ” 图表。带有实例标签 “ S7-PLCSIM1 ” 的第一个被 仿真 CPU 的对话框被打开。 2 在“ S7-PLCSIM1 ” 对话框中,用户从下拉框中选择被组态的接口类型作为 PG/PC 接口。 默认 为 MPI 接口。然而,根据硬件组态,也可以设定为 “ PROFIBUS ”,“ TCP/IP ” ( 通过 IP 地 址 ),“ ISO ” ( 通过 MAC 地址 ) 或者

4、“ Local ” ( 通过虚拟背板总线 ) 接口。 注意:注意: 用户必须避免在同一网络中的站地址重复。如果通过 MPI 接口装载所有站的程序,那么硬件组 态中的地址被分配如下: 站 1:MPI 地址: 2 站 2:MPI 地址: 3 等等 3 在 SIMATIC Manager 中, 选中第一个 S7 站的块文件夹并装载到 S7-PLCSIM1 中,通过菜单 命令 “ PLC Upload ”。 4 在 “ CPU ” 子窗口中,改变操作模式从 “ STOP ” 到 “ RUN-P ”。通过 “ 添加” 菜单,可以增加输 入,输出,标志等子窗口来监控并控制程序。 5 为了仿真其它 CPU,

5、用户在 S7-PLCSIM 中执行菜单命令 “ Simulation New PLC ”。“ S7- PLCSIM2” 对话框打开。 6 为了第二个 CPU 被仿真 ,需要在硬件组态中配置接口参数 ( PG/PC interface )。 Service & Support 图. 01 注意:注意: 如果两个 CPU 使用相同的接口,例如为 MPI ,可能第二个实例为灰色,即使接口支持并且地 址唯一,那么再次从下拉框中选择 MPI 接口作为 PG/PC 接口,尽管它已经被选择了, 然后颜 色从灰色改变为黑色。 7 在 SIMATIC Manager 中,选择第二个 CPU 的块文件夹并装载块到

6、实例 “ S7-PLCSIM2” 中。 在装载之前必须先建立实例 “ S7-PLCSIM2 ”。现在同样添加输入,输出,标记等等子窗口。 (填写文档类型:常问问题) P2-8 Service & Support (填写文档类型:常问问题) P3-8 注意:注意: 仅当接口颜色为黑色时执行下载功能 ( 在第 6 步中描述 )。 更多信息参考 S7-PLCSIM readme 文件第 7.3.2 节。 如要仿真其它 CPU 则重复 4 到 7 步。 表 01 改变操作系统属性改变操作系统属性 “桌面堆存储器桌面堆存储器” 当运行大量 Windows 程序时,即使用户电脑中有足够的主存储器和虚拟

7、内存,也可能得到错误信 息 “ 没有足够的主内存” 或程序可能冲突。 一种解决方法在 Table 02 中被描述。 No. 步骤:步骤: 1 开启注册表通过 “ 开始 运行.” 并在命令行输入 “ Regedt32.exe ”。 2 打开路径: HKEY_LOCAL_MachineSystemCurrentControlSetControlSession ManagerSubSystems 3 在 “ Windows ” 上点击鼠标右健并在弹出的菜单中选择 “ Change” 功能。“ Edit String ” 对话框 将被打开。 4 “ SharedSection ” 参数有值 1024

8、( 系统堆的最大值 ) 和 3072 ( 每个桌面堆的值 )。通过添加值 512 到 “ SharedSection” 参数来增加 512 KB 桌面堆存储器,如下图 图. 02 所示。 然后点击 “ OK ” 来保存设定。 图. 02 SharedSection 带有附加值 512 KB 的 桌面堆的大小被定义到每个桌面,用来连接一个非交互 式工作站。上面涉及的错误信息或程序冲突应该不再发生。 Service & Support (填写文档类型:常问问题) P4-8 5 用户必须重启计算机来改变桌面堆存储器。 注意注意: 更多信息请关注互联网 Microsoft 帮助和支持页面下的文章 I

9、D: KB126962。 表 02 关键词:关键词: Out of memory, Multi-instance 条目号条目号:38726591 日期日期:2009-10-26 Scroll down for English: How can you simulate multiple CPU modules simultaneously and what should you watch out for? Instructions: As from S7-PLCSIM V5.4+SP3 you can use S7-PLCSIM to simulate multiple CPU module

10、s simultaneously in a STEP 7 project and establish communication between the CPU modules. The following communication blocks are supported for communication: SFB8 USEND“ SFB9 “URCV“ SFB12 “BSEND“ SFB13 “BRCV“ SFB15 “PUT“ SFB14 “GET“ SFB19 “START“ SFB 20 “STOP“ SFB 22 “STATUS“ SFB 23 “USTATUS“ During

11、 communication, there might be time restrictions because S7-PLCSIM does not support real time. Please also refer to the information in the S7-PLCSIM readme file, section 7.3. If, when running a large number of Windows programs, you cannot start any more programs or you cannot open any more windows,

12、then you must change the operating system property “desktop heap memory“ of your PC. One remedy is described in Table 02. You cannot test a program of your STEP 7 project with a real CPU (PLC) at the same time as a program with S7-PLCSIM. If you wish to simulate your CPUs with S7-PLCSIM, you must fi

13、rst disconnect all connections to the real CPU. Proceed as described in Table 01 below to simulate multiple CPU modules simultaneously. No. Procedure: 1 Open S7-PLCSIM in the SIMATIC Manager, either via the menu command “Options Simulate Modules“ or from the menu bar with the “Simulation on/off“ ico

14、n. The dialog with the instance number “S7-PLCSIM1 with the first simulated CPU opens. 2 In the “S7-PLCSIM1“ dialog, you select the configured interface parameterization from the drop-down list box for the PG/PC interface. The MPI interface is set by default. However, depending on your hardware conf

15、iguration, you can also set the “PROFIBUS“, “TCP/IP“ (via the IP address), “ISO“ (via the MAC address) or “Local“ (via the virtual backplane bus) interface. Note: You must not use the addresses more than once in the same subnetwork. If you load all your programs via the MPI interface, for example, then the addresses are assigned in the hardware configurations: Station 1: MPI address: 2 Service & Support (填写文档类型:常问问题) P5-8 Station 2: MPI address: 3 etc. 3 In the SIMATIC Manager, mark the block

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号