beckhoff TS6120 — 6.2.5 OPC Client (Diagnostic & Recipe)

Configuration In general the opc-server is configured by the OPC-XML configuration file to find the detailed symbol information for each ADS device. The option 7 is designed to import all variables defined in TPY files OPC DA : Limitation today : Only global variables (Strings / ints / Bools..) are imported. Today no structures are imported. OPC XMLDA : No limitation The option 8 is designed to import just a subset of PLC variables marked in the PLC-code to be available for OPC.. OPC DA : Limitation today : Only global variables (Strings / ints / Bools..) are imported. Today no structures are imported. OPC XML :

No limitation In this sample the PLC variable "bMemAlarm"1 will not be available via OPC-Server. The variable "iReadOnly" is marked to be an OPC-variable and is available for OPC-clients. Additional the OPC-Item Property 5 (defined by OPC-Foundation) is set to "1" which means, the opc-server will handle this variable as "Read-Only" . OPC-Server will take care, that OPC-clients can not write to that PLC-variable. Extra comments in PLC-IEC1131 Editor will modify the configuration of opc-server: 6.2.5 OPC Client (Diagnostic & Recipe) This TcOpcClient has been developed to assist in the test and development of our OPC Data Access 1.0 and 2.0 Servers.

This text assumes that you are using Windows 95/98 or Windows 2000/NT 4.0 (Service Pack 4 recommended). The TcOpcClient supports both local and remote OPC server connections. Remote connections are handled through the operating system's DCOM interface. Windows 95 users should note that Microsoft provides a special update patch that fixes problems with the original COM/OLE logic that shipped with the operating system. In addition, this patch provides the DCOM support necessary for remote server access that was not implemented in the operating system. Client Preparation Begin by creating a server connection [ } 49] . A server connection is used to connect to an OPC server.

Once this connection is made, a group [ } 52] can be added to the connection with varying properties such as update rate, dead band, and time bias. Finally, items [ } 54] can be added to the individual groups. These items have properties such as an initial active state, data type and access path. Active items will automatically receive data change notifications and will display its current value and quality in the item view. TS6120 47 Version: 1.2.0