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 

Open User Communication CPU1518M

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

Joined: 26 Jul 2015
Posts: 771

PostPosted: 17/12/2021 14:19    Post subject: Open User Communication CPU1518M Reply with quote

Open User Communication between CPU runtime and C/C++ runtime of a multifunctional platform
https://support.industry.siemens.com/cs/document/109756757/
The integration of PC functionality into the controller program is often advantageous to the overall automation task. For example, compact automation solutions are implemented on a single device. In addition, complex functions and solutions for automation tasks are already available in high-level languages or are created in high-level languages.

For this purpose, for example, high-level language programs must communicate with the controller program via defined interfaces or be integrated. A connection of both worlds – high-level language and PLC – is achieved within the multifunctional platform CPU 1518(F)-4 PN/DP MFP.

The task is to integrate high-level language applications in the SIMATIC PLC.

Besides the STEP 7 blocks of the customary user program, the CPU 1518-4 PN/DP MFP can also execute functions (blocks) and applications that were programmed with C/C++. The multifunctional platform gives you to option of having C/C++ code executed synchronously during the CPU cycle (via the CPU function library). In addition, the multifunctional platform can run C/C++ applications as separate applications in parallel with the CPU runtime.
In so doing, it may be necessary to arrange for a data exchange between the C/C++ runtime and the CPU runtime. This data exchange may be used, for example, to trigger responses on the other side or to provide necessary information.

A first step of the application example shows the configuration for the CPU runtime in the TIA Portal. The creation of the C/C++ program with Eclipse is then shown. Open User Communication (OUC) is chosen here for the communication.
Open User Communication CPU1518M Open User Communication CPU1518M
The PLC program is composed of function blocks from the libraries and is parameterized appropriately. On the other side, the functions for "Establishing the connection", "Sending" and "Receiving" must be analogously implemented in the C program. In so doing, it is also recommended that methods, such as error handling, similar to the SCL template, be implemented in the C program in order to enable easier usage for the user.

Download
https://support.industry.siemens.com/cs/attachments/109756757/109756757_CPU1518MfpOuc_DOC_V20_en.pdf
https://support.industry.siemens.com/cs/attachments/109756757/109756757_CPU1518MFP_CODE_V20.zip

https://ulozto.net/tamhle/I5Sh7QRxlC8z/

[URL=https://www.file-upload.net/download-14783773/109756757_CPU1518MfpOuc_DOC_V20_en.pdf.html]109756757_CPU1518MfpOuc_DOC_V20_en.pdf[/URL]
[URL=https://www.file-upload.net/download-14783774/109756757_CPU1518MFP_CODE_V20.zip.html]109756757_CPU1518MFP_CODE_V20.zip[/URL]
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