Setup guide

Chapter 3 Driver and Protocol Objects
©
Automationdirect.com 3-77 Object Reference Manual
The data members for the OPC Client depend on your OPC server. To use
one of the data members from your server, enter the data member directly
into an expression or URL field.
If the OPC server permits browsing, you can use data members as you
would with any other Lookout
Direct
driver object. If you cannot browse
your OPC server, enter the item manually in the form acceptable to your
OPC server, as in the following example:
OPCclient1.'device\folder\itemName'
Note
Notice the use of single quotes. Using a single quote around a component of a path
allows the use of any character in that path, not just the normally allowed characters.
If all your items use the same access path, use the Default Access Path
option. If you need to specify a different access path, use a period and
tilde (.~) to denote the first element of the path, as in the following
example:
OPCclient1.'device\itemN'.'~accesspath'
Notice that the access path must be a separate component. Single quotes
denote a string as being a single component.
If an item name or access path already contains a tilde, you must enter one
additional tilde to act as an escape character for that tilde, and a second
additional tilde to denote an access path (for example, if the access path is
~COM1
, enter
~~~COM1
).
Examples
OPCclient1.'4:0'.'~Modbus Demo Box'
The access path is Modbus Demo Box and the OPC item ID is 4:0.
OPCclient1.'4:0'
PollDevice logical no yes When transitioned from FALSE to
TRUE, the object polls the server.
Update logical yes no Pulses high and low when the OPC
server updates Lookout
Direct
or
Lookout
Direct
successfully polls the
server.
Table 3-15. OPCClient Data Members (Continued)
Data Member Type Read Write Description