Your SICK ID gives you access to our extensive range of services. This includes direct online orders, price and availability checks, and access to our digital services.
How to read the process data of DT35 with an Omron PLC and a SIG200 by using Sysmac Studio
Article No: KA-09247
Version: 1.0
Subject to change without notice
How to read the process data of DT35 with an Omron PLC and a SIG200 by using Sysmac Studio
Related Products
SIG200-0A0512200 SENSOR INTEGR.GATE
DT35
SIG200 EtherNet/IP
SIG200
Table of Contents
To readout the process data in a nice way, you must create the function block for your DT35 with our function block factory (https://fbf.cloud.sick.com/).
With our function block you have the process data in a way where you can use the values direct, without split the bits and bytes.
The first step is to add the library to the project
This has to be done via Project -> Library -> Show References.
Klick the button + to browser for the downloaded function block.
You have to included the the IOLBase lib which you find in the folder
\Base Lib\IO-Link Base Sysmac Studio V1 V1_4_0
And the library SICK_IOL_DT35 which you find in the folder
\Library
Klick on the button OK to finish this process.
Now you will find the function blocks in your toolbox on the right side.
Now you have to define to Globale Variables.
The first variable is to move the 2 Byte raw process data into which we get from the input assembly from the SIG200. In this case we call it “ary_DT35_in” it is an Array of Byte with the size of 2.
And the second variable is the structure of the process data how we would like it at the end.
In this case “ProcessData_DT35” with Data type SICK_IOL_DT35\ST_SICK_PD_DT35
Next step is to include the function blocks into the program.
You have to move the 2 byte from the input assembly into the ary_DT35_in variable.
For this you must use the Array Move (AryMove) function from Sysmac studio
“In” is the input assembly from the SIG200 with the process data from Port 1. The IO-Link data for port one starts from Byte 8, all other ports you will find in the operating instruction.
AryOut is the 2 Byte array which we defined bevor to move the process data into. The size is in this case 2, this is the process data size from the DT35.
After moving the 2 Byte you have to insert the parser function in the next rung.
PDInput is the array with the 2 Byte moved process data.
PDMode is 3, this is the distance value from the DT35. The DT35 has different process data modes, you will find it in the operating instruction from the DT35.
The Result are the process data which we need, it has the structure of the process data from the DT35.
Keywords: dt35, process data, sysmac studio, sig200, function block, omron, EIP, Ethernet/IP