ABB_800xA学习笔记181:System_800xA_Control_6.0_AC_800M_Getting_Started_21-第三章mydoors5
(2023-11-26 13:35:52)
标签:
abbsystem_800xa_ac800m创建项目入门材料 |
分类: ABBDCS |
继续学习第三章。
Diagrams
图表
In Control Builder, the control
logic can be created in diagrams, which are
created under an
application. The diagrams use a graphical programming
language.
在Control
Builder,控制逻辑可以在图表中创建,这些在应用程序下建立。图表使用图形编程语言。
The
code block in the diagram editor allows mixing of functions,
function blocks, control modules, and other diagrams, and allows
graphical connection between them to achieve a particular
logic.
图表编辑器中的代码块允许混合功能、功能块,控制模块和其他图表,允许相互之间图形连接达到特定的逻辑。
In
this example project, you are going to create the logic in a
diagram.
在这个例子项目,你将在图表中创建逻辑。
In
the MyDoors project, expand Application_1 to view the Diagrams
folder and the three default diagrams.
在 MyDoors 项目,展开 Application_1 查看图标文件夹和3个默认的图表。
In
this example, you are going to create the logic in
Diagram2
在这和例子,你将在图表2创建项目。
Variables
变量
There are different types of variables in
Control Builder for storing and
computing values
(local, communication, global, and access
variables).
在Control
Builder有不同类型的变量用于存储和计算数值(逻辑变量,通讯变量,全局变量和访问变量)
The
local variables are the most frequently used in Control Builder. As
their name applies, the local variables belongs to the
local code inside a function block,
control module, diagram or program.
Control
Builder中最常使用的是逻辑变量。顾名思义,逻辑变量属于功能块、控制模块、图表或者程序的本地代码。
Communication variables are used to
communicate between applications in
the same
controller or between different controllers in the network. The
name of the communication variable must be unique within
the network. Within an aspect directory, Control Builder automatically finds
the referenced communication variables. If the communication variable is
accessed from another aspect
directory then the IP address needs to be
specified.
通讯变量用在同一控制器下,或者同一网络下不同控制器的不同应用之间通讯。通讯变量的名字必须是网络里唯一的。在aspect目录中,Control
Builder自动查找引用的通讯变量。如果其他aspect目录访问通讯变量,必须配置IP地址。
In
this example, you will declare 10 local variables and one
communication variable in the editor for Diagram2.
在这个例子中,你将在图表2中的编辑器声明10个本地变量和一个通讯变量。