新浪博客

ABB_800xA学习笔记195:System_800xA_Control_6.0_AC_800M_Getting_Started_37第五章连接控制器在线8

2023-11-30 19:27阅读:
继续学习附件
Import an Example to 800xA
导入例子到800xA
Before you can use any of these examples that have been storage on your disk, you must first import them to the Plant Explorer workplace.
在使用这些存储在磁盘上的例子之前,你必须先将其导入到工厂浏览器工作区。
If Environments are enabled, the files are imported to the Engineering Environment (default settings).
如果启用了环境,文件导入到工程环境(默认设置)
To import an example:
导入例子
1. Click the ABB_800xA学习笔记195:System_800xA_Control_6.0_AC_800M_Getting_Started_37第五章连接控制器在线8 icon (Launch Import Export tool) in the Plant Explorer tool bar.
在工厂浏览器的工具栏上点击导入导出图标(加载导入
导出工具)
2. On the File menu, select Open. The Open Import/Export File dialog is displayed
在文件菜单,点击打开。打开导入/导出文件对话框。
3. Browse to the file you want to import, select it and click Open. The Import/Export window opens
浏览到你要导入的文件,选中,点击打开,打开导入导出窗口
It is also possible to open the Import/Export window by double-clicking the .afw file of the example project from the folder. In this case, ignore Step 1 to Step 3.
还可以从文件夹双击例子程序的.afw文件来打开导入导出窗口。在这种情况下,忽略步骤1到步骤3
4. On the Actions menu, select Import All. A project, containing the example, is created under a separate Control Network.
在动作菜单,选中导入全部,包含例子的项目在单独的网络下创建。
5. In the Control Structure, drag the project icon from the Control Network that was created to your “ordinary” Control Network and drop it.
在控制结构,从创建的控制网络拖拽项目图标到普通控制网络释放。
6. Delete the Control Network that was created.
删除创建的控制网络
You can now study the example like any other control project.
你现在可以向其他任何控制项目一样学习例子了。
Testing
测试
Test mode can be used for offline testing of applications. Executing code in Test mode means that the code will be compiled and executed locally in the PC. You can use the online editors to view variables and application execution. The execution time will be much faster than executing code online, and you do not need a controller. However, external communication is disabled during test mode.
测试模式可用于应用程序的离线测试。在测试模式执行代码意味着代码将在本地计算机被编译和执行。你可以使用在线编辑器浏览变量和应用执行。执行时间将远快于在线执行代码,你不需要控制器。然而,在测试模式下外部通讯无效。
Test mode is enabled from the Tools menu in Project Explorer (select Test Mode).
在项目资源管理器工具菜单启用测试模式(选择测试模式)
If the project includes several controllers, you will be asked to choose which controller to start the test mode with. See also Download Project to Selected Controllers on page 105. When Test mode is selected, a version check is performed and the Test Mode Analysis dialog displays the present applications and controller configurations. Different restart options will be offered in the Analysis dialog, a more defined presentation can be found in Application Restart Mode on page 112.
如果项目包含几个控制器,将询问你选择哪一个控制器执行测试模式。见105页下载项目到选中的控制器。当选中测试模式,执行版本检查,测试模式诊断对话框显示当前应用和控制器配置。在诊断对话框提供不同重启选项,可以在112页应用程序重启模式找到更多表示。


Simulation
模拟
Simulation means that the code is downloaded and executed in a simulation controller. Simulation can be done either in a SoftController, or in a simulation controller.
模拟意味着代码在模拟控制器下载和执行。模拟可以在软控制器或者模拟控制器完成。


SoftController requires a separate software license.
软控制器需要单独的软件授权


Simulation can be used to test your applications without connecting them to the physical environment, and to make sure they work and behave as expected.
模拟用于在没有连接物理环境下测试应用,确认它们的工作和行为是期望的。
When an application is simulated, all I/O copying is cancelled. This means that you need to write corresponding code for I/O responses. For more information see Running in a Simulation Controller on page 100.
当应用被模拟,取消所有的IO复制。这意味着你为IO响应写相应的代码更多关于在模拟控制器运行的信息见100页。
You are advised to read the subsection Restrictions Concerning Hardware Simulation on page 101, before you start simulating the hardware.
在进行硬件仿真之前,强烈建议阅读101页'硬件仿真限制'小节。


Select Tools > Setup > Station > Application Download to open the Setup - Application Download dialog (see Figure 59).
选择工具> Setup > Station > Application Download,打开Setup - Application Download对话框(见59页)
ABB_800xA学习笔记195:System_800xA_Control_6.0_AC_800M_Getting_Started_37第五章连接控制器在线8
Figure 59. Application Download with default settings
图 59 使用默认设置模拟控制器下载应用
Set the parameter HWSimulationAllowed to true, to allow hardware simulation.
设置HWSimulationAllowed为真来允许硬件模拟


Simulation Controllers
模拟控制器
Applications written for another product type may be tested in a simulation controller. The normal copying of I/O-channel data to and from any “real” I/Omodule can be replaced by simulated I/O values.
为另一种产品类型编写的应用程序可以在仿真控制器中进行测试。I/O通道数据与任何“真实”I/ module之间的正常复制可以用模拟的I/O值代替。


I/O values can be simulated in a number of ways, from simply using logged data, to using advanced process simulations. Since there is no I/O copying in a simulated controller, it is possible to write simulated values directly to I/O variables.
可以通过多种方式模拟I/O值,从简单地使用日志数据到使用高级进程模拟。由于模拟控制器中没有I/O复制,因此可以将模拟值直接写入I/O变量。


Simulation controllers are always marked with a “Simulated” flag ( ABB_800xA学习笔记195:System_800xA_Control_6.0_AC_800M_Getting_Started_37第五章连接控制器在线8 ),to eliminate the risk of downloading simulation code to a production controller.
模拟控制器总是标有模拟标志,消除将模拟代码下载到生产控制器的风险。


A simulation controller accepts a controller configuration even if it does not match its family and type. The following hardware simulation combinations are possible:
模拟控制器接受控制器配置,即使它与它的族和类型不匹配。以下硬件模拟组合是可能的:
Table 5. Matrix of controllers that can be used for simulation
表 5. 可用于仿真的控制器矩阵
Simulation Controllers
Type of controller to be simulated
要模拟的控制器
AC 800M SoftController SoftController (HI Mode)
AC 800M Yes Yes NO
AC 800M HI NO NO YES

Note that an AC 800M High Integrity controller can never be used for simulation purposes. An AC 800M High Integrity controller can only be simulated in a SoftController High Integrity (SoftController HI).
请注意,AC 800M 高完整性控制器永远不能用于仿真目的。AC 800M 高完整性控制器只能在 SoftController 高完整性 (SoftController HI) 中进行仿真。

我的更多文章

下载客户端阅读体验更佳

APP专享