08-24-2004 04:07 PM
08-25-2004 02:29 PM
07-30-2009 05:47 PM
http://digital.ni.com/public.nsf/allkb/335A90747734097886257070006415B9
|
03-27-2025 03:44 PM
Hi Do you know where I can find the vendor id, productor code and device type of a compactrio. I am trying to connect it to a fanuc robor throughtethernet ip
03-28-2025 04:21 AM
You are most likely barking up the wrong tree here. Vendor ID and Product ID are typical elements when using USB or PCI interfaces. Your intended use case from the other messages you posted is through Ethernet/IP. This is simply a network protocol and you don't identify devices by vendor ID and product ID here but by the IP address.
You say in the other message that your PLC is a Ethernet/IP scanner. Typically the scanner is similar in functionality to a master. That means you need to setup your Ethernet/IP interface on your cRIO using the IO Data nodes. Basically your cRIO program needs to setup what data elements it provides, and then you need to configure your scanner in the Fanuc controller to address these IO data elements.
For that you need to know the IP address for your cRIO controller to configure a connection in your Fanuc controller, and the CIP path (IO name) of your data items that you set up in the cRIO using the IO data nodes.
The Ethernet/IP library in LabVIEW does not setup an IO device for you based on some simple configuration file, but you have to programmatically create it by creating an Assembly and adding each data element that you want it to have individually to it.
03-28-2025 09:34 AM
Hi Rolf, on the real robot I did what you said (connected to the ip address) and when I run the example Vi of an ethernet adapter i get the following result:
As you can see in the picture I get an error called Prio-358(0x114) that relatees to the following:
"PRIO-358 EtherNet/IP FwdOpen Fail (0x%x)
Cause: The robot EtherNet/IP scanner either did not receive a ForwardOpen Reply message from the remote adapter, or therobot scanner received a ForwardOpen Reply message from the remote adapter indicating a failure to establish an I/Oconnection.
Remedy: Verify the scanner settings in the robots Scanner Configuration screen are correct--review the manual of the remoteadapter device for the correct settings. Verify that the remote adapter does not currently have a duplicate explicitowner connection (another scanner device already connected to the same assembly instances). Check the remoteadapter device and verify that EtherNet/IP is enabled, and that the device is accessible on the network. Take note ofthe hexadecimal code in the robot alarm text and lookup the error in the robot scanner manual. Press RESET to restartthe robot scanner connection. The figure in the error message specifies the extended status of the error returned by thetarget device in hexadecimal format. The table below describes the extended status error codes.GENERAL STATUS EXTENDED STATUS DESCRIPTION 0x0114 Either the Vendor Id or the Product Code in the keysegment did not match the device.0x01."
Given that my understading is I do need the vendor id, product code and device type. In manualas i have found that most Ni products go by
vendor id: 0X1093 but i cannot find the other two. If you have any suggestion on how to do otherwise, could you help me pls?
03-28-2025 09:37 AM - edited 03-28-2025 09:39 AM
That's an entirely different level. It does not belong into this thread. You need to have an Ethernet/IP Device running on the cRIO. And that needs to be implemented by you!
What program do you run as LabVIEW realtime application? How did you program the EtherNet/IP Device in there?
03-28-2025 09:51 AM
For the labview Vi I just used the creat assembly instance from the ethernet ip library. The fanuc robot can be programmed in several ways but these is just for setting up DI and DO that are gonna be sent through ethernet/ip. I have a program that sends 16 bit messages to know the position of the robot in each degree of freedom
03-28-2025 11:00 AM
Are you wanting to read PID & VID from the H/W?
If so, maybe you will find the attached useful.