加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

ABB_800xA学习笔记224:System_800xA_Control_6.0_AC_800M_Configuration14

(2023-12-08 19:25:48)
标签:

abb

system_800xa_ac800m

配置手册

分类: ABBDCS
继续学习配置手册第一章
Types and Instances - Concept
类型和实例 - 概念
Types are used to represent motors, valves, tanks, etc. that are located in a plant area, and then turn them into manageable units in a control project (for example, motor types, valve types, mixer types, and so on). Instances are created based on each of these types.
类型用于表示工厂区域的电机、阀门、罐子等等,然后将它们转换成控制项目中可管理的单元(比如电机类型、阀门类型、搅拌器类型等等)。实例基于每一种类型创建。
A type is the source (the blue print) for a unit (motor, valve, tank, etc), while an instance represents the unit(s) in libraries and applications. There is an inherited  mechanism between a type and all its instances, where all instances have the same performance as the type, and changes performed in the type affect all instances simultaneously.
类型是一个单元(电机、阀门、罐子)的源(蓝图),而实例表示库和应用程序的单元。这是类型和其所有实例的继承机制,所有的实例由类的同样的性能,修改类的性能同时影响所有的实例。
A type is a generic solution, which can be used by many instances, and contains programming code with variables, functions, connection parameters (textual and graphical), graphical instances, and formal instances1.
类型是通用的解决方案,可以被许多实例使用,包含编程代码与变量,函数,连接参数(文本和图形实例、图形实例和形式实例1。
Figure 4 shows the relationship between a type located in a library and two instances created in an application.
图4展示了库中的类型和应用程序中创建的实例之间的关系。
ABB_800xA学习笔记224:System_800xA_Control_6.0_AC_800M_Configuration14
Figure 4. Relationship between a type and two instances.
图 4. 类型和两个实例的关系

The type contains the code, whereas each instance contains a list of computed variable values. The instance does not contain any code; it uses the code inside the type for manipulating its own local variable values.
类型包含代码,而每一个实例包含列表计算变量值。实例不包含代码,它使用类型内部代码来操作自己的局部变量值。
1. Formal instances are instances of another type located inside a type. These, along with instances based on that type are executed in applications.
注释1. 形式实例是位于类型内部的另一类型的实例。这些以及基于该类型的实例在应用程序中执行。
A type is always static and cannot run by itself in applications. To execute the code inside the type, an instance based on the type must be created. The instance executes the code located inside the type. To create an instance, point to a type either in a library or in an application.
类型是中式景泰的,不能再应用程序中单独运行。要执行类型内部的代码,必须创建基于此类型的实例。实力执行类型内部的代码,指向库中或者应用程序中的类型。
All instances based on the same type have the same characteristics, which means they have equal access to everything in the type. An instance does not contain a programming editor or code blocks; hence the code cannot be written inside an instance. All logic must be created in the type.
基于同种类型的所有的实例有相同的特征,意味着它们对类型中的所有内容有同等访问权限。实例不包含程序编辑器或者代码块。因此代码不能在实例中编写。所有逻辑必须在类型中创建。

The allocated memory for creating a type solution (for example, a motor type solution that contains one motor type and 20 motor instances) is distributed mainly on the programming code inside the type. Therefore, the cost (allocated memory) for each new instance (motor) is very small, compared to the type itself. The instance only needs to allocate memory for variables, as the code is located and executed from the type. However, the number of instances are relevant for considering the total CPU memory.
用于创建类型解决方案(例如点击类型解决方案包含点击类型和20个电机实例)的分配内存主要分布在类型内部的代码。因此,与类型本身相比,每一个新的实例(电机)成本(分配的内存)非常小。实力仅需要给变量分配内存,因为代码是从类型进行定位和执行的。

It is easier to update the application while working with newer version of types, since the inherited mechanism takes care of changes that often concern hundreds of instances. A code change (for example, declaring additional connection parameters) can be done once for the type, and this change is inherited by all instances simultaneously.
在使用较新版本的类型时,更新应用程序相对容易(和不使用类型和实例相比较),因为继承机制可以处理通常数百个实例的更改(如果不使用类型和实例,修改同一种类型设备控制程序逻辑需要一个设备一个设备的修改)。可以对类型进行一次代码更改(例如,声明额外的连接参数),并且所有实例同时继承此更改。

Control Builder also contains a number of structured data types. For more information, refer to the System 800xA Control AC 800M Planning (3BSE043732*) manual. A type described in this sub-section is a function block type, a control module type, or a diagram type.
Control Builder 同时包含许多结构数据类型。更多信息,参见《the System 800xA Control AC 800M Planning (3BSE043732*) 》手册。本小节类型描述时功能块类型,控制模块类型或者图表类型。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有