Olly_J

Keyence IV3 with Mitsubishi iQ-R over Ethernet/IP

8 posts in this topic

Posted (edited)

Hi, has anyone tried to get a Mitsubishi iQ-R to communicate with the Keyence IV3 series cameras over Ethernet/IP? 

There are videos about how to use the IV3 with Allen-Bradley (Rockwell) PLCs but Rockwell's implementation of EIP is completely different from Mitsubishi's implementation.

I am using an existing system with the RJ71EIP91, I have the IV3 EDS file added to the Ethernet/IP Configuration Toll for RJ71EIP91 software, I know I need to add the IV3, set the IP address and connection number. But how do I access the data, and send the trigger for the IV3?

The instruction videos for Allen-Bradley uses the I/O tree to create tags and pre-made AOI's to create the logic to do all of the communication work in the PLC code, which is a process that I am familiar with. However, none of that is relevant to the Mitsubishi PLCs. 

I figure I have to use somethning like Uxx\Gxxxxxxx in my logic to access the data for the IV3 from the RJ71EIP91 module but not sure how to get that to and from the actual IV3.

Does anyone have any ideas?

(sorry my initial post was blank, accidentally prematurely posted).

 

 

 

 

Edited by Olly_J
Initial post was accidental

Share this post


Link to post
Share on other sites
23 hours ago, Olly_J said:

Hi, has anyone tried to get a Mitsubishi iQ-R to communicate with the Keyence IV3 series cameras over Ethernet/IP? 

I have not but I will offer some advice since the forum participation has been quite low lately. I have implemented the IV3 via Omron and Keyence PLCs. I don't have the files with me this weekend. I'll look these up next when I'm at my work PC.

23 hours ago, Olly_J said:

There are videos about how to use the IV3 with Allen-Bradley (Rockwell) PLCs but Rockwell's implementation of EIP is completely different from Mitsubishi's implementation.

EtherNet/IP is a standard that is the same for all manufacturers. Break it down to its simplest form and the examples can help you.

23 hours ago, Olly_J said:

The instruction videos for Allen-Bradley uses the I/O tree to create tags and pre-made AOI's to create the logic to do all of the communication work in the PLC code, which is a process that I am familiar with. However, none of that is relevant to the Mitsubishi PLCs.

The AOI is synonymous to a Function Block. You do not need this to make the cyclic connection. It will map the Input and Output Bytes to data types that are easy to understand and use. A lot of manufacturers will provide these for Rockwell PLCs since they are the leader in the market. It helps them sell more products.

23 hours ago, Olly_J said:

I am using an existing system with the RJ71EIP91, I have the IV3 EDS file added to the Ethernet/IP Configuration Toll for RJ71EIP91 software, I know I need to add the IV3, set the IP address and connection number. But how do I access the data, and send the trigger for the IV3?

I'm sorry I haven't used Mitsubishi software for EIP connections and I haven't used the PLC programming software in a long time. You should be able to find the settings that match the examples they have for KV and Rockwell PLCs. Somewhere in the configuration it may refer to Tag Sets. The Tag Sets may contain an address that you provide. The addresses you use will be the Input and Output data that you access. Referencing the Field Network manual, it will be similar to the KV settings section, step 4. The commenting in the KV series is somewhat automatic for obvious reasons. 

The most important thing about getting any EIP device connected, is getting the Input and Output data sizes correct for the specified Assembly Instance. Referencing the screenshot below, if your Input is D100 then your input data will be D100 through D196. They maybe start at D200 for Output (D200 through D205). 

IV3_EIP.png.cb622248dbd801bb14773ddccc92

1 person likes this

Share this post


Link to post
Share on other sites

Thanks IO_Rack I appreciate your response. What I was getting at with the comparison to Allen-Bradley is that in Allen-Bradley PLCs you would install the EDS file or AOP and then add the IV3 camera to the I/O tree and voila! you have tags to read and write to as long as you put in the correct IP address and everything is connected, whereas in the Mitsubishi PLC as far as I can see so far:

You have to first use the Ethernet/IP Configuration Tool for RJ71EIP91 software (which is separate from GX Works2/3) to install the EDS and create or modify the configuration, including the input and output sizes). For reading/writing the configuration you have to connect to the EIP module (Not the PLC) and read/write the configuration. This should get the EIP module communicating with the IV3 if set up correctly but not the EIP module with the PLC. 

You have to write logic for the PLC to read and write the data to the EIP module buffer memory... It seems you have to use the addresses starting at Un\G65536 offset by the addresses already used by existing devices for inputs and the same thing starting at Un\G196608 for the outputs. Then you have to look at the IV3 I/O registers and figure out which bits/registers will contain the values that you want. And for me, this means creating a big Excel spreadsheet to figure it all out and hope I haven't miscalculated and misaligned anything. Troubleshoot will not be fun.

So the examples for Allen-Bradley PLCs are not really very helpful. Keyence PLCs are more similar to Mitsubishi PLCs but not the same. I haven't got to test my program out yet as I am still waiting for others to mount and wire the cameras but I am hopeful it works.

Of course it is entirely possible there is a better way to do this, but that is my plan so far.

 

 

 

1 person likes this

Share this post


Link to post
Share on other sites

In your Gx Works 3 program you will add 2 function blocks from the Element Selection. It will be under the RJ71EIP91 module "Get Class1 input data" and "Set Class1 Output Data". This will bring in your Ethernet/IP to whatever devices you want to use.

1 person likes this

Share this post


Link to post
Share on other sites

@titanspark76 thanks, that looks like it would reduce the complexity of dealing with the data read into the PLC by a lot. The only problem is (possibly due to my relative inexperience in Mitsubishi PLCs) now after adding this to my program I have a memory problem and cannot build my code.

First I get the "Program Conversion" Error "Necessary local label area capacity is insufficient in the label of program..." (Error Code 0x12121042)

Which takes me to the Label Area Capacity  settings. So I change the 0K to 40K but I still get the same error. If I try to increase above 40K I get the popup which starts:

"(Standard) local device area capacity lacks xK word." (where x is the number I entered minus 40 in the local label). This takes me to the Internal Relay Local Device Start configuration (I think it wants me to increase it from 0 to xK but I am restricted to specific values...?).

My internet search so far doesn't show any solution to this problem. Do you know what I may be doing wrong?

 

Share this post


Link to post
Share on other sites

ok, so it looks like I need to increase the memory allocation before adding the module labels for the RJ71EIP91 module...

1) Increase local label area capacity

2) Re-Build All

3) add label for RJ71EIP91

4) Add the input and output data FBs to the project

5) Program away (Maybe rebuild all again first....)

Anyone feel free to correct me if I am wrong.

 

 

 

Share this post


Link to post
Share on other sites

  It's been awhile, but yes Mitsubishi wants you to rebuild everything after a parameter change.  Looks like you have the correct order. I took some screenshots from a project I done using an IV3 along with what my memory area is. Of course that doesn't have to be the same, but just included as a reference (this is from a R08CPU). Make sure the connection # in the Function block matches whatever you have in the EIP config tool and it should work. The Input and Output data Storage devices in the function block have to be global devices I think and everything else can be local or global. Also in the IV3 software there is a place where you select that you are going to be using Ethernet/IP.

EIP_ConfigTool.JPG

IV3_InputFB.JPG

IV3_OutputFB.JPG

MemoryArea.JPG

2 people like this

Share this post


Link to post
Share on other sites

I have never done ETH control of an IV3 (yet) , but This guide has a section for TCP/IP no protocol method. I would probably follow those steps

IV3_FieldNetwork.pdf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now