Variable.Upload Method

<< 点击显示目录 >>

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

Variable.Upload Method

BR.AN.PviServices .NET


If instances datatype equals DataType.Structure, this method uploads all members and submembers of this instance from the plc.

[Visual Basic]

Public Overridable Sub Upload()

[C#]

public virtual void Upload();

Example

Variable var = new Variable(cpuObj,"structVar");
var.Connect(); // Upload is called automatically when Connected event occurs
// Accessing variable member after upload
Variable element = var["item1"];
element.Connect();
...
...
// Accessing a submember
Variable subElement = var["stItem.subItem1"];
subElement.Connect();
...
...

See Also

Variable Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]