Home
User Manual - Scorpion Vision Software
Contents
1. TDVCmdProtocol Data RS 232 Export Set Image OK Mod grab NOK cay file Y PEE Disc eed The production process communication is with a PLC over rs 232 Scorpion can flexible be configured and adjusted to the production process requirements by using the TDVCmdprotocol text protocol Scorpion is a slave of the PLC and executes only tasks on command The following command protocol is defined in Label on Syringe 1 Check sent from the PLC to Scorpion a lt stx gt Check lt etx gt 2 Inspection result sent as response to the Check command a lt stx gt result lt xxx gt status lt xx gt lt etx gt e result lt xxx gt e distance is given in 1 100 mm e status lt xx gt e 11 Ok e 10 Rejected e 00 Cannot measure 3 Set Mode PLS selects operating mode a lt stx gt Mode_LowTolerance lt etx gt b lt stx gt Mode_HighTolerance lt etx gt lt stx gt and lt etx gt are ascii control signs and define start and stop of a command packet in the TdvCmdProtocol With this text protocol defined the PLC can do the following tasks e Set operating mode e There are two operating modes defined one with high and one with low tolerance values e Check syringe e Asks Scorpion to take an image and do an image analyses with the selected operating mode e Scorpion returns the inspection result with e Distance given in 1 100 mm e Status telling if values are found and withi
2. Cancel Note If you have problems with a camera driver it is wise to completely uninstall the driver disconnect the camera cold reboot connect the camera and manually install the correct driver The driver details shows the all the files of the driver Driver File Details Generic 1394 Desktop Camera 11 Drever filez CAWINDOWS Vaystems2dnvers cam 394 ep CAMINO OW S system drversika ape CAWINDO W S stem ie ecam 39dedlg dl CIN DOS aysbem32 Viewcam 394 prop ax CAWINDO WS system ZAAT TUW an EF CAWINDOW S System32 ipuv_32 dl EE C AWINDOW S Systema24k sprony ox AG prah Nn Prowsder Microsoft Corporation Fie verzior 5 30000000 900 bult by DIRECT Copyright Digtal Signer Microsoft Windows Component Publshet Microsoft Corporation All nghts reserved Pressing Update Driver will activate the Hardware Update Wizard Hardware Update Wizard Welcome to the Hardware Update Wizard This wizard helps pou install software for Genenc 1394 Desktop Camera 11 If your hardware came with an installation CD lt gt or floppy disk insert it now What do pou wart the wizard to do Instal from a Ast of specti location Advanced Click Nest to continue en It is not recommended to let XP install a camera driver automatically When installing a driver this warning from Microsoft is normal and can be ignored Hardware Installation The coftware you are inetalling for this
3. Bry Te Operation General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Options Panels INI Files Misc Panel Settings Profile About Explorer Result Panels Left Pane HUE Show SPB Parameters Console Events Help Web Browser Operation 1 Operation 4 Service Advanced 3 Results Results Name Type Host Panel settings and page content definition Operation Settings fa System log B Service Page Content X es Web Browser Cancel Settings Help Page Index 1 z About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Panels fiw Files Misc Profile Options A o Ini file C Program Files Tordivel AS Scorpion_S Label General Ini v show SPB Camera Parameters amp General Tag Vale E Productionltem GrabDLL FireGrab dll Console E DebugWindow NoOflmagesinGrab 1 E EventLog Events E Port E ComPort Help E Identification amp Camera 1 0 E ImageView E Productionline E Batch E Service E ImageBuffer E OperationLog HE Scheduler z E INI files Scorpion Vision Software User Manual 9 1 3 Panels Under the Result Panels settings you find a list of optional user interface panels Select them and press the Show button to make them available Select them and press Hide to remove them from
4. can be run in a limited period of time for evaluation purposes e Maintenance license is used for profile maintenance based on images stored on file e Full license Lite Basic Premium and Vision Server 1s related to available functionality and the number of cameras and meant to run in a production environment Licenses can be retrieved over the Internet www scorpionvision com If your computer does not have a correct license Scorpion will at start up ask the user to apply the license code You write or copy the license in the License field Then you press the Register button If the license is accepted Scorpion will start as normal The IP address and MAC address fields are only for information and are used when requesting a license Normally the license is related to the computer s network board The MAC address uniquely identifies this board If you want to check which Scorpion license that is installed on your computer open the About window Here you can activate the license information window as shown below License for Scorpions Application Mame Scorpions Show info License jJotsL 277 pM aS GbpikhyteUOCeOtoE v UWV BSBOGikyg q Register Information Name S Corpor Expiry date 2010 01 16 M Non expiring Expired License type Universe f Pbased MAC based PF Demo MAC address 00 1 d e0 a i Required IP range Required Addresses on this machine IP addresses fi 95 69 259 164
5. z EL A i me Operation Settings B Service aa System log T About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Tool Settings Ln 1 0 0 MMReference 2 0 0 Distance Low 3 0 0 Distance Cannot Measure 4 0 0 Lowkolerance 5 0 0 Distance High 6 0 3 LightMeter 7 3 4 Find Syringe 5 0 0 Syringe Present 3 0 8 Find Left Edge 10 0 8 Find Upper Right Edge 11 0 7 Find Upper Left Edge 1E 0 1 Reference Line 13 O 1 Syringe Reference 14 1 4 Syringe Width 15 0 7 Find Left Slope 16 0 6 Find Lower Left Edge 7 0 6 Find Right Slope 18 0 6 Find Lower Right Edge 19 0 1 Left Intersection 20 0 1 Right Intersection z1 0 1 Marker Reference Line 22 0 8 Marker LightMeter z3 0 3 Find Marker Threshold 24 2 0 Find Marker 25 6 6 b4 find marker e ze 27 9 FZ wr 27 0 6 Find Marker Upper Edge lm 25 0 1 Marker Distance 23 0 0 Distance OK zo 0 0 Distance High lA ScaleReference ExternalScalar ExternalScalar ExternalLoagic ExternalScalar IntensityTool BlobTool LogicTool LineEdgeFinderTadl LineEdgeFinderTadl LineEdgeFinderTool LineFramPoints PointLin Reference LineEdge Caliper Tool LineEdgeFinder Tool LineEdgeFinderTadl LineEdgeFinderTadl LineEdgeFinderTadl PointFramLines PointFromLines LineFramPaints IntensityTool PwthonScript BlobTool Blob 4 TemplateFinder LineEdgeFinderTadl NearestPointOnLine LogicTool LogicTool Mm ge Reference 1 ee ee ee e
6. User Manual SCORPION VISION SOFT WAREe Evolving visions Contents 1 1 3 1 AZ A3 aol 3 3 2 3 33 3 4 3 4 1 3 3 Sut 5 2 5 3 5 4 5 5 5 6 5 6 1 IOA 5 6 3 5 6 4 303 56 3 5 6 6 5 6 7 5 6 8 6 1 8 1 8 1 1 8 1 2 8 1 3 8 2 9 1 Introduction Customer support System Description Installation and Start up Installation Licensing Start up with the Demo profiles Requirements for demos Start up select a Profile Shortcut at start up Making a new Profile Profile content Activating a camera Introduction to example Label on Syringe Normal operation Web explorer History Curves Results Statistics Camera image processing Image zoom Measure intensity values Measure Polygons Point amp Click Clipboard Support Save and Copy Pointing precision and Panning Help Layout System log Configuration About Settings States General Constraints Command sequence Web Browser Service General VO O OO N AAM AB W W _ 11 12 13 13 13 14 14 15 15 15 15 16 16 16 16 16 17 18 18 19 20 20 21 22 22 23 24 24 Copyright 2001 2010 TORDIVEL AS Scorpion Vision Software is a Registered Trademark of TORDIVEL AS TORDIVEL AS takes no responsibility for the accuracy or completeness of content of this manual Copying is not allowed without prior written authorization from TORDIVEL AS 9 1 1 Profile 24 9 1 2 Options 25 9 1 3 Panels 26 9 1 4 I
7. fibr S me mamam Variant lt Nane sl Image index ri ti J Inherited Color images Default no conversion v FT Inherited lt None gt v _ Inverted Tool type Template Name Guard Cancel Apply Help Template C all tools this only C this ref C none Result dialog Change MMReference ScaleReference General Setup Visualisation Results Coordinate system Reference lt Pixels gt v New scaling coordinate axis 7 X inverted 24 8 E Y inverted 24 8 fal Cancel Apply Help Template j Save s Visualisation all tools this only C this ref none Result dialog Change Find Syringe BlobTool General Setup Visualisation Results Inspection graphics J Show graphics O allelobs O alicenters O llHoles CenterOfGravity O Error MaxContour Oro Cancel Apply Help Template Save 4s Visualisation all tools this only C this ref none 7 Result dialog a Change Find Syringe BlobTool General Setup Visualisation Results Largest area N Largest blob area N rotal blob area N Intensity N Center of gravity x N Center of gravity y N Contour area 0 N Contour length 0 N center of gravity 0 x N Center of gravity 0 y N contour areali N Contour length 1 N Center of gravity 1 x Scorpi
8. s tool panel you can if you are authorized change the page setup You can decide which page to be the home page and if the tool panel with buttons and text status line and page title shall be shown You make the page content with an editor for example Microsoft FrontPage You can relate Scorpion s commands and parameters to buttons and boxes on the web page Service Advanced 3 1 4 Edit Configure Delete E Eza e Page Content i Name PO Type web Browser sl Cancel Host Settings a Hele Page Index po Properties for Web Browser X V Show Toolbar V Show Toolbar labels V Show Statusbar Cancel WW Show Caption WEB Browser Home page C Program Files T ordivel AS Scorpion 8 default htm oe 5 am pane Operation rz tay a Settings ervice stem log g Servi System G About Web Browser states WEB Browser Ef lt 3 Back gt Forward stop 2 Refresh At Home ET Properties g Service Each service panel is shortly described in this chapter Use of the panels requires however detailed information and training above the scope of this user manual SHORTCUT SYMBOLS unpre me tl kK G i P Service EA System log The Service toolbar provides convenient shortcuts for often used functions Move the mouse over the symbol and a descriptive text is shown e Save current image to disk e Full image mode hides
9. Find Upper Left Edge Find Upper Right Edge Marker Distance Marker LightMeter Marker Reference Line MMReference OK PL Reference Line Register Result 44 Adding parameters for logging 9 8 3 Results Measured values of each inspection are shown in this panel You can choose which parameters to display by selecting New and choose from the list coming up The left column shows the image tools used in the analyses The right column shows the values measured by the tool Choose a value click Add then the window stays open smart if you want to add more values or Ok and the value is included in the overview a a oon Peration settings B Service System log oy About General Scheduler Actions Toolbox Camera Communication Maintenance Adwanced Alias Logging Results Central Web Server SimpleStat s Measured Values red rameter vel N Distance_Low Value 3 60 mm 3 N Distance_High value 3 85 mm Edit N Lowtolerance Value O bool Tatal Value 30 Up Bown N error Value Nox Value N Reference Line Angle Distance Cannot Measure Distance High Distance Low Distance OK Distance_High Distance_Low Error Find Left Edge Find Left Slope ine p W Sorted Find Lower Left Edge i Marker Distance Marker LightMeter Marker Reference Line MMReference OK Inspection results 9 8 4 Central Central provides yo
10. Function All parameters are sent as a long string with Name Value3 For example Calendar SetMonth Value 6 This Python call is transformed to a call to the Delphi callback Central Execute It should be of little importance here but you can also call the method directly yourself The function shall be given a single parameter specifying a TDVCmdProtocol string To do the same as above you may call nu ExecuteCmd Script Calendar SetMonth Value 6 The return value from such a call is a TD VCmdProtocol formatted string The examples above would both result in this string returned to your Python function Calendar SetMonthResponse Value 6 Result OK Scorpion Vision Software User Manual This may be changed For example the following call Calendar GetMonth returns this Calendar GetMonthResponse Result 6 General scripts You can generate generic scripts from the Scripts page by pressing New New script Enter a name Double i Cancel A new script skeleton is generated The script does nothing by default but is syntactically legal mx Script editor Double 1 ef Double 2 pass Apply all Cancel all Help You can add parameters to this function for example Script editor Double 1 def Double j 2 return a 2 Cancel Ecu _ Cas Awwal _ Cancelal Apply all Cancel all Help Remember that you hav
11. Layout Console EE Console Window _ Show console window at startup Parameters Console Events Help J7 Show camera messages Show Arrlib messages Console window options Scorpion Vision Software User Manual 9 1 2 Options The options are used to configure the application behaviour in detail The options are divided into three categories Under Operation you can do the following Automatic start at start up if set the inspection automatically starts when Scorpion is started Confirm stop by PIN you are asked to confirm termination by giving the PIN code Confirm close gives a warning when you terminate the program You are asked to confirm e Load HIS colour conversion file at start up valid when colour images are used Loads colour lookup table when starting Scorpion Loading of this file takes time thus it is timesaving for the image analysis to load the file at start up e Stop on error if selected Scorpion stops if an error occurs e Stop on unknown state if selected Scorpion stops on an unknown state e Stop on curve alarm if selected Scorpion stops on curve alarm e Update curves on error if selected curves with inspection data is updated also on processing error Normally you don t want the curves updated with noisy data e Update log on error if selected the data log is updated with inspection data also on processing error Event messages are in
12. power of a standard PC system Scorpion Vision Software is used in a vast variety of industries automotive wood furniture manufacturing food pharmaceutical robotics packaging energy and more It solves tasks within robot vision label and surface inspection assembly verification quality control color identification and high precision gauging The system is founded on top of a standard Windows PC platform thus a flexible alternative to proprietary vision sensors or custom vision systems It is cost effective benefitting from the processing power of the Intel processors low cost and high quality firewire cameras and the possibility of connecting multiple cameras to one PC Scorpion Vision Software is packed with features and details making it easy to develop and maintain robust industrial vision systems Every single feature is specified implemented tested and verified based on experience obtained on the factory floor An Scorpion Vision Software offers large reduction in the development time and maintenance cost for machine vision systems T Copyright 2001 2010 Tordivel AS Scorpion Vision Software is a Registered Trademark of Tordivel AS TORDIVEL Scorpion Vision Software User Manual 68
13. status line and page title shall be shown You make the page content with an editor for example Microsoft FrontPage You can relate Scorpion s commands and parameters to buttons and boxes on the web page 5 2 History The latest measurements are shown in the image list A number identifies each image taken The time and the classification result the state are additionally given in the list By selecting an entry in the list the image is displayed in the Image window to the left on the screen You can choose to save or delete all or single images choose how many images to display in the list open images from another folder and choose to show the buttons to the right You can also do these operations with the buttons 5 3 Curves You can choose between numbers of curves illustrating different values calculated by the system All measured values can be graphed Right click the mouse to see a menu and select add or remove curve Note you can only add or remove a curve in Settings or Service mode Select Settings in the main panel and give the password If you are adding a curve you get a list of all values available The left column shows the image tools used in the analyses The right column shows the values measured by the tool Choose a value click Ok and the value is graphed b4 find marker a Cannot Measure Right click the mouse over the curve and you can reset this or all Distance Cannot Measure Distance High D
14. txt _ Time Sender Event Jia D 1 20 09 2006 15 04 04 gt 8702 lt 5TX gt Result 328 Status 0 lt ETX gt a 2 1 20 09 2006 15 04 04 lt 8702 lt STX gt Check lt ETX gt s 1 20 09 2006 15 03 51 gt 8702 lt STX gt Result 379 Status 1 lt ETX gt TCP IP setup 7 You See the Scorpion i P 1 20 09 2006 15 03 51 lt 8702 lt STX gt Check lt ETX gt 8 P1 20 09 2006 15 02 42 gt 8702 lt STX gt Result 391 Status 0 lt ETX gt setup and how the messages are filling P 1 20 09 2006 15 02 42 lt 8702 lt STX gt Check lt ETX gt 21 20 09 2006 15 02 25 gt 8702 lt STX gt Result 391 Status 0 lt ETX gt the command log You can SEE that D 1 20 09 2006 15 02 25 lt 8702 lt STX gt Check lt ETX gt F P 20 09 2006 15 02 15 gt 8702 lt 5TX gt Result 391 Status 0 lt ETX gt mode LS set to low to le rance and that P 1 20 09 2006 15 02 15 lt 8702 lt STX gt Check lt ETX gt Scorp ion communicates on port 8 700 s1 20 09 2006 15 01 50 lt 8702 lt STX gt Mode_Lowtolerance lt ETX gt Pixels X 526 Y 755 Pixelvalue 15 20 09 2006 15 05 30 Scorpion Vision Software User Manual 64 Appendix 3 Block diagram Label on syringe Scorpion Vision Software User Manual Below you see a block diagram of our example Label on Syringe This is a typical setup of a Scorpion based system One camera is connected to Scorpion External VDU and Keyboard Camera Industrial VISION PC SCORPION Vision Software
15. 11 43 44 System information Under License information you see the type of license that is valid on your computer Press the Change button when the license needs modification You see i e the license string itself and the expiry data License for Scorpion8 Name Scorpion8 Show info License JatsLY z7V pMSSGbpitvt2U0CeOtoE vy VBSIBOGIkygRq Reaister Information Name Expiry date License type MAC address P range Addresses on this machine IP addresses j 93 69 239 164 MAC addresses 00 1 d e0 0a c6 a1 v Valid license License information 8 Settings Access Control The settings are protected by a PIN code and cannot be changed until the correct code is given The settings can however be read without applying the code Scorpion Vision Software User Manual The system has two different pair of settings One for trained operators and the other for authorized service operators Select the Setup button on the upper left of the screen give the PIN code for settings and the first category is shown Buttons and menus for system configuration are shown in the main window when selecting Settings The buttons Snapshot and Inspection are used to take an image and inspect this for instance at system verification configuration or on manual operation After system configuration you can also choose an image in the image history and select Inspection to
16. Apply will register the script with the Python engine but keeping the editor open Close will first apply and then close the editor tab Run will first apply then actually run the script If the script needs parameters you will be prompted to give them manually The all buttons will handle all open scripts In case of syntax errors you will not be allowed to close the editor and both the Apply and Close buttons will inform you of the error letting you re edit it as shown below Script editor og Handle_Calendar_Click Handle_Calendar_KeyDown Dj Sb Bol S A R 2e WO BIED Close Apply jl eg me Execute en Cancel Close all Apply all Cancel all Help SyntaxError invalid syntax line 1 offset 26 df Handle_Calendar_KeyDown KeyCode Shift Note also in this example how the scripts are auto generated e The page Calendar has an event called KeyDown the generated script is called Handle Calendar Keydown This script is then executed when the event is signalled See the Script details page below for more information on this e The parameters are the ones from the event with type information given as comments In this case the first parameter is of type VT_PTR which is a generic pointer that is unfortunately not handled by ActiveXContainerX Parameter two is a two byte integer passed by value We have done our best to decode the Python error log and find that in most cases w
17. Cancel Apply Help alltools this only C this ref none Visualisation Result dialog General Setup Visualisation Results Reference Syringe Reference v Search area Emphasizing gradients I Sobelfilter Morphology e erode d dilate Area search Maximum threshold Find Marker Threshold Value jo Result validation V Smallest area 0 2 Largest area 1000 Smooth factor Center 4 5 dX 15 el Center 14 5 dy 5 Minimum threshold fo E Cancel Apply Help Visualisation 7 alltools this only C this ref C none F Result dialog aan wann re Change configuration for Find Marker General Setup Visualisation Results N Number Coverage N Total blob area N Intensity N Center of gravity N Center of gravity y N Contour areaf0 N Contour length 0 N Center of gravity 0 x N Center of gravity 0 y N Contour areal1 N Contour length 1 N Center of gravity 1 x Cancel Apply Help Visualisation alltools this only C this ref C none _ Result dialog Under Results you find the results of a tool operation Right click when selecting a result parameter and you can set the precision and add the unit of measurement This will be reflected when the parameter is shown in Operation Results and Service Advanced Results Scorp
18. MAC addresses 00 1 d e0 0a c6 al Walid license License information 3 3 Start up with the Demo profiles Scorpion is a general inspection system A profile makes it dedicated and special for an inspection task The configuration done to perform an inspection task leads to a profile The demonstration profiles are valuable examples and demonstrate Scorpion s capabilities as a vision system They get their images from file and give a good insight in Scorpion set up and operation A number of such profiles with corresponding presentations are included on the Scorpion CD The Getting Started exercises lead you through the basic Scorpion system concepts This is a compact user s course and leads you through the most important Scorpion features The Robot Vision Start and Final are the profiles to go for if you are looking into robot vision 1 Select Start up on the CD to install one or more of the demos 2 Load the profile s zip file and save it in the Scorpion Archive directory 3 Start Scorpion Go to the Windows Start menu Select Start Programs Tordivel Vision Solutions Scorpion A profile selection dialog is then shown 4 In the dialog window right click the mouse and select Restore 5 In the folder coming up browse to the Archive directory where you saved the zip file and open it 6 The Profile is now in the dialog window and you can open the application by double clicking on it On the CD there is also
19. Manual Resuscitator for NT developed by Tordivel AS can be used to start and supervise Scorpion Resuscitator guarantees that your services are available 24 hours a day Resuscitator is a highly configurable and unique tool designed to do program management on standalone Windows 2000 NT computers Resuscitator s primary tasks are to ensure program availability force strict and controlled startup and shutdown sequences and offer flexible program scheduling and remote control You can restart your computer over the Internet using the Remote Client program Connecting Scorpion Watchdog and Scorpion Vision Software Resuscitator for NT the Scorpion Watchdog can make many programs behave like one single system started with a shortcut Below you see an example based on test of the communication in Label on Syringe On the Label profile you find two configuration files e Label spb e Resuscitator ini Setup of IMTDV CmdProtocol4 for test of Label Setup of Resuscitator for NT that starts Scorpion Label IMTDVCmdProtocol Label spb You also find a shortcut Resuscitator Test of Label on Syringe When starting this shortcut Resuscitator for NT will start in the background Use the FindResuscitator program to make Resuscitator visible to inspect the setup of resuscitator ini Resuscitator starts the IMTDVCmdProtocol and Scorpion thus you can test the profile s external interface Test of this interface is thor
20. Note You can choose between BMP and JPG format 9 5 5 2 From the Image History List Activate the History list menu select the Save or Save All command gt e Kee Fe G Save Image al Operation JE Settings ga System log About x Filename BMP C JPG Compression 0 100 fo File no Cancel Comment Pass Description History Curves Result Statistics Imageno Time Comment Folder _ C template 20060906_105834 w 44 20 09 2006 11 34 45 Distance High 43 20 09 2006 11 34 44 Distance High w 42 20 09 2006 11 34 43 Distance Low f 40 i liane ad pane sequence number prefix and an image index v 39 20 09 2006 11 34 40 Pass waa 20 09 2006 11 34 39 Pass r postfix 37 20 09 2006 11 34 38 Pass sacl 36 20 09 2006 11 34 37 Distance High Image Folder 35 20 09 2006 11 34 36 Distance High 34 20 09 2006 11 34 35 Distance High Fixe 33 20 09 2006 11 34 34 Distance Low 32 20 09 2006 11 34 33 Distance Low Help 31 20 09 2006 11 34 32 Distance Low L 30 20 09 2006 11 34 31 Pass lt m gt 9 5 5 3 From the Image Menu To build up a set of images to use for example for test purposes do as follows 1 Press the right mouse button over the image pane to the left on the screen 2 Select either Save shown image with graphics or Save shown image without graphics from the menu Select a folder to place the images from the window coming up Add po
21. Scorpion These are image processing tools in addition to mathematical and logical tools They are grouped in six categories Basic Data Edge Geometry Reference 3D and Advanced tools The tools are rather simple but put together they solve very complicated tasks An image analysing tool is used to make a calculation When configuring a vision system you decide which tools to use and set their parameter values The parameters define the tool set up and are typically coordinates search areas ROI Region Of Interest reference points min max values etc When run a tool generates a result given as one or more values in addition to a set of graphical elements for visualization The measuring result is used to define the measured objects state or status which again decides if an action is to be taken The visualization elements are used to illustrate the Scorpion measurement in the camera image Each element is given a colour Additionally to the image analyses tools there are other tools used to further process the analyses results Two tools of importance are the logical and Python tools The Logic tool classifies results from a set of image analyses tools Python ensures maximum system flexibility 9 4 1 The Tool Settings window The toolbox consists of an ordered sequence of tools You can work with a tool by selecting it and using the buttons or you can right click the mouse over the tool and choose operations from the menu
22. Service General Supervise only the parameters that operator experience finds useful and give them realistic limits You may loose overview control and trust in the system if the number of supervised parameters and generated alarms are too large 5 4 Results Measured values of each inspection are shown in this panel You can choose which parameters to display by selecting New and choose from the list coming up The left column shows the image tools used in the classification The right column shows the values measured by the tool Choose a value click Add then the window stays open smart if you want to add more values or Ok and the value is included in the overview Change configuration for Marker Distance General Setup Visualisation Results Result Reference OK lt Incoming gt v CE Nearest pointy Distance N Distance to line start point Status N Analysis time You set the unit and precision of the measured values from the tool window in the ra Toolbox to the right See the Service Toolbox chapter BE v Localized this ref C none Result dialog 5 5 Statistics A periodical view of the inspection results is shown here The table has one row for each classification state The columns show the inspection result for this period last period and the total By right clicking the mouse and selecting from the menu shown you can manually reset the statistics You can also
23. activates display of alarm messages e Show Warnings activates display of warning messages e Show Info messages level 1 2 3 activates display of information message level 1 2 or 3 e Show All Senders display all senders default e Show only this sender only selected source is visible e Set log size user defined log size is defined e Empty Log e Delete selected message e Freeze log stops updating system log e Configuration opens system log configuration see below e Copy message to clipboard e Copy log to clipboard copies all message to clipboard e Add all messages to memory add all levels to memory this means that you will be able view message not visible when changing message visibility JV Enable deleting from popup menu Add alarms also in NT event log Add warnings also in NT event log F Add all events to memory Save history Configuration Fonts and colors Background color white x Font color flack ey Cancel Font name Tahooma zl Miscellaneous Enable logging to file ON fa Eventlog size 250 Time format OO OE System log configuration Note Valid only for some browsers Upon closing the browser this dialog may disappear Press Alt Tab to locate the hidden dialog Scorpion Vision Software User Manual Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion 6 Label BAX As m at 5 ft R SCORPION VISION S
24. before shutdown We like defining global variables and setting up system parameters in the start up script When the start up script is run all control pages have been initiated so all functions like Calendar SetMonth are available Note These scripts are special They are NOT run when the editor s Apply or Close buttons are pressed Script executed errors If a Python error occurs when a script is run during runtime two things may happen depending on your settings First the Python error log may pop up second an editor may pop up showing the point of error in your script s Again we have done as much as we could to decode the Python messages and if you follow the conventions with scripts the correct script should show up in the editor with the error even in a nested Python function call No guarantees though 48 General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server SimpleStatx Allow 7 Active a IW GET V HEAD POST V PUT V DELETE FILTER M Events Status Open Sender Web Server WebServerControl4 Control Properties Listenport Root directory Default page MIME types video s msvideo image bmp application msword application octet stre image gif text html text html text plain image jpeg video mpeg video mpeg Default type text plain Allow transfer of
25. by selecting the box in front of their name my 2u a Fz aint Operation Settings B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Scheduled Every 1000th millisecond Name Frequency Trigger Every Nth millisecond Edit Up Down Delete Execute Edit Event Event Enabled Name Command CameraTrigger v Schedule Information Frequency Every Nth millisecond v Period 1000 Scheduled task Scorpion Vision Software User Manual The commands described in chapter Service Actions can be used here thus run repetitively and scheduled In the left example the CameraTrigger command is set to trigger the camera every second Hint Use the Savelmage command to save an image to file from time to time These pictures can later be run as live video thus you can easily see if e g the light conditions have changed over time You find live video under Service Camera 27 ay Operation 2 Settings B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced To adapt the system to your needs Scorpion has defined a set of commands Ts New to be used at system events For each system event you can define a After stop ese command sequence to be run wh
26. choose to automatically save the statistics The time and frequency for doing this is chosen under Scheduler in the Service panel With the system command Statistics the following operations can be done either by the Scheduler through the communication interface or at given system events e Statistics cmd zero resets the period statistics e Statistics cmd reset resets all statistics e Statistics cmd save saves the statistics to file The statistics are saved if the system is terminated and is reloaded on restart 14 Scorpion Vision Software User Manual 5 6 Camera image processing Scorpion supports many operations on the camera image Right click the mouse over the image to activate the menu SS eee i ll ETD 003 Add point to Clipboard Ctrl LMouse Reset Clipboard Shift Ctrl RMouse Clipboard gt Copy x ig Copy Set measure origin Copy point dend Remove last point Ctrl RMouse y han Move point Shift Ctrl LMouse Insert point Shift LMouse Copy shown image without graphics Remove point Shift RMouse Save shown image without graphics Copy shown image ard graphics Undo Save shown image with graphics Gossip Load from file Export v Show details Referencesystem gt Show Histogram Show Pan View Auto Panning Pointing precision Layout gt Help qa lt Image operations 5 6 1 Image zoom Zoom in and out this way e Zoomin click left mouse button and drag the c
27. e Rename renames selected tool e Activate Deactivate Ctrl A e Used by Ctrl B shows all tools referencing this tool e Tool Ctrl Z sets ROI Mev Ctrl h ai AE e Set sets common properties for a set of selected tools The following set operations are Rename available Deactivate Chrl 4 e Visible Used by Ctrl B e Image index Tool e Color plane Set bk visible Re ference Visualisation b Image index Gdlarplane Multicore Threaded a a a Reference e Group a Multicore Threaded e Variant Delete Del ae e Guard arian Select all e Inverted guard AE Guard CIC LHR EGE Cl teiten e Manual execution Up Ctrl U Manual execution e Visualisation determines which tool results you want displayed in the image Down Ctrl D e All graphic results from all tools in Cri e Selected only results from the selected one Save Template e Sel Ref results from the selected one and it s references Save as Template e None no graphic results are seen in the image HFF LI ri i H i ri P e Cut Ctrl X cuts the selected tools etach Template e Copy Ctrl C copies the selected tools Import e Paste paste the tools on the clipboard co e Copy the selected tool Open result dialog CkritR e Copy the configuration from the selected tool overwrite the selected tool __ Close result dialogs Shift R e Copy the configuration from the selected tool without reference overwrite the w_ Show Buttons selected tools
28. for manual code signal from the production line e Status for reset signal from the production line e Status for quality alarm e Row column coordinates pixel value and name of graphical image components The values change when moving the mouse within an image e Date and time CT Bal Oa i By Operation S Settings gA System log About Description History Curves Result Statistics gt Forward stop Refresh A Home Syringe Label Position SCORPION Measurement k D VISION SOFTWARE Mode Operation el Sample Mode is selected to see that the labels are in the narrow band of 3 6 3 85 mm Operation mode has lower tolerances and label positions from 3 4 4 0 mm are accepted Operation Statistics Zero OK 29 Error 15 Total 44 g C Program Files Tordivel AS Scorpian_S Label Weblsetup htm Operating the system from the web explorer m Bal Oy G a Operation ge Settings gA System log GS About Description History curves Result Statistics J Open 07 09 2006 14 17 50 Pass 07 09 2006 14 17 49 Distance Low Save 07 09 2006 14 17 48 Distance Low 07 09 2006 14 17 47 Distance Low Save all 07 09 2006 14 17 46 Pass we Delete 07 09 2006 14 17 45 Pass 07 09 2006 14 17 44 Pass Clear all 07 09 2006 14 17 43 Pass 07 09 2006 14 17 42 Pass Image Folder 07 09 2006 14 17 41 Pass 07 09 2006 14 17 40 Distance Low Explore 07 09 2006 14 17 39 Distance Low 07 09 2006 14 17 38 Distanc
29. image graphics Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion 6 Label Demo License Expire Date 12 04 2008 BAX Ba g el i o E Rar o ki H o BO SCORPION en tL a b Start Setup Save Snapshot Inspect Help Close amp amp SA VISION SOFTWARE T a Ee B sevice BA svenis GD voor General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Te Tool Settings r Status T ms Name Type Image a 0 0 MMReference ScaleReference 1 j 0 Distance_Low ExternalScalar 0 Distance Cannot Measure ExternalScalar ne 0 Lowtolerance ExternalLogic Distance_High ExternalScalar Change Find Left Slope LineEdgeFinderTool beet oe 4 Li ge Present LogicTool perias eft Edge LineEdgeFinderTool q Jpper Right Edge LineEdgeFinderTool Reference el if Jpper Left Edge LineEdgeFinderTool Used by Syringe Reference he ence Line LineFromPoints Cancel ge Reference PointLineReference Help General Setup Advanced Visualisation Results Move x Orientation Apply ge Width LineEdgeCaliperTool Center X 2 7 Length 2 al eft Slope LineEdgeFinderTool a ower Left Edge LineEdgeFinderTool Filtering Center Y js Angle 34 Bal omp 2 Template Aight Slope LineEdgeFinderTool Type Trace lines ower Right Edge LineEdgeFinderTool Angle ntersection PointFromLines Count 21 E Bi Intersection PointFromLines Start point 2 T
30. loaded Start up Quality alarm activate run when a quality alarm is activated Quality alarm deactivate run when a quality alarm is deactivated Unknown unit run when the system detects an unknown unit lt User defined gt can be called from other command sequences or from an external system 50 11 Commands 11 1 System Commands The system commands perform actions on the Scorpion application Command Parameters Comment AccessControl Command for opening and closing the Scorpion Services and Settings SYNTAX AccessControl lt service settings gt lt o 1 gt COMMAND RESPONSE AccessControlResponse Result lt OK Error gt EXAMPLE Open service and settings AccessControl service 1 settings 1 Close service and settings AccessControl service 0 The command is not protected with password The command is suited to close Service in the system event Start Scorpion can then not be run unprotected under normal operation ActiveSystem name profile name Sets a specified system profile active in a multi profile system The system commands can be used to decide the active profile in a multi profile system The command can e g be connected to io signals to avoid changing systems with mouse and keyboard Activating an external system to catch the operator s attention in case of faults can be another use SYNTAX ActiveSystem name lt profil gt COMMAND RESPONSE ActiveSystem lt name OK Error g
31. management Settings B Service aa System log oy About General Scheduler Actions Toolbox Camera Communication Maintenance advanced Profile maintenance Choose a suited directory to place the backup eneral e under the Archive folder Press Explore to get Archive Folder c program Files Tordivel A5iScorpion_S Archive an overview of the file structure This opens Brecher _ Restore the Windows Explorer Press Backup to take H ae Operation a hacia yoni yen ciple wine A Label_ O01 zip 06 09 2006 11 07 56 1997 KB En aa A iLabel_002 zip 20 09 2006 12 03 46 1997 KB current configuration is then generated and placed in the archive folder you specified Glan oe Help To restore a previous edition of the profile tele select it in the list and press the Restore Backup of profile Label Scorpion Syringe Label Position Measurement 5 0 0 236 20 09 2006 17 05 28 button Eme Profile maintenance Scorpion Vision Software User Manual 43 Log setup Lag files OK Automatic yyyymmdd hhmmss ext C Static filename Cancel Default extension csy v _ Cancel Folder C Program fles TORDIVEL AS Scorpion_5 Log Help Options V Add field names to lag file J Request operator input before start Request operator input after stop Log setup If selecting the Add field names to log file option the parameter names are i
32. only if the result is false 0 Press the button and you find available commands window left below and guards Select You can run a selected command immediately by pressing the Execute button Press the Metralve ra Execute All button and the whole command sequence defined for a system event is run Grab mn enn necute e For information on the rs 232 tcp ip and Profibus interfaces see the Communication chapter riage Complete ee Exposed dos Error messages are sent to the System log rm ruk Inspect The system defined events may also be called from any other event either by the localized eves necute name or by the internal name Using the internal name will always work when transferring tode _Hightolerance profiles between computers with different locale settings Mode Lowtolerance NextSystern Profile ar na ACTIONS LABEL ON SYRINGE arm ctiwate Cl larmDeactrate S oe le GalarmnFeset In our example Label on Syringe there is two user defined system events Mode_ RefCmds Hightolerance and Mode_Lowtolerance Both Mode_Hightolerance and Mode_ deter Lowtolerance consist of three SetValue commands They set tool values in the toolbox Savelmage Script The command sequence for Mode_Lowtolerance consists of the following commands Sends etup sends tatistics 1 Set lower limit SetValue Distance_Low Value 3 4 2 Set upper limit SetValue Distance_High Value 4 0 Shutin 3 Set mode SetValue Lowtolerance Value 1 Ava
33. run a new inspection By selecting the Image button images are saved By using these buttons a set of images for test purposes can easily be generated Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion 8 Beta l abel BAX e m ja 4s bhSrE amp FO mE SCORPION Start Setup Save Snapshot Inspect Help Close VISION SOFTWARES K Kl si G By Operation 2 Settings gA System log About name Classification constrans u c 1 H cmas New Pass False me UE ie 1 Distance High Distance high False ate ee oe 1 7 Distance Low Distance low True Oe OS 1 cannot measure False ee ae OK False EEn az EZ einde Help Distance J Pixels X 1 4 94 Pixelvalue 15 20 01 2010 12 31 50 Main window when configuring the settings 8 1 States In Scorpion system states are used to classify the result of an inspection In an identification system the states are typically the identified unit or product In assembly verification they can for example be pass fail no product or cannot measure The state is presented as the inspection result in the History Image list and in the Inspection result panel at the lower left of the screen The states themselves are defined in an ordered list The condition is updated as the inspections are processed Scorpion Syrin
34. the screen Normally you want to see the e Indicator panel if selected the indicator panel is shown at the lower left side of the screen The panel indicates which error that has occurred 1f a unit is rejected e Result panel if selected the result panel is shown at the lower left side of the screen Here you see the result of a classification Plugin panels are defined under Advanced Central Plugins You include them in the screen by selecting them and pressing Show Under Page Administrator you can add additional detailed panels like web browsers and result panels Press New and fill in the Page Content panel coming up Host decides where in the panel structure your page will show up in the Operation Settings Service or Service Advanced panels The panel Type can either be Data Input Web Browser or Result Give the page a name press OK and the page is included Press the Configure button to set the home for the web browser 9 1 4 INI files This panel is used to get an overview or tune a large number of different parameters The parameters are hierarchically structured as seen in the example below Many of the parameters found here you can also find in other service and settings panels Operating on the INI Initialisation files is an alternative way of configuring and managing the system Note This panel is normally not being used Changing the Camera Interface DLL This panel is used to change the camera interfa
35. with the exception of the reference Help e When multiple tools are selected paste is not allowed to overwrite existing tools use Edit clipboard to change the names The Set menu e It is possible to edit the clipboard using Notepad and copy tools from another Scorpion profile running on the same computer e Delete Del Deletes the selected tools e It is not possible to delete tools that are connected to other tools not being deleted e Select all selects all tools in the toolbox e Edit clipboard activates toolbox clipboard editor can be used to rename tools before pasting into the profile e Up Ctrl U moves the selected tools up e itis not legal to move a tool on top of a tool that it depends on e Down Ctrl D moves the selected tools down e Move Ctrl M moves the selected tools give new position in window coming up e Save Template saves the tool as a template e Save as Template saves the tool as a new template e Attach Template attach a template to the tool e Detach Template detach the template used e Import Ctrl I import a set of tools save to file e Import will not overwrite existing tools to replace the whole toolbox delete the tools that shall be imported before using import e Export Exports the selected tool to a SPB XML file e Export all Exports all tool to a SPB XML file e Open result dialog Ctrl R e Close result dialog Shift R Move tool give new position in list e Show Buttons display t
36. 27 05 OK _ 16 13 01 2010 11 27 04 OK lias al gt HEE EI Open Save all Image Folder Explore 13 01 2010 11 27 03 gt 13 01 2010 11 27 02 Distance low 13 01 2010 11 27 01 Distance low 13 01 2010 11 27 00 OK 13 01 2010 11 26 59 OK 13 01 2010 11 26 58 OK 13 01 2010 11 26 57 OK Distance low 30 30 Available memory 832 200 MB Pixels X 1 507 Pixelvalue 17 13 01 2010 11 38 02 Main window in normal operation mode The screen picture under normal operation is shown above The picture can roughly be divided in the following parts 1 Main buttons upper row below the main window title These buttons are used to Start Stop and Close the system Additionally there are two buttons to lock unlock the password protected Settings and Service panels Snapshot takes an image and you can do a manual inspection by pressing Inspect Save the profile by pressing Save If two or more systems are simultaneously running on the same machine the Next button is used to toggle between the systems 2 Image left below the main buttons The camera images of the unit to be identified are shown here Selecting and dragging the image can zoom in details A simple click zooms back You can choose to see one or all images at a time in systems using more than one image for classification See the Camera image processing chapter for a description of available camera image features 3 Inspection Results lowe
37. Action View Help esin fs 2 A w Batteries a Biometric 2 Computer ge Disk drives ie Display adapters 42 DYDICD ROM drives E Floppy disk controllers ky Human Interface Devices jal Infrared devices e Keyboards le Mice and other pointing devices le Modems J Monitors BB Network adapters PCMCIA adapters Ports COM amp LPT 8 Processors Sound video and game controllers Opening the Imaging devices folder will reveal the active cameras Note The driver for each camera is installed individually This means that when a new camera is connected to the PC a new driver specific to this camera is installed This happens even if another instance of this camera is active on the computer To change the camera driver select the image device and activate the camera property dialog Note The default driver installed by XP is a generic driver that normally should be replaced or updated by the driver recommended by the camera vendor Genenc 1394 Desktop Camera 11 Properties ales General Driver ze Generic 13 Desktop Camera 11 Driver Provides OEM 10 27 2003 3 04 E7 Mat digitally sagred Dover Date Driver Versor Digtal Signer Ta view detail about lhe diver Hes Boll Back Driver Ta update the diver for this device lf the device fale alter updating the diver roll hack to the previously installed diver Ta unirgtal the diver Advanced
38. NI files 26 9 1 5 Misc 21 9 2 Scheduler 21 9 3 Actions 28 9 4 Toolbox 29 9 4 1 The Tool Settings window 29 9 4 2 Common tool elements 30 9 4 3 Tool operations 33 9 5 Camera 38 9 5 1 Camera settings 38 952 Image settings 38 95 3 Installing a camera driver 39 9 5 4 Adding cameras 40 9 5 5 Saving Images 41 9 5 6 Simulating 42 9 6 Communication 42 9 6 1 RS232 and TCP IP 42 9 6 2 Profibus 43 9 7 Maintenance 43 9 8 Advanced 44 9 8 1 Alias a new name 44 9 8 2 Logging 44 9 8 3 Results 45 9 8 4 Central 45 9 8 5 Web Server 49 10 System events 50 11 Commands sl 11 1 System Commands 5I 2 IO Commands 55 11 3 Camera Commands 56 11 4 Communication Commands 59 11 5 Profibus Commands 60 12 Terms 61 Appendix 1 TdvCmdProtocol format 62 Appendix 2 Test of the Scorpion communication 63 Appendix 3 Block diagram Label on syringe 65 Appendix 4 Scorpion Watchdog 66 TORDIVEL Scorpion Vision Software User Manual 1 Introduction Scorpion Vision Software User Manual Scorpion Vision Software is software for configuration and operation of vision systems Scorpion is targeting tasks as identification sorting robot guiding assembly verification and quality control It s designed to secure the quality of a production process Scorpion is as easy to use as a vision sensor still having the flexibility and power of a real vision pc solution The system is founded on top of a standard Windows PC platform Scorpion can identify uni
39. OFTWARE lt gt z an DA G goon Operation Ja Settings ga System log About Time Sender Event 14 09 2006 14 34 25 lagMsg 14 09 2006 14 34 23 Statistics 14 09 2006 14 34 23 LogMsq 14 09 2006 14 34 16 Camera 14 09 2006 14 34 16 logMsq 14 09 2006 14 34 15 Statistics 14 09 2006 14 34 1 LogMsgq Start Setup Save Snapshot Inspect Help Close Stops profile Period statistics reset Starts profile Camera Error Philips PhilDec Capture Stops profile Period statistics reset Starts profile ee on On UD nn nde ae Nn y Show Alarms y Show Warnings 14 03 2006 14 34 12 14 03 2006 14 34 12 Statistics P 14 09 2006 14 34 12 LogMsg S y Show Info messages level 1 14 09 2006 14 34 07 Camera y Show Info messages level 2 14 09 2006 14 34 07 loghsg 3 _Show Info messages level 3 14 03 2006 14 34 07 Statistics Pr 14 09 2006 14 34 07 LogMsg S 14 09 2006 14 34 03 Camera C Show all senders Show only this sender dier 0 77 E H weeen wh nn ari 086 14 09 2006 14 34 03 logMsg S Set log size Empty log Delete selected message Freeze log 14 09 2006 14 34 02 Statistics Pi 14 03 2006 14 34 02 Laghsg S 14 03 2006 14 33 21 logMsg S 14 09 2006 14 33 20 Statistics Pi 14 09 2006 14 33 20 LogMsg S 14 09 2006 14 32 55 laghtsg S 14 09 2006 14 31 41 Statistics Pi 14 09 2006 14 31 41 LogMsg S 14 09 2006 12 05 32 log isg S 14 09 2006 12 05 31 Statistics Period statistics reset 14 09 2006 12 05 31 LogMs
40. Start Scorpion Pixels X 24 655 Pixelvalue 16 20 09 2006 13 02 59 Scorpion Vision Software User Manual 45 TDVCentral2 is extended using standard ActiveX components These are managed using the Plugins panel a GC By Operation Settings B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server SimpleStatx D Scripts Plugins Central Settings New page PluginPanel1 S Description PluginPanel2 S Hist ory Configure Operation 5 c Settings urvas Service S Result Advanced S statistics Delete page u calendar New control Configure Properties AH Method info Event info Delete control GetBackColor SetBackColor Value V T_USERDEFINED GetDay SetDay Value T_I2 GetDayFont SetDayFont Value VT_PTR GetDayFontColor SetDayFontColor Value VT_USERDEFINED GetDayLength SetDayLength Value T_I2 GetFirstDay SetFirstDay Value T_I2 Execution Command hd ZZ Result Help The Central Plugins panel Plugin is the configuration test panel Use the New page button to insert new named pages each containing an ActiveXContainerX control that in turn can house any other ActiveX control registered with your system Enter a name Cancel Calenda When a page is inserted a new main tab is created with a page for the
41. Used to activate camera selection without entering service mode Camera CameraNo 2 Cmd Reload e reloads configuration for camera 2 Grab See separate table below for details Command for taking images with Scorpion SYNTAX Grab ImageNo lt n gt Grab Name lt imagename gt Grab Filename lt name gt convert lt none hsi bw gt EXAMPLES Individual image sequence where 2 images are taken no backlight The backlight is handled by an io signal Status o OSigSBackLight o Grab imageno 1 Status o OSigSBackLight 1 Delay value 100 Grab imageno 2 Inspect 2 colour images generated by an external application convert the first image to black and white the other to hsi 4 images totally The command sequence either comes complete over TdvCmd or it can be set up as a command handler in Scorpion The external application calls this handler over TdvCmd Grab imageno 1 convert bw filename tank1 bmp imageno 2 convert hsi filename c images tank2 bmp Inspect Exposure Contrast and Brightness is only supported by the camera interfaces CVLGrab dll and CVLGrabs5 dll An eventual io to be run between each image is not run if imageno is 1 or not given Then Scorpion will take pictures at largest possible speed Parameters used Value Description in Grab ImageNo ih Image index if the parameter is omitted or 1 all images will be taken as fast as possible Name image name Name is an alternative to i
42. a command sequence and use Guards to control which message to write in the event log Profile Profile maintenance SYNTAX Profile Cmd Save Backup lt filename name gt lt comment text gt EXAMPLE Profile Cmd Save Profile Cmd Backup comment Backup after configuration changed Note Default filename is profilename_nnn zip where nnn is increased by one for each backup starting at 1 If filename contains no path infomation the backup will be stored at the configured Archive directory Comment is appended to the default comment The default comment contains key values for backup creation time Scorpion version and profile name The comment may be viewed edited with WinZip Backup is also available by Backup command Scorpion Vision Software User Manual Command Parameters Comment RefCmds name refname Used to refer and run another command sequence for a given state The command takes the name of a system state as a parameter SYNTAX RefCmds name lt tilstand gt EXAMPLE run the command sequence for the state System OK RefCmds name System OK Savelmage lt path filepath gt Saves the shown images in Scorpion lt filename filename gt The command has two modes fixed filename or auto saving Fixed filename is normally used lt imageno n gt when communicating with other systems while auto saving is meant for image logging An increasing number gives the file name when auto saving See table below for mor
43. a directory of example demo profiles Examples They are installed in the same way After installation you ll find a shortcut to the profiles under the Windows Start menu in the Tordivel Vision Solutions Scorpion program group You also find a shortcut to this User Manual in the same program group 3 3 1 Requirements for demos Security Settings e Internet Explorer 5 0 or higher Settings e A registered demo license EC Download signed ActiveX controls Ti benne nici E The Label demo runs ActiveX controls from Tordivel Software Solutions in Internet Explorer s Disable This may cause errors or warnings from Internet Explorer at start up of the demo Enable Prompt Eo script ActiveX controls not marked as safe These errors and warnings can be avoided by activating the following options in Internet isable Enable Explorer under Tools Internet Options Security Custom Level Prompt e Run Activex controls and plug ins eee e Download signed and unsigned ActiveX controls lt IT Reset custom settings Reset to Medium x e Initialise and script ActiveX controls not marked as safe Internet Explorer Security Settings Scorpion Vision Software User Manual 7 PE Licensedto Tordivel AS EE License type ENTERPRISE Close Camera limit el MENU En New Copy Rename Delete Shortcut Backup Restore New profile Product Support Test Information applicatio
44. aints for state Pass 81 3 Command sequence The command browser is activated The Command Sequence is executed when the inspection leaves the state true pressing the button in the Command field The browser contains all system and user defined commands To immediately run the command select the respective command line and press Execute To run the complete command sequence press Execute All In the example Scorpion is configured to send a response over rs 232 The Distance and Status names you see in the parameter strings are new names defined in the Alias manager They S Select represent the Result Value and Status Value tool parameters respectively See chapter Service Eran yzeli Alias Find Left Edge ie Cancel Find Left Slope DURS Find Lower Left Edge SIRS ENECO Find Lower Right Edge StatusText Find Marker Value WV Sorted Find Marker Threshold To define the expression in an editor select the Editor button Settings for state Pass General Constraints Commands Mo Command Guard Parameters O ie 1 RS232Cmd Result 3 OfDistance Status b2bStatus Sacer ae ere Se en nee a ir SS sn cae Se 2 Edit Lowtolerance Marker Distance Marker LightMeter Marker Reference Line MMReference OK Right Intersection Statistics Status Syringe Present The parameter browser is activated pressing the button in the Parameters field The parameter browser contains system parame
45. ar e hh mm ss zz DD MMM YYYY yields 16 34 52 22 30 JAN 2001 e Enable deleting from popup menu e Add alarms also in NT event log e Add warnings also in NT event log e Add all events to memory e Save history will save history when terminating Scorpion making the system log persistent 7 About Scorpion Vision Software User Manual Here you find information about the Scorpion version and program components contained s SH amp YG Start Setup Save Snapshot Inspect Help Close Pixels x 5 Y 654 Pixelvalue 15 Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion 7 2 Label mX SCORPION VISION SOFTWARE a au G anaga Operation Settings System log G About Version 7 3 0 423 October 22 2009 a Copyright 2000 2009 Tordivel AS TORDIVEL http www scorpionvision com License information Licensedto Tordivel AS License type PREMIUM Ml Camera Limit R z 3D 3DA SDK Module Information Module Version Update Bul Scorpion NOR ArrLib ScorpionArrTools Texture GcpsCApi Geom3DDLL python24 dll pyArrlib pyd Python rrlib SPB pyd PythonSPB EventLog DirBrowserxP VisionTagManager SimpleScheduler InternetMessenger RS232Td CmdProtocol IMTdvCmdProtocol ProductionLine Spb2 TdvLicence2 LicenceInfo NoLicence ActivexContainerX WebServer HTTPMessenger SimpleGLx a OfOoOonuUNnMorhenyvouwotstnynodvncdccemton se 13 01 2010
46. are gt a The Imaging Source Europe GmbH DFK SIF 03 Press Yes to complete the driver installation IAT_YUV ax To C WINDOWS system32 9 5 4 Adding cameras Any number of cameras can be connected to Adding cameras involves three steps Scorpion There is no software limitation Adding a camera 1 Activate Service give the password Select the Service Camera tab Press New under Camera Settings Select the correct camera from the list box If the camera is not present in the camera list check the Windows device manager If the camera is present in the device manager restart Scorpion Select Advanced to set the camera properties Before adding a camera the camera drivers must be installed A number of drivers are included on the Scorpion CD ROM nn A WwW N Select Drivers from the CD ROM 6 window to install selected camera era Se ce aca Adding an image and connecting it to the camera required for camera operation under 1 Press New under Image settings Windows 2000 Set the image name Select the correct camera from the camera list box Press OK to close the image property dialog Another image pane is now visible in Scorpion On amp Ww N Adding a camera trigger a system event for software triggered cameras 1 Activate Service Actions Press New to add a system event Activate the name browser Select the system event Image 1 complete A description can be
47. ass has a member name which can be used within the scripts to get access to the python tool Deactivate object tool GetTool self name Execute thi This hidden class is a standard python object you can add members and methods as for any hia standard Python class by using the self argument which always must be the first argument Result dialog self mymember 10 Method Description init Called at tool creation and when the user applies changes to any script Useful to customize the python tool instance The init method is paired with the close method close Called at tool destruction and when the user applies changes to any script e Copy copies script to clipboard May be used for cleanup The close method is paired with the init method e Paste pastes script from clipboard to beginExecute Called once before the actual tool execution In this method it is possible selected script to write its own processing algorithms iterate itself or any kind of e New creates a user defined script processing By returning from this method the default tool execution e Edit opens script editor will not be executed This method is also useful for setting up internal e Rename renames user defined script states and parameters before image processing e Up moves script up beforeExecute Called just before tool execution also when iterating the tool from e Down moves script down e Deactivate deactivates select
48. bed in the Actions chapter Under Profibus you get an overview of the signals to and from the production line You see green connection icons to the left in the example screen image below indicating that the connection is good You also see the name of the signals the values and the transfer time oy About settings B Service Pa System log General Scheduler Actions Toolbox Camera Communication Maintenance Advanced TCP IP R5232 Profibus An Er Operation Production Line B Active B Connected ze Monitor EE HEE Events 5 S Config EE Scope Terminal Se EditConfig Mame _ Handle oo e E 0 1SigEPartPresent 192 11 08 54 EA p ISigEZeroStatistcs 192 11 05 54 EFA 0 ISigEResetStatisbcs 192 11 08 54 EFA 0 o5igSRunning 192 11 05 54 a p OSigEResultReady 197 11 08 54 Pa 0 OSigECanMove 192 11 08 54 a 0 O5ig4Ouality 197 11 08 54 a o o5igR1371 192 11 08 54 a Sig 1374 192 11 08 54 ao Sig 1375 192 11 08 54 Data g Ok server OPCRunning Profile Scorpion Config Productionline coy D 0 mm OF ee fo M e co oO oO oO oOo oOo Oo oO A Signals to and from the production line 9 7 Maintenance The configuration of Scorpion done to perform an inspection task is called a profile In this window you can maintain the system profiles By zipping the profile folder with all its contents profiles may be copied moved or sent by email and restored at another computer for further
49. ce dll e Edit the GrabDLL entry by double clicking Edit tag Camera GrabDLL FireGrab dll X e Select General Ini e Select Camera FireGrab di O Conigwrationfles Ini file C Program Files Tordivel AS Scorpion_S Label General Ini Cancel Camera General Productionltem Debugw indow EventLog Port ComPort Identification Camera 0 Se ImageView Productionline Batch Service ImageB uffer vi Tag Value GrabDLL FireGrab dll NoOflmagesinGrab 1 Backspace ui fr fav far far CC Cd e Change the name of the interface DLL e After changing the DLL Scorpion must be restarted fav far far far far lt m led 26 9 1 5 Misc ay Operation Settings i B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Profile Options Panels INI Files Misc Tag database explorer Value I Set Parameters Unit Console Events tag name C Parameters Help da System GrabT ime Register System MMReference Distance_Low Tag database explorer Lowtolerance Distance_High LightM eter Find Syringe Syringe Present Find Left Edge Find Upper Left Edge Reference Line Syringe Reference Syringe Width Find Left Slope Find Lower Left Edge Find Right Slope Find Lower Right Edge Left Intersection Right Intersection Marker Reference Line Marke
50. ceive values from Scorpion The dialogue to set the connection for the RS232 and Internet Messenger command protocol is shown below The window will continuously show the commands and values transmitted between Scorpion and the external system TCP IP Options e Active Enable Disable tcp ip communication e Send Command Response default off activated for debugging purposes Connection e Remote tcp ip and port number example localhost 8700 e Listen port e Can Receive checked if listen port is open Operation Wa i B Service ga System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced f settings TCP IP RS232 Profibus TCP IP Settings Options LV Active Send command response Connection Remote localhost 8702 ListenPort e700 R Can Receive Options Timeout 20 seconds IV Showin messages M Raw data ly Show out messages Write log to file IMlog txt Time Sender Event i _ kad 1 09 12 2005 11 52 29 gt 8702 lt STX gt Result 379 Status 1 lt ETX gt CH P 1 09 12 2005 11 52 29 lt 8702 lt STX Check lt ETX gt P 1 09 12 2005 11 52 00 gt 8702 lt STX gt Result 377 Status 1 lt ETX gt P 1 09 12 2005 11 52 00 lt 8702 lt STX gt Check lt ETX gt v Connection to an external system 42 9 6 2 Profibus The signals being sent from Scorpion are defined and descri
51. control SB oz _ amp aasaga Operation Ej Settings Service System log About Description History Curves Result Statistics Calendar Highlight the new page name in the Pages list and click New control to select an ActiveX control to be inserted The page is immediately displayed with the new control inserted Any method the control exposes is listed in the Method info list with parameter names and types The controls are identified by the name of the inserted page with a period separating the control name from the command name for example Calendar AboutBox See the ActiveXContainerX help file for syntax information Scorpion Vision Software User Manual 9 8 4 1 Plugins hd Double click Calendar in the list of plugins to configure the control ponte Operation Settings G HE Service gA System log About Description History Curves Result Statistics Calendar Sep 2006 Configure Calendar Caption IV Visible MV Toolbar caption Plugin External interfacing WV Available externally j Send command responses Plugin Alignment Client amp Let 0 Width oe Top 0 Height 593 Anhors Oe En V Left Wv Top lv Bottom The Calendar is inserted Double click Calendar in the Plugins list Click the Configure button to open the configure ActiveXcontainer control dialog Note the Python script engi
52. cripts themselves are retained until you delete them manually even if the associated control page is deleted You can execute a script at any time by pressing Execute If the selected script needs parameters you are prompted to supply them manually See the Script details chapter below for more information Show python messages on error for debugging purposes the Python log can appear automatically if an error occurs in a script To have any effect the user must be logged in Edit script on error the Python script editor can appear automatically if an error occurs in a script with the cursor positioned at the point of error The user must be logged in for this to have any effect Scripts available from TDVCmd Send responses to scripts set the behaviour for the general Script scripts see the General page for more information EDITING SCRIPTS Select a script in the Scripts box and press Edit or double click the script name The script editor is shown with the current content of the script 3 Script editor a leg Handle_Calendar_Click 1 from string import rfind split 2 def Handle_Calendar_Click 3 result split Calendar GetDay Result Execute 4 SetTagValue Date Value int result 1 Cancel Close all Apply all Cancel all Help Each script being edited is given a tabbed page on its own in the modeless editor Pressing Cancel will abandon the current script pressing
53. cs Load from file v Show details Referencesystem gt v Show Pan view v Auto Panning Painting precision Layout d New Help Setup Arrange Delete Single images gt ll None v Imagel v Image2 v 3DModel v HeightMap The Layout menu Scorpion Vision Software User Manual 5 6 8 Layout Depending on the number of cameras in your system you have one or more images to show in the image pane Layout configures the image panes and is only available in Service mode You can make as many panes as you want and choose the images to be shown in each pane When you select Layout New a window like the one below opens You give the pane a name and choose how it shall appear on the screen Images defines the images to be shown in the pane e Source displays available images e Show sequence of selected images i removes selected image from the pane e adds selected image to the pane Options e Image presentation e Horizontal sequence displays all images in one row e Vertical sequence displays all images in one column e Horizontal matrix displays the images in a matrix more columns than rows e Vertical matrix displays the images in a matrix more rows than columns e Auto alignment select the best fit image view when changing the image mode e Show captions display image captions e Show statusbar show a statusbar with image name and size below each image e Show full image path display full image na
54. cs for them when evaluating the quality of an inspection system In our example a high number of Distance low will indicate that the placement process systematically places the label to low This must be corrected in the placement process A high number of Cannot measure can indicate too high variations in the looks of the label the image analyses may be too week or the measurement construction is unstable If the No syringe state appears too often it can be the syringe presentation that fails More than one error may occur at the same time and then the analyses of the statistics are more complicated See the appendix for more details on this inspection example 5 Normal operation Scorpion has three modes of operation e Normal operation e Settings e Service When running in normal operation mode the following information is available e Description Web page that contains a short description of the inspection task and buttons for operating the system e History displays the latest inspection results e Curves give a graphical view of measured values e Results show measured values of the latest inspection e Statistics give a periodical view of the inspection results e Camera image s e Inspection result with indicator panels Additionally you can start and stop the system SHORTCUT SYMBOLS At the upper right you find convenient shortcuts for often used functions Move the mouse over the symb
55. cursor position to the clipboard e Copy Y copies the y cursor position to the clipboard e Copy point copies x and y cursor position to the clipboard e can be used to paste the position into a tool e Remove last point Ctrl RMouse e Move point Shift Ctrl RMouse move selected point e it can be easier to remove and insert a new point than moving e Insert point Shift LMouse e Remove point Shift RMouse e Smooth smoothes the clipboard polygon e Simplify removes points on a straight line e Undo will undo last operation e Closed polygon will open or close polygon e Export exports the polygon Note The image operations combined with image zoom are useful to define lines and regions of interest 5 6 5 Point amp Click Clipboard Support Scorpion tools support copy and paste of ROIs Region Of Interest to and from the image An ROI is managed by the tool s copy and paste buttons Copy copies the ROI to the image from the Scorpion clipboard Paste pastes the ROI from the image to the Scorpion clipboard Rectangular ROIs are defined with four points One point will change the center point Ctrl Z submits the ROI to the selected tool More on Copy and Paste of ROIs in the Service Toolbox chapter 5 6 5 Save and Copy It might be useful to document the changes and additions you have made to an image Use either Copy shown image with graphics copies to the clipboard and paste it in for example a document or Save shown image with
56. de_LowTolerance or Mode_HighTolerance Document the test by copying the message list to the clipboard Below you see an example 30 03 2002 15 36 36 gt 8700 lt STX gt Check lt ETX gt 30 03 2002 15 36 37 lt 8700 lt STX gt result 381 status 11 lt ETX gt 30 03 2002 15 36 38 gt 8700 lt STX gt Check lt ETX gt 30 03 2002 15 36 38 lt 8700 lt STX gt result 377 status 11 lt ETX gt 30 03 2002 15 36 39 gt 8700 lt STX gt Check lt ETX gt 30 03 2002 15 36 39 lt 8700 lt STX gt result 382 status 11 lt ETX gt 30 03 2002 15 39 08 gt 8700 lt STX gt Mode_LowTolerance lt ETX gt 30 03 2002 15 39 11 gt 8700 lt STX gt Stop lt ETX gt 30 03 2002 15 39 14 gt 8700 lt STX gt Start lt ETX gt 30 03 2002 15 39 17 gt 8700 lt STX gt Check lt ETX gt 30 03 2002 15 39 18 lt 8700 lt STX gt result 370 status 11 lt ETX gt Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion_5 Label B D F 050r g MBSE 2 Start Setup Save Snapshot Inspect Help Close staet WR zn G By Operation g Settings B Service gA System log GS About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced TCP IP R5232 Profibus TCP IP Settings Options Wv Active Send command response Connection Remote localhost 8702 ListenPort e700 JV Can Receive Options Timeout 20 seconds V Show in messages JV Raw data V Show out messages Write log to file IMlog
57. defined for the system events Close the property dialog by pressing OK Press New under Command Sequence for Image 1 complete Set the name to Trigger Image 2 Set command to Grab More information about Grab is found under Help 10 Set parameters to imageno 2 When this procedure is done you can continue making a complete system e User configurable tools perform the image analysis in Scorpion You must configure the tools in the toolbox to make Scorpion work for you e States are used to classify the result of an inspection After defining the tools in the toolbox you define the system s states They are derived from the tool results See chapter States CRANE WN Adding a third camera is basically the same procedure Scorpion Vision Software User Manual 40 Later you can use the images in simulation mode Scorpion Vision Software User Manual 9 5 5 Saving Images Scorpion has a number of ways to store images The most important ways are e Save current image to disk Shortcut e Save or Save All in Image History List e Save with or without overlay graphics in the Image menu 9 5 5 1 Upper right Shortcut Press the Save current image to disk shortcut at the upper right of the screen This activates the Save Image dialog f Save Image Fil BMP C JPG Compression 0 100 fo CEP SCORPI ee mn VISION SOFT Comment Pass Folder E MK 01 01 images Da Ed
58. dependently of this put in the system log e Single instance system global state When selected only one instance of Scorpion is started Recommended used in factory environments to avoid multiple Scorpions being started by accident e Run at high priority e Delete incomplete images from histrory e Save images in separate thread e Fast mode reduced GUI update while running e Manual curve update e Disable image update while running e Hide image graphics while running e Show image graphics while configuring e Affinity current and configured Under Layout you can do the following e Show Toolbar captions if selected the toolbar captions are shown e Show status bar if selected the status bar is shown e Show profile path in caption if selected the path to the profile is shown in the main window caption e Show profile version in caption if selected the profile version is shown in the main window caption e Enable Snapshot while running e Enable Inspect while running e Hide left pane e Full screen image mode if selected only the image part of the screen is seen Under Console Window you can do the following e Show console messages in system log e Show console window at start up Always on top if selected the console window is always on top on the screen Show Arrlib messages shows messages from the library of image processing algorithms Gi System log Ej Settings Service
59. ds RS232Cmd IMCmd and ResponseCmd are used to send TDVCmdProtocol messages over RS 232 or tcp ip to PLCs and other host systems These commands combined with the RS232CmdProtocol and IMTD VCmdProtocol located on Service Advanced Communication provide an easy and standard way to control a Scorpion application Command Parameters Comment IMCmd TdvCmdProtocol format see Sends TdvCmdProtocol commands to external systems appendix Parameters to RS232Cmd and IMCmd are free text but by the use of special formatting strings you can replace a tag name with a value in the tag database SYNTAX IMCmd lt command gt EXAMPLES IMCmd destination localhost 8704 Setup Lowtolerance o ofLowtolerance IMCmd SetValue Alias 12 With IMCmd data is sent via the IMTDVCmdProtocol The command is routed to a configured address lt ip gt lt port gt The addressing can be overruled by prefixing the command with lt destination 193 69 239 12 7002 gt Parameters to IMCmd are free text but by the use of special formatting strings you can send commands with tagdatabase values over tcp ip to another Scorpion application ResponseCmd Sends TdvCmdProtocol commands to external systems The parameters are equal to IMCmd and RS232Cmd but the response is sent to origin requester either the RS232 port or to an tcp ip address SYNTAX ResponseCmd lt command gt EXAMPLES ResponseCmd Setup Lowtolerance 1fLowtolerance sends the value of parameter back to re
60. e details SYNTAX Savelmage imageno lt 1 n gt filename lt filename gt path lt path gt where e imageno e 1 means that all images are saved filename e if path is not given file name can contain full path File name shall not be given if auto saving is set e path e full or relative path to image catalogue Used if file name does not include path or path is not given auto saving Filename when auto saving Single image configuration 0000 bmp 0001 bmp 0002 bmp gt on given catalogue Multi image configuration oooo_o bmp oooo 1 bmp oooo _n 1 bmpl 0001_0 bmp 0001_1 bmp 0001_n 1 bmp 0002_0 bmp o002_1 bmMp 0002_n 1 bmp gt Save images with fixed filename Savelmage path c lmages filename test Savelmage imageno o filename c images bilde1 bmp Savelmage imageno 1 filename c images bilde2 bmp Automatic saving of all images can typically be a command for a given state reference Savelmage path c images log Script The Script command is used to run scripts defined in the Service Advanced panel Script list Syntax Script Name ScriptName Note that the Draw function of the PythonScript tool cannot be run in these scripts Shutdown The Shutdown command saves the profiles and exits the program SYNTAX Shutdown Start The Start command starts a profile starts the inspection The command can i e be used for automatic start managed by an io line SYNTAX Start COMMAND RESPONSE StartRespo
61. e pinpoint the error correctly However there might be cases we do not handle correctly so please refer to the Python log if in doubt For detailed information on scripts see Script details below 47 SCRIPT DETAILS Event handlers All events exported from the contained ActiveX controls and most events from the built in components get a wrapper function defined in Python with the Handle_ name defined in the Scripts panel Normally you will not call these scripts yourself they are really event handlers but you are of course free to do so Parameters are typed but everything is converted to strings before the function is called Even so things work mostly as expected for example you can do maths on numeric variables without converting anything The built in components also raise events and have callable functions these are slightly different and in some cases more powerful see the description below ActiveX dispatch functions Each exported function from an ActiveX control is also wrapped in a Python function The real name of such a function is for example Calendar_SetYear but for convenience an alias name of Calendar SetYear is also made To access any of these from a Python script simply follow this convention e The page name is converted to a python class case sensitive in Python e The function name is unaltered but also case sensitive in Python e The function name is therefore Page
62. e Low Help 07 09 2006 14 17 37 Pass 07 09 2006 14 17 36 Pass 07 09 2006 14 17 35 Pass 07 09 2006 14 17 34 Pass 07 09 2006 14 17 33 Pass 07 09 2006 14 17 32 Pass 07 09 2006 14 17 31 Distance Low v List if images with inspection result Cy KE G naoga Operation Settings System log Is About Description History Curves Result Statistics RE Marker Distance Distance System Command time System Image grab time System Active time lsystem cycle time System Analysis time B system Idle time Marker Distance Distance mm T Berar fen eens are eee ee foe car ee ee ree er Perey Peer ery feat ace MEE Zoomout RRL RN nee lr Ra eo 47 Reset Peteeedeesedeersbeeadeneeteneseevedeeveteneneverdeneebee 46 Resetall Pperenmemeenreesepsnensnsarnseemeneanseerseermensdensereen i Set equal history length 45 Help of he both rete ttl Gt ated altel ede ek ia a a ee ee ee ee ee 5 1 Web explorer Here you find a web page with a short description of the inspection task Buttons are available for operating the system System parameters can be made available for changing from this page In systems where i e limits are varying this can be very useful In most cases you also have a simple statistics overview here Under Properties in the web page s tool panel you can if you are authorized change the page setup You can decide which page to be the home page and if the tool panel with buttons and text
63. e a MMReference MMReference Find Syringe Find Syringe Find Syringe MMReference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Syringe Reference Find Marker MMReference New ih Help CE Filtering Type jangle Visualisation fe All _ Selected Sel Ref i Mone The toolbox consists of an ordered sequence of named tools They are connected to an image and an optional reference system A system can use several different images in the identification process The Image column shows which of them the particular tool is operating on In our example there is only one image In the Reference column you find the name of a tool used as reference for the selected tool Under Guard you can name a tool that must be successfully run prior to the execution of the selected one 9 4 2 Common tool elements 9 4 2 1 General The General tab consists of the following parts Change Find Syringe BlobTool General Setup Visualisation Results e Active activates or deactivates a tool Identification scripts Description ee e Manual execution sets the tool for manual execution from python W Active JT Manual execution Eel e Tool type displays the tool type read only Appl Tooltype _Plobrod _ e Name the name given by the us
64. e access to all the other generated scripts including event handlers and control functions and any global variables you may have defined e g in the Start script below Upon Applying this script it is also available to any other scripts you have Note All scripts generated this way should just be def statements that way the model works very well There is nothing stopping you from writing any Python code you want in these scripts possibly apart from your own confusion When the Apply or Close button is pressed the contents of the editor are simply executed by the Python engine notifying you of any syntax or exec errors When you press the Run button the script source is inspected and if the def line has any parameters you will be prompted to supply them before the function is actually executed All the scripts defined this way are also available from TD VCmdProtocol using the special Page name Script For example you may call the script defined above by sending this string to TDVCentral2 Script Double i00 Note This is the only place the TDVCmd Protocol commands are case sensitive You may not call Script double 100 although script Double 100 is quite ok Note also The string sent here does not confirm to the TDVCmdProtocol You can not enter parameters following a semicolon Start and stop scripts There is a script run at start up as well as a script run just
65. e binary n B representation of the parameter value a sequence of o or 1 n h Hexadecimal number format The resulting string is the n H D hexadecimal representation of the parameter value a sequence of 09 AF n n f Floating point format The resulting string is the floating point n n F SPACE representation of the parameter value If no length specifier is given the resulting string holds up to O o SPACE Text format This is used for text parameters 0 a Any number format the resulting string depends of the numeric SPACE ea l inpuit value floating point or integer EXAMPLES A Value 12 134 B Value 11 77 C Value 1 0 T Text OK Format string Resulting string l dAValue 12 B 8bAValue B 00001100 H hAValue HeC H hAValue F 12 134 F 2fA Value F 12 13 F 8 1fA Value Fe 12 T sResult Text T OK A dANalue B 1fB Value A 12 B 11 8 X 3fB Value OK dC Value X 11 770 OK 1 62 Appendix 2 Test of the Scorpion communication In the Label on Syringe task Scorpion Setup of tcp ip ports communicates with a PLC over rs 232 and the TDVCmdProtocol You have three Ge IMTdvCmdProtocol5 Test Application IMTdvCmdProtocol5 spb ole alternatives when testing the communication You can directly connect Scorpion to the PLC establish a PLC simulator on a Send test string separate computer or you can configure the Stat Send IMTDVCmdProtocol4 p
66. ed script Python e Delete deletes script removes user afterExecute Called just after tool execution also when iterating the tool from Python defined script empties system defined By returning 0 the tool will execute again until afterExecute returns 1 script Sometimes useful for result validation Special care should be taken to e Help activates scripting help avoid entering a endless loop by always returning 0 endExecute Called at last in tool execution enables to collect results cleanup etc This method is called only once for each tool in toolbox execution J Example Iterate itself def init self self count 0 define a local counter A tool normally consists of the following self max 12 define a local max count elements def beginExecute self self count 0 reset counter General t GetTool self name get the python tool instance for myself Buttons img GetImageMatr Box get the image to process Setup ResetStatistics userdefined method for statistics Wamba for 1 in range self max hets SetROI userdefined method for settng ROI esu t execute img execute the tool at new location ExecuteCmd UpdateStatistics userdefined method for collect results and update statistics return abort default processing execution Scorpion Vision Software User Manual 30 Change Find Syringe Blob Tool General Setup visualisation Results Identification Scripts Description M Active Manual execution
67. el AS Me S CO RPI O N License type ENTERPRISE Close a VISION SOFTWARE cameraimit MENU op New Eza ES Create profile Praduct Information Support applications Test applications Profile name New profile Folder C Program Files Tordivel 4S Scorpion_5 Copy Default to profile camera drivers Archive Documentation eision Fonts B SCORPION VISION SOFTWARE 6 0 0 350 PE Licensedto Tordivel AS Loen S C O R P l O N License type ENTERPRISE Close VISION SOFTWARE Camera limit e 1 Product Information Support applications Test applications camera drivers Archive Default Copy Documentation eVision Rename Sogn Delete Label Loge Shortcut Product Information Backup Support applications ae Test applications Restore Folder Refresh Explore License Folder C Program Files Tordivel AS Scorpion_5 Making a new profile 3 4 1 Profile content A Scorpion profile normally consists of the following information e lt path gt General ini contains the set up of the Scorpion profile e lt path gt Statistics ini contains the statistical information e lt path gt C VLGrab ini contains the set up for the image source e lt path gt Scorpion spb contains the Scorpion set up in xml format Additionally you find the Images sub folder containing the prof
68. eload Passwords Settings sii Service faa Pixels X 4 255 Pixelvalue 15 13 01 2010 12 25 44 Main window in Service mode 9 1 General Here you find the general settings for the user interface and system behaviour With the buttons to the right you can check the system configuration and status To get an overview of the file structure press Explorer and the Windows Explorer is opened To see the system configuration file SPB in an editor press Show SPB The Parameters button opens a Browser with all the parameters generated by the system The Console button opens the console window The Events button opens an event tracer window Help activates the help pages 9 1 1 Profile In the Profile panel you can set the profile system and project names and the profile version See the image above for an example e Profile the current profile directory path e System name profile name e Project the project name note it is not possible to change this item e Python module name note it is not possible to change the item e Profile version the profile version the version is automatically incremented when a maintenance backup is performed e Modified checked when the profile is changed e Persistance choose Protected or Confirm save Reload button available You can also change the Settings and Service passwords 24 J xm a G Ganga Operation ef Settings B Service a System log G About Gene
69. en the event occurs The commands can la ae PIRENA Delete also be scheduled to run repetitively See chapter Service Scheduler You Due heg mn Deactivate find an overview of the Scorpion system events and commands in the nnn Execute System events and Commands chapters sous ote U zero Statistics A system event can be defined by Scorpion marked with S or by the user marked with U Commands from external systems are typical examples ii SetValue Distance_Low Value 3 4 Distance_ High Value 4 0 z of user defined system events E In our example Label on Syringe there are two specially defined system rA events Mode_Lowtolerance and Mode_Hightolerance For each system nl event a command sequence to be run when the event occurs is defined All den N a commands are available from the Scheduler or from the external rs 232 or Parameters Distenos on Valus 3 4 Distenca_High Vake OLontolaran E tcp 1p interface M Inverted Ej Actions command sequences at Choose a system event press New under Command sequence for system event and the small different system events window above to the left will appear Here you add the command and eventual parameters In the example above the system low tolerance limits are given In the Guard field you can give the name of a logical or script tool The command will then only be run 1f the result of this tool is true 1 If you select the INV box the command is run
70. er of the tool instance Templat en gt Help E T mman e The tool can be renamed using the toolbox mouse menu Name Find Syringe Template 7 l l TN e Image Index the tool is executed on the selected image index Image index 1 BIE Saves e Press the button to select a named image oo Me uT Visualisation e Color images when working with color images one can select to work on the Hue Guard lt None gt 7 Inverted all tools oe Intensity or Saturation Color Plane none e Guard Me e Press the button to select a named logic tool as a guard Note Expressions can be used as guards GetValue Scalar Value gt 5 e Description a free text tool description e Scripts System Defined scripts associated with each tool Tool Scripts All tools in the toolbox can be customized using system defined tool events and executed by Change Find Syringe BlobTool General Setup Visualisation Resuts user defined Python scripts The scripts are available from the General tab of all tools Identification Scripts Description The events are called by the tool list object This is a very powerful feature that can substantially reduce the length of the toolbox The script s mouse menu is shown to the left Berg When a tool activates a script the tool list instantiates a hidden Python class in the Python _Jend xecute namespace for the actual tool The class definition is given by the activated scripts This cl
71. era configurations are supported including colour cameras A unique feature within Scorpion is the possibility to perform a complete offline system verification automatically or interactively using the integrated image history list or captured image data This manual guides you through the Scorpion Vision Software user interface and gives you some hints and ideas on the way REJECTED 1 1 Customer support Tordivel AS offers many levels of Scorpion Vision Software customer support You find more information on our home page http www scorpionvision com 2 System Description Scorpion Vision Software User Manual A Scorpion Vision Software installation typically consists of an industrial PC running Windows the inspection system consisting of the Scorpion software with system profile one or more cameras lighting mechanics and a production line interface for external communication The profile decides how the system shall operate Operator Terminal The Scorpion Vision Software architecture is based on a kernel providing basic functionality where you plug in image sources and user tools The user interface is highly configurable The Scorpion Vision Software architecture makes the product very flexible and suitable for a large variety of inspection tasks Operation from Data Export and Import Office PC from other systems SPC O
72. field you can put the name of a logical tool The tool you are configuring is only run if the result of the logical tool is true 1 If you select the Guard INV Inverted box the tool is run if the result of the logical tool is false 0 Geometry Edge DummyT ool Reference EasyBarCode Advanced EasyMatrixCode Beta Goto Alpha ImageCombiner Legacy ImageConverter All ImageFilter ImageResampler Intensity LogicT ool PythonScript SimpleMathT ool Under Setup you put in relevant values to configure the tool In this example the orientation of the top of the product is used as a reference to find the label This is first found by another tool Syringe Reference Adding a new tool Change configuration for Find Marker General Setup Visualisation Results c hange configuration for Find Marker Identification WW Active _ Manual execution Tool type BlobT ool Name Find Marker Variant Nons el Image index fe I Color images Default no conversion l Guard lt None gt J INV Cancel Apply Help Visualisation 7 C_alltools _this only this ref C none Description Scripts _ Result dialog Change configuration for Find Marker General Setup Visualisation Results Inspection graphics iv Show graphics AllBlobs AllCenters AllHoles CenterOfGravity Error MaxContour ROI Custom colors Define Cu
73. fore adding a camera the camera drivers must be installed A number of drivers are included on the Scorpion CD ROM Select Drivers from the CD ROM window to install selected camera drivers The DirectX8 1 driver is required for camera operation under Windows 2000 Scorpion support DirectX compatible image sources using the firegrab dll camera interface In this section we will outline how wdm drivers are installed under Windows XP The information is relevant for installing cameras under Windows 2000 DirectX camera sources are supported by Scorpion under Windows XP and Windows 2000 Most usb and firewire camera are supported by a wdm driver Most likely the driver is supplied by the camera vendor An alternative is to obtain a specific or generic driver from 3 party companies like Unibrain and Imaging Source On the Scorpion CD there are available drivers to support cameras from Sony Allied Vision Point Grey Unibrain Basler Imaging Source and more It is recommended to consult the Scorpion support web or the vendor to get the latest and best wdm driver for the camera you want to use The firegrab dll support features like hw triggering format 7 pausing the graph dynamic camera commands image averaging and dropping the first image after graph start Some vendors like Unibrain Imaging Source and Allied Vision have complete installation programs removing the need for the guidelines in this section Scorpion Vision Soft
74. g Starts profile Iv Configuration Copy message to clipboard Copy log to clipboard Add all messages to memory Pixels X 6 732 Pixelvalue 15 14 09 2006 14 35 02 System events like quality alarms are shown in this window By right clicking in the system log and selecting from the menu the system log can be configured The menu is shown in the example above The Scorpion System log is important in verifying correct system operation When debugging and developing Scorpion profiles it is recommended viewing all categories In a running system all information needed is available in the three first levels Below a screenshot of the system log is shown The first column of the log shows an icon identifying the event category the next column is the time the third the source or sender of the message and the fourth the description or actual message 6 1 Configuration Under the menu item Configuration you find the following Fonts and colours e Background colour sets the background colour clWhite is default e Font colour sets the foreground font colour e Font name sets the font Miscellaneous Enable logging to file activates file logging of all events activates a file browser e Event log size sets the size of the event log file e Time format specifies the time format in the Time column can be useful to display ms to verify system timing e h hour m minute s second z ms e D day M month Y ye
75. ge Choosing Se Ref you get the results also from the tools used as reference for the selected one Select None and no graphic results are seen in the image Syringe Reference is used by Find Left Slope Find Lower Left Edge Find Right Slope Find Lower Aight Edge Marker Lightheter Find Marker b4 find marker the Find Marker Upper Edge wia reference Tools using the Syringe Reference tool results 34 9 4 3 2 Add new tool To add a tool in the toolbox press New and a window like the one to the left appears The tools are grouped in categories Select the tool category you want to add and choose the tool from the list coming up Give the tool a name and press OK You will now see the new tool listed in the Tool Settings list IE IE x Name MyToo Variant lt None gt el Image A Fa Color Defaut fno conversion sl Reference Nons o CS Guard lt Nones S YS M INV Basic BarCodeReader Data Blob1 ColorMatcher Find Marker A blob is a continuous area with the same shading limited by a contour and possibly of a number of internal holes Below you see configuration options for a blob tool finding a label Double click the tool name or select the name and choose the Edit button to edit a tool Under General in the window showing up you find the tool name and type in addition to eventual image index guard and a description You can here also activate deactivate the tool In the Guard
76. ge Label Position Measurement C Program Files Tordivel AS Scorpion_5 Label Joe a 5 7 lal a SE SE amp O ae SCORPION Start Setup Save Snapshot Inspect Help Close kez VISION SOET WARE am pn i u Operation if Settings Ran System log G About Description History curves Result statistics Image no Time Comment Is Open 129 14 09 2006 14 52 07 Pass SS 128 14 09 2006 14 52 05 Pass Save 127 14 09 2006 14 52 03 Pass Td v iz6 14 09 2006 14 52 02 Distance High Save all 125 14 09 2006 14 52 01 Distance High 124 14 09 2006 14 51 54 Distance High Delete 123 14 09 2006 14 51 53 Distance Low ES EE 122 14 09 2006 14 51 52 Distance Low 7121 14 09 2006 14 51 50 Distance Low SIF image Folder 7 120 14 09 2006 14 51 49 Pass Y ii9 14 09 2006 14 51 48 Pass Explore 118 14 09 2006 14 51 45 Pass CE istance High Help Meere K istance High 1 ee dn istance High Sean i istance Law istance Low istance Low vl 14 09 2006 14 46 07 Pass ee OOOO O 1409 2006 14 34 24 Pass 108 14 09 2006 14 34 23 Distance High z 107 14 09 2006 14 33 21 Distance High z 106 14 09 2006 14 33 20 Distance High b lt I gt Pixels X 4 Y 278 Pixelvalue 19 Find Syringe MaxContour Yertex626 14 09 2006 14 52 10 20 The state dialog consists of three pages General page e Name e Description e Foreground and background colour e Used in the Inspection result panel Constraints page e The constraints page defines when a state s cond
77. ge without graphics Save shown image without graphics Copy shown image with graphics Save shown image with graphics Load From file Show details Referencesystem Show Histogram Show Pan View Auto Panning Pointing precision Layout Help Right click the mouse above a tool s graphic and the tool is available in the menu This is only possible in Service mode Scorpion Vision Software User Manual 5 6 4 Polygons You can draw and edit polygons on an image with the Clipboard operations The purpose is to define lines and region of interests for image tools like PolyLineGapFinder and Blob2 Open the pop up menu on the right mouse button over the wanted point and select Add point to Clipboard You will see the point marked in the image Continue adding points and Scorpion will automatically draw lines between them If you choose the Closed polygon option a line will also automatically connect the first and last points A shortcut to add point is pressing Ctrl and the right mouse button points are removed by pressing Ctrl and the left mouse button To the left such a line is shown These are the image operations e Add point to clipboard Ctrl LMouse adds point to clipboard e Reset Clipboard Ctrl Shift R Mouse clears polygon on clipboard e Copy objects copies any overlay object into clipboard e useful when configuring polygon tools e Clipboard see screenshot on the previous page e Copy X copies the x
78. graphics for saving to file Likewise use Copy Save shown image without graphics to copy or save the image view itself without the image graphics When working without graphics the raw image is transferred with graphics a copy of the screen is transferred 5 6 6 Pointing precision and Panning You can set the Pointing precision to be a number of pixels between 3 and 10 When Show Pan View is selected and you zoom in a pan window is shown at the upper left corner of the image Auto Panning is useful if you work with polygons and have zoomed into the image If you place a point outside the image border the image view will automatically change to show the area where you pointed 5 6 7 Help Help activates the online help system 16 Layout setup Options Cancel be Show skatusbars iw Show Full image path Service layout Custom panel Disabled Alignment Right hl Size 83 Layout setup when you have one image in the image pane ED Scorpion 3D Profiler LJ mX hj i ee EREN hia b t Q wert SCORPION ISION SOFTWARE AB Image S0Moded Heighttep ghtMay Example with four image panes The All pane shows 3 images Add point to Clipboard Ctrl LMouse Reset Clipboard Shift Ctrl RMouse Clipboard gt Set measure origin Measure Show info Copy shown image without graphics Save shown image without graphics Copy shown image with graphics Save shown image with graphi
79. hardware The Imaging Source Europe GmbH DFE 31F03 has not passed Windows Logo testing to venty its compatibility with Windows AP Tell me why this testing i importart Continuing your installation of this software may impair or destabilize the comect operation of pour system either immediately or in the future Microsoft strongly recommends thal gou stop this installation now and contact the hardware vendor for software that has parsed Windows Logo testing Continue Anyway STOP Installation When installing the driver the following progress dialog is shown Hardware Update Wizard When completed this dialog is shown Hardware Update Wizard Completing the Hardware Update Wizard The wizard has finished installing the software for se The Imaging Source Europe GmbH DFK 31F03 The hardware you installed will not woek until pou restart your computer Chek Finish to close the wizard Pressing Finish may result in an XP restart requirement System Settings Change Your hardware settings have changed You must restart your computer for these changes to take effect Note Letting XP handle installation can lead to selection of a generic driver even if a better driver is present on the computer XP also mix drivers when different drivers are present on the computer thus making the image source unavailable E Do you want to restart your computer now Please wait while the wizard installs the softw
80. he right hand buttons in the toolbox e Help Activates the html help file Scorpion Vision Software User Manual 33 Scorpion Vision Software User Manual 9 4 3 1 Filtering To limit the number of tools shown in the list you can use filtering available at the lower right of the Tool Settings window You can filter based on tool name type of tool image reference or guard In the below example we show only the tools of type LogicTool i B Service aa System log G About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Tool Settings Syringe Present LogicTool Distance OK LogicTool Distance High LogicTool Distance Low LogicTool Cannot Measure LogicTool bed Operation Settings a boooo Up Down Delete Deactivate Move Used by Help i Filtering Type LogicTool Bin visualisation i all Selected C Sel Ref C None Filtering the list of tools Select a tool and press the Used by button and you get a list of other tools using this tool s results in their calculations You are e g not allowed to delete a tool if other tools base their calculations on it Below you see the tools using Syringe Reference At the lower right of the Tool Settings panel you find the Visualisation All Selected Sel Ref None box Select a tool in the list and choose Selected and you see only the results of this tool in the screen ima
81. ilable commands The command sequence for Mode_Hightolerance consists of the following commands 1 Set lower limit SetValue Distance_Low Value 3 6 2 Set upper limit SetValue Distance_High Value 3 85 3 Set mode SetValue Lowtolerance Value 0 Note that the command sequences use the tool parameters Scorpion Vision Software User Manual 28 See the online help files for details on how to use each tool Scorpion Vision Software is a complete 3D machine vision platform The toolbox has more than 40 tools solving 3D vision tasks Important features are e Integrated 3D Visualization and 3D Images point cloud support e Powerful 3D reference systems intuitive convenient and easy to use e Seamless 3D integration enables high precision 3D measurement using 2D image processing tools e Advanced PlaneFit3D and CylinderFit3D establish reference systems based on point clouds e Stereo Vision using from 2 to 4 cameras or images See the online help pages for details The icon in front of a tool s name indicates it s state after an inspection The icon definition is as follows Not run Ok Blocked by guard or reference Error or No result Not active The license is not covering the use of this tool Manual execution Ed OIS XJ IS Scorpion Vision Software User Manual 9 4 Toolbox The image analysis in Scorpion is performed by a toolbox of user configurable tools You find a rich variety of tools in
82. ile s images 3 5 Activating a camera Connect your camera and capture images with Scorpion starting with the Default profile The Default profile can be changed to take live images with the following steps 1 Select Drivers from the CD ROM window to install selected camera drivers The DirectX8 1 driver is required for camera operation under Windows 2000 2 Connect the camera to the PC The FireGrab dll camera interface supports all windows imaging devices including web cameras and Firewire cameras 3 Goto the Windows Start menu 4 Select Start Programs Tordivel Vision Solutions Scorpion A profile selection dialog is then shown 5 Select the Default profile 6 Press Service in the main toolbar 911 is the initial password 7 Activate Service in the minor toolbar 8 Select the Camera tag and New 9 Under Camera Settings select the Camera box 10 Browse to select a new camera and the list of available cameras is shown Select the right one Available cameras Philips PhilD ec Capture OK Operation M Autoopen HW tigger Calibrated Properties Driver FireGrab dll z Camera Philips PhilDec Capture Ee Calibration Help List of available cameras b 0 Errors Timeouts 0 Delayed images Min delay ms jo Max delay mz Camera Calibration 10 Setup is used to set the camera properties The avaiable information differs dependant on the type of camera Usually the image format and numbe
83. ing Silent mode GetDayFontColor SetDayFontColor Value T_USERDEFINED GetDayLength SetDayLength Value VT_I2 GetFirstDay SetFirstDay alue VT_I2 OK Cancel Execution Command calendar GetDay X Calendar configuration calendar GetDayResponse Result 20 Result Method info list in the Central panel Click the Properties button to get a dialog If you double click a message in the Method where the calendar apperance is set list the text is copied to the Command edit field By clicking Execute the command is Calendar Properties EJ sent to the named control and the result is shown in the Result field Value 06 09 2006 le MV Month Year Title Monday zl M Month Year Selectors Day Length System Medium v M Days of Week Month Lenath System Medium IV Horizontal Grid Grid Cell Effect Raised bad First Day Note that all string handling is case insensitive Calendar GetY ear and W Vertical Grid calendar getyear are considered equal Responses set the behaviour for each inserted control see the General page for more information You can set the relative order of the pages Calendar properties with the up and down buttons eel 46 In the script editor window you find these buttons Use them to directly take a snapshot inspect the image or restart Central Scorpion Vision Software Use
84. int to Clipboard Ctrl LMouse Save As Reset Clipboard Shift Ctrl RMouse Bevin OD Images dl Images ek Er Clipboard e N 0002 bmp EG S 0003 bmp Set measure origin My Recent A 0004 bmp D t Measure ocuments fe 0011 bmp Show info Desktop Copy shown image without graphics N 0016 bmp Save shown image without graphics My Documents gs My Computer Load From file Details Referencesystem My Nety work File name oo 7 bmdl X Save aces Save as type Bitmap files bmp z Cancel Pointing precision Layout Help Note Only images saved with the command Save shown image without graphics can be used for image processing 41 Image simulation plays a very important role in offline verification amp IMTdvCmdProtocol5 Test Application AIMTdvCmdP rotocol5 spb About IMTdvCmdProtocolS SimpleS cheduler3 X Send Normal V Can receive 8702 localhost 8700 M Send test string Check Connection Mode ListenPort Remote Options Timeout 20 seconds WW Showinmessages M Raw data MV Show out messages Show simulator Write log to file IMlog txt a Time Sender 09 12 2005 11 52 29 lt 8700 09 12 2005 11 52 29 lt 8700 09 12 2005 11 52 29 gt 8700 03 12 2005 11 52 00 lt 8700 Event Status 1 Result 379 Check Status 1 External trigger system sending a check command to Scorpion and receiving the in
85. ion Vision Software User Manual 35 Open Look in gt Label Get Er CC Images My Recent Documents Scorpion Spb Desktop My Documents 93 My Computer My Network File name z Places Files of type SPB Files z Importing tools Export 4 tools to file Save in Label rl a Images TE Log My Recent python Documents web lu Scorpion Spb Desktop My Documents pe My Computer My Network File name tst Spb hd aces Save as type SPB Files iv Exporting tools Scorpion Vision Software User Manual 9 4 3 3 Visualise the tool results Colours are set to visualise the tool operation in the camera image on the screen Below you see an example The result of running the Find Left Slope tool is shown with yellow and red To help you setting up the tools use the Visualising all tools this only this ref select box at the lower right of the toolbox configuration panels Press the Apply button and you immediately see the result of your settings in the camera image The all tools option shows the graphical results of all tools in the image this only shows only the results of the tool you are configuring this ref shows the results of the tool you are configuring in addition to the results of the tool s reference Remember that Show image graphics when configuring under Service General has to be set for seeing the
86. istance Marker LightMeter Marker Reference Line MMReference Results m G 7e G By Operation j Settings ga System log About Description History Curves Result Statistics Statistics Reset period 07 09 2006 14 06 33 statistics 05 09 2002 20 57 48 Current period Previous period Condition Pass 15 24 1199 Distance High 16 24 1851 Distance Low 15 27 3198 Cannot Measure 0 0 0 No Syringe 0 0 0 Undefined state 0 0 18 Sum 46 75 6266 Reset period Reset statistics Help Errors current period 0 previous 0 total I Statistics Scorpion Vision Software User Manual Adjustments of alarm limits and curve values can be done if you are in settings mode click on Settings in the main menu and give the correct PIN code Double click the curve name to see the adjustment parameters You can adjust the curve axes and the alarm limits alarm limits are here shown in red The image to the left gives you an example The curves show if measured values are within given limits This is useful e g to check the light conditions Select the Notify alarm field if alarms are to be notified Alarm limits are normally defined based on operator experience There are two independent types of limits operational and alarm limits An event in the system log and a quality alarm are the results of an exceeded operational limit If an alarm limit is exceeded you can make the system stop if the option for this is chosen see
87. istance Low Marker Distance Marker LightMeter Marker Reference Line MMReference Last 3 880 Min 3 281 Max 3 914 Average 3651 Std dev OK Reference ine Base line angle Center Center y Gradient Line coverage IV Sorted Scorpion Vision Software User Manual curves open the settings panel if you are authorized or set the history length similar for all curves Settings for Marker Distance Distance Axis settings Max value vertical axis 5 E OK Min value vertical axis 3 E Cancel 20 _ Stairs Apply History length Limits Help V Notify alarms values exceeds 3 of the latest 5 alarm limits 37 00 et Iv Show Alarm high imit 45 a 7 Active Warning high limit 00 Bt Active Warning low limit OO pi Active 33 0 j Iv Active Active alarm if Nominal value Alarm low limit Curve adjustments PE za BS Gi anaga Operation Sj Settings System log hs About Description History Curves Result Statistics bereke N Marker Distance Distance 3 28 mm N syringe Width Width 8 99 mm Ed Value 0 value a Down Distance Low Distance OK Distance_High Distance_Low Error l V Sorted Line p y Find Lower Right Edge Line v x Find Marker Linev y Find Marker Threshold Status Find Marker Upper Edge Find Right Slope Find Syringe Find Upper Left Edge Find Upper Right Edge Left Intersection LightMeter Lowtolerance Marker D
88. ition is true or false Command sequence page e The command sequence is executed when the state is true Custom colors nn Define Custom Colors gt gt Cancel Colour selector Hint if you are analysing a huge amount of images it can be wise only to keep the ones showing problems Select only Keep in history for states classifying errors Scorpion Vision Software User Manual Each state can be activated or deactivated You can also copy a state by selecting it in the list right click the mouse choose Copy from the menu and Paste it either in another state or as a new one The Delete button deletes the selected state 8 1 1 General Click New to add a new state and you see the General page You give the state a name and it appears in the list Double click the name or select Edit and the Settings for State panel is shown Associate a colour to the state this will illustrate the inspection result in the Inspection result panel The criteria used to define the state are then given The combination of these criteria defines a state These are general properties in addition to state constraints Commands to give an action if a state occurs can additionally be given There are five states defined in our example Label on Syringe We will show how the Pass state is defined for state Pass Ln settings W Active IE Cancel Mame Pass Text Pass Apply Description Label Help ap
89. lable to the WebServer via the TDVCmdProtocol interface details here WebServer AsyncPostResponse D lt id gt ContentType lt type gt ExHeaderLines lt lines gt B ody lt body gt Code lt code gt To call this function from a Python script you use the abbreviated form WebServer AsyncPostResponse lt id gt lt type gt lt exheaderlines gt lt body gt lt code gt This is a related reply to a POST event needed if the POST handler specifies asyncroneous reply 49 10 System events Scorpion Vision Software User Manual System event After close service Comment run after service mode is left After close settings run after settings mode is left After image acquisition After inspect run when all images are complete run after inspection After stop run after stop Before open service run before the service mode is entered Before open settings run before the settings mode is entered Before inspect run before inspection Before start run before start Close run before a profile is closed Error run on inspection error i e if more than one reference is accepted Image Grab run when the Snapshot button in the toolbar is pressed Image N complete run when image N is in Scorpion s memory Image N exposed run when an image is exposed Inspection run when the Inspect button in the toolbar is pressed Start up run after the profile is
90. m Pressing the Setup button will activate the camera s own property dialogs Press Calibration to open a calibration dialog me REEERE te Default Cancel Apply 9 5 2 Image settings With Scorpion images are generated or captured in three ways e Captured from an image source e normally a camera connected to Scorpion e Loaded from file e often used to simulate or test a vision system e Generated from the inside of Scorpion e often as a result of processing other images e produced by the ImageConverter and ColorSegmentor tools Double click the image in the Image Settings dialog or select it and press the Edit button and you see detailed information The following properties are defined in the Image Configuration dialog coming up e Active Used to enable the image Images generated from the inside of Scorpion shall not be active e Image the name of the image specified by the user The name is displayed as a caption to the image e Camera Used to select the camera connected to the image when not in simulation mode e Rotation defines the rotation e Load images from file The images are read from file with the given path and filter This image path is also used as source if you mark the Simulate box in the main image settings window e Path specifies the path to load simulation images e Filter filter to select a subset of images e Rotation defines rotation for images loaded from files Be
91. mageNo avoids dependence to index in the image list Exposure o Maxlnt 1 Exposure time in ms Contrast o 1 1 Brightness o 1 1 Convert none bw hsi none Conversion method if the image is a colour image HSI requires that Scorpion is setup with at least 3 images Filename lt path gt name blank If filename is given the image is read from file instead of taken by the camera Scorpion Vision Software User Manual 56 Command Parameters GetlmageProp Comment Reads selected properties for a Firewire camera e GetilmageProp e lt image gt lt name gt lt imageno gt lt index gt e name property lt name property gt EXAMPLE GetlmageProp imageNo 1 name Shutter GetlmageProp image Valve name Shutter Command response GetlmagePropResponse Shutter 3100 Result OK POSSIBLE PROPERTIES Brightness Iris Exposure Focus Sharpness Temperature Contrast Trigger Hue Zoom Saturation Pan UB Tilt VR Roll WhiteBalance OpticalFilter Gamma ColorEnable Shutter BacklightCompensation Gain The property value is given in driver units Scorpion gets the register value from the camera The camera driver gives available properties If a property is not supported the command fails To see the properties supported by your driver camera open the camera format dialog and get a list of the properties GetlmagePropRange Reads the value range of selected camera properties e GetlmagePropRange e l
92. me path in the statusbar e Service layout Custom panel here you can decide the layout of an additional custom panel e Disabled Only in image mode Only in normal mode Always e Alignment Left Top Right Bottom alignment relative to the image e Size given in pixels Layout setup Name a all Images Options cancel Wertical matrix Image Image mn l eo SDModel S0Model i HeightMap HeightMap if Auto alignment WH lw Show captions W Show statusbars Show Full image path Service layout Custom panel Disabled Alignment Bottom Automatic add new images Size 85 Layout setup when you have more than one image in the image pane In this case three images named Image 3DModel and HeightMap You can choose which of the images you will see in the All pane Right click the mouse over an image pane and select Layout Setup A window with the layout configuration for that pane opens The window is similar to the one shown above Layout Arrange opens a window where you can change the order of the images in a pane In Layout Single Images you can choose which of the images to be shown in separate panes all none or you can select them by name See the menu example to the left 17 6 System log The events are classified in five categories e Alarm e Warning e Information level 1 e Information level 2 e Information level 3 The system log menu has the following items e Show Alarms
93. n command to Resuscitator IMCmd destination localhost 8702 shutdown With the destination localhost 8702 prefix the command is sent to Resuscitator independent of the receiver setup in Communication tcp ip 66 H Operation Settings B Service Pa System log oy About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced System Events New Beforestart Before start s afterstop After stop Edit S cameraTrigger Camera trigger S arabExecute Start Image acquisition Delete s afterarab After Image acquisition Deactivate S inspectExecute Inspection U Mode_Hightolerance Execute U Mode_Lowtolerance u sendsetup Help u sendstatistics u zero Statistics u Terminate Command Sequence for Terminate Mo Command Guard Parameters 1 IMcmd destination lacalhost 8702 shutdown Edit Up Denn Command Properties g te Command We Active Command IMCma Parameters destination localhost 8702 shutdown Bl Guard Inverted E Command to Resuscitator when Terminate Scorpion Vision Software User Manual 67 Scorpion Vision Software from Tordivel AS is an independent and open software tool for industrial vision It is the best choice for the production engineer wanting to save cost automate or secure quality The system gives the user the choice of a small form factor with the Sony SmartCam or the
94. n given limits 65 Appendix 4 Scorpion Watchdog Resuscitator configuration General System Scheduler Remote control IMTDVCmdProtocol Ini file C Program Files T ordivel AS Scorpion_5 Label resuscitator ini x Load Applications Scomton Label Application Scorpion Label Process Program path Scorpion exe m Scorpion Label Parameters System Label Start in aN P Start as Noma x IMC md Pause after 0 sec Run at shutdown only Watch this program Alive check 5 intervals I Do not kill at shutdown l Check by title Window title g Ees sec mf sec Max wait close a sec Ad Remove Ue Deun Restart time Cancel Apply Help The configuration dialog for setting up the Scorpion Label system Resuscitator configuration General System Scheduler Remote control IMTDVCmdProtocol Ini file C Program Files T ordivel AS S corpion_5 Label resuscitator ini Connection Remote localhost 8700 ListenPort 8701 r Options Timeout 20 aj seconds MV Show in messages Raw data V Show out messages IV Write log to file Sender Event 21 31 03 2002 22 09 29 gt 8701 version Resuscitator 1 50 3 15 P 1 31 03 2002 22 09 29 gt 8701 getversionResponse P 1 31 03 2002 22 09 29 lt 8701 Get ersion K De Help Setup of remote interface tcp ip Scorpion Vision Software User
95. ncluded in the log file to ease readability The Request operator input before start option opens a window like the one below before inspection and logging is started Here you can change the file name name the operator and add comments Likewise the Request operator input after stop option opens a window for operator input when logging ends Start log Operation data Filename C Program files TORDIVEL AS Scorpion_5 Log 20060906_111132 csv ws _ Operator fhd OK Comment Help Operator input before logging starts Scorpion Vision Software User Manual 9 8Advanced Under Advanced you find settings mainly used when installing and testing the system 9 8 1 Alias a new name You can give a tool parameter an alias a new name This is i e useful for external communication The external system thus does not have to relate to Scorpion s internal structure New names are defined in our example Label on Syringe as seen to the right Distance and Status are used in command sequences related to states 9 8 2 Logging Operation Settings i B Service RAN System log GS About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server SimpleStatx Name Parameter Result Value Status Value OK Value Total Value Error Value New Edit Delete Help Alia
96. ne bat F Load images from file Path Ic Program Files T ordivel ASS corpion_5 Labellm Filter f bmp Rotation None se Rotation Image configuration example Scorpion Vision Software User Manual 9 5 Camera In this window you can change the camera settings The window is split in configuration of camera and configuration of images In Camera Settings you define the type of camera and the connecting board and port Here you also define the exposure time contrast and brightness for the image type s In Image Settings you give the image a name and define the image source the camera or a folder if you are simulating By choosing Live video the system will take pictures at fastest possible speed This is useful when adjusting the camera or to get an overview of image variations if for instance the light conditions have changed In multi image type systems you can decide to run live video for one type of image or for all types Note the dialogs described in this section assume that the DirectX driver is used firegrab dll 9 5 1 Camera settings Double click the camera or select it and press the Edit button and you see detailed information This varies dependant on the camera An example on camera setting is shown below Camera Settings Philips PhilDec Capture Properties OK Format Cancel Grabber Port Brightness Contrast Hue Saturation Camera Sharpness an Cams 7 am O
97. ne is accessible via the pagename script See the Scripts page for more information zn ez a naoga CPeration Ej Settings h Service ga System log General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server SimpleStatx Configure ActiveXContainer control D About Initial property values Property BackColor Value 2147483663 Export lists Exported functions wlGetBackColor Central Settings Scripts Plugins All None Client New page vlSetBackColor PluginPanel1 S Description vGetDay PluginPanel2 History Configure vlsetDay Operation 5 c wlGetDayFont Settings ANES Up Down wlSetDayFont Service S resu vlGetDayFontColor Notify function Advanced S statistics Delete page Set ayFontColor Mm U calendar ar New control Exported events Click a All None Configure kal Corou ADbIClick Properties vlKeyDown L______________Controlinfo_____________ wKeyPress Method info Event info Delete control ViKepUp GetBackColor a v BeforeUpdate SetBackColor Value VT_USERDEFINED R wlAfterUpdate Execute event NewMonth m none 3 SetDay alue VT_I2 GetDayFont SetDayFont alue VT_PTR Export everything Export noth
98. ns applications Folder Refresh Explore License SCORPION VISION SOFTWARE 6 0 0 350 SCORPION VISION SOFTWARE camera Archive Default drivers Documenta eVision Folder C Program Files Tordivel 45 Scorpion_5S Select a profile to start from the profile selection dialog Here seen with large icons Shortcut to Scorpion exe Properties General Shortcut Compatibility Target type Shortcut to Scorpion exe Application Target location Scorpion 6 Target el AS Scorpion 6 Scorpion exe System Label Start in C Program Files T ordivel AS Scorpion 6 Shortcut kes None Bun Normal window wl Comment Shortcut to a Scorpion profile Scorpion Vision Software User Manual 3 3 2 Start up select a Profile Go to the Windows Start menu and select Tordivel Vision Solutions Scorpion to start Scorpion A profile selection dialog is then shown The following operations are available i Open opens a selected profile TEENE Identification Name Label Cancel e Close closes the profile selection dialog e New creates a new profile Shortcut M Common for all Users V On Desktop e Copy copies a Scorpion profile to another profile lv On Startmenu In Folder C Program Files T ordivel AS Scorpion 6 ay e Rename renames a selected profile e Delete deletes a Scorpion profile e Shortcut crea
99. nse Result OK Error Statistics cmd zero The Statistics command performs actions on the Scorpion statistics Use it to reset last period cmd reset delete all statistics or save the statistics to file cmd save SYNTAX Statistics cmd lt zero reset save gt EXAMPLES Reset period Statistics cmd zero Reset statistics Statistics cmd reset Save statistics Statistics cmd save The statistics is anyhow saved at program termination Scorpion Vision Software User Manual 53 Command Stop Parameters Comment The Stop command stops a profile stops the inspection The command can i e be used for automatic stop managed by an io line The stop command can also be used to stop the profile e g when searching for errors SYNTAX Stop COMMAND RESPONSE StopResponse Result OK Error OAlarm name system inspection curve command value 0 1 Sets one of the system s quality alarms SYNTAX OAlarm name lt System Inspection Curve Command gt Scorpion activates quality alarms based on defined rules OAlarmReset turns off all quality alarms QAlarmReset Resets all quality alarms SYNTAX QAlarmReset Scorpion activates quality alarms based on defined rules QAlarm turns on individual quality alarms WebBrowser name Operation Settings Url XXXX homeurl xxxx cmd GoBack GoForward Stop Refresh GoHome Controls the Web Browser under operation and setup SYNTAX WebBro
100. ol and a descriptive text is shown e Save current image to disk e Full image mode image and result panels displayed ICON SYMBOLS Icon symbols are often used in detailed panels to indicate the state of for example an inspection a tool or a system operation Their meaning is as follows Not run Ok Blocked by guard or reference Error or No result Not active The license is not covering the use of this tool Manual execution Ed IA Le 8 o Scorpion Vision Software User Manual amp SH amp Start Setup Save Snapshot Inspect Help Close a Operation ge Settings gA System log G out eg ponon r a a BE Description ary Curves Results Statistics Image no _ Time Comment Ul 39 ass 34 13 01 2010 11 35 16 P Ul oot stance low 33 13 01 2010 11 35 15 Distance Save 32 13 01 2010 11 35 14 Distance low Ui boot istance low vst 13 01 2010 11 35 09 Distance Ul Hoot ass 30 13 01 2010 11 35 07 P Ui toot ass V 2s 13 01 2010 11 35 06 P Delete v ze 13 01 2010 11 35 05 Pass ar 27 13 01 2010 11 35 04 Pass tia v z6 13 01 2010 11 35 03 Pass Ui hoot ass 7 25 13 01 2010 11 35 02 P w 24 13 01 2010 11 35 01 Distance low Ui Jr Istance low w 23 13 01 2010 11 35 00 Distance w z2 13 01 2010 11 34 59 Distance low Help lv z 13 01 2010 11 33 49 Pass i v zo 13 01 2010 11 33 48 OK Wis 13 01 2010 11 33 47 OK lis 13 01 2010 11 33 46 OK 17 13 01 2010 11
101. on Vision Software User Manual Save Save As Visualisation all tools this only C this ref C none Result dialog 9 4 2 2 Buttons These buttons are present in all tools e OK will accept changes and close the tool dialog e Cancel will cancel changes and close dialog e Apply will accept changes and perform an inspection while the system is in non running mode e Console will toggle the console window e Help will activate the help pages for this tool e Save or Save As saves the tool as a Template You can save it either as a local or shared template Visualisation in image viewer e all tools visualises all tools this only visualises only this tool this ref visualises this tool and it s references e none turns off tool visualisation Note turning off tool visualisation is handy when editing polygons in the image Check the Result dialog to open a separate window showing the tool results 9 4 2 3 Setup The optional Setup page is present in most tools The ScaleReference example is a simple but typical Setup page e Reference user defined reference system e New scaling coordinate axis X and Y scale is defined 9 4 2 4 Visualisation For adding graphics on the image and visualising the operation of the tool Visualisation of all or this tool only can be selected Note Turning off Show Graphics will hide the tool s visualisation unless the tool is active or e
102. or IO signals given after this Alarm assumes that Scorpion has installed an OPC interface The Status and Event commands are also used towards OPC interfaces Event name o 1 tagname Triggers an event on or off lt pulselen value gt SYNTAX Event lt PulseLen value gt name 0 1 tagname lt PulseLen value gt lt name 0 1 tagname gt COMMAND RESPONSE EventResponse lt PulseLen OK Error gt lt name OK Error gt lt PulseLen OK Error gt lt name OK Error gt Result OK Error EXAMPLE Event o OSigEResultReady o0 Event pulselen 100 0 OSigEResultReady 1 Results from the tagdatabase can be used as on off value in Event Numeric value o is off numeric value lt gt o is on Multiple signals can be used in the same command separated with semi colon To pulse one or more signals use PulseLen nn ms Note that PulseLen is activated only for IO signals given after this Event assumes that Scorpion has installed an OPC interface The Status and Alarm commands are also used towards OPC interfaces Status name value Sets Status lO signal lt name value gt lt name value gt SYNTAX Status name value lt name value gt lt name value gt COMMAND RESPONSE StatusResponse name value lt name value gt lt name value gt Result OK Error EXAMPLE Status o OSigSProduct Product Value o OSigSResultOK ResultOK Value Results from the tagdatabase can be used as values in Status The numeric value is directly set An alia
103. orpion Select the Scorpion exe file press the right mouse button and choose Create shortcut In the shortcut properties you change the Target to System lt path to profile gt Example C Program files Tordivel AS Scorpion Scorpion exe System Label You will in this example start the Label profile placed on a sub folder You place the shortcut on the Desktop or under the Scorpion program group Name the shortcut Scorpion Label and then you can easily see which system that starts BACKUP To make a backup of the profile go to the Service Maintenance panel You can also use the backup to move the profile to another computer having the same Scorpion version installed Scorpion Vision Software User Manual 3 4 Making a new Profile To make a new profile you do as follows 1 Go to the Windows Start menu 2 Select Start Programs Tordivel Vision Solutions Scorpion A profile selection dialog is then shown 3 Press New and give the profile a name in the box coming up 4 Press OK and the name is shown in the profile selection dialog Select the Default profile which contains the basic setup press Copy and a window Copy Default to profile appears Select your new profile and press OK 5 You can now select the profile in the profile selection dialog and press OK or double click the profile name and Scorpion starts with your profile SCORPION VISION SOFTWARE 6 0 0 350 ao Licensedto Tordiv
104. other type or if the tool sequence is changed 9 4 3 6 Export From the popup menu you can export selected or all tools to an external configuration file The export dialog allows you to save the spb file to any location For more details on Scorpion tools press the Scorpion Help button 36 Scorpion Vision Software User Manual 9 4 3 7 Copy and Paste ROIs Most tools in Scorpion have the option to copy or paste the Region Of Interest ROI to or from the clipboard The clipboard is visualised in the image Several formats are accepted on the clipboard for paste operations Below left the Search area of Blob is shown with the paste and copy ROI buttons to the right Press the Copy button and the ROI is graphically shown in the image e cx cy dx dy Four numbers separated by commas these numbers are transferred directly to the Center X Center Y dX and dY controls The image below right shows a rectangular ROI copied to an image e Note only decimal points are accepted not commas Applicable for regular rectangle ROIs only e cx cy two numbers separated by comma set center of ROI e Polygons points stored as a Scorpion polygon This is the format generated by e g clicking in the main Scorpion image e Single point If the polygon contains one point only this is used as the ROI center where applicable e Two points Some line detection tools ROI may also be set by two points giving center position leng
105. oughly described in the Test of Scorpion communication chapter Setup of Resuscitator for NT is easy You find all the details in Resuscitator s own user manual Observe that the program path is relatively given Scorpion exe and that the command line parameters are entered as normal System Label To terminate Resuscitator IMTD VCmdProtocol and Scorpion with the press of a button you must configure Resuscitator to receive commands in TDVCmdProtocol format over tcp ip and configure a new system event in Scorpion Terminate This sends a request to Resuscitator to terminate Resuscitator will then stop all programs under supervision and finally terminate itself To prepare Resuscitator for remote control do as follows Under the System tab activate the Enable Remote Control in the IMTDVCmdProtocol group box Find a free port number for the Resuscitator to receive commands In the example Resuscitator is set up to send to localhost 8700 the Scorpion Label listen port Resuscitator itself listens on port 8702 Can Receive is marked In the message log you see that IMTDVCmdProtocol has sent the GetVersion command to Resuscitator and has received a response Check that the communication over tcp ip is activated in Scorpion and set up a listen port 8700 Additionally define a new system event Terminate under Service Actions Terminate is run when the user presses the button but before Scorpion terminates Terminate sends a Shutdow
106. perator PON Terminal ee en LAN pemet SERVICE amp SUPPORT Camera 1 D REMOTE INTERFACE DATA EXPORT DATA IMPORT Camera 2 Image ay Sources fN WJ User Tools Camera N Windows NT 2000 Standard Industrial PC Production Line Interfaces Robot Host Computers Control Systems PLC Systems Mechatronics Typical units in a Scorpion Vision Software system 3 Installation and Start up 1 Turn on your computer Insert the Scorpion Vision Software CD ROM disc into your CD ROM drive A window like the one below appears 2 Select Installation to start the installation process It is wise to read the System Requirements and the ReadMe file before installing Scorpion Vision Software 3 Select Install Scorpion Vision Software Follow the instructions coming up 4 Select www scorpionvision com and get a demonstration license Copy the license code in the edit field when prompted Read more about licensing in the Licensing chapter 5 To learn about Scorpion select Start up and install the demonstration profiles using stored images We highly recommend you to install and go through these demos Scorpion Vision Software User Manual Scorpion Vision Software is distributed on a CD with the following contents e Scorpion Vision Software e System requirements e Scorpion setup program e Demonstration profiles e Camera drivers e Documentation e S
107. plied ok Classification by lt Constrains only gt e State colors Static colors STATE O Text Back ingle CEE Clas sSific atir onm res Silk pre ed Ks with state text i dy namic Classification _ Manual counting i Unique state le Keep in history bw Update curves I Update log Defining the Pass state e OK closes the dialog e Cancel closes the dialog and cancels changes e Apply applies changes without closing the dialog e Help activates the State Help pages The condition s colour is changed by clicking the colour square The colour is selected using the Colour selector The state is defined to be unique that means Scorpion will indicate an error if Pass occurs at the same time as another state If this happens Scorpion will indicate an error by red in the image list as shown in the example below Description History Curves Result Statistics _ Image List 20 09 2006 GS EE Estates are EEE 13 20 09 2006 11 12 31 Distance Low PIE 20 09 2006 11 12 30 Pass lii 20 09 2006 11 12 29 Pass Save all 10 2009 2006 11 12 28 Pass w Two states occur at the same time there is an error in the state definition If the state is not unique an inspected unit can be accepted by more than one state The state highest in the state list is shown in the Inspection result panel The list can be sorted using the Up and Down buttons All commands rela
108. quester ResponseCmd sRobot Text sends the value of Robot Text back to requester Note This command is used as a a general method for sending response to any RS232 or tcp ip requester Important Execute on this command will fail the command is sent as a response to a command RS232Cmd TdvCmdProtocol format see Used to send data on standard TdvCmdProtocolformat over RS 232 to external systems appendix Parameters to RS232Cmd are free text but by the use of special formatting strings you can replace a tag name with a value in the tag database SYNTAX RS232Cmd lt command gt EXAMPLE RS232Cmd SetValue Alias 12 Mode 1 Scorpion Vision Software User Manual 11 5Profibus Commands The profbus commands are available on systems equipped with Siemens Profibus DP hardware Command Parameters Comment Alarm name oli tagname Sets Alarm IO signal lt name lt o 1 tagname gt SYNTAX Alarm lt PulseLen value gt name lt o 1 tagname gt lt PulseLen value gt lt name lt o 1 tagname gt gt COMMAND RESPONSE AlarmResponse lt name OK Error gt lt name OK Error gt Result OK Error EXAMPLE Alarm 0 OSigEResultReady o Results from the tagdatabase can be used as on off values in Alarm Numeric value o is off numeric value lt gt o is on Multiple signals can be used in the same command separated with semi colon 5 To pulse one or more signals use PulseLen nn ms Note that PulseLen is activated only f
109. r LightMeter Find Marker Threshold Distance Cannot Measure Find Upper Right Edge enaner Show SPB Hint use the Parameters button to select the GrabT ime AnalyzeT ime ManagementT ime CmdT ime Curve pdateT ime CycleTime ActiveT ime IdleT ime Running Settings Service ImageMode LiveVideo CameraSimulation Profile ersion ModifiedProfile Context Version Profile ScorpionDir ComputerN ame Result MemoryAllocated VirtualM emory Date List of system parameters 9 2 Scheduler Under Misc Miscellaneous you can set or get values in the Scorpion tag database Press Events to see an event trace Time Event 5 Event trace Mm o CS Parameters 06 09 2006 10 33 22 375 06 09 2006 10 33 22 375 06 09 2006 10 33 22 375 06 09 2006 10 33 22 359 06 09 2006 10 33 22 296 06 09 2006 10 33 22 296 06 09 2006 10 33 22 296 06 09 2006 10 33 22 296 06 09 2006 10 33 21 375 n amp tnatonns 10 22 21 276 Commands Commands Commands Commands Commands Commands Commands Commands Commands Coramande Ih ImCmd destination localhost 8701 Statisti SendStatistics Inspect R5232Cmd Result 3 OfDistance Status InspectExecute Grab GrabExecute CameraTrigger ImCmd destination localhost 8701 Statisti Send atictice ee Event trace Here you find tasks that are to be automatically run at scheduled intervals The tasks can be activated or deactivated
110. r Manual 9 8 4 2 Scripts The Scripts panel manages all Python scripts defined mj E G ay Operation Ej Settings B Service ga System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server SimpleStatx Central Settings Scripts plugins p New Central Start ae Central Stop Calendar Click Delete Calendar KeyDown Curves On larm Execute O SimpleStatX ConfiaChange M start __ Restart HistoryList Imageview stop Console Curves PluginPanel1 Help PluginPanel2 Calendar SimpleStatx Options J Show python messages on error V Scripts available From TD Cmd WW Edit script on error IV Send responses to scripts The Central Scripts panel There are several kinds of scripts involved on this panel listed under Source e Script these are general named functions that you can define See the Script details chapter below e Central these are the Start and Stop scripts executed on start up and shutdown respectively Note that these scripts are not function definitions like all the other scripts but rather lines that are executed directly e Page names similar but for the configured ActiveX controls The All source lists all defined scripts Each script also has a checkbox associated with it you can temporarily or permanently disable a script by unticking it The s
111. r left shows the running inspection results The classification result is shown in text we call it the state Additionally you can display one or more result parameters in this field In the above example given by the Distance parameter Right click the mouse over the field and you see the menu to choose from You need however to be authorized to change the result panel set up Normal conditions are usually indicated by a green background colour other conditions by for instance yellow or red You set the colour under Settings States 4 The Indicator panel is showing selected measured values calculated by Scorpion s logical tools The inspection result is based on these values On error the representing indicator panel field changes colour to e g red to illustrate the cause of the error If you are authorized you can change the value to be shown as well as the title and colour of the indicator panel fields Press the right mouse button over the field and select from the menu showing up You can also extend the panel by adding more fields or remove fields from the panel 5 Detailed panels right here you can chose different detailed information history curves results or statistics Closer descriptions of these panels are given in the rest of this chapter 6 Status bar bottom line shows different indicators of the system status From left to right e Image trigger status for ready signal from the production line e Status
112. r of frames per second are available Using Firewire cameras it is wise to reduce the frames per seconds to a minimum Calibration opens a camera calibration dialog 11 When closing the Camera dialog a green checkmark shall appear this means that the Whine Pibec Capture camera is open a red checkmark can mean that another application has opened the Image input Configuration El Active Grab r Live Calibrator Configure camera or simply an error Show input Load J External reference Configure C Show output Swe T Resampler configure 12 Uncheck the Simulate option under Camera Image Settings ion 1S now r for capturing live images le Scorpion is now ready for cap g g 13 Press Snapshot in the main toolbar the image shall appear in the left pane of Scorpion Camera calibration 14 Under Camera Image Settings the name of the images can be changed using edit and setting the image properties Scorpion Vision Software User Manual 10 4 Introduction to example Label on Syringe Measuring distance on syringe Scorpion Vision Software User Manual We use an inspection task from the pharmaceutical industry as an example through out the book To the left you see an image of a syringe taken by Scorpion The image is taken with an industrial black and white camera Sony XC 75 with 760x575 pixels and 256 grey tones To ensure contrast on the syringe edges we have chosen a dark background The
113. race step pixels ji Save As sr Reference Line LineFromPoints Visualisation is A f o TEER ar LightMeter IntensityTool End point a Line width pixels j0 isualisation Marker Threshold PythonScript all tools Marke BlobTool Search criteria this only arker obToo 3 ind marker Blob4 C this ref Threshold fe ble TemplateFinder2 none 8 Polarity b ark to light Marker Upper Edge LineEdgeFinderTool on gt Pixels X 41 619 Pixelvalue 15 03 04 2008 14 58 02 Visualisation of tool operation Right click a tool s graphic in the image and the tool name is seen in the menu Select it and the tool configuration window opens 9 4 3 4 Copy You can copy a tool by selecting it in the list of tools right click the mouse choose Copy from the menu and Paste it either in another tool or as a new one In the first case you can either paste it as an exact copy or only paste the configuration of the tool 9 4 3 5 Import The import method allows you to open a configuration file generated by export and select tools to import Note the import starting position either after first selected tool if any or at bottom of list All tools in the imported file will by default be selected if there are no duplicates e a yellow symbol will signal duplicate tools of same type e ared symbol will indicate duplicates of different type Note Importing duplicates can cause broken dependencies if the imported tool is of an
114. ral Scheduler Actions Toolbox Camera Communication Maintenance Advanced Profile options Panels Operation Layout Console Operation Automatic start at startup I Confirm stop by PIN JV Confirm close Load HSI color conversion file at startup V Stop on error Stop on unknown state 7 Stop on curve alarm Update curves on error _ Update log on error Single instance Explorer Show SPB Parameters Console Events Help Save images in separate thread Fast mode reduced GUI update while running _ Manual curve update Disable image update while running Hide image graphics while running J Show image graphics while configuring ct M cPu4 V _CPUO V CPU 1 M cpus cuz M CPU6 cPu3 cPU7 Current Configured Operational options General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Profile Options Panels Operation Layout console Show SPB Layout M Show Toolbar Captions Parameters JV Show statusbar Iv Show profile path in caption Console Events Help Show profile version in caption Enable Snapshot while running 7 Enable Inspect while running _ Hide left pane _ Full screen image mode dd Layout options General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Profile options Panels Operation
115. rameter e sets simulate state of given image Cmd parameter e setup shows configuration dialog EXAMPLE Image Show o e Activate image overview Image Show 1 e Activate image number 1 Image Show Height e Activate image named Height Image Active 1 Image Height e Enables Image with name Height Image imageNo o path d log images sets imagefolder for all images to d log images Image imageNo 2 cmd setup e shows configuration dialog for image no 2 Inspect Inspects image s SYNTAX Inspect This command runs the image tools on the shown image s then runs a classification SetlmageProp sets image properties in Firewire cameras SYNTAX SetimageProp lt image gt lt name gt lt imageno gt lt index gt property value lt property value gt EXAMPLE SetlmageProp Shutter 3100 POSSIBLE PROPERTIES Brightness Iris Exposure Focus Sharpness Temperature Contrast Trigger Hue Zoom Saturation Pan UB Tilt VR Roll WhiteBalance OpticalFilter Gamma ColorEnable Shutter BacklightCompensation Gain The property value is given in driver units Scorpion sets the value directly in the driver The camera driver gives available properties If a property is not supported the command fails To see the properties supported by your driver camera open the camera format dialog and get a list of the properties Scorpion Vision Software User Manual 11 4 Communication Commands The communication comman
116. right pane e Show Hide console window e Go to Toolbox e Go to Central e Camera simulation e Open simulation folder e Activate Deactivate live video e Reset Camera list applicable in service mode e Previous image in history list e Next image in history list e Reset clipboard e Open Explorer in profile folder Scorpion Vision Software User Manual The service settings are only available for authorized service operators and are hidden by a PIN code The code is different from the Settings code The Service code unlocks however also the Settings panel When the PIN code is correctly entered the Service button is visible on the right side operation panel Scorpion Syringe Label Position Measurement C Program Files Tordivel AS Scorpion 7 2 Label BAX 5 El i O ONE SBSH amp bad SCORPION gn E Start Setup Save Snapshot Inspect Help Close amp T me a ros VISION SOFTWARE a Operation g Settings h Service ga System log G About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Profile Options Panels Profile Settings Explorer Identification Show SPB Profile C Program Files Tordivel AS Scorpion 7 2 Label P ti System name Scorpion Syringe Label Position Measurement aramos Hardware ID HWID Console Python module name Scorpion Pee Profile version 001 A Help Languages Language ID LID Persistance il En Protected Confirm save R
117. rm of one or more values in addition to in most cases a set of graphical elements for image visualization The result is used to define the measured objects state This again decides if any action is to be taken The graphical elements are used to illustrate the result in the camera image on the screen Icon symbols are often used in detailed panels to indicate the state of for example an inspection a tool or a system operation Their meaning is as follows Not run Ok Blocked by guard or reference Error or No result Not active The license is not covering the use of this tool Manual execution Eg A B KI LI Appendix 1 TdvCmdProtocol format Scorpion Vision Software User Manual In TdvCmdProtocol commands it is possible to substitute text with parameter values by specifying a formatting sequence len type before the parameter name Each formatting sequence may contain a length specifier In case of length specifier is given the result is left padded with space or zero if the replaced parameter value contains fewer characters than the given length Multiple parameters MUST be separated by or Format Padding Description r Integer number format If the parameter value is not an integer n d 63 ak l O value the resulting string is the truncated integer value there is n D l no rounding of the value n b o Binary number format The resulting string is th
118. rogram as a protocol i Connection simulator The latter communicates with Pate Scorpion over tcp ip but with the same Mode Norma P Can rec messages as the PLC transmits over rs 232 ListenFart 8702 If you prefer simulating the PLC en localhost 8700 on a separate computer use the RS232TDVCmdProtocol Options Timeout 20 seconds IMTdvCmdProtecols SimpleS chedulers About The IMTDVCmdProtocol and RS232TDVCmdProtocol are distributed together with the Scorpion software W Showinmessages i Raw data W Show out messages Show simulator Winte log to file IMlog tet a In this chapter we show how you can configure Scorpion and the Time _ Event IMTDVCmdProtocol to communicate and 20709 2006 14 44 25 B lt 5 Tots Statistics OK 1 Error 1 T otal 2 lt E Tr how to test the communication over rs 232 lt 20 09 2006 14 44 24 B lt 5 Tet Statistics OK 1 Error 0 T otal 1 ET with the PLC We make use of the fact that G 20 09 2006 14 44 23 6 lt S Tes Statistics OK 0 Error 0 T otal 0 lt E TS Scorpion does not saa any difference in EN 20 09 2006 14 44 23 B lt STx gt StarteE TX gt w commands coming over rs 232 and tcp ip as long as they are in TDVCmdProtocol format Test program First you establish a configuration file for the simulator We have called it label spb The IMTDVCmdProtocol automatically loads this file if it is given in the program s parameter line at start up When yo
119. s Definition EJ Name Distance Parameter Result Value fe Cancel List of aliases new names for external use All measured values can be logged Press the Setup button before activating logging A window like the one to the left appears Select a folder for the log files and either an Automatic by date and time or Static filename Each time you start a new inspection batch a new file is generated The format of the log file is csv comma separated values All standard analysing products and databases like MS Access and MS Excel can then read the measured values You can also choose log or txt as file extensions Press the New button to add parameters for logging Select from the list coming up Activate logging by selecting the Active check box Each inspection cycle the parameter values will be included in the log file A Operation E Settings B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Alias Logging Results Central Web Server Simplestat Log Parameters Iv Active Parameter P statistics value Status Number of errors P syringe Width Width P marker Distance Distance Distance High Distance Low Distance OK Distance_High Distance_Low Find Lower Left Edge Find Lower Right Edge Find Marker Find Marker Threshold Find Marker Upper Edge Status Find Right Slope Find Syringe
120. s manager value can also be used to set a value Multiple signals can be used in the same command separated with semi colon 5 To pulse one or more signals use PulseLen nn ms Note that PulseLen is activated only for IO signals given after this Status assumes that Scorpion has installed an OPC interface Scorpion Vision Software User Manual 60 12 Terms Scorpion Vision Software User Manual Term Inspection Description Term for the combined operations picture s taking and classification of a unit Inspection series Series of inspections to identify a unit The number of inspections in a series is configurable k of n inspections in a series must conclude similarly to qualify an identification Camera trigger Digital signal that activates a new inspection series Profile Scorpion is a general inspection system A profile makes it dedicated and special for an inspection task The configuration done to perform an inspection task makes a profile ROI Region Of Interest the image area of interest for the analysing process Tool Icon symbol 61 A tool is used to make a calculation When configuring a system the tools to use are decided and their parameters are given values The parameters set the tool limits and are typically coordinates search areas ROI reference points min max values logical expressions etc When running the tool calculates a result in the fo
121. spection result Scorpion Vision Software User Manual 9 5 6 Simulating Activating simulation mode changes the image source from the camera to images stored on file 1 Go to Service Camera 2 Select Simulate in the Image settings panel Image Settings S syringe C Program Files Tordivel AS Scorpion_S Label Images New JEIELE uth JV Simulate Image Folder Explore Reset all Help mi Live video Activate All images Snapshot Syringe bal 3 Double click or select the image in the Image settings list and press Edit 4 Set the image path to the folder defined above Imag e Configuration Image Wv Active Imagename js yringe 2 Philips PhilDec Capture hd None X Camera Rotation Ic Program Files T ordivel AS Scorpion_5 Label lm g me we o Rotation None hd OK LK Cancel el Help 5 Press OK and you are ready to start Scorpion in simulation mode 6 Open the Service Scheduler tab and add a CameraTrigger command 7 Click on Start and an image will appear in the frequency defined by the Scheduler 9 6Communication 9 6 1 RS232 and TCP IP Scorpion can send or receive commands and values to and from other applications over RS232 and or Internet Messenger Thus Scorpion can be configured and managed from external systems These can also be other Scorpion systems An external system may also send commands set values in or re
122. syringe is diffusely lightened from above The task is to check that the label with lines for the measuring level level indicator is correctly positioned on the syringe We are doing this by controlling the distance between the upper level indicator and the line that defines the bending point transition to tip on the syringe The image is approximately 30 x 23 mm This means that the image point resolution is 0 04 mm The task is to control that the distance is within 3 6 to 3 85 mm To ensure this the measure resolution must be better than 0 01 mm and the measure tolerance better than 0 05 mm Scorpion solves this by using edge finding tools These tools can find edges with a precision 10 20 times better than the point resolution Better than 0 004mm in our example This precision is necessary in the in between results to ensure the precision of the final result the distance between the upper level indicator and the line between the syringe bending points Scorpion defines a set of possible states connected to an inspection task In our example these are e Pass the measured value is within the given limits e Distance low the measured value is below the lower limit e Distance high the measured value is above the upper limit e Cannot measure the inspection failed and no values are found e No syringe no syringe is found in the camera image It is important to define a descriptive set of states and establish statisti
123. t Result OK Error EXAMPLE Set a named active profile ActiveSystem name T 01 01 Backup Backups current profile configuration The generated backup file is WinZip 8 compatible SYNTAX Backup lt filename name gt lt comment text gt EXAMPLE Backup comment Automatic backup Default filename is profilename_nnn zip where nnn is increased by one for each backup starting at 1 If filename contains no path infomation the backup will be stored at the configured Archive directory Comment is appended to the default comment The default comment contains key values for backup creation time Scorpion version and profile name The comment may be viewed edited with WinZip Console Controls the console window SYNTAX Console lt show 0 1 gt lt clear o 1 gt lt length n gt lt msg text gt lt save filename gt EXAMPLES Console show 1 shows the console Console msg This is a console message show 1 Console clear FirstRun Value clears the console if the value of parameter FirstRun Value lt gt o Console save console log saves the console messages to file console log Note When using the msg keyword the tdvcmd separator may not be used as part of the text Scorpion Vision Software User Manual Command Parameters Comment Curves cmd zero The Curves command resets all Scorpion graph objects SYNTAX Curves cmd lt zero gt COMMAND RESPONSE CurvesResponse lt cmd OK Error gt Result OK Error EXSAMPLE Curves cmd zero Dela
124. t image gt lt name gt lt imageno gt lt index gt name property lt name property gt EXAMPLE GetImagePropRange imageNo 1 name Shutter GetlmagePropRange image Valve name Shutter POSSIBLE PROPERTIES Brightness Iris Exposure Focus Sharpness Temperature Contrast Trigger Hue Zoom Saturation Pan UB Tilt VR Roll WhiteBalance OpticalFilter Gamma ColorEnable Shutter BacklightCompensation Gain The property value is given in driver units Scorpion gets the register value from the camera The camera driver gives available properties If a property is not supported the command fails Commands are supported for Firewire cameras To see the properties supported by your driver camera open the camera format dialog and get a list of the properties Scorpion Vision Software User Manual 57 Command Parameters Image Comment Operate on Scorpion Images SYNTAX Image lt imageNo 1 n gt lt image name gt lt Show lt o 1 name gt lt Active o 1 gt lt Path value gt lt Simulat e 0 1 gt lt Cmd setup gt Show parameter e show image overview e 1 n activates selected image tab number e name activates image by tab name Active parameter Image lt Active gt lt o 1 gt lt Image gt lt name gt Image lt Active gt lt o 1 gt lt imageno gt lt 1 n gt e Enables image by imageno or name Path parameter sets image folder for specified image relative to current path if not full path given Simulate pa
125. t of the command interface When testing the command interface have Scorpion and the IMTDVCmdProtocol running and have the following IMTDVCmdProtocol setup available on the screen fw IMTdvCmdProtocolS Test Application IMTdvCmdProtocol5 spb MT deCmdProtocalS Simples cheduler3 About Send test strin wooo Connection Mode Normal ef Can receive ListenPart e702 Remote localhost 8700 Options Timeout 2o seconds We Shom in messages i Aaw data W Show out messages Show simulator Write log to file IMlog tt Y Time Sender Event 20 09 2006 15 03 51 165 lt 5 T gt Aesukt 379 5tatus 1 lt E T gt 20 09 2006 15 03 51 165 lt 5 Tr Checks E Tri 20 09 2006 15 02 42 164 lt 5 TAR esuk 391 Status 0 lt E T 20 09 2006 15 02 42 164 lt 5 T2 Checks E Tr 20 09 2006 15 02 25 163 lt 5 TAR esuk 39 Status 0 lt E T gt 20 09 2006 15 02 25 163 45 TS ChecksE Tr 20 09 2006 15 02 15 162 lt 5 TA esuk 391 Status 0 lt E T 20 09 2006 15 02 15 162 45T ChecksE Tri 20 09 2006 15 01 50 161 45T Mode_Lowtolerance lt E Tri l ABAD ks rererere Test message log example To start Scorpion select the Start command in Send test string Then select Check a number of times and see that the message is received by Scorpion and answers returned If you want a long lasting test activate Check to run every second or four times a second You can change the mode by running the Mo
126. ted to the true states will however be run You can choose if logs and curves are to be updated when a state is accepted In our example the state Pass will update the logs and curves since measured values are relevant when the state occurs The Can not measure and No syringe states will however not update the logs and curves with any values A Pass result will be kept in the history list when Keep in history is marked 8 1 2 Constraints In the Constraints panel you can add logical expressions and combinations of such All results from logical tools can be used to define constraints Add new constraints by pressing New and choosing a logical tool In our example both the result of the Syringe present and Distance OK tools have to be true at the same time The tool constraints are defined in the Toolbox You can make extensive and complicated expressions by combining results of logical tools and states Settings for state Pass Cancel W Sorted 1 Syringe Present 0 Distance OK GetlmageProp GetlmagePropHange GetValue Grab GrabE xecute Image Image Complete IMCrnid rit Ints evel mage Inspect InspectE vecute Loghsq Mode Hightolerance Mode Lowtolerance Profile QAlarm GAlarm ctivate larmDeactwvate l larmHezet HefCmds Modified profile Live video Cancel Camera simulation Running Running Distance High Distance Low Cannot Measure Statistics Constr
127. ters and the results of all tools defined in the toolbox Scorpion Vision Software User Manual Command Properties Command Iw Active EE Command RS232Cmd Parameters Result 3 0fDistance Status 42bStatus Guard Inverted Command sequence for state Pass Scorpion Vision Software User Manual 8 2 Web Browser You can include a web page in the Settings panel with e g a description of the settings Under Page Administrator in the Service General Panels page you can include a new page Settings 2E TAE Operation Pee eee eee Frofile Options Panels B Service aa System log Scheduler Actions Toolbox Camera Communication Maintenance dvanced F About Panel Settings esult Panels Left Pane indicator panel Plugin panel 1 Result panel Plugin panel 2 Custom panel 1 Custom panel 2 Custom panel 3 _ Custom panel 4 age Administrator Right Pane Shaw SPE Show Parameters Height Console Up Down Events Help dd New Description Web Browser Operation Results Results Operation Result Results Panel settings Press New and fill in the Page Content panel coming up Choose Web Browser as Type and Settings as the Host give the page a name press OK and a web browser will show up in the Settings panel Press the Configure button to decide which page to show Under Properties in the web page
128. tes a shortcut to the profile It is vice to establish a shortcut to each Create a shortcut to the profile profile if you have more than one profile on your computer You place the shortcut either on the Desktop under the Scorpion program group on the Start menu or in the system folder This makes the start up easy and convenient e Backup makes a backup of a Scorpion profile in zip format Subdirectories are included e Restore restores a profile from a given directory A folder is opened for browsing e Folder selects a folder for the profile selection dialog e Refresh refreshes the profile selection dialog if there has been changes e Explore opens the Windows Explorer e License information e Large icons toggles the list view e Show buttons toggles the buttons to the right on or off e Help activates the help window Select the wanted profile press Open or double click the profile and Scorpion starts 3 3 3 Shortcut at start up A Scorpion system has the following command line parameters e Scorpion System lt path gt If no path is given Scorpion uses the Default path The path normally points to a Scorpion profile a system It is vise to establish a shortcut to each profile if you have more than one profile on your computer A shortcut setup is shown above You make a shortcut by opening the Windows Explorer and navigate to Scorpion exe You normally find this file on the path program files tordivel as sc
129. th and direction In addition a circle may be defined by two points center position and radius e Four points The smallest rectangle containing all the points is found and set as the ROI or if the tool accepts an angle a best fit angled rectangle is found e Free form polygons Polygon ROI tools e g PolygonMatch Blob3 keep their ROI as a set of polygons of any size For the Copy operation the polygon format is used The number of points varies due to the kind of tool The operations are also available using executeCmd Search area Center X fe dx fiz a ern Center 15 dy z0 ROI of a Blob tool Press the Copy button and the ROI is shown in the Rectangle ROI copied from a tool to an screen image image 37 an E G noone Operation Settings B Service gA System log About General Scheduler Actions Toolbox Camera Communication Maintenance Advanced Camera Settings New Pinnacle Systems 700 USB Device FireGrab dll Grabber 1 Port 1 Philips PhilDec Capture FireGrab dll Grabber 1 Port 2 Edit j JOWT Help 4 u Wa Image Settings Source ooo New Syringe 2 Philips PhilDec Capture el Explore Help Live video Activate allimages Snapshot Syringe I Camera and image settings mmm Image Configuration Image IV Active Imagename Syringd Cancel Help Camera 2 Philips PhilDec Capture v No
130. ts based on criteria like dimension form grey scale colour text and code Quality control can be based on dimension surface flaw assembly etc Scorpion can also be used in factory automation to identify parts sorting robot guiding and automatic program selection To monitor the inspection result and the production process Scorpion offers statistics and detailed result information Scorpion offers the end user a feature rich and functional graphical user interface with image display result panels image history list real time trends alarm management event log quality alarms remote control user configurable logging and rich configuration profiles The flexible and configurable communication line interface allows managing of control signals and data exposure through Profibus DP digital and analogue I O rs 232 and TCP IP The text based communication protocol TdvCmdProtocol is the kernel of the communication Scorpion contains an extensible set of configuration tools They are categorized in Basic Data Edge Geometry Reference 3D and Advanced tools Combining these tools Scorpion targets both the simple and the advanced inspection tasks Scorpion can simultaneously serve and communicate with multiple independent units like PLCs robots and production lines Additionally Scorpion supports on the fly reconfiguring to handle different product variants within one single production line A broad range of cam
131. tuple where the first element indicates success 1 or failure 0 The second element depends of the tool type and command Availability The interface is always available but note the following When the tool s configuration dialogue is open changes made to the tool from the executeCmd interface may be lost when the dialogue is closed If you press OK or Apply the changes are overwritten with the configurations dialogue s data ROI settings are always remembered Example 1 Set ROI tool GetTool Combiner Get a handle to an ImageCombiner tool Set ROI of tool tool executeCmd Set object ROT value 100 100 50 50 Example 2 Set ROI from clipboard tool GetTool Combiner Get a handle to an ImageCombiner tool Set ROI of tool using user defined points on clipboard tool executeCmd Set object roi source clipboard Example 3 Copy Polygon ROI to clipboard tool GetTool Combiner Get a handle to an ImageCombiner tool res ROI tool executeCmd GET OBJECT ROTI get tool s roi res tool executeCmd Get OBJECT ROI destination clipboard Example 4 Execute a tool specific command Add a reference image tool GetTool Combiner Get a handle to an ImageCombiner tool tool executeCmd ADDIMAGE 9 4 3 Tool operations The following menu items are available in the toolbox window e New Ctrl N creates a new tool e Fdit Ctrl E edits selected tool
132. u have configured the communication write Start in the Send test string field and press the Send button Select tcp ip under Communication and you will now see that Scorpion receives the Start string ou Gad morsantommalonen ths Establishing a command interface IMTDVCmdProtocol in the program s own You can now define the commands from the PLC to Scorpion They are the general commands help file e Start Sets Scorpion in inspection mode e Stop Stops Scorpion Additionally the following commands are defined under Actions in Label on Syringe e Mode LowTolerance sets the mode to low tolerance e Mode_HighTolerance sets the mode to high tolerance Do this under the Scheduler tab Below you see the commands entered To test the interface select a line and press Execute and you send a message to Scorpion IMTdvCmdProtocolh SimpleSchedulerd About The Check command can be run every second HEE Scheduled when it s activated Below you see the setup Chen Every Nth second Every second of this command Star Once 20709 2006 at 14 48 05 Edit LJ Set low tolerance mode Once 20 09 2006 at 14 49 24 seen J Set high tolerance mode Once 20 09 2006 at 15 50 09 UE Down a En O Stop Once 20709 2006 at 17 48 31 Command Check Schedule Information Frequency Every Nth second hd eriad de E wecute Setup of the Check command Test program command setup Scorpion Vision Software User Manual 63 Tes
133. u with flexibility In Central plugins and python scripts are managed Scorpion Plugins are based on ActiveX components The Plugins are used for e Customising the User Interface e Configuration e Curves e Tables e Adding Custom Interfaces NE ro Files Tor divel AS Scorpion_5 Label en Robo t Start Setup Save Snapshot Inspect Help Close mf VISION SOFTWARE Operation de Settings BA svenis GES e l A Description History Curves Result Statistics Calendar Stine Ei pa e Database Mon Tue Wed Thu Fri Sat as e Any network protocol With the Python Scripts you can glue all plug ins into the Scorpion Application to meet user demands The plug ins can be placed in the left hand pane or on any of the tabs in the right En hand pane Placing a plugin under Service it will automatically be protected by the Scorpion access control To the left Scorpion is shown with two visible plugins In the left pane a button Start Scorpion is added to make it easier to start Scorpion When the user pushes this button Scorpion is started and the button changes caption to Show Stopper The business logic for this is placed in the button onclick event TDVButtonX is a part of TDV Utilities a set of easy Scorpion with two visible plugins to use ActiveXs made to enhance a Scorpion application To the right the Microsoft Calendar ActiveX control is used to set the date
134. unknown file types OK Cancel AD _ Configure opens the Web Server control properties Scorpion Vision Software User Manual 9 8 5 Web Server This is a web server component that can be customised by a set of Python scripts The following events are available via Python event handlers e GET Requester URL Header Body e GETCompleted Requester URL Code e PUT Requester URL Header Body e PUTCompleted Requester URL Code e DELETE Requester URL Header Body e DELETECompleted Requester URL Code e HEAD Requester URL Header Body e HEADCompleted Requester URL Code e POST d Requester URL Header Body These event handlers are very special All apart from the Completed ones also return values to the web server controlling the responses to requests When you generate event handlers you will be given comments to get you going For details see Scorpion s online Help Here is a short summary of the options e The GET handler can accept or deny the transaction or compose the return value itself either as text or as a file e The PUT DELETE and HEAD handlers can accept or deny the transaction e The POST handler must be implemented for any POST calls to be accepted The script is responsible for handling this either synchronously or asynchronously The Web Server configuration is accessed here The event handlers are edited and available under Service Advanced Central Only one function is avai
135. upport program 3 1 Installation Jog Scorpion Vision Software amp Stop A Home Refresh Installation Start up Demonstrations Examples Documentation Courses Pricelist Lens Calculator Eliminates your weakest link N C7 Y SCORPION ZN VISION SOFT WARE In nature it s all about survival of the fittest That goes for the business world too Yield problems lack of flexibility flaws customer claims expensive hardware and slow deliveries make companies vulnerable Our Darwinistic software helps your company to be a survivor in your competitive market Scorpion Vision Software is a Registered Trademark of Tordivel AS CD ROM start up You find the Scorpion user documentation under Documentation For live demonstrations select Demonstrations More profiles are available under Examples Choose Courses to see the Scorpion Vision Software Introduction and Advanced course content Select Support Applications to get information on applications supporting the Scorpion Vision Software You also find camera drivers and links to Python used in some Scorpion profiles on the CD The Lens calculator finds the lens size and the appropriate field of view based on information you give Scorpion Vision Software User Manual 3 2 Licensing Scorpion Vision Software is licensed software A license is related to the computer s network board There are three types of licenses e Demo license
136. ursor e Pan the zoomed rectangle while zooming in press the Alt button e Zoom out left click the mouse in the image Note multiple zoom operations will create a stack of zoom levels to completely un zoom the image left click the mouse button repeatedly 5 6 2 Measure intensity values Click the right mouse button in the camera image and see the menu as shown in the image above Select Show info and a text line with point information will follow the cursor 5 6 3 Measure You can measure distances and angles directly in the image by using the Set measure origin Measure and Freeze commands Click the right mouse button when starting Set measure origin and ending Freeze The measuring result is shown on the cursor text line This value relates to the reference system chosen for the image You can make new reference systems with the Scorpion tools These will show up under Reference system in the menu above This is useful e g in robot vision systems where Scorpion can be set up to work in the same coordinate system as the robot The default reference system is set using Reference system in the menu below By default pixels are used to give the results When a tool in the toolbox is active the reference system is set by the tool Drawing lines and defining polygons on an image en er Add point to Clipboard Ctrl LMouse Reset Clipboard Shift Ctrl RMouse Clipboard Set measure origin Measure Show info Copy shown ima
137. value gt value is an alias or tagname The GetValue result is returned ina GetValueResponse message GetValueResponse lt value gt result lt value gt result The values are the parameters given in the GetValue message EXAMPLES Request GetValue name ExScalaroValue Alias Response SetValueResponse ExScalaroValue 12 Alias 3 SetValue name value SetValue sets values in the Scorpion tagdatabase lt name tagvalue gt lt name tagvalue gt SYNTAX SetValue lt name gt lt value gt lt name gt lt value gt The name is an alias or a tagname The value is a value an alias or a tagname A message is generated on a SetValue command SetValueResponse This response is normally not used EXAMPLES Request SetValue ExScalaroValue 10 Alias ExScalaro Value Response SetValueResponse ExScalarValue OK Result OK Scorpion Vision Software User Manual 55 11 3 Camera Commands The camera commands are used to capture images and set camera properties The camera properties are only available using IEEE 1394 cameras Command Camera Parameters Comment Command to operate on cameras SYNTAX Camera CameraNo lt 1 n gt cmd lt Setup gt lt Reload gt e Setup Activate camera settings for selected camera e Reload reloads camera configuration for the selected camera Note CameraNo is optional default camera 1 EXAMPLE Camera CameraNo 1 Cmd Setup e Activates camera settings dialog for camera number 1 e
138. ware User Manual 9 5 3 Installing a camera driver DirectX drivers are installed from the Windows Device Manager The Device Manager is activated from My Computer System Information System Properties Remote Advanced m System Restore Automatic Updates General Computer Name Hardware System Microsoft Windows XP Professional Version 2002 Service Pack 2 Registered to TORDIVEL AS 76487 0EM 0059095 66309 Computer Intel R Pentium R M processor 2 13GHz 798 MHz 1 00 GB of RAM Physical Address Extension Under the Hardware tab activate the Device Manager System Properties System Restore Remote General Computer Name Automatic Updates Advanced Device Manager a The Device Manager lists all the hardware devices installed on your computer Use the Device Manager to change the properties of any device Device Manager Drivers Driver Signing lets you make sure that installed drivers are compatible with Windows Windows Update lets you set up how Windows connects to Windows Update for drivers Driver Signing Windows Update Hardware Profiles Hardware profiles provide a way for you to set up and store zel different hardware configurations Hardware Profiles Pressing the Device Manager will activate the Device Manager When a DirectX camera source is installed the Imaging devices folder is present E Device Manager File
139. wser Name lt Operation Settings gt lt url lt url gt gt WebBrowser Name lt Operation Settings gt lt homeurl lt url gt gt WebBrowser Name lt Operation Settings gt lt cmd lt GoBack GoForward Stop Refresh GoHome gt gt EXAMPLES WebBrowser Name Settings homeurl http www tordivel com WebBrowser Name Settings url Etikett web description htm WebBrowser Name Settings cmd GoHome Remember to activate WebBrowser under Service General You can use paths relative to the Scorpion working directory Parameters used in Savelmage Value Description imageno 1 n 1 1 Image number to be saved indexed from o to n 1 In multi image systems all images will be saved if imageno is The file name is then x bmp where x is the image number Valid only if file name is given not auto saving filename filename none If path is not given file name can contain full path File name shall not be given if auto saving is set path path none Full or relative path to image catalogue Used if file name does not include path or path is not given auto saving Scorpion Vision Software User Manual 54 11 210 Commands The IO commands Set and GetValues access the Scorpion tagdatabase Command Parameters Comment GetValue name value GetValue gets values from the Scorpion tagdatabase lt name tagvalue gt lt name tagvalue gt SYNTAX GetValue name lt value gt lt value gt lt
140. xplicitly set to visualise in the Visualisation Group box 9 4 2 5 Results All tools have a Result page that displays all parameter results of the tool Manually it is possible to set the unit and the precision of each parameter Hint Activate the Results menu by right clicking the parameters to set unit and number of decimals Results definition a N Parameter Description lt parameter gt Numeric or text data depends of the tool type Status Tool execution status O not executed 1 executed 2 guarded 3 error 4 deactivated Tool execution time in ms Analysis time XX Scorpion Vision Software User Manual 9 4 2 6 ExecuteCmd The executeCmd tool interface is available in most Scorpion tools This enables selected operations to be performed from a Python script An overall description is given here refer to each tool s help page for details and available commands Command format ok ret lt tool gt executeCmd lt command gt lt parameter gt lt value gt ok ret lt tool gt executeCmd lt command gt lt parameter gt lt value gt lt command gt and lt parameter gt and also lt value gt if it contains an object name e g ROI are case insensitive Common commands The Set and Get commands have a standard format see the examples below SOURCE DESTINATION and CLIPBOARD are reserved words case insensitive Return value This is always a
141. y value value The Delay command stops the program in a given number of milliseconds SYNTAX Delay value lt duration_ms gt COMMAND RESPONSE DelayResponse lt value OK Error gt Result OK Error EXAMPLE Delay value 100 stops Scorpion for 100 ms You can also substitute scale values with aliases or result Delay value ExScalarValue Delay is only ment for short periods lt 5ooms since the command stops the program not only the profile mouse IO screen update etc Delay can be useful in some cases e g if an io signal has switched on a light and you want the light to stabilise before a new image is taken If a longer pause is needed you should consider io signalling used as sequence control LogMsg Level 1 3 1 Writes a message in the Scorpion event log msg freetext SYNTAX LogMsg Level 1 0 1 2 3 lt Msg lt freetext gt gt where e Level default is 1 info1 1 error e O warning e 1 infot 2 info2 e 3 info3 gt Msg The message cannot include or they are the protocol s separation signs EXAMPLE LogMsg msg This is an Info1 message LogMsg level 1 msg This is an error message LogMsg level o msg This is a warning LogMsg level 1 msg This is an info1 message LogMsg level 2 msg This is an info2 message LogMsg level 3 msg This is an info3 message These can be useful as debug messages to control command sequences and program flow Guard used on the command can be useful Put several messages in
Download Pdf Manuals
Related Search
Related Contents
Introduction - Pioneer Europe - Service and Parts Supply website Unpublished add-on to: Using a Painting Metaphor to Rate Large User`s Manual - Virtual Astronaut - Washington University in St. Louis Fisher-Price 74790 Motorized Toy Car User Manual Communiqué de presse manual de LG G4 Stylus Sony Mobile Communications AB Western Digital RE3 320 GB Service Manual - Multideck AD2-28 Copyright © All rights reserved.
Failed to retrieve file