ABB_800xA学习笔记283:System_800xA_Control_6.0_AC_800M_Configuration73

标签:
abbsystem_800xa_ac800m配置手册功能和组件 |
分类: ABBDCS |
继续学习ABB
800xA配置手册第一章功能和组件,进入第161页。
Protect MySupervision Type
Example
保护
MySupervision 类型示例
The
following example will show the impact that the Hidden and
Protected attributes may have on a self-defined type
called MySupervision_type, which is
part of the
library MyTankLib.
下面的例子将展示一个叫做 MySupervision_type的自定义类型的隐藏和保护属性的效果,该类型是MyTankLib库一部分。
A
Simplified Library Solution
简化库解决方案
The
library MyTankLib contains three different types,
MyMotor_type, MySupervision_type and MyTank_type. The Motor10
object is located inside MyTank_type, see Figure 59. As you can see,
Motor10 has inherited its
definition from the type MyMotor_type.
库 MyTankLib 包含三个不同的类型, MyMotor_type, MySupervision_type
和 MyTank_type. Motor 10对象位于 MyTank_type内部,见图59. 如你所见,Motor
10从MyMotor_type类型继承了其定义。
Figure 59. A Library structure
before any protection attributes have been
set. (Left)
Project Explorer tree. (Right) Object Type Structure in Plant
Explorer
图
59. 在做保护属性之前的库结构。(左)项目资源管理器树。(右)工厂资源管理器的对象类型结构。
Protect MySupervision Using the Hidden
Attribute
使用隐藏属性保护MySupervision
MyMotor_type contains a SpeedSupervision object
(and a Feedback error object). The SpeedSupervision object is of the type
MySupervision_type. Both MyMotor_type and the MyTank_type therefore
depend on MySupervision_type.
To hide the
code inside the MySupervision_type, we must set the attribute
Hidden on MySupervision_type, see Figure
60.
MyMotor_type包含SpeedSupervision 对象(和反馈错误对象)。 SpeedSupervision 对象是 MySupervision_type类型。MyMotor_type 和 MyTank_type 依赖于 MySupervision_type。也要隐藏MySupervision_type内部代码,必须设置MySupervision_type隐藏属性,见图60.
Figure 60. MySupervision_type is not
shown in Plant Explorer after setting the hidden attribute. (Left)
Project Explorer with SpeedSupervision still visible. (Right)
Object Type Structure where both MySupervision_type and
SpeedSupervision are hidden.
图 60.
设置隐藏属性后,在工厂浏览器中不显示MySupervision_type 。(左)项目视图中SpeedSupervision 依然显示。(右)对象类型结构中MySupervision_type
和 SpeedSupervision都隐藏。
After Hidden is set on the
Supervision type, it disappears from both the
Project Explorer
and the Plant Explorer. However, MySupervision type can still be
traced via
calls from the SpeedSupervision object inside the motor type to our
hidden supervision type in Project Explorer, see
Figure 61.
在Supervision 设置隐藏之后,它从项目资源管理器和工厂资源管理器中消失了。然而,MySupervision
类型仍可以通过调用从 motor 类型内部的 SpeedSupervision 对象到 Project Explorer
中的隐藏监督类型来跟踪,参见图 61。
Figure 61. The hidden MySupervision
type can still be traced via the SpeedSupervision object in both
the motor type and the motor object.
图 61. 隐藏的
MySupervision 类型仍可通过电机类型和电机对象中的 SpeedSupervision 对象进行跟踪