This video will go through the setup and configuration of IO-link communication with a
G6 and IO-link master from Turk and a C6 Smart PLC. To start, we will go through the setup that we have
here. First, is the G6 drive which is a 230 volt single phase drive connected to an induction motor.
The IO-link interface is the x4b port which is connected to the
Turk IO-link master. We have three connections. One of them is the power supply, the second
is the IO-link interface. We have four different ports for IO-link. However, we are only using
channel 0. And lastly, we have the EtherCat interface, which is connected directly to the Smart.
And this is the C6 Smart PLC, which we will be using to connect to the IO-link master.
We have two connections to the PLC. The LAN x6 port is for programming, and the BUS x5 port is
the EtherCat master, which is connected to the Turk IO-link block. And lastly, we're going to
be using COMBIVIS Studio 6, which is the IDE for developing PLC projects and configuring the drives.
So let's get started. Starting out I have a shell project that I already created. We're
going to go through a few steps just to get the communication set up. Starting with the drive.
The drive in the device tree is the node 1 G6 LG device. To open that I'm just going to
double click here in the navigator tree. The first step is going to be to configure the process data.
We can use a startup wizard to do that. If you double click on it you can see that we have
four bytes of data in and out that we'd like to use. To set up the process data we can select the
G6 parameters and we want to set up the slots for the commands that we're going to be sending down
to the drive. So we have the control word and the set speed value. To drag them in you just select it.
Drag it over to the startup wizard again
right into the pdl slots that we have available i'll do that for sy52.
And lastly, what we want to send from the drive to the PLC
will be the status word and the actual speed value.
Now that the process data slots are set up you can select download and that will write the
parameters down to the drive. The next step is to configure the IO-link master inside of COMBIVIS.
I've already imported the device description in COMBIVIS. however if you don't have that you
can find it on turk's website. to set up the process data slots for EtherCat you can just
double click on the device. And here we have the Ethercat IO mapping. This is where you would map
the variables from your logic into the Ethercat channels. As you can see here we already have
variables defined for the control word, the target velocity, the status word, and the actual velocity.
Lastly, we have a few startup parameters that are required. So here in the startup parameters we need
to define the functionality for each of the four channels. As I mentioned earlier, we have
four IO-link channels. However we are only using channel zero. So we can enable that channel by just
setting up the amount of data that we want to send and receive, which we have done. You
have four bytes in, and four bytes out. And then channels one, two, and three can be deactivated
by setting them as a digital input channel. Now that that's complete we can log into the C6 Smart PLC.
After logging in, the process data between the C6 smart and the IO-link master will be set up.
We created a visualization
so that we can easily control the commands that are getting sent down to the drive.
So here I've got the control word and the status word map, as well as the target velocity and the
actual velocity. To run the motor I can just select drive enable, run stop, and give it a command speed.
And now we can see that the drive is spinning the motor,
and process data is transferring successfully. I hope this video was helpful.
If you have any questions, feel free to reach out to us at KEB America.