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

ABB_800xA学习笔记237:System_800xA_Control_6.0_AC_800M_Configuration27

(2023-12-11 09:00:29)
标签:

abb

system_800xa_ac800m

配置手册

功能和组件

分类: ABBDCS
继续学习配置手册第一章功能和组件,进入第74页。
Diagram Execution
图表执行
The execution of the content in a diagram or diagram type is mainly configured using the Data Flow Order of different invocations within the FD (Function Diagram) code block. The Data Flow Order is a number that specifies the intended order of execution. In the FD code block, the Data Flow Order is given to invoke functions, function blocks, diagram instances, control modules, code blocks, split  blocks and join blocks.
图或图类型中内容的执行主要使用 FD(功能图)代码块中不同调用的数据流顺序进行配置。数据流顺序是一个数字,用于指定预期的执行顺序。在 FD 代码块中,数据流顺序用于调用函数、功能块、图实例、控制模块、代码块、拆分块和连接块。
Control modules in a diagram are sorted based on access of variables to enable both forward and backward calculations and data flows to be executed in the same task scan. Therefore code blocks in invoked control modules will not always be executed in the order specified by the Data Flow Order.
图中的控制模块根据变量的访问进行排序,以便在同一任务扫描中执行前向和后向计算以及数据流。因此,调用的控制模块中的代码块将并不总是按照数据流顺序指定的顺序执行。
The Structured Text and SFC code blocks can be defined without invoking them from the FD code block. These code blocks are then sorted together with code blocks of invoked control modules.
可以在不调用结构化文本和 SFC 代码块的情况下定义它们从 FD 代码块。然后,这些代码块与代码一起排序调用的控制模块块。
Direction for Diagram Types
图表类型的方向
In diagram types, a parameter can have any of the following direction:
在图表类型,参数可以有以下方向:
  • In  输入
  • Out  输出
  • In_Out  输入输出

The diagram type parameters are shown as ports when the type is instantiated in the diagram editor.
图表类型在图标编辑器实例化时,参数显示为端口。
All of them are passed by reference, which means only a reference to the actual variable outside the diagram type is passed to and from the diagram type.
所有的参数通过引用传递,也就是说只有引用图表外部实际的变量传递给图表或者从图表传递给外部实际的变量。
The rules governing their functioning are as follows:
管理器运作的规则如下:
  • Each port has an attribute that determines if it is visible in the diagram or not.  每个端口都有一个属性,用于确定它在关系图中是否可见。
  • Input ports are shown on the left side.  输入端口在左侧显示。
  • Output ports are shown on the right side.  输出端口在右侧显示。
  • In_out ports are normally shown on both sides with a connecting line through the block. They can also be shown on the left side only, depending on the FD Port property on the corresponding parameter declaration.  输入输出端口通常通过贯穿块的连接线在两侧显示。还可以只在左侧显示,取决于相应参数声明上的 FD Port 属性。
  • One Out can be connected to Several In parameters. But, it is not possible to have multiple data connections from the same source on diagram type parameters of structured data types that have reverse components. See Table 9.  一个输出端口可以连接好几个参数。但是,对于具有反向分量的结构化数据类型的图表类型参数,不可能有来自同一源的多个数据连接。见表9.
  • A diagram type is allowed to write to an output parameter. An exception is the case of output parameters that are of structured data type containing components with the reverse attribute. It is an error if a diagram type writes to a reverse component of an output parameter.  图表类型允许写入输出参数。除了结构化数据类型的输出参数包含具有 reverse 属性以外。如果图表类型写值到有反向组件的输出参数,会产生错误。
  • A diagram type is not allowed to write to an input parameter. An exception is that it is allowed for a diagram type to write to a reverse component of an input parameter.  图表类型不允许写值到输入参数。除了允许图表类型写值到有反向组件的输入参数之外。

These rules apply to connecting the parameters to communication variables as well. Communication Variable In should be connected to In parameters and the corresponding for Out. The compiler (and check) warns if rules are broken.
这些原则同样适用到连接参数到通讯变量。通讯变量In要连接到In参数,相应的Out连接到Out参数。如果破坏规则,编译器会警告。

0

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

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

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

新浪公司 版权所有