Connect an IO-Link Q4X to an Allen Bradley PLC
Автор: Ramco Innovations
Загружено: 2018-03-29
Просмотров: 11606
In this video, Brad Vorrie walks you through the process of connecting your IO-Link enabled Q4X to an Allen Bradley PLC via a Turck IO-Link block.
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 address. 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 Tuck block. Don't forget to enter the IP address of your block.
Next, you need to download the prebuilt AOI's that can be imported into Studio 5000. These are also available for download in the description. 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 AOI's.
A few gotchas 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 will 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. However, for 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 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 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.
///Download the EDS and AOI Files by following the link below:///
https://ramcoi.s3.us-east-2.amazonaws...
Buy this and thousands of other products on www.ramcoi.com
Connect with us on social media:
/ ramcoinnovations
/ ramcoinnovation
/ ramco-innovations
/ ramcoinnovations
LEGAL DISCLAIMER:
While we have made every attempt to ensure that the information provided is accurate and has been obtained from reliable sources, Ramco is not responsible for any errors or omissions, or for the results obtained from the use of this information. All information is provided "as is", with no guarantee of completeness, accuracy, timeliness or of the results obtained from the use of this information, and without warranty of any kind, express or implied, including, but not limited to warranties of performance, merchantability, and fitness for a particular purpose. At all times you should defer to the instructions and safety guidelines issued by the manufacturer. In no event will Ramco, its agents or employees thereof be liable to you or anyone else for any decision made or action taken in reliance on the information provided to you or for any consequential, special or similar damages, even if advised of the possibility of such damages.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: