plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OPC DA .NET Clients with C# for the SIMATIC NET OPC Server

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
geller
Junior
Junior


Joined: 25 Apr 2017
Posts: 17

PostPosted: 28/06/2017 15:07    Post subject: OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET Reply with quote

OPC Communication via the SEND/RECEIVE Protocol with a Visual Basic .NET OPC Client
https://support.industry.siemens.com/cs/document/21523291/
The following application shows you how to transfer process data to a PG/PC in a heterogeneous automation system (e.g. SIMATIC S7 together with SIMATIC S5).
For the solution of the task, the SEND/RECEIVE protocol is used here (S5-compatible communication). The communication between SIMATIC NET OPC server and automation stations occurs via this protocol. The OPC client is realized with Microsoft Visual Basic .NET.
Tasks
Dealing with the communication services of the SEND/RECEIVE protocol with regards to program technology: for enabling exchange of larger data volumes between PC and mixed automation systems (i.e. SIMATIC S5 and SIMATICT S7). In detail, these are:
Block services (AG_SEND / AG_RECEIVE)
Variable services (FETCH / WRITE)
STEP7 side configuration of the SEND/RECEIVE protocol when using Industrial Ethernet
Generating an OPC clients with graphical user interface in Visual Basic .NET
Demonstrating the handling of the Data Access interface of the OPC server via the Custom Interface, and the integrating process into .NET-Framework using the OPC DA RC-Wrapper
Displaying the procedure for implementing an individually programmed acknowledgement mechanism (additional level 7 protocol).

Functional structure
The following figure shows the interaction of the automation components, which are described in this example, in principle.
OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET
Hardware configuration

Here you see the hardware setup realized for this application as well as the software to be installed for the components.

OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET

https://support.industry.siemens.com/cs/attachments/21523291/21523291_OPC_SR_Introduction_DOKU_v10_e.pdf
https://support.industry.siemens.com/cs/attachments/21523291/21523291_OPC_SR_Extension_DOKU_v10_e.pdf
https://support.industry.siemens.com/cs/attachments/21523291/21523291_OPC_SR_Demonstration_DOKU_v10_e.pdf
STEP 7 Example Project
Hardware configuration, network configuration, S7 program
https://support.industry.siemens.com/cs/attachments/21523291/21523291_OPC_SR_STEP7_v10.zip
Code - OPC client
Visualization program and Visual Basic .NET source code
https://support.industry.siemens.com/cs/attachments/21523291/21523291_OPC_SR_CODE_v10.zip
Back to top
View user's profile Send private message
geller
Junior
Junior


Joined: 25 Apr 2017
Posts: 17

PostPosted: 28/06/2017 15:15    Post subject: SIMATIC NET OPC Server External Block Management Reply with quote

External Block Management with S7 Block Management Services of the SIMATIC NET OPC Server
https://support.industry.siemens.com/cs/document/21495347/
The following application shows how the program and data blocks of a program running on an S7 controller can be stored on a PC and be downloaded again into the S7 controller, using a Windows program.
The S7 block management services are thereby controlled via the OPC DA interface of the SIMATIC NET OPC-server and transferred with an S7 connection.

OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET
Hardware configuration

Here you see the hardware setup realized for this application as well as the software to be installed for the components.

OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET

https://support.industry.siemens.com/cs/attachments/21495347/21495347_OPC_BauDi_DOKU_v10_e.pdf
STEP 7 Projekt (Hardware configuration, network configuration, STEP 7 program) and Visual Basic .NET program (executable files and source code)
https://support.industry.siemens.com/cs/attachments/21495347/21495347_OPC_BauDi_CODE_v10.zip
Back to top
View user's profile Send private message
grig100
Member 3
Member 3
grig100

Joined: 01 Jan 2015
Posts: 752

PostPosted: 06/07/2018 15:32    Post subject: OPC UA .NET Client with C# for the SIMATIC NET OPC UA Server Reply with quote

OPC UA .NET Client with C# for the SIMATIC NET OPC UA Server
https://support.industry.siemens.com/cs/document/42014088/
Using the SIMATIC NET OPC UA server as gateway, you can access your controllers via OPC UA. OPC UA enables inter-manufacturer communication as well as easy connection to the MES / ERP level.
To realize a data link between a controller and a PC system, standardized mechanisms are preferably used to ensure that such a data exchange remains independent of the used bus system or protocol or even manufacturer. OPC UA combines this functionality and additionally offers authentication and encrypted data transmission and advanced diagnostic information. In this example, the OPC UA Server is to be considered as an information server. The core task of this example is secure access to process data via the new OPC UA interface of the SIMATIC NET OPC Server.

The OPC UA Client in the PC station is realized at two levels of complexity. A client whose estetică is very simple (Simple OPC UA Client) shows you all basic functions and introduces you to OPC UA. A more complex client (OPC UA .NET Client) with a convenient user interface demonstrates professional OPC UA handling with reusable classes realized in .NET in the C# programming language.

The figure below shows the hardware configuration of this example:
OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET
Picture 01
The following scenarios are explained in terms of software in both sample clients:

Logging on to, logging off from and authentication on the OPC UA Server
Browsing the namespace of variables
Reading, writing and monitoring variables
Reading and writing when using S7 block services
Using absolute and symbolic addressing
Easy error handling
The more complex OPC UA Client example additionally includes field-proven classes and controls in .NET, intended to facilitate programming of individual OPC UA Clients. For this purpose, the complex OPC UA .NET Client SDK methods are encapsulated in a client API that is easier to use.
Client user interfaces
Simple OPC UA Client user interface:
OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET
Picture 02

Advanced OPC UA Client user interface:
OPC DA .NET Clients with C# for the SIMATIC NET OPC Server OPC Comm SEND/RECEIVE Protocol with Visual Basic .NET

Downloads
https://support.industry.siemens.com/cs/attachments/42014088/42014088_OPC_UAClient_DOKU_V12_en.pdf
https://support.industry.siemens.com/cs/attachments/42014088/42014088_OPC_UAClient_CODE_V12.zip

Further Information
The following documents additionally deal with OPC-Client programming:
https://support.industry.siemens.com/cs/document/26548467/individual-programmed-signaling-system-based-on-the-simatic-net-opc-alarm-and-event-opc-ua-server
https://support.industry.siemens.com/cs/document/21523291/opc-communication-via-the-send-receive-protocol-with-a-visual-basic-.net-opc-client
https://support.industry.siemens.com/cs/document/21402169/using-the-xml-da-interface-of-the-simatic-net-opc-server-with-visual-basic-.net?lc=en-us
https://support.industry.siemens.com/cs/document/21495347/external-block-management-with-s7-block-management-services-of-the-simatic-net-opc-server
https://support.industry.siemens.com/cs/document/21447513/data-acquisition-and-storage-with-an-opc-client-in-c-and-the-simatic-net-.net-opc-client-api
https://support.industry.siemens.com/cs/document/21043779/programming-of-opc-da-.net-clients-with-c-for-the-simatic-net-opc-server- (com-dcom)
https://support.industry.siemens.com/cs/document/21040390/distributed-automation-with-the-pc-the-simatic-net-opc-server-as-profibus-dp-slave
https://support.industry.siemens.com/cs/document/21045282/controlling-with-the-pc-the-simatic-net-opc-inproc-server-as-dp-master
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro