SIEMENS OPC Server

TEOWK

Member
Join Date
Oct 2004
Location
Batu Pahat
Posts
38
i am using OPC automation 2.0 in VB
i have difficulty understanding the syncread function of the OPCgroup.
wat does this function returns???
wat is the command to get a value of an item??

i will appreciate a lot if someone will give me a like to a tutorial site
 
Hi,
this is snippet from "Data Access Automation Interface Standard" v2.02 by OPC Foundation. Hope this helps.
BTW, you can download this document form OPC Foundation site.
SyncRead Description
This function reads the value, quality and timestamp information for one or more items in a group.
Syntax SyncRead(Source As Integer, NumItems As Long, ServerHandles() As Long, ByRef Values() As Variant, ByRef Errors() As Long, Optional ByRef Qualities As Variant, Optional ByRef TimeStamps As Variant)
Source - The ‘data source’; OPC_DS_CACHE or OPC_DS_DEVICE
NumItems - The number of items to be read.
ServerHandles - Array of server item handles for the items to be read
Values - Array of values.
Errors - Array of Long’s indicating the success of the individual item reads. This indicates whether the read succeeded in obtaining a defined value, quality and timestamp. NOTE any FAILED error code indicates that the corresponding Value, Quality and Time stamp are UNDEFINED.
Qualities - Variant containing an Integer Array of Qualities.
TimeStamps - Variant containing a Date Array of UTC TimeStamps. If the device cannot provide a timestamp then the server will provide one.

The function runs to completion before returning. The data can be read from CACHE in which case it should be accurate to within the ‘UpdateRate’ and percent deadband of the group. The data can be read from the DEVICE in which case an actual read of the physical device is to be performed. The exact implementation of CACHE and DEVICE reads is not defined by this specification. When reading from CACHE, the data is only valid if both the group and the item are active. If either the group or the item is inactive, then the Quality will indicate out of service (OPC_QUALITY_OUT_OF_SERVICE). Refer to the discussion of the quality bits later in this document for further information. DEVICE reads are not affected by the ACTIVE state of the group or item.
 

Similar Topics

Hi all, I have a CPU315-2 PN/DP with a CP card, which is CP343-1 Lean. I have a PI server and am trying to connect to the Lean card. I can ping...
Replies
9
Views
3,683
Hi, I have attempted to move some software that runs in XP from an obsolete APC to a new windows ten APC. The new APC is running VMware and I...
Replies
3
Views
1,906
Hello everyone, We have a customer who has reinstalled an Acronis backup of his PC but in Station configurator he has a red cross on OPC Server...
Replies
2
Views
1,567
Hi all! I found interesting opc server from fastautomation.it But with lack of documentation... It is called Fast Spa OPC server for siemens s7...
Replies
0
Views
1,957
I connected s7 300 plc to pc via siemens mpi usb adapter.I used simentic manager and view the data.It is working with simetic manager.But i can...
Replies
3
Views
3,017
Back
Top Bottom