- Getting started
- Creating projects
- Graphic objects
- Predefined graphic objects
- Object and variable references
- Extending projects
- NetLogic
- Tutorials
- Dynamic links tutorial
- Graphic objects tutorial
- NetLogic tutorial
- OPC UA tutorial
Read or write field variables
Use C# APIs to read or write single variables or sets of variables.
The APIs are supplied by the
IUAVariable
, InformationModel
and IUANode
classes.You can read or write multiple variables when:
- Reading or writing an entire set of variables before proceeding with other operations. This approach is useful when writing recipes.
- Limiting the number of communications with the field to enhance performance.
TIP:
The methods that read or write field variables generate an exception when an error in execution occurs. You can capture and manage the exceptions by using the
try
and catch
instructions.Provide Feedback