Home

AutoVision Industrial Protocol User Manual - Di

image

Contents

1. This example shows a Failed inspection where every tool reports a fail Mame zaj Value Style Data Tyr Description Scan Mvo use J Stan users device tags E Scan Mv IO_userINStatus fee IE Stan users device tags pSeanMVID werlNStsusDnine 1 Decimal BOOL user s device tags Seat Mv ID uerNStsusEwBusy O Decimal BODL users device tags Scan MV D useriNStatusAcoBusy O Decimal BOOL users device tags Scan MV ID useriNStatusTrggeready 1 Decimal BOOL user s device tags Sean MV ID useriNStausEmor O Decimal BOOL _ user s device tans Sean MV ID useriNSStatusResetCoun ck O Decimal BOOL users device tans Sean MV ID useriNStatusreseed O Decimal BOOL users device tags Scan MV ID useriNStatusEweCmd ck O Decimal BOOL user s device tags Scan MV ID useriNStatusTrggerck O Decimal BOOL users device tags Scan MV ID useriNStatusinspBusy O Decimal BOOL users device tags Scan Mv I0_userIN StatusInsp5tat O Decimal BODL users device tags Scan MV I0_userIN Status Datavaid O Decimal BOOL users device tags Sean MV ID useriNStatusreserved2 O Decimal BOOL users device tags Scan MV ID user IN Statusreservedl3 O Decimal BOOL user s device tags Scan Mv ID useriNStausresemedid O Decimal BODL user s device tags Scan MV I0_user IN Statusreservedl5 O Decimal BOOL __ users devic
2. Scan MV con Create ji Um Scan MV con Create Scan MV con Create I Scan MV con Create Controller Program bene ung f mettene Tun Tiras e Sfr pases Decem References p 3 Camera Use Existing j Scan MV _0447 GMV A Tags ed B Camera 0 Undefined E Scan MV O P W Data Types n Scan MV Cm Create v eWee i Show fan Tags 3 Other Components Scan My Cm Crese 3 Erors wamings E Scan MV Cm Create je am csl E Scan MV Cm Create J B Scan MV con Create m m E o i Data Type 0447 GMV 6800 boxG A66ESFC3 0 0 E Scan MV con Create d Description Scan MV con Create E pa fes KI Double click the camera name output tag assigned earlier Y Show fan Tagg Name n cs Data Type d Scan MV I 447 GMV 6800 1 A n Scan MV O D 447 GMV 6800 1 AutoVision Industrial Protocol User Manual 4 13 Chapter Allen Bradley PLC Setup via EDS Click the Other Components icon in the tree view to select the Component References Select the camera in the Final Name column Click OK to complete the import k4 lle Find als Find Replace Find within Final Name Import Content MainT asl Configure C onent References P roan ine Runge Limestteme Operation Franne Cass Nane MainRouine Runge eee umeired Sco WV Haie
3. 5 Download the job to the camera 6 Add the camera and demo code to the PLC environment see the next section PLC Demo Code Setup During PLC integration import the 32 000003 2 L 5X file found in the EIP demo folder to create the camera s demo tags and ladder logic refer to the Allen Bradley PLC Setup chapters AutoVision Industrial Protocol User Manual 6 5 Chapter Demo EtherNet IP PLC Code Description of PLC Tags Scan MV demo mode Purpose This tag is intended for demonstration purposes only It modifies the operation of the demo code and allows the first time user to control the device directly with no assistance from the demo code It also allows the demo code to manage the Control and Status signals fully The demo mode tag takes three different values putting the demo code into one of three modes of operation e Exchange l O data only e Actively operate device controls status and demo data e Automatically trigger the device after one second of idle time User App Method User app can set the demo mode with one of three values to define the demo code s mode of operation 0 Exchange I O data only In this mode the user directly accesses the Scan MV IO internal tag set The demo code only exchanges data with the camera doing nothing to control the device or respond to events from it 1 Operate device controls and respond to device events This is the default mode of the demo code In th
4. 7 30 2013 4 34PM RSLogix 5000 X X H AOI MainRoutine L5X 8 6 2013 2 04PM RSLogix 5000 X The Import Configuration dialog will prompt you for information regarding the AOI file Select the Data Types to view the new tags and their attributes Click OK when ready to continue a Parameters and Local BA Routines e mr S Data Types E Emos Waming New tags and logic will now be added to the project 3 6 AutoVision Industrial Protocol User Manual CJ Rockwell RSLogix 5000 AOI Add On Instructions for di soric Devices Test Communications and Review Data After the reader module has been installed you can start with a basic ladder logic program to test the data to and from the device Select the Add On tab and add the imported Add On element to rung 0 P m m Og lt 3 5 2 7p fc TS em Qo ze x AutoVision Industrial Protocol User Manual 3 7 Chapter Allen Bradley AOI Add On Instructions for EtherNet IP Operation Right click in the first element and create a New Tag This tag will contain all the elements of the Enableln and EnableOut of the AOI Znormal Type Base Alas For Data Type E Scope E MainProgram Fan Read wiite hal Style E Controller Constant Open Configuration Program Reader EnableOut 3 8 AutoVision Industrial Protocol User Manual Rockwell RSLogix 5000 AOI Add On Instructions for di so
5. Decimal BDOL user s device tags Sean MV ID userlNStstusfiesetCount ck Decimal BOOL users device tags Sean Mv 10 userlN Stetusreseed Decimal BODL user s device tags pSeanMV ID useriNStetusExeCmd ck O Decimal BOOL user s device tags Decimal BOOL user s device tage e ecimal BOOL user s device tags Hn ecimal BOOL user s device tags rm ecimal BOOL user s device tags cim DELE Juser s device tage 1680000 000 5can MV ID 5can_ MV ID 9 ecimal BOOL user s device tags BOOL users ecimal BOOL user s device tags aT D T a m ecimal device tags iS TANTAN Hd me ecimal IMT z device tags m K p p li fi p il H a Hes DINT user s device tags a ecimal a E i li i i E DINT user s device tags Hn ecimal SINT user s device tags me ecimal SINT user s device tags INT HH Scean MV IO user IN Status State Scan MV IO user IM Status reserved12l 127 HH Sean MV ID user IM VIO pSean MV D werlNbodbool p8ean MV ID userlN boolboo HSan MV I0_userlN boolbool3 This concludes the EtherNet IP demo d er s device tags ecima a HH Sean MV ID user IM Status reserved1UA 111 Decimal user s device tags Scar user s device tags w aje i o o oa a Scar user s device tags ea uy 4 BOOL measure status BO
6. H Scan MV const CmdCode JbCha MkBt Online 318767104 Decimal 285212672 Decimal w HH Scan MV const CmdCode JbChg nline Add On Instructions E1 Data Types Scan MV const CmdCodeRilst Fail No Job 33554432 Decimal 3A H Scan MV censt CmdCodeRilst Fail Ul 16777216 Decimal E Inm H Scan MV const EmdCodeRlst Fail Unk Cmd 50331648 Decimal fi Scan MV EIP IN bool ai HH Scan MV const CmdCodeRIst Success 0 EE Decimal i Scan MV EIP IN fioat E Scan MV const State Booting 3 PY Decimal f Scan MV EIP IN int E HH Scan MV const State Empty 4 NEN Decimal wo Scan MV EIP IN F Scan MV const State Error 255 RENE Decimal fff Scan MV EIP IN Status 1 f HH Scan MV const State JobChange 2 EE Decimal 83 Scan MV EIP IN string A Scan MV EIP IN VIO HH Scan MV const State Offline 0 Decimal iil Scan Mv EIP IO amp Scan MV const State Online 1 Decimal f Scan MV EIP OUT HE Scan MV demo blob EM es i Scan Mv EIP OUT bool Scan MV demo decode Lo pe e E gere re om onte L Scan MV demo InspStat o de3 0 Ced 1 ea T ses dee se ff Scan_MV_EIP_OUT_int can MV demo measure Fas R Scan MV EIP OUT
7. 5 8 AutoVision Industrial Protocol User Manual 5 Integrating the Camera into a PLC Environment SS l o Select the control button next to Offline and then select Download an 4 RSLogix 5000 StartProject 1756 L61 20 11 MainProgram MainRoutine o 2 H File Edit View Search Logic Communications Tools Window Help E 5 amp im ej amp E 5 cx MOV K231 DATA Mscan Mv m BSB Pie af i Gil gt en Q Offline D RUN Path AB ETHIP 13192 168 2 11 14Backplane D T E Ma Farces Go Online a H No Edits Upload bot os kekk Jele Redundancy Download i XT E 5 Favorites dd im unte i l Controller Orga Program Mode Run Made Test Mode Clear Faults 30 To Faults tigris B E Data T Controller Properties one shot demo init B i User Defined Scan_hl _ons_internal 31 0 Pe Ei Scan MV demo record if Scan MV EIP IN Scan MV EIP IM bool z Scan MV EIP IN float d E 5can MV EIP IM int T Scan MV EIP IM long M Scan MV EIP IN Status iud Scan MV EIP IN string Ml Scan MV EIP IN VIO m M Scan MV EIP IO M Scan Mv EIP OUT T 5can MV EIP OUT bool Lad i Scan MV EIP OUT Control oe Scan_MV_EIP_OUT_float M Scan_MV_EIP_OUT_int T Scan MV EIP OUT long i Scan MV EIP OUT string M Scan MV EIP OUT VIO B s Strings M Scan MV str2044 M M Scan MV str28 a Zi Scan MV str32 d A Add On Defined E Lg Pre
8. Now click the Run button on the top ribbon This will download the job to the camera At this point the job is ready to run and can be tested However in order to run the job change demo this job needs to be loaded into Slot 1 Click back to the Edit view from the top ribbon bar Click the slot icon and select Slot 1 or New Slot if no slots are currently in use Now the job and images will be saved to the flash memory of the camera 9 6 AutoVision Industrial Protocol User Manual e STEP 7 Setup STEP 7 Setup This section was created using Siemens STEP 7 software version 5 5 SP2 and an ET200S PLC catalog number 6ES7 151 8AB01 0ABO CPU Version 3 2 It was tested with a 315 2 PN DP PLC catalog number GES7 315 2EbEH13 0ABO CPU Version 2 6 O l n LL eo x n O D m First launch the SIMATIC Manager from the desktop a SIMATIC Manager Create a new project from the menu item File gt New Select the project location on disk then enter the name and click the OK button In the example below the name is Start Once the project is first created you will see the dialog This dialog is the main entry point into the PLC program and hardware settings lal x 18 xl a v EE dit E No Fiter gt Press F1 to get Help AutoVision Industrial Protocol User Manual 9 7 Chapter Demo PROFINET PLC Code The PC may have multiple network cards so it s imperative to map the corr
9. O Decimal DINT user s device tac RHScan MV ID userlNlonglongd O Decimal DINT jusers device tag Scan MV ID userlNlonglongiD O Decimal DINT user s device tag EbScan MV D uerlNHlog dee BE Sean user s device tag can MV ID userlN HostHosF 173 0306 Float BEAL Measure value ean MV ID useriN Hoaios2 o Float REAL user s device tag Scan MV ID _userIN foat fota oo Float REAL user s device tag Scan MV ID user IN fosato o Float REAL user s device tac can MV ID _user IN foat toas Float BEAL user s device tag ean MV ID useriN HoailosG 00 Float REAL user s device tag Scan MV JD userlN Host oat oo Float REAL user s device tag pSeanMV ID useriN Host oa8 0 0 Flgat REAL users device tag Scan MV JD _user IN foatfoats Float REAL users device tag Scan MV ID user IN foatfoat0 0 0 Flot REAL user s device tag Scan MV ID useriN stingstingl LABEL CHECK Scan Decode text Os Mi RE Qo 50 ec c un gt pa 20 lt q AutoVision Industrial Protocol User Manual 5 19 Chapter Allen Bradley PLC Setup via Generic Ethernet Module This is equivalent to the AutoVision inspection result v Process 1231 Cycle 331762 Idle 331597 Cycle Worst 2798716 _ Lo o
10. VS 06 EtherNet IP The EtherNet IP interface version described here is 1 1 This version number is associated with the EtherNet IP interface for di soric s Device Type of 100 Machine Vision Smart Cameras It is not the software version number of AutoVision or VS 06 firmware Overview The EtherNet IP interface will be identified as Vendor Specific 100 The interface is designed to support Class 1 Implicit I O data exchange and Class 3 Explicit messages for serial commands not accessible with Implicit messaging Necessary Tools The following tools are helpful for configuring EtherNet IP e AutoVision and FrontRunner e EtherNet IP Messaging Tool can be a PLC or Software Tool must be capable ofsending explicit messages and establishing Class 1 connections ElPScan from Pyramid Solutions is an example of such a tool Terminal emulation or serial communication tool that can connect to serial uart and TCP socket such as HyperTerminal or Putty EtherNet IP Terms of Use EtherNet IP Technology is governed by the Open DeviceNet Vendor Association Inc ODVA Any person or entity that makes and sells products that implement EtherNet IP Technology must agree to the Terms of Usage Agreement issued by ODVA See www odva org for details 2 2 AutoVision Industrial Protocol User Manual VS 06 EtherNet IP N EtherNet IP Object Model VS 06 uses Class 1 connected messaging to communicate most of its data and services in a sin
11. 32 bit signed integer DINT 32 bit signed integer 32 bit floating point REAL 32 bit floating point 32 bit lengthfield followed STRING 32 bit length field followed by amp bit ASCII characters by 8 bit ASCII characters EDS EIP equivalents BOOL WORD LWORD INT DINT REAL DINT USINT Description 1bit 16 BOOLs 64 BOOLs 16 bit signed integer 32 bit signed integer 32 bit floating point DINT length USINT array of characters USINT 8 bit integer 2 18 AutoVision Industrial Protocol User Manual N PLC Tags and Serial Command Names PLC Tags and Serial Command Names PLC tags are separated into IN and OUT for data direction Within the IN and OUT groups the tags are sub divided into fixed Status and Control fields plus user defined linked data fields This table shows how PLC tag names correspond to serial commands wooo ou PLC tag prefix Serial cmd Tag name PLC tag prefix Serial cmd Tag name prefix prefix A 33 Q Z pem a om n LLI O o0 IN Status Online 1 OUT Control IN Status Online 0 OUT Control GoOffline IN Status eip status Error OUT Control IN Status TriggerAck OUT Control iN Status expBusy IN Status TrigReady IN Status inspStat e IN Status ResetCountAck OUT Control ResetCount 5 e i IN Status AcqBusy CNN IN Status eip CmdCodeRslt OUT Control CmdCode IN Status eip CmdRet OUT Control i
12. A Tags 1 0 Configuration Ei Data Types 1756 Backplane 1756 44 Other Components fa 0 1756 L61 StartProject x Errors arnings E 3 1756 ENBT amp ENBT zx Ethernet s 1756 ENBT A ENB Cancel Help Module Camera is not defined in import file or in project Z Click OK and the Main Routine and User Defined tags will be populated fj RSLogix 5000 StartProject in Start A 756 L61 20 11 MainProgram MainRoutine ajx Bo x Offline No Forces E m oK No Edits HM 4 I TET zi Redundancy 55 i Favorites Add On Bit Timer Counter Input Output Compare Compute Math Move Logical File Misc File Shift Sequencer Equipment Phase Program Control For Break Controller Organizer SEE zu aS E p 34 BJE fovea b ass e om B Controller StartProject S Sis A Controller Tags Controller Fault Handler C3 lag c MM E a MainTask Go Offline Load Job Query the active job Go Offline Load Job specified by LSB B E MainProgram slot number Go Offline Load job specified by LSB Make it the boot A Program Tags returned in CmdRet specified by LSB Make it the boot job job Go Online Eh MainRoutine MOV MOV MOV MOV i Unscheduled Programs Phases Move Move Move Move 6 6 Motion Groups Source Scan MV const CmdCode GetActiveJb Source Scan MV const CmdCode JbChg Source Scan MV const CmdCode
13. Dalim oUm EA e Sa Start Hardware itd SIMATIC S00 1 AutoVision Industrial Protocol User Manual 9 9 Chapter Demo PROFINET PLC Code Double click the Hardware icon to launch the HW Config dialog ELI ML LE di l Al E EE De jo ie i A se pases meses up dili nd Dade P be fo E E i FEEEEEERETIEEIEIEEIEILE Li a D xh d i i i a Tree eee es pate EHEHE m m i i io d i EE Ei i i TTE pet PREP EAE ET 4 i Pape ERERE SD EX KE EG T1 EEEELITITITILIILTEELE 9 ELSE aaa 2 BERS Baz ATIT J ml LE Make sure the Catalog is selected in the ribbon bar on the top This will add a tree view on the right pane with all the available hardware devices If the latest GSDML file hasn t been imported follow the next steps to import GSDML e Install the GSD file from the menu item Options gt Install GSD File e Click the Browse button to locate the GSDML file di soric Vscape Firmware gsd VS 06 9 10 AutoVision Industrial Protocol User Manual STEP 7 Setup 9 QO EM A e The center pane will list the available GSDML files m Initall GSO Fikes hatn thus iren hor TE Eaton uS DHL Enter O A O DSOHLA 3 201 A red TEA 12 00 D AM Vea Eregicih BsDaMLAVZ SSS ee Ea 120000 AME 23 Eregkih Q m e Select the file and click the Install button e When finished close the dialog e The VS 06 camera should now be p
14. ERROR RESET COUNT ACK EXE CMD ACK TRIGGER ACK INSP BUSY INSP STAT DATAVALID Description Inspections are running The camerais busy capturing an image The camerashould notbe triggered or the part under inspection moved during this time if illuminated The camerais busy acquiring an image The camera cannot be triggered while busy The camerais ready to be triggered This is equivalentto ONLINE 1 and ACO BUSY 0 An error has occurred Set the RESET ERROR control bit high to clear This bit mirrors the RESET COUNT control bit The PLC can be certain the reset command was received by the camera whenthis goes high The PLC can then bring the RESET COUNT control signal back low This bit mirrors the EXE CMD control bit This bit mirrors the TRIGGER control bit This bit is high when inspection 1 is busy processing an image This bit representsthe inspection 1 status result It is 1 if the inspection passes Itis only valid when DataValid goes high This bit goes high when inspection 1 is complete The PLC should clear this signal by setting RESET DV high once it has read results AutoVision Industrial Protocol User Manual Assembly Layout CmdCodeRslt 32 bit The value of CmdCodeRslt is only valid when ExeCmdAck is active 1 in response to ExeCmd being active CmdCodeRsit value Meaning base 16 hex SUCCESS Fail Possible reasons Camera under PC control Job cannot be changed Fail No Job in slot
15. Station Edit Insert PLC View Options Window Help At this point close or minimize the HW Config dialog and re visit the SIMATIC Manager dialog The CPU should be added next to the Hardware icon and in the tree view in the left pane Expand the CPU tree item and remaining child items below it F SIMATIC Manager Start O N Fie Edt Insert PLC View Options Window Help Ca sta X Ga uso 25 2 6E No Fiter gt a Start C Program Files Siemens Step7 s7proj Start EB Stat fH SIMATIC 300 1 S E cru 315 2 PN DP Sex 57 Program s p Sources icy Blocks AutoVision Industrial Protocol User Manual e STEP 7 Setup Click the Blocks node to view the program objects P Su BEBE nca a PLI Wet IPHUDP gi 57 Prog T Sore EH Blocks O l n LL eo x n O D QO Updating Camera Name From the HW Config dialog open Edit Ethernet Node from the menu item PLC gt Ethernet gt Edit Ethernet Node From the SIMATIC Manager dialog open Edit Ethernet Node from the menu item PLC gt Edit Ethernet Node Click the Browse button to open the node selection dialog Ex Ethernet node MAC address Browse Set IP configuration Use IP parameters Gateway IP address Do not use router AutoVision Industrial Protocol User Manual 9 17 Chapter Demo PROFINET PLC Code Select the camera and cl
16. float1 10 stringl string2 string3 string4 2 4 CmdcCodeRsIt reflects the result of the command invoked by Control CmdCode See CmaCodeRsittor definitions WhensStatus ExeCmdAck goes active in response to Control ExeCmd CmdRet contains the data returned from the command invoked by Control CmdCode See CmdRet for definitions Reserved for future use Device State register Depending on the current state of the camera certain STATUS and CONTROL features may or may not be operational See State for definitions Each bit reflects the state of a virtual IO point The least significant bit reflects vio point 145 the most significant bit vio point 160 Reserved for future use Each bit represents a boolvalue The least significant bit of byte 20 reads the value of booll The most significant bit of byte 27 reads bool64 Each pair of sequential bytes represents a16 bit signed integer value The 20 bytes represent10 integers From bytes 28 amp 29 for the value of intl through bytes 46 amp 67 for the value of int10 Each group of 4 bytes represents a 32 bit signed integer value The 40 bytes represent10 long integers From bytes 48 51 for the value of long1 through bytes 84 87 for the value of long10 Each group of 4 bytes represents a 32 bit signed integer value The 40 bytes represent 10 long integers From bytes 48 51 for the value of longl through bytes 84 87 for the value of long10 These 96 bytes can store a string of upto 9
17. 3 ints 5 longs 5 floats 3 string 5 10 int10 10 bongo 10 float1o 10 string lo 10 aa 11 bool135 199 iness 199 199 floati9s 199 string93 199 bool 200 200 int200 200 200 flaatz00 200 string200 200 The value received in response to Get Attribute Single depends on the type Bool will return a 16 bit word with 0 for false or 1 for true Ints will return a 16 bit signed integer Longs will return a 32 bit signed integer Floats will return a 32 bit floating point number Strings will return a counted string Total size of a string data item is 2048 bytes This includes a 4 byte length field followed by 2044 eight bit characters When accessing strings explicitly they are not limited to the size in the I O assemblies For example string3 is limited to 28 bytes in the input assembly If the actual string is longer than 28 bytes it will be truncated when reading via the assembly but not truncated when reading the same string via an attribute explicitly AutoVision Industrial Protocol User Manual 2 15 Chapter Using EtherNet IP Assembly Class 109 can be used to read and write special EtherNet IP specific registers Attr Name CONTROL STATUS ECHO CMD CODE CMD ARG CMD CODE RSLT CMD RET STATE 2 16 Description The control register 16 bit See Camera Control Registerfor bit definitions The status register 16 bit See Camera Status Registerfor bit definitions The ECHO register
18. 4 10 AutoVision Industrial Protocol User Manual n AB Rockwell RSLogix 5000 v20 PLC Integration with EDS Q 2 The Import Configuration dialog will be displayed 0 oo AO S S e n Find PA Find Replace to gt Find Within Final Name c o sd Import Content D E MainTasl Configure Rung Properties lt 88 MainProara Imparted 42 n MainRoutine Runqs Rungs eis amp References Operation Create after Rung 0 ET uA Tags D References will be imported as 2j w Data Types canfiqured in the References folders Other Components Errors Wamings Routine Properties Namie MainRoutine Description T Type Bl Ladder Diagram In Program amp MainProgram Select Tags m Import Configuration EE Find 8 rele Find Within Final Name Import Content MainT ask Configure Tag References import Name Operation FinalName 4 Y I Camera Undefined Camera WY CamesD Undefined Camera L Sean MV Cm Create Sean_MV_Cmd v L Scant Cm Create J 85 Enors wamings CT sen MwEm create Sean Mv Cato L Sean MV Cm Create Scan MV con Create C m me Scan MV con eate Scan MW const E kms m J Scan MW con Create Scan MW const ER Le AutoVision Industrial Protocol User Manual 4 11 Chapter Allen Bradley PLC Setup via EDS In the F
19. 7 4 AutoVision Industrial Protocol User Manual Setting Up an Omron PLC To edit the EtherNet IP items and mapping double click the EtherNet IP node 7 CJ2M CPU31 5 t a E H Tum Tuam aed Ej u 0000 Main Rack i O ham Q ru Q dp O d Q be Fi 00 0000 CJ1W ID211 DC Input Unit c O prar i Q n lt Q Z i Q C per LLI Input the desired IP settings and then click Transfer PC to Unit TCP IP Ethemet FINS UDP FINS TCP FTP Auto Adjust Time Status Area SNMP SNMP Trap r IP Address Notuse DNS Usethe following address Use DNS IP Address KED 1 8 Z2 Primary DNS Server Sub net Mask zn m unm Secondary DNS Server Default Gateway Ge Be zd Dar Sinan en Get IP address from the BOOTP server i IP Router Table obtained IP address will be automatically IP Address Gateway Address Insert Ived as system setting in the unit Al 1 43BSD C AIO 42BSD Tensfedunato Pc _TrensterPC 1o Unt Compare Restart Set Defaults OK Cancel When prompted to transfer click Yes After the transfer prompt click Close When prompted to restart the unit click Yes Once the unit resets click OK at the prompt Close the IO edit dialog Physically power down the unit and adjust the rotary switches to match the last octet of the new IP address from above Then powe
20. By Category By Vendor THEN AutoVision Industrial Protocol User Manual 5 3 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Configure the following fields Name A useful name to rememberfor the camera The example here is Scan MV IP Address The IP Address of the camera Comm Format Data DINT Input Assembly Instance 102 Input Size 80 Output Assembly Instance 114 Output Size 80 Configuration Assembly Instance 1 Configuration Size 0 none Click OK when done Example New Module Type ETHERNET MODULE Generc Ethernet Module Vendor Allen Bradley Parent ENET TIS Bean Connection Parameters Assembly l Instance SIZE Description m Comm Format Data DINT Address Host Mame IP Address C Host Name Status Input Statue Output Input 102 ati 32 bit Output 4 feo E 32 bit Configuration f fo zi bit i Open Module Properties OK Cancel Help 5 4 AutoVision Industrial Protocol User Manual Integrating the Camera into a PLC Environment Qi Configure the Required Packet Interval RPI and click OK 10 ms is the minimum allowed by the camera 20 ms or higher is recommended Bl Module Properties eip ETHERMET MODLILE 1 1 General Connection Module Info Oo ML i Qo 50 ec c un gt pa 20 o Requested Packet Interval AFI poo ms 1 0 3200 0 ms Inhibit M
21. O Decimal DINT Scan MV Id ueerDUTlonglonglth Decimal DINT Scan MV ID userDUTlonglongilE O Decimal DINT Scan MV I ueer UTlonglongll O Decimal DINT Scan MV I ueerDUTlonglongll O Decimal DINT Scan MV ID userDUTlonglongi 8 O Decimal DINT Scan MV In ueer UTlonglongll Decimal DINT EiScan MV J userOUT foot f Sean Scan MVI0_use OUTfinatfloatt 100 0 Fl REAL Scan MV ID ueerDUTfbetoxi2 200 0 Float REAL Scan MV JD user OUT foatfioatt03 0 0 Foat REAL Scan MV IO uerDUTfbatloxi4 0 O Fla REAL Scan MV ID userDUT floatfloatt05 0 0 Foat REAL Sean MV ID _user OUT foatfloatt0E 0 0 Float REAL Scan MV JD _user OUT floatfloatt07 0 0 Float REAL Scan MV JD user OUT float floats 0 o Float REAL Scan MV JD user OUT float floats 0 0 Float REAL Scan MV JD user OUT float floatt10 0 0 Fla REAL Scan MV JD userOUT stingstingl LABEL CHECK Scan Scan MV I user UTstingstingl 2 Scan Scan MV JD userOUTstingstingl 3 Scam Scan MV JD userDUTstingstingld Scam Scan MV matchcode LABEL CHECK Scan HiScan MV ons intemal 2080374528 Decimal DINT HH 5ean MV status em count Elf COUN This configu
22. before the new setting can take effect Reboot Required J Smart Camera must be rebooted before this setting can take effect O E C O gt Un O S O Tu O i Q Reboot Camera Now Choose Yes and the camera will be rebooted for you AutoVision will be disabled while the reboot is in process If you choose No your newly selected protocol will not be active until you manually reboot the camera AutoVision Industrial Protocol User Manual 1 5 Chapter Protocol Switching in AutoVision and FrontRunner 1 6 AutoVision Industrial Protocol User Manual N A 33 Q Z em om i LLI O ES o0 cHaptern2 Using EtherNet IP This section provides information necessary for using the VS 06 in an EtherNet IP environment Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link gt Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 2 1 Chapter Using EtherNet IP
23. c o e O 1 Job Change Test The AutoVision Test will demonstrate communications between the PLC and the current job loaded from AutoVision O l n LL eo x n O Q m If 0 doesn t appear under the Status Value column right click in the USER Demo DemoMode row under the Modify Value column Select Modify or type CTRL F9 to alaei the value DE1010DEnW i R Demo Demol ngi ypa DEB151DEnW 2 USE R Demo DemcMode DEC 1 DE10108X 40 USER Demo ClearCounters BOOL Ej faise DB1010w amp USER Demo Cnunt xecutions DEC amp 3 BEG bey 8 USIA Demo CountPass DEC 33 Jodate Monitor Values DB101 06 10 USER Demo Countf ai DEC 28 Activate Modify Value Fa DRI DBD 4 amp 6 USER Demo MinDistance FLOATING POINT 100 0 DAI0IDBD 20 USER Demo MaxDatance FLOATING PONT 2000 Modify Address to 1 cel D amp B 10108W Z4 USER Dema MinBiabCouri DEL i Modify Address to 0 Cui a D amp 10108 6 USER Demo MaxfliobCount DEL x Cut Cul Xx DB180108D USER Demo ReadDislance FLOATING PONT Dapy Cul If 0 is not entered in the Status Value column of the USER Demo DemoTrigType row enter 0 To start triggering the VS 06 program right click inside the Status Value column of the USER Demo DemorTrigType DB101 DBW 0 row Change the value from 0 to 1 to il Uc and buio the n on the camera DB101 DBW 0 USER Demo DemotTrigl ype DEC E 2 USER Demo Demol ode UN bstencin e
24. di soric AutoVision Industrial Protocol User Manual v6 1 1 January 2014 83 9500126 02 Rev A Copyright 2014 All rights reserved The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and or service di soric manufactured equipment and is not to be released reproduced or used for any other purpose without written permission of di soric Throughout this manual trademarked names might be used We state herein that we are using the names to the benefit of the trademark owner with no intention of infringement Disclaimer The information and specifications described in this manual are subject to change without notice PREFACE CHAPTER 1 CHAPTER 2 CHAPTER 3 CHAPTER 4 CHAPTER 5 CHAPTER 6 Contents Welcome v Purpose of This Manual v Manual Conventions v Protocol Switching in AutoVision and FrontRunner 1 1 Switching between PROFINET and EtherNet IP 1 2 Using EtherNet IP 2 1 VS 06 EtherNet IP 2 2 Assembly Layout 2 4 Connection Properties Class 3 Explicit Messaging 2 14 EtherNet IP Control Status Signal Operation 2 17 Data Type Descriptions and Equivalents in PLC and EDS CIP Environments 2 18 PLC Tags and Serial Command Names 2 19 Allen Bradley AOI Add On Instructions for EtherNet IP Operation 3 1 Rockwell RSLogix 5000 AOI Add On Instructions for di soric Devices 3 2 Allen Bradley PLC Setup via EDS for EtherNet IP Operation 4 1 AB
25. i if there is an icon file ico with the same name as the file s you are registering then this image will be associated with the device To perform an installation test on the file s click Next Rockwell Automation s EDS Wizat i Final Task Summary You can change the graphic image that is associated with a device This is a review of the task you want to complete Product Types You would like to register the following device VS 06 Change icon gi Vendor Specfic Type Click the Finish button to complete the EDS installation Rockwell Automation s EDS Wizar x You have successfully completed the EDS Wizard AutoVision Industrial Protocol User Manual 3 3 CJ 2 Oo i5 25 25 o fc 6 Cc Q ze lt Chapter Right click the Ethernet node on the left pane and select New Module Enter the part number in the filter box to list the device Select the device from the newly added EDS file Double click the device or select and click the Create button to add to the project Enter the name for your device and the IP address then click OK T new roduie General Connection Module Info Intemet Protocol Port Configuration Type GMV 6800 1 006 Vendor ENBT Module Definition Revision Electronic Keying Compatible Module 1 1 Connections 10320 If the reader has multiple assembly sizes the Change button allows you to select the other assembly fo
26. long H Scan MV demo mode 1 Decimal K Scan MV EIP OUT stri EE Scan MV dv err count HE umm c Ii Scan MV FIP OUT VIO __ Scan MV dv fall count Lo e e jio qe RR Scan MV dv rise count Loo beo ee cpm eit ec I Scan MV str28 2x sel Se DN ESTA H Scan MV str92 o Scan MV ExeCmd rise Decimal 1 STRING Scan MV ExeCmdAck fall Decimal Cj Add On Defined Scan MV ExeCmdAck rise Decimal H E Predefined _ Scan_MV_IO_intemal TUEEEU US re Le sem cocum o a 37 mi Qaan MV msteloeada TAB C ryt r 1 21 83 1 0 Confiauration 4 X Monitor Tags A Edit Tags 5 10 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment Expand Scan_MV_IO_user so that the IN Status and OUT Control structures are visible Then scroll the window so Scan MV IO user OUT Control Echo is visible Name n Scan MV ID userlNStatusresemediS 0 GScan MV userlNStatusEcho 0 E Scan MV D useriN Status CmdCodeRis 16 0000 0000 H Scan MV ID userlNStstusEmdet RtScan MV D useriN StatusreseveddG 103 00 Scan MV ID userlN Ststusseserved DA 111 0 REScan MV D werlNStatusStale 1 E HH 5can MV IU user IM Status reservedla 127 Bm l 5ean MV ID user QUT l 5can MV ID user OUT Central Oo ML i Qo 50 ec c un gt pa 20 o 5 ms E ixi 1680000 0000 FR ES ERI ERE ER R
27. 16 bit read only if implicit write is enabled The command code register 32 bit See CmdCode The command argument register 32 bit See CmdArg The command code result register 32 bit See CmdCodeRslt The command return value register 32 bit See CmdRet The device state register 16 bit See State for definitions AutoVision Industrial Protocol User Manual EtherNet IP Control Status Signal Operation N EtherNet IP Control Status Signal Operation Scan MW IO user COLIT Control Tigger sil h TriggerReady AcqBusy camera n TE l WSmusTggmemg O AcaBusy long exposure L A D Q Z em Q C un LLI O E o pide Scan Mw IO internal OUT Control Tigger 1 l2 rpi fps rp 4 IN Status TriggerAck InspBusy camera m IN Status InspStatus IN Status DataValid dedere Event key AB CDE F G H l 4 On rising edge of system trigger the user app activates Scan MV IO usaer OUT Control Triggar to trigger the demo coda B Demo code detects rising edge of Scan MV IO user OUT Control Trigger and if the camera is ready sends a trigger to the camera C Camera acquisition begins may be delayed by one rpi D If the camera s exposure time is shorter than the rpi no change will be seen in TiggerReady and AcqBusy plc IN tags E Camera firmware acks the trigger The demo code may not see the ack until two rpi after the trigger was sent
28. 19 for the value of int110 Each group of 4 bytes represents a 32 bit signed integer value The 64 bytes represent16long integers From bytes 0 3 for the value of long1 through bytes 60 63 forthe value of long16 Each group of 4 bytes represents a 32 bit signed integer value The 64 bytes represent16 long integers From bytes 0 3 for the value of long101 through bytes 60 63 forthe value of long116 Each group of 4 bytes represents a 32 bit signed integer value The 96 bytes represent 24 long integers From byte offsets 0 1 for the value of float1 through byte offsets 92 95 for the value offloat24 Each group of 4 bytes represents a 32 bit signed integer value The 96 bytes represent 24 long integers From bytes 0 3 for the value of float101 through bytes 92 95 for the value of float124 These 96 bytes can store a string of upto 94 8 bit characters with the first 2 bytes containing the storage length and string length values These 96 bytes can store a string of upto 94 8 bit characters with the first 2 bytes containing the storage length and string length values 6 consecutive strings each of 32 bytes can store a string of upto 30 8 bit characters with the first 2 bytes of each string group containing the storage length and string length values 6 consecutive strings each of 32 bytes can store a string of upto 30 8 bit characters with the first 2 bytes of each string group containing the storage length and string length
29. Bees __ Cancel Click the Connections tab on the Edit Device Parameters dialog Click the download button in the middle to register the device Edit Device Parameters 192 168 2 16 CJ2M EIP21 j x M Unregister Device List Product Name Edit All Change Target Node ID To From File New Edit OK Cance AutoVision Industrial Protocol User Manual 7 9 Chapter Omron PLC Setup for EtherNet IP Operation In the lower pane double click the PLC in the registered device list This will open the linking dialog If there are multiple connection types they can be selected from the Connection I O Type menu In the Originator Device section select the Input Tag then the Output Tag Adjust the RPI if needed When done click Regist and then Close It will add a connection configuration to originator device Please configure the T ag Set each of originator device and target device Connection 1 0 Type 10320 M Originator Device M Target Device Mode Address 192 168 215 Node Address 192 168 277 Comment X CJ2M EIP21 Comment Microscan Vision HAWK Input Tag Set Edit Tag Sets Output Tag Set 0300 3208yte Input 102 320Byte Connection Point to Point connection E Type Point to Point connection Output Tag Set Egi Tag Sets Input Tag Set o500 320Byte E Output 1 14 320Byte Drei Point to Point connection y
30. Fail Unknown cmd CmdRet 32 bit The value of CmdRet is only valid when ExeCmdAck is active 1 in response to ExeCmd being active and CmdCodeRslt is 0 Success The following table shows which CmdCodes return data in the CmdRet register CmdRet value Associated CmdCode Meaning 32 bit Ox1000_ 0000 to 0x1300 0000 Job Change type xl800 0000 Active Job Slot Query Active Job Slot AutoVision Industrial Protocol User Manual 2 7 N A 33 Q Z i om prar LLI O ES o0 Chapter Using EtherNet IP State 16 bit State reflects the following operational condition of the camera State Meaning value 16 bit Offline Online Changing Vision lab Booting Empty no Vision Job Booting 3 State This will rarely be seen by the PLC 2 8 Typical action required by the client plc or system operator Perform job change or put camera online Normal runtime operation Monitor TriggerReady and DataValid signals Trigger the camera If camera is under pc control Wait until State changes to Offline or Online If plc is controlling the job change Use ExeCmd CmdCode ExeCmdAck and CmdCodeRslt to complete the operation Wait for camera to transition to Online or Offline Load a new job from AutoVISION or Front Runner AutoVision Industrial Protocol User Manual Assembly Layout N The value of State determines which Control and Status signals are available Control Statu
31. IO user IO IN Status Echo is the same value as the OUT Control Echo E Scan MV ID user IM Status reserved 5 Scan MV ID user IM Status Echa HFH 5can MV ID user IM Status CmdCodeR slt 16840000 0000 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 e IN bool bool1 bool2 and bool3 N long long1 e JN float float1 e N string string1 The demo code will operate the Control and Status signals of the camera regardless of the vision job that is loaded For a more detailed overview of the demo code and vision job see Allen Bradley PLC Setup via Generic Ethernet Module for EtherNet IP Operation To send a trigger to the camera scroll to Scan MV IO user Control Trigger E Scan M ID user OUT Control E seCmd p Scan MW IO user OUT Control Trigger Oo E Scan MW IO user OUT Control reserved3 4 18 AutoVision Industrial Protocol User Manual I AB Rockwell RSLogix 5000 v20 PLC Integration with 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 Scan MV demo xxxx tags and clear the DataValid status signal The Trigger control changes to 0 when the camera is triggered All processing is done when the counter Scan MV dv
32. MARRE ac A SS ne Oe ETRURIAE ERU Tae 40 USER Demo ClearCounters MNA ee uw 7 7 PEE E eer Monitor Pc uS oe Gd Rau quas EE cA E ek eee Modify E a LL IEEE Se Seg LUE as xc o JE CECI MGR idc Sa ce i ccce eee M EN M Eisai en ANTE d nu IE SMS a Sa a Tea A ee JEUNE P tein cuc ee Modify Address to 1 ecc cd A M Mutui AEE e o REN oet Modify Address to 0 DB101 DBW 54 USER Demo MinBlobCount DEC Se ge ud Ui cessa mme xc o GENE o Em gas lee S USER Demo ReadDistance Een RH MAR De FLOATING PONT aaa Boro py E 2 USER Demo ReadBlobCouni M E ET DEC OE 5 Pase Jo oM ET URE SN 205 M TE E uu uL M MK TN DDii DEX 1003 Xp E SE Uu eonim B usu Insert Range of Variables cis cac Re c M dn x Bon ERO Modify Force Value As Comment a POE See cine aaa a SSE ee E hats ea tients E a ECEEEEEEETTIE P aia nee a cee ae ve ame i UII Row Not Effective AutoVision Industrial Protocol User Manual 9 23 Chapter Demo PROFINET PLC Code When the program is triggering the camera each cycle will produce either a pass or fail all state Each state is counted in USER Demo CountPass DB101 DBD 58 USER Demo ReadDistance FLOATING POINT 173 0306 a MM Raum ela AA a a cU C ee nO Bruno Wilco c wo EM as o mec E UON e ee HI c and USER Demo CountFail USER Demo ReadDistance PROG Program JobPass These counters can be cleared by right clicking the row USER Demo
33. Oo t T i Gq Se o o ao m e nes on on So B BS ug eic 3 15 mm E Le 1 Lu 2 E ud CL m E eh Lr e Lr I un m am E c cL m e z Lan a e n I cr r Lu zm ET LL m 3 elk LL m Cl el EL m ma eA m eo Li on cn r lin gu Gu 3 zl lt Cc m cp a O zi m cim cr t E m un on o jlo e ic zy zs 20 Eu ala zia rm a Som c 5 lf Li Cr Cl mI fe i nd Nell l Ted gael Ond Tad I a IC li mo a m Sole li I FL Cl e _ a a w ja lololo lo e m ee ee ee ee re l Scan MV ExeLmd fall Scan Mw ExeLmd rise Scan MV ExeCmd amp ck fall Scan Mw ExeLmda amp ck rise un T cu m Et C T 3 m HE i El HH S5can MW IU user rm HH S5can MV matchcade LABEL CHECK 2080374528 E HH Scan MV trigger count E 1 TERI HH S5can MW trigger er count RM HH Sean MW user events 1 4 A Monitor Tags A Edit Tags JEN AutoVision Industrial Protocol User Manual AB Rockwell RSLogix 5000 v20 PLC Integration with EDS I Expand Scan MV lO user so that the Echo in the IN Status and OUT Control structures is visible Name ajA Scan Mv 0_user IN Statusreserved15 0 eene IO weuNSteusEcho 5 fiScan MV IO userlN Status CmdCodeRist 1640000 0000 REScan MV IO wserlNStatusCmdHet 0l E Scan MV _JD_user IN Stat
34. Simulator E Programs Sgt NewP ho Cc amp amp Validate Symbols ALL Transfer AutoVision Industrial Protocol User Manual 7 3 A C Qo om ao Te ag c2 o0 en Chapter Omron PLC Setup for EtherNet IP Operation To register the I O table double click IO Table and Unit Setup E NewProject fi NewPLC1 CJ2M Stop Program Mode 2 nes v Data Types bee a IET card bes E Error log Select Options gt Create i i PLC 10 Table NewPLC1 Transfer to PLC Transfer from the PLC Compare with PLC Hot Swap Online Add Unit Rack Slot Start Addresses Click Yes at the I O table creation prompt Click Yes at the Initialize CPU bus settings prompt Click Transfer at the transfer prompt Click OK at the results prompt The IO table will now be updated with the current PLC hardware settings T PLC IO Table NewPLC1 loj x Fie Edit View Options Help El amp Built in in Port Inner Board 1525 CJ2M EIP21 Built In EtherNet IP Port for CJ2M Unit 1 1900 Inner Board unmounted di 0000 Main Rack 00 0000 CJ1W ID211 DC Input Unit 01 0001 CJ1W OC201 Relay Output Unit 02 0002 Empty Slot 03 0002 Empty Slot 04 0002 Empty Slot 05 0002 Empty Slot 06 0002 Empty Slot 07 0002 Empty Slot 08 0002 Empty Slot 09 0002 Empty Slot 0002 Rack 01 M 0002 Rack 02 amp 0002 Rack 03
35. event B F Demo code detects TriggerAck and clears the Trigger G Demo code detect falling edge of TrigaerAck and clears the user Trigger H Camera internal signal DataValid will go high when InspBusy goes low Plc logic must delay one rpi time before re asserting ResetDataValid Notes 1 The chart shows the workings of the Trigger and ResetDataValid Control signals and the TriggerAck and DataValid Status signals 2 st plc program scan time 3 rpi Requested Packet Interval Configured in the plc s EIP module connection properties Allowed rpi is 10 ms to 3 2 s 4 All signals represent the state of plc tags except where noted as cameray The cam signals shown are visible in the EIF interface but the state of the plc tags and internal firmware signals will be different for at least one or two requested packet intervals rpi 5 The plc is running the demo coda distributed with the camera The demo code and user app use the Scan MV IO usar tag sat as the primary control status and data interface for the user app All signal operations are still true even if the plc demo code is not used 6 TriggerReady lAcgBusy Camera exposure times can range from less than 1 ms up to 100 ms AutoVision Industrial Protocol User Manual 2 17 Chapter Using EtherNet IP Data Type Descriptions and Equivalents in PLC and EDS CIP Environments AV Description RSLogix Description equivalent 16 bit signed integer INT 16 bit signed integer
36. fall count increments along with the pass fail counters in the Scan MV demo xxxx tags M ame zaje Value TE TER fHScan MV demo blobial count PRE HScan MV demo blobfal count ACC 30 ScanMV _demo_blob faiLcountCU Scan MV demo blobfal counttD Scan MV demo blob fai count DN 1 Sean_MV_demo_blob faiLcount OV g g C5 aT 0 AN Q T c c p gt JH 90 o a Scan Mw dema blob Fal count LI M NE Scan MV demo blob bool HH S5can Mi dema blob long amp HH Sean Mw dema blob long mas 6 4 0 HH Scan Mi dema blob long min m can MW demo bhlab flaat D m Scan Mw dema blob flaat min g 0 Scan MV demo blbios mas 0 i Eum gd WES 1 EiScan MV dyfal cout ACCE l EE can MW dw fal count CU AutoVision Industrial Protocol User Manual 4 19 Chapter Allen Bradley PLC Setup via EDS 4 20 AutoVision Industrial Protocol User Manual capras Allen Bradley PLC Setup via Generic Ethernet Module for EtherNet IP Operation This section describes how to use the Generic Ethernet Module to set up an Allen Bradley PLC for EtherNet IP operation Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use d
37. soric Vscape Firmware eds VS 06 Select an EDS file 7 25 2013 1 18 PM EDS File Rockwell Automation s EDS Wizard Registration Electronic Data Sheet file s will be added to your system for use in Rockwell Automation applications Register a single file Register a directory of EDS files Look in subfolders Mamed CMdi soric Vscape Fimware eds V5 06 di sornc VS 06 32 000010 411 e Browse f there is an icon file ico with the same name as the file s you are registering To perform an installation test on the file s click Next lt Back Net gt Cancel 4 4 AutoVision Industrial Protocol User Manual AB Rockwell RSLogix 5000 v20 PLC Integration with EDS I Click Finish Rockwell Automation s You have successfully completed the EDS Wizard C5 aT 9 AN Qo im c c gt mo t HE LN Open RSLogix 5000 v20 and create the I O Configuration for the base system including the system s Ethernet interface rs RSLogix 5000 Logix5561 in Logix5561 v20 empty ACD 1756 L61 20 11 File Edit View Search Logic Communications Tools Window Hel Baa s e occ v 443 Offline 0 E RUN us Poth No Forces b x OK BAT 4 No Edits ar Vo Redundancy s3 D 4 13 X Fav i m Controller Logix5561 Controller Tags Q Controller Fault Handler amp Power Up Handler 3 8 Tasks MainTask amp i MainProgram C3 Unscheduled Programs Phases 5 6 Motion Group
38. there should be two jobs loaded in the camera s flash memory Using the SIMATIC Manager open VAT 1 Click the Monitor Variable icon On the row USER Demo DemoMode right click and modify to one Right click the row USER Demo DemoTrigType and Modify Address to 1 to start the demo AutoVision should be closed for this demo to work This demo will cycle through loading jobs from slots 1 2 and 3 Each cycle will be counted in the variable table USER Demo CountExecutions The job load success is determined by the camera s status register PNIO Input CmdCodeRsIt 0x0 If the job load is successful the counter USER Demo CountPass will increment If the job load fails when PNIO Input CmdCodeRslt 0x0 then the counter USER Demo CountFail will increment OB1 calls FB1 to process the AutoVision test To view the ladder logic select FB1 right click and select Called Block Open Then select the main menu item Open ONLINE to view processes Network 2 Process AutoVISION Demo based on USER Demo DemoMode 0 Comment DB1 FB1 AUTOVISION TEST EN ENO DB101 DHWZ2 TEMP S5T 500ms DB102 DBHW1 tempState iS Qi 1 EN ENO Cx 16 00000101 257 IN AutoVision Industrial Protocol User Manual e O l n LL i9 x n O D OQ Chapter Demo PROFINET PLC Code 9 26 AutoVision Industrial Protocol User Manual
39. usera Ee BIE Sean users device tags when M EXSeamMVID werlNbod 5 fee BI Star users device tags when M Sean Mv ID werlNbonlboo 1 Decimal BOOL measure status Sean MV ID werlNboslboo2 1 Decimal BOOL decodermatchcode status FSeanMV ID werlNbonlboo3 1 Decimal BOOL blob count status 5 18 AutoVision Industrial Protocol User Manual Integrating the Camera into a PLC Environment Qi If you scroll down to the IN long float and string values you will see the literal results of the vision tools Nae Vatu Sle Data Tye Description Scan MV IOLuseINMI ewe BIE Sean users device tag Scan MV ID userlNbool Ewe BE Sean user s device tag Scan MV JD userni oee Bean user s device tag EbScan MV uerlNlong Ewe BIE Sean user s device tag RHScan MV ID userlNlonglond 4 Decimal DINT Blob count Scan MV ID userlNlonglong O Decimal DINT user s device tac E Scan MV ID userlNlonglona3 O Decimal DINT user s device tag HHScanMV ID useriNlonglongdd O Decimal DINT users device tag Scan MV ID uselNlongloni O Decimal DINT user s device tac Scan MV uselNlonglong O Decimal DINT user s device tag Scan MV ID userlNlonglong O Decimal DINT jusers device tac Scan MV ID userNlonglong
40. values AutoVision Industrial Protocol User Manual CO Slot Data Layout Diagrams Slot Data Layout Diagrams PLC Input PLC Output Slot Byte Offset Data Slot ByteOffset Data i o ms 2 o CONTROL 3 0 jchon EchoOut LL eo na an O i EE 5 o cMDCODERSIT 0 jcMDCODE 7 O jCMDRE 0 jcMDARG re ee eee 10 o VIO129 144 on kf NM com RB M A co amp fF NM oa RB M O one NO on eNO int 110 AutoVision Industrial Protocol User Manual 8 5 Chapter Using PROFINET PLC Input Slot Byte Offset pata 8 6 PLC Output Slot Byte Offset Data AutoVision Industrial Protocol User Manual Co Slot Data Layout Diagrams PLC Input PLC Output Slot ByteOffsetData Slot ByteOffsetData 94 str 1 len gt string 1 30 str 2 len gt string 2 30 str 3 len string 3 30 lt str 4 len gt string 4 30 lt str 5 len gt String 5 30 lt str 6 len gt string 6 AutoVision Industrial Protocol User Manual 94 str 101 len gt string 101 30 str 102 len string 102 30 str 103 len string 103 30 lt str 104 len string 104 30 lt str 105 len string 105 30 str 106 len gt string 106 LLI LL eO ma n O i Chapter Using PROFINET STEP 7 PLC Slot Layout jEceDu 4 Cmd Code Aalt 34 Lmd Code 8 8 E
41. 139 v138 v137 v136 v135 v134 v133 v132 v131 v130 v129 LLI LL eo x n O i VIO Input Register Bits 15 14 13 12 11 10 gJ a 7 6 5 4 3 2 1 v160 v159 v158 v157 v156 v155 v154 v153 v152 v151 v150 v149 v148 v147 v146 v145 Control Camera Control Register 16 bit Each bit of this register controls a function on the camera Transitions from a low state of 0 to a high state of 1 initiate the associated operation The PLC should return the state of the control bit back to 0 after it has acknowledged the camera has processed the control Unused bits should remain O 15 14 13 12 11 10 9 8 yo d 5 8 5s 2 1 0 RESET AE TERSISER BERE RESET RESET GO GO VALID CMD COUNT ERR OFFLINE ONLIME Inspection 1 gt le All Inspections Bit Name Description 0 GOONLINE Start all inspections running 1 GO OFFLINE Stop all inspections 4 RESET ERROR ResetERRORin the Status register 5 RESET COUNT Resetall inspection counts 7 EXE CMD Execute the command specified by Control CmdCode 8 TRIGGER Trigger Inspection 1 The inspection must be configuredfor a triggered Image acquisition 11 RESET DATA Resetthe Data Valid signal of the Status register VALID AutoVision Industrial Protocol User Manual 8 13 Chapter Using PROFINET CmdCode and CmdArg 32 bit Specifies the process invoked in the camera when Control ExeCmd goes active List of Avai
42. 192 256 2 CMD CODE 58 tongiG 132 136 260 IT om 4 134 198 262 D CMD ARG 72 136 200 255 lorg ly Bb a n 270 swingios longi109 EM ee 146 210 274 bool101 116 ga 148 212 276 bongiid bool117 132 Bs 150 rid ITE Bool s3_ 148 Bs ficati0l 152 216 280 booll 9 184 30 154 218 282 jnt101 a ma 155 74 30 imi02 94 158 string101 zs 286 32 in03 96 own 160 22 288 34 intos 38 162 226 290 35 int105 100 qe 164 228 292 38 uz EM 165 230 294 40 104 i68 232 296 42 105 170 234 288 44 108 172 236 300 45 110 174 238 zuingins 48 long101 112 floatl07 176 240 E uU ure 114 die ae 1 8 Isl 306 52 long102 116 flo sr108 io Pit 308 52 EDO EI 118 i TS 182 J46 310 55 long103 12 ficati09 1gs Pat 312 ss 122 185 250 314 99 tongios 135 nomim zum ee B3 125 150 254 318 AutoVision Industrial Protocol User Manual 2 11 Chapter Using EtherNet IP Control Camera Control Register 16 bit Each bit of this register controls a function on the camera Transitions from a low state of 0 to a high state of 1 initiates the associate operation The PLC should return the state of the control bit back to 0 after it has acknowledged the camera has processed the control Unused bits should remain O Inspection 1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 All Inspections Bit Name Description GO ONLINE Start all inspections running GO OFFLINE Stop all inspections RESET ERROR Reset
43. 2 8 bit characters with the first 4 bytes containingthe length value Each of these 32 byte groups can store a string of up to 28 8 bit characters with the first 4 bytes containingthe length value AutoVision Industrial Protocol User Manual Assembly Layout 2 D The input assembly layout is shown here RT Byte Byte Byte Byte Byte lt A sis ee sts T longs Ka 6b 130 194 258 68 longt 132 196 260 LLI S 134 198 262 ey 72 136 200 264 CS as 138 202 266 o 76 longt 140 204 268 m HE 142 206 stringi 270 30 long3 144 208 cont 272 2200 RENI 146 210 274 Ba 148 212 276 E6 150 214 278 g8 152 216 280 30 154 218 282 92 156 220 284 ES 158 222 286 56 150 224 288 58 162 226 290 100 1564 228 292 102 155 230 294 104 floats 168 232 296 105 BENE 170 234 288 108 fom 172 236 300 110 Saks 174 238 302 a float ae ze 114 178 242 306 115 180 244 308 118 182 246 310 120 184 248 312 122 185 250 314 124 188 252 316 125 190 254 318 AutoVision Industrial Protocol User Manual 2 5 Chapter Using EtherNet IP Status Camera Status Register 16 bit Each bit of this register represents a different state of the camera s operation A high value of 1 indicates that state is active true 15 14 13 12 11 10 39 8 7 6 5 4 3 2 1 0 TRIGGER ACQ EXP All Inspections 3 ONLINE EXP BUSY ACO BUSY TRIGGER READY
44. 50 c c un gt pa 20 lt q Import Content Configure Tag References MainT ask E c ae lmpotMame Operation _ a FinalName Lis be EK M ainHoutine R ungs Y E l E o Camera Undefined Cameal Y A Tags Camera Undelined Lig 3 eA Data Types Scan MV Lm Scan MV Lmd r v Be Other Components Scan Mv Dm scan MW CmdCo B Errors w amings Scan MV Cm Scan MV CmudCa can Mw DmaH an M v const Scan MW con Create E an MY const ADATTAT e enu on e an MW const D Scan MW Crm un sis eee lid iones un can MY const Scan MW const Click Camera l and click the down arrow then double click the Scan MV lI that appears below it ENT x lt Find ala Find Replace Find Within Final Name Import Content MainT asl Configure T ag References E wem import Name Operation FialName r AlasFor Data Type Description Pr En MainRoutine Rungs Om References eT Camera Undefined Scan Mv vj T Fy Tags B Camera Undefined _J T Show fan Tags m Er W Data Types Scan MV Cm Create Y 3 Other Components Scan MV Cm Create E 8 Errors Wamings pmi m Scan MV Cm Create J Scan MV Cm Create HJ Scan MV con Create J Scan MV con Create E E
45. 50 1 192 168 250 2 LJ2HM EIP21 v5 06 Change IP Address Mew IF Address 132 158 2 16 Double click the PLC icon to edit the device parameters This is where you will be linking and mapping the EtherNet IP assembly data to the internal memory of the PLC Select the Tag Sets tab Select the In Consume tab at the top Click Edit Tags below Then click New to edit create a new tag In this example we are naming this tag 300 for the peripheral memory linked to the input data Select the size 320 bytes for the entire input assembly Click Regist then Close to continue xi Tag Sets muc x sc In Consume Name x Name Size 24 Byte Use Bit Data C D Bit New Ed elete Edit Tags Usage Count 0 32 OK RE Total Size 0 1280 7 8 AutoVision Industrial Protocol User Manual Setting Up an Omron PLC Select the Out Produce tab and then click New For the output assembly you are going to map to peripheral memory address 500 with 320 bytes Click Regist and then Close Click OK on the Edit Tags dialog When prompted to register new tags click Yes rs 192 168 2 16 C X A C Qo om ao 0o EE c2 o0 en x Name 500 Size 320 Use Bit Data Bit Size a Bit Byte M Over Load C Disable Enable ae Edit Tags Usage Count 1 32 OK Cancel oERTee Total Size 320 1280
46. C or system a value operator amp 5 16 hit 0 Offline Perform job change or put camera online 1 Online Normal runtime operation Monitor TriggerReady and DataValid signals Trigger the camera 2 Changing If camera is under pc control Vision lob Wait until State changes to Offline or Online If PLC is controlling the job change Use ExeCmd CmdCode ExeCmdAck and CmdCodeRslt to complete the operation 3 Booting Wait for camera to transition to Online or Offline 4 Empty no Load a new job from AutoVISION or Front Runner Vision Jab Booting 3 State This will rarely be seen bythe PLC AutoVision Industrial Protocol User Manual 8 11 Chapter Using PROFINET The value of State determines which Control and Status signals are available Control Status State 0 1 Offline Online Control GO ONLINE Y GO OFFLINE Y RESET ERROR RESET COUNT Y Y EXE CMD Y Y TRIGGER Y RESET DATA VALID Y Status ONLINE Y Y ERROR RESET COUNT ACK Y Y EXE CMD ACK Y Y EXP BUSY Y ACO BUSY Y TRIGGER READY TRIGGER ACK Y INSP BUSY Y INSP STAT Y DATA VALID y Where Y Signal is valid for this State Empty cell Signal is notvalid for this State 8 12 2 3 4 Job Booting Empty Change Y Y Y Y T Y Y AutoVision Industrial Protocol User Manual Co STEP 7 PLC Slot Layout VIO Output Register Bits 15 14 13 12 11 l0 9 8 i 6 gt a 3 2 1 0 v144 v143 v142 v141 v140 v
47. ClearCounters and selecting Modify Address to 1 DB104 DBW 10 i USER Demo CountFail The tolerances are below the counters The inspection values and status bits are below the tolerances DB101 DBD 46 USER Demo MinDistance FLOATING POINT 100 0 DU NO T CU ee aeo DEiIDEW si USER Dono MinBiobGound e SNR dd b uu uiua wc AEN In some instances a large job could take longer to load Increment the delay time to adjust for job size The image below shows Function Block 4 Network 6 where the delay is located Network ei 3 WAIT JOB CHANGE This delay is for the new job to load 7 10 seconds based on size of job in flash 3 S5ST 10S Current ftestState m State testState jIN2 PROG Program CurrentSta te 9 24 AutoVision Industrial Protocol User Manual STEP 7 Setup To run the Job Change Test you first need to use AutoVision to download another job to slot 2 on the camera In AutoVision connect to the camera and select the Connect icon at the top of the user interface Click the Load a Job icon Locate PNIO demo job2 avp and click the Open button Once the job has loaded into AutoVision click the Edit button at the top of the user interface Then click Save the Job to a Slot on the camera icon in the menu at the top of the user interface Select New Slot which should be 2 When switching between tests disable the current routine by setting the USER Demo DemorTrigType to 0 Now
48. ERRORin the Status register RESET COUNT Resetall inspection counts EXE CMD Execute the command specified by Control CmdCode TRIGGER Trigger Inspection 1 The inspection must be configured for a triggered image acquisition RESET DATA Resetthe Data Valid signal of the Status register VALID CmdCode and CmdArg 32 bit Specifies the process invoked in the camera when Control ExeCmd goes active List of available CmdCodes and associated CmdArg Cm dcCode CmdArg Job Slot 1 255 Job Slot 1 255 Job Slot 1 255 Job Slot 1 255 na Operations performed Go Offline Load job from specified slot Go Offline Load job from specified slot Go Online Go Offline Load job from specified slot Make it the boot job Go Offline Load job from specified slot Make it the boot job and Go Online Query active job slot CmdRet will contain the active job slot number when the peration is done AutoVision Industrial Protocol User Manual Assembly Layout N CmdCode and ExeCmd Operation OUT Control CmdCode CmdArg ExeCmd IN Status ExeCmdAck ET ail mim A 33 Q Z i om n LLI O _ OUT Control GoOffline OUT Control GoOnline OUT Control ResetCount OUT Control ResetDataValid AN Status DataValid AN Status Error A B C D E F Event key A If DataValid or Error are present clear them Set the following control signals idle and keep them idle wh
49. Ele Reliance Ele Reliance Ele Allen Bradley Allen Bradley Allen Bradley Allen Bradley Allen Bradley Allen Bradley Category DPI to EtherNet IP DPI to EtherNet IP DPI to EtherNet IP DPI to EtherNet IP DPI to EtherNet IP MDI to EtherNet IP MDI to EtherNet IP Drive Drive Drive Drive Drive Drive Yv 200 of 200 Module Types Found Add to Favorites Close on Create AutoVision Industrial Protocol User Manual AB Rockwell RSLogix 5000 v20 PLC Integration with EDS Clear the Module Type Vendor Filters Catalog Module Discovery Favorites Enter Search Text for Module Type Clear Filters Hide Filters Module Type Category Filters Module Type Vendor Filters BU icommunication gt Allen Bradley Controller Endress Hauser Digital Mettler Toledo DPIto EtherNet IP a Catalog Number Description Vendor Category 0 of 200 Module Types Found Add to Favorites v Close on Create Close Help Scroll down the Module Type Vendor Filters until di soric comes into view then select di soric AutoVision Industrial Protocol User Manual 4 7 I C5 t 0 AN Q 5M c c um gt JH 90 o Chapter Allen Bradley PLC Setup via EDS Click the required camera and click Create The New Module dialog is displayed Type a unique name for this camera and its IP address ET General Connection Module Info Internet P
50. EtherNet IP PLC Code Glossary of Terms The following terms are used in the description of di soric s demo PLC program Camera The di soric Smart Camera used in this application which has an EtherNet IP communication interface User App The PLC logic code written by the end user or system integrator Demo Code The PLC logic code distributed by di soric that can be imported into the PLC s ladder logic area It encapsulates most of the device Control and otatus management The demo code expects a demo vision job loaded on the camera However the demo code will operate whether or not the demo vision job is loaded on the camera Activate Set High Writing a 1 value to a single Control bit or any other bool bit Active A Control Status bool or PLC logic contact in a 1 state Clear A Control Status bool or PLC logic contact in a O state One Shot A PLC tag write operation that is performed once typically in reaction to an event After a one shot operation the PLC logic does not write to the same tag again unless another event occurs 6 2 AutoVision Industrial Protocol User Manual Demo Setup Demo Setup Vision Job Setup The EtherNet IP demo files can be found where AutoVision is installed where the default folder is C di soric Vscape Tutorials and Samples VS O6 EIP demo O Q Q I Tm Q z Q C n LLI O Q c 1 Open EIP_demo avp with AutoVision 2 To use pre defined i
51. JbChg MkBt Source Scan MV const CmdCode JbChg MKkBt Online Ungrouped Axes 402653184 268435456 301989888 3187671044 Add On Instructions Dest Scan_MV_const_CmdCode_GetActiveJb Dest Scan_MV_const_CmdCode_JbChg Dest Scan_MV_const_CmdCode_JbChg_MkBt Dest Scan_MV_const_CmdCode_JbChg_MkBt_Online E Data Types 402653184 268435456 301989888 318767104 E i User Defined Fux Mere EE 5 EA 55A A A A A R MV EI Go Offline Load Job Scan MV ETP IN bool specified by LSB Go Job Change failed PC Ul is controlling Job Change failed Scan MV EIP IN fiat Online No job in slot the camera Unknown CmdCode Scan MV EIP IN int MOV MOV MOV MOV Scan MV EIP IN long Move Move Move Move Lp Scan MV EIP IN Status Source Scan MV const CmdCode JbChg Online Source Scan MV const CmdCodeRIst Fail No Job Source Scan MV const CmdCodeRIst Fail UI Source Scan MV const CmdCodeRIst Fail Unk Cmd Scan MV EIP IN string 285212672 33554432 16777216 50331648 Scan MV EIP IN VIO Dest Scan MV const CmdCode JbChg Online Dest Scan MV const CmdCodeRist Fail No Job Dest Scan MV const CmdCodeRIst Fail Ul Dest Scan MV const CmdCodeRist Fail Unk Cmd RI Scan MV EIP IO 285212672 33554432 16777216 50331648 Scan MV EIP OUT Scan MV EIP OUT bool Scan MV EIP OUT Control 4 bed meas o H E constant value Do constant value Do constant value Do Comp
52. LC sees an active ExeCmdAck varity CmdCodeRsit is 0 and Error is 0 Process CmdRelt if needed then clear ExeCmd E Camera clears ExeCmdAck when ExeCmd goes inactive When ExeCmdAck goes inactive CmdCodeRsiL and Cmdiel ane no longer valid and it may take a few seconds for tha camera State and Online signals fp settle to a final value typically Online or Offline F Camera can now be put online and triggered Notes st PLC program scan time ct Command processing time in tha camera May take up to a minute for some commands rpi Requested Packet Interval Configured in the pic s EIF module connection properties Allowed mpi is 10 ms to 3 2 s All signals represent the state of plc tags 8 14 AutoVision Industrial Protocol User Manual STEP 7 PLC Slot Layout CO PROFINET Control Status Signal Operation Tes NN ICI ia LT Coni Trier Camara IN Sats TriqgerReady T Laer Busy org exposure LLI Z LL eo c n O N _ IN Statue TriggerAck InspBusy e 1 r camara lI IN Saws Inspatatus i i 3 IN 5 3 us Da za valid OUT Contral ResetDiata valid Ert AB CDE F E H A On rising edge of sysiem rigger the weer app acivates can MV ICI user CRIT Control Trigger to tigger the demo code E Domno onde dretects izing edge of Scan MV O user OUT Canal Trigger and if the camara is ready sends a trigger to the camera C Camera acquisition bogre may be delayed by one
53. MV I werlNsting deele Sean users device tags Scan MV ID werlNsmngsting Scan Decode text This is equivalent to the AutoVision inspection report AutoVision Industrial Protocol User Manual 5 21 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Parameterize the Camera Again The Measure and Count Blob tools can be parameterized by the PLC so they always pass The Decode Tool can be parameterized so it always fails either due to no decode or a Match Strings mismatch Scroll the tag window so OUT long float and string are visible then change them as shown below Name z amp Value Style Data Typ Description Constant HH Scan MV IO user OUT VIO LH Sean user s device tags when MV demo mode is 1 or 2 HH Scan MV IO user OLIT bool do Scan user s device tags when MV demo mode is 1 or 2 HH Scan MV IO user OLIT int LH Scan user s device tags when MV demo mode is 1 or 2 Scan MV IO user OLIT long LH Sean s device tags when MV demo mode is 1 or 2 Scan MV ID user UT longlongiO 4 Decimal DINT Blob count must be equal to or higher than this to pass E Scan MV ID userDUTlonglongiD2 6 Decimal DINT Blobcountmustbeequalloorlowerthanthistopass Scan MV 10 userOUTlenglongi 3 Decimal DINT user s device tags when MV demo mode is 1 or 2 oL oL HH Scan MV IO user OLIT long long1U5 0 il oL
54. OL decode matchcade BOOL blab count status ecimal ecimal ecimal mA ca E B Li Li p AutoVision Industrial Protocol User Manual 5 23 Chapter Allen Bradley PLC Setup via Generic Ethernet Module 5 24 AutoVision Industrial Protocol User Manual O Q Q m Q z i Q C n LLI O Q c cnaptere Demo EtherNet IP PLC Code This section describes how to use di soric demo PLC code with a vision job and camera target The EtherNet IP demo files can be found where AutoVision is installed in the folder C di soric Vscape Tutorials and Samples VS 06 EIP demo Open the EIP demo avp with AutoVision and download it to the camera During PLC integration import the 32 000003 2 L5X file to create the camera s demo tags and ladder logic Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 6 1 Chapter Demo
55. PN DP CPU is in the STOP A mode Do you want to start the module now complete restart aA 9 20 AutoVision Industrial Protocol User Manual Note This is the address mapping view of the VS 06 module which is derived from the hardware config view Refer to page 9 10 for details on displaying the hardware config view Refer to page 9 15 for details on displaying VS 06 address mapping MP Update PROFINET Input data block from device match address assigned from Step 7 on hardware dialog STEP 7 Setup 9 O aul Q E LLI z LL ad Q O Diagnoz DUE fr Q CUP CU PES NH Order number address O address Handle PNIO input 7 gm data block AY g mem PNIO INPUT DATA AeA Rf jEchon Jp 5M J CmdCodeRst e32 535 O gvidin oen OE j BooleanQut J 1 LongStingln Mesa Short Sting Dut S j Short Stingin aaa Repeat the same steps for Network 5 to update the output data mapping Keep in mind that all input addresses are under the I address column and the output addresses are under the Q address column Save to the PC and download to the PLC Do a master reset and set the PLC to RUN mode Make sure all LEDs indicate good AutoVision Industrial Protocol User Manual 9 21 Chapter Demo PROFINET PLC Code Running the Demo 9 22 In the SIMATIC Manager dialog double click the VAT 1 icon This will open the variable table dialog for the data
56. R CREER ERR RR LR Li Li AutoVision Industrial Protocol User Manual 5 11 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Change OUT Control Echo to non zero m TEA Value L _ Hi Scan_MV_I0_userIN StatusreservedT 04111 L Scan MV _IO_userIN StatusState aL L Scan MV ID userlN Ststusreservedl20 127 0 L HiScamnMVI DuemINMO e L BiScan MV IO werlNbool tee E Scan MvO werlNin ee E Scan Mv IO_userINlong O Oooo eed L Scan MV D userIM foat eel d Sean MV ID user OUT Fasal l 5can MV ID user OUT Control Isl Scan MV IO userDUT ConwolBoOmine _ Scan MV Q userDUT ConwolBo fine Scan MV Q user DUT Contolreseved Scan MV IQ userDUT Contolreseved _ Scan MV IQ user DUT ContolResetEmor Scan MV IQ user DUT ConwolHesetCount Scan MV Q userDUT Contolreseved _ Scan MV IO userDUT ConwolEkeCmd Scan MV IQ userDUT ConwolTigger Scan MV IQ user DUT Contolresevedd Scan MV Q user DUT ContolresevediQ Scan MV IQ use OUT Control ResetD ataValid Scan MV IQ user DUT Contolreserved 2 Scan MV IQ user DUT Contolreservedi3 Scan MV IQ userDUT Contolreservedid Scan MV IO user DUT Contolreservedit 1680000 0000 F E nan kA LD r ors bol rm auci Monitor Tags A Edit Tags 7 7 E fil 5 12 AutoVision Industrial Protocol User Manual Qi Integrat
57. Rockwell RSLogix 5000 v20 PLC Integration with EDS 4 2 Allen Bradley PLC Setup via Generic Ethernet Module for EtherNet IP Operation 5 1 Integrating the Camera into a PLC Environment 5 2 Demo EtherNet IP PLC Code 6 1 Glossary of Terms 6 2 Demo Setup 6 3 AutoVision Industrial Protocol User Manual iii Contents Description of PLC Tags 6 6 Run the Camera Runtime Operation of EtherNet IP Demo 6 16 CHAPTER 7 Omron PLC Setup for EtherNet IP Operation 7 1 Setting Up an Omron PLC 7 2 CHAPTER 8 Using PROFINET 8 1 VS 06 PROFINET 8 2 Slot Data Layout Diagrams 8 5 STEP 7 PLC Slot Layout 8 8 CHAPTER 9 Demo PROFINET PLC Code 9 1 Overview 9 2 AutoVision Setup 9 3 STEP 7 Setup 9 7 iv AutoVision Industrial Protocol User Manual Preface prerace Welcome Purpose of This Manual This manual contains detailed information about how to configure and deploy EtherNet IP and PROFINET based applications using AutoVision and the VS 06 Smart Camera Manual Conventions The following typographical conventions are used throughout this manual e Items emphasizing important information are bolded e Menu selections menu items and entries in screen images are indicated as Run triggered Modify etc AutoVision Industrial Protocol User Manual V Preface vi AutoVision Industrial Protocol User Manual n O ES M ems O gt Un O S O T O i Q cur Protocol Switching in AutoVision and Front
58. Runner This section describes how to switch the VS 06 between EtherNet IP and PROFINET operation using AutoVision or FrontRunner AutoVision Industrial Protocol User Manual 1 1 Chapter Protocol Switching in AutoVision and FrontRunner Switching between PROFINET and EtherNet IP FrontRunner Go to the File menu and select Configure Device Go to the Industrial Protocols tab TCP Ports Auto Button Industrial Protocols Iw Enable Ethernet lP Enable Frafinetlti 1 2 AutoVision Industrial Protocol User Manual s Switching between PROFINET and EtherNet IP Note When changing protocols the camera must be rebooted before the change will take effect After clicking OK you will be given the option to reboot the camera now or at a later time O E C O gt Un O S O r O i Q If you choose No your newly selected protocol will not be active AutoVision Industrial Protocol User Manual 1 3 Chapter Protocol Switching in AutoVision and FrontRunner AutoVision In the Connect view and with a VS 06 selected open Details and select the desired protocol from the Industrial Protocol dropdown menu Industrial Protocol none Serial Port EtherNet IP Baud Rate PROFINET Data Bits E Parity stop Bits Flow Control AutoVision Industrial Protocol User Manual Switching between PROFINET and EtherNet IP Note A change to Industrial Protocol requires a reboot of the camera
59. TT a an a O 0 o pooo O 352 37 NENNEN 372 435 REN 256 35 NENNEN 436 531 a AutoVision Industrial Protocol User Manual 8 STEP 7 PLC Slot Layout LI Status Camera Status Register 16 bit z LL Each bit of this register represents a signal that displays the camera s operational status O A high value of 1 indicates that the signal is active true A 15 14 13 12 11 i 9 8 7 6 5 4 3 2 1 0 2 EXE DATA INSP INSP TRIGGER TRIGGER ACO o VALID STAT BUSY ACK mud pin ERROR aean BUSY Inspection 1 E All Inspections Bit Name Description 0 ONLINE Inspections are running 1 EXP BUSY The camerais busy capturing an image The camerashould notbe triggered or the part under inspection moved during this time if illuminated 2 ACO BUSY The camerais busy acquiring an image The camera cannot be triggered while busy 3 TRIGGER READY The camera is ready to be triggered This is equivalentto ONLINE 1 and ACO BUSY 0 4 ERROR An error has occurred Set the RESET ERROR control bit high to clear 5 RESET COUNTACK This bit mirrors the RESET COUNT control bit The PLC can be certain the reset command was received by the camera whenthis goes high The PLC canthen bring the RESET COUNT control signal back low 7 EXE CMD ACK This bit mirrors the EXE CMD control bit 8 TRIGGER ACK This bit mirr
60. address 132 1682 10 M Do not use router Subnet mask 255 55 2755 0 Use different method to obtain IP address Mida nnn Subnet Once the CPU has been added add any additional expansion modules if installed Click the CPU on the left pane and the bottom pane will list the available ports and slots AutoVision Industrial Protocol User Manual 9 13 Chapter 9 14 Demo PROFINET PLC Code Add the camera in the location PROFINET I O gt Additional Field Devices gt General gt di soric The camera can be added by drag and drop to Ethernet 1 PROFINET I O System 100 or by selecting the Ethernet 1 line first and double clicking the camera Once the camera has been added the icon will appear on the configuration dialog MEZRIIECUOINCS E ion 5 nfiguration Erhemet 1 PROFINET IO Syste M CPU 315 2 PN DP I wen M PAO I Fot Once the camera has been added double click the icon to open the properties dialog Under the device name enter the existing name of the camera or a unique name Hede in PROFINET O System IP address 182 16802 9 asy IP address via IC controller AutoVision Industrial Protocol User Manual e STEP 7 Setup If a unique name is used the device has to be manually updated View Updating camera name section Click the camera icon and the data slot address mapping will be displayed below Take note of the address values since they will be needed in t
61. aging All Class 1 I O assembly data and additional data are accessible via Explicit message Input data VS 06 to PLC Client occupies attributes 1 to 100 of the classes Output data PLC Client to VS 06 occupies attributes 101 to 200 Service e Get Attribute Single OxE e Set Attribute Single 0x10 Classes e bool 104 0x68 e int 105 0x69 e long 106 0x6A e float 107 0x6B e string 108 0x6C e control status mixed data types 109 0x6D Instance 1 Attribute e 1to 100 In to PLC Client e 101 to 200 Out to VS 06 2 14 AutoVision Industrial Protocol User Manual 2 Connection Properties Class 3 Explicit Messaging oO gt Attribute Layout T Z When using explicit EtherNet IP messaging all global data objects can be read or written g Each data type is stored in its own class object and an instance of 1 to read the global ii data For example to read float2 the EtherNet IP request would be for Service Code 14 OxE Class 107 0x6B Instance 1 Attribute 2 c Class 104 Class 105 Class 106 Class 107 Class 108 Class 108 5 Attri Attrl Attra Attri Attire 1 inti 1 longi 1 floati 1 string 1 Fi int2 2 longa float2 2 string 2 3 ints 3 longs 3 floats 3 strings 3 a inta 4 longa 4 flaat stringa 4 5 int5 5 longs 5 floats 5 strings 5 6 inte 6 long 6 float 6 strings 6 ECHO 7 int7 7 long 7 float 7 string 7 CMDCODE 8 inti 8 longa 8 floats 8 strings amp CMD ARG
62. ags H Scan MV ID userlNlonglong O Decimal DINT user s device tags Scan MV ID useriNlonglongg O Decimal DINT users device tags HiScan MV ID useriNlonglong O Decimal DINT user s device tags H Scan MV ID userlNlonglong O Decimal BINT user s device tags Hl Scan MV ID useriNlonglongi O Decimal DINT user s device tags Oo ML i Qo 50 ec c un gt pa 23 LN Scan MV JD userlN onglongi Decimal DINT user s device tags Hl 5can_ MV ID user IM float mE Be users device tags Scan MV JO userlN loatiloal 59 406998 Float REAL Measure value Scan Mv userlMfoatios2 00 Float REAL users device tags Scan Mv 10_userIN floattloat3 00 Float REAL users device tags Scan MV D uselMfoatost 00 Float REAL user s device tags ME SEDE E TD UN Scan MV IOLuseriNfloatfiost 0 0 Float REAL user s device tags Scan MV ID uerlNflat bs 0 0 Float REAL user s device tags Scan MV ID useriNfbat n 0 0 Fat REAL user s device tans M 5can Mv I0 uerlNfbatios 0 0 Float REAL _ users device tags Scan MvO uwerlNfbstiost 0 0 Float REAL user s device tags SeanMVIO ueeriNflatioariD 0 0 Float REAL users device tans EP ean
63. anual 8 15 Chapter Using PROFINET 8 16 AutoVision Industrial Protocol User Manual e O l n LL eo x n O D OQ cameras Demo PROFINET PLC Code This section describes how to use di soric demo PLC code with a vision job and camera target The PROFINET demo files can be found where AutoVision is installed in the folder C di soric Vscape Tutorials and Samples VS 06 PROFINET demo Open PNIO Demo avp and PNIO demo job2 avp with AutoVision and download them to the camera Notes e The camera communications protocol must be enabled for PROFINET before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate PROFINET communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 9 1 Chapter Overview Demo PROFINET PLC Code In this demonstration you will learn how to load a saved job into the camera establish connectivity via PROFINET to a Siemens S7 PLC and run some example programs that interface with the camera While evaluating PROFINET capabilities you w
64. ation Tool Rockwell Software FactoryTalk Administration Console Lk BOOTP DHCP Server FactoryTalk Activation d FactoryTalk Tools Lk RSLinx hy RSLinx Classic Backup Restore Uti E RSLinx Classic Launch Control Par RSLinx Classic Online Reference iy RsLinx Classic i Tools ag EDS Hardware Installation Tox SPC Test Client AT OPCTest Document 4 2 AutoVision Industrial Protocol User Manual AB Rockwell RSLogix 5000 v20 PLC Integration with EDS Select Add Launch the EDS Wizard and add selected hardware descnphon tes end ossoGeted components onh Launch the EDS Wizard and remove selected hardware descnption ies and associated components only Remove all previoushy mstalled hardware descnption thes end associated components from your computer Select Browse Electronic Data Sheet file s will be added to your system for use in Rockwell Automaton amp pphcatons Regte a ginge tle C Regeter a derectory of EDS files Named there r an icon Ble sco with the same name as the Gels you are regestenng then thes To perform an installabon Nest on the file s check Ned Nes gt Cancel AutoVision Industrial Protocol User Manual 4 3 I C5 aT 9 AN Qo im c c gt mo t HE LN Chapter Allen Bradley PLC Setup via EDS Navigate to the VS 06 EDS file then Open it The default install location is C di
65. camera when Control ExeCmd goes active See CmdCode for definitions Additional argument data for the CmdCode See CmdArg for definition Reservedforfuture use Each bit reflects the state of a virtual IO point The least significant bit reflects vio point 129 the most significant bit is vio point 144 Reservedforfuture use Each bit represents a boolvalue The least significant bit of byte 20 writes the value of bool101 The most significant bit of byte 27 writes bool164 Each pair of sequential bytes represents a16 bit signed integer value The 20 bytes represent10 integers From bytes 28 amp 29 to write the value of int101 through bytes 46 amp 67 for the value of int110 Each group of 4 bytes represents a 32 bit signed integer value The 40 bytes represent 10 long integers From bytes 48 51 for the value of long101 through bytes 84 87 for the value of long110 Each group of 4 bytes represents a 32 bit signed integer value The 40 bytes represent 10 long integers From bytes 48 51 for the value of long101 through bytes 84 87 for the value of long110 These 96 bytes can store a string of upto 92 bytes with the first 4 bytes containingthe length value Each of these 32 byte groups can store a string of up to 28 bytes with the first 4 bytes containing the length value AutoVision Industrial Protocol User Manual Assembly Layout P Qn ET The output assembly layout is shown here RT Z te lo Byte Byte Byte i 64 longis 128
66. d camera have successful two way communication FH 1640000 0000 AutoVision Industrial Protocol User Manual 5 13 Chapter Allen Bradley PLC Setup via Generic Ethernet Module To send a trigger to the camera scroll to Scan MV IO user Control Trigger E afe E Scan MV userlNint fad Scan MV I0_user OUT ContolGoOnine Scan MV I0_user OUT Control Go0liine Scan MV ID userDUT Contolreseved2 Scan MV IO user DLT Contolreseved Scan MV IO userDUT ContolHeseEmor E JD user DUT Control EN _user OUT Control EE user DUT Control EE user OUT ControLTm can MW IO user OUT Control RA esetCount Scan MV ID userQUT Control reservedb can MM ID user QUT Control E seCmd can MY IO userQUT Control Trigger Scan MY ID user OUT Control resenvedd 5 14 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment Set the Trigger to 1 This causes the demo code to trigger the camera process the new inspection data record the results in the Scan MV demo xxxx tags and clear the DataValid status signal The Trigger control changes to 0 when the camera is triggered The Scan MV dv fall count and pass fail counters in the Scan MV demo xxxx tags increment when all processing is done For example Mame zaje Value Cetsca dem pe E E i oe M Idi Ese NV cene theca RE on L Ssmo deme bebpes courae ef DIT eec
67. dCode JbChg Online Go Offline Load Job specified by LSB Go Online Scan MV const CmdCodeRIst Fail No Job Job Change failed No job in slot Scan MV const CmdCodeRIst Fail UI PC UI is controlling the camera Scan MV const CmdCodeRIst Fail Unk Cmd Job Change failed Unknown CmdCode Scan MV const CmdCodeRIst Success Completed operation OK The ExeCmd CmdCode and CmdArg controls are used in combination with these Status signals Controlsignal Status signal The demo code records the final result of the command operation by copying CmdCode CmdArg CmdCodeRslt and CmdRet to the following tags Source Control Status tag Final result tag Scan MV IO user OUT Control ExeCmd Scan MV CmdcCode last Scan MV IO user OUT Control CmdArg Scan MV CmdArg last Scan MV IO internal IN Status CmdCodeRslt Scan MV CmdCodeRslt last Scan MV IO internal IN 5tatus CmdRet Scan MV Cmd Ret last AutoVision Industrial Protocol User Manual 6 9 Chapter 6 10 Demo EtherNet IP PLC Code The demo code will automate the command process when Scan MV demo mode is 1 which is the default value at program startup similar to how it assists the Triggering and DataValid Controls The PLC integrator can initiate command operation by accessing the demo code s Scan MV 1O user tag set for Control and Status signals While a command operation is active the demo code forces all Control signals to an inactive state except for the Echo No Controls can be ac
68. dd On Instructions Data Types C User Defined Cg Strings Ep Add On Defined xg Predefined Cj Module Defined Trends 1 0 Configuration 89 1756 Backplane 1756 A4 fa 0 1756 L61 ControlLogix5561 E 3 1756 ENBT A eip ax Ethernet Add the camera by right clicking the Ethernet interface and selecting New Module zi 3 I O Configuration 9 1756 Backplane 1756 44 fa 0 1756 L61 ContralLagixB561 Pl 3 1756 EMBT A eip zx zig da i New Module 5 2 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment Select ETHERNET MODULE Generic Ethernet Module and click OK Bl Select Module Description 1 734 AEMT 1794 10 100 Mbps Ethernet Adapter Twisked Pair Media 1734 AEMT B 1794 10 100 Mbps Ethernet Adapter Twisked Pair Media 2364F RaGLI EN1 2364F Regen Bus Supply via 1203 EN1 Drivelagix5730 Ethernet 10 100 Mbps Ethernet Port on DriveLagix5730 ETHERNET BRIDGE Generic EtherNetfIP CIP Bridge ETHERMET IMODLILE Generic Ethernet Module ETHERNET PANELVIEW Ethernet IP Panelview EtherMet IP SoftLogixS800 EkherMaeE TP PowerFlex 4 E PowerFlex 4 Drive via 22 COMM E PowerFlex 40 E PowerFlex 40 Drive via 22 COMM E PowerFlex 40P E PowerFlex 40P Drive via 22 COMM E PowerFlex 70 EC E PowerFlex 70 EC Drive via 20 COMM E PowerFlex 70 E PowerFlex 70 Drive via 20 COMM E Oo ML i Qo 50 ec c un gt pa 20 o gt Find Add Favarite
69. defined L NC Note Be sure the path to the PLC has been set in the project so that communications to the PLC can be established Path AB ETHIP 1 10 20 1 247 z AutoVision Industrial Protocol User Manual 5 9 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Once the program has downloaded make sure the PLC is in Run Mode fe RSLogix 5000 ControlLogix5561 in Logix5561_ E File Edit View Search Logic Communications Tools Eid E E olele a el user events Hem Run HE EB Run Mode m Mao Forces Go Offline t No Edits Werde 4 Redundancy Download i B al P EX Controller Program Mode Cul suum a i adio Run Mode I an Contr ID Pawg Test Mode nuauum Ex Tasks uH c pa Cla sr Ez ilte To open the Program Tags double click Program Tags then select the Monitor Tags tab at the bottom of the tag window Controller Organizer vix Scope Ci MainProgram Show All Tags Jk amp Tasks MainTask Name za Value Force Mask Style MainProgram c Scan MV CmdRet last 1 ecima e E Scan MV CmdRet I Decimal Program Tage E Scan MV const CmdCode GetActiveJb 402653184 Decimal iun En eee E Scan MV const CmdCode JbCha 268435456 boo o Decimal ip spacia dins TIC ET Scan MV const CmdCode JbChg MKBt 3o1989888 Decimal On tngeuped Aure
70. downloaded set the PLC to Run Mode Rem Run No Forces No Edits LL j abed ues Fey E B Run Mode Go Offline Controller Properties Note Be sure the path to the PLC has been set in the project so that communications to the PLC can be established Path AB_ETHIP 1410 20 1 247 E Open the Program Tags window and select the Monitor Tags tab at the bottom Expand the input and output data assemblies Expand the WriteData element and expand CONTROL to locate bit 8 which is the trigger bit Enter a 1 to toggle the bit which will trigger a read PN Monitor Tags 3 10 a K Est Tags Name z2 Value 4 Style ReadData long8 0 Decimal FE ReadData long3 o Decimal ReadD ata long10 0 Decimal ReadData float 173 0306 Float f ReadData float2 __0 0 Float ReadData float3 0 0 Float ReadDala float 0 0 Float ReadData floatS 0 0 Float ReadData float6 0 0 Float ReadData float 0 0 Float E ReadData float8 0 0 _ Float __ ReadData floats 0 0 Float ReadDatafloat10 0 0 Float E ReadD ata string ea ReadD ata string2 if ReadD ata string3 Clg E ReadData stings EST E Reader t e Trigger 1 Decimal Ew eDaa mak Ei wiiteData CONTROL 256 Decimal WiiteData CONTROL O 0 Decimal WriteData CONTROL 1 0 Decimal Wri
71. e output from the PLC Maximum data size in either direction is 518 bytes The data size can be reduced by removing slots that are not used Cycle update time 16ms Slot Subslot Layout Descriptions Status register of the camera each bit of this register represents a different state item See Camera Status Registerfor bit descriptions This16 bit word value reflects back to the PLC the value thatthe PLC wrote to the output assembly ECHO register The PLC can verify the output assembly has been written to the camera when this value matches the written value CmdCodeRslt WhensStatus ExeCmdAck goes active in response to Control ExeCmd CmdCodeRsit reflects the result of the command invoked by Contral CmdCode See CmdCodeRslittor definitions CmdRet When Status ExeCmdAck goes active in response to Control ExeCmd CmdRet contains the data returned from the command invoked by Control CmdCode See Cmd hRettor definitions Device State register Depending on the current state of the camera certain STATUS and CONTROLfeatures may or may not be operational See Statefor 8 2 AutoVision Industrial Protocol User Manual CO VS 06 PROFINET pj oe Out CONTROL Control register of camera Each bit of this register represents a different status item See Camera Control Registertor bit descriptions This16 bit value is reflected backto the PLC in the input assembly ECHO register The PLC can verify the output assembly has been wri
72. e tags Scan MV ID useriNStatusEcho O Decimal INT user s device tags H Scan MV ID useriNStatusCmdCodeRst 16 0000_0000 Hes DINT users device tags H Scan MV JD useriNSStatusCmdHet O Decimal BINT users device tags H Scan MV IO_userIN Statusreserved96_103 O Decimal SINT users device tags H Scan MV IO_user IN Statusreservedi04 TT O Decimal SINT users device tags H Scan MV ID werlNStsusStse Decimal SINT users device tags H Scan Mv_I0_userIN Status reserved120 127 Decimal SINT users device tags Scan MV ID werlINVID fee BE San users device tags EkScanMV D wer lNbol Eee IE Scan users device tags pScanMVIO werlNboobon O Decimal BODL measure status FSeanMVIO werlNboobod2 0 Decimal BOOL decodesmatchcoc SeanMVID uerlNboolbon3 Decimal BOOL blob count status 5 20 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment This is the Failed inspection s literal data Name Tel 4 Value e Stile Data Tyr Description ESean MV I we Nlng eB Stan user s device tags Sean MV I0_userINlonglonal Decimal DINT Blob count Scan MV ID useriNlonglongo O Decimal DINT user s device tags HHScan MV ID userlNlonglong O Decimal DINT users device tags HiScan MV ID userlNlonglong O Decimal DINT user s device t
73. e the camera is triggered Recall that the vision job was created with predefined images to produce predictable Passed and Failed results The camera s illumination lights will not flash when triggered The inspection results can be seen in the PLCs s IN tags as well as in AutoVision Open the RSLogix tag window so Scan MV IO user IN Status and bool are visible AutoVision Industrial Protocol User Manual 5 17 Chapter Allen Bradley PLC Setup via Generic Ethernet Module This example shows a Passed inspection where the following tags are all 1 e N Status InspStat e N bool bool1 Measure status e N bool bool2 decode matchcode status e N bool bool3 count blob status Mame EZ Value 19 Style Data Tyr Description EiSean MvO wer fea user s device tags when M ESeen MV werlN qe Stan user s device tags when M EPSean MV ID uerlNSttus e Scan users device tags when M Scan Mv IO weriNStsusOnine 1 Decimal BOOL users device tags when M Sean MV ID useriNStetusEspBusy O Decimal BOOL user s device tags when M Scan Mv IO useriNStstusAcqBusy 0 Decimal BOOL user s device tags when M Sean MV JD useriNSStetusTrggemeady 1 Decimal BOOL user s device tags when M Sean Mv ID useriNSteusEmr O Decimal BOOL user s device tags when M Scan MV IO userlN StstusResetCount ck O Decimal BOOL user s device tags when M Sean MV ID useriN Statussese
74. ect one to the SIMATIC software From the menu select Options gt Set PG PC Interface This will open the Set PG PC Interface dialog and list the available network cards On the Access Path tab select the NIC card with TCP IP gt in the name Access Path LLDe DOP AcemFota he CTT Standard For STEP 7 tcPAP ASOCAXERTIDA USEQ D oA Le mii Dares B TCPAP gt Agee AXEETTIA USED C I TCPAF gt intel FR eur cl mt CRA Piisi ASIX AETTIA U y NN ee o 8 0v z pm M m ejm i ua Fanmi to Tour MOS CP wth TCP IP Pranal PC 1006 zl In the SIMATIC Manager dialog right click and select Insert New Object This is where you will select the base station For example when configuring an ET200 s select SIMATIC 300 Station since it s based on the 300 series CPU Inserts the object to be selected at the cursor position AutoVision Industrial Protocol User Manual STEP 7 Setup 9 O l A After the station has been added right click and add Industrial Ethernet m 5I xj Zo GB Fie Edt insert PLC Vew Options Window Hep isi xj Ti o Dg ET Lo oa E x asi Ne Fiter gt O le n le Q A Expand the Start tree node on the left pane and click the station On the right pane you will see a Hardware icon KJ SIMATIC Manager Start C Program Files Sie Ep File Edt Insert PLC View Options Window Hel
75. ed or generate Inspection data unless Online is active See the GoOnline Control TriggerReady O Q Q m Q z i Q C n LLI O Q c Do not attempt to trigger the camera unless TriggerReady is active oee the description of the Trigger for more details TriggerAck and ResetCountAck Used by the demo code to complete the respective operations DataValid When DataValid goes active the user app should process the Inspection data then clear DataValid using the ResetDataValid control This is handled by the demo code in mode 1 and 2 as a demonstration for the user app If the camera s DataValid goes active but the user app has not cleared a previous DataValid event the demo code does not overwrite Scan MV lO user with new Inspection data Instead the demo code increments the counter Scan MV dv err count The new Inspection data remains stranded in the Scan MV internal tag set and is effectively lost Scan MV trigger count Incremented by the demo code when a new trigger is issued to the camera over the EtherNet IP interface Trigger Control activated Scan MV trigger err count Incremented by the demo code if the user app attempts to trigger the camera when TriggerReady is not active AutoVision Industrial Protocol User Manual 6 11 Chapter Demo EtherNet IP PLC Code Scan MV dv err count Incremented by the demo code when new Inspection data is received from the camera but the user app has n
76. emo ReadDistance DB101 DBDSS Decode Status matchcode USER Demo Decodestatus DB101 DBX 100 2 USER Demo Readstring 32 DB101 DBB 64 96 USER Demo CountBlobStatus DB101 DBX 100 3 USER Demo ReadBlobCount DB101 DBW 62 USER Demo MinDistance DB101 DBD 46 Measurement Tolerance High USER Demo MaxDistance DB101 DBD 50 Decode Matchcode USER Demo MatchCode 32 DB101 DBB 12 44 Count Blob Lower Tolerance USER Demo MinBlobCount DB101 DBW 54 Count Blob Upper Tolerance USER Demo MaxBlobCount DB101 DBW 56 This data is transferred cyclically between the camera and PLC 9 4 AutoVision Industrial Protocol User Manual e AutoVision Setup Once the job has loaded the next step is to link the pre saved images on the local PC On the Camera button click the far left icon to select and load an image A file browser will open Then navigate to the same folder where the demo job was loaded PROFINET Demo If the images are located the icon will change from a camera to a folder O l n LL eo x n O D QO By clicking the Try Job Once icon the application will cycle through the entire job with the loaded image 1280 x 960 Pixels 6 bit Grayscale AutoVision Industrial Protocol User Manual 9 5 Chapter Demo PROFINET PLC Code There are two images on file One will pass all three inspections and one will fail all three Distance 111 023
77. en TriggerReady is not active the demo code increments the counter Scan MV trigger err count and immediately clears the Trigger Control without attempting to trigger the camera After the user app activates the Trigger the demo code will clear the Trigger when the camera indicates it has accepted the Trigger Do not re trigger the camera until DataValid in the Status register goes active all Inspection data has been processed and DataValid is cleared using the ResetDataValid Control ResetDataValid When the user app sees DataValid go active it should process the Inspection data then clear DataValid by activating ResetDataValid See Data Valid for more details AutoVision Industrial Protocol User Manual Description of PLC Tags ResetError To clear the Error Status activate ResetError ExeCmd CmdCode CmdArg These Controls can be used to perform a job change and query the active job slot The demo code includes tags with pre defined CmdCode and CmdCodeRslt definitions Tag Meaning Scan MV const CmdCode GetActiveJb Query the active job slot number returned in CmdRet Scan MV const CmdCode JbChg Go Offline Load job specified by LSB O Q Q I Tm Q z i Q C n LLI O Q c Scan MV const CmdCode JbChg MkBt Go Offline Load Job specified by LSB Make it the boot job Scan MV const CmdCode JbChg MkBt Online Go Offline Load Job specified by LSB Make it the boot job Go Online Scan MV const Cm
78. et The demo vision job uses predefined images It is unnecessary to have the camera aimed at any specific target If preferred the job can be changed to enable the camera s image sensor In this case the demo targets should be printed approximately 2 5 inches 63 mm wide by 1 6 inches 40 mm tall centered on white paper larger than the camera s field of view and presented to the camera with the Data Matrix symbol on the right Pass Image 6 14 AutoVision Industrial Protocol User Manual Description of PLC Tags Fail Image O m Q Q lt m Z i Q Kan pe LLI O z Q c Demo Code Usage The user app example of the demo code watches for Data Valid When it goes active the user app example processes the user I O data updates each demo record with the results then uses ResetDataValid to clear DataValid Scan MV IO internal Scan MV ons internal Purpose Used by the demo code to manage the camera User App Method None The user app must not attempt to read or write to this tag set Demo Code Usage The demo code uses this tag set to abstract the on the wire control of the camera from the user app AutoVision Industrial Protocol User Manual 6 15 Chapter Demo EtherNet IP PLC Code Run the Camera Runtime Operation of EtherNet IP Demo At this point in the evaluation it is assumed that you have downloaded the demo vision job to the camera and that your PLC is running the EtherNet IP dem
79. for using the VS 06 in an EtherNet IP environment Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 3 1 CJ m Og iz gt 2 7p fc TS em Qo E lt Chapter Allen Bradley AOI Add On Instructions for EtherNet IP Operation Rockwell RSLogix 5000 AOI Add On Instructions for di soric Devices The AOI file has been created as basic instructions and as a main rung import The AOI instructions read and write data when called The main rung import has global tags and the AOI itself to demonstrate how the AOI is used for beginners with the RSLogix system The AOI can be used with the EDS file Note Examples in this section have been created using RSLogix 5000 version 20 Steps e Install EDS File e Import AOI File e Test Communications and Review Data Install EDS File In RSLogix 5000 select the EDS Hardware Installation Tool
80. gle connection EtherNet IP Identity A D Q Z em Q C prar LLI O E 2 Device Type Device type is 100 Vendor Specific Machine Vision Smart Camera Vendor ID di sorics ODVA Vendor ID is 1095 Product Code The Product Code is 6899 Interface Revision Major Minor 1 1 Connection Properties Class 1 Implicit Messaging Input Assembly Instance to PLC client 102 Output Assembly Instance to VS 06 114 Size Fixed 320 bytes in both directions Input Trigger Trigger Mode Cyclic RPI Requested Packet Interval Greater than 20 ms recommended 10 ms to 3 2 s allowed Input Type Connection Type e Point to Point PLC OUT O gt T e Point to Point PLC IN T gt O Connection Priority Scheduled AutoVision Industrial Protocol User Manual 2 3 Chapter Using EtherNet IP Assembly Layout Input Assembly The input assembly layout is described below Bytes Name STATUS ECHO Description Status register of the camera each bit of this register represents a different state item See Camera Status Registerfor bit descriptions This16 bit word value reflects backto the PLC the value that the PLC wrote tothe output assembly ECHO register The PLC can verify the output assembly has been written to the camera when this value matches the written value CmdCodeRslIt WhensStatus ExeCmdAck goes active in response to Control ExeCmd CmdRet VIO reserved booll 64 int1 10 long1 10
81. he demo application Since there is an infinite combination of modules and slot configurations the addressing is unique to every setup c o e O O n LL 9 ma n O D m Contiguratimuon TES C4 10 14 EBENEN i ai pim Order number address I address Diagnostic address DUM Fr d meme e tAlg Fert Ta J Staus 899 jd Control B d Echon AT Jf EchoOut d CmdCodeRst 532 535 Jf Cmdtede d CmdRet d Cmdm see dont Jpn y y gvon wn S jd BooleanQut o pq 5 d BooleanIn i JD 5 dimos PT inn BAT Jf Longbow d rein qaa y jd FosDOu TP jd Foam TP d Long StingQut o eS y d LongStingln eSa y d ShotStingDut RP d ShotStingln BAT ld eee AutoVision Industrial Protocol User Manual 9 15 Chapter 9 16 Demo PROFINET PLC Code Once the hardware configuration has been completed it s time to compile and download Click the compile and save icon on the ribbon If there are any configuration conflicts the application will prompt a warning at this point FS HW Config SIMATIC 300 1 Station Edit Insert PLC View Options Window Help Once compiled click the download icon on the ribbon to send the information to the PLC
82. i soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 5 1 Qi Oo ML ae 2o 50 ec c un gt pa 25 gc Chapter Allen Bradley PLC Setup via Generic Ethernet Module Integrating the Camera into a PLC Environment This section assumes you are using an Allen Bradley PLC with Rockwell RSLogix 5000 v16 or newer RSLogix v19 and v20 may look slightly different than the screen shots shown but the integration process is similar Create the I O Configuration for the base system including the system s Ethernet interface RSLogix 5000 ControlLogix5561 in Logix5561_Mscan_MV ACD 1756 161 File Edit View Search Logic Communications Tools Window Help alsa S 28 usereverts elele LIT all Offline J 7 RUN er ung Path AB_ETHIP 1 10 10 5 249 B ackplane O amp No Forces F OK No Edits A E ET E res res For en Controller ControlLogix5561 Controller Tags ControlLogix5561 controller Scope f ncsmatognns v Sho Show La eM MI cH Value For Style Dat ta MainTask C MainProgram Program Tags En MainRoutine 73 Unscheduled Programs Phases Motion Groups EI Ungrouped Axes A
83. ick the OK button Fini MAL pihti DXHE 43 3CT 78 w Edit the Device Name if necessary to match the name entered previously in the VS 06 properties dialog and click the Assign Name button Importing Example Program From the SIMATIC Manager open the example program from the menu File gt Open Click the Browse button to locate the AVDemo program The AVDemo is located in di soric Vscape Tutorials and Samples VS 06 PROFINET Demo LI EN Found Selected nucibus Mpat Uter posjete Libras Sample projects Mulieiects 9 18 AutoVision Industrial Protocol User Manual e STEP 7 Setup oplit both example and current projects in the dialog as shown a a alg xi Vs 2A SIMATIC 3007 7 ag cru 782 PHF zd SIMATIC 301 sae 7 Progranit Bg isi Prop cru anter zi S7 Program S ounces gg Beck O l n LL 9 na n O Q m Presa Fi te get Help TTOPAP gt ASIX AXS8772A USB2 0 L Select the objects minus the System data object and copy with right click gt copy or CTRL C Paste into current project with right click gt past or CTRL V When prompted that OB1 already exists click the Yes button to overwrite it Now the example program is imported to the current project Select the Blocks icon on the left pane Then click the download button on the top ribbon This will download the new copied functions and system data to
84. ile the command is processed by the camera GoOffline GoOnline Trigger ResetDataValid ResetCount ResetError If the command operation is a job change populate the output tags required to configure the new job bool int long float string B Populate CmdCode and CmdArg then activate ExeCmd C Camera executes the command may take up to a minute While processing a Job Change command State will be 2 Camera activates ExeCmdAck when it is done processing the command D When the PLC sees an active ExeCmdAck verify CmdCodeRsit is 0 and Error is 0 Process CmdRet if needed then clear ExeCmd E Camera clears ExeCmdAck when ExeCmd goes inactive When ExeCmdAck goes inactive CmdCodeRsit and CmdRet are no longer valid and it may take a few seconds for the camera State and Online signals to settle to a final value typically Online or Offline F Camera can now be put online and triggered Notes st PLC program scan time ct Command processing time in the camera May take up to a minute for some commands rpi Requested Packet Interval Configured in the pic s EIP module connection properties Allowed rpi is 10 ms to 3 2 s All signals represent the state of pic tags VIO Register Bits 15 14 13 1 11 10 J B T b 5 4 3 2 1 0 VIM v143 v142 v141 v140 vI39 v138 v137 v136 v135 v134 v133 AutoVision Industrial Protocol User Manual 2 13 Chapter Using EtherNet IP Connection Properties Class 3 Explicit Mess
85. ill e Begin with AutoVision Open a sample PNIO demo vision job in AutoVision and use the Try Out feature to learn what to expect from the camera before it is connected to the PLC e Prepare the PLC Integrate the camera into the PLC environment with STEP 7 software and the GSD file e Run the camera Trigger the camera while it is online with the PLC and observe changes in the Inspection status as the PLC reconfigures the vision job s parameters AutoVision Industrial Protocol User Manual e AutoVision Setup AutoVision Setup Prior to starting AutoVision make sure the camera is either connected to the PLC or both PLC and camera are on the same physical network Ensure that the PC PLC and camera have the same network class and corresponding subnet addresses O l n LL 9 na n O D QO Open AutoVision and select the camera From the Image view click the Load a Job button Then navigate to di soric Vscape Tutorials And Samples VS 06 PROFINET demo Select PNIO_demo avp mm T Qe Pere ede fii ld d ses j p mw um f L 2I pE AutoVision Industrial Protocol User Manual 9 3 Chapter Demo PROFINET PLC Code The demo job will include three tools Measure Decode and Count Blobs Each tool has data items linked to the PROFINET structure as shown here Tool Result PLC PNIO IN tag Measurement Status USER Demo MeasuresStatus DB101 DBX 1001 USER D
86. inal Name column click Camera l then click the down arrow that appears on the right LE Import Configuration E ERST x x gj Find alg Find Replace Find Within Final Name Import Content MainT asl Configure Tag References x I nettes C methane opmeten irae umero Dats Type Desi SB References Camera Undefined J lai 2 Tags Y Camera Q Undefined i3 f Data Types Y 24 Other Components Erors w arnings Scan MV Cm Create Scan MV Cm Create E 3 T j A m A ScanMV con Dede ScanMV con Create ScanMV con Create ScanMV con Dese ScanMV con Deae Scan MV con Create Sean MVcon Create LY Comole Scan MV con Create Program Double click the camera name input tag assigned earlier Y w Show fan Tage w Te i pseas 5 Scan MW 0447 GMV 6800 1 8 rr Scan MV O 0447 GMV 6800 1 Mame Scan MV I Controller Program 4 12 AutoVision Industrial Protocol User Manual I AB Rockwell RSLogix 5000 v20 PLC Integration with EDS In the Final Name column click Camera O then click the down arrow that appears on the right Ke A Find 4 ajal Find Replace Find Within Final Name Import Content OQ onfigure Tag References M C MainProgram ainT asl C5 aT 0 AN Q 5M c c um gt JH 90 o
87. ing the Camera into a PLC Environment Scroll the window so Scan MV IO user IO IN Status Echo is visible and verify that it is the same value as OUT Control Echo Nae 10 5 0 Vale O L SeamMVEwCmd ck e 0 0 HH Scan MV ILI internal 1 Scan MV IO user l 5can MV ID user IN l 5can MV ID user IN Status Scan MW D user IM Status Online Scan MW IO user IM Status E spBusy Scan MW D user IM Status AcqBusy can MW IO user lM Status TriggerHeadu can Mw ID user IM Status Error can MW ID usertN Status Resetlountack can MW ID usertA Status reservedb can MW ID user lM Status E eCmd ck E can MW ID _userlM Status Trigger ck 3 can MW ID user IM Status InspBusy B Scan MW user IM Status InspStat Oo ML i Qo 50 ec c un gt pa 20 o EE e HE UN E can Mw ID user IM Status Data alid D can MW ID user IM Status reserved 2 can MW ID ugertN Status reserved 3 aa can MW ID ugertN Status reserved 4 Scan MW IO usertN Status reserved 5 Scan MV IL user IM Status Echa HH S5can MV ILI user IM Status CmdCodeR slt HH Scan MV ID user IN Status CmdA et HFH S5can MV ID user N Status reserved96 103 HFH S5can MV ID user IM Status reserved 04111 HH S5can MV IL user IN Status State L Esca Mv 10 use IN Status reserved 2L 127 C se Mwdesemvo eed TTT Scon mvo usero ee EN H E mn hd 3 Monitor Tags This confirms that the PLC an
88. is mode the user app accesses the Scan MV IO user tag to control and monitor the camera The user app must not access the Scan MV O internal tag set In this mode the user activates the controls in Scan MV IO user OUT Control Trigger ResetCount GoOnline GoOffline ResetError ExeCmd and the demo code handles the rest 2 Auto trigger 6 6 AutoVision Industrial Protocol User Manual Description of PLC Tags In this mode the demo code fully manages the Control and Status signals the same as when the mode is set to 1 It also activates the camera s trigger after one second of idle time The timer used to drive the trigger is Scan MV trigger delay timer Demo Code Usage Depending on the mode the demo code will run the appropriate level of code O Q Q m Q z i Q C n LLI O Q c e n mode 0 only the I O exchange rungs are executed All others are bypassed e n mode 1 the auto trigger rungs are bypassed This is the default mode of the demo code e In mode 2 all rungs are executed Scan MV IO user Purpose User accessible I O data for the camera The user app reads and writes these I O tags and the demo code handles the actual on the wire control of the camera User App Method Activate a Control by setting its value to 1 The user app can determine that the Control is done when the Control is clear demo code changes the Control to a bit bool value of 0 Do not attempt to acti
89. lable CmdCodes and Associated CmdArg CmdCode CmdArg Operations performed value Ox1000 0000 JobSlot 1 255 Go Offline Load job from specified slot 0x1100 0000 JobSlot 1 255 Go Offline Load job from specified slot Go Online Ox1200 0000 Job Slot 1 255 Go Offline Load job from specified slot Make it the boot job 0x1300 0000 JobSlot 1 255 Go Offline Load job from specified slot Make it the boot job and Go Online Ox1800 OO000 na Query active job slot CmdRet will contain the active job slot number when the operationis done CmdCode and ExeCmd Operation OUT Control CmdCaode Cm Ar3 ExeCmud IN Status ExeCmd dAck OUT Control GoOffline OUT Control GoOnline OUT Control ResetCount OUT Control Trigger JQOUT Control ResetDataValid JH Status DataValid JN Status Error Event hey A B C D E F A If Data Valid or Error are present clear them Set the following control signals idle and keep them idle while the command is processed by the camera GoOffline GoOnline Trigger ResetDataValid ResetCount ResetError Ifthe command operation is a job change populate the output lags required to configure the naw job bool inb bong float string B Populate CmdCode and CmdArg then activate ExeCmd C Camera execules the command may take up to a minute While processing a Job Change command State will be 2 Camera activates ExeCmdAck when it is done processing the command D When the P
90. leted operation constant value Do Sssss ss 5555555555588 Scan MV EIP OUT float OK not change not change not change not change Scan MV EIP OUT int MOV MOV MOV MOV MOV Scan MV ETP OUT long Move Move Move Move Move Lot Scan_MV_EIP_OUT_string Source Scan MV const CmdCodeRist Success Source Scan MV const State Booting Source Scan MV const State Empty Source Scan MV const State Error Source Scan MV const State JobChange Il Scan_MV_EIP_OUT_VIO oe 3 4 255 2 4 Yl Strings Dest Scan MV const CmdCodeRIst Success Dest Scan MV const State Booting Dest Scan MV const State Empty Dest Scan MV const State Error Dest Scan MV const State JobChange RI W Scan MV str2044 oe 3 4e 255 24 i Scan_MV_str28 4 Scan_MV_str92 STRING 444 344 44 4 M Cg Add On Defined constant value Do constant value Do A copy of the last A copy of the last A copy of the last A copy of the last f Cg Predefined not change not change CmdCode CmdArg CmdCodeRsit CmdRet 1 Module Defined MOV MOV MOV MOV MOV MOV 3 Trends Move L Move Move 1 Move 1 Move Source Scan MV const State Online Source 1 Source 1 Source 1 Source 1 EJ 1 0 Configuration 0e 1 Y E 1756 Backplane 1756 A4 Dest Scan MV const State Offine Dest Scan MV const State Online Dest Scan MV Cm dCode last Dest Scan MV CmdArg last Des
91. mages select the icon shown here 3 Browse to the EIP demo folder select it and click OK Browse For Folder Select the preferred folder containing the images 4 Computer 4 EL Local Disk C B SRecycle Bin di Otemp 886311b56905f2da7d E di di soric di AutoVision JH InstallInfo 2 Ai Vscape E J 604 2 di Assembly J DM Documentation P Drivers Js Firmware a Jobs 4 X Tutorials And Samples A Sample Jobs Ji vs o5 4 VS 06 di Advanced Example Using Multiple Tools i EIP Demo d Simple Blob Tool i Simnle Data Matrix Tool E Make New Folder oc cn AutoVision Industrial Protocol User Manual 6 3 Chapter Demo EtherNet IP PLC Code After the EIP demo folder has been enabled for image load the camera icon will change to a folder 4 While in Edit mode Try Out can be used to get an understanding of what to expect after the job is sent to the camera Before Try Out can be effective the Measure Decode and Count Tool parameters must be specified After job download the tool parameters will be supplied by the PLC Measure Tolerance Decode Matchstring Match String LABEL CHECK o Count Tolerance 6 4 AutoVision Industrial Protocol User Manual Demo Setup With these tool parameter configured as shown Try Out will show the following Pass Fail results Fail O Q Q m Q z Q C n LLI O Q c
92. nstall the EDS file select EDS File gt Install Navigate to the EDS folder C di soric Vscape Firmware eds VS 06 Select the correct file and click Open to load the file All other EDS files can be download from www di soric com x Lookin J EDS 9 5 Name Date modified T VS 06 32 000009 01 eds 8 28 2013 4 08 PM EDS File A C Qo om ao Te ag c2 o0 en SELL z ferme Cae Files of type Electronic Data Sheet eds Cancel r Device Information Vendor Device Type Expand the left tree view to open the OMRON Corporation files Locate CJ2M EIP21 for this example and drag it to the line in the right pane S untitled Network Configurator File Edit View Network Device EDSFile Tools Option Help Dae td B ay oe 75 ee 8 X 88 Ets ae 7 CO BtherNet IP_1 EX Network Configurator ee 1 EtherNet IP Hardware aia Vendor POBRE Grid Connect EAA OMRON Corporation Nm B Communications Adapte s CA Ww EIPZTIEI2 s CI Tw EIPZT NJ s CJ2B EIP21 s ES AutoVision Industrial Protocol User Manual 7 7 Chapter Omron PLC Setup for EtherNet IP Operation Expand the Vendor Collection node for the camera connected to the PLC and drag it to the line in the right pane Right click near the newly added icons and select Change IP Address Enter the IP address for the PLC and the camera or reader attached and click OK OM Ethernet e_1 192 168 2
93. nt count of fails Measurement Scan MV demo measure Scan MV user IN float float1 float last value float max max value recorded float min minimum value recorded Decode Text Status Scan MV demo decode Scan MV user IN bool bool2 matchcode bool last status pass fail pass_count count of passes fail_ count count of fails Decode Text Scan_MV_demo_decode Scan MV user IO string string1 string text of the last barcode decode attempt null if noread Blob Status Scan MV demo blob Scan MV user IN bool bool3 bool last status pass fail pass count count of passes fail count count of fails Blob Count Scan MV demo blob Scan MV user IN long long1 long last value long max max value recorded long min minimum value recorded AutoVision Industrial Protocol User Manual 6 13 Chapter Demo EtherNet IP PLC Code User App Method The user app can follow the demo code s usage of these tags for further application logic development During runtime the user app can change the OUT data members and observe the change in tool status after a new trigger Specifically the PLC integrator would typically modify the logic beginning at the following rungs Scan MV sll rungs below sre user logic 41 top level status Scan MV demo user dv begin Scan MV IO user IN Status DatsValid LBL One Shot Rising Storage Bit Scan MV user events 30 Output Bit Scan MV user events 31 42 Demo Targ
94. o Product Name S 192 168 2 16 CJ2M EIP21 Download after changed to Program made Download with Curent mode oelect Network Check Connection in the Network Configurator to ensure that there are no connection problems AutoVision Industrial Protocol User Manual 7 11 Chapter Omron PLC Setup for EtherNet IP Operation 7 12 AutoVision Industrial Protocol User Manual cameras Using PROFINET This section provides information necessary for using the VS 06 in a PROFINET environment Notes e The camera communications protocol must be enabled for PROFINET before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate PROFINET communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 8 1 Co LLI LL eO ma n O i Chapter Using PROFINET VS 06 PROFINET PROFINET Identity Vendor ID di soric s Vendor ID is 0x0257 Device ID The Device ID is 6899 Connection Properties RT Cyclic Messaging Odd slot numbers are input to the PLC even slot numbers ar
95. o code and exchanging data with the camera The PLC can now parameterize trigger and monitor the camera over EtherNet IP 6 16 AutoVision Industrial Protocol User Manual A C Qo om oo Te EE cz o0 en cape Omron PLC Setup for EtherNet IP Operation This section describes how to set up an Omron PLC for EtherNet IP operation using a VS 06 Smart Camera and CX One software Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 7 1 Chapter Omron PLC Setup for EtherNet IP Operation Setting Up an Omron PLC This section was created using the following Omron software and hardware e CX Programmer version 9 43 e Network Configuration version 3 55 e PLC CJ2M CPU31 Start the CX Programmer application and select menu item File gt New Enter the desired Device Name Select the Device Type and then click Settings to the right of
96. oL 0 0 aa er s device tags when MY demo mode is 1 or 2 er s device tags when MV demo mode is 1 or 2 MEN NEN Hg i stp SENI al NEM er s device tags when MV demo mode is 1 or 2 EE asd m EE REN E MEME RE HEN p er s device tags when MV demo mode is 1 or 2 HH Scan MV IO user OLIT long long108 HH Scan MV IO user OLIT long long109 HH Scan MV IO user OLIT long longl10 Scan MV IO user OUT float er s device tags when MV demo made is 1 or 2 er s device tags when MV demo mode is 1 or 2 er s device tags when MV demo made is 1 or 2 er s device tags when MV demo mode is 1 or 2 E can MV IO user OLIT float float101 S0 0 Fea REAL Measure value must be higher than this to pass Measure value must be lower than this to pass Scan MV ID user UTfbatfoa102 Scan MV ID userOUTfbatfoa1U3 Scan MV ID user UTfbatHloa1D4 _ Sean MV _I0_user OUT foatfoatt05 ls T M Scan MV E user s device tags when MV demo mode is 1 or 2 user s device tags when MV demo mode is 1 or 2 REAL WRONG CODE REAL can_MV_IO_user OUT float float 08 can MV IO user OLIT float float1 09 can MV IC user OLIT float float1 10 Scan MV IO user OUT string HH Scan MV IO user OLIT string stringlUT1 HH Scan MV IO user OLIT string string102 HH Scan MV IO user OLIT string
97. odule Major Fault On Controller IF Connection Fails hile in Run Made Module Fault Status Offline Cancel Apply Help Open the Main Routine Controller ContralLagix5561 Controller Tags Controller Fault Handler Power Up Handler J E Tasks Em MainTask E Ca MainProgram Program Tags MainRautine Unscheduled Progre Motion Groups D Ungrouped Axes X Cut Ctrl Add on Instructions Copy Chri Data Types AutoVision Industrial Protocol User Manual 5 5 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Right click the top rung and select Import Rung jb Cut Rung Ctrl x Copy Rung Ctrl C SPI Paste Ctrl V Delete Rung Del Add Rung Ctrl F Edit Rung Enter Edit Rung Comment Ctrl D Export Rung Recent Places Desktop Libraries Ly L Ww Computer F A P Metwork QOwverwrite Selected Rungs 5 6 File name 32 0000032 5X Files of type RSlogx SO00XMLFilesCL5XY rz Files containing H Rungs Irita Ei MainRoutine MainProgram z AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment At the Import Configuration window find the Module Name that was assigned to the Generic Module Here the module name is Camera LE Import Configuration EE Find m Find Replace Find Within Final Name Oo ML i Qo
98. ors the TRIGGER control bit 9 INSP BUSY This bit is high when inspection 1 is busy processing an image 10 INSP STAT This bit represents the inspection 1 status result It is 1 if the inspection passes Itis only valid when DataValid goes high 11 DATA VALID This bit goes high when inspection1 is complete The PLC should clear this signal by setting RESET DV high once it has read results AutoVision Industrial Protocol User Manual 8 9 Chapter Using PROFINET CmdCodeRslt 32 bit The value of CmdCodeRslt is only valid when ExeCmdAck is active 1 in response to ExeCmd being active CmdCodeRslt value Meaning base 16 hex Ox0000 0000 SUCCESS Ox0100 0000 Fail Possible reasons Camera under PC control Jab cannot be changed x0200 0000 Fail No Job in slot 0x0300 0000 Fail Unknown cmd CmdRet 32 bit The value of CmdRet is only valid when ExeCmdAck is active 1 in response to ExeCmd being active and CmdCodeRslt is 0 Success The following chart shows which CmdCodes return data in the CmdRet register CmdRet Associated CmdCode Meaning value 32 bit 0 Ox1000 0000 Na to 0x1300 0000 Job Change type 1 255 xl800 0000 Active Job Slot Query Active Job Slot 8 10 AutoVision Industrial Protocol User Manual STEP 7 PLC Slot Layout 8 LLI State 16 bit Z LL State reflects the following operational condition of the camera O State Meaning Typical action required by the client PL
99. ot cleared the previous DataValid Scan MV status err count Incremented by the demo code whenever the Error Status goes active Scan MV demo blob Scan MV demo decode Scan MV demo InspStat Scan MV demo measure 6 12 Purpose These tags record counts and min and max values of several EIP IN data members The demo code expects a demo vision job to be loaded on the camera and a demo target to be in the camera s field of view The demo PLC code Will operate without the demo vision job being loaded on the camera However the data records will not be valid The demo vision job has the following data members linked to certain job tools IN Bool1 Measure status pass fail Bool2 Decode Matchcode status pass fail Bool3 Blob count status pass fail Long1 Blob count Float1 Measure value String1 Decode text OUT Long101 Blob count minimum count tolerance Long102 Blob count maximum count tolerance AutoVision Industrial Protocol User Manual Description of PLC Tags Float101 Measure lower tolerance Float102 Measure upper tolerance String101 Matchcode Each tag set records the following data for each vision job tool result received in the Inspection report O Q Q lt Tm Q Z i Q C per LLI O Q c Tool Result Record tag EIP IN tag Measurement Status Scan MV demo measure Scan MV user IN bool bool1 bool last status pass fail pass count count of passes fail cou
100. p CmdArg INSttus ep se ne INvio io v 145 160 OUTVio fio wf 28 144 IN bool eip bool 1 100 OUT bool eip bool 101 200 INint eip int 1 100 OUT int eip intf101 200T IN long eip long 1 100 OUT long eip long 101 200 IN float eip float 1 100 OUT float eip float 101 200 IN string eip string 1 100 OUT string eip string 101 200 IN Status DataValid OUT Control ResetDataValid IN Status ExeOmdAck OUT Control When GoOnline is changed from O to 1 Online goes to 1 When GoOffline is changed from O to 1 Online goes to 0 TrigReady AcqBusy ExpBusy InspBusy and InspStat are all IN direction data only booll bool64 are mapped to PLC tags in the IN assembly Bool101 bool164 are mapped to PLC tags in the OUT assembly Bool members numbered 65 100 and 165 200 are accessible via Explicit Message only For int long float and string data Data members numbered 1 10 are mapped to PLC tags in the IN assembly Data members numbered 101 110 are mapped to PLC tags in the OUT assembly Data members numbered 11 100 and 111 200 are accessible via Explicit Message only AutoVision Industrial Protocol User Manual 2 19 Chapter Using EtherNet IP 2 20 AutoVision Industrial Protocol User Manual caras Allen Bradley AOI Add On Instructions for EtherNet IP Operation This section provides additional instructions helpful
101. pe Hide Detail m Detail Parameter Packet Interval RPI 30 0 ms 10 0 3200 0 ms J Connection Name O O Timeout Value Packet Interval RPI x 4 v Possible to omit M Connection Structure E 192 168 2 16 CJ2M EIP21 The registered device will now display the tags that are linked Click OK to continue Edit Device Parameters 192 168 2 16 CJ2M EIP21 X Connections 2 32 0 2 T 0 ficu Douce lit Target Variable CU A Aer default 001 Input 0300 Input 101 defautt_001 Output 0500 Output 198 New Edit Delete Edit All Change Target Node ID To From File 7 10 AutoVision Industrial Protocol User Manual Setting Up an Omron PLC When the List of Devices That Are Executing dialog appears select the PLC and click Download after Changed to Program Mode When prompted to return the state click Yes to continue C o Q Download the new tags and links to the PLC by selecting Device Parameter Download 20 or by clicking the download icon in the ribbon Click Yes when prompted to download P 6 Untitled Network Configurator lel Oo File Edit View Network Device EDS File Tools Option Help _I DES R Sy n Se ymax s si E RR S S S a Lem j PE s ES lem List of Device that are executing X The following devices are nat in program made H
102. r the unit back on AutoVision Industrial Protocol User Manual 7 5 Chapter Omron PLC Setup for EtherNet IP Operation oet the CX Programmer application to offline by selecting PLC Work Offline or the online icon in the ribbon In the CX Programmer application double click the PLC node In the Network Type menu select EtherNet IP Click Settings to the right of Network Type and enter the PLC s new IP address Click the OK buttons to close the dialogs x m Device Name NewPLC1 m Device Type ci2M Settings m Network Type EtheiNet IP Settings Network Settings EtherNet IP 43 x Network r Target PLC IP Address 192 168 2 B EtherNet IP SYSMAC CS CJICPINSJ oet the CX Programmer back to online You will be prompted with a connection via EtherNet IP Click Yes to complete the connection Double click the IO Table and Unit Setup node Expand the Built In Port Inner Board node Right click and select Start Special Application Start with Settings Inherited Change Unit No Unit Comment Unit Setup Save Parameters Load Parameters Start Special Application Start with Settings Inherited Start Onl Unit Manufacturing information ul Unit Error Log 7 6 AutoVision Industrial Protocol User Manual Setting Up an Omron PLC select Network Configurator and click OK Select port TCP 2 and click OK Then click OK for EtherNet IP 1 connection To i
103. ratocal Part Configuration Type M 5 Db x xx V5 DB Vendor di saric Parent ENBT Mame Scan Mv Descriptors m Module Definition Revision 1 1 Compatible Module Ia Electronic Keping Connections Change Status Creating Ethernet Address Private Network 13216811 F Address Host Mama 132 m 158 1 100 OF Cancel Help 4 8 AutoVision Industrial Protocol User Manual AB Rockwell RSLogix 5000 v20 PLC Integration with EDS I 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 Enoei en i a Scope stat oit v StartPraject Show All Tags Sa Controller StartProject Controller Tags Name Controller Fault Handler r8 HH S5can MV Power Up Handler EH Scan MV Ea Tasks B A MainTask BHO MainProgram LE Unscheduled Programs Phases Ex Motion Groups efi Ungrouped Axes E Add On Instructions Ex Data Types j i User Defined reer Strings i Add On Defined HER Predefined f Module Defined E Trends E 1 0 Configuration 1 489 1756 Backplane 1756 A4 ff 0 1756461 StartProject E Bj 3 1756 ENBT A ENET Elm Ethernet Lir V5 06 x xx Scam MV oe BJ i75e ENBT A ENBT C5 aT 0 AN Q T c c um gt JH 90 o Open the Main Routine Controller Organizer EF 3 Controller Star
104. red O Decimal BOOL user s device tags when M SemHMV ID userlN StstusEseCmd ck O Decimal BOOL user s device tags when M e _10_user IN Status o NIRE ID userIN Status aT NI ID user N Status mu Decimal BOOL users device tags when M Decimal BOOL user s device tags when M L Decimal BOOL users device tags when M Scan MV ID userlN StatusDataVaid O Decimal BOOL users device tags when M Scan MV D userlN StaturesemvedlI2 O Decimal BOOL user s device tags when M Scan MY ID userlNStatusreserved3 O Decimal BOOL user s device tags when M Scan Mw ID useriN Statusseservedid O Decimal BOOL user s device tags when M Scan MV ID userlNStatusreserved B O Decimal BOOL user s device tags when M BbSeanMV ID useriNStetusEcho Decimal INT users device tags when M Scan MV ID userlN StatusCmdCodeRist 160000 0000 Hex DINT user s device tags when M Scan MV ID wserlNStatusCmdRet O Decimal DINT users device tags when M Scan MV ID userlN Statusreserved38 103 O Decimal SINT users device tags when M Scan MV ID userlN StatusreservediD4 111 O Decimal SINT users device tags when M BPSean MV IOLuserIN StatusState 1 Decimal SINT users device tags when M Scan M ID userlN StatusreservedT20 127 O Decimal SINT users device tags when M scan MV ID
105. res the Measure float101 and float102 Decode string101 and Count Blob long101 and long102 tools in the same way they were configured in AutoVision during Try Out Note the Description column It offers a hint for what each linked tag does in the vision job 5 16 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment Trigger the Camera To send a trigger to the camera scroll to Scan MV IO user Control Trigger aja i FH Scan MV ID user IN Scan MV ID user OLLIT Scan MV IO user OUT Control Oo ML i Qo 50 ec c un gt pa 20 o aim o 3 T O T FEL 5 Pu m can MW IO user OUT Control GoUniine 0 Scan MV ID user DUT Contral Gol ffline DENN can MY ID userQUT Control reserved Scan MW IO user QUT Control reserved3 Scan MW ID user OUT Control A esetE rror can MW ID user OUT Control A esetCount Scan MW ID user OUT Control reservedb Scan MY ID user OUT Control E seCmd 0 can MW I user OUT Control Trigger ES Scan MW ID user OUT Control reserved3 Scan MW ID user DOLI T Eantral reserved 0 Scan MW ID user OUT Control ResetD atas alid can MY IO user OUT Control reserved 2 oet the Trigger to 1 When the Trigger returns to a value of 0 the camera may be re triggered J If you connect to the camera with AutoVision it will display a new inspection result each tim
106. resent in the PROFINET I O section as shown below PROFIBUS DP T phROFIBLUS PA M PROFINET IO 50 Additions Field Devices Lj Gene Ei vc M Books in E Boolean Qui Conii Fig n Fiat Qut M inn ing Out Lorg In Long Oust Long Seng n Lorg 56g Ouf M Short Sting In Short String Oust Shabir MIC Im M VIO Out AutoVision Industrial Protocol User Manual 9 11 Chapter 9 12 Demo PROFINET PLC Code Add the CPU from the catalog view by drag and drop or double click Make sure the catalog number and version matches the PLC exactly The Catalog number will be displayed on the bottom of the view ga 1151 3 PN ST V7 0 IM151 8 PH DP CPU F iM151 8 PN DP CPU V3 2 IM151 8F PN DP CPU IM151 8F PN DP CPU V3 2 E SIMATIC PC CP SIMATIC 7 CP Network Components Preconfigured Stations ci Sensors some CPUs are modules that will require a generic rack to be added prior If your PLC requires a rack you will be prompted to add the rack prior to being allowed to insert the CPU module After the CPU is added a popup dialog will prompt the Properties relating to the IP information AutoVision Industrial Protocol User Manual e STEP 7 Setup select Ethernet 1 on the bottom list box and enter the correct IP address of the CPU Properties E x F a subnet is selected the next avadable addresses are sggested O l n LL eo x n O Q m IP
107. ric Devices Right click the second element and create a new tag for the Assembly Input It will default to the AOI INPUT320 data type Right click the third element and create a new tag for the iait eea EA It will default to the AOI OUTPUT320 data type Mame D escrption Usage Type Alias For Data Type Scope E xtemal Accessi Style Constant Read ata Bd pe i AMerPosm D escenplion Usage Type Alias For Data Type Scope External Access Style Constant Wied l O outPuT320 Evaro Ff Readite xl ej Cancel Help Double click the fourth element and click the down arrow in the combo box to link the Connection Input to the reader input data The link should be the reader name l Data j Camera l __Camera ConnectionFaulted j Camera l Data SINT 320 Note Do not connect to the ConnectionFault item Double click the fifth element and click the down arrow in the combo box to link the Connection Output to the reader output data The link should be the reader name O Data Pj 4 Camera l Camera O j 4 Camera O Data SINT 320 AutoVision Industrial Protocol User Manual 3 9 CJ m Og lt 3 gt SE 7p a TS C Qo E lt Chapter Allen Bradley AOI Add On Instructions for EtherNet IP Operation Now download the program to the PLC Once the program has
108. rmats Allen Bradley AOI Add On Instructions for EtherNet IP Operation Ethemet Address C Private Network 1921681 2 IP Address 192 1 m C Host Name AutoVision Industrial Protocol User Manual CJ Rockwell RSLogix 5000 AOI Add On Instructions for di soric Devices Click the Close button on the module selection dialog to continue Now the device has been added to the project and will be visible in the tree view under the Ethernet node S E Controller StartProject Controller Tags E Controller Fault Handler EI Power Up Handler Sj Tasks MainTask H E MainProgram J Unscheduled Programs Phases Motion Groups E Ungrouped Axes Add On Instructions 3 Data Types fp User Defined gh Strings Ca Add On Defined u Li Predefined i Module Defin Trends 1 0 Configuration E 1756 Backplane 1756 A4 fu 0 1756 161 StartProject 8 3 175e ENBT A ENBT zx Ethernet e S 06 f 1756 ENET A m Og lt 5 25 7p fc TS em Qo E x AutoVision Industrial Protocol User Manual 3 5 Chapter Allen Bradley AOI Add On Instructions for EtherNet IP Operation Import AOI File Right click the Add On Instructions node in the tree view in the left pane and select Import Add On Instruction Locate the L5X file C di soric Vscape Firmware aoi and click the Import button Import Add On Instruction EU xi Look in Export J OF E Name Date modified Type size
109. rpi D If thie camera s exposure time i5 shorter than the rpi no change will be seen in TrigperRieady and AcgqBusy plc H tags E Camera firmare acks the trigger The demo code may not sec dw ack until sn rpi after the trigger was sent ment E F Dern code detects Triggervck and dears the Trigger S Demo cede detect falling edge of Triggerck and dears the user Trigger H Camera imental signal Doravald wil go high when InsoGusy goes bre L Pic logic must delay one rpi time bekie re aseeriing Ressearsualid Hates 1 The chart shows the workings of the Trigger and Eessed rosis valid Cantral signals and the Triggentck and Doizssvalid Status signak 2 af pk program scan Gre 4 rpi Requested Packe Interval Configured in the ple s EIP module connection properties Alksvesd pi is 10 me to 32 s d All signals represent the state of plc lags except where noted as camera The cam signals shown are visible in the EIP imerface but the zie of the ple tags and internal firmaare signals wall be different for at leat one or two requested packet imersas rpi 5 The pic is running the demo code ditribuled wiih the camera The deme code and user app use he Sean My FO user tag sei as the primary oarinol statue and diate interfaces for the user app Al signal operations are stil true even if the ple demo code amp not used B Triggerfie anl Acus Camera expeaure times can range from less than 1 me up bo 100 re AutoVision Industrial Protocol User M
110. s Ungrouped Axes Add On Instructions amp Data Types GR User Defined H E Strings Gi Add On Defined H E Predefined amp Module Defined Trends 5 8 1 0 Configuration 1756 Backplane 1756 A4 ffs 0 1756 L61 Logix5561 8 3 1756 ENBT A eip as Ethernet AutoVision Industrial Protocol User Manual 4 5 Chapter Allen Bradley PLC Setup via EDS Right click Ethernet and select New Module 1 0 Configuration 1756 Backplane 1756 A4 fs 0 1756 L61 Logix5561 B 3 1756 ENBT A eip a Ethernet Catalog Module Discovery Favorites lEnter Search Text for Module Type gr nem Bi communication Module Type Category Filters Controller Digital DPI to EtherNet IP z Allen Bradley Module Type Vendor Filters Endress Hauser Mettler Toledo Catalog Number 0005_007B_0030 0005 007B 0038 0005 007B 0039 0005 007B 003A 0005 007B 0060 0005 007F 0027 0005 007F 0028 1305 ACDrive EN1 1336E IMPACT Driv 1336F PLUSIIDrive 1336R REGENBrak 1336S PLUSDriveL 1336S PLUSDriveS Description SP600 SP600 ER 400V SP600 ER 200V SP600 ER 600V Liquiflo 2 0 MD60 MD65 AC Drive via 1203 EN1 AC Drive via 1203 EN1 AC Drive via 1203 EN1 Brake via 1203 EN1 007 600 HP Code AC Drive via 1203 EN1 F05 F100 HP Code AC Drive via 1203 EN1 Vendor Reliance Ele Reliance Ele Reliance Ele Reliance Ele Reliance
111. s Signal State 0 1 2 3 4 Offline Online UobChange Booting Empty Control GO ONLINE GO OFFLINE Y RESET ERROR RESET COUNT EXECMD TRIGGER RESET DATA VALID Status ONLIME ERROR RESET COUNT ACK EXECMD ACK EXP BUSY ACO BUSY TRIGGER READY TRIGGER ACK INSP BUSY INSP STAT DATA VALID A 33 Q Z i om i LLI O ES o0 lt a lt lt oe os ex Where Y Signal is valid for this State Empty table cell Signal is not valid for this State AutoVision Industrial Protocol User Manual 2 9 Chapter VIO Register Bits 15 v180 v159 v158 v157 Using EtherNet IP 13 12 11 10 g B T 6 5 4 3 2 1 0 v156 v155 v154 v153 v152 v151 v150 v149 v148 v147 v146 v145 Output Assembly The output assembly layout is described below and shown in the following diagram Bytes 2 10 Name CONTROL ECHO CmdCode CmdArg reserved VIO Reserved bool int101 110 long101 110 float101 110 string101 string102 string103 ing104 Description Control register of camera Each bit of this register represents a different status item See Camera Control Registerfor bit descriptions This 16 bit value is reflected back tothe PLC in the input assembly ECHO register The PLC can verify the output assembly has been written to the camera when the input assembly matches this written value Specifies the process invoked in the
112. si Scan MV con Create J Scan MV con Create J FS Scan MV con Create Id Ez Scan MV con Create J amp Scan MV con Create di CORONA Scan MV con Create J E Program AutoVision Industrial Protocol User Manual 5 7 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Click Camera O and click the down arrow then double click the Scan MV O that appears below it CE Import Configuration EET u x amp z mef A amp Finance Find within Final Name Import Content MainT ask m MainProgram Configure Tag References roe ine Runge Lr estime Opein a FnaNene SAesra Datatype Desciiem amp 3 References s I Camera Use Existing 3 Scan MV I C 0447 GMY Undefined Scan MVO v Scan MV Cm lv Show m Tags Scan MV Cm Scan MV Cm Name E Tags da Data Types Other Components Erors wamings 43 v 43 y l d S eo H B E 0447 GIN S80 3 Scan MV con Create J p Sean MY con Create ioci tus MV O B Lr a EU tse Reker Reet Scan MV con d Controller Program Click the Other Components icon in the tree view Click OK Delete any empty rungs rung 0 may be empty jb Cut Rung Ckrl4 X CErl c Delete Rung Add Rung Ctrl F The tags and main program are now configured sufficiently to test communication with the camera
113. string103 Scan_M _IO_user OUT string string1 04 H Scan MV matchcode HH Scan MV ons intemal can MV IO user OLIT float float1 07 x ve tr Scan OK Cancel Help Apply DINT 9 0 Error s 30 INS 10 of 92 2080374528 Decimal 5 22 AutoVision Industrial Protocol User Manual Qi Integrating the Camera into a PLC Environment Trigger the Camera Again Trigger the camera twice and you will see the Status results stay the same for all triggers bool2 decode matchcode status 0 Why Decode Matchcode status always fails because the matchcode has been changed to wrong code or there is no decode Oo ML i Qo 50 ec c un gt pa 20 o bool1 Measure status and bool3 count blob status 1 Why The inspected values are now within tolerance InspStat 0 Why The Decode tool fails so the overall Inspection result is a Fail PLC tags Name BA Value 4 Style Data Tye Description ElScen MV I0 userIN oee Sean user s devicet EkScan MV ID uselNStstus fd Sean users devicet FScanMV O uerNStsusOnins 1 Decimal BOOL user s device t Sean MVIO userlN StstusEspBusy O Decimal BODL user s device tags FSeanMV ID user IN StatusAcqBusy O Decimal BOOL users device t Sean MV ID userlNStstusTggeready 1 Decimal BOOL user s device tag pSeanMV ID ueerlNStsusEmr
114. t OO e nepi 7 OO an 1 C Ese wem bp mtv f SSS EEELCLIOT E NN NE L Emend mebeelct 1 C Pee wem tbe c TT scan MWdeno bhbing TT e cenina ma 5 LER EAE c 1 cSemMedemesbha ooo 88 L LsenMvdme bebo oe C senem bb T T Eseni smsen NN eieae DT J Scar MVidoma mesa oo Eene O uk et Looe na JetScarMVidvfelcont eh ee 0000000 o6 TT EsenMvdedaeemat ooo L Heeswi daeemtu 5 C ien L seni peemDN o 3 L sende peemty ooo 6 ewsdameun 000000000006 Dran hae da riam E m Monitor Tags Os Mi RE Qo 50 ec c un gt pa 20 lt q D o e E EIE c b AutoVision Industrial Protocol User Manual 5 15 Chapter Allen Bradley PLC Setup via Generic Ethernet Module Parameterize the Camera Open the Scan MV IO user OUT long float and string tags and verify that they are configured as shown below Name BA Value Style Data Tyr EiSean MvO user fe Son HiScan MV IuseIN C Sen Scan MV Muse OUT EE Sean Scan MV IQ userOUT Conrl Ee Stan Scan MV ID werDUTVIO Sean Scan MV JD useOUTbod Eee Soan HiScan MV WOLuse OUT int EE Sean Sean MV userOUTlong Ee Sean Scan MV ID userDUTlonglongiD 4 Decimal DINT Scan MV I uer UTlonglangll2 4 Decimal DINT Scan MV I uerDUTlonglongll O Decimal DINT Scan MV ID userDUTlonglongid4
115. t Scan MV CmdCodeRslt last Dest Scan MV CmdRet last ffa 0 1756 161 StartProject 0e 1 4 1650000 0000 0e 1650000 0000 od S E 3 1756 ENBT A ENBT lm 3s Ethernet Epi MainRoutine a gt 4 14 AutoVision Industrial Protocol User Manual n AB Rockwell RSLogix 5000 v20 PLC Integration with EDS Q J Delete any empty rungs check rung 0 Q 0 DA LL oO gt amp Cut Rung Ctrl X L 2 Ra Copy Rung Ctrl C 9 5 zu gt Paste Ctrl V code lt and Download the project to the PLC Offline 1 AUN No Forces Go Online Ma Edits Upload Controller Organi pn pee 1 s pz Note Be sure the path to the PLC has been set in the project so that communications to the PLC can be established Put the PLC in Run Mode Rem Run mi E Bun Mode Mo Forces Go Offline Mo Edits pload Download wi Controller Organi gt c Program Mode i 2H Controller l Al Run Mode A Controll Lis nm Controli Lest Mode Wu AutoVision Industrial Protocol User Manual 4 16 Chapter Allen Bradley PLC Setup via EDS Open the Program Tags window and select Monitor Tags Program Tags MainProgram Scope E MainProaram Show All Tags Mame Zale Value e 3E I on T cu ES XE oO e zs Eum un qu iT Lr CI zy cu ES i m I an on
116. tProject i Controller Tags E Controller Fault Handler Do zd Power Up Handler B T Tasks j E Sal MainTask 2 CR MainProgram lel Program Tags Es MainRoutine TE Unscheduled Programs Phases 5 T Motion Groups PE Ungrouped Axes Add On Instructions E x Data Types ig User Defined B ag Strings zu Add On Defined H reer Predefined E LR Module Defined E Trends Be 3 1 0 Configuration EJ 1756 Backplane 1756 A4 ffu 0 17562161 StartProject El Bj 5 175e ENBT A ENBT E1 zk Ethernet ijr VS 06 x xx Scam MV i A 1z5e ENBT A ENET AutoVision Industrial Protocol User Manual 4 9 Chapter Allen Bradley PLC Setup via EDS Right click rung 0 and select Import Rungs Cut Rung Ctrl X End amp Copy Rung Ctrl C K Paste Ctrl V Delete Rung Del Add Rung Ctril R Edit Rung Enter Edit Rung Comment Ctri D Export Runge Navigate to the VS 06 32 000003 2 L5X file and select Import The default install Misit is C di soric Vscape Tutorials and SAMPEAN does Demo Import Rungs x Look in EIP Demo Go gt p m Date modified Size T 32 000003 2 L5X 8 9 2013 10 44 AM tim 5000 X 2061 Recent Places Desktop Libraries i Computer iA Network p Elln File name 32 000003 2 L5x Import Files of type RSLogix 5000 XML Files L5X Cancel Files containing H Rungs Help Inta EN I ain Frautine I ainPregram Ovenwvrite Selected Rungs E
117. teData CONTROL 2 o Decimal WiiteData CONTROL 3 E 0 Decimal WiiteData CONTROL 4 0 Decimal FMWiiteData CONTR 0 Decimal AutoVision Industrial Protocol User Manual I 9 0 su T a o gt ms aii 90 lt cuapterna Allen Bradley PLC Setup via EDS for EtherNet IP Operation This section describes how to use an EDS file to set up an Allen Bradley PLC for EtherNet IP operation Notes e The camera communications protocol must be enabled for EtherNet IP before it can be used in this environment Refer to Chapter 1 Protocol Switching in AutoVISION and Visionscape FrontRunner for information about enabling and switching communications protocols e AutoVision and FrontRunner jobs use di soric Link functionality to accommodate EtherNet IP communications between the camera and the PLC For information about how to connect job parameters and outputs to di soric Link tags refer to the di soric Link Link Menus section of Chapter 4 in the AutoVision Software User Manual AutoVision Industrial Protocol User Manual 4 1 Chapter Allen Bradley PLC Setup via EDS AB Rockwell RSLogix 5000 v20 PLC Integration with EDS This section was created and run on the following Allen Bradley Rockwell components e RSLogix 5000 Version 20 00 00 CPR 9 SR 5 e 756 L61 ControlLogix5561 Controller firmware rev 20 11 e 1756 ENBT A EtherNet IP interface card firmware rev 4 1 Run the Rockwell EDS Hardware Install
118. the Device Type menu Change PLC x Device Name tex m Device Type CIIM C Setings Network Type Toolbus Settings Comment zu Help OK Cancel In the Device Type Settings dialog select the correct CPU Type and click OK x 7 2 AutoVision Industrial Protocol User Manual Setting Up an Omron PLC oelect USB from the Network Type menu and click OK Change PLC x Device Hame NewPLET Device Type C1 2M Settings Network Type USB Settings Show all Comment E LK Cancel Help Connect to the PLC via USB connection Select the menu item PLC gt Work Online or click the online icon in the tool bar When prompted click Yes to complete the connection A Work Online Ctrl W Once successfully connected the background of the right pane will turn gray and the online icons in the ribbon will remain clicked To complete the next steps the PLC must be in Program Mode Right click the PLC node in the tree view in the left pane and select Operating Mode gt Program EE NewProject Bet EA Data Type Change Tap E Symbols Insert Program b jeff 10 Table g ________ E Settings Work Online Ej Memory c Fl Start PLC PT Integrated Simulation EB Error log E Work Online Simulator ff PLC Clock Lit Memory E PEG Error
119. the PLC Now it s time to update the new addressing from the hardware installation prior Double click the OB1 block to open the LAD STL FBD editor OB1 is the main routine of the PLC program E SIMATIC Manager test File Edit PLC View Insert Options Window Help Ff SIMATIC 300 1 EB IMT51 8 PN DP CPU E E 57 Pragram 1 ES EE RED RD RS RS AutoVision Industrial Protocol User Manual 9 19 Chapter Demo PROFINET PLC Code Scroll down to Network 4 This is where the data is mapped from the camera to the local data structure FC3 is a function that pushes the input data from the camera to the program structure Click the numbers to match the address on the hardware as shown Click the following buttons on the popup dialogs F3 Check the sequence of the blocks that is required for the i correct function DK Cancel Help Insert Function Block T 1 The object FB1 already exists Do you want to overwrite it Rename No None Cancel Help Download 294 36 i Do you want to load the system data Yes No x Do you want to delete the system data on the module A 0 2 0 IM151 8 PN DP CPU completely and replace them with offline system data Do not display this message again No Cancel Help x The module is in the RUN mode A The module will be set to STOP Cancel Help Download 13 4363 B The module 0 270 IM151 8
120. tivated until the command operation is completed To verify the camera is still alive during command execution Control Echo can be incremented and the Status Echo will update accordingly When the demo code automates the command process the PLC integrator is responsible for the following steps 1 Deactivate all Controls and clear DataValid and Error status signals This is a best practice measure to ensure that the PLC has transitioned from a state of triggering and processing inspections to issuing a command 2 l fajob change command is to be issued populate the output tags required to configure the new job bool int long float string 3 Write the required CmdCode see Scan MV const CmdCode xxxx tags and CmdArg then activate ExeCmd 4 Wait for ExeCmd to go inactive per typical demo mode 1 operation Note that job changes can take up to a minute While a job change command is being executed the Status State tag will be 2 5 When ExeCmd goes inactive verify the following Scan MV CmdCodeRslt last is 0 Success Scan MV CmdhRest last contains the returned data from the command if any Status State has changed to 0 Offline or 1 Online ExeCmdAck is inactive 0 Status Error is inactive 0 6 Putthe camera online if necessary and continue with normal runtime operation AutoVision Industrial Protocol User Manual Description of PLC Tags Specific Status Guidelines Online The camera cannot be Trigger
121. tten tothe camera when LLI LL eO ma n O i the input assembly matches this written value CmdCode Specifies the process invoked in the camera when Control ExeCmd goes active See CmdCode for definitions CmdArg Additional argument data for the CmdCode See CmdArg for definition Each bit reflects the state of a virtual IO point The least significant bit reflects vio point 145 the most significant bit vio point 160 Each bit reflects the state of a virtual IO point The least significant bit reflects vio point 129 the most significant bit is vio point 144 Each bit represents a boolvalue The least significant bit of byte 0 reads the value of booll The most significant bit of byte 7 reads boolb4 Booll01 164 Each bit represents a bool value The least significant bit of byte 0 writes the value of bool101 The most significant bit of byte 7 writes bool164 Each pair of sequential bytes represents a16 bit signed integer value The 20 bytes represent10 integers From bytes 0 1 for the value of int1 through bytes 18 19 for the value of int10 AutoVision Industrial Protocol User Manual 8 3 Chapter Using PROFINET int101 110 long101 116 float101 124 stringl string101 string2 string string102 string107 8 4 Each pair of sequential bytes represents a 16 bit signed integer value The 20 bytesrepresent10 integers From bytes 0 1 to write the value of int101 through bytes 18
122. type demo Maximize the internal dialog to increase the viewing area zo e USER Demo DemoTrigType fore DEW 2 USER Demo Demolode DAID Dax 40 USER Demo CearCnunters DB101DEW amp USER Demo Count xecutions DBIOTDEW B USER Demo Courthass DB101DEW 10 USER Dero Counted CENCE 46 USER Demo MeQatasce 06101060 50 USER Dermo MaxDistance DB101 pg SER Cero HirBlbbcpunt p amp 101 Day 5 USER Demo MaxBlebCpurni 08001080 88 USER Demo ReadDmtance DEi01DEW amp 2 USER Demo ResdilicbCouni DB101DEW 38 USER Demo ResdBool 16 DB101D8X 1000 USER Dero BigEndian DB102DEX 242 PROG Program JoePass DEIOZ DEW 26 PROG Program Actwedob pet te o PHO Program Current5tabe CBT CES 200 PROG Program States ONLINE i 2D amp x 201 PROG Poors States EXP AUST TUI Start SIMATIC 300 1 CPU 315 250 E E B Table Ede Imat PLC Variable View Opbons Wind DEC FLOATING PONMT FLOATING PONT DEC DEC FLOATING PONT DEC To establish a live connection to the PLC click the Monitor Variable button on the ribbon This will update data from the PLC to the dialog The top title bar will go blue and the bottom status will show run with a green progress bar MU Table Edit Insert PLC W AutoVision Industrial Protocol User Manual STEP 7 Setup e There are two demo modes in this example The modes are set in USER Demo DemoMode DB101 DBW 2 0 AutoVision Test
123. under the main menu Tools Click the Next button Make sure the Register an EDS radio button is selected Vizard x E Options 3 Welcome to Rockwell What task do you want to complete Automation s EDS Wizard G pana EDS file s option will add a device s to our database LS o The EDS Wizard allows you to Ths opion w remove a deve that has been registered by n EDS fie fom register EDS based devices unregister a device E Create an EDS file change the graphic images associated with a device AN aa Bros CD Me Rae MOV OU KORNNm Yocom Your create an EDS file from an unknown device m This option uploads and registers the EDS file s stored in the devic To continue click Next net gt Cca nm coal 3 2 AutoVision Industrial Protocol User Manual Rockwell RSLogix 5000 AOI Add On Instructions for di soric Devices Click the Browse button to locate the EDS file C di soric Vscape Firmware eds Once the EDS file is ENS and selected click the Next button EDS File Installation Test Results Blectronic Data Sheet file s will be added to your system for use in Rockwell This test evaluates each EDS file for errors in the EDS file This test does not Automation applications guarantee EDS file validity Register a single file Ej Installation Test Results e work eds VS 32 000009 01 eds C Register a directory of EDS files rs Named E Work EDS vs 32 000009 01 eds Browse
124. us reserved96_103 0 fF Scan MV I0_userIN Status reserved104_111 E Scan MV ID userlNStsusStae E HH 5ean MV ID user IN Status reservedl20 127 T C5 aT 0 AN Q 5M c c um gt JH 90 o C D M a TES E I l 5can Mw ID user OUT Id Scan MW I0 user OUT Control ees Scan MV I userDUT CommlGoDnine 0 Scan MV ID user UT ConmolGoDine C Scan MV IO userD T Conmolesemed2 0 Scan MV ID user UT Conmohresemed 0 _ Scan MV IO userDUT ConwoleseEmor Scan MV ID user UT ConmolReseCoun 0 Scan MV ID userD T Conmohesemed amp 0 _ Scan MV ID user UT ContolExeCmd Scan MV ID userUTConmiTigg 0 _ Scan MV ID user UT Conmolresemved Scan MV ID user lTConwolreseediD 0 Scan MV IO use DUT Control ResetD atalalid Scan MV D user UT Conmolresemedi2 0 _ Scan MV lO userDUT Contolreservedi3 0 Scan MV ID user UT Conmolresemedld 0 Scan MV _I0_user OUT Contolreservedl5 0 HScan MV I0_userOUT ContolEcho 0 1680000 0000 D e ej i D D 5 Z i 1 AutoVision Industrial Protocol User Manual 4 17 Chapter Allen Bradley PLC Setup via EDS Change OUT Control Echo to non zero Scan MV ID user QUT Control reserved 5 i FH Sean MV IC user OUT Control Echo a321 FH Scan MV ID user OUT Control CmdCode 1640000 0000 Verify that Scan MV
125. vate a Control unless it is clear The user app should activate the Controls using one shot writes The use app should not continuously hold a Control in an active state Holding a Control in an active state will prevent the demo code from notifying the user app that the Control operation is complete by clearing the Control Usually when a Control is clear 0 the camera is ready for the Control to be activated again Please see the Specific Control Guidelines and Specific Status Guidelines below for qualifications AutoVision Industrial Protocol User Manual 6 7 Chapter Demo EtherNet IP PLC Code Demo Code Usage The demo code waits for the user app to activate a Control When the user app activates a Control the demo code handles all handshaking and confirmation that the Control operation is performed by the camera When the operation is complete the demo code clears the Control back to 0 Specific Control Guidelines 6 8 GoOnline and GoOffline In order to take the camera Online and Offline only one of these Controls can go active change from 0 to 1 and be active at any given time ResetCount After the user app activates ResetCount the demo code will clear ResetCount when the operation is complete The next Inspection output will be 1 as can be seen if AutoVision is connected to the camera in run mode Trigger Do not trigger the camera unless the TriggerReady Status is active If the Trigger goes active wh

Download Pdf Manuals

image

Related Search

Related Contents

      取扱説明書PDFダウンロード  5240 User`s Manual - Arroyo Instruments  Diamond Multimedia Radeon X1300PCI User's Manual  LMD-1950MD - DBIMedical  MANUAL DE INSTRUCCIONES y MANTENIMIENTO  Bedienungsanleitung    

Copyright © All rights reserved.
Failed to retrieve file