AMLBook1: 初学者指南 | 第二章 2.4 AutomationML 基础库 base libraries [翻译]

2.4.1 一般建模规则 General modelling rules

AutomationML定义了为AutomationML核心概念建模所需的基本库。本节将介绍这些基本库。这些库可以在[BookLink@]下载。一般的建模规则是:

  • 所有描述的属性都是AML标准库的一部分,如果不需要,可以在实例化后删除。
  • 所有的AML对象必须直接或间接地与标准角色类AutomationMLBaseRoleClass相关联。
  • 所有的AML接口必须直接或间接地与标准接口类AutomationMLBaseInterface关联。

2.4.2 基本角色类库 Basic Role Class library

图2-66显示了AML基本角色类库。这些类描述了抽象的和基本的角色或功能:
image.png

2.4.2.1 角色类(RoleClass) AutomationMLBaseRole
类名 Class nameAutomationMLBaseRole
描述 Description角色类AutomationMLBaseRole是一个基本的抽象角色类型,是所有标准或用户定义的角色类的基类
父类 Parent class无 none
该元素的引用路径
Path for element referenceAutomationMLBaseRoleClassLib/AutomationMLBaseRole
Attributes无 none
2.4.2.2 角色类 Group
类名 Class nameGroup
描述 Description角色类 "组 "是一种对象的角色类型,用于将从某种工程角度看属于同一类别的镜像对象分组。AML组对象应该引用这个角色。2.6.4中规定了细节和例子。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径
Path for element referenceAutomationMLBaseRoleClassLib/AutomationMLBaseRole/Group
Attributes属性名Name: AssociatedFacet 关联的面
RefAttributeType: AutomationMLBaseAttributeTypeLib/AssociatedFacet
Semantics: see 2.4.4
2.4.2.3 角色类 Facet
类名 Class nameFacet
描述 Description角色类Facet是一种角色类型,用于作为AML对象的属性或接口的子视图的对象。AML Facet对象应该引用这个角色。细节和例子在2.6.3中规定。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Facet
Attributes无 none
2.4.2.4 角色类 Resource
类名 Class nameResource
描述 Description角色类资源是一个基本的抽象角色类型,是所有AML资源角色的基类。它描述工厂、设备或其他生产资源。AML资源对象应直接或间接地引用该角色。如果需要,AML资源对象应通过PPRConnector类型的CAEX外部接口建立与产品和流程的关系。PPR的概念在2.6.6中规定。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/ Resource
Attributes无 none
2.4.2.5 角色类 Product
类名 Class nameProduct
描述 Description角色类 "产品 "是一个基本的抽象角色类型,是所有AML产品角色的基类。它描述了在描述的工厂中加工的产品、产品部件或产品相关材料。AML产品对象应直接或间接地参考这个角色。如果需要,AML产品对象应通过PPRConnector类型的CAEX外部接口来模拟与资源和过程的关系。PPR的概念在2.6.6节中描述。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Product
Attributes无 none
2.4.2.6 角色类 Process
类名 Class nameProcess
描述 Description角色类Process是一个基本的抽象角色类型,是所有AML流程角色的基类。它描述了与生产有关的过程。AML过程对象应直接或间接地引用这个角色。如果需要,AML过程对象应通过PPRConnector类型的CAEX外部接口来模拟与产品和过程的关系。PPR的概念在2.6.6节中描述。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Process
Attributes无 none
2.4.2.7 角色类 Structure
类名 Class nameStructure
描述 Description角色类结构是一个基本的抽象角色类型,适用于在工厂层次结构中作为结构元素的对象,例如一个文件夹、一个站点或一条生产线。AML结构对象应直接或间接地引用该角色。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure
Attributes无 none
2.4.2.8 角色类 ProductStructure
类名 Class nameProductStructure
描述 Description角色类ProductStructure是一个面向产品的对象层次的抽象角色类型。AML产品结构对象应直接或间接地引用这个角色。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure ProductStructure
Attributes无 none
2.4.2.9 角色类 ProcessStructure
类名 Class nameProcessStructure
描述 Description角色类ProcessStructure是面向处理器对象层次结构的抽象角色类型。AML流程结构对象应直接或间接地引用这个角色。该应用在2.6.6中解释。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure/ ProcessStructure
Attributes无 none
2.4.2.10 角色类 ResourceStructure
类名 Class nameResourceStructure
描述 Description角色类ResourceStructure是一个抽象的角色类型,用于重新面向资源的对象层次结构。AML资源结构对象应直接或间接地引用这个角色。该应用在2.6.6中进行了说明。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole/Structure
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/ Structure/ResourceStructure
Attributes无 none
2.4.2.11 角色类 ExternalData
类名 Class nameExternalData
描述 Description角色类ExternalData是一个文档类型的抽象角色类型,是所有文档类型角色的基类。它描述了不同的文件类型。AML文档对象应直接或间接地引用这个角色。例子在2.5.4中描述。
父类 Parent classAutomationMLBaseRoleClassLib/AutomationMLBaseRole
该元素的引用路径AutomationMLBaseRoleClassLib/AutomationMLBaseRole/ ExternalData
Attributes无 none

2.4.3 基本接口类库 Basic Interface Class Library

图2-67显示了AML基础接口类库。这些类描述了抽象的和基本的接口:
image.png

2.4.3.1 接口类(InterfaceClass) AutomationMLBaseInterface
类名 Class nameAutomationMLBaseInterface
描述 Description接口类AutomationMLBaseInterface是一个基本的抽象接口类型,
应作为所有AML接口类描述的父类。
父类 Parent classnone
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface
Attributes无 none
2.4.3.2 接口类 Order
类名 Class nameOrder
描述 Description接口类Order是一个抽象类,应被用于描述订单,例如,一个继任者或一个前任者。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/Order
Attributes属性名Name: Direction
RefAttributeType: AutomationMLBaseAttributeTypeLib/Direction Semantics: see 2.4.4
2.4.3.3 接口类 Port
类名 Class namePort
描述 Description接口类Port是一个接口类型,可以包含几个嵌套接口。它允许描述复杂的界面。AML端口接口应该引用这个接口类。2.6.2中描述了细节和例子。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/Port
AttributesName: Direction
RefAttributeType: AutomationMLBaseAttributeTypeLib/Direction Semantics: see 2.4.4
Name: Cardinality
RefAttributeType: AutomationMLBaseAttributeTypeLib/Cardinality Semantics: see 2.4.4
Name: Category
RefAttributeType: AutomationMLBaseAttributeTypeLib/Category Semantics: see 2.4.4
2.4.3.4 接口类 PPRConnector
类名 Class namePPRConnector
描述 Description应使用接口类 PPRConnector 来提供资源、产品和流程之间的关系。PPR的概念在2.6.6中描述。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ PPRInterface
Attributes无 none
2.4.3.5 接口类 ExternalDataConnector
类名 Class nameExternalDataConnector
描述 Description接口类ExternalDataConnector是一个基本的抽象接口类型,应被用于描述引用外部文件的连接器接口。类COLLADAInterface和PLCopenXMLInterface是由该类派生的。
所有现有的和未来的连接器类应直接或间接地从该类派生
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ ExternalDataConnector
AttributesName: refURI
RefAttributeType: AutomationMLBaseAttributeTypeLib/refURI Semantics: see 2.4.4
2.4.3.6 接口类 COLLADAInterface
类名 Class nameCOLLADAInterface
描述 Description接口类COLLADAInterface是用来引用外部COLLADA文件和发布外部COLLADA文件中的接口。详情在2.5.1节中说明。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ COLLADAInterface
AttributesName: refURI
RefAttributeType: AutomationMLBaseAttributeTypeLib/refURI Semantics: see 2.4.4
Name: refType
Semantics: see 2.4.4
Name: target
Semantics: see 2.4.4
2.4.3.7 接口类 PLCopenXMLInterface
类名 Class namePLCopenXMLInterface
描述 DescriptionThe interface class PLCopenXMLInterface is used in order to refer- ence external PLCopen XML documents or to publish signals or vari- ables that are defined inside of a PLCopen XML logic description. Details are specified in section 2.5.1.
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ PLCopenXMLInterface
AttributesName: refURI
RefAttributeType: AutomationMLBaseAttributeTypeLib/refURI
Semantics: see 2.4.4
2.4.3.8 接口类 ExternalDataReference
类名 Class nameExternalDataReference
描述 Description接口类ExternalDataReference是用来引用AutomationML范围外的外部文件。详情在第2.5.4节描述。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface/ ExternalDataConnector
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ ExternalDataConnector/ExternalDataReference
AttributesName: MIMEType
RefAttributeType: AutomationMLBaseAttributeTypeLib/MIMEType Semantics: see 2.4.4
2.4.3.9 接口类 Communication
类名 Class nameCommunication
描述 Description接口类 "通信 "是一个抽象的接口类型,应被用于描述与通信相关的界面。进一步的通信相关的类应直接或直接从该类派生。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/ Communication
Attributes无 none
2.4.3.10 接口类 SignalInterface
类名 Class nameSignalInterface
描述 Description接口类SignalInterface应被用于模拟信号。这个接口类型是可配置的,允许描述数字和模拟输入和输出,以及可配置的输入-输出。
父类 Parent classAutomationMLInterfaceClassLib/AutomationMLBaseInterface/Communication
该元素的引用路径AutomationMLInterfaceClassLib/AutomationMLBaseInterface/Communication/SignalInterface
Attributes无 none

2.4.4 基本属性类型库 Basic Attribute Type Library

图2-68显示了AML基本属性类型库。这些类型描述了抽象的和基本的属性.
image.png

表2-27 AML基础库的属性类型

属性名称 Attribute Name语义 Semantics
AssociatedExternalValue
相关的外部价值这个属性包含一些子属性,这些子属性允许将CAEX属性与外部文档中的一个项目相互连接。这些子属性的描述见表26。AssociatedExternalValue的应用在2.5.5节中描述。AssociatedExternalValue属性本身并没有一个值。属性数据类型:empty
父级Parent: AutomationMLBaseAttributeTypeLib
路径Path: AutomationMLBaseAttributeTypeLib/AssociatedExternalValue
AssociatedFacet这个属性必须用于定义相关Facet的名称。该应用在第2.6.5节中描述。
Example: AssociatedFacet = “PLCFacet”。
AttributeDataType: xs:string
Parent: AutomationMLBaseAttributeTypeLib/AssociatedFacet
Cardinality这个属性属于CAEX外部接口,必须用来描述允许从/到这个接口的最大和最小连接数。属性Cardinality本身是一个复杂的属性,不能有一个值。相应的子属性在表2-28中描述。
AttributeDataType: This attribute has no AttributeDataType since the attribute has no value.
Path: AutomationMLBaseAttributeTypeLib/Category
Category这个属性属于一个CAEX ExternalInterface,并描述了这个接口的类别。这个属性的值是用户定义的。只有具有相同类别值的接口类才允许被连接。本标准没有预先定义类别值。
Example: Category = “MaterialFlow”
AttributeDataType: xs:string
Path: AutomationMLBaseAttributeTypeLib/Category
Direction这个属性用于描述CAEX接口的方向,例如一个信号或一个接口的方向。允许的值。In, Out或InOut。
使用这个属性的CAEX接口遵循以下规定。方向为In的接口只能与方向为Out或InOut的接口连接。
方向为Out的接口只能连接到方向为In或InOut的接口上。
这些信息可以被用来证明连接的有效性。
Examples:
Direction = “Out” (for example a plug)
Direction = “In” (for example a socket)
Direction = “InOut” AttributeDataType: xs:string
Path: AutomationMLBaseAttributeTypeLib/Direction
DocLangDocLang描述了被引用文件的语言。该属性应具有符合RFC1766标准的值。例如:
DocLang = de - 该文件为德语语言,在德国有效。
DocLang = fr-CA - 该文件为法语语言,在加拿大有效。
AttributeDataType: xs:string
Parent: AutomationMLBaseAttributeTypeLib
Path: AutomationMLBaseAttributeTypeLib/DocLang
FrameFrame描述了属于InternalElement的相对于其父级的几何位置。它定义了以下嵌套属性:
x:沿着父坐标系的x轴的平移,单位是米。
y:沿着父坐标系的y轴的平移,单位是米。
z:沿着父坐标系的z轴的平移,单位是米。
rx:围绕移位坐标系的X轴的旋转,度数(°)
ry:围绕移位坐标系的y轴的旋转,度数(°)
rz:围绕移位坐标系的Z轴的旋转,度数(°)
所有嵌套的属性都是AttributeDataType: xs:string。2.2.8.5节中描述了用法和例子。
ListType这个属性必须用于包含未经排序的属性列表的属性。这个概念在2.6.8.2节中有描述。
AttributeDataType: empty
Parent: AutomationMLBaseAttributeTypeLib/ListType
LocalizedAttribute这个属性必须用于描述其父属性的语言替代品的子属性。这个概念在2.6.7.3节中有描述。
AttributeDataType: xs:string
Parent: AutomationMLBaseAttributeTypeLib/LocalizedAttribute
MIMEType这个属性描述了一个被引用文件的类型。该属性必须有符合多用途互联网邮件扩展(MIME)标准的值。例子:
  • MIMEType = “application/pdf” - this means that this document is of file type pdf.
  • MIMEType = “application/xml”: this means that this document is of type xml.
  • MIMEType = “application/msword”: this means that this document is of type doc.
  • MIMEType = “application/msexcel”: this means that this document is of type xls.

AttributeDataType: xs:string
Parent: AutomationMLBaseAttributeTypeLib
Path: AutomationMLBaseAttributeTypeLib/MIMEType |
| OrderedListType | 属性 "OrderedListType "应被用于包含一个排序的属性列表的属性。这个概念在2.6.8.2节中有描述。
AttributeDataType: empty
Parent: AutomationMLBaseAttributeTypeLib/OrderedListType |
| refURI | 这个属性必须被用来存储到一个外部文档的路径。
AttributeDataType: xs:anyURI
Path: AutomationMLBaseAttributeTypeLib/refURI |

表2-28: 属性Cardinality的子属性

AttributeAttributeDataTypeDescriptionExample
MinOccurxs:unsignedIntMinOccur值描述了进出相应接口类的最小可能连接数。
该属性的值应大于或等于0。MinOccur = 1
这意味着该端口应该至少与另一个端口连接。
MaxOccurxs:unsignedIntMinOccur值描述了与相应的接口类之间的最大可能的连接数。
该属性的值应大于或等于MinOccur,或者是0,也就是infi-nite。MaxOccur = 3
这意味着该端口最多可以与其他三个端口连接。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值