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

ABB_800xA学习笔记236:System_800xA_Control_6.0_AC_800M_Configuration26

(2023-12-11 08:31:50)
标签:

abb

system_800xa_ac800m

配置手册

分类: ABBDCS
继续学习配置手册第一章功能和组件,进入第73页内容。
Control Module Execution
控制模块执行

Control modules provide data flow-driven execution, which makes the code design much easier for solutions where several types and formal instances are needed. All control modules communicate with each other, and can therefore determine when each individual instance can send and receive information. A data flow-riven design prevents possible mistakes, when trying to foresee the correct execution order, since the compiler rearrange or sort all the code behind the scenes. This is called code sorting.
控制模块提供数据流驱动的执行,这使得需要多种类型和正式实例的解决方案的代码设计更加容易。所有控制模块相互通信,因此可以确定每个实例何时可以发送和接收信息。数据流撕裂设计可防止在尝试预见正确的执行顺序时可能出现的错误,因为编译器会在后台重新排列或排序所有代码。这称为代码排序。

Direction for Control Modules
控制模块的方向
In control module types, a parameter can have any of the following direction:
在控制模块类型中,参数可以有以下方向:
  • In 输入
  • Out 输出
  • In_Out  输入输出
  • Unspecified  未注明

These control module parameters follow different access rules from the code inside the control module and offer limitations to the methods used to connect them.
这些控制模块参数遵循控制模块内部不同的访问原则,并且对用于连接它们的方法提供限制。
All of them are passed by reference, which means only a reference to the actual variable outside the control module is passed to and from the Control module.
所有这些都是通过引用传递的,这意味着仅引用实际控制模块外部的变量被传入和传出控制模块。
The rules governing their functioning are as follows:
管理其运作的规则如下:
  • Input parameters are read only.  输入参数只读
  • Out, In_Out and Unspecified are read and edit.  读取和编辑输出,输入输出和未注明
  • Control modules on the same level can connect only In to Out.  同一级别的控制模块只能从输入连接到输出。
  • A sub control module inside could only connect its In parameters to In parameters in the surrounding control module and so on.  内部的子控制模块只能将其 In 参数连接到周围控制模块中的 In 参数,依此类推。
  • In_out must be connected to a variable (on any level). This is not the case if the control module is used in FD code block in a diagram.  In_out必须连接到变量(在任何级别上)。如果控制模块用于图中的 FD 代码块,则情况并非如此。
  • If the control module is used in FD code block in a diagram, the In_out parameters can be connected to each other in FD code block. It is also possible to connect one Out parameter to an In_Out parameter, and an In_Out to an In parameter.  如果控制模块在图中的FD码块中使用,则In_out参数可以在FD码块中相互连接。也可以将一个 Out 参数连接到一个 In_Out 参数,并将一个 In_Out 连接到一个 In 参数。
  • One Out can be connected to Several In parameters. But, it is not possible to have multiple data connections from the same source on control module parameters of structured data types that have reverse components. See Table 9.  一个输出可以连接到多个输入参数。但是,对于具有反向分量的结构化数据类型的控制模块参数,不可能有来自同一源的多个数据连接。请参阅表 9。
  • A control module 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 control module writes to a reverse component of an output parameter. 允许控制模块写入输出参数。例外情况是,结构化数据类型的输出参数包含具有 reverse 属性的组件。如果控制模块写入输出参数的反向分量,则会出现错误。
  • A control module is not allowed to write to an input parameter. An exception is that it is allowed for a control module to write to a reverse component of an input parameter. 不允许控制模块写入输入参数。一个例外是,允许控制模块写入输入参数的反向分量。

These rules apply to connecting 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 参数和相应的 for Out。编译器(和检查)会在规则被破坏时发出警告。
Unspecified parameters can be used without limitations for compatibility reasons.
出于兼容性原因,可以不受限制地使用未指定的参数。
For more information on Code Sorting, see the System 800xA Control AC 800M Planning (3BSE043732*).
有关代码排序的详细信息,请参阅系统 800xA 控制 AC 800M 规划 (3BSE043732*)。

0

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

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

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

新浪公司 版权所有