Variable Methods

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Variable Class >

Variable Methods

BR.AN.PviServices .NET


The methods of the Variable class are listed below. For a complete list of Variable class members, see the Variable Members topic.

Public Instance Methods

pubmethodChangeConnection

使用这个成员函数来改变对象的连接。当该函数改变了连接时,ConnectionChanged事件将被触发。

pubmethodConnect

重载。创建此实例到其processvariable的连接。

pubmethodDisconnect

重载。在plc上断开其变量的这个实例的连接。

pubmethodFromXmlTextReader

从xml配置文件中读取设备配置并更新baseObject。

pubmethodGetMemberArrayLength

Call this member to get the array length of this instance.

pubmethodGetMemberDataSize

Call this member to get the size of the datatype of this instance.

pubmethodGetMemberDataType

Call this member to get the type code of this instance.

pubmethodReadExtendedTypeInfo

获取扩展类型信息(派生、枚举、比特-字符串和初始值)。

pubmethodReadMemberVariables

从xml配置文件中读取成员变量并更新var Object。验证ConfigurationFlags.VariableMembers是否被设置。如果服务对象被连接,这个标志将被移除。

pubmethodReadValue

重载。读取processvariable的实际值。

pubmethodReadValueEx

读取processvariable的实际值。

pubmethodRemove

该方法从PviServices层次结构中删除实例引用。

pubmethodSetTypeInfo

重载。帮助初始化数据类型信息。

pubmethodUpload

如果实例的数据类型等于DataType.Structure,此方法将从plc上传此实例的所有成员和子成员。

pubmethodWriteScaling

这个函数将实际定义的缩放点写到PLC的变量中。响应时将触发事件PropertyChanged(... Action.VariableScalingChange)

pubmethodWriteValue

重载。写入实例的实际值。

See Also

Variable Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]

Topics in this section:

Variable.ChangeConnection Method

Variable.Connect Method

Variable.Disconnect Method

Variable.FromXmlTextReader Method

Variable.GetMemberArrayLength Method

Variable.GetMemberDataSize Method

Variable.GetMemberDataType Method

Variable.ReadExtendedTypeInfo Method

Variable.ReadMemberVariables Method

Variable.ReadValue Method

Variable.ReadValueEx Method

Variable.Remove Method

Variable.SetTypeInfo Method

Variable.Upload Method

Variable.WriteScaling Method

Variable.WriteValue Method