How to Setup IAI RCM EtherNet/IP Gateway with Omron Machine Automation Controller N Series PLC

Hello everyone, today I will illustrate on how to set up an IAI RCM EtherNet/IP gateway with an Omron Machine Automation Controller N series PLC.

I am Tom Trinh, Senior Application Engineer for Valin Corporation. Let's get started.

So what I want to show you is the hardware layout that I have for this demonstration. I have my Omron Machine Automation Controller NX102-9000 here and one of the Ethernet port will be connected which is the one on the top here and that's 192.168.250.1 will be connected to the Ethernet port of the IAI gateway RCM-P6GW-EP. The second port of the NX102 will be connected to the Ethernet port of my computer and the PLC will be powered up by a 24 Volt power supply. I also use this 24 Volt power supply to power my IAI gateway unit and this gateway unit is connected to an actuator. And that's an IAI RCP6S-WSA10C-WA-35P-2.5-100-SE-RO5. So this actuator is actually 100 millimeter stroke. I also have a USB cable connected between the Gateway unit to my laptop.  And in my laptop I have an Omron Sysmac Studio software that I used to program the PLC. I used the gateway parameter configuration to set up my gateway and also the robo cylinder software to set up my position for the point table so those are the three different software that I use. And next thing I want to show you is the IAI Gateway parameter configuration tool. One thing to note is that make sure when you use this configuration tool, you want to make sure the switch on the gateway is switched to manual mode. Also connect the USB cable and you need to make sure that you configure the USB port to be the correct port and we have another video showing how you know which com port is for that USB port, which I'm not going to go over today. But once you launch the IAI gateway parameter configuration tool, this is the first screen it will come up. And now what you need to do is to click on the port config and then as I mentioned before, make sure you hit the arrow down key here and select the com port. In my case it's com four and then you click OK. Then what you want to do is make sure in my case I am using the mode, which is positioner1 meaning I want to select the position 1, 2 and three. In this case, and then I preprogram all the positions in the point table and then by selecting the position one it will go to so many millimeters. Posyion 2 will be going to so many millimeters, so as position 3. So that's how I set up my mode to be. This can be different mode as well, but in my illustration this is what is set up. And then what we need to do next is to transmit my configuration here and to do that you click the right and then this window will come up and you press yes to transfer it. What we need to do next is to install the EDS file and you can contact us and we can get you the EDS file. This is installed in the Sysmac studio and I'll show you how to do that later on. Next step iss this screen shot shows where the EDS file stored in the computer, so you can select it. This slide shows the mapping of the Ethernet IP. The one bit is very important. When you set it up, is that bit 15 for the PLC output under the very first word you need to turn that bit on to establish the communications between the NX102 and the Gateway, and we'll go over that but keep in mind that's bit 15 MON. The MON needs to be turned on. This one is showing there’re four words that used between the PLC output and the gateway. What you see here is the specified position number. So you have these bits zero to bit 9 to be able to select the positions that you want, so that's the specified position number. The following word which is a control signal. This is where once you select the position, you can start the position. You can click start which is bit 0 here to start the move. You also can home it. You can pause it, which is bit 2. You can also turn on the servo by turning on bit 4. You can jog actuator in the negative direction using bit 7 and jog in the positive direction using bit 8. So that's the control signal for the gateway. Now it's far as the status signal, so you've got four words for the IAI output into the PLC input. The 1st 2 words are for the current position, whereas the actuator is at. The third word here shows when the position is completed and then the last one is the status signal shows what's the status of the gateway. For example, if the server is on, you will see bit 4 is on. If there's any alarm, bit three will be turned on. If it's finished position, bit zero will be on PN, or if it's finished the home bit one is on and so forth. So that's the status signal. So what I will show you next is how to launch the parameter configuration for the gateway. Once you install that, it should be under IAI. Here we go. Parameter configuration tool. And it will come up with this and you want to select the gateway. In this case, I have the RCP 6 - gateway. Click OK. And you will see this. And providing that, you set up  I think my USB is connected com four and click OK. You read just make sure. Yep, so it's set up as EtherNet/IP. I have only one axis or I select one and this is the positioner1 type because all I want is to select the position that I want to go to that preprogrammed in the unit itself. One thing to notice here, you have for the Ethernet IP input and output you have a 24 bytes in and 24 bytes out. That's equate to 12 words in and 12 words out. We need this information later on when we do the setup for Ethernet IP. But once you set up this, you just click write and you write to it. OK, so that's for that. Then you close this out and next thing is going to show you the robo cylinder as well. How many positions did I program in there? And that is. So here is a robo cylinder software. Once you first launch it, this is how it looks. You wanna go and make sure you select the right port. Once again, this should be com four. And then click OK. And then it's gonna try to connect to it. And you need your robo cylinder to be in manual mode if you wanna write something something to it or change it. But for me, I'm just going to monitor it so it can be. I mean in the auto mode. So I'm going to click on the position so you can see. So here are three different positions and I program. When I select zero, it's going to go to 50 millimeter. If I select position 1, it will go to 100 millimeter and if it's position two they will go to 75 millimeter. OK, so make a mental note ,  Zero, one, and two. Those are three positions that we're going to use. This is where you program all the stroke lengths that you need using this robo cylinder software. So I'm going to close this out. I actually could just leave it there. The next thing I want to show you is the Sysmac studio. So here's how you set up the Sysmac Studio. First and foremost, you need to create some global variables to communicate between NX102 and the gateway, the RCM gateway. So here is the first global variable, PLC_out_IAI_in and that's an array of 12 words, which means from zero to 11 and the network under network published you need to set up as an output because it's sending out the data from the NX102 PLC to the IAI gateway. The next global variable you want to create is PLC_in_IAI _out. It has an array of 12 words as well from zero to 11 and under network publish that should be input because it's coming from the IAI gateway to the NX102 PLC. You notice also I create some tags here. For example the IAI_control_signals. It's actually the whole word and I'm using an  alias. 100 here for that also the IAI_status_signal is also the data type is a word and also the alias is 110 and I have also an IAI_start Boolean IAI_home, IAI_STP which is pause. IAI_IES which is reset IAI_SON which is servo on and so forth here. So we need to have this so that we can utilize it in our program later on. But let's go into the Ethernet IP setup. So you're going to click the EtherNet/IP, connect my IAI RCM gateway to the first port of the NX102, so I'm going to click this first port and see what I will see. OK. So right now I already configured the target device, which is the gateway. But if you have not done this, first thing you have to install the EDS and you do that, you put your cursor here, right mouse click, click display EDS library. And then you click install. And that will take you wherever you have the EDS file and you can request it from us. we can get it to you. OK, but just happened. This is the one so you click on that and you click open. I'm not going to do it because I already install it. But once you install it will show up right here IAI. And that's the RCM Gateway EDS that I installed. Once you finish, you click close here. Yeah, you want to click add and then you put in the IP address here the model name. This is where you select that IAI eds that you just installed which is right here. I'm not going to do it but I want to show you this so you put in the model the IP address. In my case this is 192.168.250.10. 192.168.250.10. In the model name and the version number. I'm going to cancel it. So this is how it will show up once you finish adding it. So the next step we want to do is to Registration All and what that Registration All will do, It will populate or bring in the global variable that you create earlier for the PLC_in_IAI_out, as well as PLC_out_IAI_in into here. So once you've done that, you click this icon here and the key on this is under the originator variable you click the arrow down and then you select for the input you want to select the PLC_in_IAI_out which we created earlier and under the tag variable you would put in 100, and that's an assembly for the input and then for the output you select the appropriate variable which is PLC_out IAI_in and the target variable needs to be 150. When you finish that, this at the beginning will show 16 bytes only, so you need to manually go in and change it to 24 bytes for both of them. As you recall earlier as I went through the parameter configuration parameter, it shows that there are 24 bytes for inputs and 24 bytes for the outputs. Another word, The first, so 24 bytes. That's 12 words. So the 1st 8 words are for the gateway. Next 4 words are for the actuator itself. For example, the current position, the position where it's completed and also all the status signals. Same thing for the control output signal as well. OK, so that needs to be 24 byte. Once you finish it, you go online. And you transfer to the controller. I'm not gonna do it because I've done it already. I'm gonna do a compare. So you can see there's no difference, so that's how you set up the EtherNet/IP for Machine Automation Controller NX102 and the IAI Gateway RCM. So I want to show you next is have a little program here that allow me to show while as I execute it and also the video will show the actual is actually moving. So first and foremost, I have these two instructions here that basically allowed me to move the word of the control signal to the actual tag that I want to so that I can use it as a bit, so that's what these two functions are for, and the other one is for the inputs. From IAI word status signal coming back to the PLC. Also as I mentioned before this bit right here is very important. What I did is basically upon powered up I give it like 20 seconds and then I turned on that which is bit 15 of word M. So if you look down here. We open this up if I look at this you will see it shows 8000. 8000 means bit 15 is turning on. So the next thing we want to do is to  turn on a servo which I've done it already. So servo is on and how do I know servo is on? If I look at this. So this is bit four of the control signal is turning on and you will see it turns off. I'm going to turn it back on and you see that this is on OK so now let's say I want to select position. I want to select position 0 by moving a constant 0 into the word that allowed me to select position. So as soon as I turn on this bit zero will be copied into the position and I'm going to execute this  start bit. As soon as I do that you will see the actuator is moving to 0, so I'm going to go ahead and do that and make sure the servo is on. Yep, servo is on and do that right now and you can hear that. Let me make this small as you can actually see it at the same time. I'm going to turn it off. I'm going to go to position one and see this goes to position one. This will move and here we go. OK, so that's my position one and I will turn it off. I'm going to tell it to go to position 2. Here you go. If I want to go to position zero, I can do that as well. And you know, there's also up here. You will see it shows right as at 50 millimeter. And that's because I program 50 millimeter in my position zero. I'm going to tell it to go to position one, and you will go to position one and position one is 100 millimeter. When I turn it off, I'm gonna tell it to go to position two and position two is actually 75 milimeter.
Exactly what we program in the position table, so that's how we set up IAI Gateway EtherNet/IP RCM to communicate to an Omron Machine Automation Controller NX102-9000.

If you have any questions, please call (855) 737-4716 or fill out our online form.