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

ABB_800xA学习笔记248:System_800xA_Control_6.0_AC_800M_Configuration38

(2023-12-12 18:27:15)
标签:

abb

system_800xa_ac800m

配置手册

功能和组件

分类: ABBDCS
继续学习配置手册第一章功能和组件,进入第99页。
Communication between Applications Using Access Variables
使用访问变量在应用程序之间通讯
Two applications may communicate with each other via variables, but these variables must be declared as access variables (see, Access Variables on page 97). This also applies when two applications are downloaded to the same controller (see Figure 30).
两个应用程序之间可以通过变量进行通讯,但是这些变量必须声明为访问变量(见第97页访问变量)。当两个应用程序下载到同一个控制器时,这也适用。(见图30)
ABB_800xA学习笔记248:System_800xA_Control_6.0_AC_800M_Configuration38
Figure 30. Variables for communication between applications must always be declared as access variables.
图 30. 用于应用程序之间通讯的变量必须总是声明为访问变量。
When transferring access variables, it is important to use the same data type range for the client (dint), as for the server (dint).
当传输访问变量,让客户端(dint)和服务器(dint)适用相同数据类型范围很重要。
It is, however, possible to connect variables with different ranges, such as a dint variable on the server and an integer variable on the client.
但是,可以连接具有不同范围的变量,例如服务器上的 dint 变量和客户端上的整数变量。
As long as the variable values are within the range of an integer, this will work, but once the value goes outside the integer range, it will not.
只要变量值在整数范围内,这就会起作用,但一旦值超出整数范围,它就不会起作用。
If an access variable is the only user of a variable that is connected to an I/Ochannel, this variable is by default updated every second. To update this variable with another interval, create a statement that involves the variable, but is never executed.
如果访问变量是连接到 I/O 通道的变量的唯一用户,则默认情况下此变量每秒更新一次。若要使用另一个时间间隔更新此变量,请创建一个涉及该变量但从不执行的语句。
A statement that is never executed, but still updates the variable x could look like this:
从未执行但仍更新变量 x 的语句可能如下所示
if false then
x:=x;
end_if;
Connect this program to a task that executes with the desired interval. The variable is updated every time the task is executed.
将此程序连接到以所需时间间隔执行的任务。每次执行任务时,都会更新该变量。
Communication in an Application Using Global Variables
使用全局变量在应用程序中进行通信
In Programs
在程序中
Global variables are declared at application level, in the Global Variables tab of the application editor. They can be accessed directly, without any declaration in the program editor. Variables that are not declared in the declaration pane in the program editor are assumed to be global variables. A global variable can be used in any program, without having external variables declared in a program.
全局变量在应用程序级别的应用程序编辑器全局变量选项卡当中声明。可以直接访问它们,而无需在程序编辑器中进行声明。没有在程序编辑器变量声明窗格中声明的变量假定为全局变量,全局变量可以在任何程序中使用,而无需在程序中声明外部变量。

In Function Blocks or Control Modules
在功能块或者控制模块中
In order to reach a global variable from either a function block type or a control module type, each type must have either an external variable declared or a parameter. Thus, the types access the global variable value by using an external variable or a parameter to point at the global variable located in the application.
为了从功能块类型或控制模块类型访问全局变量,每个类型都必须声明一个外部变量或一个参数。因此,这些类型通过使用外部变量或参数指向位于应用程序中的全局变量来访问全局变量值。

Communication Variables
通讯变量
The communication variables are used for cyclic communication between top level diagrams, top level single control modules, and programs, in the system network that uses MMS communication protocol.
通信变量用于使用MMS通信协议的系统网络中顶层图表、顶层单个控制模块和程序之间的循环通信。

Communication variables can be used in SIL 1-2, SIL3, and Non-SIL configurations.
通讯变量可以在SIL1-2,SIL3和非SIL配置中使用
Communication variables are declared in the Program editor, top level Single Control Module editor, or top level Diagram editor. Communication variables support both inter application communication and inter controller communication in a system network.
通信变量在程序编辑器、顶级单控制模块编辑器或顶级图表编辑器中声明。通信变量支持系统网络中的应用程序间通信和控制器间通信。
Communication variables are not supported in distributed applications. If an application that contains communication variables is running in a controller, it is not possible to download the same application to another controller
分布式应用程序中不支持通讯变量。如果控制器中运行的应用程序包含通讯变量,那么它不可能下载到另一个控制器。
It is possible to change the placement of the variable port for a communication variable reference object in a diagram, from left to right and vice versa. This is needed to read data from an out-variable.
可以修改图标中引用对象通讯变量的变量端口位置,从左到右,反之亦然。这是需要从输出变量读取数据。

A communication variable can be either a communication input variable or a communication output variable.
通信变量可以是通信输入变量,也可以是通信输出变量。
If the direction of a communication variable is in in a POU, the POU can read the variable, but cannot write to the variable. If the direction of a communication variable is out in a POU, the POU can write to the variable and read the variable.
如果通信变量的方向在 POU 中,则 POU 可以读取该变量,但不能写入该变量。如果通信变量的方向在 POU 中输出,则 POU 可以写入该变量并读取该变量。
A communication variable can be either an elementary type or a structured data type. It cannot be a generic or built-in type.
通信变量可以是基本类型,也可以是结构化数据类型。它不能是泛型类型或内置类型。
If a communication variable is of structured data type, it must not contain components that are declared with the CONSTANT type qualifier and it must not contain CONSTANT components at any sub-level of the variable.
如果通讯变量是结构化数据类型,它不能包含声明为CONSTANT 类型限定符的组件,不能在变量的任何子级包含CONSTANT 组件。
Communication variables use a name based resolution to connect a communication output variable to one or several communication input variables.
通信变量使用基于名称的解析将通信输出变量连接到一个或多个通信输入变量。
In a system network with Non-SIL configuration, all communication output variables must be declared with unique names.
在具有非SIL配置的系统网络中,所有通信输出变量必须使用唯一名称进行声明。
In a system network with SIL1-2 or SIL3 configuration, all communication output variables must be declared with unique names and unique IDs
在具有 SIL1-2 或 SIL3 配置的系统网络中,所有通信输出变量都必须使用唯一名称和唯一 ID 进行声明
Communication variables cannot be connected to the channels of an I/O unit. Therefore an application code has to be entered to transfer values between communication variables and local variables, which are connected to I/O.
通信变量不能连接到 I/O 单元的通道。因此,必须输入应用程序代码才能在连接到 I/O 的通信变量和局部变量之间传输值。

0

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

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

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

新浪公司 版权所有