Shawn walk’s through adding IO-Link devices to an IO-Link Master connected to a Rockwell Logix PAC using Studio 5000 in today’s episode of #AutomationTechTalk Lunchtime Edition livestream:
Watch Automation Tech Talk on The Automation Blog:
Listen to Automation Tech Talk on The Automation Blog:
Automation Tech Talk Show Notes:
Thanks for listening! If you’d like to join the show sometime, don’t hesitate to use the contact us link.
Link mentioned in video:
– IFM AL1322 Webpage (includes AOI downloads)
– Shawn’s Online Courses
– Shawn’s In-Person Courses
Read the transcript on The Automation Blog: (automatically generated)
Shawn Tierney (Host): Hey everybody. Happy lunchtime. I hope everything is going great for you today. It is Friday, and I am pretty excited about that. Planning on spending a lot of time building more of these demos, this weekend.
I got all the stuff finally came in. So and then I’ll be sharing it with you over the next couple of weeks. Next week, I may have, more recorded content than live content. I’ll still try to release it at lunchtime, but, just some of the things I gotta do requires me to have, you know, to go through and do edits and whatnot. So in any case, though but I should be around almost all of next week, lunchtime, whether it’s recorded or live, I’ll be here.
But in any case, I just hope you all are having a great Friday. And today, we’re gonna do part two, and we’re gonna actually set up the two devices, the two IO Link devices. I thought this would be fun. Now if you guys are having any troubles hearing me or seeing me, please put it in the chat. Everything on my side looks like it’s working.
So, I’m just gonna go ahead and get started. Now I did play around with, some settings early this morning to see if I could get this to work. There we go. Okay. I I’m not a a huge fan of how they design everything, but, at least this is better than what we’re doing the other day.
In any case, we’re back in Studio 5000. And for anybody who didn’t catch yesterday’s show, what we did was we added these two. Let me see if I can switch over to those. We added nope. That’s not what I wanted to do, and that has to do with the selection.
You always have to select this. So let’s try it again. There we go. So we added these two devices to our ControlLogix, And we have one IO Link device here and one IO Link device here, but we already have the masters added to logic. So let’s go back here, and, yeah, I’ll click over here.
And now we’re inside logic, so you can see them right here down here. Make sure you guys are seeing what I’m seeing. And, now what we need to do is get the data in from the devices. We already have it coming in as, you know, just control the tags, but this is this is not, you know, what you would want. I mean, it’s it’s the twenty first century for crying out loud.
Right? We want our data, you know, to be more, massage than that. And, thankfully, the vendor, IFM, has some AOIs, and they’re in that same folder, that same download, the Allen Bradley download. They put all the AOIs in here, which I think is great. At first, I went to the actual pages for the different products, and there were no AOIs there.
And I’m like, I think they’re actually in the, the starter package for Allen Bradley. So I went into there. Again, we downloaded this yesterday. I talked about where to get this yesterday. There’s the add on instructions, IFM devices.
And the first device I have well, the device plugged into number, the first, IO MetLink master is, this was the RVP. So we’re looking for RXP. Okay. And so what we wanna do is bring in this. We have an eight port, so we need one that goes all the way up to eight ports.
And so what I’m gonna do is I’m gonna copy this path here. I’m gonna come over to our assets folder here, add on instructions. I’m gonna, input and add on instruction. I’m gonna give it the path open. We have eight port devices here, so I’m gonna use eight port, and that’ll bring it in.
I’m gonna accept all the defaults when it comes in. Bada bing, bada bang, bada bada boom. Excellent. Excellent. And now I know the other one I have is a temperature sensor, TN something.
So let’s see here. TN. K. A port, because that’s what I have in the field, eight ports. And bringing that out of instruction as well, except the defaults.
And on just a mere moments, they both come in now. You know, you probably know you can go to this add on, you know, toolbar here and bring them in that way. Although, did you know you can bring them in like this too? Right? Which is pretty cool because sometimes it’s easier to see it here because this text is really small.
Okay. So in any case, we have them in. Now let’s see if we can zoom in here now. We have to create tags for these. Okay.
So I’ll just do a new tag, and I’m just gonna call this these are the AL1322. I’ll call this a. Actually, this is actually for the device. So let me call this the RVP 510. I’ll just call it a in case we have another one in the future, and then, I’ll create it.
K. And I’ll do the same thing here. I might as well do that right now, and this is for our t n I think it’s a 2511 a. K. Boom.
So I got the backing tags for each of the add on instructions. Now I have to give it the PLC input. This one, you you know, it’s pretty obvious. Of course, we have I named thirteen twenty two a and b. Those are the two devices, the masters out there, but you have to grab the data.
K? You have to grab the data. I tried grabbing this when I was testing it early this morning. It’s like, oh, I don’t like that. I want the data.
K. So we’ll do that. That’s a, and then this guy is connected up to b. K. So we’ll go over to input data.
K. Port number. Now if we I don’t know if this thing will let me do this. Let’s try it like this. Okay.
Good. So let’s see this guy. K. This is the RVP he’s in. And this encoder, we’ve we’ve showed it in the show before.
We’ve we’ve had it on connected at, Allen Bradley and Siemens PLCs, but, we can see it’s, plugged into port one. K. This is the power port Ethernet in and out, and then this is an IoT port. And, again, we we’ve covered that in previous episodes. And then for the temperature sensor, I have it in Port 2.
K. So let’s see if we can get string yard to go back to this view here. Alright. Great. And now, so this guy is gonna be Port 1 because that’s the RVP, and this is gonna be Port 2.
This is, no nobody’s complaining that they can’t hear me, so that’s good. The vendor ID. So, let’s see. I do have the website up here, and let’s start with the temperature sensor. So this is IFM.
So the vendor ID is always going to be 310, and this particular device ID is 582. So this is a temperature sensor. So let me go back here, and it will go 310. And what is it? 582582.
And in the gradient listed in that if we search on gradient, we will see it’s point zero one. You guys see that? Yeah. Yeah, that’s on the screen. Okay.
So let’s go back over to the VMware point zero one. Beautiful. Okay. Now we gotta do this guy. Point number one.
Vendor ID, we know it’s gonna be 310 because it is still IFM. And then device ID. I have no idea what it is. So let’s go back to the IOD datasheet, and I think it’s at the very top. Just scroll up.
Yep. It wasn’t. Here we go. Device ID, 496. 496.
K. And then I’m gonna leave that all blank. Alright. So if we’ve done this correctly, this should massage that data and give us, you know, a counter, like, how many pulses per rev. I think this is defaulted to ten twenty four.
And then the temperature and for whatever reason, this is even though the unit’s set for Fahrenheit, this block is showing that it’s Celsius. I did not have a time to figure out why that was. I did look through the block to see if there’s any way I could toggle it in the block itself. There wasn’t. And so, let’s go ahead and download this bad boy and see if we get it to work.
Come on, puppy. Yeah. So all these limitations of StreamYard StreamYard is great for doing, interviews. Right? But, when it comes to doing things like this, I’m really struggling.
I may have to go back to, restream. Yep. Put the controller back into run mode. I’ve been using StreamYard for the for the interviews we’re doing the automation museum, which will come out Monday, but, the first episode anyways. We’re recording episode four this Sunday.
But, in any case so you can see it right here, and everything looks like it’s working. So let’s take a look here. I am going to turn you just have to trust me because I can’t do a split screen with this software. I’m gonna turn the encoder slowly, and we can see the counter turning up. Right?
And that is now represented by a tag, not just some random data tag, but it’s actually did these go as a program tags? K. Yeah. That’s, the add on instruction. That’s not what I wanted.
Nope. They’re controller tags. So here’s the RVP five ten. And we can see the count right there. See all the information about this.
Let’s leave it in this view. See if you guys can see that. K. And then the beautiful thing is, yeah, it’s in the data table. Right?
In the controller tags. Caught me there. Went a little
정보
- 프로그램
- 주기매일 업데이트
- 발행일2025년 9월 12일 오후 3:58 UTC
- 길이15분
- 시즌2천
- 에피소드912
- 등급전체 연령 사용가