Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview
This tutorial explains how to setup an Ethernet/IP I/O connection between an Ethernet/IP enabled Omron PLC and a Vision Builder AI remote system ( Smart Camera, Embedded Vision System, or
Compact Vision System).
Table of Contents
Goal
Use the Implicit EthernetIP Messaging function of Ethernet/IP to quickly and easily share data between PLCs and Vision Builder AI systems.
Vision Builder AI targets can be configured as Ethernet/IP adapters. Part of the memory of these systems is configured as assemblies, used to share data between the Vision Builder AI system
and the PLC. The input assembly is the assembly that is the input to the PLC and where Vision Builder AI can write data to. The output assembly is the part of the Vision Builder AI memory where
the PLC can write data for Vision Builder AI to access. A Vision Builder AI inspection uses the Ethernet/IP Adapter step to read and write those assemblies.
On the PLC, you need to reserve part of the PLC memory to mirror the input assembly and output assemblies, and set up the I/O connection between the Vision Builder AI assemblies and the PLC
registers.
Table of Contents
1. Enabling the Vision Builder Ethernet/IP Server
2. Configuring the Assembly Size
3. Using the Omron Network Configurator Software to Create the Network Configuration and set up the I/O Connection
4. Testing the I/O Connection
5. Related Links
Using the Omron Network Configurator Software to Create the Network Configuration and set up the I/O Connection
This tutorial works with any Vision Builder AI remote target. An NI Smart Camera is used in this instance.
Open the Network Configurator software to set up the I/O connection between the PLC and the Vision Builder AI target.
1/9
www.ni.com
1.
In the left pane of Network Configurator, right click and select Install
Browse to the NI Smart Camera EthernetIP Adapter.eds file attached to this application note and select Open.
Answer No to Install the Icon of NI LabVIEW Device.
2.
3.
Drag and drop an Omron EIP Module (for example, CJ2M-EIP21) from the Network Configurator pane to the main view.
4.
5.
Specify the IP address of the Module in the New IP Address field. Click OK.
6.
Drag and drop NI LabVIEW Device from the Network configurator pane to the main view.
7.
Right click on the NI LabVIEW Device and select Change Node Address.
2/9
www.ni.com
7.
Right click on the NI LabVIEW Device and select Change Node Address.
8.
Specify the IP address of the NI LabVIEW Device in the New IP Address field. Click OK.
9.
10. Double click on the 0002 Input Size Value and specify the same value you specified in the Vision Builder AI ini file. The default size is 500.
11. Double click on the 0003 Output Size Value and specify the same value you specified in the Vision Builder AI ini file. The default size is 496.
12. Click OK.
3/9
www.ni.com
20. Enter the size you specified for the Input assembly (40 for example).
21. Click Regist. The tag appears in the In Consume list.
22. Click Close.
29. Click OK. You will get a message from Network Configurator saying the new tags will be registered as tag sets. Click Yes.
30. Select the D00100 tag and click the Edit button.
31. Click the Advanced button.
32. Select the Instance ID to Manual and select 101, which is the instance value used by the Input Assembly in VBAI. The default value is 101.
33. Click OK.
4/9
www.ni.com
36. Select the D00200 tag and click the Edit button.
37. Click the Advanced button.
38. Select the Instance ID to Manual and select 102, which is the instance value used by the Output Assembly in VBAI. The default value is 102.
39. Click OK.
40. Click OK.
41. Select the Connections tab.
42. Select the NI LabVIEW Device from the Unregister Device List and click the Down Arrow button to register the device.
43. Double click on the device in the Registered Device List.
44. Specify the Connection I/O Type as Consume data From / Produce Data To .
5/9
www.ni.com
44. Specify the Connection I/O Type as Consume data From / Produce Data To .
45. Select the Input Tag Set you just created from the Input Tag Set drop-down list (D00100 [40Byte]).
46. In the Target Device, Select Input_101 [40Byte] for the Output Tag Set.
47. Select the Output Tag Set you just created from the Output Tag Set drop-down list (D00200 [40Byte]).
48. In the Target Device, Select Output_102 [40Byte] for the Input Tag Set.
49. Click Regist.
50. Click Close.
52. Click the Connect Icon (Ctrl+W) to connect to the network. Select the Setup Interface and click OK.
6/9
www.ni.com
7/9
www.ni.com
60. Verify that the Target Node Status is OK and that there are no errors in the Error History tab.
61. Click Close.
The I/O connection is now configured.
2.
3.
From the PLC Memory Window, select Monitor, from the Online menu.
8/9
www.ni.com
4.
5.
Type 100 in the Start Address to monitor the input assembly. You should see any value that you write in the Input Assembly from the VBAI Ethernet/IP Adapter step.
6.
Type 200 in the Start Address to go to the part of the memory you allocated for the output assembly. As you modify the values in the table, you should see the values updated by the Vision Builder
AI inspection that reads the output assembly.
Related Links
-NI Smart Cameras
-NI Compact Vision System
-NI Embedded Vision System
-NI Vision Builder for Automated Inspection
-Developer Community Tutorial: Using Vision Builder AI as an OPC Server
9/9
www.ni.com