By specifying the common character portion of the tag name in the AccessPath property, you can omit the first half of the tag path string in the following methods.
・Methods where AccessPath is valid
AddTag/AddTags/ActiveTag/ActiveTags/DelTag/DelTags/ReadVal/ReadVals/WriteVal/WriteVals
For example, if you set the AccessPath property to “U01.F01.”, the previous call, AddTag(“U01.F01.T01”, xxx), can now be abbreviated to AddTag(“T01”, xxx).
example)
AxIPLink1.AccessPath = “U01.F01.”
AxIPLink1.AddTag “T01”, TRUE
AxIPLink1.ReadVal “T01”, a
AxIPLink1.WriteVal “T01”, a
AxIPLink1.DelTag “T01”
* Internally, it is processed as AccessPath + “T01”, i.e. “U01.F01.T01”.
You can also directly specify the PLC address by using the dynamic tag format, "U01.F01.#".
example)
AxIPLink1.AccessPath = “U01.F01.#”
AxIPLink1.AddTag “D0000”, TRUE
…
* Internally, it is processed as AccessPath + “T01”, i.e. “U01.F01.#D0000”.
|