Hi Welcome to Ramco TV.
My name is Brad Vorrie and I am one of the automation specialists at Ramco.
In a previous video we discussed the advantages of IO link
and why you should consider using it in your next application.
Today, I am going to walk you through the process
of connecting a Turck IO-link block and an IO-Link capable Banner Q4X
to your Allen Bradley PLC over Ethernet IP.
Let's take a look.
♪♪♪
Connecting your Q4X and IO Link block
to your AB PLC is fairly easy as long as you follow the proper steps.
The first and most important step
is to set the IP address of your Turck Block.
Make sure you set the DIP switches
on the block to a STATIC IP address.
With the power off,
rotate the 3 rotary dials to the last octet of your PLC.
For example, mine is set on 76.
Please note, once you change these three dials,
and cycle power,
the block will change to 192.168.1.76.
If your PLC is on another subnet,
for example 192.168.100.76
you will need to use the Turck service tool
to change the first three octets to match the IP address of your PLC.
This software is a free download available from Turck's website.
Next, we need to get the IO block talking to your PLC.
Using the EDS import tool,
import the EDS file for your specific IO Block.
In the description below,
you can find a link to download the available EDS files for the IO Link Blocks.
Once the EDS files have been installed,
go to your Studio 5000 software
and right click on Ethernet and new module.
Then choose the Turck block.
Don't forget to enter in the IP address of your block.
Next you need to download the prebuilt AOIs
that can be imported into Studio 5000.
Be sure to download the Q4X Parameter Data,
Q4X Process Data, and Turck IO Link Master AOI.
Follow the installation instructions included with each of these AOIs.
A few gotcha's to be aware of as you set up this connection.
In your PLC, whenever a port number is specified as bit level,
remember the port numbers start with 0,
so the port number you enter may be off by 1.
For example,
my sensor is connected to port 7 on the Turck block,
so I am specifying bit 6 for Port Controlled,
Port Active,
Port Read Request,
Write Request,
RW Complete,
Port Device Read.
in the Q4X Parameter Data function block
the port controlled is an integer value,
not a bit value,
so you put in the actual port number you’re controlling.
In my example I entered in 7 for port 7 on the Turck block.
Your program should now contain these four function blocks.
Now let's go Online.
After the PLC goes into run mode
you should be able to look at Q4X Read Data parameters
and see values like serial number, vendor ID, and device ID.
If these values are showing actual values
your PLC should be communicating with your Q4X.
Now let's look at write data.
This is the data structure that we specified for the Q4X
Parameter Data function block.
These tags contain all of the parameters available to write to the Q4X.
So, for example
if I wanted to change the set point at which the Q4X detects an object
I would write that value right here.
This value is in .1 mm increments.
Also, if I want to change the sensor to 2-point teach mode,
enter in a value of 128 in the PLC Tag.
Just follow the descriptions for each tag.
To save these values to the sensor, go to the IO Link Master Control Tag
and enter in a 1 in the port the Q4X is connected to.
Remember this is bit level,
so with my sensor connected to port 7 I will turn on bit 6.
To verify that the sensor accepted the values,
go to the Q4X Archive data structure to verify the values changed.
Finally, if you want to view the actual distance being displayed on the sensor
or the status of Output 1 and 2,
look at the Q4X Process Data tag.
These values are implicit so they are always being updated.
As you can see having a sensor on IO link is extremely powerful.
Not only can you access live data from your Q4X
but you can also dynamically change anything on the fly.
If you would like to learn more about IO Link technology
visit www.ramcoi.com
If you would like to see a live demo let us know we would be happy to bring it by.
Thanks for watching and be safe out there.