ctrlX PLC Engineering with PROFINET Device app connection.png

PROFINET - Read PROFINET Device App values from ctrlX PLC Engineering

sanX
New Contributor

Introduction

This article is about how to read PROFINET values from a ctrlX PLC Engineering program using the Data Layer. For this tutorial, it will be assumed that the user has correctly configured a ctrlX CORE plus X3 and receiving values via the PROFINET connection.  

Note:
If the user wants to read the PROFINET values from the Data Layer, the following steps are required:

  1. Go to "Settings"
  2. "Data Layer"
  3. Expand the tree as shown
  4. Check the realtime values

Read received data

Prerequisites
Configuration
Step 1: Open the program of the ctrlX PLC Engineering and create a new project

New project creation

Step 2: Communicate with the ctrlX CORE
  1. Right click over "Device"
  2. Press "Communication settings"Communication settings Menu access

  3. Write the ctrlX CORE's IP address
  4. Test the connection by clicking the "Run" button
  5. Close the window by pressing "Ok"ctrlX CORE Connection Test

Step 3: Add PROFINET Real time data
  1. Right click over "DataLayer_Realtime"
  2. "Edit" -> and press "Online from ctrlX CORE"Profinet device instances reading

  3. In Source, select the "profinet_device_instances", and add them to the projectProfinet device instances addition
  4. Select the scanned instances
  5. Add them to the project
  6. Close the window
    Profinet device instances addition

  7. Once the instances have been added to the project, the project tree should look as follows:Device tree
    As it can be seen, a 128byte input and output were configured in the PROFINET Device app.

    Note:
    These inputs and outputs can be configured from the PROFINET Device app as shown in the following image:PROFINET Device app configuration


Step 4: Set up additional configuration to read the updated values
  1. Double click over "byte_128_in
  2. Access the "DataLayerNode I/O Mapping" tab 
  3. In the "Always updated variables" section, select "Enabled 2 (always in bus cycle task)"
    Activate variables update in ctrlX PLC Engineering program

Step 5:  Read values
  1. Login to generate code and transfer the PLC program to the ctrlX CORE
  2. Check the updated valuesValue reading
Related Links
sanX
sanX
Hi, I am Nicolas from the DCEM Application Team. I am temporary not available, if you have any questions, do not hesitate to contact LunatiX.
1 Comment
Must Read
Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist