<< 点击显示目录 >> 主页 PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Variable Class > Variable Methods > Variable.Upload Method |
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();
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();
...
...
Variable Class | BR.AN.PviServices Namespace
Generated from assembly BR.AN.PviServices [8.1.0.4]