CodeShepherd
![Community Moderator Community Moderator](/i/rank_icons/moderator.gif)
Community Moderator
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
07-10-2020
11:23 AM
Overview
This guide shows how to set up a project for the ctrlX PLC that is able to publish variables to the ctrlX Data Layer. This can be used for a real ctrlX CORE or also a ctrlX COREvirtual.
Preparation
- A real or a ctrlX COREvirtual control has to be connected to the network.
- Installation of the Rexroth PLC app on the crtlX CORE is expected.
- Installation of ctrlX PLC Engineering (part of ctrlX WORKS) expected. Please have a look at the corresponding documentation or video to see how to do this.
Set up a ctrlX PLC project
![](https://i.ytimg.com/vi/p5VcL3v403I/hqdefault.jpg)
YOUTUBE Loading the video requires your consent. If you agree by clicking on the Play icon, the video will load and data will be transmitted to Google as well as information will be accessed and stored by Google on your device. Google may be able to link these data or information with existing data.
- Open the web based engineering of the ctrlX CORE via your network folder of Microsoft Windows, our tool ctrlX WORKS or directly by inserting the IP in a web browser and login.
connect and login
- Open the ctrlX PLC Engineering via the "Automation" bar by clicking on the corresponding link.
- When opened this way and no previous PLC project is found on the ctrlX CORE a basic standard project will automatically be created and you got asked where to save it on your PC and if the source code should be synchronized to your control.
- To be able to publish variables to the data layer or also OPC UA a symbol configuration have to be availbe in the project. All variables of your application can be added as symbols e.g. out of a global variable list.
Add GVL and symblo configuration
- Insert the variables that should be published to the GVL and delete the pre-insert first line.
In this example Integer "i" and Boolean "bStart". Also structures could be chosen. - Set a small example program in the "PLC_PRG" where “i” is count up as long as “bStart” is true.
GVL and example program
- There are two ways to add these variables now to the symbol configuration:
- First is to execute a “Build” and tick the variables you'd like.
- Alternatively, add a pragma to the global variable list that causes all variables in this list to be published.
Configure symbols or GVL
- The communication settings had been set automatically so it is possible to directly log in to the control. To see the settings double click on the target on the left hand side.
- A security warning will be displayed because the certificate for the communication is self-signed and is not provided by an official certificate authority. Please go on login with your user and password available on the control and download the created project.
Login and download
- At last, the application is started via the play button in the top menu bar or alternatively via right clicking on "Application".
Run application
- Now variables can be manipulated in your program PLC_PRG. E.g. double click on the value of bStart and then press "CTRL + F7" or alternatively use the "Debug" menu bar.
- Now "i" is rising in the cycle tact of your program.
- To check the data in the ctrlX Data Layer open the viewer via the link in the "System" bar in the web interface of your ctlX CORE. There the variables are visible and also changeable. Please refresh the view with the small button on right if the values are static.
Related links
CodeShepherd
Technical sales support from Bosch Rexroth
3 Comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.