SICK Banner for HowTo.png

SICK Function Block Factory for Data Parsing

JulianWorld
Long-established Member

Using the Parser Function the Function Block Factory from SICK for easy data interpretation of IO-Link Sensors with in the PLC App on the ctrlX CORE using Ethercat IO-Link Master SIG350. 

Introduction  

IO Link data could be difficult to parse if you do not have an IODD Interpreter on board. For this case we want to show you a very efficient way to solve this issue.  

This instruction shows how to use the IO-Link Parser from the SICK Function Block Factory within the ctrlX CORE.   

Requirements 

The instruction has been created based on  

  • ctrlX WORKS V1.60 
  • ctrlX CORE EtherCat Master App V1.60 
  • ctrlX PLC Engineering V1.60 

  and exemplarily with following devices from SICK  

  • SICK Sensor Integration Gateway // SIG350-0006AP100 
  • SICK Condition-Monitoring-Sensor Multi Physics Box // MPB10-VS00VSIQ00 

Please follow this Tutorial from WAGO for the integration of the SIG350 into the ctrlX CORE

The following procedure will increase your speed of the workflow because you do not have to parse the data manually. As you can see in the IO-Link Datasheet example below this could be a lot of work to parse all the data (20 bytes)  

IO-Link Datasheet exampleIO-Link Datasheet example

Step-by-Step guide

In this documentation I will show you how to parse the data fast and easy 

Step 1 - Install the library  

After creating the library on cloud.sick.com (you need to register of course) in the function block factory with the concerning IODD for the device you will receive the file. First install the library. 

Library respositoryLibrary respository

Press Install on the right-hand side.

Install libraryInstall library

Choose the following two libraries in the folder which you have received. 

Library 1Library 1

Library 2Library 2

Step 2 - Implement those libraries into your project with the following steps

Double click on Library Manager.

Library ManagerLibrary Manager

Press Add Library

 Add LibraryAdd Library

And choose the two libraries which we have installed beforehand. 

Library 1 and 2 addedLibrary 1 and 2 added

Step 3 - Implementation of the library in the code.

Library implementationLibrary implementation

Connection between the variable and the Data layer.

Connection between variable and Data layerConnection between variable and Data layer

In this picture you see the name of the function as well the name of the data structure we will need.  

Function and data nameFunction and data name

A function is not needed to be declared, because in the function there will be no data stored over one cycle. The data structure is necessary to be declared.  

It looks like this. 

Declared data structure.png

Now we come to one of the last steps, calling the function.

Calling the functionCalling the function

All together it looks like this.

Final ResultFinal Result

After translation and download you will see the correct parsed data within the data structure.

 Parsed dataParsed data

 

Related Links 

 

The Company 

From factory automation to logistics automation and process automation, SICK’s sensor solutions are keeping industry moving. As a technology and market leader, SICK provides sensor intelligence and application solutions that create the perfect basis for controlling processes securely and efficiently, protecting individuals from accidents, and preventing damage to the environment. 

SICK Logo.png

 

1 Comment
hundch
Member

Dear all,

enclosed a link how to use the Function Block Factory. 

https://www.youtube.com/watch?v=7ZIfmRT9aog&ab_channel=SICKSensorIntelligence.

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