The text of a manual · part 12 of 18
VS-06 Smart Camera, VS-06 User's Manual, pages 111 to 120
Pages 111 to 120 of 172
The original document is the PDF (3.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the di-soric VS-06
Page 111
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
E Allen-Bradley PLC Setup via EDS
Click OK, verify the camera was added to the Ethernet network, then open the Controller Tags to verify that :I and :O tag sets were created:
Open the Main Routine:
VS-06 Smart Camera Guide
E-11
Page 112
Appendix
E
Allen-Bradley PLC Setup via EDS
Right-click rung 0, and select Import Rungs:
Navigate to the VS-06 32-000003-lx.L5X file and select Import. The default install directory is C:\di-soric\Vscape\Tutorials and Samples\VS-06\EIP Demo.
E-12
VS-06 Smart Camera Guide
Page 113
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
The Import Configuration dialog is displayed:
Allen-Bradley PLC Setup via EDS
E
Select Tags:
VS-06 Smart Camera Guide
E-13
Page 114
Appendix
E
Allen-Bradley PLC Setup via EDS
In the Final Name column, click on VS-06:I, then click on the down arrow that shows up on the right:
Double-click on the Read MV:I (or whatever name that was assigned to the device) tag:
E-14
VS-06 Smart Camera Guide
Page 115
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
E Allen-Bradley PLC Setup via EDS
In the “Final Name” column, click on Read_MV:O, then click on the down arrow that shows up on the right:
Double click on the Read_MV:O (or whatever name that was assigned to the device) tag:
VS-06 Smart Camera Guide
E-15
Page 116
Appendix
E
Allen-Bradley PLC Setup via EDS
Click OK and the Main Routine and User Defined tags will be populated:
Delete any empty rungs (check rung 0):
Download the project to the PLC:
E-16
VS-06 Smart Camera Guide
Page 117
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Put the PLC into Run Mode:
Allen-Bradley PLC Setup via EDS
E
Open the Program Tag window and select “Monitor Tags”:
VS-06 Smart Camera Guide
E-17
Page 118
Appendix
E
Allen-Bradley PLC Setup via EDS
Expand Read_MV_IO_user so that the Echo in the .IN.Status and .OUT.Control structures are visible:
E-18
VS-06 Smart Camera Guide
Page 119
AB Rockwell RSLogix 5000 v20 PLC Integration with EDS
Change .OUT.Control.Echo to non-zero:
Verify Read_MV_IO_user.IO.IN.Status.Echo is the same value as the .OUT.Control.Echo:
This confirms that the PLC and camera have successful two-way communication. The demo code expects a demo vision job to be loaded on the camera, which populates the following input tags (camera to PLC) with vision tool results: •
.IN.bool.bool1, bool2, and bool3
•
.IN.long.long1
•
.IN.float.float1
•
.IN.string.string1
The demo code will operate the Control and Status signals of the camera regardless of whatever vision job is loaded. For a more detailed overview of the demo code and vision job, please see the associated appendix Demo PLC Code. To send a trigger to the camera, scroll to Read_MV_IO_user.Control.Trigger:
VS-06 Smart Camera Guide
E-19
Allen-Bradley PLC Setup via EDS
E
Page 120
Appendix
E
Allen-Bradley PLC Setup via EDS
Set the Trigger to 1. This causes the demo code to trigger the camera, process the new inspection data, record the results in the Read_MV_demo_xxxx tags, and clear the DataValid status signal. The user of the demo code can know that the camera was triggered when the Trigger control changes to 0. All processing is done when the counter Read_MV_dv_fall_count increments, along with the pass/fail counters in the Read_MV_demo_xxxx tags. For example:
E-20
VS-06 Smart Camera Guide