OPC Read
Read data from OPC DA server
Libraries:
Industrial Communication
Toolbox
Description
The OPC Read block reads data from one or more items on an OPC Data Access server. The read operation takes place synchronously (from the cache or from the device) or asynchronously (from the device).
The block outputs the values (V
) of the requested items in the first
output, and optionally outputs the quality IDs (Q
) and the time stamps
(T
) associated with each data value in separate outputs. The time stamp
can be output as a serial date number (real-world time), or as the number of seconds from the
start of the simulation (simulation time).
The V,Q,T triple available at the output ports is the last known data for each of the items read by the block. Use the time stamp output to determine when a sample last changed.
Note
You must have an OPC Configuration block in your model to use the OPC Read block. You cannot open the OPC Read parameters dialog without first including an OPC Configuration block in the model.
Examples
Ports
Output
Parameters
Version History
Introduced before R2006a