Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

collect data ctrlX drives

IIoT: Collect Data from ctrlX Drive and Indradrive independently from Master Communication

MauroRiboniMX
Contributor
Disclaimer

The goal of this guide is to enable anyone having a new or an old machine with indradrive and ctrlX drive to collect easily the data without relying on the master communication. This enables AI and Data Mining possibilities without overload and modify the standard OT processes.

ctrX drive automation Harvesting

 

Requirements

Needed devices:

  • ctrlX core
  • ctrlX Drive or Indradrive (FW>20)
  • Drive connect APP
  • NodeRed APP
STEP1: Possible Architectures

To achieve the functionlaity we only need the ctrlX CORE in the same subnet of the drives. 

Case 1: Third party controller and ctrlX CORE in the same LAN

This architecture works with all the fieldbuses except ethercat.

 

ctrlX drives profinet ethernet ip datamining

Fig. 1.: Third Part controller Simple connection

Case 2: ctrlX CORE as Ethercat master with EoE.

Simplest case: ctrlX CORE is the master and we have correctly configured an EoE tunnel.

ctrlX core eoe drives datamining

Fig. 2.: ctrlX CORE as a master Ethercat and EoE configured

 

Case 3: ctrlX CORE reaches the drives throught a gateway (Ethercat EOE tunnel or MLC tunnel)

ctrlX CORE connects to the axis through a third part controller that acts like a gateway.

EOE datamining ctrlx drives

Fig. 3.: Third Part controller as a Gateway

The Setup in this case is not automatic. We need first to tell to ctrlX core wich is the indradrive or ctrlXDRIVE ip address. Let's imagine to have a ctrlXCORE or an XM controller as master (it's the same) with address 192.168.1.25. The master communication network has ip address like 172.31.254.X so the drives will be in this range. The first step is to set the right routing rule on the core. assuming the statment made before here we have the resulting rule to be set on the XF10 network card. 

MauroRiboniMX_0-1679666989293.png

Fig. 4.: Routing Rule

The second step is also not automatic, we need to tell to the DCA app where are the drives. We need to make a rest request for any drive connected with his IP address. It's possible also using the datalayer node.

MauroRiboniMX_1-1679667374847.png

Fig. 5.: NodeRed add device example

The set payload and headers function has the following content:

MauroRiboniMX_2-1679667599967.png

Fig. 6.: NodeRed add device example 2

STEP2: Install the Drive Connect App and setup Network

What we need is: 

  • The CORE in the same subnet of the drives (with either EoE or an ethernet port)
  • The DriveConnect app installed
  • ctrlX core in Operation Mode

If these three conditions are satisfied whe should find in the Datalayer -> devices -> drives all the axis with all the available parameters listed as shown in figure 5. 

 

parameter ctrlX drive

Fig. 4.: List of devices with parameters. 

 

STEP3: Collect data from the Data Layer with NodeRed

We just need to install NodeRed, add a couple of nodes and we have the acces to any parameter of the drive. Figure 5 shows How simple is to collect the needed data to monitor the power consumption and show the diagnostic message of the drive. The demo flow is attached below.

parameter ctrlX read drive

Fig. 5.: NodeRed demo code

 

 

ctrlx node-red grafana

Fig. 6.: Demo Dashboard Result 

Next Steps

Now that we're able to access the drive data we can monitor any kind of machine without interacting with the master. The data can then be stored inside an InfluxDB database and displayed with Grafana!! Stay tuned!!

 

 

 

MauroRiboniMX
MauroRiboniMX
Hello, I am Mauro a ctrlX DEVELOPR at night and a̶n̶ A̶p̶p̶l̶i̶c̶a̶t̶i̶o̶n̶ E̶n̶g̶i̶n̶e̶e̶r̶ Product Manager during the day 😎 . Ask me anything about ctrlX AUTOMATION but my best topics are IoT, AI, SDK and Communication!
3 Comments
Kookoolinoo
Established Member

Hi, probably wrong zip attached 🙄

MauroRiboniMX
Contributor

You're right! i fix the demo.zip the next week!

MauroRiboniMX
Contributor

Kookoolinoo example updated

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