The AccessPath property allows you to specify the common character portion of the tag name, thereby omitting the first half of the tag path string in the following methods.
•Methods and properties where AccessPath is valid
ReadVal/ReadVals Method
WriteVal/WriteVals Method
Value Property
For example, if you set the AccessPath property to “U01.F01.”, the previous way of calling it would be ReadVal(“U01.F01.T01”,xxx), but now it can be abbreviated to ReadVal (“T01”, xxx).
example)
AxEng1.AccessPath = “U01.F01.”
AxEng1.ReadVal “T01”, a
AxEng1.WriteTag “T01”, a
* Internally, it is processed as AccessPath + “T01”, i.e. “U01.F01.T01”.
|