Version 1.0 Produced in July 2002 Compact image sensor camera IV-S30J User’s Manual (Function and Operation) Thank you for purchasing the SHARP IV-S30J compact image sensor camera. Read this introductory user's manual carefully to thoroughly familiarize yourself with the functions and proper procedures for operation. Store this user's manual in a safe place. We are confident that the manual will be helpful whenever you encounter a problem. In addition to this manual, there are two other IV-S30J manuals as follows. Read them in conjunction with this manual. IV-S30J User’s Manual (Introduction and Hardware) User’s Manual (Function and Operation: This manual) Instruction Manual Manual type Major subjects - Outline of the IV-S30J (features and functions) IV-S30J - Description of the hardware User's Manual - Startup method (Introduction and Hardware) - General performance specifications. - Example of operation and instruction - Detailed explanations of all the measurement functions. - How to make menu selections for IV-S30J each measurement User's manual - Details of inputting and outputting (Function and Operation) data and communications with other devices. - Troubleshooting How to use - Become acquainted with the IV-S30J - Learn how to install the IV-S30J and wire it up - When mastering the outline of operation. - Learn how to specify measurement /inspection conditions, good or NG judgment conditions, etc. - Lear how to connect a programmable controller or personal computer. - Learn what to do if a problem occurs. Notes - This manual was written with the utmost care. However, if you have any questions or inquiries concerning the product, please feel free to contact our dealers or service agents. - Copying all or part of this booklet is prohibited. - The contents of this manual may be revised or modified for improvement without prior notice. Chapter 1: Setting and Operating Outline Chapter 2: Setting the Operating and System Conditions Chapter 3: Setting Measurement Conditions Chapter 4: Positional Deviation Measurement Chapter 5: Degree of Match Inspection Chapter 6: Lead Inspection Chapter 7: Area Measurement by Binary Conversion Chapter 8: Object Counting by Binary Conversion Chapter 9: Object Identification by Binary Conversion Chapter 10: Existence Inspection by Point Measurement Chapter 11: Multiple Positional Measurement Chapter 12: Multiple Degree of Match Inspection Chapter 13: Distance and Angle Measurement Chapter 14: Numerical Calculations Chapter 15: PC Function Chapter 16: Setting the Input/Output Conditions Chapter 17: Communication (General Purpose Serial Interface) Chapter 18: Computer Link Chapter 19: Troubleshooting Alphabetical Index Table of Contents Chapter 1: Setting and Operating Outline ...................................................... 1-1 to 23 1-1 Setting and operating procedures ................................................................................................ 1-1 1-2 Method for selecting the menu configuration ............................................................................... 1-2 [1] Menu configuration .................................................................................................................... 1-4 [2] Configuration of the setting conditions ....................................................................................... 1-5 [3] Configuration of Set Wizard ....................................................................................................... 1-6 1-3 Description of the Operation screen .......................................................................................... 1-10 1-4 Setting the measurement programs .......................................................................................... 1-13 1-5 Common operations for each menu .......................................................................................... 1-14 [1] Operations to return to the operation screen ........................................................................... 1-14 [2] Saving data .............................................................................................................................. 1-14 1-6 Power ON setting menu ............................................................................................................. 1-15 [1] Operations menu lock .............................................................................................................. 1-15 [2] Change the Japanese or English display mode ....................................................................... 1-15 1-7 Remote keypad (IV-S30RK1) .................................................................................................... 1-16 1-8 Operation flow ............................................................................................................................ 1-17 [1] Power ON and main loop processing ...................................................................................... 1-17 [2] Operation flow after the measurement start input is turned ON. .............................................. 1-19 1-9 Table of controller functions ..................................................................................................... 1-22 Chapter 2: Setting the Operating and System Conditions ............................ 2-1 to 17 2-1 Setting the operating conditions .................................................................................................. 2-1 [1] Monitor output ............................................................................................................................ 2-2 [2] Image capture ............................................................................................................................ 2-4 [3] Message display ........................................................................................................................ 2-5 [4] Pattern display ........................................................................................................................... 2-6 [5] Binary image display .................................................................................................................. 2-7 [6] q angle correction image display ............................................................................................... 2-8 [7] Operation main display .............................................................................................................. 2-9 [8] Evaluation change display ....................................................................................................... 2-10 [9] PC monitor screen ................................................................................................................... 2-11 [10] Through display ...................................................................................................................... 2-11 [11] Extension functions ................................................................................................................ 2-12 2-2 Setting the system conditions .................................................................................................... 2-14 [1] Manually setting the object type ............................................................................................... 2-14 [2] Gain/offset adjustment ............................................................................................................. 2-15 2-3 Editing Operation screen ........................................................................................................... 2-16 2-4 Option ........................................................................................................................................ 2-17 Chapter 3 : Setting Measurement Conditions ................................................ 3-1 to 39 3-1 Outline ......................................................................................................................................... 3-1 3-2 Shared settings ............................................................................................................................ 3-4 [1] Window shape selection and settings ........................................................................................ 3-4 [2] Image settings ............................................................................................................................ 3-9 [3] Evaluation conditions ............................................................................................................... 3-17 [4] Image pre-processing .............................................................................................................. 3-19 [5] Image adjustment .................................................................................................................... 3-24 [6] Binary image mask .................................................................................................................. [7] Position correction ................................................................................................................... [8] Title registration ........................................................................................................................ 3-3 Input & Output / System settings ............................................................................................... [1] Illuminance (light level) monitor ............................................................................................... [2] Setting the shutter speed ......................................................................................................... [3] Copying .................................................................................................................................... [4] Halt on NG measurement ........................................................................................................ [5] Window group move ................................................................................................................ 3-25 3-30 3-33 3-34 3-34 3-36 3-37 3-38 3-39 Chapter 4: Positional Deviation Measurement ............................................... 4-1 to 13 4-1 Outline ......................................................................................................................................... 4-2 Setting operation .......................................................................................................................... [1] Set the register conditions for a gray search ............................................................................. [2] Setting the register conditions for edge detection ...................................................................... 4-1 4-2 4-4 4-7 Chapter 5: Degree of Match Inspection ............................................................ 5-1 to 9 5-1 Outline ......................................................................................................................................... 5-1 5-2 Setting operation .......................................................................................................................... 5-2 Chapter 6: Lead Inspection ................................................................................ 6-1 to 8 6-1 Outline ......................................................................................................................................... 6-1 6-2 Setting operation .......................................................................................................................... 6-2 Chapter 7: Area Measurement by Binary Conversion ..................................... 7-1 to 9 7-1 Outline ......................................................................................................................................... 7-1 7-2 Setting operation .......................................................................................................................... 7-2 Chapter 8: Object Counting by Binary Conversion ......................................... 8-1 to 8 8-1 Outline ......................................................................................................................................... 8-1 8-2 Setting operation .......................................................................................................................... 8-2 Chapter 9: Object Identification by Binary Conversion ................................... 9-1 to 9 9-1 Outline ......................................................................................................................................... 9-1 9-2 Setting operation .......................................................................................................................... 9-2 Chapter 10: Existence Inspection by Point Measurement ............................ 10-1 to 9 10-1 Outline ..................................................................................................................................... 10-1 10-2 Setting operation ...................................................................................................................... 10-2 Chapter 11: Multiple Positional Measurements ........................................... 11-1 to 11 11-1 Outline .......................................................................................................................................11-1 11-2 Setting operation .......................................................................................................................11-2 [1] Set the register conditions for a gray search ............................................................................ 11-5 [2] Setting the register conditions for edge detection ..................................................................... 11-7 Chapter 12: Multiple Degree of Match Inspection .......................................... 12-1 to 8 12-1 Outline ..................................................................................................................................... 12-1 12-2 Setting operation ...................................................................................................................... 12-2 Chapter 13: Distance and Angle Measurement .............................................. 13-1 to 8 13-1 Outline ..................................................................................................................................... 13-1 13-2 Setting operation ...................................................................................................................... 13-2 Chapter 14: Numerical Calculations .............................................................. 14-1 to 15 14-1 Outline ..................................................................................................................................... 14-1 14-2 The individual numerical calculations for each measuring program ........................................ 14-1 14-3 Final numerical calculations ..................................................................................................... 14-9 14-4 Setting examples .................................................................................................................... 14-11 Chapter 15: PC Function ................................................................................ 15-1 to 18 15-1 Outline ..................................................................................................................................... 15-1 15-2 Operation cycle ........................................................................................................................ 15-1 [1] Power ON sequence ................................................................................................................ 15-2 [2] PC scan cycle .......................................................................................................................... 15-2 [3] Measurement processing cycle ............................................................................................... 15-2 15-3 Ladder circuit program creation .............................................................................................. 15-3 [1] Procedure for creating measurement output condition and a ladder circuit ............................. 15-3 [2] A list of the "OUTPUT COND" screen displays ........................................................................ 15-9 [3] Procedure for creating the final output conditions in a ladder circuit ...................................... 15-11 15-4 Program examples (shape and positional deviation inspection) ........................................... 15-16 15-5 Examples of a final output conditions ladder circuit .............................................................. 15-17 15-6 PC monitor screen ................................................................................................................ 15-18 Chapter 16: Setting the Input/Output Conditions ........................................ 16-1 to 32 16-1 Outline ..................................................................................................................................... 16-1 16-2 Measurement start input and result output settings ................................................................. 16-5 16-3 CCD trigger ............................................................................................................................ 16-18 [1] Outline .................................................................................................................................... 16-18 [2] Setting procedure ................................................................................................................... 16-18 16-4 Setting for serial communications .......................................................................................... 16-21 16-5 Computer link ......................................................................................................................... 16-22 16-6 Output block assignment (Computer link output and general purpose serial output) ............ 16-23 [1] Data in specified blocks ......................................................................................................... 16-23 [2] Setting (operating) procedure ................................................................................................ 16-24 16-7 Setting the data output ........................................................................................................... 16-26 [1] Select "ANY" for the serial output .......................................................................................... 16-26 [2] Select "YES" or "NO" for output data ..................................................................................... 16-27 16-8 Calibrating the IV-S30J .......................................................................................................... 16-28 Chapter 17: Communication (General Purpose Serial Interface) ............... 17-1 to 17 17-1 List of processing functions ..................................................................................................... 17-1 17-2 Data flow .................................................................................................................................. 17-3 [1] Measurement execution 1: Command codes 10, 11, or 12 ..................................................... 17-3 [2] Measurement execution 2: Response processing for command 11 ........................................ 17-3 [3] Measurement execution 3: Command 14 ................................................................................ 17-4 [4] Processing other than measurement execution processing .................................................... 17-4 17-3 Communication format ............................................................................................................. 17-5 17-4 Processing functions ................................................................................................................ 17-7 [1] Measurement execution functions ........................................................................................... 17-7 [2] Result reading .......................................................................................................................... 17-9 [3] Setting, initialization, and diagnosis of the operation screen ................................................. 17-12 [4] Setting numerical data of the any output measuring .............................................................. 17-16 Chapter 18: Computer Link ............................................................................ 18-1 to 34 18-1 Compatible models .................................................................................................................. 18-1 18-2 Data flow .................................................................................................................................. 18-2 18-3 Register setting ........................................................................................................................ 18-3 18-4 Measurement data blocks ........................................................................................................ 18-5 [1] Number of blocks ..................................................................................................................... 18-5 [2] Contents of the measurement result block (for each measurement function) ......................... 18-6 18-5 Specifications for any output data ............................................................................................ 18-6 18-6 Interface ................................................................................................................................. 18-19 [1] Setting items for the IV-S30J ................................................................................................. 18-19 [2] Connection with a Sharp PC .................................................................................................. 18-20 [3] Connection with a Mitsubishi PC ........................................................................................... 18-26 [4] Connection with an OMRON PC ............................................................................................ 18-29 18-7 Program examples ................................................................................................................. 18-31 Chapter 19: Troubleshooting ........................................................................... 19-1 to 6 [1] Symptoms and checks ............................................................................................................. 19-1 [2] Causes of termination codes (when an error occurs) and remedies ....................................... 19-3 [3] Maintenance ............................................................................................................................ 19-6 Alphabetical Index ............................................................................................... I-1 to 7 Setting and Operating Outline Chapter 1: Setting and Operating Outline 1-1 Setting and operating procedures This paragraph describes the rough operation sequence of the IV-S30J. (Ref. chapter) 1 System design Plan your hardware environment to suit your use of the IV-S30J. User’s manual (Introduction and Hardware) - Measurement program (positional deviation 1-3 Measurement programs measurement, degree of match inspection, etc.) - Number of cameras, externally connected devices, 3-1 Basic system configuration system components - Input/output (start measurement input, result 3-2 System configuration examples output, object type change, etc.) - Lighting equipment, illumination, shutter speed, lens, etc. 5-1 Installation conditions 2 Installation/assembly Install the hardware you will be using. - Connection of cameras and monitor to the controller - Installation of the controller and camera body - Connection of a power supply, input/output terminals and external devices 3 Turning ON the power supply (controller and monitor) Supply power to each device. User’s manual (Introduction and Hardware) 5-2 to 5-4 Installing, connecting, and wiring methods 4 Environment settings Set IV-S30J parameters according to the actual hardware environment. - Setting the Input/Output conditions Chapter 16 - Communication Chapter 17 - Computer link Chapter 18 - Gain/offset adjustment Page 2-15 5 Enter measuring programs Entered using the wizard Entered using the menu tree 6 Editing Operation screen User’s Manual (Introduction and Hardware) Chapter 7: Setting Examples Using the Set Wizard Chapter 8: Setting Examples Using the Menu Tree 6-4 Operation chart User’s Manual (Introduction and Hardware) 6-7 Editing operation screen 7 Other settings Initialization Self Diagnosis User’s Manual (Introduction and Hardware) 6-8 Option 8 Operation 9 Test/inspection Chapter 19: Troubleshooting 0 Maintenance Chapter 19: Troubleshooting 1-1 1 Setting and Operating Outline 1 1-2 Method for selecting the menu configuration (1) Set wizard The IV-S30J has a "Set Wizard" function to assist beginners in setting the measurement conditions. Select "SET WIZARD" from the "MAIN MENU" and the wizard will show the items needed for each step. You only need to make selections according the instructions on the screen. Using the wizard, you can establish the minimum required settings for making measurements. STEP1 SELECT THE MEASUREMENT START INPUT I/F 1PARALLEL+SERIAL 2TRIG CCD START IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION STEP9 1PARTIAL-IMG 2ALL IMAGE 3NO CAPTURED 1NO 2YES NEXT DETAIL ENTER A SHUTTER SPEED (1/30 1/10000) 1SHUTTER SPEED 1/00060 The steps that the set wizard takes you through are displayed as lists on the "operation chart." At any point you can return to the previous step to make a change if you want to. TYPE00 Start STEP1:PARALLEL+SERIAL STEP2:CAPTURE IMG/PARTIAL-IMG STEP3:MEAS1/CAM1 STEP4:MEAS1/BIN-AREA STEP5:MEAS1/WINDOW/MASK,1 STEP6:MEAS1/MEAS CND STEP7:MEAS1/EVALUATION STEP8:MEAS1/CALC STEP9:MEAS1/OUT STEP10:FINAL NUMERIC CALC STEP11:FINAL OUTPUT COND STEP12:SERIAL OUTPUT/ANY STEP13:OPS MENU COND STEP14:CALIBRATION/YES STEP15:MOVE ALL WINDOW/YES STEP16:TITLE/YES End Wizard The "Wizard" is a program that helps users make settings for measurement operations easily and without making mistakes. The controller asks you a series of questions at each step and you simply answer these to complete the settings. The wizard is convenient for making settings when beginners and inexperienced operators are operating the machine. However, operators who are familiar with the operation may save a lot of time by using other setting methods. 1-2 Setting and Operating Outline (2) Menu tree The IV-S30J has a menu tree which is shown the hierarchy of choices on each screen. To return to the previous screen or go to next screen, select the corresponding item on the menu tree. OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 (POSI-DEVIATION) POSI-CORRECT MEAS01(MEAS-BIN-AREA) MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) How to enter the menu tree On the "MAIN MENU" select "OBJECT TYPE COND" to enter the menu tree. and mean that a sub men is available inside the menu. Select and press the SET key or the right arrow key, the next level of menu will be opened. When is shown, it means that the lower menu level is already open. Sub menu is displayed Have sub menus not yet displayed OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 (POSI-DEVIATION) POSI-CORRECT MEAS01(MEAS-BN-AREA) MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) 1-3 IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION 1 Setting and Operating Outline [1] Menu configuration SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION I/O CONDITIONS COMM.SET COMPUTER LINK GAIN OFFSET TYPE00 (Max. 16 object types) 1 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. (*1) MEAS0 (POSI-DEVIATION) POSI-CORRECT MEAS01 MEAS02 MEAS03 *2 MEAS04 IMG PRE-PROC MEAS CND EVALUATION COND DISTANCE & ANGLE COND REG-COND (S) REG-COND (E) NUM-CALC OUT-COND NUM-CALC OUT-COND TYPE15 1CHG-TYPE 2STANDARD WIZARD 3OPERATION CHART MAIN OPS MENU 1INITIALIZATION 2SELF DIAGNOSIS *1: MEAS0 is only for making for "positional deviation measurements." *2: MEAS01 to 04 can be set to make any type of measurement from "positional deviation measurements" to "multiple degree of match inspections." 1-4 Setting and Operating Outline [2] Configuration of the setting conditions 1 - I/O conditions (16-1) Measurement start input I/F, parallel input X5, parallel input X6, strobe output - Object type manual change (2-14) - Communication setting (17-1) Communication standard, communication speed, data length, parity, stop bit, station number - Computer link (18-1) Manufacturer, station number, top line of the written results - Gain/offset (2-15) System conditions The numbers in parentheses ( ) are page numbers for your reference. Output monitor (2-2), image capture (2-4), message display (2-5), pattern angle correction image display (2display (2-6), binary image display (2-7), 8), operation main display (2-9), evaluation change display (2-10), PC monitor screen (2-11), through display (2-11), extension functions (2-12). Operating conditions Object type 00 Camera 1 and 2 Measuring program Image preprocessing (3-20) Positional deviation - See Chapter 4 measurement Measurement 0, camera 1 Positional deviation measurement, degree of match inspection, lead inspection, area measurement by binary conversion, object See counting by binary conversion, object - Chapters identification by binary conversion, point 4 to 12. measurement, multiple positions measurement, multiple degree of match inspection. Measurement 0, camera 2 Measurement 1 Measurement 2 Measurement 3 CCD trigger (16-18), shutter speed (3-36), serial output (16-24, 26), calibration setting (16-28). Measurement 4 Measuring conditions Input and output for each object type Monitor light level (3-34), stop NG measurement (338), window group move (3-39) System for each object Camera 1 Same for Camera 1 and 2. However, "Measurement 0, Camera 2" is not available. Object type 01 Same for "Measurement 00." Object type 15 1-5 Setting and Operating Outline 1 [3] Configuration of Set Wizard The Set Wizard has the following screen configuration. F C1 BRT SET WIZARD SCREEN SAVE DEL [SAMPLE] 1CHG-TYPE 2STANDARD WIZARD 3OPERATION CHART TYPE00 Start End STEP1 SELECT THE MEASUREMENT START INPUT I/F 1PARALLEL+SERIAL+USB 2TRIG CCD START NEXT COMM.SET DETAIL When "DETAIL" is selected. STEP2 SELECT AN IMAGE CAPTURING METHOD DURING OPERATION 1PARTIAL-IMG 2ALL IMAGE 3NO CAPTURED SCREEN COND SAVE 1COMM.STANDARD 2BAUDRATE (kdps) 3NO.OF DATA BITS 4PARITY CHECK 5NO.O STOP BITS 6STATION NO. RS232C 115.2 7BIT EVEN 2BIT 00(0~7F) ENTER ASHUTTER SPEED (1/30~1/10000) 1SHUTTER SPEED 1/00060 RETURN NEXT STEP3 CORRECT POSITION? 1NO 2CAM1 3CAM2 RETURN NEXT STEP3 SELECT A CAMERA TO SPECIFY MEASUREMENT CONDITIONS 1NO REGISTRATION 2CAM1 3CAM2 RETURN NEXT When "2CAM1" or "3CAM2" is selected. STEP4 SELECT AN IMAGE PROCESSING METHOD When "1NO REGISTRATION" 1GRAY-SRC PROCESS is selected. 2BINARY PROCESS 1MEAS POSI-DEVIAT 2MEAS MULTI-POSI 3DETECT DEG-MAGCH LE 4MEAS MALTI-MATCHES 5INSPECT LEADS 6MEASURE POINT DENSI RETURN NEXT 1-6 Setting and Operating Outline 1 STEP4 SELECT TYPE OF CALCUATION BETWEEN IMAGES 1COMPARE IMGS NO SELECT WHETHER OR NOT TO CONVERT IMGE DENSITY 1CHNG GRAY LEVELNO SELECT FILTER TYPE FOR IMAGE DATA 1SPACE FILTER NO RETERN COMPARE IMGS NEXT DETAIL SCREEN 1CALC.TYPE 2CALC.AREA NO SET SAVE (232,216)-(279,263) 1Displayed when the "CAM1" or "CAM1&2" is selected in item "1COMPARE IMGS" STEP5 1REGISTER NO.(0~7) 0 SELECT AN IMAGE PROCESSING 1NO 2GRAY-SRC 3EDGE DTECT 4SCH-EDGE 1NUM.OF DTECT 1P ENTER A RANGE AND UNITS FOR ROTATION ANGLE DETECTION 1DTECT ANGL NO RETURN NEXT DETAIL REG COND STEP6 1REGISTER NO. 2MEAS SHAPE(MDL0) 3REFIMG AARE(MDL0) 4SEARCH ARE(MDL0) SCREEN COND SAVE DETAIL 0(0~7) RECTANGLE SET (224,208)~(287,271) SET (216,200)~(295,279) SELECT INSPECTION PRECISION 1STANDARD(PIXEL) 2HIGH(SUB-PIXAEL) RETURN NEXT STEP7 COMPARE EVALUATION CONDITIONS TO MEASUREMENT RESULTS (YES/NO) 1NO 2YES RETURN NEXT DETAIL 1-7 EVALUAT COND SCREEN COND SAVE EDIT SEL F C1 BRT 1REGISTER NO. 2CONDITION SET 3X COORD. (MDL0) 4Y COORD. (MDL0) 5x DEVIATE (MDL0) 6y DEVIATE (MDL0) 7MATCH LVL(MDL0) 0(0~7) AUTO(–10%) 000.0~511.0 000.0~479.0 -511.0~+511.0 -479.0~+479.0 -10000~+10000 [TEST RESULT] [OUTPUT] X0= Y0= x0= y0= M0= NO NO NO NO NO 8TEST EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) Setting and Operating Outline 1 STEP8 USE SETTING DISTANCE ANGLE CONDITIONS (YES/NO) 1NO 2YES RETURN NEXT DETAIL DEST&AGL COND SCREEN COND SAVE Displayed when "2YES" is selected 1OBJ 2DISTANCE 3DISTANCE F C1 BRT DST 00(0~15) NO [OUTPUT] [TEST RESULT] STEP8 COMPARE MEASUREMENT SETTINGS TO MEASUREMENT RESULTS (YES/NO) 1NO 2YES(MEAS) DETAIL 3YES(DST&AGL) REGISTER NO. DISTANCE DETAIL RETURN NEXT Displayed when "2YES" or "3YES" is selected STEP8 LADDER CIRCUIT AND RESULT OUTPUT BASED ON MESUREMENT AND CALCULATION RESULTS( YES/NO) 1NO 2YES(MEAS) DETAIL NO2 NO3 NEXT Displayed when "2YES" or "3YES" is selected STEP8 ADD MEASUREMENT CONDITIONS? 1NO 2YES NEXT STEP8 CALCULATE SETTINGS FOR ALL MEASUREMENT RESULTS(YES/NO). 1NO 2YES RETURN F C1 BRT OUTPUT COND SCREEN COND SAVE INPUT00-07 CHANGE INPUT DETAIL RETURN F C1 BRT NUMERIC CALC SCREEN COND SAVE N00-N07 CHG-CALC (SET KEY) 1RUN A TEST OBJECFORMULA NO0 NO1 3YES(DST&AGL) RETURN 00 01 02 0304 05 06 07 0809 10 1112 13 1415 NEXT 1-8 0 INPUT00 LOGIC INPUT02 LOGIC INPUT03 1 2 3 4 5 6 7 OUT Setting and Operating Outline 1 STEP8 SET LADDER CIRCUIT RESULT OUTPUT BASED ON ALL MEASUREMENT AND CALCULATION RESULTS (YES/NO) 1NO 2YES RETURN NEXT DETAIL OUTPUT COND SCREEN COND SAVE INPUT00-07 CHANGE INPUT Displayed when "2YES" or "3YES" is selected. STEP8 SELECT AN INTERFACE FOR OUTPUTTING RESULTS WHEN THE INPUT IS THE PARALLEL I/F 1NO 2COMPUTER LINK 3SERIAL I/F 0 1 2 3 4 F C1 BRT 5 6 7 OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 Displayed when "2COMPUTER LINK" is selected RETURN NEXT DETAIL Displayed when "2COMPUTER LINK" or "3SERIAL I/F" is selected. COMPUTER LINK SCREEN COND SAVE 1PC MANUFACTURER SHARP(COMM PORT) 2STATION NO. 01 3WRITE TOP ADRS 09000 Displayed when "3SERIAL I/F" is selected COMM.SET STEP9 CHANGE DISPLY CONTENTS OF THE MAIN OPS MENU 1NO 2YES RETURN NEXT DETAIL Displayed when "2YES" is selected. STEP9 STORE A TITLE FOR THIS SETTING? 1NO 2YES RETURN NEXT DETAIL SCREEN COND SAVE 1COMM.STANDARD 2BAUDRATE(kdps) 3NO.OF DATA BITS 4PARITY CHECK 5NO.OF STOP BITS 6STATION NO. RS232C 115.2 7BIT EVEN 2BIT 00(0~7F) TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUCH DISPLAY qEXTENSION FUNC. CAM1 PARIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO STR OBJ TITLE SCREEN SAVE Displayed when "2YES" is selected. AREA STEP9 STORE THIS SETTING AS A SAMPLE IN THE WIZARD? 1NO 2YES RETURN A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0123456789 - - ( ) < > SP DEL END END 1-9 F C1 BRT Setting and Operating Outline 1 1-3 Description of the Operation screen When the IV-S30J is started, the operation screen shown below will appear. Each area of the operation screen is described below. 1 Object type number 2 Freeze/through screen 3 Camera currently selected F C1 BRT TYPE00 6 Measuring time 4 Image brightness: bright/dark V*.** MEAS 0000ms MEASURE 0 CAM1 NO 5 Software version 7 Measurement setting details 9 READY output 8 I/O relay 0 Menu display Y0~7 READY X0~6 MNU-CHG MAIN-COND CHG-MEA COND-CHG CHGN-REG SCREEN-CHG CHGTYPE Displays the number of the currently selected object. Select whether to display captured images on the screen as freeze images or through images. Display method Through image Freeze image Description - Displays the stream of images captured by the camera. - Used for adjusting the camera focus and image properties. - Displays the single image captured at the start of making measurements. - Used to set each of the measurement conditions and operating conditions. To switch the image between "Through" and "Freeze" modes, press the SEL key on the remote keypad, and then press the up and down arrow keys. Indicates which camera is currently selected C1: Camera 1 (the camera connected to the "CAMERA1" connector) C2: Camera 2 (the camera connected to the "CAMERA2" connector) The brightness of the captured image can be set to one of two levels. Screen display Description Bright Display the captured image without changing its brightness. Dark Display the captured image at 1/2 the actual brightness How to select the brightness level On any screen, except the operation screen, move the cursor to the "F" (freeze) or "T" (through) position on the upper part of the screen by pressing the SEL key. Then, press the left or right arrow key to move the cursor to the "BRT" (bright) or "DRK" (dark) indicator. Press the up or down arrow key to switch between bright and dark. 1-10 Setting and Operating Outline Displays the software version. 1 Displays the measurement time currently assigned. Actual measurement time (Only when changing the object type) Time to change object type CCD exposure time (Shutter operation time) CCD image capture time Image processing time Result output time - Serial communication time is not included. - Set the controller as follows to reduce the measurement time. 1. Increase the shutter speed. 2. Select the "partial" image capture feature for the CCD. 3. Select "NO" for the measurement results display (message display, pattern display, and binary image display). Display setting details of each measurement. MEASURE 0 CAM1 NO Measurement numbers from 0 to 4 Camera 1 or camera 2 Measurement program name Displays the status of input relays X0 to X6: OFF [ ], ON [ ]. Displays the status of output relays Y0 to Y7: OFF [ ], ON [ ]. Displays the status of the ready output: OFF [ ], ON [ ]. The menu bar at the bottom has two rows. When this menu is selected, the second row will appear. MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE MNU-CHG CHG-C1 CHG-C2 MANL-MEAS SHORTCUT The details of each item on this menu bar are shown on the next page. 1-11 Setting and Operating Outline 1 Details of each item on the menu bar Item on the menu bar Description Display detail on the screen IVS30J MAIN-COND (main conditions) SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION Displays the MAIN screen. Press the up and down arrow keys to change the display of the evaluation results for each measurement number. CHG-MEA (Measurement 0 camera 1 -> measurement 0 camera 2 -> (Change measurement) Measurement 1 -> Measurement 2 -> Measurement 3 -> Measurement 4) Displays the condition change selection list. Change the conditions that get displayed by pressing the up and down arrow keys. COND-CHG For details about the measurement conditions, see pages 8-3 (Change the and 8-8 in Introduction and Hardware and Chapter 3 in this measurement manual. conditions) For details about the distance and angle conditions, see page 14-2 in this manual. For details about the numeric value calculation conditions, see page 15-7 in this manual. CHNG-REG (change registration) Change the display of the set of stored details between [A00] - [A07] and [A08] - [A15] using the up and down arrow keys Displays the screen change selection list. Select a screen using the up and down arrow keys. SCREEN-CHG Note: The OPS-MAIN, JDG-COND-CHG,and PC-MNTR do (change screen) not appear on the popup menu unless "YES" is selected. for each corresponding item on "TYPE RUN COND" menu. Only the currently available screens are listed. Displays the object type selection list. CHG-TYPE Select an object type by pressing the up and down keys. (change the object This is enabled when Manual Object Type Change is set to type) "YES." Moves the image from Camera 1 up and down the screen CHG-C1 using the up and down arrow keys. (change the Camera 1 Note: This is enabled when "CAM1&2" is selected in image position) 1MONITOR OUTPUT on the TYPE RUN COND menu (operating conditions). Moves the image from Camera 2 up and down the screen CHG-C2 using the up and down arrow keys. (change the Camera 2 Note: This is enabled when "CAM1&2" is selected in image position) 1MONITOR OUTPUT on the TYPE RUN COND menu (operation conditions). Manually move the two crosshair cursors, and measure distance between these two points, as well as coordinate MANL-MEAS distance on X and Y axes. (Manual measurement) Note: Unless "MANL-MEAS" is selected on the "qEXTENSION FUNC" line in the TYPE RUN COND (operation conditions), this screen cannot be displayed. MEASURE0 CAM1 NO This part changes. MEA-CND DST&ANG COND... NUMERIC CALC COND-CHG CHNG-REG A08= to A072 A0= to A072 OPS-MAIN PC-MNTR SCREEN-CHG CHG-TYPE (TYPE00) This part changes. MANL-MEAS 1CURSOR1-COORD MOVE(224.208) 2CURSOR2-COORD MOVE(287.271) DIST-BETW-2PT 089.0 DIST-BETW-X 063.0 DIST-BETW-Y 063.0 PLACE SHORTCUT 1SHORTCUT1 2SHORTCUT2 3SHORTCUT3 Displays a short cut screen. 1-12 NO NO NO Setting and Operating Outline 1-4 Setting the measurement programs To execute a specific measurement program (positional deviation measurement, degree of match inspection, etc.), select MEASUREMENT 0 to 4 on the "MEA-CND" line. - MEASUREMENT 0 only allows you to measure positional deviation. - For details about the settings for each measurement program, see Chapters 4 to 13. - Specify the conditions for distance and angle measurement in the positional deviation measurement, the degree of match inspection, object identification by binary conversion (MEAS GRAV CENTR: YES), multiple position measurement, and for multiple degree of match inspection. (1) Operation main screen (see page 1-10). F TYPE00 C1 BRT V*.** MEAS 0000ms MEASURE 0 CAM1 NO Y0~7 READY X0~6 MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHGTYPE Move the cursor to the "MAIN COND" item using the left and right arrow keys and press the SET key. (2) Select the "OBJECT TYPE COND" using the up and down arrow keys and press the SET key. MAIN MENU F C1 BRT IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION (3) Move the cursor to the "TYPE(NEW)" item on the "OBJECT TYPE COND" line and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE(NEW) (4) Move the cursor to "TYPE00" on the "SELECT OBJECT TYPE COND" line and press the SET key. To select "TYPE01" and others, move the cursor to "TYPE(NEW)" and press the SET key. (5) Select "MEAS0 to 4" (MEAS0 is only used for positional deviation measurements) on the "MEAS COND (CAM1)" line and a popup menu will appear. Select any desired measurement program from this popup menu and then press the SET key. 1-13 1 Setting and Operating Outline 1 1-5 Common operations for each menu [1] Operations to return to the operation screen You can return to the operation screen, MAIN MENU, or setting screen from any menu by a single operation. Menu display [TYPE RUN COND] menu F C1 BRT SCREEN SAVE OPS-MENU MAIN SELECT RETURN Return to the operation screen Return to the MAIN screen. Return to the currently selected setting screen. Return to the previously selected screen. [2] Saving data All of the data such as measurement and evaluation conditions entered on the "TYPE RUN COND," "MEA-CND," and "SYSTEM COND" menus, can be saved into the IV-S30J flash memory. Operation procedure [SYS-CND] menu SCREEN SAVE F C1 BRT DATA SAVE?(YES=[SET],NO=[ESC]) 1. On each menu screen, move the cursor to "SAVE" using the up/down and left/right keys, and press the SET key. - The following message will be displayed on the lower part of the screen. DATA SAVE? (Do you want to save the data?) (YES=[SET]/NO=[ESC]) 2. Press the SET key. - The IV-S30J will start saving the data and the progress will be displayed on the bottom of the screen. REFERENCE IMG SYSTEM I/O OBJECT TYPE COND When the data has been saved in the IV-S30J flash memory, the display will change from "SAVING" to "COMPLETE SAVE." 1-14 Setting and Operating Outline 1-6 Power ON setting menu 1 [1] Operations menu lock To prevent accidental changes to conditions you have set, the operation screen can be locked so that the screen cannot be changed to setting screen. The operation can only be carried out on the [POWER ON SETTING] menu. Display procedure Follow the procedure described below when turning ON the power to the controller (IV-S30J), and the [POWER ON SETTING] menu will be displayed on the monitor. 1. Turn ON the power to the IV-S30J controller, while holding down the ESC key. 2. Keep pressing the ESC key down for approx. 9 sec., after turning ON the power and the menu will be displayed. SEL TRG/BRT POWER ON SETTING 1 MAIN OPS MENU UNLOCK LOCK 2 DISPLAY MODE JAPANESE ENGLISH 3 OPERATION 1 MAIN OPS MENU UNLOCK LOCK ESC SET Description All of the operating conditions for the IV-S30J can be changed. The MAIN OPS MENU is locked and no change can be made. Operation procedure 1. On the [POWER ON SETTING] menu, move the cursor to item " MAIN OPS MENU" with the up and down keys, and press the SET key. 2. Move the cursor to "UNLOCK" or "LOCK" with the left and right keys, and press the SET key. 3. Move the cursor to item " OPERATION" with the up and down keys, and press the SET key. Press the SET key once more. The IV-S30J saves the settings in the flash memory and the screen will return to the operation screen. Display when the operation screen is locked (TYPE00)AREA1 T.IMG C1 L LOCK FULL VX.X OK MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION "LOCK" will be displayed on the MAIN OPS MENU [2] Change the Japanese or English display mode Change display between Japanese and English. Use the [POWER ON SETTING] menu for the selection. Display procedure Follow the procedure described below when turning ON the power to the controller (IV-S30J), and the [POWER ON SETTING] menu will be displayed on the monitor. 1. Turn ON the power to the controller, while holding down the ESC key. 2. Keep pressing the ESC key down for approx. 9 sec., and the following menu will be displayed. [POWER ON SETTING] 1MAIN OPS MENU 2DISPLAY MODE 3 3OPERATION 5 SEL TRG/BRT UNLOCK LOCK JAPANESE ENGLISH 4 ESC SET Operating procedure 3. Move the cursor to item " DISPLAY MODE" (display mode) with the up and down keys, and press the SET key. 4. Move the cursor to "JAPANESE" or "ENGLISH" with the left and right keys. 5. Move the cursor to " OPERATION" using up and down keys and press the SET key. Then, again press the SET key. The screen will change to operation screen. 1-15 Setting and Operating Outline 1 1-7 Remote keypad (IV-S30RK1) 4 SEL key 1 Direction keys (up, down, left and right) 5 TRG/BRT key 2 SET key 3 ESC key Key name Direction keys* 1 (up, down, left and right) Function Description Selecting an item on a menu screen Select an item with the up, down, left and right keys. Setting a window Set each coordinate. Setting a value - Select a digit or an item with the left and right keys, and then specify a value with the up and down keys. - Specify a value with the up, down, right and left keys. To enter nested menus 2 SET key 3 ESC key 4 SEL key Determine a highlighted item Determine the setting value Returning a setting to its On the REG-COND screen, original state before be- - Press the left arrow key + ESC key to change ing changed between a display of all items and just one Returning to the previous item at a time. menu - When the screen is changed from "Through" to "Freeze," the IV-S30 will capture an image. Use to select the display - Change the brightness of the image displayed of object images: on the screen. choose between "F" On the setting screen, (Freeze) and "T" (Through) and between - Press the left arrow key and the SEL key to change between Through and Freeze. "BRT" (bright) and - Press the right arrow key and the SEL key to "DRK" (dark). change between Bright and Dark. Start measurement input 5 TRG/BRT key Press this key on the run screen, and a new measurement is triggered. Move the cursor to the function menu at the upper area. Displays popup menu. The direction keys have an auto-repeat function. 1-16 Setting and Operating Outline 1-8 Operation flow 1 [1] Power ON and main loop processing (Power ON) Wait to complete the power ON process Initializing (CPU, gate array) Memory check - System program - Conditions other than the conditions specified for each object type Transmitting from flash memory to RAM Data setting - CPU, variables - Gate array Checksum checking NG Processing after the power is turned ON OK Display check sum results No Settings for all types completed Yes Transmitting from flash memory to RAM Measurement conditions for each object type Obtaining images, capturing specific lines of an image ESC key OFF ON Place the operation screen in the locked state To the next page 1-17 Setting and Operating Outline 1 From the preceding page Display results. When the option has been set to "YES" Message display Pattern display Crosshair cursor display (Communication processing) Data received (System) Display "YES" No Yes Communication processing Receive a measurement start input signal Measurement start Parallel/general-purpose serial/CCD trigger OFF Main loop processing ON PC calculation PC calculation Executing measurements Measurement result output processing Key input Parallel/general-purpose serial No Yes Process key strokes Processing on sub-menu (Menu configuration See page 1-4.) 1-18 Setting and Operating Outline [2] Operation flow after the measurement start input is turned ON. Start (measurement start input ON) PC calculation Parallel output (Y0 to Y15), "READY" OFF External interface inhibit (keys, communications, parallel) Measurement timer start Reading the object type No. Image capturing (camera 1/2) No Capture the scan line range that was specified when setting the measurement conditions. *1 The measurement start input is set to "PARALLEL" and the ’READY’ ON signal to "end of image capture." *1 Yes READY ON No Is the light level monitor selected? Yes Execute the light level monitor function Executing measurement 0 using camera 1 Yes [Measurement program that is selected] - Positional deviation measurement Was an error detected? No Executing measurement 0 using camera 2 Yes Was an error detected? No 2 (To the next page) 1 (To the next page) 1-19 1 Setting and Operating Outline 1 2 (From the preceding page) 1 (From the preceding page) No Positional correction Yes Setting the coordinate correction values (X, Y, ) (*2) Executing measurement 1 Yes Was an error detected? No Executing measurement 2 Yes Was an error detected? The window coordinates are corrected within the range set for each type of measurement, based on the correction value determined in the steps marked with *2. No Executing measurement 3 Yes [Measurement programs that can be selected] - Positional deviation measurement - Degree of match inspection - Lead inspection - Area measurement by binary conversion - Counting by binary conversion - Object identification by binary conversion - Point measurement - Multiple position measurement - Multiple degree of match inspection Was an error detected? No Executing measurement 4 Yes Was an error detected? No No PC calculation Message display Yes No Error display Message display Yes Displaying the measurement results (values, decisions etc.) No Pattern display Yes Positional correction yes No Yes Display pattern after correction Display pattern when setting To the next page 1-20 Setting and Operating Outline From the previous page 1 Determining the measuring time (timer stop) Parallel output (Y0 to Y15) OFF External interface enabled (communications) No Computer link Serial output General purpose General purpose serial output Computer link output External interface enabled (key, parallel) *3 Set the measurement start input to any choiceNo other than "parallel" or set the ’READY’ ON signal to "end measurement." *3 Yes READY ON Waiting for a measurement start input signal or a key input - When the halt NG measurement option is set to "YES" (page 3-38), the controller stops measuring when an error occurs. 1-21 Setting and Operating Outline 1-9 Table of controller functions Shown below are the functions for the controller (IV-S30J). - For details about the controller hardware (cameras, peripheral devices), see the "IV-S30J User's Manual, Instruction and Hardware." Specifications IV-S30J Image sampling system 256 level gray scale, binary conversion, edge detection One screen for displaying captured images. One monochrome screen for Image memory displaying camera information and messages No. of assignable object type 16 object types Maximum number of reference images stored / number of 200 / 2 screens whole screens stored Image scan time 33.3 ms Gray search time * 15 ms Gray search, edge detection Pixel, sub-pixel precision Shading correction Dividing, subtracting, and filtering Subtracting, absolute value of difference (between camera 1 and reference Comparative calculation image, between camera 2 and reference image, between camera 1 and between images camera 2) Magnification by "n" processing, (+/-) correction, histogram widening, Gray level changes mid-range emphasis Smoothing (center/average), edge emphasis, edge extraction, horizontal Space filter edge, vertical edge Fixed and threshold value corrections (variation difference/variation rate) Binary threshold value Expansion - contraction, contraction - expansion, area filter Binary noise elimination Specified window( rectangle, circle, oval), any binary image mask Binary image mask Positional correction method X/Y correction, rotation correction XY coordinate, deviation amount in X and Y axes, degree of match (1-point search, 2-point search, 1-point edge, 2-point edge, 1-point search and 1Positional deviation point edge) measurement Angle: ±15˚ ,±30˚ ,±45˚ , 360˚ (1-point search, 1-point search + 1-point edge) [Maximum 8 windows x 2 models] Degree of match Degree of match, XY coordinate, density (1-point search, 2-point search) inspection [Maximum 16 windows x 2 models] Area measurement by Area [Maximum 16 windows] binary conversion Object counting by Quantity (maximum 3,000 items per window), total area binary conversion [Maximum 4 windows] Quantity (maximum 128 per window), total area, area of each object Object identification by identified, gravity center, main axis angle, fillet diameter, peripheral length, binary conversion center point [Maximum 4 windows] Number in binary image (maximum 256 points), average density (maximum Point measurement 128 points) Number of leads, distance between leads (max., min.), lead width (max., Lead inspection min.), lead length (max., min.) [Maximum 16 windows] Multiple position Number of objects (max. 128), degree of match, XY coordinate (1-point inspection search, 1-point edge) [Maximum 4 windows] Multiple degree of match Number of objects (max. 128), degree of match, XY coordinate, density (1inspection point search) [Maximum 4 windows] Image pre-processing Item Measurement program 1 * The gray search time is true when the search area is 256 x 256 pixels, the model size is 64 x 64 pixels, and the contraction function is set to 3. 1-22 Setting and Operating Outline Item Number of measurement programs Window shape Distance and angle measurement Arithmetic operation Other functions Micro PC section Input relays Output relays Auxiliary relays Timers External interface Counters Parallel interface General-purpose serial interface Computer link Image output Number of cameras Make settings Measurement start input Specifications IV-S30J Maximum 6 per object type (measurement 0 - camera 1, measurement 0 camera 2, measurements 1 to 4) Note: Measurement 0 is only used for positional deviation measurement. Rectangle, circle, oval (when using area measurement by binary conversion, object counting by binary conversion, object identification by binary measurement), polygon window (maximum 32 sided polygons: When binary area measurement, counting after binary conversion, or object identification (labeling) after binary conversion is selected.) Measure distance (between two points, X coordinate, Y coordinate), measure angle (3 points, 2 points against horizontal line, 2 points against vertical line), auxiliary point (center, circle center, gravity center, line over 2 points, crossing point of two straight lines) Four basic operations (+, -, X, /), root, absolute value, TAN, ATAN, maximum, minimum, average , total. Display measuring time, light level monitor function, crosshair cursor display, change display language between Japanese and English, Run screen lock function, setting menu display "yes/no", change image display (through/freeze), change image brightness (bright/dark) Parallel input: 7 points (X0 to X6) Parallel output: 8 points (Y0 to Y7) General-purpose serial interface, computer link: 16 points (Y0 to Y15) 128 points (C0 to C127), special area 18 points (C110 to C127) 8 points (TM0 to TM7), timer setting range: 0.01 to 9.99 seconds (countdown timer) 8 points (CN0 to CN7), counter setting range: 001 to 999 (counts down) Input: 7 points, 12/24 VDC Output: 9 points, 12/24 VDC RS232C/RS422 (2.4 to 115.2 kbps) Built-in compatibility with certain SHARP, OMRON, and Mitsubishi models 1 channel, EIA 525 lines, 2:1 interlace Maximum of 2 Using the IV-S30RK1 remote keypad and/or the IV-S30SP parameter setting support software Internal trigger CCD trigger (using the CCD camera) External trigger Trigger input (parallel I/F), general-purpose serial I/F, keypad trigger (for manual measuring) Terminal block Interrupt processing 1 point: External trigger (X0) input 4 points: Object type change (X1 to X4) Inputs 2 points: External input (X5, X6) Common for input 1 point: + common Output 9 points: 1 READY , 8 user settable logical outputs (Y0 to Y7) Common for output 1 point: + common Power supply 2 points: +24 VDC, 0 V Power voltage/consumption 24 VDC (±10 %) 7 W 1-23 1 Setting the Operating and System Conditions Chapter 2: Setting the Operating and System Conditions 2-1 Setting the operating conditions Set the following operating condition items on the [TYPE RUN COND] menu for each object type. Item to set Reference page Monitor output 2-2 Image capture 2-4 Message display 2-5 Pattern display 2-6 Binary image display 2-7 2-8 angle correction image display Operation main display 2-9 Evaluation change display 2-10 PC monitor screen 2-11 Through display 2-11 Extension function 2-12 How to display the TYPE RUN COND screen On the "MAIN MENU," select "OBJECT TYPE COND", "TYPE 00", and "TYPE RUN COND" in this order. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DESP 8DESP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. wDISPLAY+CURSOR 1 eCLOSS CURSOR COORD rDISPLAY+CURSOR 2 tCLOSS CURSOR COORD SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "TYPE RUN COND" screen will appear. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2-1 F C1 BRT 2 Setting the Operating and System Conditions [1] Monitor output 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT CAM1 CAM2 CAM1&2 - Output monitor switching There are two methods for changing the monitor output: change the TYPE RUN COND settings, use external input signals through the parallel port to make changes from outside. SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC (1) Change the monitor output by changing the TYPE RUN COND settings Select the " MONITOR OUTPUT" item on the "TYPE RUN COND" screen and then select an item from the popup menu. 1MONITOR OUTPUT Description CAM1 CAM2 Display the camera 1 image on the whole screen. CAM1&2 Display the camera 1 image on upper half, and the camera 2 image on lower half. Display the camera 2 image on the whole screen. Display examples on the operation screen - Camera 1 on the whole screen (When "CAM1" has been specified in item 1MONITOR OUTPUT.) - Camera 2 on the whole screen. (When "CAM2" has been specified in item 1MONITOR OUTPUT.) F C2 H F C1 H SERIAL NO. 8F053G26 MODEL IV-S33MX F C1/C2 H SERIAL NO. 8F053G26 MODEL IV-S30J Camera 2 image - Simultaneous display on a divided screen (When "CAM1&2" has been specified in item "1MONITOR OUTPUT.") Camera 1 image 2 TYPE RUN COND SCREEN SAVE When two cameras have been connected to IV-S30J, you can switch back and forth between the image from the cameras on one monitor. Also, the monitor screen can be divided into two parts to display the two images simultaneously. - Purpose of the setting To set the conditions in which an image captured during measurement will be displayed on the operation screen. 2-2 Setting the Operating and System Conditions (2) Output monitor switching by parallel input On the operation screen, select "MAIN-COND" -> "SYS-CND" -> "I/O CONDITIONS" in that order. Move the cursor to the " PARALLEL INP X6" line using up/down arrow keys and press the SET key. Select "CHNG-IMG-OUT-CAM" on the popup menu that is displayed and then press the SET key. I/O CONDITION SCREEN COND SAVE 1MEAS INP I/F F C1 BRT PARALLEL+SERIAL 2OUT I/F(PARAL.) NO 3MANL TYPE CHNG NO 4PARALLEL INP X5 EXT-INP 5PARALLEL INP X6 CHNG-IMG-OUT-CAM 6STROBE OUT NO 7’READY’ON CAPTURE COMPLETE 2 EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS 2 IMAGES Every time the X6 signal is turned from OFF to ON, the selected camera display will be changed. CAM1 whole screen CAM2 whole screen CAM1&2(HORIZ) divided screen The display example of the operation screen is the same as in section (1). SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2-3 Setting the Operating and System Conditions [2] Image capture TYPE RUN COND SCREEN SAVE In item " CAPTURE IMG" on the "TYPE RUN COND" screen, specify the range which will be captured during operation. 2 CAPTURE IMG PARTIAL-IMG (partial image) 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT PARTIAL-IMG WHOLE-IMG NO Description - An image of the specified lines, required for inspection or measurement, will be captured. - The processing time is shorter than in the "WHOLE-IMG" mode. WHOLE-IMG (whole image) - A whole image will be captured, irrespective of the window settings for inspection or measurement. - This mode is used to monitor portions of an image outside the window set up for inspection or measurement NO (no image) - No image will be captured during operation. Measurements will be carried out with an image being displayed. - This mode only used to carry out measurements on an image transmitted from a personal computer to the IV-S30J. Example of a comparison of the capture times - When "WHOLE-IMG" is selected: 33.3 ms Capture whole image 480 lines - When the "PARTIAL-IMG" is selected (when there are 240 scan lines): 16.6 ms Capture partial image 240 lines 2-4 Setting the Operating and System Conditions [3] Message display Select "YES" or "NO" to display messages on the operation screen. MESSAGE DISPLAY YES (NUMERIC) Description All data will be displayed. YES (NO NUMERIC) Data other than the numerical result will not be displayed. No messages will be displayed. NO TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT YES(NUMERIC) YES(NO NUMERIC) NO Setting to "NO" reduces the processing time. Processing time: YES(NUMERIC) > YES(NO NUMERIC) > NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Display examples - When "YES(NUMERIC)" is selected - When "YES(NO NUMERIC)" is selected F C1 L V*.** (TYPE00)AREA1 OK MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION X0=176.0 Y0=322.0 x0=+000.0 y0=+000.0 M0=+10000 B0=+001.7 X1=534.0 Y1=480.0 x1=+001.0 y1=+001.0 M1=+09999 F C1 L V*.** (TYPE00)AREA1 OK MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION 0(0~7) OK OK OK OK OK OK OK OK OK OK OK X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Can be deleted by pressing the SET key. - When "NO" is selected Press the SET key Press the ESC key X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE The menu bar will disappear. The menu bar will be displayed. 2-5 2 Setting the Operating and System Conditions [4] Pattern display 2 TYPE RUN COND SCREEN SAVE Select "YES" or "NO" to determine whether to show the pattern display (solid lines and dashed lines of the rectangles in the window) over an image displayed on the operation screen. Note: When the "CAM1&2" is selected on the " MONITOR OUTPUT" (page 2-2), pattern display cannot be selected. PATTERN DISPLAY YES NO 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT YES NO Description Displays patterns in the window, such as the rectangles defined for the inspection area and the search area. Patterns will not be displayed on the operation screen. SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Display examples - When "NO" is selected for PATTERN DISPLAY - When "YES" is selected for PATTERN DISPLAY. (TYPE00) OK F C1 L VX.X MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION (TYPE00) OK F C1 L VX.X MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION REGST. NO. 0(0~7) X0=176.0 OK Y0=322.0 OK x0=+000.0 OK y0=+000.0 OK M0=+10000 OK B0=+001.7 OK X1=534.0 OK Y1=480.0 OK x1=+001.0 OK y1=+001.0 OK M1=+09999 OK REGST. NO. 0(0~7) X0=176.0 OK Y0=322.0 OK x0=+000.0 OK y0=+000.0 OK M0=+10000 OK B0=+001.7 OK X1=534.0 OK Y1=480.0 OK x1=+001.0 OK y1=+001.0 OK M1=+09999 OK X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 2-6 X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Setting the Operating and System Conditions [5] Binary image display TYPE RUN COND SCREEN SAVE Select "YES" or "NO" to display a binary image on the operation screen. Note: When "CAM1&2" is selected on the "MONITOR OUTPUT" (page 2-2), the binary image display cannot be selected. - When "NO" is selected on the " PATTERN DISPLAY," the " SHOW BINARY IMG" item will not appear. SHOW BINARY IMG 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT 2 YES NO Description YES A binary image will be displayed on the operation screen. NO A binary image will not be displayed on the operation screen. SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Display examples - When "YES" is selected for the "5SHOW BINARY IMG" (TYPE00) - When "NO" is selected for the "5SHOW BINARY IMG" F C1 L VX.X F C1 L VX.X MEAS XXXXms MEASUREMENT1 CNT-BIN-OBJ MEAS XXXXms MEASUREMENT1 CNT-BIN-OBJ MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 2-7 Setting the Operating and System Conditions [6] angle correction image display TYPE RUN COND SCREEN SAVE Select "YES" or "NO" to display a θ angle corrected image on the operation screen. 2 SHOW FIX IMG YES NO Description A angle corrected image will be displayed on the operation screen. A angle corrected image will not be displayed on the operation screen. 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO YES NO NO NO NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Display examples (Reference image) (Measured image) Position of reference image - When the angle correction image display mode has been set to YES. - When the angle correction image display mode has been set to NO. 2-8 F C1 BRT Setting the Operating and System Conditions [7] Operation main display When the operation screen was set to display other screens (such as the "DISP CHG-EVAL" and "PCMNTR" screens), this item should be selected to return to the main display from other screens. On the "TYPE RUN COND" screen, select " OPS MAIN DISP" and then "YES" on the popup menu. That will return you to the main operation screen. Note: When other screens are set to "YES" (such as the " DISP CHG-EVAL" and " PC-MNTR" screens), make sure to select "YES" from the OPS MAIN DISP. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. F C1 BRT CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES YES NO NO NO NO NO 2 SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the TRG/BRT key to move the cursor to the upper function menu. Select "SCREEN" and press the SET key. Then select "OPS-MENU." Select "SCREEN-CHG" on the lower menu on the operation screen and press the SET key. "OPS-MAIN" will be displayed in the lower right corner of the screen. While the "OPS-MAIN" line is highlighted, press the SET key. The main display will then change back to the operation screen from the other screens (e.g. the JDGCOND-CHG and PC-MNTR screens). TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO (TYPE00) AREA1 F C1 BRT OPS-MENU MAIN SELECT RETURN F C1 DRK V*.** C1=002.2 OK C2=100.0 OK MEAS ms MEASURE 0 CAM1 POSI-DEVIATION OPS-MAIN PC-MNTR MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 2-9 Setting the Operating and System Conditions [8] Evaluation change display 2 Specify whether the evaluation condition change menu can be displayed on the operation screen or not. Select the " DISP CHG-EVAL" line on the "TYPE RUN COND" screen and select "YES" on the popup menu. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. F C1 BRT CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES YES YES NO NO NO NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the TRG/BRT key to move the cursor to the upper function menu. Select "SCREEN" and press the SET key. Then select "OPS-MENU." Select "SCREEN-CHG" on the lower menu on the operation screen, and press the SET key. "JDGCOND CHG" will be displayed in the lower right corner of the screen. You can display the evaluation condition change menu by pressing the up and down keys. - Press the SET key. The cursor will move to the area containing the phrase "evaluation condition change menu during operation." You can change the settings for the evaluation conditions. - At this time, the screen display will look the same as the normal operation main screen, except for the area marked "evaluation condition change menu shown during operation." TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO (TYPE00) F C1 BRT OPS-MENU MAIN SELECT RETURN F C1 BRT MEAS 0000ms MEASURE 0 CAM1 NO Display evaluation condition change menu while in operation JDG-COND-CHG PC-MNTR MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 2-10 Setting the Operating and System Conditions [9] PC monitor screen T C1 DRK *.** (TYPE00)AREA1 Specify whether to display the PC monitor on the operation screen. Select the " PC-MNTR" line on the "TYPE RUN COND" screen and select "YES" on the popup menu. Now the PC monitor screen can be displayed. Select "SCREEN-CHG" on the lower menu bar of the operation screen and then select "PC-MNTR" on the popup menu. The PC monitor will be displayed. MEAS ms 2 1 2 3 4 [NUMERIC CALC] AN00= +00000250.0 OK AN01= -00000300.0 OK AN02=NOT SET AN03=NOT SET AN04=NOT SET AN05=NOT SET AN06=NOT SET AN07=NOT SET 5 6 7 [TMR] TM0:200 TM1:300 TM2:NOT SET TM3:NOT SET TM4:NOT SET TM5:NOT SET TM6:NOTSET TM7:NOT SET [CNTR] CN0:100 CN1:150 CN2:NOT SET CN3:NOT SET CN4:NOT SET CN5:NOT SET CN6:NOT SET CN7:NOT SET MMU-CHG MAIN-COND SEL-OUT SEL-AUX SEL-NUM SCREEN-CHG CHG-TYPE 1 The ON ( ) or OFF ( ) status of the input relays (X00 to X07) is displayed. 2 The ON ( ) or OFF ( ) status of the output relays (Y00 to Y15) is displayed. 3 The ON ( ) or OFF ( ) status of the auxiliary relays (C000 to C127) is displayed. 4 The results (AN00 to AN15) of the final numerical calculations are displayed. 5 The current timer value is displayed. 6The current counter value is displayed. 7 Menu bar Menu bar Description SEL-OUT Change the output relay address (Y00 to Y15) using the up and down keys (in units of 8 points). SEL-AUX Change the auxiliary relay address (C000 to C127) using the up and down keys (in units of 8 points). Change the final numerical calculation address (AN00 to AN15) using the SEL-NUM up and down keys (in units of 8 points). The other data displayed is the same as on the operation screen. -See page 1-10. [10] Through display Select the desired measurement image status (FREEZE or THROUGH) by choosing either "YES" or "NO" on the operation screen. THROUGH DISPLAY Description NO Measurements can be made on a frozen image. YES Measurements can be made on a through image. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO YES NO NO NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2-11 F C1 BRT Setting the Operating and System Conditions [11] Extension functions The extension function has crosshair cursor display and manual display functions. [Display example] (TYPE00)AREA1 Measurement image of camera 1. Operation procedure 1. On the "TYPE RUN COND" screen, move the cursor to item " EXTENSION FUNC." using the up and down keys, and press the SET key. 2. Select "DISPLAY+CURSOR" on the popup menu and press the SET key. 3. Press the SET key on the " DISPLAY+CURSOR 1" line and select "1" or "2" on the popup menu. Then press the SET key. 4. Select " CROSS CURSOR COORD" and press the SET key. Now, the crosshair appear on the screen. Move the crosshair cursor using the up/down/left/right arrow keys. (It moves one pixel at a time) 5. When the cursor is positioned where you want it, press the SET key to confirm the position. MEAS ms MEASURE 0 CAM1 POSI DEVIATION Measurement image of camera 2. 2 (1) Crosshair cursor display The crosshair cursor can be displayed on any position. - "1" equals a 16-pixel line. "2" equals a full line. - The initial coordinates of the crosshair cursor center are (256,240) MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Displays two crosshair cursors. If you select " DISPLAY+CURSOR 2," you can display two cursors when you output monitor images from Cameras 1 and 2. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. wDISPLAY+CURSOR 1 eCLOSS CURSOR COORD rDISPLAY+CURSOR 2 CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO DISPLAY+CURSOR SET NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2-12 F C1 BRT Setting the Operating and System Conditions (2) Manual measurement With this function, you can measure distance between two points, the distance between X coordinates, or the distance between Y coordinates that were selected manually on the operation main screen. Operation procedure 1. Select " EXTENSION FUNC." on the "TYPE RUN COND" menu using the up and down arrow keys. Then press the SET key. 2. Select "MANL-MEAS" on the popup menu and press the SET key. 3. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "SCREEN." Then press the SET key. Select "OPS-MENU" on the popup menu and return to the operation screen. TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. F C1 BRT CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO MANL-MEAS TYPE RUN COND SCREEN SAVE 1MONITOR OUTPUT 2CAPTURE IMG 3MESSAGE DISPLAY 4PATTERN DISPLAY 5SHOW BINARY IMG 6SHOW FIX IMG 7OPS MAIN DISP 8DISP CHG-EVAL 9PC-MNTR 0THROUGH DISPLAY qEXTENSION FUNC. CAM1 PARTIAL-IMG YES(NUMERIC) YES YES YES YES NO NO NO NO F C1 BRT OPS-MENU MAIN SELECT RETURN Manual measurement menu 4. Move the cursor to the "MNU-CHG" (TYPE00)AREA1 (menu change) item on the bottom of the operation screen and press the SET key to change the bottom MEAS ms MEASURE 0 CAM1 POSI DEVIATION menu display. Move the cursor to "MANL-MEAS" (manual measurement) and press the SET 1 2 key. 5. The menu items for manual measurements will appear on the screen. 6. Select " CURSOR1-COORD" or " CURSOR2-COORD" and press the SET key. 7. Move cursor 1 or cursor 2 using the up/down/left/right keys. (They move one pixel at a time.) The distance between the two MNU-CHG NEXT-NG CHG-C1 CHG-C2 MANL-MEAS SHORTCUT points, and between the X coordinates and Y coordinates for Cross hair cursor 1 Cross hair cursor 2 the two points, will change on real time basis. 8. After the positions of the points are determined, press the SET key. 9. When the operation is complete, press the ESC key. The manual measurement menu items will disappear. 2-13 2 Setting the Operating and System Conditions 2-2 Setting the system conditions 2 Set the following items on the "SYS-CND" menu to set the system conditions for the controller. Setting item - Input/output conditions - Communication setting - Computer link - Gain/offset MAIN MENU F C1 BRT IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION For the following items, see the pages listed below. - Input/output conditions Chapter 16 - Communication setting Chapter 17 - Computer link Chapter 18 SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP [1] Manually setting the object type On the operation screen, the object type (00 to 15) can be changed manually (using the remote keypad). SYSTEM COND SET F C1 BRT SYS-COND I/O CONDITIONS COMM-SET COMPUTER LINK GAIN-OFFSET 1MEAS INP I/F 2OUT I/F(PARAL.) 3MANL TYPE CHNG 4PARALLEL INP X5 5PARALLEL INP X6 6STROBE OUT 7’READY’ON SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=POPUP On the MAIN MENU, select "SYS-CND" -> "I/O CONDITIONS" -> " MANL TYPE CHNG" in that order and then select "YES" or "NO" on the popup menu. MANL TYPE CHNG Description YES The type can be manually changed on the operation screen. Note: If the "3MANL TYPE CHNG" is set to "YES," the type cannot be changed with an external interface (parallel I/O or general purpose serial interface). NO The type cannot be manually changed on the operation screen. I/O CONDITION SCREEN COND SAVE 1MEAS INP I/F PARALLEL+SERIAL 2OUT I/F(PARAL.) NO 3MANL TYPE CHNG NO 4PARALLEL INP X5 EXT-INP NO YES 5PARALLEL INP X6 EXT-INP 6STROBE OUT NO 7’READY’ON CAPTURE COMPLETE SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2-14 F C1 BRT Setting the Operating and System Conditions [2] Gain/offset adjustment The gain and offset of the IV-S30J can only be adjusted by our service engineers. Users must not try to change them. The data which can be adjusted is shown below for reference purpose only. Generally, an image from the CCD camera can be optimized by adjusting the optical system, such as the lens iris. To make fine adjustments, the IV-S30J is equipped with functions to adjust the offset and gain of image signals from cameras 1 and 2 and the contrast on an external monitor screen. - The gain and offset are adjusted by checking the display on the screen. - The screen is kept in the through mode. Setting method On the MAIN MENU, select "SYS-CND" -> "GAIN OFFSET" and the following message will appear on the screen. CHANGING A SETUP MAY LEAD TO A MACHINE FAILURE. DO YOU CHANGE IT? GAIN-OFFSET SCREEN COND SAVE 1OFFSET 2GAIN 3OFFSET 4GAIN 5CONTRAST F C1 BRT (CAM1) (CAM1) (CAM2) (CAM2) (MNTR) (YES=SET, NO=ESC) SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC Press the SET key the "GAIN OFFSET" screen at the right appears. Gain and offset adjustment 1OFFSET (CAM1) 2GAIN (CAM1) 3OFFSET (CAM2) 4GAIN (CAM2) 5CONTRAST (MNTR) Details of adjustment (selection) The offset for camera 1 is adjusted with the up and down keys. - The complete signal level is shifted leaving the amplitude of the image signals from the CCD camera unchanged. As the offset value is increased, the whole screen will becomes more white. The gain for camera 1 is adjusted with the up and down keys. - The amplitude of the image signals from the CCD camera is changed. As the gain value is reduced, the screen will become lighter, and as the gain value is increased, the screen will become darker. The offset for camera 2 is adjusted with the up and down keys. - The adjustment procedure is the same as that in Item . The gain for camera 2 is adjusted with the up and down keys. - The adjustment procedure is the same as that in Item . The monitor contrast is adjusted with the up and down keys. - The intensity of image signals sent to the monitor is adjusted. As the contrast value is increased, the contrast on the screen will become stronger. 2-15 2 Setting the Operating and System Conditions 2-3 Editing Operation screen In this controller, the operation screen display can be changed. You can move, enlarge, reduce, or hide any block of text. 2 (1) Move the cursor to "MAIN-MENU" on the operation screen and press the SET key. (2) Move the cursor to "EDIT MAIN OPS MENU" and press the SET key. MAIN MENU F C1 BRT IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION =TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP (3) Now the operation screen will appear. Select a block of text you want to edit using the up, down, left, and right arrow keys, and press the SET key. A pop up menu will appear and you can select from move, enlarge, reduce, and hide. (In this example, the block of text "OK" is selected.) - MOVE Select "MOVE" using the SET key. Now the highlighted block of text can be moved using the up, down, left, and right arrow keys. When the text is in the desired new position, press the SET key again. - MAGNIFICATION/REDUCTION Move the cursor to the "MAGNIFCATION" or "REDUCTION" line and press the SET key. The highlighted block of text can be enlarged or reduced. - OPS-MAIN SCREEN OBJECT SAVE RESET TYPE00 OK MEAS XXXXms MEAS1 MEAS-BIN-AREA MOVE MAGNIFCATION REDUCTION MEAS PROGRAM NON-DISP MEAS RESULT F C1 BRT F C1 DRK LOCK FULL V C1=002.2 OK C2=100.0 OK NG-IMG 00(00) X0 6 Y0 7 READY NON-DISP Move the cursor to the "NON-DISP" line and press the SET key. The highlighted block of text will be deleted. 2-16 Setting the Operating and System Conditions 2-4 Option With the IV-S30J, you can initialize the measurement settings, and run a self-diagnosis from the option menu. Setting method 1) Display the "OPTION" from the "MAIN MENU." 2 MAIN MENU F C1 BRT IVS30J SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION 2) Select the operation you want, such as " INITIALIZATION" or " SELF DIAGNOSIS." OPTION SCREEN SAVE 1INITIALIZATION 2SELF DIAGNOSIS ALL-INIT EXEC F C1 BRT INIT-RAM INITIALIZATION Select any of the "ALL-INT" (initialize both FROM and RAM), or "INT-RAM" and the following message will appear. MEM INIT?(YES=[SET], NO=[ESC] ) Press the SET key to start the initialization. The bar shown below will appear and display the progress of the initialization. INITIALIZATION REFERENCE IMG SYSTEM I/O OBJECT TYPE COND After the initialization is complete, the word "INITIALIZING" will change to "COMPLETE INIT." Press the ESC key to return to main screen. SELF DIAGNOSIS Select " SELF DIAGNOSIS" and press the SET key twice. The controller will execute a selfdiagnosis and display the results of the diagnosis, as shown right. If the diagnosis results are normal, "OK" will be displayed. If the results are abnormal, "NO" will be displayed. OPTION SCREEN SAVE 1INITIALIZATION 2SELF DIAGNOSIS ALL-INIT EXEC F C1 BRT INIT-RAM When the diagnosis is complete, the "DIAGNOSING" display will change to "COMPLETE DIAGNOSIS ." When the diagnosis is complete, the "DIAGNOSING" display will change to "COMPLETE DIAGNOSIS ." DIAGNOSING VRAM SDRAM OK OK TYPE COND REFFERENCE IMG BOOT-PROG SYSTEM-PROG OK OK OK OK SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 2-17 Setting the Conditions for Each Object Type Chapter 3 : Setting Measurement Conditions 3-1 Outline The measuring conditions for each object type are set on the "OBJECT TYPE COND" (conditions for object type) menu. A maximum of 16 object type numbers can be registered. How to enter the setting screen On the MAIN MENU, move the cursor to "OBJECT TYPE COND" and press the SET key. The "SELECT OBJECT TYPE COND" screen will appear. Select "TYPE00," "MEA-CND(CAMERA1)," and "MEAS0" or "MEAS(NEW)." Note: "MEAS0" is only used for measuring positional deviation. Choose a measurement program from the popup menu at " MEAS SELECTION" to bring up the "MEAS CND" screen. For details, see Chapter 8: "Setting Example Using the Menu Tree" in the Instruction and Hardware. Note: New measurement programs are allocated to "MEAS01" through "MEAS04." The smallest measurement number available (from 1 to 4) will be assigned. "MEAS0" is dedicated to positional deviation measurements. 3-1 SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE01 TYPE02 TYPE03 TYPE04 TYPE05 TYPE(NEW) SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS (NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) MEASUREMENT 1 SCREEN COND SAVE 1MEAS SELECTION POSI-DEVIATION NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES 3 Setting Measurement Conditions Setting procedure A general outline of the setting procedures is shown below. For details, see each chapter. Setting the measurement program conditions 3 MEASURE 0 MEASURE 1 MEASURE 2 MEASURE 3 MEASURE 4 Jump to the next page Select the image pre-processing method Image pre-processing - See page 3-19 Set final numerical calculation "FINAL NUM.CALC" - See Chapter 14 Set final output condition "FINAL OUTPUT COND" - See Chapter 15 Setting the input/output conditions "OBJ-TYPE I/O" - See Chapter 16 Setting the system conditions "OBJ-TYPE SYS" Save the settings in the flash memory "SAVE" - See page 1-14 Return to the MAIN OPS MENU "OPS-MENU" 3-2 Setting the Conditions for Each Object Type Outline of setting the measurement program The measurement program can be specified from "MEAS0" through "MEAS4." (Camera1/camera 2) When you want to specify the measurement conditions using "POSI-DEVIATION." SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) POSI-CORRECT MEAS01(CHK-DEG-MATCH) Measurement program MEAS02(INSPECT-LEAD) MEAS03(MEAS-BIN-AREA) MEAS04(CNT-BIN-OBJ) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE01 TYPE02 TYPE03 TYPE04 SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP MEAS CND SCREEN COND SAVE F C1 BRT 1DTECT PRECISION STANDARD 2REGISTER NO 0(0~7) 3MODE 1P-SCH REGISTER NO. 5MDL 0 6MDL 1 NO 1P-SCH 2P-SCH 1P-EDGE 2P-EDGE 1P-SCH+1P-EDGE SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Set the specific conditions for each measurement program Set the evaluation conditions (testing) Set the output conditions (see Chapter 16: Setting the Input/Output Conditions) Set the method for numeric calculation (testing) Select "SCREEN" and then "OPS-MENU" to the operation screen. 3-3 3 Setting Measurement Conditions 3-2 Shared settings [1] Window shape selection and settings 3 This section describes how to select and set the EX: Register conditions of "Positional deviation window shapes used for image processing (e.g. measurement." F C1 BRT rectangular windows, horizontal or vertical line REG COND SCREEN COND SAVE DETAIL boundaries, circle windows, elliptical windows, and 1REGISTER NO 0(0~7) polygonal windows). This can be done using the up, 2MEAS SHAPE (MDL0) RECTANGLE 3REFIMG ARE (MDL0) SET (224,208)~(287,271) down, left, and right setting keys on the remote key 4SEARCH ARE (MDL0) SET (216,200)~(295,279) pad. RECTANGLE X-LINE Y-LINE (1) Rectangular window Line type Solid lines Reference image for gray Positional deviation measurement (gray scale search), degree of match inspection, lead inspection, multiple position scale search and binary measurement (gray scale search), and multiple degree of match image matching inspection. Area measurement by binary conversion, object counting by Window containing a binary conversion, object identification by binary conversion. binary image Gray scale search area detection Dotted lines Measurement programs Image processing used Positional deviation measurement (gray scale search), degree of match inspection, lead inspection (criteria search), multiple position measurement (gray scale search) and multiple degree of match inspection. Positional deviation measurement (edge detection), multiple Edge of an area detection position measurement (edge detection). Binary image window mask Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion. 3-4 Setting the Conditions for Each Object Type How to set a rectangular window 1. Moving the mask - Up key - Down key - Left key - Right key 3 2. Specifying the upper left corner - Up key - Down key - Left key - Right key 3. Specifying the lower right corner - Up key - Down key - Left key - Right key To register reference images To register reference images, the system should be in the "Freeze" mode. See page 1-10 Window specifications Line type Move Size Minimum Maximum Reference X x Y (X*Y = Solid line One pixel at a time In unit of one pixel 16 x 16 (pixel) image 65536 pixels) Search area Dotted line One pixel at a time In unit of one pixel 16 x 16 (pixel) 512 x 480 pixels 3-5 Setting Measurement Conditions (2) Horizontal/vertical lines Line type Solid lines 3 Dotted lines Image processing used Measurement programs Gray scale search (reference image) Positional deviation measurement (gray scale search), degree of match inspection, lead inspection (criteria search). Edge of an area detection Lead inspection Gray scale search line detection Positional deviation measurement (gray scale search), degree of match inspection, lead inspection (criteria search). How to set horizontal lines The following items on the settings menu can be used to define lines: MOVE, S.PT, E.PT. Shown here is an example of how to define a solid line. 1. Move - Up key - Down key 2. Specifying the starting point - Left key - Left key - Right key 3. Specifying the ending point - Right key - Left key (The up and down keys function the same as in the move item) - Right key (The up and down keys function the same as in the move item) How to set vertical lines 1. Move - Up key - Down key 2. Specifying the starting point - Up key - Down key (The left and right keys function the same as in the move item) - Left key - Right key 3. Specifying the ending point - Up key - Down key (The left and right keys function the same as in the move item) To register reference images To register reference images, the system should be in the "Freeze" mode. See page 1-10. 3-6 Setting the Conditions for Each Object Type Window specifications - Horizontal lines Min. Max. length length Reference image Solid line Horizontal direction: One pixel at a time In units 8 512 of pixels pixels pixels Search area Dotted line Vertical direction: One pixel at a time Line type Move Length - Vertical lines Min. Max. Line type Move Length length length Reference image Solid line Horizontal direction: One pixel at a time In units 8 480 of pixels pixels pixels Search area Dotted line Vertical direction: One pixel at a time When setting the horizontal and vertical lines, specify the line length as follows: The reference image must shorter than the search area lines. (3) Circle window Line type Image processing used Measurement programs Solid lines Window containing a binary image Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion Dotted lines Binary image window mask Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion How to set a circle window The following items on the settings menu can be used to define the circle window: CENTER, RAD. Shown here is an example of how to define a solid line circle window. 1. Specifying the center - Up key - Down key - Left key - Right key 2. Specifying the radius - Up/right key - Down/left key (4) Elliptical window Line type Image processing used Measurement programs Solid lines Window containing a binary image Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion Dotted lines Binary image window mask Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion 3-7 3 Setting Measurement Conditions How to set an elliptical window The following items on the settings menu can be used to define the elliptical window: CENTER, RAD. Shown here is an example of how to define a solid line elliptical window. 1. Specifying the center - Up key - Down key - Left key - Right key - Left key - Right key 3 2. Specifying the radius - Up key - Down key (5) Polygonal window With the binary area measurement function, object counting after binary conversion function, object identification after binary conversion function, or point measurement after binary conversion function, you can create any shape of polygonal window with up to 32 sides, in addition to the rectangles, circles, and ovals that were available in previous versions. Any polygonal window (up to 32 sides) How to create a window On the "POLYGON" setting screen, specify a coordinate using the up, down, left, and right arrow keys, and then press the SET key. Thereafter, specify points 02, 03 and so on, in numerical order. After specifying the last coordinate, press the SET key again to confirm the polygonal shape you have drawn. To edit the polygonal shape, select a point to modify using the up and down arrow keys, and press the SET key. A popup menu will appear. Select CHANGE, INSERT or DELETE. 3-8 16P 27P 38P 49P 510P 611P 712P 813P (305,153) (305,186) (272,186) (272,211) (243,211) (243,236) (217,239) (217,239) Setting the Conditions for Each Object Type [2] Image settings What follows is a description of how to use the image settings to control the measuring program. (1) Pixel contraction and detection precision (gray scale processing) The display will change from 1 to 2 to 3 using the up and down arrow keys. Measurement condition setting screen 3 REG COND MEAS CND 1DTECT PRECISION STANDARD 5CONTR. PIXL(MDL0) STANDARD HIGH PRECISION 1 Note: At the "DETAIL" item in the upper function menu, select "CONTR.PIXEL." Then, "5 or 9CONTR.PIXL" will appear on the screen. Menu Description - STANDARD (standard): Detection precision of 1 pixel unit level - HIGH (High precision): Detection precision of 1/10 pixel unit level (High precision) Search coordinates use a sub-pixel level of precision (1/10) 0 1 2 3 4 5 6 7 8 9 1 Reference image 2 3 4 1DTECT PRECISION (detection precision) 5 6 (Standard) Search coordinates 7 use a 1 pixel level 8 of precision Degree of match 9 Degree of match High precision pixel detection Point of detection Camera image Pixel Standard pixel detection Point of detection 59CONTR. PIXL - 1: Search the scanned image in groups of 2 pixels. - 2: Search the scanned image in groups of 4 pixels. (Grey search scale conditions) - 3: Search the scanned image in groups of 8 pixels. - To increase the speed of your search, you must take into account the settings listed below. 1. When using the high precision setting, a smaller image should be used. 2. Reduce the size of the scanned image. 3. After considering what the maximum out of position dimension would be, make the search area as small as possible. 4. If the size of the object is larger than 8 pixels then set the pixel contraction to "3." Measurement programs which are affected by these settings Positional deviation measurement (gray scale search), degree of match inspection, lead inspection, multiple position measurement, and multiple degree of match inspection. 3-9 Setting Measurement Conditions (2) Threshold value setting The IV-S30J treats the "areas darker than the lower limit value" or "brighter than the upper limit value" as "black." It treats that the areas between the upper limit value and lower limit value as "white." However, if the white-black reverse function is enabled, conversion to white/black will be reversed. Normally, if you want to use only one threshold value for binary conversion, set the upper limit value to "255." Then you only need to adjust the lower limit value to a threshold value that works for our application. 3 Threshold valve B Binary conversion (upper limit 255, lower limit A) (Threshold value) 255 White Lower limit A Threshold valve A (Captured image) Binary conversion (upper limit A, lower limit B) B Binary conversion (upper limit 255, lower limit B) (Threshold value) 255 Black Upper limit A White Lower limit B Black 0 Black 0 (Threshold value) 255 A Lower limit B White Black 0 Setting the threshold value automatically - Binary area condition (binary image mask) menu of The binary threshold value can be set the binary area measurement automatically. F C1 DRK THRESHOLD VAL AUTO-REG RESET In the binary area condition of each 1U.LM 255(0~255) measurement program, execute the "AUTO 2L.LM 100(0~255) L LIMIT ONLY REG" function (lower limit only or upper and U&L LIMITS lower limits) and the optimum threshold values will be set in each measurement area automatically. The binary area conditions (binary image mask) menu in the binary area measurement. Measurement programs which are affected by these settings Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion, point measurement (binary images) SET=CHNG ESC=BACK SEL=CHNG IMG TRG=FUNC 3-10 Setting the Conditions for Each Object Type (3) Setting window boundaries (enable/disable) This function enables and disables the labeling (object identification) of binary images located that cross over the window frame boundary. Window Binary conversion Labeling (enable window boundaries) Labeling (disable window boundary) 1 1 2 3 3 4 Images 1 and 3 cross over the window frame edges and are measured together with the areas outside the window frame edges. Condition: Labeling (in order they are connected) 2 Measurement programs which are affected by these settings Object counting by binary conversion, object identification by binary conversion F C1 BRT REG COND SCREEN COND SAVE DETAIL 1REGISTER NO. 0(0~3) MASK REGIST. BINARY PROCESS BINRY NOISE FILT BOUNDARY PROCESS AREA FILTER Setting method Select "DETAIL" in the upper function menu on the REG COND screen. Select "BOUNDARY PROCESS" from the popup menu and then press the SET key. (4) Object identification and numbering function (labeling) Object identification and numbering (labeling) is a process for locating separate object and assigning serial numbers (labels) one at a time in a binary image. By this process, multiple objects in the same binary image can be handled separately or as a group. 1 2 Object identification (in order of scanning) Binary conversion 3 3 Object identification (in order of area) 2 4 Island Island 4 1 Measurement programs which are affected by these settings Object counting by binary conversion, object identification by binary conversion 3-11 Setting Measurement Conditions Variation in lighting (5) Binary processing (fixed/threshold value correction) By setting THRESHOLD-ADJ (threshold adjustment function), the IV-S30 can cope with variations in lighting. 3 Threshold correction value (threshold adjustment function), the monitor brightness functions must be selected to measure variations in lighting. If you don’t select the monitor brightness function, a LIGHT LVL NOT SET (correcting binary value: monitor illumination not selected) error will occur. Fixed Fails to convert the image due to a variation in lighting Threshold correction using either VAR-DIFF (enter variations in lighting as value) and VAR-RATE (enter variations in lighting as a rate) can be selected the THRESHOLD-ADJ (the threshold adjustment function). Set (selection) item Details of correction Variation Correct the threshold value by adding the previously specified threshold difference value to the light level variation difference. Threshold value (Measured light level — reference light level) + specified threshold value adjustment Variation Correct the threshold value by multiplying the previously threshold value to the light level variation rate. rate (Measured light level ÷ reference light level) x specified threshold value Measurement programs which are affected by these settings Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion, point measurement (binary images) Setting method Select " THRESHOLD" on the "REG COND" screen and then change the upper and lower limit values using the up, down, left, and right arrow keys. REG COND SCREEN COND SAVE DETAIL 1MEAS SHAPE 2MEAS AREA 3THRESHOLD 4INVERT B/W RECTANGLE SET (224,208)~(287,271) SET [U.LM255 L.LM100(0~255)] NO Change using the up and down arrow keys. 3-12 F C1 BRT Setting the Conditions for Each Object Type Contraction Expansion Binary conversion (6) The expansion/contraction method of eliminating noise in binary images When converting an image to binary values, it is often the case that dots of noise will show up in the converted image. This noise may be eliminated during pre-processing by using the smoothing function. However, it can also be dealt with through the expansion/contraction noise elimination method. Expansion A single white dot, or small groups of white dots, in the middle of a black background can be eliminated from the image. Contraction A single black dot, or small groups of black dots, in the middle of a white background can be eliminated from the image. The IV-S30J has both "contraction expansion" and "expansion contraction" functions for eliminating binary noise. Expansion contraction When isolated dots of noise are eliminated by expansion, the areas enlarged by the expansion are returned to their original size by contracting them again. Expansion Contraction Binary conversion 2 Contraction expansion When isolated white noise is eliminated by contraction, the areas shrunk by contraction are returned to their original size by expanding them again. - Number of times of expansion and number of times of contraction can be set independently. When the number of contraction cycles is set to 0, and the number of expansion cycles is one or greater, then only the expansion function will be used. On the other hand, if the number of expansion cycles is set to 0 and the number of contraction cycles is one or greater, then only the contraction function will be used. Measurement programs which are affected by these settings Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion Setting method Select "DETAIL" in the upper function menu on the REG COND screen, and choose "BINRY NOISE FILT" to change the blank box to a filled box. Then, " BINRY NOISE FILT" will appear on the REG COND screen. Press the SET key on this line and select "EXPD. -> CONTR." or "CONTR -> EXPD." from the popup menu. 3-13 F C1 BRT REG COND SCREEN COND SAVE DETAIL 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W 00(0 15) RECTANGLE SET (224,208)~(287,271) SET [U.LM255 L.LM100(0~255)] NO 6BINARY NOISE FILT EXPD. CONTR MASK REGIST. BINARY PROCESS BINARY NOISE NO EXPD. CONTR. CONTR. EXPD. 3 Setting Measurement Conditions (7) Edge detection The "edge" refers to the boundaries between the brighter (white) and darker (black) parts in an image. The "edge detection" function is used to detect this boundary by processing the image. Edge detection point A Detection area A B B Detection direction • Horizontal transition point from light to dark (moving from right to left) B Detection direction width width Brightness level Dark Difference in level A • Vertical transition point from light to dark (moving from bottom to top) Detection area A Detection direction Edge detection Light point Edge detection point A B Detection direction 3 An example of detecting a point using the edge detection function and user specified criteria • Horizontal transition point • Vertical transition point from light to dark (moving from light to dark (moving from left to right) from top to bottom) Edge Flat Direction B Edge Flat width width Light Brightness level Dark Difference in level A Direction B • Center (dark), horizontal (left and right) Edge detection point Detection area • Edge detection of the inside and outside edges of a two circles A: Moving right horizontally from light to dark B: Moving right horizontally C: Moving left horizontally from dark to light from dark to light D: Moving left horizontally from light to dark Internal diameter (between B and C) External diameter (between A and D) Detection area - The edge detection point coordinates are used as a reference point to detect an out of position condition. - Edge detection in binary images is much quicker than in a gray scale search. However, the binary image detection process is less precise at detecting position. 3-14 Setting the Conditions for Each Object Type Setting the threshold value automatically - Edge detection menu of the lead inspection By executing an "AUTO.REG" (automatic F C1 BRT THRESHOLD VAL AUTO-REG RESET setting) for the edge detection condition in 1GRYS 050(0~255) each measurement program, the IV-S30J can 2EDGE.W 2(1~8) automatically detect edges in the 3FLAT.W 04(1~16) measurement areas, and set the optimum threshold values automatically (density difference and edge width). Measurement programs which are affected by these settings Positional deviation measurement (edge detection), lead inspection, multiple position measurement (edge detection). SET=CHNG ESC=BACK SEL=CHNG IMG TRG=FUNC (8) Artifact processing Artifact processing is a method of processing that eliminates the false detection of the edge of the target object when an artifact is in the line being scanned. This process can be used during edge detection. The real edge of the target object is detected by computing the average duration of the dark area in the scan line, which is much longer for a target object than for an artifact. Example of detection An example of light to dark averaging (DTCT MODE:BRT DRK) while scanning horizontally (SEARCH DIR:HORIZ ), with artifact processing (enabled) (ARTIF). Duration of dark area in the line scan Average light (vertical) Edge detection point (with artifact processing: enabled) When artifact processing is disabled (NO ARTIF) in the above example, the edge detection point changes. Edge detection point (with artifact processing off) Measurement programs which are affected by these settings Positional deviation measurement (edge detection), lead inspection, and multiple position measurement (edge detection). 3-15 3 Setting Measurement Conditions (9) Contrast search in the reference image Using the reference image area setting in the gray scale search mode, the area of maximum contrast can be identified automatically in the captured image. - While moving the selected reference image area within the specified search area on the captured image one pixel at a time, the IV-S30J determines the density in each area in the reference image, and automatically picks the area with the largest difference. - This function may be used for sorting printed objects. 3 Search in the specified search area on the captured image Find the area having the maximum features in the reference image area. Measurement programs available that use this setting Positional deviation measurement (gray scale search), degree of match inspection, multiple position measurements (gray scale search), and multiple degree of match inspection. Setting method Move the cursor to the " REFERENCE IMG" with up and down arrow keys on the reference image area setting screen. Next, select "CONTRAST SRCH." Finally, press the SET key. RECTANGLE RESET F C1 BRT RETURN MDL 0 1UP.L (224,208) 2LO.R (287,271) 3MOVE 4REFERENCE IMG CONTRAST SRCH REG DISP X:224 Y:208 SET=DECISION ESC=BACK SEL=CHNG IMG TRG=FUNC 3-16 Setting the Conditions for Each Object Type [3] Evaluation conditions The setting details and procedures for setting the evaluation conditions are the same for all measurement programs. Evaluation conditions [EVALUATION COND] menu for measuring degree of match EVALUAT COND SCREEN COND SAVE 1REGISTER [TEST RESULT] [OUTPUT] 2CONDITION SET RESET AUTO( 10%) 3MATCH LVL (MDL0) -10000~+10000 M0=+09000 OK NO 4X COORD. (MDL0) 000.0~511.0 X0= 000.0 OK NO 5 COORD. (MDL0) ~ OK NO 6GLAY LVL (MDL0) 000.0~255.0 G0= 116.0 OK NO 7MATCH LVL (MDL1) -10000~+10000 M1=+09000 OK NO 8X COORD. (MDL1) 000.0~511.0 X1= 000.0 OK NO 9Y COORD. (MDL1) 000.0~479.0 Y1= 000.0 OK NO 0GLAY LVL (MDL1) 000.0~255.0 G1= 116.0 OK NO qTEST EXEC(WITH-POSI. ADJ WITHOUT-POSI.ADJ) SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC If you select "WITH-POSI.ADJ," the system will conduct test while adjusting for positional deviation. - pages 3-30 to 3-32. The "degree of match + 09000" refers to a degree of match (match between individual pixels) between the registered image and the measured image that is equal to 90.00% or more of the total. Using the up and down keys, you can set the output to NO (no output), Y0 to 7 (output on these relays), or C000 to C127 (output on these secondary relays), in the output area of the menu. (If the test result returns OK, then the output is turned ON. If it is NG, then it is turned OFF). When carrying out a test using item qTEST, on the menu, the resulting measurement values and the evaluation (OK or NG) will be displayed. Condition setting Upper and lower limit values of the all evaluation condition items can be set automatically with the following processes. After testing more than one good workpieces, the IV-S30J automatically set the limits based on the test results. Condition settings AUTO **%) Details - Multiple the specified rate ( %) on the newly tested good workpieces, and compared this value with the range between the current upper and lower limits. If it is outside the upper and lower limits, the IV-S30 renews the maximum or minimum value with this value. At the first setting, the first test result will be the upper and lower limit without any condition. **%] The value from 00% to 99% can be entered to the " **%" in units of 1%. (Default value = 10%) To enter this position, move the cursor to the "AUTO" position and press the up and down keys to change the value. After determining the value, press the SET key, upper and lower limits of each item will be automatically set with tis %.be the upper and lower limit without any condition. 3-17 3 Setting Measurement Conditions Setting method There are two ways to get to the evaluation condition setting screen. 3 1) Select "CND" in the upper function menu on the MEAS CND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the "EVALUAT COND" screen. MEAS CND F C1 BRT SCREEN COND SAVE 1DTECT PRECISION 2REGISTER NO. 3MODE 4DTECT ANGL 5ANGLE UNIT STANDARD 0(0~7) 1P-SCH –15¡ 10 REGISTER NO. 6MDL 0 7MDL 1 IMG PRE-PROC REG-COND(S) REG-COND(E) POSITION CORRECTION EVALUATION DST&ANGL NUM-CALC OUT SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the Menu tree screen and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND REG-COND(S) REG-COND(E) EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND POSI-CORRECT MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O F C1 BRT 1REGISTER NO. 2CONDITION SET 3X COORD. (BDL0) 4Y COORD. (MDL0) 5x DEVIATE (MDL0) 6y DEVIATE (MDL0) 7MATCH LVL (MDL0) 8ANGULAR DEVIATE 9X COORD. (MDL1) 0Y COORD. (MDL1) qx DEVIATE (MDL1) wy DEVIATE (MDL1) eMATCH LVL (MDL1) rTEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 3-18 Setting the Conditions for Each Object Type [4] Image pre-processing A comparative calculation between images, gray level changes, and space filter are available for image pre-processing. Comparative calculation between images Subtracting,absolute value of difference (between camera 1 and reference image,between camera 2 and reference image, between camera 1 and camera 2) Gray level changes Magnification by "n" processing, midrange emphasis Space filter (+/-) correction, histogram widening, Smoothing (center/average),edge emphasis,edge extraction, horizontal edge,vertical edge How to get to the "IMG PRE-PROC" screen Select "OBJECT TYPE COND" and then "TYPE00" or "TYPE(NEW)" on the "MAIN COND" screen. Then select "MEA-CND(CAMERA1)" and "MEAS" to open a measurement screen. At the " MEAS SELECTION" item, press the SET key and choose a measurement program from the popup menu. Note: If the " MEAS SELECTION" is set to "NO," the image pre-processing cannot be specified. Press the ESC key to return to the OBJECT TYPE COND screen. Then select "IMG PRE-PROC." MEASUREMENT 1 SCREEN COND SAVE 1MEAS SELECTION POSI-DEVIATION NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-OBJ CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MALTI-POSI MULTI MATCHES SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND POSI-CORRECT MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1COMPARE IMGS 2COMP IMGS COND 3CHNG GRAY LEVEL 4CONTRAST MAGNI 5SPACE FILTER 6NUM.OF FILTER SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "IMG PRE-PROC" screen will appear. IMG PRE-PROC SCREEN COND SAVE For details about "COMPARE IMGS" (compare images), see page 3-20. For details about "CHNG GRAY LEVEL" (change gray level), see page 3-22. For details about "SPACE FILTER," see page 3-23. 3-19 1COMPARE IMGS NO 2CHNG GRAY LEVEL NO 3SPACE FILTER NO F C1 BRT 3 Setting Measurement Conditions (1) Comparative calculations between images It is possible to run calculations on the differences between the images taken by camera 1 and camera 2, as well as on the differences between the current image and the already stored reference image. There are two types of calculation: "subtraction" and the "absolute value of the differences." 3 Subtraction Light level in image 1 (0 to 255) Light level in image 2 (0 to 255) - Light level after calculation However, a result less than 0 will give a result of 0. COMPARE IMGS SCREEN SAVE 1CALC.TYPE 2CALC.AREA NO NO SET (232,216)-(279,263) SUBI1-T1 DIFF.ABS I1-T1 The absolute | Light level in image 1 (0 to 255) Light level in image 2 (0 to 255) | value of the - Light level after calculation (0 to differences 255) Example of comparative calculations between images Image A Light level 0 Light level 180 - Subtraction (Image A - Image B) - Subtraction (Image B - Image A) - The absolute value of the differences ( | Image A - Image B | ) 3-20 Image B F C1 BRT Setting the Conditions for Each Object Type Setting details 1. Select the camera to be used for " COMPARE IMGS" from the popup menu. Then select the " COMP IMGS COND" item to get to the setting screen. IMG PRE-PROC SCREEN COND SAVE 1COMPARE IMGS 2COMP IMGS COND 3CHNG GRAY LEVEL 4CONTRAST MAGNI 5SPACE FILTER 6NUM.OF FILTER CAM1 (TO NEXT SUB-MENU) CONTRAST MAGNI 00.0TIMES SMOOTH(AVE) 1(0~5) F C1 BRT NO CAM1 CAM1&2 3 SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2. Select " CALC.TYPE" and then set " CALC.AREA." COMPARE IMGS SCREEN SAVE 1CALC.TYPE 2CALC.AREA NO SET F C1 BRT (232,216)-(279,263) SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC The list of settings which may be selected at item "1COMPARE IMGS" is as follows. SELECT CAMERA 1CALC.TYPE Contents NO (none) CAM 1 None (camera 1) Subtraction I1-T1 The absolute value of the difference between |I1-T1| Comparative calculations of differences between images will not be carried out. Comparative calculations of differences between images will not be carried out. None CAM 2 (camera 2) Subtraction I2-T2 The absolute value of the difference between |I2-T2| Comparative calculations of differences between images will not be carried out. The reference image T2 (* 1) is subtracted from the image taken by camera 2. The absolute value of the difference is calculated between the reference image T2 (* 1) and the image taken by camera 2. CAM 1&2 Subtraction I1-I2 (cameras Subtraction I2-I1 1 & 2) (*2) The absolute value of the difference between |I2-I2| The image taken by camera 1 is subtracted from the image taken by camera 2. The image taken by camera 2 is subtracted from the image taken by camera 1. The absolute value of the difference is calculated between the image taken by camera 1 and the image taken by camera 2. The reference image T1 (* 1) is subtracted from the image taken by camera 1. The absolute value of the difference is calculated between the reference image T1 (* 1) and the image taken by camera 1. The reference images T1 and T2 (*1) and the size of the areas covered by I1 and I2 (the images taken by cameras 1 and 2) (*2) may be set in item " CALC. AREA." 3-21 Setting Measurement Conditions (2) Gray level change To change the gray level, you can change the "**.*TIMES" (magnification by N processing), the " +," " -" ( (positive/negative) correction), the "CHNG-L" (widening histogram), and the "INCRSM" (mid emphasis) functions. IMG PRE-PROC SCREEN COND SAVE 1COMPARE IMGS NO 2CHNG GRAY LEVEL NONO CONTRAST MAGNI NO + CHNG-L INCRS-M 3SPACE FILTER 3 Gray level change Magnification by N processing (**.* TIMES) F C1 BRT Details To improve the contrast (the ratio of high value gray levels to low value gray levels), specify a magnification rate (00.0 to 99.9) for multiplying the image data. - If the magnified gray level exceeds 255, the system will correct the value to 255. - positive correction: used when the mid gray level is too low. Output image gray level 255 (positive/negative) correction Input image gray level - 255 negative correction: used when the mid gray level is too high. Output image gray level 255 Input image gray level 255 This is a method to widen the histogram of an image in which the histogram is at part of it, thus improve its contrast. Histogram widening 0 a b Gray level Zm 1 Bad contrast image 0 Gray level Zm 2 Good contrast image Emphasize the mid gray level. - This improves contrast while remaining the background image. - The input image density (G) can be converted to the output image density with the following formulas: Mid emphasis Input image gray level(G) Output image gray level 0 to 127 128 to 255 3-22 Setting the Conditions for Each Object Type (3) Space filter Space filter includes various image manipulation processes that create more readable images by removing noise and distortion in the image data. And, by extracting or emphasizing certain image features, it is easier to evaluate or identify target objects by converting the images into standard patterns. In the IV-S30J, you can select from "smoothing (average, center)," "edge emphasis," "edge extraction," "horizontal edge," and "vertical edge." Item IMG PRE-PROC SCREEN COND SAVE 1COMPARE IMGS NO 2CHNG GRAY LEVEL NO 3SPACE FILTER 4NUM.OF FILTER SMOOTH(AVE) 7(0~5) Edge emphasis Edge extraction Horizontal edge Vertical edge NO SMOOTH(AVE) SMOOTH(CENT) EMPHAS EDGE EXTRACT EDGE HORIZ-EDGE VERT-EDGE Contents - Display smooth images with decreased noise. - Used to eliminated surface flaws and unevenness in the reflected light caused by - Specify the average pixel gray protrusions or dents. level from the surrounding 3 x 3 area. - This type of smoothing - Since noise elements are included in the (averaging) is faster than the average, the noise will affect the output. median smoothing. - Display images with sharp boundaries between brighter and darker areas. - Used to stabilize and create a binary outline around unclear objects. - Display images after extracting and clarifying the boundaries between the brighter and darker areas. - Used to measure objects with - Horizontal edge extraction: Display only low contrast. the horizontal boundaries of an object. - Vertical edge extraction: Display only the vertical boundaries of an object. - Specify the median pixel gray level from Smoothing the surrounding 3 x 3 area. (center) - Since noise elements are difficult to select, they will not affect the output. Smoothing (average) F C1 BRT Example of an image - No - Smoothing - Edge emphasis - Edge extraction (All) - Edge extraction (horizontal) - Edge extraction (vertical) 3-23 3 Setting Measurement Conditions [5] Image adjustment How to set the image adjustment function Select "IMAGE-ADJ" on the "SELECT OBJECT TYPE COND" screen and press the SET key. 3 Shading correction This process removes unevenness from images that have gray level unevenness caused by an illumination. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) IMAGE-ADJ 1ADJ.IMG GRAY(CAM1) 2ADJ.COND(CAM1) 3ADJ.IMG GRAY(CAM2) 4ADJ.COND(CAM2) F C1 BRT SCREEN SAVE 1ADJ.IMG GRAY(CAM1) 2ADJ-COND(CAM1) 3ADJ.IMG GRAY(CAM2) Adjustment condition To set the adjustment conditions for gray level corrections, select " ADJ-COND" and then press the SET key to show the sub menu. F C1 BRT YES (TO NEXT SUB-MENU) NO NO YES ADJ.IMG GRAY SCREEN SAVE F C1 BRT 1ADJ.MODE SUBTRACTING 2ADJ.AREA SET (224,208)-(287,271) 3SET STD.GRAY LV SET (224,208)-(287,271) GRAY(000) SUBTRACTING DECREASING FILTERING Correction mode Details Divide a scanned image with the reference image that expresses changes of dark and bright as a whole, and correct the brightness throughout the image. (Each gray level of scanned image) X reference gray level} / (Each gray level of reference image) SUBTRACTING - Divide a scanned image that is shot under the uneven light by a blank image that is shot under the same light condition, you can change the image to the one that is shot under the even light. DECREASING Subtract a scanned image with the reference image that expresses changes of dark and bright as a whole, and correct the brightness throughout the image. (Each gray level of scanned image) + reference gray level} - (Each gray level of reference image) - Subtract a scanned image that is shot under the uneven light by a blank image that is shot under the same light condition, you can change the image to the one that is shot under the even light. FILTERING Filter a scanned image with the maximum value, and then with an average value, to make a brightness image. [Max. value filter: Max. gray level of 3 x 3] - [Average value filter: Average gray level of 3 x 3] - Use this filter when a brightness distribution image (reference image) for the scanned image cannot be obtained. 3-24 Setting the Conditions for Each Object Type [6] Binary image mask Use the binary image mask when an object to measure by binary conversion cannot be measured using rectangle, circle, or ellipse window. Mask a scanned image (AND) with the registered binary image. Binary image mask Gray level in the scanned image Gray level output after masking 1 0 to 255 0 to 255 (gray level in the scanned image) 0 0 to 255 0 (black fixed) 3 Measurement programs which are affected by this setting Area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion Setting method 1. On the SELECT OBJECT TYPE COND screen, select "MEAS CND" (measurement conditions) and press the SET key. The MEACND screen will appear. Select " WINDOW" and press the SET key. Select "BINARY-IMGMASK" from the popup menu. MEA-CND SCREEN COND SAVE NUM-OF-MASK 1 1WINDOW BINARY-IMG-MASK NUM-OF-MASK 2 NUM-OF-MASK 4 2REGISTER NO. 0 BINARY-IMG-MASK 3REGISTER EXIST NO POLYGON 4MASK BINARY IMG NO F C1 BRT REGISTER NO. 5BINARY AREA 2. Highlight the " MASK BINARY IMG" item and press the SET key. A popup menu will appear. Select "REF-IMG" or "MANUAL" and the " BIN IMG MASK" line will appear. Selecting "REF-IMG" See page 3-26 to 27. Selecting "MANUAL" See page 3-28 to 29. 3. Select " BIN IMG MASK" (binary image masking condition) and press the SET key. The, MASK BINARY IMG screen will appear. MEA-CND 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK REGISTER NO. 6BINARY AREA MEA-CND F C1 BRT SCREEN COND SAVE BINARY-IMG-MASK 0 NO REF-IMG (TO NEXT SUB-MENU) NO REF-IMG MANUAL SCREEN COND SAVE 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK F C1 BRT BINARY-IMG-MASK 0 NO REF-IMG (TO NEXT SUB-MENU) REGISTR NO. 6BIN AREA COND 4. Here you can set the masking conditions. First move the cursor to " MASK AREA" and press the SET key. Specify and confirm the position and size of a masking area. On the " THRESHOLD" line, adjust the threshold value between 0 and 255. At " MASK INVERT B/W," select whether or not to invert the masking area. When a mask noise removing method is specified in " MASK NOISE FILTR ," the " NUM.OF MASK FILT” (number of times to filter) line will appear. Set the number of times from 0 to 5. 3-25 F C1 BRT MASK BINARY IMGCREEN SAVE 1MASK AREA SET (232,216) ~ (279,263) 2THRESHOLD SET [U.LM255 L.LM100 (0~255) ] 3MASK INVERT B/W NO 4MASK NOISE FILTR EXPD. CONTR. 5NUM.OF MASK FILT EXPD.0 CONTR.0 (0~5) NO EXPD. CONTR. CONTR. EXPD MASK AREA Setting Measurement Conditions Setting example When " MASK BINARY IMG" is set to "REF-IMG." Shown below is an example of how to specify a binary image mask for a star shape. 3 1) Store a binary image mask on the "BINARY IMG MASK" menu (mask setting = standard) shown above. 1. Specify the mask outline for the object to be measured. Mask outline 2. For correcting minor positional deviations, store an enlarged image as the binary image mask. - Positional relation between the stored binary image mask and the object to be measured. Binary image mask Star-shaped binary image mask (outside boundary) Star-shaped object to be measured (inside boundary) 3. Return to the "TYPE MEAS COND" menu. Select "MEAS-COND" in the "5MEAS-BIN-AREA" item 2) Settings on the "TYPE MEAS COND" menu 1. Select "YES" from the popup menu at " REGISTER EXIST." 2. Select " " (00) at the " BINARY AREA" item and press the SET key to bring up the "REG COND" menu. REGIST COND SCREEN COND SAVE 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK BINARY-IMG-MASK 0 YES REF-IMG (TO NEXT SUB-MENU) F C1 BRT YES NO REGISTR NO. 6BINARY AREA SET=SELECT(YES/NO) ESC=BACK SEL=CHNG IMG TRG=FUNC 3-26 Setting the Conditions for Each Object Type 3) Setting the binary area conditions MASK REGIST. BINARY PROCESS BINRY NOISE FILT REG COND SCREEN COND SAVE 1MEAS SHAPE 2MEAS AREA 3THRESHOLD 4INVERT B/W 5MASK SHAPE 6MASK AREA 7BINARY PROCESS 8BINARY NOISE FILT DETAIL RECTANGLE SET (224,208)~(287,271) SET [U.LM255 L.LM100(0~255) ] NO F C1 BRT 3 RECTANGLE CIRCLE ELLIPSE THRESHOLD VAL AUTO-REG NO YES 1U.LM 2L.LM (224,208)~(287,271) FIXED NO RESET F C1 BRT 255(0~255) 100(0~255) FIXED THRES-ADJ(VAR-DEFF) THRES-ADJ(VAR-RATE) NO EXPD. CONTR. CONTR. EXPD SET=SELECT A MENU ESC=BACK SEL=CHNG IMGTRG=FUNC RECTANGLE RESET 1UP.L 2LO.R 3MOVE RETURN F C1 BRT SET=CHNG ESC=BACK SEL=CHNG IMG TRG=FUNC (224,208) (287,271) 1. Specify a measurement area smaller than the mask area and specify the binary conditions. Measuring area 2. Return to the MAIN OPS MENU. 4) Measure the binary area Binary mask image (registered in step 1-2) Captured image White dots (six) Image after executing a measurement - The white dots will be converted to black dots by applying the binary image mask. 3-27 Setting Measurement Conditions When " MASK BINARY IMG" is set to "MANUAL." Shown below is an example of a binary image MEA-CND SCREEN mask that matches the following shape (an 8 1WINDOW pointed star). COND SAVE F C1 BRT BINARY-IMG-MASK 2REGISTER NO. 0 NO 3REGISTER EXIST NO REF-IMG MANUAL 4MASK BINARY IMG MANUAL 3 REGISTER NO. 5BIN AREA COND 1. Select " menu. MASK BINARY IMG" and press the SET key. Select "MANUAL" from the popup 2. Select " BIN IMG MASK" (binary mask conditions) and press the SET key twice. MEA-CND SCREEN COND SAVE 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK F C1 BRT BINARY-IMG-MASK 0 NO REF-IMG (TO NEXT SUB-MENU) REGISTR NO. 6BIN AREA COND 3. The "MASK BINARY IMG" screen will appear. Select " MASK AREA" and press the SET key twice. 4. The "POLYGON" setting screen will appear. 1MASK AREA SET 2MASK IMVERT B/W NO 3MASK REGIST. REG DISP POLYGON 1POINT01 3-28 F C1 BRT MASK BINARY IMG SCREEN SAVE RESET MOVE (255,255) RETURN F C1 BRT Setting the Conditions for Each Object Type 5. Select "0" using the up and down keys and then select "MOVE" using the left and right keys. Finally, press the SET key. MASK BINARY IMGCREEN SAVE 1PO01T01 2PO02T01 3PO03T01 4PO04T01 5PO05T01 6PO06T01 7PO07T01 8PO08T01 F C1 BRT (255,255) (254,226) (221,226) (221,251) (274,276) (274,247) (257,247) () 3 X:256 Y:240 6. Move vertex 02 to 08 a little outside of the first point on the star using the up, down, left, and right keys, and then press the SET key. MASK BINARY IMGCREEN SAVE 1PO01T01 2PO02T01 3PO03T01 4PO04T01 5PO05T01 6PO06T01 7PO07T01 8PO08T01 F C1 BRT (255,255) (254,226) (221,226) (221,251) (274,276) (274,247) (257,247) () X:124 Y:276 7. After creating a mask area, press the ESC key to return to the "MASK BINARY IMG" screen. Select " MASK REGIST" and press the SET key. The cursor will move to the "REG" position. Press the SET key to register the mask. - The area inside the mask will change to white. To invert the inside and outside shades (change white to black and black to white), select "YES" on the " MASK INVERT B/W" line. 3-29 MASK BINARY IMG SCREEN SAVE 1MASK AREA SET 2MASK IMVERT B/W NO 3MASK REGIST. REG DISP F C1 BRT Setting Measurement Conditions [7] Position correction Based on the positional deviation data measurement 0 (positional deviation measurement), the correction of the image coordinates is dealt with using measurements 1 to 4. (1) Correction details The types of position correction available are: XY correction, angular correction (standard) and angular correction (high precision) Type XY correction Angular correction (standard) Angular correction (high precision) Details The position is adjusted according to the amount of deviation in X and Y at the first point (model 0) detected in measurement 0. There are three correction directions: X axis correction, Y axis correction and X and Y axis correction. - X axis correction-- Adjusted misalignment in the X axis - Y axis correction-- Adjusted misalignment in the Y axis The position is adjusted because of a detected angular deviation q in rotation [2-point search/2-point edge/1-point search + 1-point edge] from measurement 0. - When "YES" is selected in the DTECT ANGL item specifying a "1PSCH" or a "1P-SCH+1P-EDGE" in measurement 0, the position will be corrected according to the angle detected. The position is adjusted because of a detected angular deviation q in rotation [2-point search/2-point edge/1-point search + 1-point edge] from measurement 0. The high precision angular correction settings allows the IV-S30 to display a very precisely corrected image. But, this selection lowers rotation processing speed. - When "YES" is selected in the DTECT ANGL item specifying a "1PSCH" or a "1P-SCH+1P-EDGE" in measurement 0, the position will be corrected according to the angle detected. [Example of a comparison between standard and high precision angular correction] Scanned image Scanned image An image with smooth edges will be created. Image after correction An image with a jagged edge will be created. 3 (Standard) (High precision) q image after angular correction 3-30 Setting the Conditions for Each Object Type (2) Operation setting details Select the "POSI-CORRECT" condition item on the "SELECT OBJECT TYPE COND" screen and press the SET key to enter the correction. POSI-CORRECT SCREEN COND SAVE 1CORRECTION REG. 2MODE(1ST) 3X CORRECT ADJ.(1ST) 4X CORRECTION 5Y CORRECT ADJ.(1ST) 6Y CORRECTION 7ADJUST ANGL.(1ST) 8ADJUST ANGL 9MODE(2ND) 0X CORRECT ADJ.(2ND) qX CORRECTION wY CORRECT ADJ.(2ND) eY CORRECTION F C1 BRT 2ND STAGE CORRECTION ANGLE-ADJ.(STANDARD) NO YES 1ST STAGE CORRECTION REG0(0~7) MDL0 2ND STAGE CORRECTION YES REG0(0~7) MDL0 NO YES XY-ADJ. REG0(0~7) MDL0 ANGLE-ADJ.(STANDARD) ANGLE-ADJ.(HIGH) XY-ADJ. YES REG0(0~7) MDL0 YES REG0(0~7) MDL0 NO XY-ADJ. SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Setting procedure No XY ADJ. - X CORRECTION (no/yes) - Y CORRECTION (no/yes) ANGLE ADJ. (STANDARD HIGH) - X CORRECTION (no/yes) - Y CORRECTION (no/yes) - ADJUST ANGL (no/yes) No XY ADJ. - X CORRECTION (no/yes) - Y CORRECTION (no/yes) ANGLE ADJ. (STANDARD HIGH) - X CORRECTION (no/yes) - Y CORRECTION (no/yes) - ADJUST ANGL (no/yes) Mode 0 Mode 1 (3) Correction example Example of correcting the first X and Y point 1. Amount of correction (X2-X1, Y2-Y1) specified by measurement 0 (positional deviation measurement) Coordinates (X1, Y1) of object in the reference image (model 0) Target object coordinates (X2, Y2) [Measurement results] - Detected coordinates: (X2, Y2) - Deviation amount: X2-X1, Y2-Y1 Y2-Y1 Search area X2-X1 2. Measuring a point using measurement 1 Y2-Y1 Point X2-X1 3-31 3 Setting Measurement Conditions Example of angular correction 1. Detection of the amount of angular deviation (using measurement 0, 2 point search (positional deviation measurement). - Registration image 3 Reference image (model 0) Detected coordinates (model 0) Search area (model 0) Reference image (model 1) Detected coordinates (model 1) Search area (model 1) - Measurement image Detecting the amount of angular deviation Detected coordinates (model 0) Position of registration image Detected coordinates (model 1) 2. Performing measurement 1 to 4 (of distance and angle measurement) on an image that has been rotated around its center by the amount of angular deviation detected in step 1. - Image that has been rotated around its center in step 1 3-32 Setting the Conditions for Each Object Type [8] Title registration A title for a object type number can be entered and saved when the object type number is displayed on the screen. Purpose The title is used to make it easier to control the details of the settings for the object type. 3 Title characters A maximum of 16 letters and symbols may be entered. Operation method Select "OBJECT TYPE COND" on the "MAIN MENU" screen and then select "TYPE00" (the current type). Then press the "TRG/BRT" key. Select "TITLE" from the popup menu and press the SET key. STORE OBJCT TITLE SELECT OBFECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 OPS-MENU SAVE COPY PASTE DEL SPECIFY NUMBER TITLE STR OBJ TITLE SCREEN SAVE Setting details F C1 DRK A to Z 0 to 9 These characters and symbols are used to enter the title name. = to > AREA SP (space bar) This is used to make spaces. These are used to move the cursor. A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 SP DEL END This is used to delete the character DEL. (delete) to the right of the cursor. END Exit the title registration screen. The title that has been entered will be displayed in the top left corner of the operation screen and "SELECT OBJECT TYPE COND" screen. SELECT OBJECT TYPE COND screen Operation screen (TYPE00) AREA F C1 DRK V*.** MEAS ms MEASURE 0 CAM1 POSI-DEVIATION 3-33 SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00(AREA) TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND EVALUATION COND DISTANCE&ANGLE COND F C1 BRT Setting Measurement Conditions 3-3 Input & Output / System settings [1] Illuminance (light level) monitor 3 (1) Purpose 1. Allows the system to monitor changes the lighting of the environment If the light level exceeds the preset lighting range, it will be regarded as a change in the environment and "OVR ILLM RANGE" will be displayed on the MAIN OPS MENU. 2. Automatic adjustment of the threshold values used for binary conversions can follow changes in the lighting environment. The threshold value is modified from the user's setting due to changes in the actual brightness measured in the environment. (2) Applications Used when the level of illumination changed due to changes in voltage or when the influence of sunlight in the workplace cannot be ignored. (3) Setting procedure Select "OBJECT TYPE COND" the "MAIN MENU" screen. "TYPE00" (current type) and "OBJ-TYPE SYS," in that order, on 1. Select " MNTR LIGHT LVL (CAM1)" (monitor light level). Select "YES" from the popup menu. Then, the " LIGHT LV COND" item will appear on the screen. 2. Select " LIGHT LV COND" and press the SET key. The "LIGHT LV COND" screen and monitoring window will appear. 3. Press the SEL key and move the cursor to the upper function menu. Set the image mode to "T" (Through). OBJ-TYPE SYS. SCREEN SAVE 1HALT ON NG MEAS YES NO 2MNTR LIGHT LVL(CAM1) YES YES 3LIGHT LV COND (TO NEXT SUB-BENU) 4MNTR LIGHT LVL(CAM2) YES 5LIGHT LV COND (TO NEXT SUB-MENU) 6MOVE ALL WINDOW (TO NEXT SUB-MENU) LIGHT LV COND SCREEN SAVE 1SIZE Y08(4~32)X08(4~65) 2POSITION (248,232) 3THRESHOLD VALUE U.LM255 L.LM000(0~255) MEAS.AVG.GRA=000.0 4REG AVG.GRAY LV EXEC REG.AVG.GRAY=000.0 Monitor window SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 3-34 F C1 BRT F C1 BRT Setting the Conditions for Each Object Type 4. Select item " SIZE", and item " POSITION", using the up and down keys, and press the SET key. Then, set the size and position of the monitoring window using the direction keys. - The monitoring window should be placed in a location with medium brightness, which does not contain any objects to be measured. - The monitor window is a rectangle 4 to 32 pixels tall and 4 to 64 pixels wide (se in multiples of 4 pixels). The monitor window can be moved one pixel at a time. - The average light level in the monitoring window is displayed on "MEAS.AVG.GRAYS (average measured light level) in item ." [When monitoring changes in the lighting environment] ... If not, go to item 6. 5. Select item " THRESHOLD VALUE", using the up and down keys, and press the SET key. - Select the upper and lower limits using the left and right keys, and set the light level range (0 to 255) using the up and down keys. Then, press the SET key. When the average light level in the monitoring window is out of the preset light level range, "OVR ILLM. RANGE (light level over range)" will be displayed on the MAIN OPS MENU. [When the threshold value for binary conversion is automatically modified to take into account changes in the lighting environment] .... If not, go to item 8. 6. Press the SEL key to enter freeze frame the image. - "F.IMG (freeze)" will be displayed in the upper right corner of the screen. - Before reading and storing the next average light level sample, it is necessary to enter the freeze frame. 7. Select item " REG AVG. GRAY LVL (average light level registration)," using the up and down keys, and press the SET key twice. When the SET key is pressed again, the "REG. AVG. GRAYS (average light level)" will be registered. - This average light level is required when threshold value correction is selected in the binary conversion method. - If the average light level has not been registered, you will see "error 22: BIN MON. LIGHT LVL NOT SET (the light level check function has not been enabled)." - The registered light level is the reference value used when threshold values are modified. - If the current screen is not a frozen image, "CHANGE TO FREEZE MODE (change to freeze)" will be displayed. 8. Move the cursor to the upper function menu by pressing the TRG/BRT key and select the "SAVE" item using the left and right arrow keys. Then press the SET key. - A message "SAVE DATA? (YES = [SET], NO = [ESC])" will appear on the screen. Press the SET key to save the data. After the measurement monitoring function is turned ON and images have been captured, the lighting monitoring function set above will be active. 3-35 3 Setting Measurement Conditions [2] Setting the shutter speed 3 The shutter speed can be set independently for each object type. Since the shutter speed can be set continuously in the range of 1/30 to 1/10,000 of a second, very fine adjustment is possible. - If you want to measure moving objects and increase the image processing speed, set the shutter speed to around 1/1000 or 1/2000 seconds. However, if you use a faster shutter speed than you need, very bright lights will be necessary, and bright lighting is not economical. - For details about the relationship between the brightness of objects (objects to be measured) and the shutter speed, see IV-S30J User's Manual (Introduction and Hardware) "5-1 [2] Illumination and shutter speed." [Example] - When the shutter speed is slow - When the shutter speed is fast (1/60 of a second) (1/1000 of a second) The object is blurred across the screen. The object is frozen on the screen. Setting procedure On the MAIN MENU screen, select "OBJECT TYPE COND," "TYPE00" (current type) and "OBJ-TYPE I/O," in that order. You can specify any value in the range of 1/30 to 1/ 10000 seconds (initial value 1/60) for the shutter speed. 1. Move the cursor to the " SHUTTER SPEED" item on the OBJECT TYPE I/O using the up and down keys, and press the SET key. 2. Press the SET key again, and move the cursor to the digit you want, using the left and right keys. OBJ-TYPE I/O SCREEN SAVE 1TRIG CCD START 2CCD TRIG COND 3SHUTTER SPEED 4SERIAL OUTPUT BIN (TO NEXT SUB MENU) 1/00060(1/30~1/10000) ANY 5CAMNO 6CALIBRATION NO 1(1 2) NO 1/ 00060 This cursor will move to the left and right. 3. Set the value using the up and down keys. 4. Repeat steps 2 and 3 to set each digit. After setting all of the digits, press the SET key. 3-36 F C1 DRK Setting the Conditions for Each Object Type [3] Copying When there are many common parameters between object types, it is most efficient to access those existing sets of parameters in order to copy and then modify them. The parameters of a previously specified object type are copied into another object type, after which they can be modified. The source of the copy The target of the copy The measurement conditions of the source object type. (The data is copied from flash memory) The measurement conditions of the target object type. (The data is used to simplify setting the target object's parameters) Operation procedure On the "MAIN MENU" screen, select "OBJECT TYPE COND" and then "TYPE00" (current type). At this point, press the TRG/BRT key to display the popup menu. Select "COPY" from the popup menu and press the SET key. SELECT OBJECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 OPS-MENU SAVE COPY PASTE DEL SPECIFY NUMBER TITLE SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Notes - Do not disconnect the power while the IV-S30J is copying. - Once data has been corrupted it will be necessary to start after initializing the setting, all over again. Unless this is done it will not be possible to restart the machine. - The reference images used for the gray scale search function are not copied with the operation above. Make sure reset them. 3-37 3 Setting Measurement Conditions [4] Halt on NG measurement You can stop all measurements when an NG image (according to the final evaluation results) occurs while operating the IV-S30J. Select " HALT ON NG MEAS" on the "OBJECT TYPE SYS." menu. 3 1HALT ON NG MEAS OBJ-TYPE SYS. SCREEN SAVE NO 1HALT ON NG MEAS YES YES 2MNTR LIGHT LVL(CAM1) YES NO(NG MEAS DISP) 3LIGHT LV COND (TO NEXT SUB-BENU) 4MNTR LIGHT LVL(CAM2) YES 5LIGHT LV COND (TO NEXT SUB-MENU) 6MOVE ALL WINDOW (TO NEXT SUB-MENU) Description Even if an NG image (final evaluation result) is detected while NO operating the IV-S30J, the system will continue making measurements. When an NG image is detected (according to the final YES evaluation result) while operating the IV-S30J, the controller will stop making measurements. Even if an NG image (final evaluation result) is detected while operating the IV-S30J, the system will continue making NO (NG MEAS DISP) measurements. But, it displays the occurred NG measurements at first. Shown below is an example of an NG image that occurred during measurement 1. (Setting whether to stop measurements when an NG occurs) "No" "Yes" Wait for trigger input Processing measurement 0, camera 1 Processing measurement 0, camera 2 NG occurred Processing measurement 1 - Stops processes of measurements 2 to 4 Processing measurement 2 Processing measurement 3 Processing measurement 4 3-38 F C1 BRT Setting the Conditions for Each Object Type [5] Window group move All the window positions set in the measurement programs for the same object type number can be shifted horizontally by a specified amount as a group. [Example of use] Shift the coordinate positions used as data for another object type. (After copying the data between object types, move the windows as a group.) To set the amount, use " MOVE ALL WINDOW" in the" OBJECT TYPE SYS" menu. 1. While " SELECT CAMERA" is selected, press the up and down arrow keys to select either "CAM1" or "CAM2." Then press the SET key. OBJ-TYPE SYS. SCREEN SAVE F C1 BRT 1HALT ON NG MEAS YES 2MNTR LIGHT LVL(CAM1) YES 3LIGHT LV COND (TO NEXT SUB-BENU) 4MNTR LIGHT LVL(CAM2) YES 5LIGHT LV COND (TO NEXT SUB-MENU) 6MOVE ALL WINDOW (TO NEXT SUB-MENU) MOVE ALL WIN SCREEN SAVE 3 F C1 BRT 1SELECT CAMERA CAM1 2STR COORD POSI MOVE(256,240) COORDINATES STORED 3MOVE ALL WINDOW MOVE(256,240) EXEC 2. Select " STR COORD POSI" (store coordinate position) and press the SET key. Then select "MOVE" by using the left and right arrow keys and finally, press the SET key. 3. Move the cursor (solid line) to the original coordinates before the move using the up, down, left, and right keys, and press the SET key. 4. Select "COORDINATES STORED" using the left and right keys, and press the SET key. After that press the ESC key. The coordinates before the move are now registered. 5. Select " MOVE ALL WINDOW" using the up and down keys and press the SET key. Select "MOVE" using the left and right keys and press the SET key. 6. Move the cursor (dotted line) to the new coordinates you are moving to use the up, down, left, and right keys and press the SET key. Coordinates of the original Distance to move A Coordinates of the new 7. Select "EXEC" (execute) using the left and right keys and press the SET key. All the windows registered to the same object type will be shifted horizontally at the same time by the distance between the original coordinates to the new coordinates. After the move is complete, a "Window group move is complete" message will be displayed. Distance to move A Original window New window - When some part of the window to be moved will move outside of the image display area, the "Out of range" message will be displayed together with the measurement number and register number. In this case, select "Continue" or "Halt." If "Continue" is selected, the window will be shifted to the limit within the image display area. 3-39 Positional Deviation Measurement Chapter 4: Positional Deviation Measurement 4-1 Outline Purpose The gray scale search function and edge detection function* make possible measuring positional deviation as well as the absolute position. - It is also possible to detect the position of sub-pixel units with great accuracy. - A rotation angle of 360 can be detected. (When a one point gray search is selected). Application Used to determine the position of machine parts and substrates. [Determining the location of the positioning (the fiducial mark) mark that identifies the position of the substrate] (1) 1 point search: Detecting the deviation in position in X and Y directions Reference image: Center coordinates (X1,Y1) Inspection Image: Center coordinates (X2,Y2) [Measured result] Center coordinates: (X2,Y2) Amount of deviation: X2-X1, Y2-Y1 Y2-Y1 Search area X2-X1 (2) 2 point search: Determining positional deviation in X and Y directions as well as rotational deviation Reference image a: Center coordinates (Xa1,Ya1) Inspection image a: Center coordinates (Xa2,Ya2) Reference image b: Center coordinates (Xb1,Yb1) Ya2-Ya1 Inspection image b: Center coordinates (Xb2,Yb2) Example Search area (image a) Yb2-Yb1 Xa2-Xa1 Angular deviation: [Measured results] - Center coordinates of image a: (Xa2,Ya2) - Amount of deviation of image a: Xa2-Xa1, Ya2-Ya1 - Center coordinates of image b: (Xb2,Yb2) - Amount of deviation of image b: Xb2-Xb1, Yb2-Yb1 - Deviation angle: Xb2-Xb1 Search area (image b) * Gray scale search / edge detection function Gray scale search: Compares a workpiece image with the 256-level gray-scale reference image to find an area that matches the reference image. - See page G-6 of the User’s Manual (Instruction & Hardware). Edge detection: Finds the boundary between light and dark areas in an image. - See page G-3 of the User’s Manual (Instruction & Hardware). - The deviation angle , determined in the 2-point search, is used to readjust the rotation of the image for measurements 1 to 4. 4-1 4 Positional Deviation Measurement 4-2 Setting operation Setting the measurement conditions 4 Select "MAIN COND" -> "OBJECT TYPE COND" -> "TYPE00" ->"MEA CND (CAMERA1) " -> "MEAS0," in that order. On the " MEAS SELECTION" line, select "POSI-DEVIATION" from the popup menu. Press the ESC key to return to the OBJECT TYPE COND (menu tree) screen, and select the "MEAS CND" item to enter the MEAS CND screen. For details, see "Chapter 8: Setting examples using the menu tree" in Introduction and Hardware. SELECT OBJECT TYPE COND MEASUREMENT0 SCREEN COND SAVE ME OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) 1MEAS SELECTION NO POSI-DEVIATION SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 (POSI-DEVATION) IMG PRE-PROC + MEAS-CND Note: "POSI-DEVIATION" (positional deviation) measurement can be specified in the "MEAS0" (measurement 0) and "MEAS1" (measurement 1) to "MEAS4" (measurement 4) functions. If you choose "MEAS(NEW)," the smallest available measurement number will be chosen automatically ("MEAS1" to "MEAS4"). DTECT PRECISON Select detection precision. You can select one of two levels (standard/high), according to your conditions, the desired precision level for detection results, and the detection speed. For details, see page 3-9. REGISTER NO. Enter a register number. When making positional deviation measurements, you can select any register from 0 to 7 (a total of 8 registers). MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4DTECT ANGL 5ANGLE UNIT 6 7 STANDARD 0(0 7) 1P-SCH 15 10 F C1 BRT STANDARD HIGH NO 1P-SCH 2P-SCH 1P-EDGE 2P-EDGE 1P-SCH+1P-EDGE NO MODE Select a mode for detection. The details of each mode are as follows. SET=SELECT A MENU FOR ESC=BACK SEL=CHNG IMG TRG=FUNC Detection Mode NO (None) 1P-SCH (1-point search) 2P-SCH (2-point search) 1P-EDGE (1-point edge) Details Usable models Does not detect. Detect the positional deviation of one point in the scanned image Model 0 only compared to a single reference image, after performing a gray search. Detect the positional deviation of two points in the scanned image Model 0 and 1 compared to two reference images, after performing a gray search. Detect the positional deviation of one point in the scanned image compared to a single reference image, after performing edge Model 0 only detection. Detect the positional deviation of two points in the scanned image Model 0 and 1 compared to two reference images, after performing edge detection. 2P-EDGE (2-point edge) 1P-SCH + 1P-EDGE Detect the positional deviation of two points, one point after performing (1-point search and Model 0 and 1 a gray search and one point after performing edge detection. 1-point edge) Gray search Edge detection See page 3-9. See page 3-14. 4-2 Positional Deviation Measurement DTECT ANGL and ANGLE UNIT When the "1P-SCH" or "1P-SCH + 1P-EDGE" is selected in " MODE," you can specify angle detection. For details about angle detection, see page 4-12. Select a detection range on the " DTECT ANGL" line and select the units at " ANGLE UNIT." REGISTER NO. ( MDL 0, MDL 1) The specified modes are displayed for each register number on these lines. When a 1-point search or 1-point edge is specified, only " MDL 0" will be available. When a 2-point search, 2-point edge, or 1-point search and 1-point edge is specified, " MDL 1" is also available. The "S" in the table indicates a gray search, and the "E" indicates edge detection. "X" means not used. • An example of mode settings S E REGISTER NO. 6MDL0 7MDL1 Gray search Edge detection No setting REGISTER0 : 2P-SCH REGISTER1 : 1P-SCH REGISTER2 : 1P-SCH + 1P-EDGE REGISTER3 : 2P-EDGE REGISTER4 : 1P-EDGE How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the MEAS CND setting screen, move the cursor to " MDL 0" or " MDL 1" and press the SET key. The cursor will move into the table. Move the cursor to the "S" or "E" column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. About "S" About "E" See pages 4-4 to 6. See pages 4-7 to 8. 2) On the MEAS CND setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG-COND(S)" or "REGCOND(E)" item and press the SET key. About "REG-COND(S)" See pages 4-4 to 6. About "REG-COND(E) " See pages 4-7 to 8. MEAS CND 1DTECT PRECISION 2REGISTER NO. 3MODE 4DTECT ANGL REGISTER NO. 5MDL 0 6MDL 1 F C1 BRT SCREEN COND SAVE STANDARD 0(0~7) 1P-SCH+1P-EDGE NO 0001020304 05 060708 09 1011 12131415 S IMG PRE-PROC REG-COND(S) REG-COND(E) POSITION CORRECTION EVALUATION DST&ANGL NUM-CALC OUT SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 4-3 4 Positional Deviation Measurement 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REGCOND(S)" and "REG-COND(E)" items will appear. Move the cursor to either of these items and press the SET key. 4 About "REG-COND(S)" See pages 4-4 to 6. About "REG-COND(E)" See pages 4-7 to 8. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND 1REGISTER NO. TYPE00 2MEAS SHAPE(MDL0) TYPE01 3SEARCH AREA(MDL0) TYPE RUN COND 4DTECT MODE(MDL0) 5SEARCH DIR(MDL0) IMAGE-ADJ 6THRESHOLDS(MDL0) MEA-CND(CAMERA1) 7REF COORD(MDL0) MEAS0(POSI-DEVIATION) 8MEAS SHAPE(MDL1) IMG PRE-PROC 9SEARCH AREA(MDL1) MEAS CND 0DTECT MODE(MDL1) REG-COND(S) qSEARCH DIR(MDL1) REG-COND(E) wTHRESHOLDS(MDL1) EVALUATION COND eREF COORD(MDL1) DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP [1] Set the register conditions for a gray search MEAS SHAPE Select a window shape to be used for the positional deviation measurement. Select "RECTANGLE," "X-LINE," or "Y-LINE" from the popup menu on the " MEAS SHAPE" line. REG COND 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 0(0 7) RECTANGLE SET 224.208) (287.271 SET 216.200) (295.279 Specify coordinates for the upper left and lower right corners. The window RECTANGLE will be a rectangular area defined by these coordinates. X-LINE Length of a line from the start point to the end point on the X axis. Y-LINE Length of a line from the start point to the end point on the Y axis. F C1 BRT SCREEN COND SAVE DETAIL RECTANGLE X-LINE Y-LINE Search area Object to measure SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC REFIMG ARE Move the cursor to " REFIMG ARE(MDL0)" and press the SET key. When the SET item is highlighted, press the SET key again to bring up the setting screen. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 0(0 7) RECTANGLE SET 224.208) (287.271 SET 216.200) (295.279 Search area Object to measure SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 4-4 Positional Deviation Measurement When a rectangle is selected Specify the upper left and lower right corners of the reference image area. Move the cursor to the " UP.L" and press the SET key. Lines for the X and Y axes will appear on the reference image area (shown as a solid line). Move the X and Y lines to the desired position using the up/down/ left/right arrow keys to set the coordinates for the upper left corner. When correct, press the SET key. - To leave the coordinates at their previous position, press the ESC key. Next, move the cursor to the" LO.R" and press the SET key to determine the lower right corner of the rectangle. The range inside the rectangle of the solid line becomes the reference image. Setting screen (RECTANGLE) RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F C1 BRT UP.L Search area 4 REG-IMG LO.R Reference image area X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC When a horizontal line is selected Specify the start and end points on the X axis. Specify the start and end points using the up/ down/left/right arrow keys. The points will move along the X axis (while keeping the same Y coordinate). Note: Specify a search area longer than the reference image area. Specifying a shorter search area may cause an error message to be displayed. Setting screen (X-LINE) X-LINE RESET RETURN MDL 0 1 2 3MOVE 4REFERENCE IMG F C1 BRT Search area Start point End point Reference image area X:194 Y:344 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC When a vertical line is selected Specify the start and end points on the Y axis. Specify the start and end points using the up/ down/left/right arrow keys. The points will move along the Y axis (while keeping the same X coordinate). Note: Specify a search area longer than the reference image area. Specifying a shorter search area may cause an error message to be displayed. Setting screen (Y-LINE) Y-LINE RESET RETURN MDL 0 1 2 3MOVE End point 4REFERENCE IMG F Search area Reference image area Start point X:199 Y:245 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC 4-5 C1 BRT Positional Deviation Measurement Register a reference image After setting the reference image area, store an image in the controller as a reference image. Select " REFERENCE IMG" using the up/ down arrow keys and select "REG" from the popup menu. RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F C1 BRT CONTRAST SRCH REG DISP 4 X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC CONTRAST SRCH (contrast search) After changing to a gray search, automatically search for the area with the most features (maximum contrast) in the captured image. REG (register) Store the currently displayed image as a reference image. DISP (display) Select any one of the registered reference images using the up/down/left/right arrow keys, the selected reference image will be displayed in the lower right of the screen. SEARCH ARE Specify the search area (inside the dotted lines) on the " SEARCH ARE (MDL0)" line, using the same procedures used for setting the reference image area. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 0(0 7) RECTANGLE SET 224.208) (287.271 SET 216.200) (295.279 If you are selecting a 2-point search, also set the points the same way as for MDL1. Search area Object to measure SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC An example of storing - This is an example of a 2-point search when the detection shape is a rectangle. Model 1 Model 0 Reference image (model 1) Reference image Search area (model 1) (Model 0) Search area (Model 0) Note: When setting the horizontal and vertical lines, specify the line length as follows: The reference image must shorter than the search area lines. 4-6 Positional Deviation Measurement REFIMG Move the cursor to the function menu on the REG COND screen by pressing the TRG/BRT key. Move the cursor to "DETAIL." Press the SET key on the "REFERENCE IMG" line in the popup menu. The white square on the left will change to a black square. Then, the " REF IMG" item will appear on the screen. - You can use the same procedures to show "DTECT CRD" (detection coordinates) and "CONTR.PIXL" (contraction pixels) on the screen. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 5REFIMG (MDL0) 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 0(0 7) RECTANGLE SET (224.208) (287.271) SET (216.200) (295.279) 001(000~001) CENTER (250.229) 1 DTECT CRD CONTR.PIXL Make to on the popup menu, the respective item will be added to the "REG COND" menu. SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC On the " REF IMG" line, select a reference image from the reference images already registered. Ex : 015 (000 to 026) Select reference image No. 15 from the 26 registered reference images (000 to 026). DTECT CRD (detection coordinates) Select whether to use the detection coordinates as the center of the reference area or to allow the point to be set freely. CONTR.PIXL (contraction pixels) When "RECTANGLE" was selected at " MEAS SHAPE," you can select items 1 to 3 below. When " X-LINE" or "Y-LINE" was selected, you can select items 1 or 2 below. 1: Search the image in units of 2 pixels. 2: Search the image in units of 4 pixels. 3: Search the image in units of 8 pixels. [2] Setting the register conditions for edge detection MEAS SHAPE (MDL 1) Select a measurement shape. REG COND 1 RECTANGLE Select a pattern to be LINE (straight line) used for image CIRC-L (circle) processing. ELIP-L (ellipse) See pages 3-4 to 3-8. NO ARTF/ARTIF: Select whether to detect edge or not with average density. See page 3-15. SEARCH AREA Select " SEARCH AREA (MDL1)" and press the SET key to go to the setting screen. F C1 BRT SCREEN COND SAVE 0(0 7) RECTANGLE (NO ARFT) RECTANGLE (ARFT) LINE CIRC-L ELIP-L CHNG POINT DRK DRK CENT( CENT(DRK 2MEAS SHAPE (MDL1) 3SEARCH ARE (MDL1) 4DTECT MODE (MDL1) 5SEARCH DIR(MDL1) 6THRESHOLD(MDL1) 7REF COORD(MDL1) RECTANGLE (NO ARFT) SET (224.208) (287.271) CHNG POINT HORIZ ( SET (D:050 E:2 F:04) SET KEY(512.480) SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 4-7 HORIZ ( HORIZ ( 4 Positional Deviation Measurement When a rectangle is selected Highlight " UP.L" and press the SET key. The X and Y axes will appear in the detection area. Move the X/Y axes using the up/down/left/right arrow keys to identify the upper left corner. When correct, press the SET key. - To return to the previous coordinates, press the ESC key. Next, highlight " LO.R" and press the SET key. Identify the lower right corner the same way. Setting screen (RECTANGLE) RECTANGLE MDL 0 1 2 3MOVE RESET RETURN F 4 DTECT MODE Select an image processing method for the edges. CHNG POINT DRK -> BRT See page 3-14. BRT -> DRK CENT (BRT) CENT (DRK) X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC SEARCH DIR Specify a search direction. The direction for searching varies with each detection shape. When "RECTANGLE" is selected Horizontal Scan the reference line from left to right Horizontal Scan the reference line from left to right Vertical Scan the reference line from top to bottom Vertical Scan the reference line from bottom to top When "LINE" is selected Start point End point Scan along a straight line from the starting point to the end point End point Start point Scan along a straight line from the end point to the starting point When "CIRC-L" or "ELIP-L" is selected Clockwise direction Scan around the circumference clockwise Counter-clockwise direction Scan around the circumference counter-clockwise For details, see page 3-14. THRESHOLD Specify a threshold value for binary conversion. For details, see page 3-10. Edge width Flat width Light level Density difference Automatic setting Select "AUTO-REG" from the upper function menu on the THRESHOLD setting screen. The controller will set the optimum value automatically. For details, see page 3-15. REF COORD (reference coordinates) You can change the reference coordinates to any desired position. 4-8 C1 BRT Positional Deviation Measurement Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the MEAS COND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the EVALUAT COND screen. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4DTECT ANGL 5ANGLE UNIT STANDARD 0(0 7) 1P-SCH NO 6 7 F C1 BRT IMG PRE-PROC REG-COND(S) REG-COND(E) POSITION CORRECTION EVALUATION DST&ANGL NUM-CALC OUT SET=SELECT A MENU FOR ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the Menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND REG-COND(S) REG-COND(E) EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. 1REGISTER NO. 2CONDITION SET 3X COORD.(MDL0) 4Y COORD.(MDL0) 5x DEVAITE(MDL0) 6y DEVAITE(MDL0) 7MATCH LVL(MDL0) 8TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND" (evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. EVALUAT COND SCREEN COND SAVE EDIT SEL 0(0~7) AUTO(–10%) 000.0~511.0 000.0~479.0 -511.0~+511.0 -479.0~+479.0 -10000~+10000 8TEST EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) [TEST RESULT] [OUTPUT] X0= Y0= x0= y0= M0= NO NO NO NO NO SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 4-9 F C1 BRT 1REGISTER NO. 2CONDITION SET 3X COORD.(MDL0) 4Y COORD.(MDL0) 5x DEVAITE(MDL0) 6y DEVAITE(MDL0) 7MATCH LVL(MDL0) 4 Positional Deviation Measurement Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculations." Output condition setting 4 - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions. Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. 1P-SCH+1P-EDGE (TYPE00) F C1 BRT V*.** OK MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION Registration number Detection coordinates in the reference image for model 0 Amount of deviation from the reference image for model 0 Degree of match with the reference image for model 0 Amount of angular deviation Detection coordinates in the reference image for model 1 Amount of deviation from the reference image for model 1 Degree of match with the reference image for model 1 REGISTER NO(0~7) X0=176.0 OK Y0=322.0 OK x0=+000.0 OK y0=+000.0 OK M0=+10000 OK B0=+001.7 OK X1=534.0 OK Y1=480.0 OK x1=+001.0 OK y1=+001.0 OK K1=1 X0~6 Y0~7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE For display examples of measurement results using other modes, see the next page. 4-10 Positional Deviation Measurement The displays for other modes are shown in the next page. Ë 1-point search Registration number REGST NO. 0(0~7) Detection coordinates in the reference image for model 0 X0=176.0 OK Y0=322.0 OK Amount of deviation from the reference image for model 0 Degree of match with the reference image for model 0 * Rotation angle x0=+000.0 OK y0=+000.0 OK 4 M0=+10000 OK B0=+002.6 OK * Angle will be displayed when "DTECT ANGL" is set to "YES." Ë 2-point search Registration number REGST NO. 0(0~7) Detection coordinates in the reference image for model 0 X0=176.0 OK Y0=322.0 OK Amount of deviation from the reference image for model 0 Degree of match with the reference image for model 0 Amount of angular deviation x0=+000.0 OK y0=+000.0 OK Coordinates in the detect point for model 1 Amount of deviation in the detect point for model 1 The number of the detect point for model 1 M0=+10000 OK B0=+001.7 OK X1=534.0 OK Y1=480.0 OK x1=+001.0 OK y1=+001.0 OK K1=1 OK Ë 1-point edge Registration number Coordinates in the detect point for model 1 Amount of deviation in the detect point for model 1 The number of the detect point for model 1 REGST NO. 0(0~7) X0=176.0 OK Y0=322.0 OK x0=+000.0 OK y0=+000.0 OK K0=1 OK B0= Ë 2-point edge Registration number REGST NO. 0(0~7) Coordinates in the detect point for model 0 X0=176.0 OK Y0=322.0 OK Amount of deviation in the detect point for model 0 The number of the detect point for model 0 Amount of angular deviation x0=+000.0 OK y0=+000.0 OK K0=1 OK B0=+001.7 OK X1=534.0 OK Coordinates in the detect point for model 1 Y1=480.0 OK Amount of deviation in the detect point for model 1 x1=+001.0 OK y1=+001.0 OK The number of the detect point for model 1 K1=1 OK 4-11 Model 1 Model 0 Positional Deviation Measurement Angle detection You can detect the angle of an object by selecting 1P-SCH (1-point search) in the POSI-DEVIATION item (measurement 0 to 4) . (1) Angle detection by object shape There are some objects whose angle cannot be detected, due to the shape of the object and the compression level used for the gray scale search, as shown in the table below. Object shape Difficulty level Angle detection 4 The angle cannot be detected. The angle can be detected using a compression level of 2 for the gray scale search. The angle can be detected. - The information given above is true when the measurement conditions are as follows: the size of the reference image to be registered is approximately 64 X 64, and the search size is approximately 100 X 100. (2) Setting method On the [MEAS CND] screen, select the "1P-SCH" or "1P-SCH+1P-EDGE" mode on the " MODE" and then select the " DTECT ANGL" item. See page 4-2. MEAS CND 1 2 3 SCREEN COND SAVE 1DTECT PRECISION 2 3 4DTECT ANGL 5ANGLE UNIT 6 7 STANDARD 0(0 7) 1P-SCH NO F C1 BRT STANDARD HIGH NO 1P-SCH 2P-SCH 1P-EDGE 2P-EDGE 1P-SCH+1P-EDGE Note: When the rotation angle detection is set other than "NO," the "HIGH PRECISION" selection will be invalid. (The detection precision is fixed to the "STANDARD.") NO SET=SELECT A MENU FOR ESC=BACK SEL=CHNG IMG TRG=FUNC 1. Select the "1P-SCH" or "1P-SCH+1P-EDGE" mode on the " MODE". 2. Select the angle search range (±15˚, ±30˚, ±45˚, ±360˚) on the " DTECT ANGL" item. The larger the angle search range, the slower the processing will be. 3. Select a rotation step size in degrees in " ANGLE UNIT," using the up and down keys. The relationship between the detection range (unit) of the rotation angle and the reference images to be created is shown below: Rotation angle Reference image created Detection Unit Rotation angle range 1 -17, -16, -15, -14, • • • • • • • • +14, +15, +16, +17 ±15˚ Quantity 35 3 -21, -18, -15, -12, • • • • • • • • +12, +15, +18, +21 15 5 10 -25, -20, -15, -10, -5, 0, +5, +10, +15, +20, +25 -15, -10, 0, +10, +15 11 5 To the next page 4-12 Positional Deviation Measurement Rotation angle Reference image created DetectioUnit n range 2 ±30˚ ±45˚ Full angle Rotation angle Quantity -34, -32, -30, -28, • • • • • • • • +28, +30, +32, +34 35 3 -36, -33, -30, -27, • • • • • • • • +27, +30, +33, +34 25 5 -40, -35, -30, -25, • • • • • • • • +25, +30, +35, +40 17 6 -42, -36, -30, -24, • • • • • • • • +24, +30, +36, +42 15 10 -30, -20, -10, 0, +10, +20, +30 3 -51, -48, -45, -42, • • • • • • • • +42, +45, +48, +51 35 +40, +45, +50, +55 23 7 5 -55, -50, -45, -40, • • • • • • • • 10 -45, -40, -30, -20, -10, 0, +10, +20, +30, +40, +45 11 10 -170, -160, -150, • • • • • • 36 +150, +160, +170, +180 4. On the settings for the gray scale search conditions (page 4-4), register the object by surrounding it with a square window, regardless of the shape of the object to be measured. Example Image to register When triggered to store the reference image, the system will store various views of the object in memory by rotating the image, 10 degrees at a time. When the angle range is set to –360˚ (Rotation angle unit : 10) . . . Reference image . . 0 10 20 180 -170 -10 5. Specify a search area that is large enough to include various positional deviations of the object. Reference image area Search area 6. When starting the measurement, the system will execute a gray scale search of the captured image based on the stored reference images, which were created by rotating the basic image, 10 degrees at a time in step 3 above. Define the position using the curve interpolation. Degree of match Captured image 10 20 30 40 50 Degree of match curve 60 70 Rotation angle Note: When "NO" is selected for the "DTECT ANGL" (rotation angle detection) in the previous page after registering the reference image, a "Reference image condition mismatch" error will occur when executing the measurement. 4-13 4 Degree of Match Inspection Chapter 5: Degree of Match Inspection 5-1 Outline Purpose The gray search function is capable of finding the differences between the nondefective reference image and the image to be inspected evaluating the degree of match. (The acceptability of the workpiece is evaluated based on its level of similarity to the reference model.) Checking for misalignment of labels, checking for entry of wrong parts, checking Applications that electronic components have been precisely mounted on PC boards, checking for misprints, checking for missing metallic parts, such as terminals, and simple inspection of lettering [Checking for label misalignment on package] Search area for positioning Reference image for positioning SERIAL NO. 8F053G26 MODEL IV-S30J Search area for positioning SERIAL NO. 8F053G26 MODEL IV-S30J Reference image for positioning Examples Reference image for checking Reference image for checking çUnacceptable application of label çAcceptable application of label [Measurement results] - Degree of match compared with the reference image - Detected coordinates (X/Y) of the measurement image. - Light level in the measured image (average light level/absolute value of difference) - Checking sequence 1 A gray search for the reference image for positioning is made. 2 After the position of the reference image for checking is corrected based on the coordinates of the reference image for positioning found in step 1, the degree of match is determined. 3 If the degree of match of the reference image for checking is low, the label is regarded as applied incorrectly. 5-1 5 Degree of Match Inspection 5-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. 5 SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "CHKDEG-MATCH" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT CHK-DEG-MATCH NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the OBJECT TYPE COND (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (CHK-DEG-MATCH)" to go to the MEAS CND screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 5-2 Degree of Match Inspection Setting the measurement conditions DTECT PRECISON Select detection precision. You can select one of two levels (standard/high), according to your conditions, the desired precision level for detection results, and the detection speed. For details, see page 3-10. REGISTER NO. 16 registers are available for the degree of match inspection (Registers 0 to 15). If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4SEARCH 5MATCHING STANDARD 00(0 15) 2P-SCH YES AVG-GRAYS F C1 BRT STANDARD HIGH NO 1P-SCH 2P-SCH 6 7 AVG-GRAYS DIFF.ABS YES NO 5 SET=SELECT A MENU FOR ESC=BACK SEL=CHNG IMG TRG=FUNC MODE Select a detection mode. Detail of each mode are as follows. MODE Details NO (None) Does not detect. 1P-SCH Detect the positional deviation of one point in the scanned image (1-point search) compared to a single reference image, after performing a gray search. 2P-SCH Detect the positional deviation of two points in the scanned image (2-point search) compared to two reference images, after performing a gray search. Gray search See page 3-9. SEARCH Specify whether or not to use the search function. MATCHING Select a density for comparison when inspecting the image. The details are as follows. Description Average light level Obtain average light level of the image in the area detected using the gray search. Difference absolute value Calculate the difference of the absolute values from the image detected using the gray search and the reference image. The result is light level difference. By obtaining this value, you can get an idea of the total change in light level. Total light level difference = S (Ni — Nt) Ni : Light level of the captured image (contraction 3) Nt : Light level of the reference image (contraction 3) REGISTER NO. ( MDL 0, MDL 1) The specified modes are displayed for each register number on these lines. When a 1-point search is specified, only " MDL 0" will be available. When a 2-point search is specified, " MDL 1" is also available. The "S" in the table indicates a gray search. "X" means not used. An example of mode selection S REGISTER NO. 6MDL0 7MDL1 REGISTER00 : 1P-SCH REGISTER01 : 2P-SCH 5-3 Gray search No setting Degree of Match Inspection How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEAS CND" setting screen, move the cursor to " MDL 0" or " MDL 1" and press the SET key. The cursor will move into the table. Move the cursor to the "S" column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4SEARCH 5MATCHING STANDARD 00(0~15) 2P-SCH YES AVG-GRAYS F C1 BRT IMG PRE-PROC REG-COND EVALUATION DST&ANGL NUM-CALC OUT 6 7 5 2) On the "MEAS CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG-COND" item and press the SET key. 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REGCOND" items will appear. Move the cursor to this item and press the SET key. SELECT OBJECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(CHK-DEG-MATCH) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O 1REGISTER NO. 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) (MDL0) 5REFIMG 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 8MEAS SHAPE (MDL1) 9REFIMG ARE (MDL1) 0SEARCH ARE (MDL1) (MDL1) qREFIMG wDTECT CRD (MDL1) eCONTR.PIXL (MDL1) SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP How to set register conditions REGISTER NO. The currently selected register number is displayed. If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. MEAS SHAPE(MLD0) Select a shape (rectangle, horizontal line, or vertical line) for the reference image area and search area. For details about each shape, see pages 3-4 to 3-8. 5-4 REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 5REFIMG (MDL0) 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 0(0 7) RECTANGLE SET (224.208) (287.271) SET (216.200) (295.279) 001 (000~001) CENTER (250.229) 1 8MEAS SHAPE (MDL1) 9REFIMG ARE (MDL1) 0SEARCH ARE (MDL1) qREFIMG (MDL1) wDTECT CRD (MDL1) eCONTR.PIXL (MDL1) RECTANGLE SET (224.208) (287.271) SET (216.200) (295.279) 001 (000~001) CENTER (250.229) 1 RECTANGLE X-LINE Y-LINE DTECT COORD CONTR.PIXEL Make to on the popup menu, the respective item will be added to the "REG COND" menu. SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Degree of Match Inspection REFIMG ARE (MDL0) Move the cursor to " REFIMG ARE(MDL0)" and press the SET key. When the SET item is highlighted, press the SET key again to bring up the setting screen. When a rectangle is selected Specify the upper left and lower right corners of the reference image area. Setting screen (RECTANGLE) RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F C1 BRT Reference image of MDL0 Detection image of MDL0 Search area of MDL0 5 SERIAL NO. 8F053G26 MODEL IV-S30J Reference image of MDL1 Detection image of MDL1 Search area of MDL1 X:224 Y:139 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC When a horizontal line is selected Specify the start and end points on the X axis. Specify the start and end points using the up/down/left/right arrow keys. The points will move along the X axis (while keeping the same Y coordinate). Setting screen (X-LINE) X-LINE RESET RETURN MDL 0 1 2 3MOVE 4REFERENCE IMG Crosshair cursor (detection coordinate) Solid line (reference line) Dotted line (search line) F SERIAL NO. 8F053G26 MODEL IV-S30J X:194 Y:245 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC 5-5 C1 BRT Degree of Match Inspection When a vertical line is selected Specify the start and end points on the Y axis. Specify the start and end points using the up/down/left/right arrow keys. The points will move along the Y axis (while keeping the same X coordinate). Setting screen (Y-LINE) Y-LINE RESET RETURN MDL 0 1 2 3MOVE 4REFERENCE IMG F C1 BRT Crosshair cursor (detection coordinate) Solid line (reference line) Dotted line (search line) SERIAL NO. 8F053G26 MODEL IV-S30J 5 X:194 Y:344 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC Register a reference image After setting the reference image area, store an image in the controller as a reference image. Select " REFERENCE IMG" using the up/ down arrow keys and select "REG" from the popup menu. RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F C1 BRT CONTRAST SRCH REG DISP SERIAL NO. 8F053G26 MODEL IV-S30MX IV-S30J X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC SEARCH ARE Specify the search area (inside the dotted lines) on the " SEARCH ARE (MDL0)" line, using the same procedures used for setting the reference image area. Note: Set the menu for MDL1. Setting procedures are the same as MDL0. RECTANGLE MDL 0 1 2 3MOVE RESET RETURN F SERIAL NO. 8F053G26 MODEL IV-S30MX IV-S30J X:224 Y:139 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC 5-6 C1 BRT Degree of Match Inspection REFIMG On the " REF IMG (MDL0)" line, select a reference image from the reference images already registered. Ex. 015 (000 to 026) Select reference image No. 15 from the 26 registered reference images (000 to 026). Note: This item is displayed only when the "REFERENCE IMG" is selected on the "DETAIL" in the upper function menu. See page 5-4. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 5REFIMG (MDL0) 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 00 (0 15) RECTANGLE SET (131.122) (217.201) SET (119.114 (224.214) 15 (000~026) CENTER (176.164) 1 8MEAS SHAPE (MDL1) 9REFIMG ARE (MDL1) 0SEARCH ARE (MDL1) qREFIMG (MDL1) wDTECT CRD (MDL1) eCONTR.PIXL (MDL1) RECTANGLE SERIAL NO. SET (224.208) (372.349) 8F053G26 MODEL (381.368) SET (276.259) IV-S30J 003 (000~026) CENTER (334.313) 3 5 SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC DTECT CRD (detection coordinates) Select whether to use the detection coordinates as the center of the reference area or to allow the point to be set freely. Note: This item is displayed only when the "DTECT COORD" is selected on the "DETAIL" in the upper function menu. See page 5-4. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 5REFIMG (MDL0) 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 00 (0 15) RECTANGLE SET (131.122) (217.201) SET (119.114 (224.214) 003 (000~026) CENTER (176.164) 1 8MEAS SHAPE(MDL1) 9REFIMG ARE (MDL1) 0SEARCH ARE (MDL1) qREFIMG (MDL1) wDTECT CRD (MDL1) eCONTR.PIXL (MDL1) RECTANGLE SERIAL NO. SET (224.208) (372.349) 8F053G26 MODEL SET (276.259) (381.368) IV-S30J 003 (000~026) CENTER (334.313) 3 CENTER SET SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC CONTR.PIXL Select "CONTR.PIXL" (pixel contraction). Note: This item is displayed only when the "CONTR.PIXEL" is selected on the "DETAIL" in the upper function menu. See page 5-4. For detail about the "CONTR.PIXEL," see page 3-9. REG COND SCREEN COND SAVE DETAIL 1 2MEAS SHAPE (MDL0) 3REFIMG ARE (MDL0) 4SEARCH ARE (MDL0) 5REFIMG (MDL0) 6DTECT CRD (MDL0) 7CONTR.PIXL (MDL0) 00 (0 15) RECTANGLE SET (131.122) (217.201) SET (119.114 (224.214) 003 (000~026) CENTER (176.164) 1 8MEAS SHAPE(MDL1) 9REFIMG ARE (MDL1) 0SEARCH ARE (MDL1) qREFIMG (MDL1) wDTECT CRD (MDL1) eCONTR.PIXL (MDL1) RECTANGLE SERIAL NO. SET (224.208) (372.349) 8F053G26 MODEL SET (276.259) (381.368) IV-S30J 003 (000~026) CENTER (334.313) 3 SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 5-7 F C1 BRT Degree of Match Inspection Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the "MEAS COND" (or "REG COND") screen and press the SET key. Select "EVALUATION" on the popup menu to go to the "EVALUAT COND" screen. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4SEARCH 5MATCHING F C1 BRT IMG PRE-PROC REG-COND EVALUATION DST&ANGL NUM-CALC OUT STANDARD 00(0~15) 2P-SCH YES AVG-GRAYS 6 7 5 SET=REG COND FOR ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(CHK-DEG-MATCH) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O 1REGISTER NO. 2CONDITION SET 3MATCH LVL(MDL0) 4XCOORD.(MDL0) 5Y COORD.(MDL0) 6GRAY LVL(MDL0) 7MATCH LVL(MDL1) 8X COORD.(MDL1) 9Y COORD.(MDL1) 0GRAY LVL(MDL1) qTEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND" (evaluation conditions) will appear. For details about "EVALUAT COND," see page 3-17. EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET‘ 3MATCH LVL(MDL0) 4X COORD.(MDL0) 5Y COORD.(MDL0) 6GRAY LVL(MDL0) 00(0~15) AUTO(–10%) -10000~+10000 000.0~511.0 000.0~479.0 000.0~255.0 7MATCH LVL(MDL1) 8X COORD.(MDL1) 9Y COORD.(MDL1) 0GRAY LVL(MDL1) qTEST -10000~+10000 M1= NO 000.0~511.0 X1= NO 000.0~479.0 Y1= NO 000.0~255.0 G1= NO EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) [TEST RESULT] [OUTPUT] M0= X0= Y0= G0= NO NO NO NO SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 5-8 F C1 BRT Degree of Match Inspection Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numeric calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 15: Set the Input/Output Conditions." 5 Display the inspection results Return to the operation screen and press the TRG/BRT key. The inspection results will be displayed on the screen. When a 2 point search has been specified F C1 DRK V*.** (TYPE00) OK Final evaluation result Measuring time Measurement program number MEAS XXXXms Model 0 MEASUREMENT 1 CHK-DEG-MATCH Registration number Degree of match with the reference image for model 0 Detection coordinates for model 0 Average gray level in the reference image for model 0* Degree of match with the reference image for model 1 Detection coordinates for model 1 Average gray level in the reference image for model 1* REGISTER N00(0~15) M0=+09878 OK X0= 288.0 OK Y0= 190.0 OK G0= 023.0 OK SERIAL NO. 8F053G26 MODEL IV-S30J M1=+09306 OK Model 1 X1= 389.0 OK Y1= 355.0 OK G1= 023.0 OK X0 6 Y0 7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 5-9 Lead Inspection Chapter 6: Lead Inspection 6-1 Outline Purpose Inspect the condition of IC leads and connector pins based on positional information obtained from the gray scale search function. (No. of leads or pins that can be detected: Max. 128 pieces) Applications Inspect IC leads or connector pins Inspect the layout of the IC leads and connector pins K1 D2 K2 L3 K0 D1 L1 L0 D0 L2 Lead measurement limit line Lead K3 Reference line Examples W0 W1 W2 [Lead inspection] - Number of leads K - D0 to D2: Distance between leads - W0 to W3: Lead width - L0 to L3: Lead length W3 Inspection procedure 1 Determine the measurement points (K0 to K3) from the mid points of the leads and the reference line. 2 Calculate the maximum and minimum distances between the leads (D0 to D2) on the reference line. 3 Calculate the maximum and minimum lead lengths (L0 to L3), starting from the measurement points (K0 to K3) and measuring toward the lead measurement limit line. 4 Calculate the maximum and minimum lead widths (W0 to W3) from the measurement points. 6-1 6 Lead Inspection 6-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" -> "TYPE00" ->"MEA-CND (CAMERA1) " -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. 6 SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "INSPECT-LEAD" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT INSPECT-LEAD NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the "OBJECT TYPE COND" (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (INSPECT-LEAD)" to go to the "MEAS CND" screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in Introduction and Hardware. 6-2 Lead Inspection Setting the measurement conditions REGISTER NO. 16 registers are available for the lead inspection (Registers 0 to 15). If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. MEAS CND SCREEN COND 1REGISTER NO. 00(0 15) 2REGISTER EXIST YES 3DTECT PRECISION STANDARD SAVE F C1 BRT NO YES STANDARD HIGH REGISTER NO. 4MEAS OBJECT LEAD LENGTH REGISTER EXIST Select whether to register or not. 6 DTECT PRECISON Select detection precision. You can SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC select one of two levels (standard/high), according to your conditions, the desired precision level for detection results, and the detection speed. For details, see page 3-9. REGISTER NO. ( MEAS OBJECT, LEAD LENGTH) Register setting conditions are shown for each register number. Circles mean that "REGISTER NO." has set to "YES." Æ Setting (display) of items to be inspected REGISTER NO. 4MEAS OBJECT LEAD LENGTH X : No setting When item "2REGISTER EXIST" has set "YES," a circle is displayed. On the "REG COND" screen, when the "7EXTENSION MEAS" is set to "LEAD-LENGTH," or "BALL-WIDTH," a circle is displayed. How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the MEAS CND setting screen, move the cursor to " MEAS OBJECT" and press the SET key. The cursor will move into the table. Move the cursor to the " " column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. 2) On the "MEAS CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG-COND" item and press the SET key. MEAS CND SCREEN COND SAVE F C1 BRT 1REGISTER NO. 00(0 15) 2REGISTER EXIST YES 3DTECT PRECISION STANDARD REGISTER NO. 4MEAS OBJECT LEAD LENGTH IMG PRE-PROC REG-COND EVALUATION NUM-CALC OUT SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 6-3 Lead Inspection 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to either of these items and press the SET key. 6 SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND (CAMERA1) MEAS0 POSI-CORRECT MEAS01 (INSPECT-LEAD) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. 1REGISTER NO. 2DTECT SHAPE 3SEARCH AREA 4DTECT MODE 5SEARCH DIRECT 6THRESHOLD SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Set the register conditions REGISTER NO. The currently selected register number is displayed. If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. DTECT SHAPE Select a detection shape. Three shapes are available: "RECT(ARTIFACT)," "LINE," and "CIRC-L." Depending on which item is selected, the choices on lines " SEARCH AREA" and " SEARCH DIRECT" will change. REG COND SCREEN COND SAVE DATAIL 1REGISTER NO. 00(0 15) 2DTECT SHAPE RECT(ARTIFACT) 3SEARCH AREA SET(224,208) (287,271) 4DTECT MODE CENT(BRT) 5SEARCH DIRECT HORIZ( ) 6THRESHOLD SET(D:050 E:2 F:04) 7EXTENSION LEAD-LENGTH 8EXT.MEAS DIRECT VERTY=+000 F C1 BRT RECT(ARTIFACT) LINE CIRC-L CENT(BRT) CENT(DRK) HORIZ HORIZ VERT VERT NO LEAD-LENGTH BALL-WIDTH SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Specify the coordinates of the upper left and lower right corners. The controller RECT will detect an edge inside this rectangle. For details about processing artifacts, (ARTIFACT) see page 3-15. LINE Specify the coordinates of the starting and end points. The controller will detect an edge along this straight line. CIRC-L Specify the coordinates of the center and radius. The controller will detect an edge inside this circle. SEARCH AREA Specify a search area. Move the cursor to this line and press the SET key. The currently SET item will be highlighted. Press the SET key again to enter the setting screen. When the "RECT (ARTIFACT)" is selected Specify the upper left and lower right corners of the rectangular search area. 6-4 UP.L LO.R Lead Inspection When the "LINE" is selected Specify the coordinates of the starting and end points. Start point End point When the "CIRC-L" is selected Specify the coordinates of the center, radius, and starting point. Center Radius 6 DTECT MODE Select a detection mode. CENT(DRK) Detect the center of a dark area found by the detection search. CENT(BRT) Detect the center of a bright area found by the detection search. Search direction CENT(BRT) CENT(DRK) SEARCH DIRECT (search direction) Specify a search direction. The direction for searching varies with each detection shape. When "RECTANGLE" is selected Horizontal Scan along the reference line from left to right Horizontal Scan along the reference line from left to right Vertical Scan along the reference line from top to bottom Vertical Scan along the reference line from bottom to top When "LINE" is selected Start point End point Scan along a straight line from the starting point to the end point End point Start point Scan along a straight line from the end point to the starting point When "CIRC-L" or "ELIP-L" is selected Clockwise direction Scan around the circumference clockwise Counter-clockwise direction Scan around the circumference counter-clockwise 6-5 Lead Inspection Ë Example of settings - Example when DTECT MODE (detection mode) is set to "CENT (BRT)" (center dark) and SEARCH DIRECT (search direction) is set to "HORIZ (horizontal)." A Center point B Edge Reference line Edge Flat width width Difference in light Brightness A 6 Direction B - Example when DTECT MODE (detection mode) is set to "CENT (DRK)" (center dark) and SEARCH DIRECT (search direction) is set to "HORIZ (horizontal)." A Center point B Edge Difference in light Brightness A Reference line Edge Flat width width Direction B THRESHOLD Specify a threshold value. Move the cursor to this line and press the SET key. The currently SET item will be highlighted. Press the SET key again to enter the setting screen. Move to each of the following items and press the SET key: " GRYS." (difference of gray level) " EDGE.W" (edge width), and " FLAT.W" (flat width). The current value for that item will be highlighted and it can be changed using the up and down keys. After the value is correct, press the ESC key to confirm it. The values above can be reset to an appropriate level automatically. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "AUTO-REG". Then press the SET key to set the levels automatically. For details, see page 3-15. EXTENSION MEAS, EXT. MEAS DIRECT Extension measurements can be made for "LEAD-LENGTH" or "BALL-WIDTH" in line " EXTENSION MEAS. Then, the " EXT. MEAS DIRECT" item will appear. At the " EXT. MEAS DIRECT" item, set the position for the extension measurement direction, relative to the reference line. Lead length Measurement range of lead length Decide the position using "8EXT. MEAS DIRECT." Reference line Note: This line is only displayed when "RECT" or "LINE" was selected for the "DTECT SHAPE." To display this line, move the cursor to the upper function menu and select "DETAIL." Press the SET key and select "EXTENSION MEAS" from the popup menu. Then press the SET key. 6-6 Lead Inspection Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the "MEAS CND" (or "REG COND") screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the "EVALUAT COND" screen. MEAS CND SCREEN COND SAVE F C1 BRT 1REGISTER NO. 00(0 15) 2REGISTER EXIST YES 3DTECT PRECISION STANDARD REGISTER NO. 4MEAS OBJECT LEAD LENGTH IMG PRE-PROC REG-COND EVALUATION NUM-CALC OUT 6 SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND (CAMERA1) MEAS0 POSI-CORRECT MEAS01 (INSRECT-LEAD) IMG PRE-PROC MEAS CND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4DISTANCE 5LEAD WIDTH 6LEAD LENGTH 7TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND" (evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 00(0~15) AUTO( 10%) 000~128 [TEST RESULT] [OUTPUT] K= NO 4DISTANCE 000.0~702.0 D= NO 5LEAD WIDTH 000.0~702.0 W= NO 6LEAD LENGTH 000.0~702.0 L= NO 7TEST EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 6-7 F C1 BRT Lead Inspection Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numeric calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Set the Input/Output Conditions." Display the measurement results 6 Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. Example when a straight line is selected as measurement shape (TYPE00) F C1 DRK V*.** Final evaluation result OK Measuring time Measurement program number Registration number for the measurement conditions Number of leads MEAS XXXXms MEASUREMENT 1 INSPECT-LEAD REGISTER N00(0~15) K=005 OK Distance between leads (maximum/minimum in pixels) Lead width (maximum/minimum in pixels) D=048.0 OK Lead length (maximum/minimum in pixels) L=034.0 OK 046.0 OK W=017.0OK 016.0OK 032.0 OK X0 Y0 7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 6-8 Area Measurement by Binary Conversion Chapter 7: Area Measurement by Binary Conversion 7-1 Outline Purpose This function is used to determine the existence and or size of a workpiece when the workpiece is always found in the same place or when it has a fixed measurement position. - This function measures the area of the white field after the image has been converted to binary values (i.e. black and white). Checking for correctly inserted ball bearings, preventing foreign objects from becoming mixed in with parts being processed, distinguishing between different Applications types of waterproof lids, checking the existence of labels on packages, checking the printing on electric cables, checking for adequate coatings of grease and checking the existence of frozen foods. [Measurement result] - The area of the workpiece Examples Workpiece - Checking sequence Capture an image Convert it to binary 7-1 Measure (area) 7 Area Measurement by Binary Conversion 7-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS1 MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION 7 =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "MEASBIN-AREA" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT MEAS-BIN-AREA NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the OBJECT TYPE COND (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01(MEAS-BIN-AREA)" to go to the MEA-CND screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 7-2 Area Measurement by Binary Conversion WINDOW Select a window type. On the popup menu, move the cursor any of "NUM-OFMASK1,2,4," "BINARY-IMG-MASK," or "POLYGON," and press the SET key to select the item. MEA-CND 1 2REGISTER NO. 3REGISTER EXIST SCREEN COND SAVE NUM-OF-MASK 1 00(0 15) NO F C1 BRT NUM-OF-MASK 1 NUM-OF-MASK 2 NUM-OF-MASK 4 BINARY-IMG-MASK POLYON REGISTER NO. 4BIN AREA COND =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC NUM-OF-MASK 1 Bring one mask area inside the measuring area. NUM-OF-MASK 2 Bring two mask areas inside the measuring area. NUM-OF-MASK 4 Bring four mask areas inside the measuring area. Select this item if the captured image is other than a rectangle, circle, or ellipse. This function masks the captured image using a stored binary BINARY-IMG-MASK image. POLYGON You can manually create any freeform polygon for the measurement area. REGISTER NO. Select register number to measure. Number of selectable registers varies with window shape selected. NUM-OF-MASK 1 0 to 15 NUM-OF-MASK 2 0 to 7 NUM-OF-MASK 4 0 to 4 BIMARY-IMG-MASK 0 only POLYGON 0 only To save the measurement conditions using a different register number, press the SET key and highlight the number. Change this number by pressing the up and down arrow keys. REGISTER EXIST Select whether to register or not. REGISTER NO. ( BIN AREA COND) Register setting conditions are shown for each register number. Circles mean that "REGISTER EXIST" has set to "YES." Æ Setting (display) of binary area conditions REGISTER NO. 4BIN AREA COND No setting When item "3REGISTER EXIST" is set to "YES," a circle is displayed. 7-3 7 Area Measurement by Binary Conversion How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEA-CND" setting screen, move the cursor to the " BIN AREA COND" and press the SET key. The cursor will move into the table. Move the cursor to the " " column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. 2) On the "MEA-CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG COND" item and press the SET key. MEA-CND SCREEN COND SAVE 1 NUM-OF-MASK 2REGISTER NO. 00(0 15) 3REGISTER EXIST NO F C1 BRT IMG PRE-PROC REG COND EVALUATION NUM-CALC OUT REGISTER NO. 4BIN AREA COND 7 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to this item and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(MEAS-BIN-AREA) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Set the register conditions REGISTER NO. The currently selected register number is displayed. If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. Note: When the "BINARY-IMG-MASK" or the "POLYGON" is selected at " WINDOW" on the "MEA-CND" screen, the " REGISTER NO." line will not be displayed and the other item numbers are decrement by one since the register number for "BINARY-IMGMASK" and "POLYGON" is fixed. 7-4 REG COND 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W SCREEN COND SAVE DETAIL RECTANGLE SET (224,208) (287,271) SET [U.LM255 L.LM100 (0~255)] NO SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC F C1 BRT Area Measurement by Binary Conversion MEAS SHAPE Specify shape of measuring range. RECTANGLE Specify the coordinates for the upper left and lower right corners. The measurement area will be the area enclosed by this rectangle. CIRCLE Specify the center and the radius. The measurement area will be the area enclosed by this circle. ELLIPSE Specify the center and the radius. The measurement area will be the area enclosed by this ellipse. MEAS AREA Specify a search area. When "RECTANGLE" is selected Specify the upper left and lower right corners of the rectangular search area. UP.L 7 LO.R When "CIRCLE" is selected Specify the center and the radius. Center Radius When "ELLIPSE" is selected Specify the center and the radius. Center Radius THRESHOLD Specify a threshold value. Move the cursor to " U.LM" and press the SET key. Then move the cursor to " L.LM" and press the SET key again. The current value will be highlighted for each item. You can increase or decrease the value by pressing the up and down arrow keys. Press the ESC key to confirm the value you want. The values above can be reset to an appropriate level automatically. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "AUTO-REG". Then press the SET key to set the levels automatically. For details, see page 3-15. INVERT B/W Select whether to invert the display of black and white inside the measurement area. 7-5 Area Measurement by Binary Conversion Setting the mask details On the "REG COND" screen, move the cursor to the upper function menu by pressing the TRG/BRT key. Select "DETAIL" by pressing the left and right arrow keys and then press the SET key. On the popup menu, you can select "MASK REGIST.," "BINARY PROCESS," and "BINRY NOISE FILT." The items selected here will be displayed on the "MEA-CND" menu. MASK NO. Select a mask number. Note: This line is displayed when "NO. OF MASK 2" or "NO. OF MASK 4" is selected at " WINDOW" on the "MEACND" screen. When WINDOW has been set to "NUM-OF- MASK 2" MEA-CND SCREEN COND SAVE DETAIL F C1 BRT 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W 6MASK NO. 7MASK SHAPE 0(0 7) MASK REGIST. RECTANGLE BINARY PROCESS SET (224,208) (287,271) BINRY NOISE FILT SET [U.LM255 L.LM100(0 255)] NO NO 0(0 1) RECTANGLE NO CIRCLE ELLIPSE 8BIMARY PROCESS FIXED 9BIMARY NOISE FILT NO FIXED THRES-ADJ(VAR-DIFF) THRES-ADJ(VAR-RATE) NO EXPD. CONTR. CONTR. EXPD. =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 7 MASK SHAPE Select mask shape. - Select "NO," "RECTANGLE," "CIRCLE," or "ELLIPSE." - When "BINARY-IMG-MASK" is selected on the " WINDOW" line, this line will not appear, since this is already selected on the "MASK BINARY IMG" screen. - When "POLYGON" is selected on the " WINDOW" line, specify the polygonal shape of the mask. BINARY PROCESS Select a binary processing method. Move the cursor to "FIXED," "THRES-ADJ (VAR-DIFF)" {adjustable threshold value (variation difference)}, or "THRES-ADJ (VAR-RATE)" {adjustable threshold (variation rate)}, and press the SET key to continue. For details, see page 3-12. BINARY NOISE FILTER Select a binary noise filter type. Move the cursor to "NO," "EXPD. CONTR." (expansion contraction), or "CONTR. EXPD" (contraction expansion), and press the SET key to continue. For details, see page 3-13. Setting example of measurement area and mask area Measurement area (Rectangle) - The inside of the measurement area (excluding the mask area) is converted to binary data. Mask area 7-6 Area Measurement by Binary Conversion Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the MEAS COND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the EVALUAT COND screen. MEA-CND SCREEN COND SAVE 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK F C1 BRT IMG PRE-PROC REG COND EVALUATION NUM-CALC OUT BINARY-IMG-MASK 0 YES REF-IMG (TO NEXT SUB-MENU) REGISTER NO. 6BIN AREA COND 7 =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(MEAS-BIN-AREA) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. 1CHNG REG 2CONDITION SET 3REGISTER 00 4REGISTER 01 5REGISTER 02 6REGISTER 03 7REGISTER 04 8REGISTER 05 9REGISTER 06 0REGISTER 07 qTEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND" (evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. EVALUAT COND SCREEN COND SAVE EDIT SEL 1CHNG REG 2CONDITION SET 3REGISTER 00 4REGISTER 01 5REGISTER 02 6REGISTER 03 7REGISTER 04 8REGISTER 05 9REGISTER 06 0REGISTER 07 qTEST [TEST RESULT] AUTO( 10%) 000000~245760 A00= NO 000000~245760 000000~245760 000000~245760 000000~245760 000000~245760 000000~245760 000000~245760 EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 7-7 F C1 BRT [OUTPUT] Area Measurement by Binary Conversion Set the evaluation conditions The display details vary with the setting of each window. • When WINDOW has been set to "NUM-OFMASK 1" and "NUM-OF-MASK 2" EVALUAT COND SCREEN COND SAVE EDIT SEL 1CHNG REG 2CONDITION SET RESET 3REGISTER00 4REGISTER01 5REGISTER02 6REGISTER03 7REGISTER04 8REGISTER05 9REGISTER06 0REGISTER07 qTEST [TEST RESULT] F C1 BRT [OUTPUT] AUTO(+10%) 000000~245760 A00=000200 OK 000000~245760 A01=000201 OK 000000~245760 A02=000202 OK 000000~245760 A03=000203 OK 000000~245760 A04=000204 OK 000000~245760 A05=000205 OK 000000~245760 A06=000206 OK 000000~245760 A07=000207 OK EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) NO NO NO NO NO NO NO NO Change the display of items 3 to 0 from REGISTER00 to 07" to REGISTER08 to 15." You can set the output destinations using the up and down keys. (NO, Y0 to Y7, C000 to C127) • When WINDOW has been set to "NUM-OF-MASK 4" EVALUAT COND 7 SCREEN COND SAVE EDIT SEL 1CHNG REG 2CONDITION SET RESET 3REGISTER00 4REGISTER01 5REGISTER02 6REGISTER03 7TEST F C1 BRT [TEST RESULT] [OUTPUT] AUTO(+10%) 000000~245760 A00=000200 OK NO 000000~245760 A01=000201 OK NO 000000~245760 A02=000202 OK NO 000000~245760 A03=000203 OK NO EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) You can set the output destinations using the up and down keys. (NO, Y0 to Y7, C000 to C127) • When WINDOW has been set to "BINARY-IMG-MASK or "POLYGON" EVALUAT COND SCREEN COND SAVE EDIT SEL 1CHNG REG 2CONDITION SET RESET AUTO(+10%) 3REGISTER00 000000~245760 4TEST F C1 BRT [TEST RESULT] [OUTPUT] A00=000200 OK NO EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) You can set the output destinations using the up and down keys. (NO, Y0 to Y7, C000 to C127) Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions." 7-8 Area Measurement by Binary Conversion Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. (TYPE00) Final evaluation result Measuring time Measurement program number Area for registration number 00 " 01 " 02 " 03 " 04 " 05 " 06 " 07 in the measurement condition (Number of pixels) OK MEAS XXXXms MEASUREMENT 1 MEAS-BIN-AREA * *The areas will not be displayed for any unspecified registration numbers. 7-9 A00=005253 A01=002674 A02=003200 A03=001884 A04= A05= A06= A07= OK OK OK OK MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 7 Object Counting by Binary Conversion Chapter 8: Object Counting by Binary Conversion 8-1 Outline Purpose Checks the number of objects (max. 3000 items.) when there is more than one object in an image. Measurement of the object’s position is optional. - When the specified pixel field has been converted to a binary image, the white areas are measured or identified as separate objects and counted. Applications Counting the number of food products or parts. [Measurement result] - Number of objects/total area Objects Examples - Inspection sequence Capture an image Convert it to a binary image 8-1 Measure the number of objects/total area 8 Object Counting by Binary Conversion 8-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION 8 =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "CNT-BINOBJ" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT CNT-BIN-OBJ NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the OBJECT TYPE COND (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (CNT-BIN-OBJ)" to go to the MEA-CND screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 8-2 Object Counting by Binary Conversion Setting the measurement conditions WINDOW Select a window type. On the popup menu, move the cursor to "NORMAL," "BINARYIMG-MASK," or "POLYGON," and press the SET key to select the item. NORMAL Normal window Select this item if the captured image is other than a rectangle, circle, or ellipse. This function BINARY-IMG-MASK masks the captured image using a stored binary image. - POLYGON You can manually create any freeform polygon for the measurement area. MEA-CND SCREEN COND SAVE 1MEAS GRAV CENTER 2 3REGISTER NO. 4REGISTER EXIS 5LABEL ORDER 6AX.ANGL 7FILT 8CIRC-L 9MID-PNT NO NORMAL 0(0 3) YES SCAN-ORDER NO NO NO NO NO YES NO YES NO YES F C1 BRT NO YES NORMAL BINARY-IMG-MASK POLYGON SCAN-ORDER SIZE ORDER CENT-GRAVTY-ORDER REGISTER NO. 0BIN AREA COND =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC REGISTER NO. Select register number to measure. Number of selectable registers varies with window shape selected. NORMAL 0 to 3 BINARY-IMG-MASK 0 only POLYGON 0 only To save the measurement conditions using a different register number, press the SET key and highlight the number. Change this number by pressing the up and down arrow keys. REGISTER EXIST Select whether to register or not. REGISTER NO. ( BIN AREA COND) Register setting conditions are shown for each register number. Circles mean that "REGISTER EXIST" has set to "YES." Æ Setting (display) of binary area conditions REGISTER NO. 4BIN AREA COND No setting When item "3REGISTER EXIST" is set to "YES," a circle is displayed. 8-3 8 Object Counting by Binary Conversion How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEA-CND" setting screen, move the cursor to the " BIN AREA COND" and press the SET key. The cursor will move into the table. Move the cursor to the " " column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. MEA-CND SCREEN COND SAVE 1 NORMAL 2REGISTER NO. 0(0 3) 3REGISTER EXIST YES F C1 BRT IMG PRE-PROC REG COND EVALUATION NUM-CALC OUT REGISTER NO. 4BIN AREA COND 2) On the "MEA-CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG COND" item and press the SET key. 8 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to this item and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(CNT-BIN-OBJ) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP REGISTER NO. REG COND SCREEN COND SAVE DETAIL F C1 BRT The currently selected register number is 1REGISTER NO. displayed. RECTANGLE RECTANGLE 2MEAS SHAPE If you want to set the measurement conditions CIRCLE SET (224,208) (287,271) 3MEAS AREA ELLIPSE for a different register number, press the SET 4THRESHOLD SET [U.LM255 L.LM100 (0~255)] key to highlight the register number currently 5INVERT B/W NO NO selected. Then press the up and down arrow YES keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. Note: When the "BINARY-IMG-MASK" or the "POLYGON" is selected at " WINDOW" on the "MEA-CND" screen, the " REGISTER NO." line will not be displayed and the other item numbers are decrement by one since the register number for "BINARY-IMG-MASK" and "POLYGON" is fixed. MEA-CND 1REGISTER NO 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W 8-4 Object Counting by Binary Conversion MEAS SHAPE Specify shape of measuring range. RECTANGLE Specify the coordinates for the upper left and lower right corners. The measurement area will be the area enclosed by this rectangle. CIRCLE Specify the center and the radius. The measurement area will be the area enclosed by this circle. ELLIPSE Specify the center and the radius. The measurement area will be the area enclosed by this ellipse. MEAS AREA Specify a search area. When "RECTANGLE" is selected Specify the upper left and lower right corners of the rectangular search area. UP.L LO.R When "CIRCLE" is selected Specify the center and the radius. Center Radius When "ELLIPSE" is selected Specify the center and the radius. Center Radius THRESHOLD Specify a threshold value. Move the cursor to " U.LM" and press the SET key. Then move the cursor to " L.LM" and press the SET key again. The current value will be highlighted for each item. You can increase or decrease the value by pressing the up and down arrow keys. Press the ESC key to confirm the value you want. The values above can be reset to an appropriate level automatically. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "AUTO-REG." Then press the SET key to set the levels automatically. For details, see page 3-15. 8-5 8 Object Counting by Binary Conversion INVERT B/W Select whether to invert the display of black and white inside the measurement area. Setting the mask details On the "REG COND" screen, move the cursor to the upper function menu by pressing the TRG/BRT key. Select "DETAIL" by pressing the left and right arrow keys and then press the SET key. On the popup menu, you can select "MASK REGIST.," "BINARY PROCESS," "BINRY NOISE FILT," "BOUNDARY PROCESS, " and "AREA FILTER." The items selected here will be displayed on the "REG COND" menu. MASK NO. Select a mask number. Note: This is available when "NORMAL" is selected on the " WINDOW" line. 8 REG COND SCREEN COND SAVE DETAIL 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W 6MASK NO. 7MASK SHAPE 8BINARY PROCESS 9BINARY NOISE FILT F C1 BRT RECTANGLE SET (224,208) (287,271) SET [U.LM255 L.LM100 (0~255)] NO MASK REGIST. 0(0~3) BINARY PROCESS NO NO BINRY NOISE FILT RECTANGLE BOUNDARY PROCESS FIXED CIRCLE AREA FILTER NO ELLIPSE 0BOUNDARY PROCESS VALID qAREA FILTER U.LM245760 L.LM000000(0~245760) VALID INVALID NO EXPD. CONTR. CONTR. EXPD. FIXED THRES-ADJ (VAR-DIFF) THRES-ADJ (VAR-RATE) MASK SHAPE SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC Select mask shape. - Select "NO," "RECTANGLE," "CIRCLE," or "ELLIPSE." - When "BINARY-IMG-MASK" is selected on the " WINDOW" line, this line will not appear, since this is already selected on the "MASK BINARY IMG" screen. - When "POLYGON" is selected on the " WINDOW" line, specify the polygonal shape of the mask. BINARY PROCESS Select a binary processing method. Move the cursor to "FIXED," "THRES-ADJ (VAR-DIFF)" {adjustable threshold value (variation difference)}, or "THRES-ADJ (VAR-RATE)" {adjustable threshold (variation rate)}, and press the SET key to continue. For details, see page 3-12. BINARY NOISE FILTER Select a binary noise filter type. Move the cursor to "NO," "EXPD. CONTR." (expansion contraction), or "CONTR. EXPD" (contraction expansion), and press the SET key to continue. For details, see page 3-13. BOUNDARY PROCESS Select whether objects crossing the boundary of the window will be "VALID" or "INVALID." For details, see page 3-11. AREA FILTER This function is used to exclude an object from measurement if its area is outside of the upper or lower limits. Specify a number from 0 to 245760. Example of register measurement area and area mask - The inside of the measurement area (excluding the mask area) is converted to binary data. Measurement area (Rectangle) Mask area (Rectangle) 8-6 Object Counting by Binary Conversion Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the MEA-CND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the EVALUAT COND screen. MEA-CND SCREEN COND SAVE 1WINDOW 2REGISTER NO. 3REGISTER EXIST 4MASK BINARY IMG 5BIN IMG MASK BINARY-IMG-MASK 0 YES REF-IMG (TO NEXT SUB-MENU) F C1 BRT IMG PRE-PROC REG COND EVALUATION NUM-CALC OUT REGISTER NO. 6BIN AREA COND 8 =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(CNT-BIN-OBJ) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4TOTAL AREA 5TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND"(evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. 8-7 EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4TOTAL AREA 5TEST F C1 BRT 0(0~3) [TEST RESULT] [OUTPUT] AUTO( 10%) 0000~3000 K= NO 000000~245760 A= NO EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC Object Counting by Binary Conversion Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions." Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. (TYPE00) 8 Final evaluation result Measuring time Measurement program [K] of registration number [A] " [K] " [A] " [K] " [A] " [K] " [A] " F C1 BRT V*.** OK MEAS XXXXms MEASUREMENT 1 CNT-BIN-OBJ 0 0 1 1 2 2 3 3 K0=00006 A0=015781 K1=00020 A1=087620 K2=00010 A2=042680 K3= A3= OK OK OK OK OK OK in the measurement condition [K]=NUMBER OF OBJECTS [A]=TOTAL AREA (Number of pixels) - Areas will not be displayed for unspecified registration numbers. 8-8 X0 6 Y0 7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Object Identification by Binary Conversion Chapter 9: Object Identification by Binary Conversion 9-1 Outline Purpose When there are several objects and their positions are random, the presence or absence of objects and the size of the objects can be determined. - The specified pixel area is converted to a binary image. The number of objects, total size of the white area (the objects) and the area, center of gravity, main axis angle, fillet diameter, circumference and center of each white area can be measured. Applications Counting the number of food products or parts, measuring the angle of rotation or the center of gravity of parts, and measuring the size of food products [Measurement of 6 objects] No.1 No.2 No.3 Objects No.4 No.5 No.6 Examples [Measurement results] - Object identification (labeling and numbering), number of objects present, total area. - Area, center of gravity, main axis angle, fillet diameter, circumference, and center of each object (No.1 to No.6). 9 - Inspection sequence Image capture Convert it to a binary image Object identification (labeling and numbering) Measure the area, center of gravity, main axis angle, fillet diameter, circumference, and center 9-1 Object Identification by Binary Conversion 9-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP 9 Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "LABELBIN-OBJ" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT LABEL-BIN-OBJ NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the OBJECT TYPE COND (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (LABEL-BIN-OBJ)" to go to the "MEA-CND" screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 9-2 Object Identification by Binary Conversion Setting the measurement conditions 1MEAS GRAV CENTER 2 3REGISTER NO. 4REGISTER EXIST 5LABEL ORDER 6AX.ANGL 7FILT 8CIRC-L 9MID-PNT WINDOW Select a window type. On the popup menu, move the cursor to "NORMAL," "BINARYIMG-MASK," or "POLYGON," and press the SET key to select the item. NORMAL SCREEN COND SAVE MEA-CND MEAS GRAV CENTR Select whether or not to measure the center of gravity. NO NORMAL 0(0 3) YES SCAN-ORDER NO NO NO NO NO YES F C1 BRT NO YES NO YES NORMAL BINARY-IMG-MASK POLYGON NO YES SCAN-ORDER SIZE ORDER CENT-GRVTY-ORDER REGISTER NO. 0BIN AREA COND Normal window Select this item if the captured image is other than a rectangle, circle, or ellipse. This function masks the captured image using a stored binary BINARY-IMG-MASK image. POLYGON You can manually create any freeform polygon for the measurement area. REGISTER NO. Select register number to measure. Number of selectable registers varies with window shape selected. NORMAL 0 to 3 BINARY-IMG-MASK 0 only POLYGON 0 only To save the measurement conditions using a different register number, press the SET key and highlight the number. Change this number by pressing the up and down arrow keys. REGISTER EXIST Select whether or not to register the measurement conditions. When "YES" is selected, items to will be displayed on the "MEA-CND" menu. LABEL ORDER Set the order for displaying the measured results. Select "SCAN-ORDER," "SIZE-ORDER," or "CENT-GRVTY-ORDER" and then press the SET key. SCAN-ORDER Assigns label numbers in the order in which objects were scanned (from top to bottom) in the measurement range. SIZE-ORDER Assigns label numbers by the size of the objects found in the measurement range, from largest to smallest. CENT-GRVTY-ORDER Assigns label numbers by the of center gravity of the objects found in the measurement range, from heaviest to lightest. 1 2 Object identification (in order of scanning) Binary conversion 3 3 Object identification (in order of area) 2 4 Island 1 9-3 Island 4 9 Object Identification by Binary Conversion AX.ANGL (axis angle) Select whether to measure the angle of the longitudinal line (drawn through the gravity center of the workpiece) to the horizontal. Main axis angle FILT (fillet diameter) Select whether to measure the diameters of horizontal and vertical fillets on the workpiece. Fillet width Gravity center Fillet width (horizontal) CIRC-L (peripheral length) Select whether to count the number of pixels in the perimeter of the workpiece. Fillet width (vertical) Main axis angle Peripheral The number of pixels in the boundary line of an object (stepped are counted as x 2 pixels) 9 MID-PNT (middle point) Select whether to measure the center point of the workpiece. Center of gravity, main axis angle, and center Center of gravity (X1, Y1) - Calculated from the area and the position of each object. - (X1, Y1)=( x/N, y/N) N: Area Main axis angle - Angle between the longitudinal and horizontal directions X1 (0, 0) Y (511, 479) The "MID-PNT" refers to the center point of horizontal or vertical fillet curves. Gravity center Vertical fillet diameter Spindle axis angle Gravity center Center point Spindle axis angle Horizontal fillet diameter By the combined use of the center point and the center of gravity, a workpiece’ orientation can be measured even when it cannot be evaluated by its spindle axis REGISTER NO. ( BIN AREA COND) Register setting conditions are shown for each register number. Circles mean that "REGISTER EXIST" has set to "YES." Æ Setting (display) of binary area conditions REGISTER NO. 0BIN AREA COND No setting When item "4REGISTER EXIST" is set to "YES," a circle is displayed. 9-4 Object Identification by Binary Conversion How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEA-CND" setting screen, move the cursor to the " BIN AREA COND" and press the SET key. The cursor will move into the table. Move the cursor to the " " column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. 2) On the "MEA-CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG COND" item and press the SET key. 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to this item and press the SET key. MEA-CND SCREEN COND SAVE 1MEAS GRAV CENTER 2 3REGISTER NO. 4REGISTER EXIST 5LABEL ORDER 6AX.ANGL 7FILT 8CIRC-L 9MID-PNT NO 0(0 3) YES SCAN-ORDER NO NO NO NO F C1 BRT IMG PRE-PROC REG COND EVALUATION DST&ANGL NUM-CALC OUT REGISTER NO. 0BIN AREA COND SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(LABEL-BIN-OBJ) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT 1REGISTER NO. 2MEAS SHAPE 3MEAS AREA 4THRESHOLD 5INVERT B/W SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP REGISTER NO. REG COND SCREEN COND SAVE DETAIL F C1 BRT The currently selected register number is 1REGISTER NO. displayed. RECTANGLE RECTANGLE 2MEAS SHAPE If you want to set the measurement conditions CIRCLE SET (224,208) (287,271) 3MEAS AREA for a different register number, press the SET ELLIPSE 4THRESHOLD SET [U.LM255 L.LM100 (0~255)] key to highlight the register number currently 5INVERT B/W NO NO selected. Then press the up and down arrow YES keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. Note: When the "BINARY-IMG-MASK" or the "POLYGON" is selected at " WINDOW" on the "MEA-CND" screen, the " REGISTER NO." line will not be displayed and the other item numbers are decrement by one since the register number for "BINARY-IMG-MASK" and "POLYGON" is fixed. MEA-CND 1MEAS SHAPE 2MEAS AREA 3THRESHOLD 4INVERT B/W 9-5 9 Object Identification by Binary Conversion MEAS SHAPE Specify shape of measuring range. RECTANGLE Specify the coordinates for the upper left and lower right corners. The measurement area will be the area enclosed by this rectangle. CIRCLE Specify the center and the radius. The measurement area will be the area enclosed by this circle. ELLIPSE Specify the center and the radius. The measurement area will be the area enclosed by this ellipse. MEAS AREA Specify a search area. When "RECTANGLE" is selected Specify the upper left and lower right corners of the rectangular search area. UP.L LO.R When "CIRCLE" is selected Specify the center and the radius. Center 9 Radius When "ELLIPSE" is selected Specify the center and the radius. Center Radius THRESHOLD Specify a threshold value. Move the cursor to " U.LM" and press the SET key. Then move the cursor to " L.LM" and press the SET key again. The current value will be highlighted for each item. You can increase or decrease the value by pressing the up and down arrow keys. Press the ESC key to confirm the value you want. The values above can be reset to an appropriate level automatically. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "AUTO-REG". Then press the SET key to set the levels automatically. For details, see page 3-15. INVERT B/W Select whether to invert the display of black and white inside the measurement area. Setting the mask details On the "REG COND" screen, move the cursor to the upper function menu by pressing the TRG/ BRT key. Select "DETAIL" by pressing the left and right arrow keys and then press the SET key. On the popup menu, you can select "MASK REGIST.," "BINARY PROCESS," "BINRY NOISE FILT," "BOUNDARY PROCESS, " and "AREA FILTER." The items selected here will be displayed on the "REG COND" menu. See page 8-6. 9-6 Object Identification by Binary Conversion MASK NO. Select a mask number. Note: This is available when "NORMAL" is selected on the " WINDOW" line. MASK SHAPE Select mask shape. - Select "NO," "RECTANGLE," "CIRCLE," or "ELLIPSE." - When "BINARY-IMG-MASK" is selected on the " WINDOW" line, this line will not appear, since this is already selected on the "MASK BINARY IMG" screen. - When "POLYGON" is selected on the " WINDOW" line, specify the polygonal shape of the mask. BINARY PROCESS Select a binary processing method. Move the cursor to "FIXED," "THRES-ADJ (VAR-DIFF)" {adjustable threshold value (variation difference)}, or "THRES-ADJ (VAR-RATE)" {adjustable threshold (variation rate)}, and press the SET key to continue. For details, see page 3-12. BINARY NOISE FILTER Select a binary noise filter type. Move the cursor to "NO," "EXPD. CONTR." (expansion contraction), or "CONTR. EXPD" (contraction expansion), and press the SET key to continue. For details, see page 3-13. BOUNDARY PROCESS Select whether objects crossing the boundary of the window will be "VALID" or "INVALID." For details, see page 3-11. AREA FILTER This function is used to exclude an object from measurement if its area is outside of the upper or lower limits. Specify a number from 0 to 245760. Example of register measurement area and area mask - The inside of the measurement area (excluding the mask area) is converted to binary data. Measurement area (Rectangle) Mask area (Rectangle) 9-7 9 Object Identification by Binary Conversion Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the MEA-CND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the EVALUAT COND screen. MEA-CND SCREEN COND SAVE 1MEAS GRAV CENTER 2 3REGISTER NO. 4REGISTER EXIST 5LABEL ORDER 6AX.ANGL 7FILT 8CIRC-L 9MID-PNT NO 0(0 3) NO SCAN-ORDER NO NO NO NO F C1 BRT IMG PRE-PROC REG COND EVALUATION DST&ANGL NUM-CALC OUT REGISTER NO. 0BIN AREA COND =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 9 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-DEVIATION MEAS01(CNT-BIN-OBJ) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4TOTAL AREA 5TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND"(evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-19. EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4TOTAL AREA 5LABEL NO. 6OBJECT AREA MAIN AXIS ANGL FILLET WIDTH PERIPHERAL MID POINT 7TEST 0(0~3) AUTO( 10%) 000~128 000000~245760 000(0~000) 000000~245760 [OUTPUT] K= A= NO NO R= NO B= FX= FY= CR= CX= CY= EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 9-8 F C1 BRT [TEST RESULT] Object Identification by Binary Conversion Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions." Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. (TYPE00) Final evaluation result Measuring time Measurement program Registration number in the measurement condition NUMBER OF OBJECTS TOTAL AREA LABEL NUMBER OBJECT AREA CENTER OF GRAVITY COORDINATE MAIN AXIS ANGLE FILLET DIA PERIPHERAL - CENT OF GRAV, MAIN AXIS ANGL, FILLET WIDTH, PERIPHERAL, or MID POINT are displayed when measurement of these parameters has been specified ("YES" has been selected) on the "MEAS COND" menu (page 10-2). 9-9 F C1 BRT V*.** OK MEAS XXXXms MEASUREMENT 1 LABEL-BIN-OBJ REGISTER NO.0(0~3) K=004 OK A=006168 OK LABEL NUMBER 000 000 R=001542 OK GX=206.0 OK GY=303.0 B= 028.0 FX=042 FY=037 CR=00138.8 CX= CY= X0 Y0 7 003 9 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Existence Inspection by Point Measurement Chapter 10: Existence Inspection by Point Measurement 10-1 Outline Purpose The presence or absence of target objects is examined. A simple black and white evaluation is made in the specified pixel area of binary images. The light level in the specified pixel area is averaged, and a decision is made whether or not it is within the specified range of brightness for gray scale images. Checking the presence or absence of packed parts, inspecting the working Applications condition of LEDs or fluorescent character display tubes, and sorting household electric appliances Inspection of 6 points Number of points (max.): 128 points looking at average light levels 256 points in binary images Point size: 2 m x 2n pixels (m, n = 1 to 16) Examples Inspection sequence Image capture Binary image conversion Black/white evaluation of points Average light level Light level evaluation of points 10-1 10 Existence Inspection by Point Measurement 10-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP 10 Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "POINTMEAS" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT POINT-MEAS NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the "OBJECT TYPE COND" (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (POINT-MEAS)" to go to the "MEA-CND" screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 10-2 Existence Inspection by Point Measurement Setting conditions (mode selection) Select a mode on the " the settings will vary. MODE" line. By selecting either "BINARY" or "AVG-GRAYS," the details of When the "BINARY" mode is selected MEA-CND BINARY PROCESS Select a binary processing procedure. Select "FIXED," "THRES-ADJ(VAR-DIFF)," or "THRES-ADJ(VAR-RATE)." 1 2BINARY PROCESS 3THRESHOLD 4 SCREEN COND SAVE F C1 DRK FIXED SET [U.LM255 L.LM100(0~255)] FIXED THRES-ADJ(VAR-DIFF) THRES-ADJ(VAR-RATE) 5 FIXED Does not correct the threshold value. THRES-ADJ(VAR-DIFF) Effective in preventing binary processing failures since it applies adjustments according to changes in the lighting conditions for individual workpieces. THRES-ADJ(VAR-RATE) For details, see page 3-12. THRESHOLD Specify a threshold value. Select this line and press the SET key to enter the "THRESHOLD" screen. Move the cursor to " U.LM" and " L.LM" each, then press the SET key. The current value will be highlighted for each item. You can increase or decrease the value by pressing the up and down arrow keys. Press the ESC key to confirm the value you want. For details, see page 3-10. AUTO SETTING The values above can be reset to an appropriate level automatically. Move the cursor to the upper function menu by pressing the TRG/BRT key and select "AUTO-REG". Then press the SET key to set the levels automatically. When the "AVG-GRAYS" mode is selected AVG. GRAY PROC Select an average gray processing method. Select "FIXED," "GRAY-ADJ (VAR-DIFF)," or "GRAY-ADJ(VAR-RATE)." MEA-CND 1 2AVG SCREEN COND SAVE FIXED F C1 DRK FIXED GRAY-ADJ(VAR-DIFF) GRAY-ADJ(VAR-RATE) 3 4 FIXED Does not correct the gray level. GRAY-ADJ(VAR-DIFF) Corrects the gray level by adding a specified threshold value to the reference for variation in the light level. (Measured light level) - (reference light level) + (specified threshold value) Corrects the gray level by multiplying a specified threshold value times the reference for variation in the light level. GRAY-ADJ(VAR-RATE) (Measured light level) / (reference light level) x (specified threshold value) CHNG-REG Changes the display of the registration numbers for the " POINT COND." Move the cursor to this line and press the SET key. "CHNG-REG" will be highlighted. Then, press the up and down arrow keys to change the register number series shown in the table as follows "000 to 007," "008 to 015," "016 to 023," ... up to "248 to 255". - If the "BINARY" mode was selected, a maximum of 256 points (0 to 255) can be registered. - If the "AVG-GRAYS" mode was selected, a maximum of 128 points (0 to 127) can be registered. 10-3 10 Existence Inspection by Point Measurement POINT COND Points which have been registered are marked with an "O." - After being registered on the point condition setting screen, an "O" will be displayed in the corresponding cells. For details, see next page. Setting the conditions (by selecting the point conditions) How to enter the REG COND setting screen This paragraph describes the setting for each point condition. There are three ways to bring up the "REG COND" screen. 1) On the "MEA-CND" setting screen, move the cursor to the " POINT COND" and press the SET key. The cursor will move into the table. Move the cursor to the "X" column and press the SET key. Note: After being registered, the "X" mark in a corresponding cell is changed to "O." MEA-CND 1 2BINARY PROCESS 3THRESHOLD SCREEN COND SAVE F C1 DRK FIXED SET [U.LM255 L.LM100(0~255)] 4 IMG PRE-PROC REG COND EVALUATION NUM-CALC OUT 5 2) On the "MEA-CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG COND" item and press the SET key. 10 SET= 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to this item and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS01(POINT-MEAS) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND POSI-CORRECT MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT 1SIZE 2EVALUATION 3EVAL-SPEC(RATIO %) 4REGISTER NO. SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 10-4 Existence Inspection by Point Measurement Setting the point measurement conditions SIZE Specify the point size. Highlight the numbers next to "X" and "Y" and increase or decrease the value using the up and down arrow keys. To confirm the new value, press the SET key twice. When the settings are complete, press the ESC key. The point size can be set between 2 and 32, in units of one pixel. REG COND SCREEN COND SAVE DETAIL 1 ~32) 2EVALUATION MAJORITY 3EVAL-SPEC(RATIO ) 050 000(0~255)NO 4REGISTER NO. F C1 BRT MAJORITY AND OR EVALUATION Set the evaluation condition. Select "MAJORITY," "AND," or "OR." The details for the evaluation settings are as follows. 2EVALUATION MAJORITY AND OR Description When white occupies more than the specified percentage of pixels in a point, it is treated as white. Under any other conditions than the above it is treated as black. The value can be set between 0 and 100%, in units of 1%. When all the pixels are white, this point will be treated as white. When even one pixel is white, this point will be treated as white. EVAL-SPEC Select the number and highlight it. Then increase or decrease the number using the up and down arrow keys. To confirm the new value, press the SET key twice. When the changes are complete, press the ESC key. REGISTER NO. When you want to change the number already registered, highlight the number and increase or decrease the number by pressing the up and down arrow keys. Next, move the cursor to the "NO" position and press the SET key. A popup menu will appear. Select "YES" on this popup menu to store this register number. Specify the position of the point After storing the register number using " REGISTER NO.," a point will appear on the screen. Move the cursor on the " UPPER LEFT" line and press the SET key. Then highlight the "MOVE" item and press the SET key. Now you can move the point anywhere on the screen using the up/down, left/right arrow keys. 10-5 REG COND SCREEN COND SAVE DETAIL 1 ~32) 2EVALUATION MAJORITY 3EVAL-SPEC(RATIO ) 050 4REGISTER NO. 000(0~255)YES 5UPPER LEFT MOVE(224.208) F C1 BRT 10 Existence Inspection by Point Measurement STORE BLOCK COND Press the TRG/BRT key to move the cursor to the upper function menu. Select "DETAIL" and press the SET key. Select "STORE BLCK OF PNTS" from the popup menu and press the SET key. Now, items to will be displayed on the "REG COND" menu. This function is used to set a group of points at the same time, after specifying the number of points horizontally and vertically and their spacing. REGISTER NO. When "AND" or "OR" is selected on the " EVALUATION" line, select "YES" at the REGISTER NO" item. Then, " UPPER LEFT" will be displayed. UPPER LEFT Specify the coordinates of the upper left corner of the block you want to register. REG COND SCREEN COND SAVE DETAIL 1 2EVALUATION 3EVAL-SPEC(RATIO ) 4REGISTER NO. 5UPPER LEFT 6BLOCK ARRANGEMENT 7BLOCK SPACING 8STORE BLCK OF PTS 9DEL BLOCK OF PTS 0MOVE BLOCK OF PTS ~32) MAJORITY 050 000(0~255)YES MOVE(224.208) Y001 X001 Y004 X004 EXEC EXEC MOVE(224.208) F C1 BRT STORE BLCK OF PNTS NO YES BLOCK ARRANGEMENT Enter the number of points along the X (horizontal) and Y (vertical) axes. BLOCK SPACING Specify the distance between the points in the horizontal and vertical rows. SEL=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC STORE BLCK OF PTS Select "EXEC" and press the SET key to register the block. 10 DEL BLOCK OF PTS Delete all the points that were registered at the same time. MOVE BLOCK OF PTS Move the group of points that were registered at the same time. Example of a block registration Set the starting point in item 5 above. X X Y Enter 002 (vertical) · 003 (horizontal) in item "6BLOCK ARRANGEMENT," and enter the vertical (Y) and horizontal (X) intervals in item "7BLOCK SPACING." Then select item "8STORE BLOCK OF PTS" to store the settings for the block. 10-6 Existence Inspection by Point Measurement Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the MEA-CND (or REG COND) screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the EVALUAT COND screen. MEA-CND 1 2BINARY PROCESS 3THRESHOLD SCREEN COND SAVE FIXED SET [U.LM255 L.LM100(0~255)] 4 F C1 DRK IMG PRE-PROC RED COND EVALUATION NUM-CALC OUT 5 SET= 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE01 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(POINT-MEAS) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT 1PAGE CHNG 2P001 3P002 4P003 5P004 6P005 7P006 8P007 9P008 0TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 10-7 10 Existence Inspection by Point Measurement The "EVALUAT COND"(evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. When MODE has been set to "BINARY" EVALUAT COND SCREEN COND SAVE EDIT SEL F C1 DRK 1PAGE CHNG ˚ [TEST RESULT] 2P000 WHITE OK NO 3P001 WHITE OK NO 4P002 WHITE OK NO 5P003 WHITE OK NO 6P004 WHITE OK NO [OUTPUT] Acceptance (OK/NG) criteria WHITE: Acceptable when a majority of the inspected pixels are white. BLACK: Acceptable when a majority of the inspected pixels are black. Ex.: When the point to be inspected is 8 X 8 (64 pixels) and WHITE is specified, if 33 white pixels are detected, the point is accepted. You can set the output destinations using the up and down keys. (NO, Y0 to Y7, C000 to C127) 7P005 Not displayed for unregistered point numbers. 8P006 9P007 0TEST EXEC (WITH-POSI.ADJ WITHOUT-POSI.ADJ) Average light level for each point When MODE has been set to AVG-GRAYS EVALUAT COND SCREEN COND SAVE EDIT SEL 10 F C1 DRK PAGE CHNG [TEST RESULT] [OUTPUT] CONDITION SET REST(+10%) P000 200~210 200 OK NO P001 200~210 200 OK NO P002 200~210 200 OK NO P003 200~210 200 OK NO P004 200~210 200 OK NO P005 P006 P007 TEST EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) You can set the output destinations using the up and down keys. (NO, Y0 to Y7, C000 to C127) Average light level for each point Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions." 10-8 Existence Inspection by Point Measurement Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. When MODE has been set to BINARY (TYPE00) Final evaluation result Measuring time Measurement program number Evaluation of the correct black or white color detected at registration No.000 001 002 003 004 005 006 007 OK F C1 DRK V*.** MEAS XXXXms MEASUREMENT 1 POINT-MEAS P000=WHITE OK P001=WHITE OK P002=WHITE OK P003=WHITE OK P004=WHITE OK P005= P006= P007= - Areas will not be displayed for unspecified registration numbers. MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE When MODE has been set to AVG-GRAYS (TYPE00) OK F C1 DRK V*.** MEAS XXXXms MEASUREMENT 1 POINT-MEAS P000=115 OK P001=120 OK P002=114 OK P003=118 OK P004=116 OK P005=115 OK P006= P007= MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 10-9 10 Multiple Positional Measurement Chapter 11: Multiple Positional Measurements 11-1 Outline The IV-S30J can detect up to 128 workpieces whose images exceed the specified matching level (gray search) or threshold value (edge detection) from the reference image. Purpose The positional deviation measurement needs to have a number of positions registered for measurement. However, this measurement only requires you to register one position and reduces the set up time. Applica- Measure the position of workpieces with a complicated light level that cannot be converted into binary images. tion Gray search Reference image Four workpieces detected [Measurement results] - Number of images detected - Coordinates and degree of match detected for each image Edge detection Example [Measurement results] - Number of images detected - Coordinates detected L1 L2 L3 This is useful for obtaining the distance between the coordinates of a position. - L1 to L3 can be calculated by measuring distances and angles. 11-1 Multiple Positional Measurement 11-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "MULTIPOSI" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT MULTI-POSI NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the "OBJECT TYPE COND" (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (MULTI-POSI)" to go to the "MEAS CND" screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 11-2 Multiple Positional Measurement DTECT PRECISION Select detection precision. You can select one of two levels (standard/high), according to your conditions, the desired precision level for detection results, and the detection speed. For details, see page 3-9. MEAS CND REGISTER NO. 4 registers are available for the multiple position measurement (Registers 0 to 3). If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. 5 MODE Select a mode. The details of each mode are as follows. SCREEN COND SAVE 1DTECT PRECISION 2 3 4DETECT ORDER STANDARD 0(0~3) GRAY-SRC SCAN-ORDER F C1 DRK STANDARD HIGH SCAN-ORDER MATCH LVL NO GRAY-SRC EDGE DTECT SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC NO No measurement is made. GRAY-SRC Uses the gray search function to detect a shape in the captured images that matches the reference image. EDGE DTECT Uses the edge detection function to look for shapes in the captured images that have a value larger than the specified threshold value. DETECT ORDER (when GRAY-SRC is selected) When "GRAY-SRC" is selected on line " MODE," select "SCAN-ORDER" or "MATCH LVL" on the " DETECT ORDER" line. SCAN-ORDER (in the order scanned): Searches in the order scanned. MATCH LVL (degree of match): Searches by comparing levels with the reference image. REGISTER NO. ( DTECT OBJECT) Shows the specified mode(s) for each register. S: gray search E: edge detection : means no setting 00 01 02 S E S 03 11-3 Multiple Positional Measurement How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEAS CND" setting screen, move the cursor to " DTECT OBJECT" and press the SET key. The cursor will move into the table. Move the cursor to the "S" or "E" column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. About "S" About "E" MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4DETECT ORDER F C1 DRK STANDARD 0(0~3) GRAY-SRC SCAN-ORDER 5 See pages 11-5 to 7. See pages 11-7 to 9. IMG PRE-PROC REG-COND(S) REG-COND(E) EVALUATION DST&ANGL NUM-CALC OUT 2) On the "MEAS CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG-COND(S)" or "REGCOND(E)" item and press the SET key. SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC About "REG-COND(S)" See pages 11-5 to 7. About "REG-COND(E) " See pages 11-7 to 9. 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REGCOND(S)" and "REG-COND(E)" items will appear. Move the cursor to either of these items and press the SET key. About "REG-COND(S)" See pages 11-5 to 7. About "REG-COND(E)" See pages 11-7 to 9. SELECT OBJECT TYPE COND SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 11-4 F C1 DRK OBJECT TYPE COND 1REGISTER NO. TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(MULTI-POSI) IMG PRE-PROC MEAS CND REG-COND(S) REG-COND(E) EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ TYPE SYS. Multiple Positional Measurement [1] Set the register conditions for a gray search Set a reference image Move the cursor to " REF-IMG AREA" and press the SET key. When the SET item is highlighted, press the SET key again to bring up the setting screen. REG COND SCREEN COND SAVE DETAIL 1 0(0 3) 2REF-IMG AREA 3SEARCH AREA SET (224.208) (287.271) SET (216.200) (295.279) 4MATCH LVL(CONTR) 5MATCH LVL +05000 +07000 F C1 DRK Object to measure Search area Search direct SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC Set the coordinates for " UP.L" and " LO.R." The rectangle inside the solid lines is the reference image. RECTANGLE RESET RETURN F C1 BRT 1 2 3MOVE 4REFERENCE IMG X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC Register a reference image After setting the reference image area, store an image in the controller as a reference image. Select " REFERENCE IMG" using the up/ down arrow keys and select "REG" from the popup menu. RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F CONTRAST SRCH REG DISP X:224 SET=DECISION ESC=BACK SEL=CHNG IMG TRG=FUNC 11-5 C1 BRT Multiple Positional Measurement Select a reference image Move the cursor to the function menu on the "REG COND" screen by pressing the TRG/BRT key. Move the cursor to "DETAIL." Press the SET key on the "REFERENCE IMG" line in the popup menu. The white square on the left will change to a black square. Then, the " REFERENCE IMG" item will appear on the screen. You can use the same procedures to show "DETECT CRD" (detection coordinates) and "CONTR.PIXL" (contraction pixels) on the screen. On the " REFERENCE IMG" line, select a reference image from the reference images already registered. Ex : 015 (000 to 026) Select reference image No. 15 from the 26 registered reference images (000 to 026). REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2REFERENCE IMG 3REF-IMG AREA 4SEARCH AREA 5DIRECT COORD 6CONTR.PIXEL 7MATCH LVL(CONTR) 8MATCH LVL 0(0 3) 015(000~026) SET (224.208) (287.271) SET (216.200) (295.279) CENTER (234.219) 3 +05000 +07000 DETECT CRD CONTR.PIXL Make to on the popup menu, the respective item will be added to the "REG COND" menu. SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC SEARCH ARE Specify the search area (inside the dotted lines) on the " SEARCH AREA (MDL0)" line, using the same procedures used for setting the reference image area. Object to measure Search area DTECT COORD (detection coordinates) Select whether to use the detection coordinates as the center of the reference area or to allow the point to be set freely. CONTR.PIXEL (contraction pixels) 1: Search the image in units of 2 pixels. 2: Search the image in units of 4 pixels. 3: Search the image in units of 8 pixels. REG COND F C1 BRT SCREEN COND SAVE DETAIL 1 2REFERENCE IMG 3REF-IMG AREA 4SEARCH AREA 5DTECT COORD 6CONTR.PIXEL 7MATCH LVL(CONTR) 8MATCH LVL 0(0 3) 015(000~026) SET (224.208) (287.271) SET (216.200) (295.279) CENTER (234.219) 3 +05000 +07000 CENTER SET SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC 11-6 Multiple Positional Measurement Set degree of match REG COND MATCH LVL (CONTR) Specify the degree of match used for detection in the contracted images (detects contracted shapes in images whose value is larger than the specified reference value). F C1 BRT SCREEN COND SAVE DETAIL 1 2REFERENCE IMG 3REF-IMG AREA 4SEARCH AREA 5DIRECT COORD 6CONTR.PIXEL 7MATCH LVL(CONTR) 8MATCH LVL 0(0 3) 015(000~026) SET (224.208) (287.271) SET (216.200) (295.279) CENTER (234.219) 3 +05000 +07000 MATCH LVL Specify a degree of match used for detection in the original images of the contracted images that were detected in the search at line " MATCH LVL" (detects original images which are larger than the specified value). SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC [2] Setting the register conditions for edge detection MEAS SHAPE Select a measurement shape. REG COND RECTANGLE Select a pattern to be (NO ARTF) used for image RECTANGLE processing. (ARTIF) See pages 3-4 to 3-8. LINE (straight line) CIRC-L (circle) ELIP-L (ellipse) F C1 BRT SCREEN COND SAVE 1 2MEAS SHAPE 3SEARCH AREA 4DTECT MODE 5SEARCH DIRECT 6THRESHOLD 0(0 3) RECTANGLE (NO ARFT) SET (224.208) (287.271) CHNG POINT HORIZ ( SET (D:050 E:2 F:04) RECTANGLE (NO ARFT) RECTANGLE (ARFT) LINE CIRC-L ELIP-L CHNG POINT DRK DRK CENT( CENT(DRK NO ARTF/ARTIF: Select whether to detect edge or not with average density. See page 3-15. HORIZ ( HORIZ ( SEL=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 11-7 Multiple Positional Measurement SEARCH AREA Select " SEARCH AREA" and press the SET key to go to the setting screen. When "RECTANGLE" is selected Highlight " UP.L" and press the SET key. The X and Y axes will appear in the search area. Move the X/Y axes using the up/down/ left/right arrow keys to identify the upper left corner. When correct, press the SET key. - To return to the previous coordinates, press the ESC key. Next, highlight " LO.R" and press the SET key. Identify the lower right corner the same way. DTECT MODE Select an image processing method for the edges. CHNG POINT DRK BRT BRT DRK See page 3-14. CENT (BRT) CENT (DRK) RECTANGLE RESET RETURN F C1 BRT 1 2 3 X 224 Y 208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC SEARCH DIRECT Specify a search direction. The direction for searching varies with each detection shape. When "RECTANGLE" is selected Horizontal ( ) Scan the reference line from left to right Horizontal( ) Scan the reference line from left to right Vertical ( ) Scan the reference line from top to bottom Vertical ( ) Scan the reference line from bottom to top When "LINE" is selected Start point End point Scan along a straight line from the starting point to the end point End point Start point Scan along a straight line from the end point to the starting point When "CIRC-L" or "ELIP-L" is selected Clockwise direction Scan around the circumference clockwise Counter-clockwise direction Scan around the circumference counter-clockwise For details, see page 3-14. 11-8 Multiple Positional Measurement THRESHOLD Enter the threshold value for binary conversion. Move the cursor to " THRESHOLD" and press the SET key. Then highlight the "SET" position on this line and press the SET key and the "REG COND" setting screen will appear. Edge width THRESHOLD VAL AUTO-REG 1GRYS. 2EDGE.W 3FLAT.W 050 2 04 RESET F C1 BRT 0 255 1 8 1 16 GRAY Flat width Light level Density difference Automatic setting Select "AUTO-REG" from the upper function menu on the THRESHOLD setting screen. The controller will set the optimum value automatically. Example of register Shown below is an example detected with " MODE" set to "CHNG POINT." COORD SET=CHNG ESC=BACK SEL=CHNG IMG TRG=FUNC MEAS SHAPE" set to "LINE," and " DETECT Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the "MEAS COND (or REG COND)" screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the "EVALUAT COND" screen. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4DTECT ORDER F C1 BRT STANDARD 0(0 3) GRAY-SRC SCAN-ORDER 5DTECT OBJECT IMG PRE-PROC REG-COND(S) REG-COND(E) EVALUATION DST&ANGL NUM-CALC OUT SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 11-9 Multiple Positional Measurement 2) Move the cursor to the "EVALUATION COND" item on the Menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 DRK OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEASO POSI-CORRECT MEAS01(MULTI-POSI) IMG PRE-PROC MEAS CND REG-COND(S) REG-COND(E) EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ TYPE SYS. 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4DTECT NUMBER 5MATCH LVL 6TEST SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND"(evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. - When "GRAY-SRC" is selected on line " MODE." EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4DTECT NUMBER 5MATCH LVL X COORD. Y COORD. 6TEST - When "EDGE DTECT" is selected on line " MODE." F C1 BRT 0(0~3) [TEST RESULT] [OUTPUT] AUTO(–10%) 000~128 K= NO 000~(0~000) -10000~+1000 M0= NO X0= Y0= EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) EVALUAT COND SCREEN COND SAVE EDIT SEL F C1 BRT 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4DTECT NUMBER 0(0~3) AUTO(–10%) 000~128 000~(0~000) X COORD. Y COORD. 5TEST X0= Y0= EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) [TEST RESULT] [OUTPUT] K= NO Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculations." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions. 11-10 Multiple Positional Measurement Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. An example of the display when "gray search" is selected. (TYPE00) F C1 BRT V*.** Final evaluation result Measuring time Measuring program number OK Register number Number of detected images Numbered in the order detected (range) *1 Degree of match Detected point coordinates REGISTER NO.0(0~3) K=004 OK DETECT NO.000(000 003) M=+09870 OK X=236.0 Y=163.0 MEAS XXXXms MEASUREMENT 1 MULTI-POSI - Move the cursor to "CHG-REG (change register)" and press the up key. The measurement result display will change in the following order: Register No. 0 (detection No. 000 -> 001-> (ooo) -> (ooo) -> Register No. 3 (ooo) -> Register No. 0 (ooo) -> (ooo), and so will the measurement screen. Press the down key to change the display, moving through the items in reverse order. *2 X0 6 Y0 7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE * 1 The detection order can be set to either "SCAN-ORDER " or "MATCH LVL" on item "4DETECT ORDER" on the "MEAS CND" screen. - See page 11-3. * 2 The inspection number corresponds to the image of the solid line. An example of the display when "gray search" is selected. Register number Number of points detected Numbered in the order detected (range) *3 DTECT NO. Detected point coordinate. *3 Coordinates of the detected point. 11-11 Multiple Degree of Match Inspection Chapter 12: Multiple Degree of Match Inspection 12-1 Outline Using the gray search function, the IV-S30J can detect up to 128 workpieces whose Purpose captured image exceeds the required degree of match with the reference image. Applica- Inspect (or count) workpieces that have complicated light level and cannot be converted into binary images. tion Reference image Four workpieces detected Example [Measurement results] - Number of images detected - Degree of match, density (average/absolute difference), and detected coordinates 12-1 Multiple Degree of Match Inspection 12-2 Setting operation Setting the measurement conditions How to enter the measurement conditions setting screen Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree)-> "TYPE00" ->"MEA-CND (CAMERA1)" -> "MEAS(NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 BRT 1MEAS SELECTION =WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select "MULTI MATCHES" from the popup menu. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION F C1 BRT MULTI MATCHES NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Press the ESC key to return to the "OBJECT TYPE COND" (menu tree) screen, and select the "MEAS CND" item shown under "MEAS01 (MULTI MATCHES)" to go to the "MEAS CND" screen. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. 12-2 Multiple Degree of Match Inspection DTECT PRECISION Select detection precision. You can select one of two levels (standard/high), according to your conditions, the desired precision level for detection results, and the detection speed. For details, see page 3-9. REGISTER NO. 4 registers are available for the multiple degree of match inspection (Registers 0 to 3). If you want to set the measurement conditions for a different register number, press the SET key to highlight the register number currently selected. Then press the up and down arrow keys to select the register number whose measurement conditions you want to set. Press the SET key to confirm your selection. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4MATCHING 5DETECT ORDER STANDARD 0(0~3) YES AVG-GRAYS SCAN-ORDER F C1 DRK STANDARD HIGH NO YES 6 SCAN-ORDER MATCH LVL AVG-GRAYS DIFF.ABS SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC MODE Select detection precision. MATCHING Select a density for comparison when inspecting the image. The details are as follows. Description Average light level Obtain average light level of the image in the area detected using the gray search. Difference absolute value Calculate the difference of the absolute values from the image detected using the gray search and the reference image. The result is light level difference. By obtaining this value, you can get an idea of the total change in light level. Total light level difference = (Ni — Nt) Ni : Light level of the captured image (contraction 3) Nt : Light level of the reference image (contraction 3) DETECT ORDER Select "SCAN-ORDER" or "MATCH LVL" on the " DETECT ORDER" line. SCAN-ORDER (in the order scanned): Searches in the order scanned. MATCH LVL (degree of match): Searches by comparing levels with the reference image. DTECT OBJECT "S" will be displayed for the objects to be detected. 00 01 02 03 S 12-3 Multiple Degree of Match Inspection How to set the register conditions How to enter the REG-COND setting screen There are three methods for getting to the REG-COND setting screen. 1) On the "MEAS CND" setting screen, move the cursor to the " DETECT OBJECT" and press the SET key. The cursor will move into the table. Move the cursor to the "S" column and press the SET key. Note: If you press the SET key in the "X" column, the setting will be invalid. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4MATCHING 5DETECT ORDER STANDARD 0(0~3) NO AVG-GRAYS SCAN-ORDER F C1 DRK IMG PRE-PROC REG-COND EVALUATION DST&ANGL NUM-CALC OUT 6 2) On the "MEAS CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "REG COND" item and press the SET key. SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 3) On the menu tree, move the cursor to the "MEAS CND" item, and press the right arrow key. The sub menu which contains the "REG COND" item will appear. Move the cursor to this item and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 1REGISTER NO. TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(MULTI MATCHES) IMG PRE-PROC MEAS CND REG-COND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Register a reference image After setting the reference image area, store an image in the controller as a reference image. Select " REF-IMG AREA" using the up/ down arrow keys and select "REG" from the popup menu. REG COND SCREEN COND SAVE DETAIL 1 0(0 3) 2REF-IMG AREA 3SEARCH AREA SET (224.208) (287.271) SET (216.200) (295.279) 4MATCH LVL(CONTR) 5MATCH LVL +05000 +07000 F C1 BRT Object to measure Search area Search direct SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC 12-4 Multiple Degree of Match Inspection Set the coordinates for " UP.L" and " LO.R." The rectangle inside the solid lines is the reference image. RECTANGLE RESET RETURN F C1 BRT MDL 0 1 2 3MOVE 4REFERENCE IMG X:224 Y:208 SET=MOVE ESC=BACK SEL=CHNG IMG TRG=FUNC Register a reference image After setting the reference image area, store an image in the controller as a reference image. Select " REFERENCE IMG" using the up/ down arrow keys and select "REG" from the popup menu. RECTANGLE RESET MDL 0 1 2 3MOVE 4REFERENCE IMG RETURN F C1 BRT CONTRAST SRCH REG DISP X:224 SET=DECISION ESC=BACK SEL=CHNG IMG TRG=FUNC Select a reference image Move the cursor to the function menu on the "REG COND" screen by pressing the TRG/ BRT key. Move the cursor to "DETAIL." Press the SET key on the "REFERENCE IMG" line in the popup menu. The white square on the left will change to a black square. Then, the " REFERENCE IMG" item will appear on the screen. On the " REFERENCE IMG" line, select a reference image from the reference images already registered. Ex : 015 (000 to 026) Select reference image No. 15 from the 26 registered reference images (000 to 026). 12-5 REG COND SCREEN COND SAVE DETAIL 1 2REFERENCE IMG 3REF-IMG AREA 4SEARCH AREA 5DTECT COORD 6CONTR.PIXL (MDL0) 7MATCH LVL(CONTR) 8MATCH LVL 0(0 3) 001(000~001) SET (191.210) (255.273) SET (216.200) (295.279) CENTER (223.241) 3 +05000 +07000 F C1 BRT DETECT CRD CONTR.PIXL Make to on the popup menu, the respective item will be added to the "REG COND" menu. SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC Multiple Degree of Match Inspection SEARCH AREA Specify the search area (inside the dotted lines) on the " procedures used for setting the reference image area. SEARCH AREA" line, using the same Object to measure Search area DTECT COORD (detection coordinates) Select whether to use the detection coordinates as the center of the reference area or to allow the point to be set freely. CENTER: The center of the rectangular area will automatically be used for the detection coordinates. SET: REG COND SCREEN COND SAVE DETAIL 1 2REFERENCE IMG 3REF-IMG AREA 4SEARCH AREA 5DTECT COORD 6CONTR.PIXEL 7MATCH LVL(CONTR) 8MATCH LVL 0(0 3) 015(000~026) SET (224.208) (287.271) SET (216.200) (295.279) CENTER (223.241) 3 +05000 +07000 F C1 BRT CENTER SET You can specify any position in the rectangular area to be used for the detection coordinates. SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC Set degree of match MATCH LVL (CONTR) Specify the degree of match used for detection in the contracted images (detects contracted shapes in images whose value is larger than the specified reference value). MATCH LVL Specify a degree of match used for detection in the original images of the contracted images that were detected in the search at line " MATCH LVL" (detects original images which are larger than the specified value). 12-6 Multiple Degree of Match Inspection Set the evaluation conditions How to move to the evaluation condition setting screen There are two methods for getting to the evaluation condition setting screen. 1) Select "COND" in the upper function menu on the "MEAS COND (or REG COND)" screen and press the SET key. Select "EVALUATION" on the pop up menu to go to the "EVALUAT COND" screen. MEAS CND SCREEN COND SAVE 1DTECT PRECISION 2 3 4MATCHING 5DETECT ORDER F C1 BRT IMG PRE-PROC REG-COND EVALUATION DST&ANGL NUM-CALC OUT STANDARD 0(0~3) YES AVG-GRAYS SCAN-ORDER 6 SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 2) Move the cursor to the "EVALUATION COND" item on the menu tree screen and press the SET key. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 1REGISTER NO. TYPE RUN COND 2CONDITION SET IMAGE-ADJ 3NUMBER OF OBJ MEA-CND(CAMERA1) 4DTECT NUMBER MEAS0 5MATCH LVL POSI-CORRECT 6GRAY LVL MEAS01(MULTI MATCHES) 7TEST IMG PRE-PROC MEAS CND REG-COND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP The "EVALUAT COND"(evaluation conditions) screen will appear. For details about the evaluation conditions, see page 3-17. EVALUAT COND SCREEN COND SAVE EDIT SEL 1REGISTER NO. 2CONDITION SET 3NUMBER OF OBJ 4DTECT NUMBER 5MATCH LVL 6GRAY LVL X COORD. Y COORD. 7TEST 0(0~3) AUTO(–10%) 000~128 000~(0~000) -10000~+1000 000.0~255.0 [TEST RESULT] [OUTPUT] K= NO M0= NO G0= NO X0= Y0= EXEC(WITH-POSI.ADJ WITHOUT-POSI.ADJ) SET=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC 12-7 F C1 BRT Multiple Degree of Match Inspection Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculations." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions. Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. Final evaluation result Measuring time Measuring program number Register number Number of detected images Numbered in the order detected (range) Degree of match Light level (average/absolute value) Detected coordinate (TYPE00) F C1 BRT OK V*.** MEAS XXXXms MEASUREMENT 1 MULTI-MATCHES REG.NO (0~3) K=004 OK DTECT NO.000(000~003) M=+09870 OK G=228.3 X=236.0 Y=163.0 X0 6 Y0 7 READY MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE 12-8 Distance and Angle Measurement Chapter 13: Distance and Angle Measurement 13-1 Outline You can specify the settings for distance and angle measurement on the "MEAS COND" menu in the positional deviation measurement, degree of match inspection, object identification by binary conversion (select "YES" for center of gravity measurement), multiple position measurement, and multiple degree of match inspection. See page 4-3, 5-4, 9-5, 11-4, and 12-4. Purpose The distance and angle of the centers of the detected points can be measured using the center detection function and the edge detection function in a gray scale search and the center of gravity detection function, which is a part of the labeling process. - This function can measure the following distances and angles: distance between two points, X coordinate distance, Y coordinate distance, the angle between three points, the horizontal angle of two points, and the vertical angle of two points. - The following points and lines can be set: center point, circle center point, gravity center, point where two straight lines cross, line passing through two points. Applications Measurement for installed electronic components [Measuring an IC package] Reference image a Search area (reference image b) Examples Search area (reference image a) Reference image b Reference images a and b are recorded when the crosshair cursor is placed on the edge of the IC package. - Measuring sequence 1 Obtain the center points of images a and b by running a 2 point gray scale search. 2 Determine the distance between the two center points. - For details about measuring the distance between two points, X coordinate distance, and Y coordinate distance manually, see the MANL-MEAS (manual measurement) section (page 2-13) for the crosshair cursor display. 13-1 13 Distance and Angle Measurement 13-2 Setting operation Setting distance and angle conditions Select "MAIN-COND" -> "OBJECT TYPE COND" (menu tree) -> "TYPE00" -> "MEA-CND (CAMERA1)" -> "MEAS (NEW)," in that order. Then press the SET key to bring up the "MEAS1" screen. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 DRK 1MEAS SELECTION =NEW REGISTRATION ESC=BACK SEL=CHNG IMG TRG=POPUP Move to the " MEAS SELECTION" line on the "MEASUREMENT1" screen and select any of "POSI-DEVIATION," "CHK-DEG-MATCH," "LABEL-BIN-OBJ," "MULTI-POSI," or "MULTI MATCHES" from the popup menu. For details, see "Chapter 8: Setting Examples Using the Menu Tree" in the Introduction and Hardware. MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION CHK-DEG-MATCH F C1 DRK NO POSI-DEVIATION CHK-DEG-MATCH INSPECT-LEAD MEAS-BIN-AREA CNT-BIN-OBJ LABEL-BIN-OBJ POINT-MEAS MULTI-POSI MULTI MATCHES 13 =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 13-2 Distance and Angle Measurement How to display the distance and angle conditions setting screen There are two methods for displaying the distance and angle conditions setting screen. 1) On the "MEASUREMENT 1", "MEAS CND", or "REG COND" screen, press the TRG/BRG key to move the cursor to the upper function menu. Select "COND' using the left and right keys and press the SET key. Select "DST&ANGL" from the popup menu. 2) On the SELECT OBJECT TYPE COND screen, select "TYPE00" -> "MEACND(CAMERA1)" -> "MEAS01(POSIDEVIATION)" -> "DISTANCE&ANGLE COND," in that order. MEASUREMENT 1 SCREEN COND SAVE F C1 BRT 1MEAS SELECTION POSI-DEVEATION IMG PRE-PROC MEAS EVALUATION DST&ANGL NUM-CALC OUT F C1 BRT SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS01(POSI-DEVIATION) IMG PRE-PROC MEAS CND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND Setting the distance and angle conditions OBJ Select object type you want to measure. The object types available are: "AUX" (auxiliary), "DST" (distance), and "ANGL" (angle). The setting details are different for each type. "AUX": See page 13-4. "DST": See page 13-6. "ANGL": See page 13-7. F C1 BRT DIST&AGL COND SCREEN COND SAVE 1OBJ 2DISTANCE NO 3DESTANCE DST 00(0~15) NO AUX DST ANGL [TEST RESULT] REGISTER NO. DISTANCE SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNK 13-3 [OUTPUT] 13 Distance and Angle Measurement (1) When "AUX" is selected. DIST&AGL COND SCREEN COND SAVE 1OBJ 2AUXILIARY NO. 3AUXILIARY 4COND.1 5COND.2 6COND.3 AUXILIARY NO. Enter a register number. The register numbers available are 0 to 15. AUX 01(0~15) CIRC-C REG NO MDL 0 REG NO MDL 0 REG NO MDL 0 7AUX JUDGEMENT1 000.0~511.0 8AUX JUDGEMENT2 000.0~479.0 9RUN A TEST EXEC F C1 BRT NO MID-PNT CIRC-C GRAV LINE-2P INTERSECTN [TEST RESULT] X= Y= [OUTPUT] NO AUXILIARY Select an auxiliary point. Selection Description NO Do not select auxiliary point. MID-PNT The center point is the coordinate half way between points 1 and 2 that are specified on 4 and 5 (COND. 1 and 2). GRAV 13 LINE-2P Center point X1+X2 2 Point 1 Point 1 (X1, Y1) Point 3 Point 2 (X2, Y2) Y1+Y2+Y3 3 [OUTPUT] NO [TEST RESULT] X= Y= [OUTPUT] NO [TEST RESULT] X= Y= [OUTPUT] NO [TEST RESULT] d1= Y= [OUTPUT] GRAV REG NO MDL 0 REG NO MDL 0 REG NO MDL 0 7AUX JUDGEMENT1 000.0~511.0 8AUX JUDGEMENT2 000.0~479.0 9RUN A TEST EXEC Center of Gravity , 3AUXILIARY 4COND.1 5COND.2 6COND.3 [TEST RESULT] X= Y= CIRC-C REG NO MDL 0 REG NO MDL 0 REG NO MDL 0 7AUX JUDGEMENT1 000.0~511.0 8AUX JUDGEMENT2 000.0~479.0 9RUN A TEST EXEC Point 3 (X3, Y3) X1+X2+X3 3 MID-PNT REG NO MDL 0 REG NO MDL 0 6AUX JUDGEMENT1 000.0~511.0 7AUX JUDGEMENT2 000.0~479.0 8RUN A TEST EXEC 3AUXILIARY 4COND.1 5COND.2 6COND.3 Point 2 Center of the circle the center of gravity between points 1 to 3 that are specified beween 4 and 6 is calculated as the mean of the three coordinates (conditions 1 to 3). The intersection of two lines is the point where lines 1 and 2, specified in items 4 and 5 (COND.1/2),cross. Y1+Y2 2 , Slice through the Y axis (Y axis coordinate) Zero position (0, 0) 512 X axis Slope ( Y ) X Point 1 Point 2 Y axis Image display area INTERSECTN 3AUXILIARY 4COND.1 5COND.2 Point 2 (X2, Y2) The center of the circle is the central coordinate of three points positioned on the circumference of the circle that are specified between 4 and 6 (conditions 1 to 3). The line passing through two points is the line that passes through points 1 and 2 specified in items 4 and 5 (COND.1/2). In this system, the angle of the slope is referred to as a negative angle if it is W from the horizontal (X axis), and as a positive angle if it is CCW from the horizontal (X axis). Display on the screen Point 1 (X1, Y1) 480 CIRC-C Measurement position 3AUXILIARY 4COND.1 5COND.2 LINE-2P REG NO MDL 0 REG NO MDL 0 AUX.1:SLOPE ANGL AUX.2:Y INDENT 6RUN A TEST 000.0~511.0 000.0~479.0 EXEC (Units used above: Pixel) Coordinates (511, 479) Line passing through two points Line 1 Line 2 Intersection 13-4 3AUXILIARY 4COND.1 5COND.2 INTERSECTN AUX NO AUX NO 6AUX JUDGEMENT1 000.0~511.0 7AUX JUDGEMENT2 000.0~479.0 8RUN A TEST EXEC [TEST RESULT] X= Y= [OUTPUT] NO Distance and Angle Measurement COND. 1, COND. 2, ( COND.3) Specify conditions for the auxiliary points that were selected in the " AUXILIARY" item. How to enter COND.1 and COND.2. 4COND.1 5COND.2 REG NO MDL 0 REG NO MDL 0 A B A: Enter a register number from one of the measurement programs already registered. B: Select a model: 0 or 1. AUX JUDGEMENT1, AUX JUDGEMENT2 Specify judgment conditions for X and Y. [TEST RESULT]: When executing a test from the " RUN A TEST" line the result will be displayed here. [OUTPUT]: Specify a destination for the output of test results: "NO," "Y," or "C." RUN A TEST Press the SET key to execute a test. 13 13-5 Distance and Angle Measurement (2) When "DST" is selected. DISTANCE NO. Enter a register number. The register numbers available are 0 to 15. F C1 BRT DIST&AGL COND SCREEN COND SAVE 1OBJ 2DISTANCE NO. 3DISTANCE 4COND.1 5COND.2 DST 01(0~15) DIST-BETW-2PT REG NO MDL 0 REG NO MDL 0 NO DIST-BETW-2PT DIST-BETW-X DIST-BETW-Y [TEST RESULT] 6DISTANCE EVALUAT 000.0~702.0 7RUN A TEST [OUTPUT] NO EXEC REGISTER NO. DISTANCE DISTANCE Select an distance. NO SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC Do not select distance. The distance between 2 points The distance between 2 points 2 2 (X2-X1) +(Y2-Y1) Point 1 (X1, Y1) Point 2 (X2, Y2) The distance between X coordinates The distance between X coordinates ( X2-X1 Point 1 (X1, Y1) Point 2 (X2, Y2) 13 The distance between Y coordinates Point 1 (X1, Y1) The distance between Y coordinates ( Point 2 (X2, Y2) 2-Y1 COND. 1 COND. 2 Specify conditions for the distance that were selected in the " DISTANCE" item. DISTANCE EVALUAT Specify judgment conditions for distance. [TEST RESULT]: When executing a test from the " RUN A TEST" line the result will be displayed here. [OUTPUT]: Specify a destination for the output of test results: "NO," "Y," or "C." RUN A TEST Press the SET key to execute a test. 13-6 Distance and Angle Measurement (3) When "ANGL" is selected. ANGL NO. Enter a register number. The register numbers available are 0 to 15. F C1 BRT DIST&AGL COND SCREEN COND SAVE 1OBJ 2ANGL NO. 3ANGL 4COND.1 5COND.2 6COND.3 ANGL 00(0~15) 3PT-ANGL REG NO MDL 0 REG NO MDL 0 REG NO MDL0 NO 3PT-ANGL 2PT-H-ANGL 2PT-V-ANGL [TEST RESULT] 7ANGL EVALUATION -180.0~+180.0¡ B= ¡ 8RUN A TEST [OUTPUT] NO EXEC REGISTER NO. DISTANCE ANGL Select the angle specifying method. NO Do not select angle. 3PT-ANGL Point 1 is the point of inter section of the two lines. Relative to the line between points 1 and 2, the line between points 1 and 3 will be said to be at a positive angle if the angle is measured in a counterclockwise direction, and it will be at a negative angle if it is measured in a clockwise direction. 2PT-HANGL When a 2-point horizontal angle is specified, relative to the horizontal line, the line from point 2 that intersects point 1 will be said to at a positive angle if the angle is measured in a counterclockwise direction and at a negative angle if it is measured in a clockwise direction. 2PT-VANGL When a 2-point vertical angle is specified, relative to the vertical line, the line from point 2 that intersects point 1 will be said to at a positive angle if the angle is measured in a counterclockwise direction and at a negative angle if it is measured in a clockwise direction. +Angle ( +180.0 ) Point 2 Point 2 Point 3 Point 1 +Angle (-180.0 ) Point 1 Point 3 Point 2 +angle Horizontal line Point 1 COND. 1, COND. 2, COND.3 Specify conditions for the angle that were selected in the " 13 Vertical line Point 2 +angle Point 1 ANGL" item. ANGL EVALUATION Specify judgment conditions for angle. [TEST RESULT]: When executing a test from the " RUN A TEST" line the result will be displayed here. [OUTPUT]: Specify a destination for the output of test results: "NO," "Y," or "C." RUN A TEST Press the SET key to execute a test. 13-7 Distance and Angle Measurement Numeric calculation setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to show the popup menu. Select "NUM-CALC" from the popup menu. - Select "NUM-CALC" on the menu tree. See "Chapter 14: Numerical calculation." Output condition setting - Press the TRG/BRT key to move the cursor to the upper function menu, and highlight "COND" using the left and right arrow keys. Press the SET key to display the popup menu. Select "OUT" from the popup menu. - Select "OUT-COND" on the menu tree. See "Chapter 16: Setting the Input/Output Conditions." Display the measurement results Return to the operation screen and press the TRG/BRT key. The measurement results will be displayed on the screen. To display the measurement results, select "COND-CHG" or "DIST&ANG COND…" on the lower menu bar and press the right arrow key. On the popup menu, select which item you want to display: "AUX," "DST," or "ANGL." Then press the SET key. On the "CHNG-REG" item, press the up and down arrow keys and the display will change. Example of the results displayed for a distance measurement F C1 DRK V*.** (TYPE00) OK Final evaluation result Measuring time Measurement program number Measurement object Distance of distance number " " " " " " " (Number of pixels) MEAS XXXXms MEASURE 0 CAM1 POSI-DEVIATION 00 01 02 03 04 05 06 07 MXR 00:100.0 01:100.0 02:050.0 03:360.0 04:250.0 05: 06: 07: OK OK OK OK OK *Areas will not be displayed for unspecified registration numbers. 13 X0 6 MEA-CND DST&ANG COND NUMERIC CALC Y0 7 AUX DST ANGL MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE Example of the displayed of angle results Measurement object Angle of angle number " " " " " " " 00 01 02 03 04 05 06 07 ANGL 00: 080.0 01: 070.0 02: 050.0 03: 088.2 04: 00 6.5 05: 06: 07: OK OK OK OK OK Example of the displayed of auxiliary results Measurement object Angle of auxiliary number " " " " " " " 00 01 02 03 04 05 06 07 AUX 00: (259.0, 01: (466.0, 02: (361.0, 03: (132.0, 04: (362.5, 05: 06: 07: 13-8 178.0) 178.0) 228.0) 298.0) 178.0) OK OK OK OK OK Numerical Calculations Chapter 14 Numerical Calculations 14-1 Outline Numeric calculation function of the IV-S30J consists of "numeric calculations," which is set individually for each measurement program, and "final numeric calculations," which are set according to object type. The N00 to N15 results of the calculations which are set individually for each measuring program may be used according to the "TYPE" and "FORMULA" settings of the final numerical calculation. 14-2 The individual numerical calculations for each measuring program How to display the numerical calculation conditions setting screen There are two methods for displaying the numerical calculation conditions setting screen. 1) Select "MAIN COND" -> "OBJECT TYPE COND" (menu tree) -> "TYPE00" -> "MEACND (CAMERA1)" -> "MEAS(NEW)," in that order. On the " MEAS SELECTION" line, select any of the measurement programs. Note: When " MEAS SELECTION" is left set to "NO," you cannot specify a numerical calculation function. On either the MEAS CND, or REG-COND screen, press the TRG/BRT key to move the cursor to the upper function menu. Select "COND" and then from the popup menu, select the "NUM-CALC" item. Note: The items shown in the popup menu will vary with the measurement program selected. 2) Open the sub menu for "MEAS0" or "MEAS1" on the menu tree, and select "NUM-CALC." Then press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS(NEW) ++ MEA-CND(CAMERA2) FINAL NUM. CALC FINAL OUTPUT COND OBJ-TYPE I/0 OBJ-TYPE SYS. TYPE(NEW) F C1 DRK 1MEAS SELECTION When the position deviation measurement is selected MEASUREMENT1 SCREEN COND SAVE 1MEAS SELECTION POSI-DEVIATION F C1 DRK IMG PRE-PROC MEAS EVALUATION DST&ANGL NUM-CALC OUT SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND POSI-CORRECT MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. F C1 BRT N00 N01 N02 N03 N04 N05 N06 N07 SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Note - Numeric calculation errors (deviation from the exact value) after digitizing the image Since the IV-S30J` uses 64-bit, floating-point arithmetic operations in its calculations, small quantization errors may occur when converting the images into numbers. 14-1 14 Numerical Calculations Setting details The setting details and procedures for numerical calculations are the same for all measurement programs with the exception of the point measurement program. In this section we explain the use of the numerical calculations menu [NUMERIC CALC] for positional measurements. "CHG-CALC" Move the cursor to the "CHG-CALC" item. Each time you press the SET key the display in the left most column will alternate between "AN00 to AN07" and "AN08 to AN15." RUN A TEST Pressing the SET key will store the setting details as well as run a test The numerical results of the tests will be displayed at position [F] and the OK or NG judgment will be displayed at position [E]. - [NUMERIC CALC] screen on positional deviation measurement NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE (SET KEY) FORMULA CRD-X CRD-Y DEV-x DEV-y MATCH M ANGL-B NUM-CAL[NC] CNST[C] NO A: TYPE Select the type of data being calculated. The details displayed for each measuring program. See page 14-5 to 14-8. F C1 BRT OBJECT TYPE CALC RESULT CNST SUM AVG CBP CBM DEL SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC B: FORMULA Select the formula to apply. Select formula using the left and right arrow keys and enter numerical values using the up and down arrow keys. The details displayed for "FORMULA" will depend on the "TYPE" selected. Item selections Selection on line CRD-X, CRD-Y, DEV-x, DEV-y, MATCH M, ANGL B OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL [NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST [C] +0000000.0000 (second line is not displayed) For details about the items that can be selected with other measurement programs, see pages 14-5 to 14-8. 14 C: UPR&LOW LIMIT Enter the upper and lower limits for making a judgment. D: OUTPUT Setting the output of the calculation results. Select an output target: "NO," "Y," or "C." The output can be set to Y0 to Y7 or C000 to C107. - The number of styles may be set as follows, depending on the selections made in items A and B. OBJECT TYPE CRD [X Y] DEV [x y] MATCH [M] ANGL [B] NUM-CAL [NC] CNST [C] Model 0 Model 1 00X0 to 07X0 / 00Y0 to 07Y0 00X1 to 07X1 / 00Y1 to 07Y1 0x0 to 7x0 / 0y0 to 7y0 0x1 to 7x1 / 0y1 to 7y1 00M0 to 07M0 00M1 to 07M1 0B to 7B ABS / SQRT / TAN / ATAN (00 to 14) MAX/MIN (00 to 14) -9999999.9999 to +9999999.9999 The numbers from 00 to 07 in front of the characters are registration 14-2 Corresponds to page 14-4. These are the same as for the other measurement programs. Numerical Calculations Setting procedure Setting the headings on the [NUMERIC CALC] (numerical calculation conditions) screen. Specify the output for the results of the calculations N00 to N15 Select the data to be calculated TYPE Enter the number of styles (Select an arithmetic function) FORMULA Set the judgment output conditions Carry out a calculation Enter the upper and lower limits Not done OUTPUT 1RUN A TEST UPR & LOW LIMIT All recording is finished Done Previous menu "RETURN" Output error An error will be output if there are too many digits as well as if there is an attempt to divide by zero. Order of calculation The calculation results are produced in order, from N00 to N15. Parallel output based on the output conditions It is possible to use the parallel output for the evaluation results from the calculations by selecting the PC function in the output conditions (the final output conditions are taken from the output conditions set for each measurement program) Types and number of styles of entered for each measurement program The table shown below contains the numeric formulas that can be assigned in "TYPE" and "FORMULA" on the "NUMERIC CALC" screen, for each measurement program. Measurement program Input types Symbol Degree of match M Coodinate X Coodinate Y Deviation x Deviation y Angle B Light level G Number of objects Distance Lead width Lead length /Lead width 2 Numeric culculation results Positional deviation measur ement Model 0: 0M0 to 7M0 Model 1: 0M1 to 7M1 Model 0: 0X0 to 7X0 Model 1: 0X1 to 7X1 Model 0: 0Y0 to 7Y0 Model 1: 0Y1 to 7Y1 Model 0: 0x0 to 7x0 Model 1: 0x1 to 7x1 Model 0: 0y0 to 7y0 Model 1: 0y1 to 7y1 Model 0: 0B0 to 7B0 Model 1: 0B1 to 7B1 Degree of mat ch inspection Model 0: 00M0 to 15M0 Model 1: 00M1 to 15M1 Model 0: 00X0 to 15X0 Model 1: 00X1 to 15X1 Model 0: 00Y0 to 15Y0 Model 1: 00Y1 to 15Y1 Lead inspection 14 Model 0: 00G0 to 15G0 Model 1: 00G1 to 15G1 K 00K to 31K MAX: MXD 00MXD to 15MXD MIN: MND 00MND to 15MND MAX: MXW 00MXW to 15MXW MIN: MNW 00MNW to 15MNW MAX: MXL 00MXL to 15MXL MIN: MNL 00MNL to 15MNL N N0 to N15 N0 to N15 14-3 N0 to N15 Numerical Calculations Input types Symbol Total area A Number of objects K MAX: MXR MIN: MNR MAX: XDX MIN: NDX MAX: XDY MIN: NDY MAX: XFX MIN: NFX MAX: XFY MIN: NFY Area of each label Distance between gravity centers X Distance between gravity centers Y Fellet diameter X Fellet diameter Y Numerical calculation result BGA/CSP inspection 0A to 3A N Measurement program Area measurement by binary conversion Number of masks= 1: 00A to 15A Number of masks= 2: 0A to 7A Number of masks= 4: 0A to 3A 0K to 3K 0MXR to 3MXR 0MNR to 3MNR 0XDX to 3XDX 0NDX to 3NDX 0XDY to 3XDY 0NDY to 3NDY 0XFX to 3XFX 0NFX to 3NFX 0XFY to 3XFY 0NFY to 3NFY N0 to N15 Counting quantities by binary conversion 0A to 3A 0K to 3K N0 to N15 N0 to N15 Measurement program Input types Symbol Total area A 0A to 3A Number of objects K 0K to 3K Area of each label R 0R000 to 0R127 X coordinate of gravity center Y coordinate of gravity center 14 GX GY Label measurement by binary conversion Point measur ement 3R000 to 3R127 0GX000 to 0GX127 3GX000 to 3GX127 0GY000 to 0GY127 3GY000 to 3GY127 0B000 to 0B127 3B000 to 3B127 Main axis angle B Fellet diameter X FX Fellet diameter Y FY Perimeter of each object CR Center point X CX Center point Y CY Average light level G Counting white objects WC (Count all the objects registered) Number of registers RC (Corresponds to the whole number of registers) Numerical calculation results N 0FX000 to 0FX127 3FX127 0FY000 to 0FY127 3FY127 0CR000 to 0CR127 3CR127 0CX000 to 0CX127 3CX127 0CY000 to 0CR127 3CY127 3FX000 to 3FY000 to 3CR000 to 3CX000 to 3CY000 to 000G to 127G N0 to N15 N0 to N15 Measurement program Input types Symbol Number of objects Degree of match Coordinate Coordinate Density Auxiliary 1 Auxiliary 2 Distance Angle Numerical calculation result K M X Y G H1 H2 D B N Multiple positions measurement 0K to 3K 0M000 to 3M127 0X000 to 3X127 0Y000 to 3Y127 Multiple degree of match inspection 0K to 3K 0M000 to 3M127 0X000 to 3X127 0Y000 to 3Y127 0G000 to 3G127 Distance and angle measurements 00H1 to 15H1 00H2 to 15H2 00D to 15D 00B to 15B N0 to N15 14-4 N0 to N15 N0 to N15 Numerical Calculations [1] Display lists on the "NUMERIC CALC" screen This section displays the "NUMERIC CALC" screen for each measuring program. The details displayed for "FORMULA" will depend on the "TYPE" selected. (1) Positional deviation measurement See page 14-2. (2) Degree of match inspection NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA MATCH M CRD-X CRD-Y LVL G NUM-CAL[NC] CNST[C] NO Selection of formula MATCH M CRD-X CRD-Y LVL G OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 (3) Lead inspection NUMERIEC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA OBJ-K DISTANCE MAX MXD DISTANCE MIN MND LEAD WIDTH MAX MXW LEAD-WIDTH MIN MNW LEAD-LENGTH MAX MXL LEAD-LENGTH MIN MNL NUM-CAL[NC] CNST[C] NO Selection of formula OBJ-K DISTANCE MAX MXD/MIN MND LEAD WIDTH MAX MXW/MIN MNW LEAD-LENGTH MAX MXL/MIN MNL OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 (4) Area measurement by binary conversion NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA TOTAL-AREA-A NUM-CAL[NC] CNST[C] NO Selection of formula TOTAL-AREA-A OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 14-5 14 Numerical Calculations (5) Object counting by binary conversion NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA TOTAL-AREA-A OBJ-K NUM-CAL[NC] CNST[C] Selection of formula TOTAL-AREA-A OBJ-K OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC (6) Object identification of binary conversion NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA TOTAL-AREA-A OBJ-K OBJECT-AREA-R C-GRAVS X GX C-GRAVS Y GY X FILLET-W FX Y FILLET-W FY AX.ANGL[B] LB-CIRCUM[CR] MID-PNT X CX MID-PNT Y CY NUM-CAL[NC] CNST[C] NO SET EXEC ESC BACK SEL CHNG IMG TRG FUNC 14 14-6 Selection of formula TOTAL-AREA-A OBJ-K OBJCT-AREA-R C-GRAVS GX/GY X FILLET-W FX/FY AX.ANGL[B] LB-CIRCUM[CR] MID-PNT CX/CY OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 Numerical Calculations (7) Point measurement When "AVG-GRAYS" is selected on the "1MODE" When "BINARY" is selected on the "1MODE" NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE NUMERIC CALC SCREEN COND SAVE F C1 BRT [N00-N07] CHG-CALC 1RUN A TEST (SET KEY) TYPE FORMULA F C1 BRT (SET KEY) FORMULA AVG-GRAYS[G] OBJ TYPES REG.LIST NUM-CAL[NC] CNST[C] NO WHT.CNT/REG.NO[WRC] NUM-CAL[NC] CNST[C] NO The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type Selection of formula WHT.CNT/REG.NO[WRC] WHT.CNT[WC], REG.NO[WRC], NUM-CAL, CNST,DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 Selection of type Selection of formula AVG-GRAYS[G] OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL WHT.CNT/REG.NO[WRC] WHT.CNT[WC], REG.NO[WRC], NUM-CAL, CNST,DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 (8) Multiple positional measurement NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE The details displayed for "FORMULA" will depend on the "TYPE" selected. F C1 BRT Selection of type (SET KEY) FORMULA OBJ-K MATCH M CRD-X CRD-Y NUM-CAL[NC] CNST[C] NO Selection of formula OBJ-K MATCH M CRD X/Y OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 14 (9) Multiple degree of match inspection NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE The details displayed for "FORMULA" will depend on the "TYPE" selected. F C1 BRT Selection of type (SET KEY) FORMULA OBJ-K MATCH M LVL G CRD-X CRD-Y NUM-CAL[NC] CNST[C] NO 14-7 Selection of formula OBJ-K MATCH M LVL G CRD X/Y OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 Numerical Calculations (10) Distance and angle measurement NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT The details displayed for "FORMULA" will depend on the "TYPE" selected. Selection of type (SET KEY) FORMULA DST[D] ANGL[B] AUX H1 AUX H2 NUM-CAL[NC] CNST[C] NO SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 14 14-8 Selection of formula DST[D] ANGL[B] AUX[H1/H2] OBJECT TYPE, CALC RESULT, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 Numerical Calculations 14-3 Final numerical calculations Final numerical calculations can be set at item "FINAL NUM-CALC" on the menu tree. The setting procedure, error output settings, calculation sequence and parallel output based on the output conditions are exactly the same as those used for item "14-2 The individual numerical calculations for each measuring program." How to display the final numerical calculation screen. Open the sub menu for "TYPExx" on the menu tree and select "FINAL NUM. CALC." Then press the SET key. SELECT OBJECT TYPE COND F C2 BRT OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP Settings on the final numerical calculation screen. The display positions of each item selected are the NUMERIC CALC SCREEN COND same as in section "14-2 The individual numerical [N00-N07] CHG-CALC calculation for each measurement program." 1RUN A TEST (SET KEY) See the next page for the display details. TYPE SAVE FORMULA MEAS-CAL-RESULT[N] A-CAL-RESULT[AN] NUM-CAL[NC] CNST[C] NO OBJECT TYPE CNST SUM AVG CBP CBM DEL SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 14-9 F C1 BRT 14 Numerical Calculations "CHG-CALC" Move the cursor to the "CHG-CALC" item. Each time you press the SET key the display in the left most column will alternate between "AN00 to AN07" and "AN08 to AN15." RUN A TEST Pressing the SET key will store the setting details as well as run a test The numerical results of the tests will be displayed at position [F] and the OK or NG judgment will be displayed at position [E]. A: TYPE Select the type of data being calculated. B: FORMULA A number of style settings are used. The style type is selected using the left and right keys and the numerical values are entered using the up and down keys. The details displayed for "FORMULA" will depend on the "TYPE" selected. Selected of type Formula MEAS-CAL-RESULT[N] A-CAL-RESULT[AN] OBJECT TYPE, CNST, SUM, AVG, CBP, CBM, DEL NUM-CAL[NC] ABS, SQRT, TAN, ATAN, MAX, MIN, DEL CNST[C] +0000000,000 (second line is not displayed) Note: When "SUM" (total) or "AVG" (average) is selected for calculating the results, specify the range from 0 to 15. C: UPR&LOW LIMIT Enter the upper and lower limits for making a judgment D: OUTPUT Setting the output of the calculation results. Based on the settings at items "TYPE" and "FORMULA," the number of styles may be entered as follows. Number of styles OBJECT TYPE MEAS-CAL-RESULT [N] (Results of the calculations for measurements) 14 01N00 to 01N15 (Calculation result for measurement 0, camera 1: N00 to 15) 02N00 to 02N15 (Calculation result for measurement 0, camera 2: N00 to 15) 10N00 to 10N15 (Calculation result for measurement 1: N00 to 15) 20N00 to 20N15 (Calculation result for measurement 2: N00 to 15) 30N00 to 30N15 (Calculation result for measurement 3: N00 to 15) 40N00 to 40N15 (Calculation result for measurement 4: N00 to 15) A-CAL-RESULT [AN] (Results of final calculations) AN00 to AN15 NUM-CAL [NC] (Numerical calculations) ABS / / TAN / ATAN (00 to 15) MAX/MIN (00 to 15) CNST [C] (Constant) -9999999.99 to +9999999.99 14-10 Numerical Calculations 14-4 Setting examples The example below shows the settings used to evaluate and output the X-Y coordinates (differences) of the detection points in images 0 and 1, using the evaluation calculation. (Degree of match inspection See Chapter 5: Output See Chapter 15: PC Function.) Image 0 X coordinate difference Object to be measured Point detected in image 1 (register number 01, model 0) Point detected in image 0 (register number 00, model 0) Image 1 Y coordinate difference (1) Image setting After specifying the images, return to the "MEA CND" screen for the degree of match inspection. (2) Operations on the "MEA CND" screen Press the TRG/BRT key to move the cursor to the upper function menu. Select "COND" and press the SET key. Select "NUM-CALC" from the popup menu and then press the SET key. MEA CND SCREEN COND SAVE 1DTECT PRECISION 2REGISTER NO. 3MODE 4SEARCH 5MATCHING F C1 BRT IMG PRE-PROC REG COND EVALUATION DST&ANGL NUM-CALC OUT STANDARD 00(0~15) 1P-SCH YES AVG-GRAYS REGISTER NO. 6MDL 0 7MDL 1 SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC (3) Operations on the "NUMERIC CALC" screen 1. Select position "A" (2nd cell in the "TYPE" column) on the "N00" line using the up and down arrow keys. Select "CRD-X" from the popup menu and then press the SET key. 2. Move the cursor to position "B" (2nd cell in the "FORMULA" column) and press the SET key. "00X0" will be displayed in the "FORMULA" column. Select a digit using the left and right arrow keys. Press the SET key. Then change the selected digit "01X0" by using the up and down keys. X NUMERIC CALC SCREEN COND SAVE [N00-N07] CHG-CALC 1RUN A TEST TYPE F C1 BRT (SET KEY) FORMULA MATCH M CRD-X CRD-Y LVL G NUM-CAL[NC] CNST[C] NO OBJECT TYPE CALC RESULT CNST SUM AVG CBP CBM DEL "01X0" is referring to the X coordinate of register number 01 (image 1) and model 0. SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 14-11 14 Numerical Calculations Press the SET key, the cursor will move to the right. Press the SET key again and a popup menu will appear. Select the "-" and press the SET key. - The cursor will appear to the right of the "-." Press the SET key and a popup menu will appear. Select a "TYPE" and press the SET key. 00X0 will be displayed in the formula field. X 00x0 refers to the X coordinate of the detection point in model 0, stored in register NO.00 (image 0). 3. Move the cursor to the 2nd line using the up and down arrow keys and set the upper limit value using the left and right arrow keys. Then press the SET key. Then select a digit to change using the left and right arrow keys. Repeat this procedure to set the value to +160.0000 and then press the SET key. +0000000.0000~+0000160.0000 Upper limit Move the cursor to the lower limit using the left and right keys, and press the SET key. Select a digit using the left and right keys Enter the number +140.00 using the up and down keys, and press the SET key. +0000140.0000~+0000160.0000 Lower limit +0000140.0000 to +0000160.0000 will be displayed in the lower and upper limit fields. 4. Move the cursor to the "N01" line and the "TYPE" column using the up/down keys. - As described in steps 2 to 3, enter 01Y0 to 00Y0 in the formula field, and inter +0000090.0000 to +0000095.0000 in the upper and lower limit fields. X Y 5. Move the cursor to the " RUN A TEST" item using the up and down keys, and press the SET key. Press the SET key once more. Then the settings will be stored, and the test will be executed. The evaluation result (OK/NG) of the calculations will be displayed. X Y 14 OK: When the test result based on the calculations is within the specified range NG: When the test result based on the calculations is outside of the specified range 6. Press the ESC key to return to the "MEA-CND" setting screen. 14-12 Numerical Calculations (4) Operation on the "OUTPUT COND" screen 1. On the "MEA CND" setting screen, press the TRG/BRT key to move the cursor to the upper function menu. Select the "COND" item and then select the "OUT" item and press the SET key. MEA CND SCREEN 1DTECT PRECISION 2REGISTER NO. 3MODE 4SEARCH 5MATCHING COND SAVE F C1 DRK STANDARD 00(0~15) 1P-SCH YES AVG-GRAYS IMG PRE-PROC REG COND EVALUATION DST&ANGL NUM-CALC OUT REGISTER NO. 6MDL 0 7MDL 1 2. Select the "INPUT00" line and row 0. Then press the SET key. Select "NUM-CAL[NC]" from the popup menu and press the SET key. OUTPUT COND SCREEN SAVE Column No. 0 3. Move the cursor to the "LOGIC" line on the same row and press the SET key. Select " " from the popup menu and press the SET key. F C1 BRT 1 2 3 4 5 6 7 OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 The logical condition will be displayed in the left most column of the LOGIC row under INPUT 0. [PAGE0] INPUT0 LOGIC OUTPUT - N00 refers to the N00 calculation result, that was entered on the "NUMERIC CALC" screen. 4. Select the "INPUT00" line and row 1. Then press the SET key. Set "NUM-CAL[NC]" using the same procedures as in Steps 2 and 3 above. Since "N00" will appear first, press the SET key and change "N00" to "N01," using the up/down/left/right arrow keys. [PAGE0] INPUT0 LOGIC OUTPUT 5. Move the cursor to the "OUT" row using the left and right arrow keys, and press the SET key. Select "AUX-RLY" from the popup menu and press the SET key. 6. A list of auxiliary relays will be displayed. Select "C000" using the up and down arrow keys and press the SET key. AUX-RLY Use place The output coil for INPUT 0 will be displayed. [PAGE0] INPUT0 LOGIC OUTPUT 7. Press the ESC key to move to the "MEA-CND" setting screen. 14-13 C000 C001 C002 C003 C004 C005 C006 C007 MEAS1/OUTPUT COND NO NO NO NO NO NO NO 14 Numerical Calculations (5) Operations on the "FINAL OUTPUT COND" screen 1. Select "FINAL OUTPUT COND" on the "SELECT OBJECT TYPE COND" screen, to display the final output conditions screen. 2. Move the cursor to "INPUT00" and row 0, and press the SET key. Select "AUX. RLY-C." from the popup menu and press the SET key. SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS (NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) OUTPUT COND SCREEN SAVE 0 INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC 1 2 F C1 BRT 3 AUX.RLY-C EXT-INP X TMR TM CNTR CN AN OUTPUT Y 4 5 6 7 OUT OUTPUT Y AUX.RLY-C TMR TM CNTR CN DEL SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC The following logical symbol will be displayed in the left most column of INPUT 0. [PAGE0] INPUT0 LOGIC 14 OUTPUT 3. Move the cursor to the "OUT" row using the left and right arrow keys, and press the SET key. Select "OUTPUT Y" from the popup menu and press the SET key. 4. Now, a list of the Y outputs will be displayed. Select "Y0" using the up and down arrow keys, and press the SET key. The output coil for INPUT 0 will be displayed. [PAGE0] INPUT0 LOGIC OUTPUT 5. Press the TRG/BRT key to move the cursor to the upper function menu. Then select "SCREEN" and press the SET key. Select "OPSMENU" from the popup menu and press the SET key. Select the operation screen. 14-14 Y OUTPUT Use place Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 FINAL OUTPUT COND NO NO NO NO NO NO NO Numerical Calculations (6) Degree of match inspection Press the TRG/BRT key, and the will calculate the X-Y coordinates of the detection points in images 0 and 1, and then evaluate and output the results. F C1 BRT V*.** (TYPE00) OK MEAS XXXXms MEASUREMENT 1 CHK-DEG-MATCH REGISTER N00(0~15) M0=+09735 OK X0= 090.0 OK Y0= 092.0 OK G0= 018.0 OK MNU-CHG MAIN-COND CHG-MEA COND-CHG CHNG-REG SCREEN-CHG CHG-TYPE If the difference in the X and Y coordinates is within the range set on the numeric calculation menu, Y0 will be turned ON, and a filled box will be displayed. If the difference is not within the range, Y0 will be turned OFF, and an empty box will be displayed. - If the result is within the range, N00 and N01 will be turned ON (OK), the auxiliary relay C000 will be turned ON, and output Y00 will be turned ON. Output conditions Final output conditions 14 14-15 PC Function Chapter 15: PC Function 15-1 Outline The PC function is designed to create a ladder circuit program based on the data (coordinates, distance, degree of match, and results of numerical calculations) obtained from the measurements and calculations made by the IV-S30J. Then it outputs the results of the calculations performed by the circuit. Use of the PC function enables the IV-S30J to output measurement results to an external equipment such as a lamp by itself, without the need for an external PC. 15-2 Operation cycle The operation cycle of the IV-S30J is outlined below. This flowchart contains only the operations related to the PC function, and does not show communications with external devices. Power ON Power ON sequence Input refresh Ladder circuit calculation (final output conditions) Ex. : X0 C000 Y00 X1 PC scan cycle Y01 C001 Output refresh Has a measurement start input signal been received? NO YES Image processing for measurement 0 using camera 1 Ladder circuit calculation (based on output conditions for measurement 0 of camera 1) Ex. : 0M0 N01 C000 0X0 N02 C001 C000 Measurement processing for measurement 0 using camera 2 15 Ladder circuit calculation (based on output conditions for measurement 0 of camera 2) Measurement processing for measurement 1 Ladder circuit calculation (based on output conditions for measurement 1) Measurement processing for measurement 2 Ladder circuit calculation (based on output conditions for measurement 2) Measurement processing for measurement 3 Ladder circuit calculation (based on output conditions for measurement 3) Measurement processing for measurement 4 Ladder circuit calculation (based on output conditions for measurement 4) 15-1 Measurement processing cycle PC Function [1] Power ON sequence The parallel output terminals (Y0 to Y7) are reset, and the data memories (input relays, output relays, auxiliary relays, timer and counter) are cleared. [2] PC scan cycle In the PC scan cycle, the following three operations (1) to (3) are repeated cyclically. (1) Input refresh The ON/OFF data from the parallel input terminals (X0 to X7) is written into the data memory (input relays). (2) Ladder circuit calculation (final output conditions) The calculations are executed by the ladder circuit program which contains the data from input relays, output relays, auxiliary relays (incl. output which are obtained by the ladder circuit program calculation in the measurement processing cycle), timer and counter. (3) Output refresh The ON/OFF data of the output relays, obtained in calculation (2), is output to the parallel output terminals (Y0 to Y7). - The processing time for the three steps described above is called "1PC scan time," and ranges from 0.3 to 3.0 ms, depending on the settings. [3] Measurement processing cycle When the measurement start input signal is given, the measurement processing is carried out, and the calculations of the ladder circuit program for measurements 0 to 3 are executed. (1) Measurement processing (measurement 0 to 4) - The coordinates, distance, and degree of match are determined by the measurement programs. If the numerical calculation conditions have been set, calculations will be executed. - Each measurement obtained is judged to be OK or NG, based on the criteria entered by the user. If it is OK, 1 (ON) will be used as the input condition for the following calculation on the ladder circuit, and if it is NG, 0 (OFF) will be used. (2) Ladder circuit calculation (based on output conditions for measurements 0 to 4) - The values obtained from the measurement processing are used as the input conditions for the ladder circuit. Calculations will be executed by a ladder circuit. The output relays are the auxiliary relays that will be used for calculation by the ladder circuit in the PC scan cycle. The relationship between the ladder circuit in the measurement processing cycle and the ladder circuit in the PC scan cycle Measurement processing cycle ladder circuit (measurement output conditions) Measurement 0 - camera 1 Measurement 2 (Positional deviation Measurement 1 measurement) (Binary area measurement) (Point measurement) 0M0 15 C000 Degree Auxiliary of match relay PC scan cycle ladder circuit (final output conditions) 00A C001 Total Auxiliary relay area C000 C001 P000 C002 Point Auxiliary relay Y00 C002 External output Notes - 128 auxiliary relays, C000 to C127, can be set. However, identical auxiliary relay numbers cannot be used for measurement 0 using camera 1, and measurement 0 using camera 2, or for measurement 1, measurement 2, measurement 3 and measurement 4. - The auxiliary relays C110 to C127 are special relays. The special relays are used on the PC scan cycle ladder circuit. Do not use them for the measurement processing cycle ladder circuit. 15-2 PC Function 15-3 Ladder circuit program creation [1] Procedure for creating measurement output condition and a ladder circuit A separate ladder circuit can be created for positional deviation measurement, degree of match inspection, lead inspection, area measurement by binary conversion, object counting by binary conversion, object identification by binary conversion, point measurement, multiple position measurement, and multiple degree of match inspection. The procedure for creating a ladder circuit for positional deviation measurement is given below. A ladder circuit can be created the same way for other measurement just change the input contact point setting. (1) How to display the output conditions setting screen. There are two methods for displaying the output conditions setting screen, as follows. 1. On the menu tree, open the sub menu at "MEAS01(POSI-DEVIATION)." Press the SET key on the "OUT-COND" line. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEAS0 POSI-CORRECT MEAS0(POSI-DEVIATION) IMG PRE-PROC MEAS CND REG-COND(S) REG-COND(S) EVALUATION COND DISTANCE&ANGLE COND NUM-CALC OUT-COND MEAS(NEW) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG INPUT0 LOGIC INPUT1 LOGIC INPUT2 LOGIC INPUT3 LOGIC INPUT4 LOGIC INPUT5 LOGIC INPUT6 LOGIC INPUT7 LOGIC TRG=POPUP MEASUREMENT1 SCREEN COND SAVE 2. On the screen used for selecting the measurement program, or on the screens used for setting the measurement conditions or the register conditions, press the TRG/BRT key to move the cursor to the upper function menu. Then, move the cursor to the "COND" and press the SET key. Select "OUT" from the popup menu. 1MEAS SELECTION 0(0~7) F C1 DRK IMG PRE-PROC REG-COND(S) EVALUATION DST&ANGL NUM-CALC OUT 15 =SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 15-3 PC Function (2) How to specify the input conditions for ladder circuit diagrams 1. While "CHANGE INPUT" is selected, each OUTPUT COND SCREEN SAVE INPUT00-07 press of the SET key will change the display in Column No. 0 to 7 CHANGE INPUT the left most row. The display will cycle through the following choices: "INPUT00 to INPUT00 INPUT07," "INPUT08 to INPUT15," and LOGIC INPUT01 "INPUT16 to INPUT19." When the input group LOGIC you want is displayed, press the down arrow MATCH M INPUT02 Row No. key to move the cursor to the ladder circuit CRD-X LOGIC display section. INPUT03 CRD-Y 2. Move the cursor to a line number (INPUTxx) and a row using the up/down/left/right arrow keys, and press the SET key. Select a type to input from the popup menu. The input types for each measurement program are shown on pages 16-6 to 16-7. LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC Note: "00M0" means the following: 00M0 MATCH M0 - CRD-X - CRD-Y - DEV-x0 - DEV-y0 - ANGL-B0 - NUM-CAL[NC]00 - AUX.RLY-C000 DEV-x DEV-y ANGL-B NUM-CAL[NC] AUX.RLY-C F C1 BRT OUT Ladder circuit display area This display varies with each measurement program. - Page 16-9 to 16-10. SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC (0~1) (0~1) (0~1) (0~1) (0~1) (0~1) (0~15) (0~127) - 0 to 3: BGA/CSP inspection, object counting by binary conversion, object identification by binary conversion, multiple position measurement, degree of match inspection. - 0 to 7: Positional deviation measurement - 0 to 15: Degree of match inspection, lead inspection, area measurement by binary conversion, distance and angle measurement - 0 to 127: Point measurement (average) - 0 to 255: Point measurement (binary conversion) 3. After selecting an input type, press the SET key and move the cursor to a logic line. OUTPUT COND INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC 15 SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT DEL SET=SELECT LOGIC SYMBOL SEC=BACK SEL=CHNG IMG TRG=FUNC 15-4 PC Function 4. Press the SET key and select a logic symbol from the popup menu. Logic symbol Function a contact on a series circuit (ON, when the evaluation result is OK) b contact on a series circuit (OFF, when the evaluation result is OK) Deletes a contact on the cursor. (Contacts after the deleted contact will not be brought forward.) Note: This symbol cannot be used on the first row. Used to create an OR circuit. Used to create an OR circuit Deletes the contact on the cursor. (Contacts after the deleted contact will be brought forward.) When a contact exists only on the first row, if the contact is deleted, also the output relay will be deleted. DEL (3) How to specify the output conditions for ladder circuit diagrams Move the cursor to the "OUT" row for the desired OUTPUT COND SCREEN line number and press the SET key. Press the INPUT00-07 SET key while the cursor is on "AUX-RLY" and CHANGE INPUT select the auxiliary relays you want to use from INPUT00 the table that is displayed. LOGIC Note: Only the lines which have a specified input INPUT01 signal can be selected for output. LOGIC AUX-RLY INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 Creation example: INPUT00 LOGIC SAVE C C C C C C C C F C1 BRT OUT AUX-RLY Use place NO NO NO NO NO NO NO NO (4) Creating a ladder circuit is complete Create a ladder circuit for the page numbers registered in step (1), repeating the operations in steps (2) and (3). Creation example: 0 INPUT0 LOGIC INPUT1 LOGIC INPUT2 LOGIC INPUT3 LOGIC 1 2 3 4 5 6 7 OUT 00M0 C001 C000 N01 N02 C001 15 N03 N04 Note: Output relays cannot be used in series on a ladder circuit. Change circuit a to circuit b. Circuit b Circuit a C001 C010 C001 C010 C011 C001 C011 15-5 PC Function Kinds of input signals in each measurement program Measurement program Lead inspection Kind of input Symbol Degree of match M Coordinate X Coordinate Y Deviation x Deviation y Model 0: 0y0 to 7y0 Model 1: 0y1 to 7y1 Angle B 0B to 7B Light level G Number of objects K 00K to 15K Distance D 00D to 15D Lead width W 00W to 15W Lead length / lead width 2 L 00L to 15L Positional deviation measurement Model 0: 00M0 to 07M0 Model 1: 00M1 to 07M1 Model 0: 00X0 to 07X0 Model 1: 00X1 to 07X1 Model 0: 00Y0 to 07Y0 Model 1: 00Y1 to 07Y1 Model 0: 0x0 to 7x0 Model 1: 0x1 to 7x1 Degree of match inspection Point measurement Model 0 : 00M0 to 15M0 Model 1 : 00M1 to 15M1 Model 0 : 00X0 to 15X0 Model 1 : 00X1 to 15X1 Model 0 : 00Y0 to 15Y0 Model 1 : 00Y1 to 15Y1 Model 0 : 00G0 to 15G0 Model 1 : 00G1 to 15G1 Binary point P000 to P255 Average light level point P000 to P127 Numerical calculation results N Auxiliary relay N N0 to N15 N0 to N15 N0 to N15 N0 to N15 C000 to C127 Measurement program 15 Kind of input Symbol Symbol Total area A Number of objects Area measurement by binary conversion Number of masks=1: 00A to 15A Number of masks=2: 0A to 7A Number of masks=4: 0A to 3A K Area of each label R Fillet diameter X FX Fillet diameter Y FY Distance between gravity centers X DX Distance between gravity centers Y DY Numerical calculation results N Auxiliary relay C Object Object counting identification by by binary binary conversion conversion 0A to 3A 0A to 3A 0K to 3K 0K to 3K 0R000 to 0R127 3R000 to 3R127 N0 to N15 N0 to N15 C000 to C127 15-6 N0 to N15 PC Function Measurement program Kind of input Symbol Number of objects K 0K to 3K 0K to 3K Numerical calculation results N N0 to N15 N0 to N15 Auxiliary relay C Multiple positions measurement Multiple degree of match inspections C000 to C127 Kind of input Symbol Auxiliary H 00H to 15H Distance D 00D to 15D Angle B 00B to 15B Numerical calculation results N N0 to N15 Auxiliary relay C C000 to C127 Distance and angle measurement * * The measurement programs that can use these inputs are the positional deviation measurement, degree of match measurement, object identification by binary conversion (center of gravity: YES) multiple positions measurement, and multiple degree of match inspections. 15 15-7 PC Function Auxiliary relay C000 to C127 The functions of the auxiliary relays (C000 to C127), which can be used for input and output signals, are explained below. Function Relay No. (relay name) Use for input signals Use for output signals C000 to C109 - Relays for internal calculation (internal - For the final output conditions, relays also used for output in the measurement calculation) processing cycle can be used. C110 Normally OFF - When C111 is ON, C000 to C109 are cleared. C111 C112 (Final evaluation result) - Turned ON when all of the evaluation items have been judged OK, and turned OFF if any single item has been judged NG. - If C116 is not used, OK/NG will be displayed on the operation screen which correspond to ON/OFF of C112. * - If an error occurs (C118 is turned ON),C112 will be turned OFF (NG). - When C113 is ON, continuous measurements will be executed. Ex.: When X0 is ON, continuous measurements will be executed. X0 C113 C113 (Continuous measurement start input) Output the CCD trigger status to C114, regardless of the Yes/No setting for the start of the measurement. - When "binary conversion" is specified, if the white area is 50% or more of the image, C114 will be C114 turned ON, and if it is less than 50 %, C114 will be (CCD trigger turned OFF. status output) - When the "average light level" is specified, C114 will be turned ON when the image is within the specified level range, and turned OFF when it is out of the range. C115 - The same signal as the READY signal is output internally. - If an output signal is passed to C116, the display of the OK/NG result on the operation screen will depend on the ON/OFF state of C116. Ex.: "OK" is displayed on the operation screen when C000 is ON, and "NG" when the C000 is OFF. C000 C116 C116 (programmable output) - If C116 relay is not used, the display of the OK/NG result will depend on of the final evaluation result (C112). * 15 - Turned OFF when the illumination exceeds the upper or lower warning level of the illuminance C117 monitor set on the "MONITOR LIGHT LVL" menu. (Illuminance Warning light levels can be set for each of the monitor error) cameras 1 and 2 separately. This relay is turned OFF when either one of them exceeds the upper or lower level. C118 - Turned ON when a measurement processing error (measurement occurs.(However, except the end code 34/35/36/3E. operation error) - See page 20-4.) C119 - Turned ON upon termination of measurement (measurement processing, and turned OFF when a measurement termination) start input signal is given. - They are turned ON to reset counters CN0 to CN7. C120 to C127 correspond to CN0 to CN7. Create a circuit for sending an output signal to one of these relays on the row following a row that contains a counter instruction. (Counter instruction - See page 16-14.) C120 to C127 - Do not use these relays for input signals. (counter reset) * OK/NG displayed on the operation screen - See page 1-10. 15-8 PC Function [2] A list of the "OUTPUT COND" screen displays Shown below are the "OUTPUT COND" screen displays for each program. (1) Positional deviation measurement See page 15-4. (2) Degree of match inspection OUTPUT COND SCREEN SAVE (3) Lead inspection F C1 BRT INPUT00-07 CHANGE INPUT OUTPUT COND SCREEN SAVE INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC F C1 BRT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC MATCH M CRD-X CRD-Y LVL G NUM-CAL[NC] AUX.RLY-C SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC OBJ-K DST-D LEAD WIDTH W LEAD LENGTH L NUM-CAL[NC] AUX.RLY-C SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC (4) Area measurement by binary conversion OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC TOTAL-AREA-A NUM-CAL[NC] AUX.RLY-C 15 SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC 15-9 PC Function (5) Object counting by binary conversion OUTPUT COND SCREEN SAVE (6) Object identification by binary conversion F C1 BRT INPUT00-07 CHANGE INPUT OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC TOTAL-AREA-A OBJ-K NUM-CAL[NC] AUX.RLY-C SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC SCREEN SAVE TOTAL-AREA-A OBJ-K OBJECT-AREA-R NUM-CAL[NC] AUX.RLY-C SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC (7) Point measurement When "BINARY" is selected in "MODE" line. OUTPUT COND OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC F C1 BRT INPUT00-07 CHANGE INPUT When "AVG-GRAY" is selected in "MODE" line. OUTPUT COND SCREEN SAVE INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 BIN-PNT-P NUM-CAL[NC] AUX.RLY-C SCREEN SAVE OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 (8) Multiple positional measurement OUTPUT COND AVG-GRAY G NUM-CAL[NC] AUX.RLY-C (9) Multiple degree of match inspections F C1 BRT OUTPUT COND SCREEN SAVE OUT OUT 15 INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC OBJ-K NUM-CAL[NC] AUX.RLY-C (10) Distance and angle measurement OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC F C1 BRT INPUT00-07 CHANGE INPUT INPUT00-07 CHANGE INPUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC F C1 BRT AUX-H DST-D ANGL-B NUM-CAL[NC] AUX.RLY-C 15-10 OBJ-K NUM-CAL[NC] AUX.RLY-C PC Function [3] Procedure for creating the final output conditions in a ladder circuit This section describes the ladder circuit creation procedures for each object type number. (1) How to display the final output conditions setting screen 1. Select an object type from 00 to 15 on the SELECT OBJECT TYPE COND menu tree and then move the cursor to "FINAL OBJECT TYPE COND OUTPUT COND." Press the SET key. TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) F C1 BRT INPUT0 LOGIC INPUT1 LOGIC INPUT2 LOGIC INPUT3 LOGIC INPUT4 LOGIC INPUT5 LOGIC INPUT6 LOGIC INPUT7 LOGIC SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 2. The "OUTPUT COND" screen will appear. OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC SET=EXEC SEC=BACK SEL=CHNG IMG TRG=FUNC 15 15-11 PC Function (2) How to specify the input conditions for ladder circuit diagrams 1. While "CHANGE INPUT" is selected, each OUTPUT COND SCREEN SAVE press of the SET key will change the display in INPUT00-07 Column No. 0 to 7 CHANGE INPUT the left most row. The display will cycle through the following choices: "INPUT00 to INPUT00 INPUT07," "INPUT08 to INPUT15," "INPUT16 LOGIC INPUT01 to INPUT23," and "INPUT24 to INPUT31." LOGIC When the input group you want is displayed, AUX.RLY-C INPUT02 Row No. press the down arrow key to move the cursor EXT-INP X LOGIC to the ladder circuit display section. INPUT03 TMR TM 2. Move the cursor to a line number (INPUTxx) and a row using the up/down/left/right arrow keys, and press the SET key. Select a type to input from the popup menu. LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC CNTR CN AN OUTPUT Y F C1 BRT OUT Ladder circuit display area SET=SELECT TYPE SEC=BACK SEL=CHNG IMG TRG=FUNC 3. After selecting an input type, press the SET key and move the cursor to a logic line. 4. Press the SET key and select a logic symbol from the popup menu. OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC OUT DEL SET=SELECT LOGIC SYMBOL SEC=BACK SEL=CHNG IMG TRG=FUNC Logic symbol Function a contact on a series circuit (ON, when the evaluation result is OK) 15 b contact on a series circuit (OFF, when the evaluation result is OK) Deletes a contact on the cursor. (Contacts after the deleted contact will not be brought forward.) Note: This symbol cannot be used on the first row. Used to create an OR circuit. DEL Used to create an OR circuit Deletes the contact on the cursor. (Contacts after the deleted contact will be brought forward.) When a contact exists only on the first row, if the contact is deleted, also the output relay will be deleted. 15-12 PC Function (3) How to specify the output conditions for ladder circuit diagrams Move the cursor to "OUT" and press the SET key. Select a target for the output signals from the popup menu. Detail of the registration table that will appear varies, depending on the target selected for output. When "AUX.RLY-C" is selected When "OUTPUT Y" is selected OUTPUT COND SCREEN SAVE F C1 BRT OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT INPUT00-07 CHANGE INPUT OUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC AUX-RLY Y Y Y Y Y Y Y Y Use place NO NO NO NO NO NO NO NO OUTPUT Y AUX-RLY-C TMR TM CNTR CN DEL Y OUTPUT C C C C C C C C Use place NO NO NO NO NO NO NO NO OUTPUT Y AUX-RLY-C TMR TM CNTR CN DEL SET=SELECT OUTPUT RELAY SEC=BACK SEL=CHNG IMG TRG=FUNC SET=SELECT OUTPUT RELAY SEC=BACK SEL=CHNG IMG TRG=FUNC When "TMR TM" is selected OUTPUT COND INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC When "CNTR CN" is selected SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUTPUT COND SCREEN SAVE F C1 BRT INPUT00-07 CHANGE INPUT OUT INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC TM TIME REG TM TM TM TM TM TM TM TM Use place NO NO NO NO NO NO NO NO OUT OUTPUT Y AUX-RLY-C TMR TM CNTR CN DEL SET=SELECT OUTPUT RELAY SEC=BACK SEL=CHNG IMG TRG=FUNC INPUT00 LOGIC INPUT01 LOGIC INPUT02 LOGIC INPUT03 LOGIC INPUT04 LOGIC INPUT05 LOGIC INPUT06 LOGIC INPUT07 LOGIC TM TIME REG CN CN CN CN CN CN CN CN Use place NO NO NO NO NO NO NO NO OUTPUT Y AUX-RLY-C TMR TM CNTR CN DEL SET=SELECT OUTPUT RELAY SEC=BACK SEL=CHNG IMG TRG=FUNC Creation example: INPUT00 LOGIC 15-13 15 PC Function Kind of output signal External output instructions Data memory No. Function Y0 to Y7 Y8 to Y15 Output to the parallel I/F, general purpose serial I/F and computer link. Output to the general purpose serial I/F or computer link A timer terminal will be turned ON for a set amount of time (set value 000 to 999, unit 10 ms) after the timer instruction is input. (Decrementing type) When the timer instruction input is turned OFF, the timer terminal will be turned OFF. [Ex.] C001 TM0 0250 TM0 Y00 Timer TM0 to TM7 instructions Timer instruction Timer set value (2.5 sec.) Output instruction (external output) Timer terminal C001 2.5 sec. 2.5 sec. TM0 [Y00] While the counter reset relay is OFF, if a counter instruction input is cycled from OFF to ON, the number of times you set (set value 000 to 999), the counter terminal will be turned ON. (Decrementing type) When the counter reset relay is turned ON, the counter terminal is turned OFF. Create a circuit to turn the counter reset relay ON and OFF on the row following a row that containing a counter instruction. [Ex.] Counter instructions CN0 to CN7 C002 CN0 0003 X5 C120 CN0 Y01 Counter instruction Counter set value Resetting the CN0 Output instruction (external output) Counter terminal X5 [C120] C002 1 2 3 4 5 CN0 [Y01] Deletion 15 The output relay on the row where the cursor is located will be deleted. - See page 16-8 for details about the auxiliary relays C000 to C127. 15-14 PC Function (4) Creating a ladder circuit is complete Create a ladder circuit for the page numbers registered in step (1), repeating the operations in steps (2) and (3). 0 INPUT0 LOGIC INPUT1 LOGIC INPUT2 LOGIC INPUT3 LOGIC Note: 1 2 3 4 5 6 7 C000 C001 OUT Y00 X0 C001 X1 TM0 0150 TM0 Y01 Output relays cannot be used in series on a ladder circuit. Change circuit a to circuit b. Circuit b Circuit a C C C C C C C 15 15-15 PC Function 15-4 Program examples (shape and positional deviation inspection) (1) Outline The positional deviation measurement (one point search) in measurement 0 allows the degree of match and coordinates to be measured, and the result, OK or NG, is output. Reference image (registration No.0) Object to be measured Reference image registration window Search area Shape NG (degree of match NG) Evaluation condition (acceptable range) Positional deviation NG (X coordinate, Y coordinate NG) Coordinate (model 0-X): 200.0 to 250.0 Coordinate (model 0-Y): 150.0 to 200.0 Degree of match (model 0): +09500 to +10000 (2) Output conditions and ladder circuit for measurement 0 using camera 1 When the X coordinate, Y coordinate and degree of match are within acceptable ranges, the auxiliary relay C000 is turned ON. 00X0 00Y0 00M0 Coordinate X Coordinate Y Degree of match C000 OK (3) Final output conditions and ladder circuit C119 15 C000 Measurement OK termination C118 Y00 NG output Y01 Measurement operation error C117 Illuminance monitor error Y02 Measurement operation error output Illuminance monitor error output 15-16 PC Function 15-5 Examples of a final output conditions ladder circuit (1) Circuit for keeping the external output ON until the next external trigger is received Y00 C000 C119 NG output Measurement termination OK External trigger input READY External output Y00) (2) Circuit for controlling the ON time of the external output using the timer TM0 0010 C119 Measurement termination C119 C000 10ms 10 100ms Y00 TM0 NG output OK External trigger input READY 100ms External output Y00) (3) An example of a circuit that can output a signal when the IV-S30 is operating normally. Y00 C110 Output while operation is normal Normally OFF Start the system System error Restart the system Y00 The system will restart automatically if it detects a system error. 15-17 15 PC Function 15-6 PC monitor screen Move the cursor to "SCREEN-CHG" on the operation screen and press the SET key. A popup menu will appear and you can select "PC-MNTR" or "PC-MNTR 2", and press the SET key. Then the PC monitor screen will be displayed. However, before you can display this screen, you have to set "YES" on the " PC-MNTR" on the "TYPE RUN COND" menu. See page 2-11. (TYPE00) OK 1 2 3 4 5 6 The ON ( ) or OFF ( ) status of the input relays (X00 to X07) is displayed. The ON ( ) or OFF ( ) status of the output relays (Y00 to Y15) is displayed. F C1 DRK MEAS XXXXms NUMERIC CALC AN00 NOT SET AN01 NOT SET AN02 NOT SET AN03 NOT SET AN04 NOT SET AN05 NOT SET AN06 NOT SET AN07 NOT SET TMR NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET CNTR NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET NOT SET OPS-MAIN PC-MNTR 2 7 MNU-CHG MAIN-COND SEL-OUT SEL-AUX SEL-NUM SCREEN-CHG CHG-TYPE The ON ( ) or OFF ( ) status of the auxiliary relays (C000 to C127) is displayed. Change the output relay address Change the auxiliary relay address Change the final numerical calculation address The results (AN00 to AN15) of the final numerical calculations are displayed. The current timer value is displayed. The current counter value is displayed. Menu bar Menu bar Description SEL-OUT Change the output relay address (Y00 to Y15) with the up and down keys (in units of 8 points). SEL-AUX Change the auxiliary relay address (C000 to C127) with the up and down keys (in units of 8 points). Change the final numerical calculation address (AN00 to AN15) with the up SEL-NUM and down keys (in units of 8 points). The other data displayed is the same as on the operation screen. 15 15-18 See page 1-10. Setting the Input/Output Conditions Chapter 16: Setting the Input/Output Conditions 16-1 Outline This section describes the input and output settings on the IV-S30J when connecting it for communication with other equipment (a personal computer or a programmable controller). How to display the "I/O CONDITIONS" setting screen To display the "I/O CONDITIONS" screen, select "MAIN COND" -> "SYS-CND" -> "I/O CONDITIONS," in that order. F C1 BRT SELECT SYSTEM COND SYS-CND I/O CONDITIONS COMM.SET COMPUTER LINK GAIN-OFFSET 1MEAS INP I/F 2OUT I/F(PARAL.) 3MANL TYPE CHNG 4PARALLEL INP X5 5PARALLEL INP X6 6STROBE OUT 7’READY’ON How to set the input and output conditions The items you will need to set depend on whether you selected "PARALLEL+SERIAL" or "TRIG CCD START" on the " MEAS INP I/F" line. When you want to select the " PARALLEL +SERIAL" on the "MEAS INP I/F" line. MEAS INP I/F Select "PARALLEL+SERIAL" for the interface, in order to allow an external device to provide trigger signals for the IV-S30J. I/O CONDITION 1MEAS INP I/F PARALLEL+SERIAL 2OUT I/F(PARAL.) 3MANL TYPE CHNG 4PARALLEL INP X6 NO NO EXT-INP 5PARALLEL INP X7 6STROBE OUT 7’READY’ON EXT-INP NO CAPTURE COMPLETE I/O CONDITION PARALLEL+SERIAL TRIG CCD START SCREEN COND SAVE 1MEAS INP I/F PARALLEL+SERIAL 2OUT I/F(PARAL.) 3MANL TYPE CHNG 4PARALLEL INP X5 NO NO EXT-INP 5PARALLEL INP X6 6STROBE OUT 7’READY’ON EXT-INP NO CAPTURE COMPLETE NO Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 F C1 BRT SCREEN COND SAVE CAPTURE COMPLETE MEAS-COMPLETE F C1 BRT NO YES EXT-INP REG REF COMRARE-IMGS AREA EVAL CORECT EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS 2 IMAGES SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 16-1 NO PC-LINK SERIAL 16 Setting the Input/Output Conditions OUT I/F(PARAL.) Select a signal output interface, in order to output the measured results externally. The choices are: "NO," "PC-LINK" or "SERIAL." NO No connection. (No output.) PC-LINK Connect to the parallel input on a programmable controller. SERIAL Connect to a standard serial port. MANL TYPE CHNG The object type can be changed manually using the remote keypad on the operation screen. NO Means that you cannot change the object type manually on the operation screen. Means that you will be allowed to change the object type manually on the operation screen. Move the cursor to the "CHG-TYPE" item on the operation screen, and select the YES object type No., displayed on the upper part of the screen, using the up and down keys. - See page 1-10. PARALLEL INP X5 Select the type of input terminal (INPUT) X5. EXT-INP External input: The PC function uses the terminal as an external input signal. -See Chapter 15. REG REF When X5 is turned from OFF to ON, and gray search is selected, the reference image will be registered in the SDRAM. When edge detection is selected, the reference coordinates will also be registered. - To store the reference image in flash memory Select the SAVE key on any sub menu or use a general purpose serial command. - Available measurement programs (gray scale search) Positional deviation measurement, the degree of match inspection, multiple positions measurement, multiple degree of match inspections for register No. 0, model 0 - Applicable measurement program (edge detection) Positional deviation measurement - If a reference image has not been specified, an "UNABLE REGISTER REF.IMG" (X5 reference image register error (code3E)) will occur. COMPARE-IMGS On the operation screen, when parallel input X5 is turned ON, the controller will transfer a previously registered reference image into its flash memory for use in performing calculations that compare images. Total area evaluation correction - When X5 is ON, the upper and lower limits for the total area AREA EVAL CORECT evaluation conditions will be corrected automatically. - Measurement programs: Area measurement, object counting, and object identification by binary conversion 16 16-2 Setting the Input/Output Conditions PARALLEL INP X6 Select the type of input terminal (INPUT) X6. Input/output condition EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS Setting details The PC function uses the terminal as an external input signal. - See Chapter 15. - Every time X6 is switched from OFF to ON, the selected camera will change. - page 2-4. - When the object type measurement condition is "CAMERA 1" only. "CAMERA 2" only, you are not allowed to change the camera used for output. - On starting a measurement, if X6 is OFF "CAMERA 1" will execute the measurement, and if X6 is ON Camera 2 will execute the measurement. - Before starting a measurement, you must set the following parameters. Measurement execution: 2 IMAGES - MEASURE 0 CAMERA 1 conditions = Gray scale search conditions - MEASURE 1 CAMERA 2 conditions = Area conditions (dummy) Image selection: Camera 1 and 2 are through modes. - When "2 IMAGES (overlap)" is selected, overlap processing will be executed according to the following timing. Note: Even if "2 IMAGES (overlap)" has not been selected, and regardless of which mode Camera 1 and Camera 2 are in, when a trigger (X0: Manual trigger) is received, the measurement will be executed. Camera 1 Camera 2 Through image Through image Freeze image Overlap input X6 Monitor output Camera 2 Overlapped image STROBE OUT When the strobe output setting is specified as "Y*" and the shutter is opened, the output (Y*) will be turned ON. When the shutter is closed, the output will be turned OFF. Y*= Y0 to Y7 Note: When you want to use the strobe output, specify a shutter speed between 1/30 and 1/250 seconds. Ë Strobe output timing Shutter Strobe output (Y*) Minimum 4 ms (1/250 sec.) Maximum 2 ms 'READY'ON Set the time to turn ON the READY output signal. (When the measurement start input source is set to parallel, the object type change signal will also be parallel, and results will be output as parallel signals.) At the end of an image capture When the controller stops capturing the image, the READY signal turns ON. At the end of a measurement When the controller stops measuring, the READY signal turns ON. 16-3 16 Setting the Input/Output Conditions When you want to select the "TRIG CCD START" on the "MEAS INP I/F" line. will depend on the selections made on The display details and items offered for selection on line the " START CCD SAMPL" line. When "AUTO(EDGE or LEVEL)" is selected I/O CONDITION SCREEN COND SAVE 1MEAS INP I/F 2START CCD SAMPL 3OUTPUT OBJ TYPE 4MANL TYPE CHNG 5PARALLEL INP X5 TRIG CCD START AUTO(EDGE) PARALLEL NO EXT-INP 6PARALLEL INP X6 7’READY’ON EXT-INP NO NO Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 F C1 BRT AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL PARALLEL SERIAL NO YES EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS 2 IMAGES EXT-INP REG REF COMRARE-IMGS AREA EVAL CORECT SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC When "PARALLEL" is selected I/O CONDITION SCREEN COND SAVE 1MEAS INP I/F 2START CCD SAMPL 3OUTPUT OBJ TYPE 4MANL TYPE CHNG 5PARALLEL INP X5 TRIG CCD START PARALLEL PC-LINK NO EXT-INP 6PARALLEL INP X6 7’READY’ON EXT-INP NO NO Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 F C1 BRT AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL NO PC-LINK SERIAL NO YES EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS 2 IMAGES EXT-INP REG REF COMRARE-IMGS AREA EVAL CORECT SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC When "SERIAL" is selected I/O CONDITION SCREEN COND SAVE F C1 BRT 1MEAS INP I/F TRIG CCD START 2START CCD SAMPL SERIAL 16 3MANL TYPE CHNG 4PARALLEL INP X5 NO EXT-INP 5PARALLEL INP X6 6’READY’ON EXT-INP NO NO Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL NO YES EXT-INP CHNG-IMG-OUT-CAM CAM-MEAS 2 IMAGES EXT-INP REG REF COMRARE-IMGS AREA EVAL CORECT SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC The details of the individual items on the "I/O CONDITION" menu are the same as described on pages 16-1 to 16-3. 16-4 Setting the Input/Output Conditions 16-2 Measurement start input and result output settings The combinations of various settings for item " MEAS INP I/F," item " START CCD SAMPL," and item " ( )OUT I/F (PARAL.)" on the "I/O CONDITIONS" screen (page 16-1 to 4) are explained below. Measurement start input interface - Parallel Result output Parallel (1) Computer link/parallel (2) General purpose serial/parallel - General purpose General purpose serial/parallel serial - CCD trigger Start sampling Parallel (4) Object type change (Parallel) General purpose serial Auto (3) (General purpose serial) Parallel General purpose serial Result output Parallel (5) Computer link/parallel (6) General purpose serial/parallel (7) General purpose serial/parallel (8) Parallel (9) General purpose serial/parallel (10) The time required to change object types is calculated differently according to the type of measurement start input I/O, as follows: Measurement start input I/F Parallel General-purpose serial CCD trigger Time to change object type Included in the measurement execution time Not included in the measurement execution time Not included in the measurement execution time 16 16-5 Setting the Input/Output Conditions (1) Measurement start input = parallel, object type change = parallel, result output = parallel Setting order 1 ( 2) Configuration example Camera 1 (image capturing) PARALLEL+SERIAL TRIG CCD START NO PC-LINK SERIAL Remote keypad CAMERA1 USB RS232C/RS422 CAMERA2 2OUT I/F(PARAL.) Monitor Camera 2 (image capturing) VIDEO I/O CONDITIONS 1MEAS INP I/F REMOTE Controller POWER OUTPUT Y1 Y2 X1 Y3 X2 Y4 X3 Y5 X4 INPUT Y6 X5 Y7 X6 READY COM X7 COM 0V 24V IV-S3 M External output (Y0 to Y7) X0 Warning lamp Y0 Power supply (24 V DC) External trigger X0 (photo sensor or proximity sensor) Type selection switch -See page 16-5. - The conditions for outputting the results to the output signals Y0 to Y7 are set by the PC function. (See "Chapter 15 PC Function.") Time chart 10 ms or more Measurement start input (X0) 10 ms or more 10 ms or more Type selection input Specified object type number READY output When you set the READY ON signal to "CAPTURE COMPLETE." - See page 16-3. When you set the READY ON signal to "MEAS COMPLETE." - See page 16-3. 16 Image Image capture disposition Specified object type number End of the measurement Image Image capture disposition P P P P Halt PC operation during P P P P P P P P Halt PC operation during P P P P P CCCC CCCCCCCC CCCCC measurement measurement PC calculation condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) Parallel output is valid for PC control after the measurement result is determined. Result output Result output Note: When the READY signal is turned ON, the measurement start input will be enabled. To detect the end of the measurement, you have to create a ladder circuit pointing at the Y output for auxiliary relay C119 (end of the measurement). Custom utput condition C119 Y00 End of the measurement 16-6 Setting the Input/Output Conditions (2) Measurement start input = parallel, object type change = parallel, result output = computer Iink/parallel Configuration example Setting order 1 ( 2) Camera 2 (image capturing) Data (Computer link) USB RS232C/RS422 REMOTE Controller POWER OUTPUT Y1 Y2 X1 Y3 X2 Y4 X3 Y5 X4 Y6 X5 INPUT Y7 X6 READY COM X7 COM 0V 24V IV-S3 M Power supply (24 VDC) X0 Programmable controller Y0 Remote keypad Monitor CAMERA2 NO PC-LINK SERIAL CAMERA1 2OUT I/F(PARAL.) Camera 1 (image capturing) PARALLEL+SERIAL TRIG CCD START VIDEO I/O CONDITIONS 1MEAS INP I/F Object type change (parallel IF) -See page 16-5. External trigger X0 (photo sensor or proximity sensor) - The data in a specified block No., set in item " SET SERIAL BLOCK" on the "OBJ-TYPE I/O" screen, will be output through the computer link. See page 16-23. Time chart Measurement start input (X0) 10 ms or more 10 ms 10 ms or more or more Type selection input See page 16-5. Specified object type number Specified object type number READY output (While measuring or setting = L) a Terminate measurement (C119) READY signal is turned ON at the conclusion of the result output. Measurement result is valid at the end of a measurement PC calculation P P P P Halt PC operation during P P P P P P P P Halt PC operation during P P P P P C C C C measurement C C C C C C C C measurement CCCCC condition Parallel output is valid for When the object type is PC control after the changed, all Y output and measurement result is auxiliary relays turn OFF. determined. Parallel output Result output Result output (Y0 to Y7) a Computer link output Result output Result output When a Sharp PC is used, a write enable command (EWR) is transmitted from the IV-S30J to the PC in the following cases. - When the power is applied to the IV-S30J. - When a write mode nonconformity error (code 10(H)) occurs after a result write command (WRG) is transmitted (when the power is disconnected from the PC). - When the output method is changed from the "OUT I/F (PARAL.)" to the "COMPUTER LINK." 16-7 16 Setting the Input/Output Conditions (3) Measurement start input = parallel, object type change = parallel, result output = general purpose serial/parallel Setting order 1 ( Camera 1 (image capturing) PARALLEL+SERIAL TRIG CCD START Camera 2 (image capturing) NO PC-LINK SERIAL Monitor Personal computer Data CAMERA1 USB RS232C/RS422 CAMERA2 2OUT I/F(PARAL.) Configuration example VIDEO I/O CONDITIONS 1MEAS INP I/F 2) REMOTE Controller POWER OUTPUT Y0 Y1 X0 Y2 X1 Y3 X2 Y4 X3 Y5 X4 INPUT Y6 X5 Y7 X6 READY COM X7 COM 0V IV-S3 M 24V Power supply (24 VDC) Type selection switch - See page 16-4 External trigger X0 (photo sensor or proximity sensor) - The data in a block No., set in item " SET SERIAL BLOCK" on the "OBJ-TYPE I/O" screen, will be output from the IV-S30J to the personal computer. See page 16-23. Time chart 10 ms or more Measurement start input (X0) 10 ms 10 ms or more or more Type selection input See page 16-5. Specified object type number Specified object type number READY output (While measuring or setting = L) a READY signal is turned ON at the conclusion of the result output. Terminate measurement (C119) Measurement result is valid at the end of a measurement 16 PC calculation P P P P Halt PC operation during P P P P P P P P Halt PC operation during P P P P P C C C C measurement C C C C C C C C measurement CCCCC condition Parallel output is valid for When the object type is PC control after the changed, all Y output and measurement result is auxiliary relays turn OFF. determined. Parallel output (Y0 to Y7) Result output Result output a Serial output Result output Result output Note - Result output: The data to be sent to the personal computer will be response of general-purpose serial command (code 11(H)). 16-8 Setting the Input/Output Conditions (4) Measurement start input = general-purpose serial, object type change = general-purpose serial, result output = general-purpose serial/parallel Setting order 1 ( I/O CONDITIONS 1MEAS INP I/F 2) Configuration example Camera 1 (image capturing) PARALLEL+SERIAL TRIG CCD START Camera 2 (image capturing) Personal computer Command, response Monitor Remote key pad VIDEO CAMERA1 USB RS232C/RS422 CAMERA2 REMOTE Controller POWER OUTPUT Y0 Y1 X0 Y2 X1 Y3 X2 Y4 X3 Y5 X4 INPUT Y6 X5 Y7 X6 READY COM X7 COM 0V IV-S3 M 24V Power supply (24 VDC) - See Chapter 17: Communications (General Purpose Serial Interface for details about the measurement execution commands (codes 10,11,12 and 14(H)). Time chart 5 ms or less Result output Serial Measurement trigger command Result output READY signal is Measurement turned ON at the trigger conclusion of the command result output. READY output (While measuring or setting = L) Terminate measurement (C119) Measurement result is valid at the end of a measurement P P P P P P Halt PC operation P P P P P P P P P P P P Halt PC operation P P P P P PC calculation C C C C C C during measurement C C C C C C C C C C C C during measurement C C C C C condition Parallel output is valid for PC When the object type is changed, control after the measurement all Y output and auxiliary relays turn OFF. result is determined. Parallel output Result output Result output (Y0 to Y7) 16 16-9 Setting the Input/Output Conditions (5) Measurement start input = CCD trigger, start sampling = parallel, object type change = parallel, result output = parallel 3) Configuration example Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Remote keypad USB RS232C/RS422 REMOTE Controller POWER OUTPUT Y1 Y2 X1 Y3 X2 Y4 X3 Y5 X4 Y6 X5 Y7 X6 READY COM X7 COM 0V IV-S3 M 24V INPUT Power supply (24 VDC) X0 NO PC-LINK SERIAL Y0 3OUT I/F(PARAL.) CAMERA2 2START CCD SAMPL Monitor Camera 2 (image capturing) CAMERA1 1MEAS INP I/F 2( VIDEO Setting order 1 Warning lamp External output (Y0 to Y7) Start sampling input X0 (photo sensor or proximity sensor) Type selection switch -See page 16-5. Note 1: When the settings listed in section "16-3 CCD trigger" have not been made, a "CCD TRIG NOT SET. (error 34)" will occur. Note 2: Start sampling input (X0) 1. Sampling will be performed while this terminal is ON. When it is turned OFF, the sampling will stop. During sampling, O will flash in the upper right corner of the operation screen. 2. After the measurement is terminated, the sampling will be restarted when the X0 terminal is changed from OFF to ON. Time chart Measurement start input (X0) Start accd sampling by turning ON measurement start input (X0). Halt CCD sampling by turning OFF measurement start input (X0). CCD trigger cycle Type selection input See page 16-5. 16 CCD trigger Black window (not highlighted) Specified object type number White Black Trigger Trigger READY output (While measuring or setting = L) Measurement result is valid at the end of a measurement PC calculation P P P P P P P P Halt PC operation P P P P P P P P P Halt PC operation P P P P P P P P P P P C C C C C C C C during measurement C C C C C C C C C during measurement C C C C C C C C C C C condition When the object type is changed, Parallel output is valid for PC all Y output and auxiliary relays control after the measurement turn OFF. result is determined. Parallel output Result output Result output (Y0 to Y7) 16-10 Setting the Input/Output Conditions (6) Measurement start input = CCD trigger, start sampling = parallel, object type change = parallel, result output = computer link/parallel When the start sampling input (X0) is turned ON, the CCD trigger is enabled. (Sampling starts) Setting order 1 2 ( 3) Configuration example Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START Data (Computer link) USB RS232C/RS422 Remote keypad REMOTE Controller NO PC-LINK SERIAL Power supply (24 VDC) Programmable controller Object type change (parallel I/F) Start sampling -See page 16-5. input X0 POWER OUTPUT Y0 Y1 X0 Y2 X1 Y3 X2 Y4 X3 Y5 X4 Y6 X5 Y7 X6 READY COM X7 COM 0V 3OUT I/F(PARAL.) CAMERA2 AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Monitor CAMERA1 2START CCD SAMPL Camera 2 (image capturing) VIDEO 1MEAS INP I/F IV-S3 M 24V INPUT Note 1: When the settings listed in section "16-3 CCD trigger" have not been made, a "CCD TRIG NOT SET. (error 34)" will occur. Note 2: Start sampling input (X0) 1. Sampling will be performed while this input terminal is ON. When it is turned OFF, the sampling will stop. During sampling, O will flash in the upper right corner of the operation screen. 2. After the measurement is terminated, the sampling will be restarted when the X0 terminal is changed from OFF to ON. Time chart Measurement start input (X0) Halt CCD sampling by turning OFF measurement start input (X0). Start CCD sampling by turning ON measurement start input (X0). CCD trigger cycle Type selection input See page 16-5. Computer link Specified object type number Result output CCD trigger Black window (not highlighted) Result output Black White Trigger READY signal is turned ON at the end of the result output. Trigger READY output (While measuring or setting = L) 16 Terminate measurement (C119) Measurement result is valid at the end of a measurement P P P P P P P P P P P P Halt PC operation P P P P P P P P P P PC calculation P P P P Halt PC operation C C C C during measurement C C C C C C C C C C C C during measurement C C C C C C C C C C condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) Parallel output is valid for PC control after the measurement result is determined. Result output Result output When a Sharp PC is used, a write enable command (EWR) is transmitted from the IV-S30J to the PC in the following cases. - When the power is applied to the IV-S30J. - When a write mode nonconformity error (code 10(H)) occurs after a result write command (WRG) is transmitted (when the power is disconnected from the PC). - When the output method is changed from the "OUT I/F (PARAL.)" to the "COMPUTER LINK." 16-11 Setting the Input/Output Conditions (7) Measurement start input = CCD trigger, start sampling = parallel, object type change = parallel, result output = general purpose serial/parallel When the start sampling input (X0) is turned ON, the CCD trigger is enabled. (Sampling starts) Setting order 1 2 ( 3) Configuration example Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START Object type change, data USB RS232C/RS422 REMOTE Controller POWER OUTPUT Y2 X1 Y3 X2 Y4 X3 Y5 X4 INPUT Y6 X5 Y7 X6 READY COM X7 COM 0V IV-S3 M 24V Power supply (24 VDC) Y1 NO PC-LINK SERIAL X0 3OUT I/F(PARAL.) Y0 Personal computer CAMERA2 AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Monitor CAMERA1 2START CCD SAMPL Camera 2 (image capturing) VIDEO 1MEAS INP I/F External trigger (photo sensor or proximity sensor) Note 1: When the settings listed in section "16-3 CCD trigger" have not been made, a "CCD TRIG NOT SET. (error 34)" will occur. Note 2: Start sampling input (X0) 1. Sampling will be performed while this input terminal is ON. When it is turned OFF, the sampling will stop. During sampling, O will flash in the upper right corner of the operation screen. 2. After the measurement is terminated, sampling will be restarted when the X0 terminal is changed from OFF to ON. Time chart Measurement start input (X0) Halt CCD sampling by turning OFF measurement start input (X0). Start CCD sampling by turning ON measurement start input . CCD trigger cycle Type selection input See page 16-5. Computer link Specified object type number Result output CCD trigger Black window (not highlighted) White Black Trigger 16 Result output Trigger READY signal is turned ON at the end of the result output. READY output (While measuring or setting = L) Terminate measurement (C119) Measurement result is valid at the end of a measurement P P P P P P P P P P P P Halt PC operation P P P P P P P P P P PC calculation P P P P Halt PC operation C C C C during measurement C C C C C C C C C C C C during measurement C C C C C C C C C C condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output Parallel output is valid for PC control after the measurement result is determined. Result output Result output Note: Result output: The data in the block No., set in item " SET SERIAL BLOCK" on the "OBJTYPE I/O" screen, will be transmitted to the personal computer. See page 16-23. 16-12 Setting the Input/Output Conditions (8) Measurement start input = CCD trigger, start sampling, object type change = general purpose serial, result output = general purpose serial/parallel The CCD trigger is enabled after a measurement execution command is entered. Configuration example Setting order 1 2 1MEAS INP I/F Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START Camera 2 (image capturing) 2START CCD SAMPL AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Personal computer Sampling start, object type change Data Remote key pad VIDEO CAMERA1 USB RS232C/RS422 CAMERA2 REMOTE Controller POWER OUTPUT Y0 Y1 X0 Y2 X1 Y3 X2 Y4 X3 Y5 X4 Y6 X5 Y7 X6 READY COM X7 COM 0V IV-S3 M 24V INPUT Power supply (24 VDC) - See Chapter 17 for details about the measurement execution commands (codes 10, 11, 12 and 14(H)). - When one of the measurement execution commands (codes 10, 11, 12 and 14(H)) is normally received during sampling, the sampling will stop. Note: When the settings listed in section "16-3 CCD trigger" have not been made, a "CCD TRIG NOT SET. (error 34)" will occur. Time chart Measurement trigger command Start CCD sampling by turning ON measurement start input Measurement trigger command Result output Serial Result output Measurement Measurement trigger trigger command command CCD trigger cycle Stop CCD sampling by measurement command. CCD trigger Black window (not highlighted) White Black Trigger Trigger READY signal is turned ON at the conclusion of the result output. READY output (While measuring or setting = L) Terminate measurement (C119) 16 Measurement result is valid at the end of a measurement P P P P P P P P P P P P Halt PC operation P P P P P P P P P P P P P P P P PC calculation P P P P Halt PC operation C C C C during measurement C C C C C C C C C C C C during measurement C C C C C C C C C C C C C C C C condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output Parallel output is valid for PC control after the measurement result is determined. Result output Result output Note: Result output: The data in the block No., set in item " SET SERIAL BLOCK" on the "OBJ-TYPE I/O" screen, will be transmitted to the personal computer. See page 1623. 16-13 Setting the Input/Output Conditions (9) Measurement start input = CCD trigger, start sampling = auto, object type change, result output = parallel Setting order 1 1MEAS INP I/F 2( 3) Configuration example Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START Monitor Camera 2 (image capturing) AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Remote key pad CAMERA1 USB RS232C/RS422 CAMERA2 Select one of these. VIDEO 2START CCD SAMPL REMOTE Controller Start sampling input X0 (photo sensor or proximity sensor) POWER OUTPUT Y1 Y2 X1 Y3 X2 Y4 X3 Y5 X4 Y6 X5 INPUT Y7 X6 READY COM X7 COM 0V 24V IV-S3 M Power supply (24 VDC) X0 PARALLEL SERIAL Y0 3OUTPUT OBJ TYPE Warning lamp External output (Y0 to Y7) Type selection switch Measurement is started when the CCD trigger level is ON. Measurement is started when a CCD trigger signal is received. Work Black White CCD trigger Edge Measurement Level Time chart (when auto mode (edge) is selected for as the CCD sampling start) Restarts CCD sampling automatically after measurement is completed. CCD trigger cycle Type selection input See page 16-5. 16 Specified object type number CCD trigger Black window (not highlighted) White Black Trigger White Black Trigger READY output (While measuring or setting = L) Measurement result is valid at the end of a measurement PC calculation P P P P CCCC condition Halt PC operation during measurement P P P P P P P P P CCCCCCCCC When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) P P P P P CCCCC Parallel output is valid for PC control after the measurement result is determined. Result output 16-14 Halt PC operation during measurement Result output Setting the Input/Output Conditions Time chart (when auto mode (level) is selected for as the CCD sampling start) Restarts CCD sampling automatically after measurement is completed. CCD trigger cycle Type selection input See page 16-5. Specified object type number CCD trigger Black window (not highlighted) White Trigger READY output (While measuring or setting = L) Black Trigger White Black Trigger Measurement result is valid at the end of a measurement PC calculation P P P P Halt PC operation P Halt PC operation P P P P Halt PC operation P P P P P C C C C during measurement C during measurement C C C C during measurement C C C C C condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) Parallel output is valid for PC control after the measurement result is determined. Result output Result output Result output 16 16-15 Setting the Input/Output Conditions (10) Measurement start input = CCD trigger, start sampling = auto, object type change = general purpose serial, result output = general purpose serial/parallel The general purpose serial command (code 55(H)) is used to change the object type. Setting order 1 1MEAS INP I/F 2( 3) Configuration example Camera 1 (image capturing + CCD trigger) PARALLEL+SERIAL TRIG CCD START Camera 2 (image capturing) 2START CCD SAMPL Select one of these. 3OUTPUT OBJ TYPE AUTO(EDGE) AUTO(LEVEL) PARALLEL SERIAL Personal computer Data Monitor Remote key pad PARALLEL SERIAL Controller Power supply (24 VDC) Measurement is started when the CCD trigger level is ON. Measurement is started when a CCD trigger signal is received. Work CCD trigger Edge Measurement Level 16 16-16 Black White Setting the Input/Output Conditions Time chart (when auto mode (edge) is selected for as the CCD sampling start) Restarts CCD sampling automatically after measurement is completed. CCD trigger cycle Serial When a trigger signal is input during sending object type change command, this command will be invalid. Result Type output Result output Type CCD trigger Black window (not highlighted) White Trigger READY output (While measuring or setting = L) Black Turn ON READY signal by termination of result output. White Black Trigger Terminate measurement (C119) Measurement result is valid at the end of a measurement PC calculation condition P P P P Halt PC operation C C C C during measurement P P P P P P P P P Halt PC operation C C C C C C C C C during measurement P P P P P CCCCC Parallel output is valid for PC control after the measurement result is determined. When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) Result output Result output Note: Result output; The data in the block No., set in item "5SET SERIAL BLOCK" on the "OBJTYPE I/O" screen, will be transmitted to the personal computer. - See page 16-23. Time chart (when auto mode (level) is selected for as the CCD sampling start) Restarts CCD sampling automatically after measurement is completed. CCD trigger cycle Serial When a trigger signal is input during sending object type change command, this command will be invalid. Result Type output Result output Type CCD trigger Black window (not highlighted) White White Black Trigger Trigger Trigger READY output (While measuring or setting = L) Terminate measurement (C119) Measurement result is valid at the end of a measurement P P P P P Halt PC operation P P P P P P P P P P P P PC calculation P P P P Halt PC operation C C C C during measurement C C C C C during measurement C C C C C C C C C C C C condition When the object type is changed, all Y output and auxiliary relays turn OFF. Parallel output (Y0 to Y7) Parallel output is valid for PC control after the measurement result is determined. Result output 16-17 Result output 16 Setting the Input/Output Conditions 16-3 CCD trigger [1] Outline This function samples a specified part (trigger window) of an image captured by the CCD camera at a high rate, and starts the measurement when the sampled image changes. Therefore, moving objects can be measured without requiring an external trigger, such as a photo sensor. To use this function, set the input/output the CCD trigger on the "I/O CONDITIONS" menu (pages 16-1 to 16-17), and set item " TRIG CCD START" and item " CCD TRIG COND" on the "OBJ-TYPE I/O" screen. - There are four methods for starting the measurement when there is a change in a sampled image, i.e. a "BIN" (binary method), an "AVG-GRAYS" (average light level method), "GRAY-SRC" (gray search) and "EDGE DTECT" (edge detection). When a sampled binary image changes (the white area exceeds 50%), the measurement is started. Binary method - A change in a binary image means a change in a binary image from black (background) to white (workpiece) or from white (background) to black (workpiece). Average light When the average light level of a sampled image enters a specified level method range, the measurement is started. Gray search When the degree of match exceeds the specified value (threshold value), the measurement will start after the trigger event is detected. - This is useful when workpieces have complicated shading and cannot be converted to binary or use a fixed brightness range. Edge detection Detects edge with gray search function, and the measurement is started. - The trigger window can be set in any position for each object type. In the past, the position of an external sensor had to be adjusted every time the object type was changed. However, since this function eliminates the necessity of physical position adjustments, the changeover time can be reduced. Object type 1 Object type 2 Feeding direction Feeding direction Trigger window - The internal CCD trigger can be used with camera 1. (It cannot be used with camera 2.) - An image that can be used to set the sample window conditions is obtained when the display mode is switched from the through mode to the freeze mode. [2] Setting procedure 16 How to display the setting screen On the menu tree, select "TYPE00" and then "OBJ-TYPE I/O," to display the OBJ-TYPE I/O screen. 16-18 SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) F C1 BRT Setting the Input/Output Conditions Setting methods TRIG CCD START Select a triggering method for the CCD camera used to capture images. The choices are: "BIN," "AVG-GRAYS," "GRAY-SRC," and "EDGE DTECT." For details, see page 16-18. Then the " CCD TRIG COND" line will appear. OBJ-TYPE I/O SCREEN SAVE F C1 BRT 1TRIG CCD START 2CCD TRIG COND (TO NEXT SUB-MENU) 3 4 NO BIN AVG-GRAYS GRAY-SRC EDGE DTECT 5 6 CCD TRIG COND Select the trigger conditions from the sub menu on this line. The items in the sub menu will depend on the selection made on the " TRIG CCD START" line. Note: When "NO" was selected on the " TRIG CCD START" line, the " CCD TRIG COND" line will not appear and the following line numbers will each be one less. SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC (1) When "BIN" or "AVG-GRAYS" is selected on the " TRIG CCD START" line Capture an image Press the SEL key to move the cursor to the "F" position on the upper function menu. Then press the up or down arrow key to change the image mode from "T" to "F", to capture an image. SIZE Specify the size of the window used for the CCD trigger. While " SIZE" is selected, press the SET key. The three digits for the X-axis will be highlighted. Change the X-axis value using the up and down arrow keys. To change value for an individual digit, press the SET key again. The cursor will move to the left most digit. Adjust each digit using the up/down/ left/right arrow keys. When the value is correct, press the SET key. Now all three digits will be highlighted again. Next, press the left or right arrow key to move the cursor to the next three digits for the Y-axis. Adjust this value the same way you adjusted the X-axis value. When "BIN" is selected CCD TRIG COND SCREEN SAVE 1 2 3 4 5 6 ~480) F C1 BRT X008(4~512) AND OR ~255)] When "AVG-GRAYS" is selected CCD TRIG COND SCREEN SAVE 1 2 3 F C1 BRT ~480) X008(4~512) ~255)] MEAS.AVG.GRA=000.0 EVALUATION Select an evaluation condition, "MAJORITY", "AND," or "OR," from the popup menu. 2EVALUATION Description MAJORITY Based on the number of pixels in an area, the controller will decide that the whole area is white if the specified percentage of pixels in that area is white. If the percentage of white pixels is less than this amount, the area will be treated as black. Specify the percentage (%), from 0 to 100% (in units of one percent) in the "3EVAL-SPEC (RATIO%)" item. AND Treat as white only when all of the pixels in an area are white. OR Treat as white if one or more of the pixels in an area is white. EVAL-SPEC(RATIO %) when "MAJORITY" is selected on the " the color of an area. EVALUATION" line, enter the ratio % used to determine UP.L COORD Specify the upper left corner coordinates of the CCD trigger window. By changing these values, the position of the CCD trigger window will be moved. 16-19 16 Setting the Input/Output Conditions THRESHOLD VAL Specify the threshold value for binary conversion. Select this line and press the SET key. The "THRESHOLD VAL" setting screen will appear. For details, see pages 3-10. THRESHOLD VAL 1U.LM 2L.LM AUTO-REG 050 100 RESET F C1 BRT 0 255 1 255 INVERT B/W NO Do not reverse black and white areas. YES The area detected by binary conversion will be displayed as white. SET=CHNG ESC=BACK SEL=CHNG IMG TRG=FUNC (2) When "GRAY-SRC" is selected on the " TRIG CCD START" line. REF-IMG AREA SEARCH AREA For details, see DETECT CRD pages 5-5 to 5-7. CONTR. PIXEL CCD TRIG COND SCREEN SAVE 1REF-IMG AREA 2SEARCH AREA 3DIRECT CRD 4CONTR.PIXEL 5MATCH LEVEL F C1 BRT SET (224.208) (287.271) SET (216.200) (295.279) CENTER (255.239) 3 +07000~+10000 MATCH LEVEL Specify the range for the degree of match While " MATCH LEVEL" is selected, press the SET key. The five digits for the lower limit will be highlighted. Change the number using the up and down arrow keys. To change the value of individual digits, press the SET key again. The cursor will move to the left most digit. Adjust the value of each digit using the up/down/left/right arrow keys. When the value is correct, press the SET key. All SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC five digits will be highlighted again. Then, press the left or right arrow key to move the cursor to the next five digits, which are the upper limit. Adjust this number the same way. 16 (3) When "EDGE DTECT" is selected on the " TRIG CCD START" line. SEARCH AREA DTECT MODE For details, see SEARCH DIRECT pages 11-7 to 11-9. THRESHOLD VAL CCD TRIG COND 1SEARCH AREA 2DTECT MODE 3SEARCH DIRECT 4THRESHOLD VAL SCREEN SAVE SET (224.208) (287.271) CHNG POINT HORIZ ( SET (D:050 E:2 F:04) SEL=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=FUNC 16-20 F C1 BRT Setting the Input/Output Conditions 16-4 Setting for serial communications When "PARALLEL+SERIAL" (general purpose serial) has been specified in item " MEAS INP I/F" on the "I/O CONDITIONS" menu (page 16-1), and when "SERIAL" or "PC-LINK" has been specified in item " OUT I/F (PARAL.)" the serial communication conditions must be set on the "COMM.SET" screen. Set the items to match the communication conditions of the other device. Select "MAIN COND" -> "SYS-CND" -> "COMM.SET," in that order. F C1 BRT SELECT SYSTEM COND SYS-CND I/O CONDITIONS COMM.SET COMPUTER LINK GAIN-OFFSET 1COMM.STANDARD 2BAUDRATE(k.bps) 3NO. OF DATE BITS 4PARITY CHECK 5NO. OF STOP BITS 6STATION NO. SET=TO=NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP How to set the communication settings Adjust each item to match the equipment used to communicate. COMM. STANDARD Select "RS232C," "RS422:4LINE," or "RS422:2LINE." BAUDRATE (kbps) Set the communication speed: 2.4 Kbps, 4.8 Kbps, 9.6 Kbps, 19.2 Kbps, 38.4 Kbps, 57.6 Kbps, or 115.2 Kbps. COMM.SET SCREEN COND SAVE 1COMM.STANDARD 2BAUDRATE(k.bps) 3NO. OF DATE BITS 4PARITY CHECK 5NO. OF STOP BITS 6STATION NO. 2BIT 1BIT RS232C 115.2 7BIT EVEN 2BIT 00(0~7F) F C1 BRT 7BIT 8BIT EVEN ODD NO RS232C RS422:4LINE RS422:2LINE 2.4 4.8 9.6 19.2 38.4 57.6 115.2 NO.OF DATA BITS Select either 7-bit or 8-bit. PARITY CHECK Select "EVEN," "ODD," or "NO." SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 16 NO.OF STOP BITS Set it to 1-bit or 2-bits. STATION NO. Select the station number for communication using the up and down arrow keys. 16-21 Setting the Input/Output Conditions 16-5 Computer link When "PC-LINK" has been specified in item " OUT I/F (PARAL.)" on the "I/O CONDITIONS" screen (page 16-1), the computer link conditions must be set on the "COMPUTER LINK" screen. How to display the computer link setting screen How to display the computer link setting screen Select "MAIN COND" -> "SYS-CND" -> "COMPUTER LINK," in that order. The COMPUTER LINK screen will appear. How to set up a computer link PC MANUFACTURER, STATION NO., WRITE TOP ADRS The details for " PC MANUFACTURER," STATION NO.," and " WRITE TOP ADRS" are as follows. Item Station No. F C1 BRT SELECT SYSTEM COND SYS-CND I/O CONDITIONS COMM.SET COMPUTER LINK GAIN-OFFSET 1PC MANUFACTURER 2STATION NO. 3WRITE TOP ADRS 4CONTROL PROC. 5BLK WRT COMMAND F C1 BRT COMPUTER LINK SCREEN COND SAVE 1PC MANUFACTURER 2STATION NO. 3WRITE TOP ADRS SHARP(COMMPORT) 01 09000 SHARP(COMMPORT) SHARP(LINK-MDL) MITSUBISHI OMRON YOKOGAWA Setting range - Sharp: 00 to 37(8) * - Mitsubishi: 00 to 31 - OMRON: 00 to 31 - Yokogawa: 01 to 32 - Sharp: 09000 to 99776 Write address - Mitsubishi: D0000 to D9999 (max. 512 bytes) - OMRON: DM0000 to DM9999 - Yokogawa: D00001 to D16384 * In this book, octal notation is indicated by adding(8) CONTROL PROC. , BLK WRT COMMAND When "MITSUBISHI" is selected on the " PC MANUFACTURER" line, specify " CONTROL PROC." and " BLK WRT COMMAND." Menu 16 Setting details 4 CONTROL PROC. FORM 1: No line terminator FORM 4: With line terminators "CR" + "LF" 5 BLK WRT COMMAND WW: Data writing address range D0000 to D1023 QW: Data writing address range D000000 to D008191 F C1 BRT COMPUTER LINK SCREEN COND SAVE 1PC MANUFACTURER 2STATION NO. 3WRITE TOP ADRS 4CONTROL PROC. 5BLK WRT COMMAND MITSUBISHI 00 D0000 FORM1 WW WW QW FORM1 FORM4 See "Chapter 18: Computer Link" for applicable models made by these manufacturers. Note 1: Use an even address as the write start address. Note 2: When 512 bytes are used for a write register on a Sharp model, select a write start address from the following addresses. 09000, 19000, 29000, 39000, 49000, 59000, 69000, 79000, 89000 , 99000 16-22 Setting the Input/Output Conditions 16-6 Output block assignment (Computer link output and general purpose serial output) When measurement is controlled by a computer link or a communication interface (general purpose serial IF: * 1), in addition to other block 0, blocks can be specified whose measurement data will be output from the IV-S30J to a programmable controller or a personal computer. * 1 In the case of a communication interface (general purpose serial IF), output blocks can be specified only when the measurement is started by a CCD trigger or a parallel IF signal and the See page 17-3. results are set by a general purpose serial IF signal. Specify the settings above on the "OBJ-TYPE I/O" screen See the next page. [1] Data in specified blocks (1) In the case of a computer link Data in the specified blocks will be output after the data (block 0) from measurement numbers 0 to 4 is output by the write register of the PC. (See page 18-3.) Write register map Sharp Mitsubishi OMRON Result top write address (* 2) 09000 09001 D0000 Result top write address + 512 bytes (* 3) * 2 Set the result top write address in item " See the preceding page. L H DM0000 Description L Termination code H Appended information L L Output data from measurement No. 3 H H (block 0) L L Data in a specified block H H WRITE TOP ADRS" on the "COMPUTER LINK" screen. * 3 The top address to which the data in the specified blocks will be written is obtained by adding 512 bytes to the result top write address. - Setting examples for various manufacturers Sharp Result top write address Mitsubishi OMRON 09000 09300 D0000 DM0000 Top address of data 19000 in specified blocks 19300 D0256 DM0256 16-23 16 Setting the Input/Output Conditions Y0 Y1 Measurement 4 (H) (L) Measurement 0 Y15 Camera 1 Camera 2 Measurement 3 1 1 RC RC Measurement 2 : Object Output evaluation type results Measurement 1 (2) When the measurement is started by a CCD trigger or a parallel I/F signal and the results are output by a general purpose serial I/F signal When the IV-S30J responds, data in a specified block is output after the output data (block 0) from the measurement No. 0 to 4, in response to the measurement run command 2 (processing code 11(H)). 1 Response Measurement 0 Data from Data from Data from Data from Camera 1 Camera 2 measurement 1 measurement 2 measurement 3 measurement 4 data 2 data 2 data 2 data 2 data 2 data 2 Data in the specified block SC SC CR (H) (L) See page 17-7 for details about and . Note: The response returned by the measurement run command 2 (processing code 11(H)) will not contain the specified block. [2] Setting (operating) procedure Setting (operating) procedure 1. Select "MAIN COND" -> "OBJECT TYPE COND" -> "TYPE00" -> "OBJ-TYPE I/O" in that order. F C1 BRT SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) 1TRIG CCD START 2CCD TRIG COND 3 4 5 6 7 8 SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 2. The "OBJ-TYPE I/O" screen will appear. Move the cursor to " SERIAL OUTPUT" and press the SET key. A popup menu will appear. Select "BLOCK-ASSIGN" and press the SET key. 16 OBJ-TYPE I/O SCREEN SAVE 1TRIG CCD START NO 2 3 4 5 6 1/00060(1/30~1/10000) 1(1~2) SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 16-24 F C1 BRT Setting the Input/Output Conditions 3. The " SET SERIAL BLOCK" line will appear. Select this line and press the SET key. Enter the block No., measurement No. and camera No. of the measurement data to be output, using the left, right, up and down keys. - Specify a block number to be returned in addition to block 0 (00). If block 00 is specified, data from block 00 will not be returned a second time. After the settings are complete, press the SET key. OBJ-TYPE I/O SCREEN SAVE 1TRIG CCD START NO 2 3 4 5 6 1/00060(1/30~1/10000) F C1 BRT 1(1~2) SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 16 16-25 Setting the Input/Output Conditions 16-7 Setting the data output When you communicate with the IV-S30J using a computer link or a serial communication interface (general purpose serial IF) in the following conditions, perform steps (1) and (2) below to enable serial output. - Computer link: When outputting any data Pages 18-16. - Communication interface (general purpose serial IF): When executing a measurement run command 4 (processing code 14(H)) Pages 17-8 and 17-10. [1] Select "ANY" for the serial output Select "ANY" in the " SERIAL OUTPUT" item on the "OBJECT TYPE I/O" menu. Setting (operating) procedure 1. Select "MAIN COND" -> "OBJECT TYPE COND" -> "TYPE00" -> "OBJ-TYPE I/O" in that order. F C1 BRT SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE(NEW) 1TRIG CCD START 2CCD TRIG COND 3 4 5 6 7 8 SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP 2. The "OBJ-TYPE I/O" screen will appear. Move the cursor to " SERIAL OUTPUT" and press the SET key. A popup menu will appear. Select "ANY" and press the SET key. OBJ-TYPE I/O SCREEN SAVE 1TRIG CCD START NO 2 3 1/00060(1/30~1/10000) 4 5 1(1~2) 16 SET=SELECT A MENU ESC=BACK SEL=CHNG IMG TRG=FUNC 16-26 F C1 BRT Setting the Input/Output Conditions [2] Select "YES" or "NO" for output data Select "YES" or "NO" on the following menu screens that are displayed as "locked" screens to output serial data. See the next page for instructions about how to lock the screen. On any condition setting screen, press the TRG/BRT key and the cursor will move to the upper function menu. Select "SCREEN" and press the SET key. A popup menu will appear. Select "SERIAL OUTPUT" and press the SET key. - The "NUMERIC CALC" or "FINAL NUM. CALC" screen for individual measurement program - The "EVALUATION COND" screen for individual measurement program EVALUAT COND SCREEN SAVE F C1 BRT NUMERIC CALC SCRREN SAVE [SERIAL OUTPUT] 1X COORD(MDL0) NO NO 2Y COORD(MDL0) NO YES 3x DEVIATE(MDL0) NO 4y DEVIATE(MDL0) NO 5MATCH LVL(MDL0) NO 6ANGULAR DEVIATE NO 7X COORD(MD1) NO 8Y COORD(MDL1) NO 9x DEVIATE(MDL1) NO 0y DEVIATE(MDL1) NO qMATCH LVL(MDL1) NO F C1 BRT [SERIAL OUTPUT] 1OUTPUT NO (When the numerical calculation condition menu is displayed) SEL=VALUE INPUT ESC=BACK SEL=CHNG IMG TRG=FUNC (When measuring positional deviation) - The "DIST&AGL COND" screen DIST&AGL COND SCREEN SAVE F C1 BRT [SERIAL OUTPUT] 1DISTANCE EVALUATION NO - When the serial output setting is "NO," no data (block 0) will be output (the space will be filled by the next item). (To measure an object's "distance" on the distance and angle condition menu) 16 16-27 Setting the Input/Output Conditions 16-8 Calibrating the IV-S30J The IV-S30J calibration can be adjusted, e.g. "1 pixel = 1 mm", and the data can be displayed as actual dimensions. How to display the CALIBRATION setting screen 1) Select "MAIN COND" and then "OBJECT TYPE COND." MAIN MENU F C1 BRT IVS3 SYS-CND OBJECT TYPE COND SET WIZARD EDIT MAIN OPS MENU OPTION 2) On the "OBJECT TYPE COND" screen, move the cursor to any "TYPExx" that you want to calibrate, and press the SET key. 3) Move the cursor to the "OBJ-TYPE I/O" line and press the SET key. 4) On the "OBJ-TYPE I/O" setting screen, move the cursor to the " CALIBRATION" line and press the SET key twice, to bring up the submenu. Note: Depending on settings for the " TRIG CCD START" and " SERIAL OUTPUT" items, the number of the "CALIBRATION" line will vary between and . 5) Set the calibration details on the "CALIBRATION" setting screen. Put a ruler in the camera’s field of view . SELECT OBJECT TYPE COND OBJECT TYPE COND TYPE00 TYPE RUN COND IMAGE-ADJ MEA-CND(CAMERA1) MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O OBJ-TYPE SYS. TYPE01 TYPE(NEW) OBJ-TYPE I/O SCREEN SAVE 1TRIG CCD START 2CCD TRIG COND 3 4 5 6 7 8 (TO NEXT SUB-MENU) SET (256.240) SET (256.240) 000.00 16 When "MANUAL" is selected on the "CALIBRATION" line CURSOR1-COORD" and press the SET key. 16-28 F C1 BRT 1(1~2) CBP 000.0000 mm CBM 000.0000 PIXEL 1. Move the cursor to " 1TRIG CCD START 2CCD TRIG COND 3 4 5 6 7 8 BIN (TO NEXT SUB-MENU) 1/00060(1/30~1/10000) SCREEN SAVE 1CURSOR1-COORD 2CURSOR2-COORD 3 4 5 F C1 BRT F C1 BRT Setting the Input/Output Conditions 2. While the cursor is on the " CROSS CURSOR" line on the CROSS CURSOR screen, press the SET key. Move the crosshair cursor to the tick marks on the ruler using the up/down/left/right arrow keys and set coordinate 1. CLOSS CURSOR RESET RETURN 1CLOSS CURSOR F C1 BRT 256.240) X:256 Y:200 3. Then move the cursor on the CROSS CURSOR screen to the " CUSOR2COORD" line and set coordinate 2 using the same procedure. CLOSS CURSOR RESET RETURN 1CLOSS CURSOR F C1 BRT 143.200) X:143 Y:200 4. Select the " SCALE" line and enter the actual value of the distance between coordinates 1 and 2. In this example, the distance is 10 mm. Therefore, enter "10." 5. Select the " SCALE(UNIT)" line and select the unit of distance between coordinates 1 and 2. In this example, select "mm." 6. Select the " REG" (register) line and while the cursor is on "EXEC" (execute) press the SET key again. The controller will be calibrated to read "1 pixel = 1 mm." 16 16-29 Setting the Input/Output Conditions Setting the register conditions for edge detection REG COND SCREEN COND SAVE DATAIL 1SEARCH AREA(MDL0) 2DTECT MODE(MDL0) 3SEARCH DIR(MDL0) 4THRESHOLD(MDL0) 5REF COORD(MDL0) SET(224,208) (287,271) CHNG POINT HORIZ( ) SET(D:050 E:2 F:04) SET KEY(256.240) DTECT MODE Select an image processing method for the edges. 6SEARCH AREA(MDL1) 7DTECT MODE(MDL1) 8SEARCH DIR(MDL1) 9THRESHOLD(MDL1) 0REF COORD(MDL1) SET(224,208) (287,271) CHNG POINT HORIZ( ) SET(D:050 E:2 F:04) SET KEY(256.240) SEARCH DIR Specify a search direction. For details, see page 4-8. qSCALE wSCALE(UNIT) e 000.00 mm SEARCH AREA Select " SEARCH AREA (MDL0)" and press the SET key to go to the setting screen. CHNG POINT DRK BRT BRT DRK CENT(BRT) CENT(DRK) HORIZ HORIZ VERT VERT CBP 000.0000 mm CBM 000.0000 PIXEL THRESHOLD Specify a threshold value for binary conversion. For details, see page 3-11. Edge width F C1 BRT SET=WINDOW SET ESC=BACK SEL=CHNG IMG TRG=POPUP Flat width Light level Density difference Automatic setting Select "AUTO-REG" from the upper function menu on the THRESHOLD setting screen. The controller will set the optimum value automatically. REF COORD (reference coordinates) You can change the reference coordinates to any desired position. SCALE Enter the actual value of the distance between coordinates 1 and 2. In this example, the distance is 10 mm. Therefore, enter "10." SCALE (UNIT) Select unit of distance between coordinates 1 and 2. In this example, select "mm." REG (register) While the cursor is on "EXEC" (execute) press the SET key again. The controller will be calibrated to treat 1 pixel = 1 mm. 16 16-30 Setting the Input/Output Conditions 6) Using the CBP value that was set in the calibration function, you can execute numeric calculations. 1. Press the ESC key twice to show the menu tree. Select the "NUM-CALC" line for the same object type and measurement number, and press the SET key. 2. Relay numbers N00 to N07 are displayed on the first screen. To display relay numbers N08 to N15, press the SET key while the cursor is on the "CHG-CALC" item. SELECT OBJECT TYPE COND F C1 BRT OBJECT TYPE COND TYPE00 N00 TYPE RUN COND IMAGE-ADJ N01 MEA-CND(CAMERA1) MEAS0 N02 POSI-CORRECT MEAS01(POSI-DEVIATION) N03 MEAS02(POSI-DEVIATION) IMG PRE-PROC N04 MEAS CND EVALUATION COND N05 DISTANCE&ANGLE COND NUM-CALC N06 OUT-COND MEAS(NEW) N07 MEA-CND(CAMERA2) FINAL NUM.CALC FINAL OUTPUT COND OBJ-TYPE I/O SET=TO NEXT SUB-MENU ESC=BACK SEL=CHNG IMG TRG=POPUP NUMERIC CALC SCREEN COND SAVE N08-N15 CHG-CALC 1 (SET KEY) F C1 BRT N00 N01 N12 N03 N04 N05 N06 N07 SET=EXEC ESC=BACK SEL=CHNG IMG TRG=FUNC 3. On the "NUMERIC CALC" screen, use the up and down arrow keys to move the cursor to a cell in the "TYPE" column on the desired relay number line. Press the SET key. A popup menu will appear and you can select the calculation result you want to output. In this example, select "DEV -x" (deviation on the X-axis) NUMERIC CALC SCREEN COND SAVE N00-N07 CHG-CALC 1 (SET KEY) N00 N01 N12 N03 N04 CRD-X CRD-Y DEV-x DEV-y MATCH M ANGL-B NUM-CAL [NC] CNST [C] NO N05 N06 N07 SET=SELECT TYPE ESC=BACK SEL=CHNG IMG TRG=FUNC 16-31 F C1 BRT 16 Setting the Input/Output Conditions 4. Next, move the cursor to the "FORMULA" column and press the SET key. Another popup menu will appear allowing you to select the type of formula you want to use for calculations. In this case, select "CBP." NUMERIC CALC SCREEN COND SAVE N00-N07 CHG-CALC 1 (SET KEY) N00 N01 N12 N03 F C1 BRT OBJECT TYPE CALC RESULT CNST SUM AVG CBP CBM DEL N04 N05 N06 N07 SET=SELECT TYPE ESC=BACK SEL=CHNG IMG TRG=FUNC 5. After completing these settings, deviation on X-axis will be output as a CBP value (in unit of mm). 16 16-32 Communication (General Purpose Serial Interface) Chapter 17: Communication (General Purpose Serial Interface) The IV-S30J can communicate with a personal computer that transmits commands and receives responses to measurement execution commands. 17-1 List of processing functions The following functions can be used for communication between the IV-S30J and a personal computer (using the general-purpose serial interface). Executing measurement Category Processing description Measurement execution function 1 10 Measurement execution function 2 11 Measurement execution function 3 12 Measurement execution function 4 Measurement data reading 1 Reading result Code 14 20 Measurement data reading 2 21 Measurement data reading 3 22 Measurement data reading 4 24 Illumination reading Corrected light level reading 28 29 Functions - Executes all measurement programs for a specified object type. (You can make measurements by specifying a camera.) - Outputs the ladder results (Y0 to 15). - Executes all measurement programs for a specified object type. (You can make measurements by specifying a camera.) - Outputs the ladder results (Y0 to 15) and the measurement data in block 0 for each measurement program. - Executes all measurement programs for a specified object type. (You can make measurements by specifying a camera.) - Outputs the ladder results (Y0 to 15) and the measurement result from a specified block for a specified measurement number. - Executes all measurement programs for a specified object type. (You can make measurements by specifying a camera.) - Outputs any numerical data selected by the IV-S30J. Reads the result of the last measurement - Outputs the ladder results (Y0 to 15). Reads the result of the last measurement - Outputs the ladder results (Y0 to 15) and the measurement data in block 0 for each measurement program. Reads the result of the last measurement - Outputs the ladder results (Y0 to 15) and the measurement result from a specified block for a specified measurement number. - Reads the results of the last measurement from a specified measurement code. - Outputs any numerical data selected by the IV-S30J. - Reads the amount of illumination measured by the lighting monitor function, and the evaluation result. - Reads the corrected light level measured by the lighting monitor function, evaluation result and preset reference density. Shown below is the relationship of each selection when code 10 to 14 are specified is shown below. The conditions below are what is shown when the "PARALLEL+SERIAL" is selected on the " MEAS INP I/F" on the "I/O CONDITIONS" selection screen. Measurement Output start selection General purpose --serial port None Parallel port Serial output Command codes 10 to 12 --SHARP/MITSUBISHI/ Computer link OMRON/YOKOGAWA General-purpose Response output from serial command codes 11 17-1 Object type change Command codes 10 to 12 Parallel Parallel Parallel 17 Communication (General Purpose Serial Interface) The conditions below are what is shown when the "TRIG CCD START" is selected on the " INP I/F" on the "I/O CONDITIONS” selection screen. Measurement start Auto Parallel port Output selection Parallel port General purpose serial port None --Response output from command codes 11 --SHARP/MITSUBISHI/ Computer link OMRON/YOKOGAWA General-purpose Response output from serial port command codes 11 General-purpose --serial port Category English or Japanese display Object type number Individual conditions Command codes 10 to 12 Processing function Operation lock status Code Read Set Read Set 50 51 52 53 Read 54 Set 55 Read 56 Set 57 Read 58 Set 59 Read 5A Set 5B Assign 5E Image status Output image camera Shutter speed Register a reference image 17 Serial output MEAS Object type change Parallel Command codes 55 Parallel Parallel Parallel Command codes 10 to 12 Function - Read lock/unlock condition of the operation screen. - Set lock/unlock for the operation screen. - Read the status from the English or Japanese display. - Enter a change on the English or Japanese display. - Read an object type number to measure when the measurement start input is turned ON. - Assign an object type number to be executed when the measurement start input is turned ON. - Read the image status being monitored (Output: Through/freeze, Brightness: Full/half). - Change the status of the image being monitored (Output: Through/freeze, Brightness: Full/half). - Read the status of the camera outputting an image for the specified object type. - Set the status of the camera that is outputting an image for the specified object type. - Read the shutter speed setting for the specified object type. - Set shutter speed for the specified object type. - Measurement program: Registers reference images for the specified object type and measurement number (register No. 0 only). - Image calculation: Registers reference images used for image calculations of the specified object type. - Set all settable conditions to their initial values (global conditions, all object type conditions, and reference images). - Check the controller for a hardware error. Items to check: VRAM (read after write), SDRAM (read after write), etc. Initialize all 60 Self-diagnostic 68 Reset 69 - Reset the controller (the same as a power reset operation). 70 71 - Read the coordinates detected by manual measurement. - Set the coordinates for manual measurement. Manual measurement coordinates Read Set 17-2 Communication (General Purpose Serial Interface) 17-2 Data flow The data flow between the IV-S30J and a personal computer is shown below. [1] Measurement execution 1: Command codes 10, 11, or 12 æ Select the measurement start input source = general purpose serial and parallel port Measuring (for each object type) IV-S30J 1 Receiving a command Personal computer 2 Transmitting a response (measurement data, etc.) [2] Measurement execution 2: Response processing for command 11 æ Select the measurement start method = CCD trigger, parallel or serial output = general purpose serial Note: When a CCD trigger is chosen as the measurement start input, the sample start must be set to parallel or auto. Measuring (for each object type) IV-S30J 1 Inputting a trigger CCD camera or programmable controller 2 Transmitting a response Personal computer or programmable controller (Command 11, measurement data, etc.) - You can specify the response block on the "OBJECT TYPE I/O" screen Select the measurement start method = CCD trigger, start sampling & output results = general purpose serial IV-S30J Measuring (for each object type) æ see page 16-23. 1 Inputting a trigger CCD camera or (Start sampling CCD trigger.) programmable controller 2 CCD trigger CCD camera 3 Transmitting a response (Command 11, measurement data, etc.) Personal computer or programmable controller 17 17-3 Communication (General Purpose Serial Interface) [3] Measurement execution 3: Command 14 æ Select measurement start input source = general purpose serial and parallel port [Procedure] (1) Send packet number 0 → After measuring, send back the measurement code for the first register and any specified data. (2) Send the other packets, starting from number 1→ - Send back the measurement code for the next register and any specified data. - When there are no more measurement registers, send back the end code "F." Measuring (for each object type) IV-S30J 1 Receiving a command (Packet = 0: Measurement execution) 2 Transmitting a response (Measurement codes, measurement data, etc.) 1 Receiving a command (Packet = 1: No measurement execution) Personal computer 2 Transmitting a response (Next measurement codes, measurement data, etc.) : : [(Response) measurement code] Measurement code Setting Measurement code 0 MEASURE 0 CAMERA 1 5 MEASUREMENT 4 1 MEASURE 0 CAMERA 2 6 Distance and angle measurement 2 MEASUREMENT 1 7 Numerical calculation 3 MEASUREMENT 2 F Quit 4 MEASUREMENT 3 Setting [4] Processing other than measurement execution processing - Operation screen: Any command can be processed, regardless of the measurement I/O settings (measurement start, result output). - Setting screens: Reading/writing a display image (commands 30, 31) and reading a binary image (command 34) are available. IV-S30J 17 Operating 1 Receiving a command Personal computer 2 Transmitting a response 17-4 Communication (General Purpose Serial Interface) 17-3 Communication format The communication formats of the commands and responses between the IV-S30J and a personal computer are outlined below. Command Station Header : No. SC SC CR H L ............... Terminator *2 *1 Processing Station code No. *2 *4 Text Checksum code Station Response RC RC H L Header : No. *3 *1 Station No. *2 ............... Termination code SC SC CR H L *2 Terminator Text *4 Checksum code Processing code *1 Station No.: 00 to 7F(H) *2 Processing code and text - They depend on the contents of communication. - See pages 17-1 and 17-7 and after. - On abnormal termination, no text is provided. *3 Termination code(H) The termination code is a 2-digit hexadecimal number. - When an output is sent through the general purpose serial I/F, 00(H) is sent on normal termination. - On abnormal termination, a code other than 00(H) is sent. - See page 19-3. *4 Checksum code (SCH and SCL) To improve the reliability of the transmitted data, in addition to a parity check, error detection by a checksum is used for error detection. When the IV-S30J does not need to complete a checksum for error detection, use an @ (at sign: ASCII code 40(H)) in each of the checksum codes SCH and SCL included in the command. [Error detection using a checksum] The ASCII code for each data byte, from the processing code to the end of text (prior to the checksum code), is added. The final value is compared to the checksum code which is treated the same way. If the two values are identical, the command is considered to be valid. I/F they are not identical, an error has occurred during transmission. Value increment range for checksum Station : No. Header Command SC SC CR H L Station No. Processing code Terminator Text Checksum code 17 Value increment range for checksum Station Response Header : No. Station No. RC RC H L SC SC CR H L Termination code Processing code 17-5 Text Terminator Checksum code Communication (General Purpose Serial Interface) [Method for creating a checksum code] The ASCII code for each byte of data, from the processing code to the end of text (prior to the checksum code) is added together. The lower 1 byte of this sum is divided into the upper 4 bits and the lower 4 bits. The hex character (0 to F) is converted to the ASCII code for that character and sent as one byte. Thus the checksum code consists of two bytes. Ex. 1 Command for the measurement execution function 1 (code 10(H)) Ex. 2 Command for the measurement execution function 7 (code 1A(H)) Station : No. Station 1 0 0 1 C 2 CR : No. 1 A 1 6 4 0 ASCLII data Checksum code : C2 Checksum code : 6E 1.................31 A................41 1.................31 6.................36 4.................34 0.................30 1.................31 16E Note - This manual uses the following notation to represent addresses and set values. Octal number .......................... (8) Ex. 377(8) Decimal number ...................... None Ex. 255 Hexadecimal number ............. (H) Ex. FF(H) 17-6 6 E CR ASCLII data 1.................31 0.................30 0.................30 1.................31 C2 17 1 Communication (General Purpose Serial Interface) 17-4 Processing functions [1] Measurement execution functions (1) Measurement execution function 1: code 10(H) This command will cause the IV-S30J to execute all of the measurement programs for a specified object type. (You can specify the camera to use for measurements.) The results in the ladder outputs (Y00 to 15) will be sent back as the response. On page 17-1 you can see how each command affects the various inputs and outputs. : Station No. 1 0 Execution camera Ë Command Object type SC SC CR (H) (L) : Station No. 1 0 RC RC (H) (L) Object type Execution camera Ë Response Final output evaluation result Y0 Y1 Y15 SC SC CR (H) (L) - Object type → Object type to measure: 00 to 3F - Execution camera number → 0: Both cameras 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK - Data flow - See page 17-3. (2) Measurement execution function 2: code 11(H) This command will cause the IV-S30J to execute all of the measurement programs for a specified object type. (You can specify the camera to use for measurements.) The results in the ladder outputs (Y00 to 15) and the measurement data in block 0 of each measurement will be sent back as the response. On page 17-1 you can see how each command affects the various inputs and outputs. Station SC SC CR (H) (L) 1 1 RC RC (H) (L) Object type Final output evaluation result Y0 Y1 Y15 Measurement 1 Measurement 2 Measurement 3 Measurement 4 1 Measurement 0 Camera 2 : Object type Camera 1 Ë Response Station No. 1 1 Execution camera : No. Execution camera Ë Command Measurement 0 Data on Data on Data on Data on Camera 1 Camera 2 measure- measure- measure- measure- SC SC CR data 2 data 2 ment 1 2 ment 2 2 ment 3 2 ment 4 2 (H) (L) - Object type → Object type to measure: 00 to 3F - Execution camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final Output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK - 1 → Measurement programs 0 to 4 0 = none, 1 = positional deviation measurement, 2 = degree of match inspection, 3 = lead inspection, 5 = area measurement by binary conversion, 6 = object counting by binary conversion, 7 = object identification by binary conversion, 8 = point measurement, 9 = multiple positions measurement, A = multiple degree of inspections - 2 → Measurement data Only the data in block 0 of a measurement program is output. (For details about the data arrangement in a block, see the section "Measurement data blocks" in Chapter 18, "Computer link.") - Data flow - See page 17-3. 17-7 17 Communication (General Purpose Serial Interface) : Station No. 1 2 RC RC (H) (L) Object type Execution camera Execution camera Measurement (3) Measurement execution function 3 : code 12(H) This command will cause the IV-S30J to execute all of the measurement programs for a specified object type. (You can specify the camera to use for measurements.) The results in the ladder outputs (Y00 to 15) and the results from a specified block in a specified measurement will be sent back as the response. On page 17-1 you can see how each command affects the various inputs and outputs. - Measurement Number → A measurement Command number that outputs numerical data (MEASURE 0 Object Station Block type No. No. SC SC CR CAMERA 1: 0, MEASURE 0 CAMERA 2: 1, and : 1 2 MEASUREMENT 1 to 4: 2 to 5) (H) (L) - Block → Specified block from which the data of a specified measurement function will be output. Response Final Output evaluation result Y0 Y1 Y15 Specified block data 1 SC SC CR (H) (L) - Object type → Object type to measure: 00 to 3F - Execution camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK → Specified block data (For details about the data arrangement in a block, see the section "Measurement data blocks" in Chapter 18, "Computer link.") - Data flow - See page 17-3. (4) Measurement execution function 4: code 14(H) This command will cause the IV-S30J to execute all of the measurement programs for a specified object type. (You can specify the camera to use for measurements.) Any numerical data selected by the IV-S30J can be output as the response. - See page 16-26. On page 17-1 you can see how each command affects the various inputs and outputs. Object Station type No. : 1 4 Execution camera Command 1 SC SC CR (H) (L) (H) (L) Measurement code Station Object No. : 1 4 RC RC type Execution camera Response Any numerical data SC SC CR (H) (L) → 0: Execute/read, 1: Read - Object type → Object type to measure: 00 to 3F - Execution camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Measurement code (response) 17 Measurement code Setting Measurement code 0 MEASURE 0 CAMERA 1 5 MEASUREMENT 4 1 MEASURE 0 CAMERA 2 6 Distance and angle measurement 2 MEASUREMENT 1 7 Numerical calculation 3 MEASUREMENT 2 F Quit 4 MEASUREMENT 3 - Specifications for any output data - Data flow See page 17-16. See page 17-3. 17-8 Setting Communication (General Purpose Serial Interface) [2] Result reading Data from the last measurement is read. (No instruction is sent to execute an operation.) For details about the measurement data blocks, see the section "Measurement data blocks" in "Chapter 18: Computer link." (1) Measurement data reading function 1: code 20(H) This command will cause the IV-S30J to read the results of the last measurement. The results in the ladder outputs (Y00 to 15) will be sent back as the response. This command is effective regardless of the measurement input specified. Ë Command : Station No. 2 0 SC SC CR (H) (L) : Station No. 2 0 RC RC (H) (L) Object type Execution camera Ë Response Final output evaluation result Y0 Y1 Y15 SC SC CR (H) (L) - Object type → Object type for which the measurement was executed: 00 to 3F - Executed camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK (2) Measurement data reading function 2: code 21(H) This command will cause the IV-S30J to read the results of the last measurement. The results in the ladder outputs (Y00 to 15) and the measurement data in block 0 of each measurement will be sent back as the response. This command is effective regardless of the measurement input specified. Ë Command Station 2 1 SC SC CR (H) (L) RC RC (H) (L) Final output evaluation result Y0 Y1 Y15 Camera 2 2 1 Execution camera : Object type Measurement 0 Measurement 1 Measurement 2 Measurement 3 Measurement 4 1 Ë Response Camera 1 : No. Measurement 0 Data on Data on Data on Data on Camera 1 Camera 2 measure- measure- measure- measure- SC SC CR data 2 data 2 ment 1 2 ment 2 2 ment 3 2 ment 4 2 (H) (L) - Object type → Object type for which the measurement was executed: 00 to 3F - Executed camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final Output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK - 1 → Measurement programs 0 to 4 0 = none, 1 = positional deviation measurement, 2 = degree of match inspection, 3 = lead inspection, 5 = area measurement by binary conversion, 6 = object counting by binary conversion, 7 = object identification by binary conversion, 8 = point measurement, 9 = multiple positions measurement, A = multiple degree of inspections - 2 → Measurement data Only the data in block 0 of a measurement program is output. 17-9 17 Communication (General Purpose Serial Interface) (3) Measurement data reading function 3: code 22(H) This command will cause the IV-S30J to read the results of the last measurement. The results in the ladder outputs (Y00 to 15) and the measurement data in block 0 of each measurement will be sent back as the response. This command is effective regardless of the measurement input specified. : Station No. 2 2 Object type Measurement Command Block SC SC CR (H) (L) : Station No. 2 2 RC RC (H) (L) Object type Execution camera Response Final output evaluation result Y0 Y1 Y15 Specified block data 1 SC SC CR (H) (L) - Object type → Object type for which the measurement was executed: 00 to 3F - Executed camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only - Final Output evaluation result (Y0 to Y15) → 0: NG or unspecified, 1: OK - 1 → Specified block data (4) Measurement data reading function 4: code 24(H) This command will cause the IV-S30J to read the results of the last measurement. Any numeric value data will be output as a response. See page16-26. This command is effective regardless of the measurement input specified. - Measurement Number → A measurement number that outputs numerical data (MEASURE 0 CAMERA 1: 0, MEASURE 0 CAMERA 2: 1, and MEASUREMENT 1 to 4: 2 to 5) - Block → Specified block from which the data of a specified measurement function will be output. Station : No. 2 4 Measurement code Command SC SC CR (H) (L) Object 2 4 RC RC type (H) (L) Measurement code Station : No. Execution camera Response Any numerical data SC SC CR (H) (L) - Object type → Object type for which the measurement was executed: 00 to 3F - Executed camera number → 0: Both camera 1 and 2; 1: Camera 1 only; 2: Camera 2 only [(Response) measurement code] 17 Measurement code Setting Measurement code 0 MEASURE 0 CAMERA 1 5 MEASUREMENT 4 1 MEASURE 0 CAMERA 2 6 Distance and angle measurement 2 MEASUREMENT 1 7 Numerical calculation 3 MEASUREMENT 2 4 MEASUREMENT 3 - Specification for any output data See page 17-16. 17-10 Setting Communication (General Purpose Serial Interface) Station : No. 2 8 Execution camera (5) Illuminance level reading: code 28(H) The illuminance level measured by the illuminance monitor function and the evaluation result are read. Ë Command SC SC CR (H) (L) Object Station type No. : 2 8 RC RC (H) (L) - Camera No. - Object type - Result - Illuminance Result Ë Response Illuminance SC SC CR 102 101 100 10-1 (H) (L) 0: camera 1, 1: camera 2 Object type for which the measurement was executed: 00 to 3F 0: NG, 1: OK 000.0 to 255.0 Execution camera (6) Corrected light level reading: code 29(H) The corrected light level measured by the illuminance monitor function, the evaluation result and preset reference light level are read. Ë Command - Camera No. → 0: camera 1, 1: camera 2 Station No. : 2 9 SC SC CR (H) (L) Object Station type No. : 2 9 RC RC (H) (L) Result Ë Response Corrected Reference light level light level SC SC CR 102 101 100 10-1102 101 100 10-1 (H) (L) - Object type Object type for which the measurement was executed: 00 to 3F - Result 0: NG, 1: OK - Corrected light level Corrected light level (–0 to 255.0) - Reference light level Light level used as the criterion (0 to 255.0) 17 17-11 Communication (General Purpose Serial Interface) [3] Setting, initialization, and diagnosis of the operation screen Shown below are only the commands and responses of these processing functions. Process function Process code Communication format Ë Command : Read operation screen lock status 50 Station No. 5 0 SC SC CR (H) (L) Ë Response : Station No. 5 0 RC RC SC SC CR (H) (L) 1 (H) (L) 1 Operation screen lock 0 : Lock OFF 1 : Lock ON Ë Command Set operation screen lock status : 51 Station No. 1 Operation screen lock 0 : Lock OFF 1 : Lock ON 5 1 1 SC SC CR (H) (L) 5 1 RC RC SC SC CR (H) (L) (H) (L) 5 2 SC SC CR (H) (L) 5 2 RC RC (H) (L) Ë Response : Station No. Ë Command : Individual conditions Read from the English or Japanese display 52 Station No. Ë Response : Station No. 1 SC SC CR (H) (L) 1 English or Japanese display 0 : Japanese 1 : English Ë Command Set items on the English or Japanese display : 53 Station No. 5 3 1 1 English or Japanese display 0 : Japanese SC SC CR 1 : English (H) (L) Ë Response : Station No. 5 3 RC RC SC SC CR (H) (L) (H) (L) 5 4 SC SC CR (H) (L) 5 4 RC RC (H) (L) Ë Command : Read object type number 54 17 Station No. Ë Response : Station No. Object type 1 Type number(00 to 3F) SC SC CR (H) (L) Ë Command : Assign object type number 55 Station No. 5 5 Object type SC SC CR (H) (L) Ë Response : Station No. 5 5 RC RC SC SC CR (H) (L) (H) (L) 17-12 1 Type number(00 to 3F) Communication (General Purpose Serial Interface) Process function Process code Communication format Ë Command : 1 Output 0 : Freeze 1 : Through SC SC CR (H) (L) Ë Response : Station No. 5 6 Output 56 5 6 RC RC (H) (L) Brightness Read the image status Station No. 2 Light 0 : Full 1 : Half SC SC CR (H) (L) Set the image status 57 5 7 Output : Station No. Brightness Ë Command 1 Output 0 : Freeze 1 : Through SC SC CR (H) (L) Ë Response : Station No. 2 Light 5 7 0 : Full 1 : Half RC RC SC SC CR (H) (L) (H) (L) Ë Command : Read out image camera condition 58 5 8 SC SC CR (H) (L) 1Camera 1 2Camera 2 Station No. 1 5 8 2 RC RC (H) (L) SC SC CR (H) (L) Ë Command : Set output image camera condition 59 Station No. SC SC CR (H) (L) Ë Response : Station No. Horizontal division display 1 2 0 X1 0 X2 Camera1 display 1 2 8 0 4 0 2 1 5 9 Camera1 display 1 2 8 0 4 0 Camera2 display 1 2 4 0 8 0 Ë Response : Individual conditions Station No. 5 9 RC RC SC SC CR (H) (L) (H) (L) 5 A SC SC CR (H) (L) 5 A RC RC (H) (L) 1Camera 1 2Camera 2 Camera2 display 1 2 4 0 8 0 Horizontal division display 1 2 0 X1 0 X2 Ë Command : Read the shutter speed for each object type 5A Station No. 1 Shutter speed (001E to 2710(H) : 1/30 to 1/10000) Ë Response : Station No. Shutter speed SC SC CR (H) (L) 17 Ë Command : Set the shutter speed for each object type 5B Station No. Shutter speed 5 B SC SC CR (H) (L) Ë Response : Station No. 5 B RC RC SC SC CR (H) (L) (H) (L) 17-13 1 Shutter speed (001E to 2710(H) : 1/30 to 1/10000) Communication (General Purpose Serial Interface) Process function Process code Communication format Register a reference image 5E 5 E Measurement No. : Station No. 1Object Individual conditions Ë Command 1 SC SC CR (H) (L) Ë Response : Station No. 5 E RC RC SC SC CR (H) (L) (H) (L) Ë Command : Initialize all parameters Station No. 6 0 1 SC SC CR (H) (L) 60 Ë Response : Station No. 6 0 RC RC SC SC CR (H) (L) (H) (L) Ë Command : Station No. 6 8 SC SC CR (H) (L) Self diagnosis 68 Ë Response : Station No. 6 8 RC RC SC SC CR (H) (L) (H) (L) Ë Command : Station No. 6 9 SC SC CR (H) (L) Reset 69 Ë Response : Station No. 6 9 RC RC SC SC CR (H) (L) (H) (L) 17 17-14 1 Initialize memory 0 : Flash memory and RAM 1 : RAM Communication (General Purpose Serial Interface) Process function Process code Communication format Ë Command : Station No. 1 7 0 SC SC CR X coordinate 0X of the 0th detection (000 to IFF(H)) : 0 to 0511 Y coordinate 0Y of the 0th detection (000 to IDF(H)) : 0 to 479 X coordinate 1X of the 1st detection (000 to IFE(H)) : 0 to 511 Y coordinate 1Y of the 1st detection (000 to IDF(H)) : 0 to 479 2 (H) (L) Read the manual measurement coordinates 3 70 4 Ë Response : Station No. 1 2 3 7 0 RC RC 4 SC SC CR (H) (L) (H) (L) Ë Command : Set the manual measurement coordinates 71 Station No. 1 2 : 4 SC SC CR (H) (L) Ë Response Station No. 3 7 1 1 7 1 RC RC SC SC CR 2 (H) (L) (H) (L) 3 4 X coordinate 0X of the 0th detection (000 to IFF(H)) : 0 to 0511 Y coordinate 0Y of the 0th detection (000 to IDF(H)) : 0 to 479 X coordinate 1X of the 1st detection (000 to IFE(H)) : 0 to 511 Y coordinate 1Y of the 1st detection (000 to IDF(H)) : 0 to 479 17 17-15 Communication (General Purpose Serial Interface) [4] Setting numerical data of the any output measuring Numerical data of the any setting of the response at measuring (code 14(H): page 17-8) and reading measurement data 4 (code 24(H): page 17-10) is as follows. 2 4 RC RC (H) (L) Object type Measurement code Station : No. Execution camera [Ex.] Response to code 24 Any numerical data SC SC CR (H) (L) [Any type of numerical data] 1 2 3 Output code Numeric result data3 2 1 Delimiter between output data:","(Space 20(H) + comma 2C(H)) Output code list Numeric result data Output only the registered data in each specified measurement, in register order. Note: A maximum of 1 K bytes data is allowed. [Ex.] A numerical data of the any setting when outputting coordinate X and coordinate Y with the positional deviation measurements. Registration N (Model 1) , 0 3 17 Degree of match Coordinate X Coordinate Y Coordinate deviation X Coordinate deviation Y Angle Average light level 1 Number of objects MAX. Distance MIN. MAX. Lead width MIN. MAX. Lead length/ lead width 2 MIN. Total area CUR. Area of each MAX. label MIN. CTR. OF X coordinate GRAVITY of gravity center/DistanMAX. ce between DIST. gravity MIN. centers X DIST. CTR. OF Y coordinate GRAVITY of gravity center/DistanMAX. ce between DIST. gravity MIN. centers Y DIST. O O O O O O O O O O O O O O O O O O 4 O 2 16 17 18 O O O O O O 14 15 Lead inspection 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 Registration N (Model 1) : Measurement program Degree of match inspection 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 10 11 12 13 Positional deviation measurement No. of bytes Kind of output Output code Codes and number of bytes of output data 1. Result of each measurement program Output data Registration 0 (Model 0) Multiple degree of match inspections : Multiple positions measurement Registration 0 Registration 0 (Model 0) (Model 1) Point measurement 0 2 Area measurement by binary conversion Object counting by binary conversion Object identification by binary conversion , O 2 19 17-16 Communication (General Purpose Serial Interface) Main axis angle Perimeter Degree of match Coordinate X Coordinate Y Average light level 1(total of light level differences) Average light level 2 Black and white Counting white objects Number of registers Center point X Center point Y 1A 1B 1C 1D 1E 1F 20 21 22 23 24 2 4 2 2 2 25 2 28 29 2A 2B 2C 2D 1 1 2 2 2 2 Point measurement Object identification by binary conversion Object counting by binary conversion Area measurement by binary conversion Lead inspection Degree of match inspection Positional deviation measurement Multiple degree of match inspections Fillet diameter Y CUR. MAX. MIN. CUR. MAX. MIN. Multiple positions measurement Fillet diameter X No. of bytes Kind of output Measurement program Output code Output data O O O O O O O 2 O 2 O O O O O O O O O 2. Results of the distance and angle measurement Kind of output Output code No. Distance 30 Angle 31 Coordinate X 32 Auxiliary 1 Angle 33 Coordinate Y 34 Auxiliary 2 Y slice length 35 of bytes 2 2 4 4 3. Numeric calculation results Kind of output MEASURE 0 CAMERA 1 MEASURE 0 CAMERA 2 MEASUREMENT 1 MEASUREMENT 2 MEASUREMENT 3 MEASUREMENT 4 Final calculation Output code No. of bytes 17 40 4 17-17 Computer Link Chapter 18: Computer Link A programmable controller (hereafter referred to as a PC) can be connected to the IV-S30J, so that the computer link can be used to have the IV-S30J execute measurements. 18-1 Compatible models The IV-S30J is applicable with the computer links for the following models of Sharp, Mitsubishi, OMRON, and Yokogawa. Sharp J-board - Host communication port in models Z-311J/312J JW10 - Communication port in models JW-1324K/1342K/1424K/1442K/ 1624K/1642K, MMI port JW20H - Communication port in the JW-22CU - JW-21CM (link module) JW30H - Communication port of JW-32CUH/33CUH - Communication port in models JW-32CUH1/33CUH1/33CUH2/33CUH3 - JW-21CM (link module) JW50H/70H/100H - Communication port in models JW-70CUH/100CUH - JW-10CM (link module) Mitsubishi OMRON Yokogawa AnA, AnN (AJ71C24-Sx) A1S (A1SJ71C24) A0J2 (A0J72C24-S1) C1000H (C500-LK203) C200H RS-232C (C200H-LK201) C200H RS-422 (C200H-LK202) CV1000 - CV CPU link port - CV500-LK201 CVM1 - CV CPU link port - CV500-LK201 F3SP21-0N F3SP05-0P CPU for F3SC21-1N F3SP08-0P CPU for F3SC22-1F/2F/1A F3SP25-2N F3SP28-3N F3SP35-5N F3SP38-6N F3SP53-4H F3SP58-6H F3SP28-3S F3SP38-6S F3SP53-4S F3SP58-6S F3SP59-6S 18 18-1 Computer Link 18-2 Data flow Specify the CCD-TRIG (camera 1) or the PARALLEL (parallel interface) as the source of the MEAS INP I/F (measurement start input) signal. See Chapter 16 "Setting the Input/Output Conditions." The data flow for a measurement start input (CCD trigger/parallel) signal and an object type change command (parallel) is shown below. Measuring IV-S30J 1 Enter measurement start signal. (CCD trigger/parallel) CCD camera or PC 2 Write measurement data. PC 3 Receive a completion response. 2,3: Computer link The block of measurement data to be written from the IV-S30J to the PC, in step the "OBJ-TYPE I/O" screen. See page 16-23. , can be specified on When a Sharp PC is connected The IV-S30J sends write enable command (EWR) to the PC in the following cases. - When the power is applied to the IV-S30J. - When a Sharp PC is selected. - When a write mode nonconformity error (code 10(H)) occurs after a result write command (WRG) is transmitted (when the power is disconnected from the PC). When a Mitsubishi, OMRON, or Yokogawa PC is connected The data in items and are divided into packets for transmission. 18 18-2 Computer Link 18-3 Register setting Use PC register (writing: up to 512 bytes) to provide the IV-S30J with a computer link. Setting item Applicable range of address - Sharp: 09000 to 99776 - Mitsubishi Write register (up to 512 bytes) - OMRON: DM0000 to DM9999 - Yokogawa: D00001 to D16384 See page 16-22. Enter the write start address in item " WRITE TOP ADRS," on the "COMPUTER LINK" screen, under the "SELECT SYSTEM COND" screen. Note 1: When a Sharp PC is used, specify an even address for the write start address. Note 2: When 512 bytes are used for the write register in a Sharp PC, use one of the following write start addresses. 09000, 19000, 29000, 39000, 49000, 59000, 69000, 79000, 89000, 99000 Write register map The write register contains the following data. Sharp Mitsubishi OMRON 09000 09001 09002 09003 09004 09005 09006 09007 09010 09011 09012 09013 09014 09015 19000 19001 D0000 D0001 D0002 D0003 D0004 D0005 D0006 D0256 L H L H L H L H L H L H L H DM0000 DM0001 DM0002 DM0003 DM0004 DM0005 DM0006 L H L H L H L H L H L H L H Yokogawa D00001 D00002 D00003 D00004 D00005 D00006 D00007 L H L H L H L H L H L H L H Contents Termination code (00(H): normal termination, codes other than 00(H) abnormal termination -See page 19-3.) Appended information (error code in an error response) Object type number (0 to 63: 00 to 3F(H)) Measurement number when outputting results (0 to 5) Result output (Y0 to Y15) Measurement function 0 using camera 1 Measurement function 0 using camera 2 Measurement function 1 Measurement function 2 Measurement function 3 Measurement function 4 Output data from measurement 0 camera 1 (block 0) : L H L H L Output data from measurement 0 camera 2 (block 0) H : L H L H L Output data from measurement 1 (block 0) : H L H L H L Output data from measurement 2 (block 0) H L H L H L H L H L Output data from measurement 3 (block 0) : H : L Output data from measurement 4 (block 0) : H *1 *2 *3 *4 *5 *6 L L L Assigned block data D00257 DM0256 H H H *7 18 *1 to *7 See the next page. The register map shown above is established when the write start addresses have been set as shown below. Manufacturer Sharp Mitsubishi OMRON Yokogawa Write start address 09000 D0000 DM0000 D00001 18-3 Computer Link *1 When the termination code is 08(H) (received an error response), the error code is contained in the appended information. (Example: 0A(H) on a Sharp PC = parity error) *2 Measurement number when outputting the results 00(H) = Measurement 0, Camera 1, 01(H) = Measurement 0, Camera 2, 02(H) = Measurement 1, 03(H) = Measurement 2, 04(H) = Measurement 3, 05(H) = Measurement 4 *3 Result output (Y0 to Y15) H (09005) Bit 7 6 5 4 3 2 L (09004) 1 0 7 Y15 Y14 Y13 Y12 Y11 Y10 Y9 Y8 6 5 4 3 2 1 0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0 *4 Measurement program for measurement 0 00(H) = none, 01(H) = positional deviation measurement *5 Measurement programs for measurements 1 to 4 00(H) = none, 01(H) = positional deviation measurement, 02(H) = degree of match inspection, 03(H) = lead inspection, 05(H) = area measurement by binary conversion, 06(H) = object counting by binary conversion, 07(H) = object identification by binary conversion, 08(H) = point measurement, 09(H) = multiple position measurement, 0A(H) = multiple degree of match inspections *6 Output data from measurements 0 to 4 (block 0) The data output will vary according to whether "ANY" or "BLOCK-ASSIGN" was selected on the SERIAL OUTPUT item. - Pages 16-23 to 16-27. When a block is specified - The measurement data from measurement numbers 0 to 4 in block 0 is output. (Max. 496 bytes). - Measurement numbers that have not been specified will not output any data. (The space will be filled by the next item. Max. 500 bytes.) - See pages 18-6 to 18-13, for details about the measurement data in block 0. When "ANY" is selected for the output See page 18-16. *7 Assigned block data When the SERIAL OUTPUT item is set to "BLOCK-ASSIGN," the IV-S30J will output the measurement result data in the specified block number. When the SERIAL OUTPUT item is set to "ANY," the nature of the output will depend on the output settings. For details about how to specify measurement output, see pages 16-23 and 16-25. - No data is output if block 0 (00) is specified. For details about the measurement data block, see pages 18-5 to 18-15. - The top address where the specified block of data is written will be an address made by adding 512 bytes to the top address for writing results. Sharp Top address for writing results 18 Top address for writing results + 512 bytes 09000 09001 . . . . . . . . . . 19000 19001 . . . Mitsubishi D0000 L H . . . . . . . . DM0000 L H L H . . L H H DM0256 . . . 18-4 D00001 . . L H Contents L Termination code H Appended information . . . L Output data from . measurement 4 (block 0) . . . H . . . . . . L Yokogawa . . . . . . . . . D0256 OMRON D00256 . . . L H Assigned block data . . . . Computer Link 18-4 Measurement data blocks [1] Number of blocks The measurement functions vary in the number of measurement data blocks they use. Measurement program Measurement function Blocks Page Positional deviation measurement 0, 1 18-6 Degree of match inspection 0, 1 Lead inspection 0, 1 Area measurement by binary conversion 0 Object counting by binary conversion 0 Object identification (labeling) by binary conversion 0 0, 1 (when binary processing is selected) Point measurement 0 to 4 (when average density is selected)0 to 4 Multiple positional measurement 0 to 4 Multiple degree of match inspections 0 to 4 18-7 18-8 18-8 to 10 18-11 to 12 18-13 Distance and angle measurement 58 18-14 Numerical calculation 51 18-15 18 18-5 Computer Link [2] Contents of the measurement result block (for each measurement function) (1) Positional deviation measurement Block 0 No. of Decimal point (digit) bytes X 2 1 1st point None (center coordinates) Y 2 1 None Registration 2nd point X 2 1 None No. 0 (center coordinates) Y 2 1 None * 2 1 Angular deviation Provided Registration The registration No. 1 to 7 contain the same data as the No. 1 to 7 registration No. 0. Item Sign (+/-) * When a sign is provided, if the highest-order bit of the data is ON (1), a "-" minus sign is used, and if the bit is OFF (0), a "+" plus sign is used. The value (decimal) is expressed two's complement notation. (A two's complement number is obtained by inverting the 0s and 1s in a binary number and adding 1.) Note: If a registration number has not been used yet, the data for the next registered number will be brought forward. Example of the data in block 0: Only registration No. 0 0 8 2 0 0 5 2 8 0 F A 0 0 E B 0 F F 7 6 Angular Y X Y X deviation Center coordinates Center coordinates of 1st point of 2nd point Registration No. 0 - These data are in hexadecimal. They are converted to the actual decimal measurements as shown below. Data (hexadecimal) Decimal number Center coordinates X of 1st point Y 820 2080 208.0 528 1320 132.0 Center coordinates X of 2nd point Y FA0 4000 400.0 EB0 3760 376.0 Angular deviation FF76 —138 —13.8 Block 1 18 Item Sign (+/-) Measurement result (value) No. of Decimal point (digit) bytes Degree of 1st point 2nd point match Provided 2 None Provided 2 None X Provided 2 1 Y Provided 2 1 X Provided 2 1 Y Provided 2 1 1st Registration point No. 0 Deviation amount 2nd point Registration The registration No. 1 to 7 contain the same data as the No. 1 to 7 registration No. 0. Note: If a registration number has not been used yet, the data for the next registered number will be brought forward. 18-6 Computer Link (2) Degree of match inspection Block 0 Item Degree of 1st point Registration match No. 0 (positioning) 2nd point Sign (+/-) No. of bytes Decimal point (digit) Provided 2 None Provided 2 None Registration Registration No. 1 to 15 contain the same data as the registration No. 1 to 15 No. 0. Block Item Sign (+/-) 1st X point Y 1 Registration Coordinate X 2nd No. 0 point Y Average 1st point light level 2nd point No. of Decimal bytes point (digit) None 2 1 None 2 1 None 2 1 None 2 1 None 2 1 None 2 1 Registration Registration No. 1 to 15 contain the same data as the registration No. 1 to 15 No. 0. (3) Lead inspection Block 0 Item Sign (+/-) Decimal point (digit) Registration Number None 2 of None No. 0 objects Registration Registration No. 1 to 15 contain the same data No. 1 to 15 as the registration No. 0. Block No. of Decimal Sign (+/-) bytes point (digit) Item Maximum None 2 1 Minimum None 2 1 NG No. None 2 None No. of NG None 2 None Maximum None 2 1 Lead Minimum None 2 1 width NG No. None 2 None No. of NG None 2 None Maximum None 2 1 Lead Minimum None 2 1 length NG No. None 2 None No. of NG None 2 None Distance 1 No. of bytes Registration No. 0 Registration Registration No. 1 to 15 contain the same data as the No. 1 to 15 registration No. 0. 18-7 18 Computer Link (4) Area measurement by binary conversion Block 0 Item Registration No. 0 Area Sign (+/-) No. of bytes Decimal point (digit) None 4 None Registration Registration No. 1 to 15 contain the same data No. 1 to 15 as the registration No. 0. (5) Object counting by binary conversion Block 0 Sign (+/-) Item No. of bytes Decimal point (digit) None 2 None Registration No of labels None No. 0 None Total area 4 Registration Registration No. 1 to 3 contain the same data as No. 1 to 3 the registration No. 0. (6) Object identification by binary conversion Block 0 10 18 11 12 13 20 21 22 23 30 31 32 33 40 41 42 43 Sign No. of Decimal (+/0) bytes point (digit) No. of labels None 2 None Registration No. 0 Total area None 4 None Registration No. 1 to 3 contain the same data as the Registration registration No. 1 to 3 No. 0. Area of each label None 4 None X coordinate of None 2 1 gravity center Y coordinate of None 2 1 gravity center Label 0 Spindle axis angle Provided 2 1 Fillet diameter X None 2 None Registration No. 0 Fillet diameter Y None 2 None Peripheral None 4 1 Label 1 to 31 Label No. 0 to 127 contain Label 32 to 63 the same Label 64 to 95 data as the label No. 0. Label 96 to 127 Label 0 to 31 Label No. 0 to 127 contain Registration Label 32 to 63 the same No. 1 data as the label No. 0 of Label 64 to 95 block 10. Label 96 to 127 Label 0 to 31 Label No. 0 to 127 contain Registration Label 32 to 63 the same No. 2 data as the label No. 0 of Label 64 to 95 block 10. Label 96 to 127 Label 0 to 31 Label No. 0 to 127 contain Registration Label 32 to 63 the same No. 3 data as the label No. 0 of Label 64 to 95 block 10. Label 96 to 127 Item To the next page 18-8 Computer Link Block Sign (+/0) Item 60 Registration No. 0 label unit area 61 62 63 Registration No. 1 label unit area Registration No. 2 label unit area Registration No. 3 label unit area Label 0 to Label 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 64 Registration No. 0 gravity center 68 69 70 71 72 73 74 75 76 77 78 79 80 81 Registration No. 1 gravity center Registration No. 2 gravity center Registration No. 3 gravity center Registration No. 0 spindle angle Registration No. 1 spindle angle Registration No. 2 spindle angle Registration No. 3 spindle angle Registration No.0 fillet dia. Registration No.1 fillet dia. Registration No.2 fillet dia. Registration No.3 fillet dia. Registration No.0 peripheral length Registration No.1 peripheral length Registration No.2 peripheral length Registration No.3 peripheral length Registration No.0 center point Registration No.1 center point Registration No.2 center point Registration No.3 center point Each label contains the same data as block 60. X Y None None 2 2 to Label 127 65 66 66 None No. of Decimal point bytes (digit) 4 to None 4 1 1 to X Y Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 1B Label 0 to 127 1B Label 0 to 127 1B Label 0 to 127 1B X Label 0 Y to X Label 127 Y Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 Label 0 to 127 X Label 0 Y to X Label 127 Y Label 0 to 127 Label 0 to 127 Label 0 to 127 None None 2 2 1 1 Each label contains the same data as block 64. Provided Provided Provided Provided None None 2 2 2 2 2 2 1 1 1 1 None None to None None 2 2 None None Each label contains the same data as block 70. None 4 1 Each label contains the same data as block 74. None None 2 2 None None 2 2 None None to None None Each label contains the same data as block 78. 18 18-9 Computer Link Block Item Area of each label X coordinate of gravity center Y coordinate of gravity center 82 Registration No. 0 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 Registration No. 1 Registration No. 2 Registration No. 3 Label Spindle axis angle 0 Fillet diameter X Fillet diameter Y Peripheral Center point X Center point Y Label 1 to 31 Label 32 to 63 Label 64 to 95 Label 96 to 127 Label 0 to 31 Label 32 to 63 Label 64 to 95 Label 96 to 127 Label 0 to 31 Label 32 to 63 Label 64 to 95 Label 96 to 127 Label 0 to 31 Label 32 to 63 Label 64 to 95 Label 96 to 127 18 18-10 Sign (+/0) None No. of Decimal point bytes (digit) 4 None None 2 1 None 2 1 2 1 2 2 4 2 2 None None 1 None None Provided None None None None None Label No. 0 to 127 contains the same data as label No. 0. Label No. 0 to 127 contains the same data as label No. 0 in block 82. Label No. 0 to 127 contains the same data as label No. 0 in block 82. Label No. 0 to 127 contains the same data as label No. 0 in block 82. Computer Link (7) Point measurement 1. In the binary mode Block Registration No. 0 to 15 Registration No. 16 to 31 0 1 Sign (+/0) Item Black and white information Black and white information 0 = black 1 = white 0 = black 1 = white : : Registration No. 240 to 255 Black and white 0 = black information 1 = white Registration No. 0 to 7 Evaluation information Black and white information Registration No. 8 to 15 No. of Decimal bytes point (digit) None 2 None None 2 None : None 2 None 0 = NG 1 = OK 0 = black 1 = white 0 = NG 1 = OK None 1 None None 1 None None 1 None Black and white 0 = black information 1 = white None 1 None Evaluation information : : Evaluation information Registration No. 248 to 255 Black and white information : 0 = NG 1 = OK 0 = black 1 = white None 1 None None 1 None Note: If a point number has not been used yet, the data for the next registered number will be brought forward. - When an item does not have data in 2 byte units, the data will be increment (scrolled up) in units of two bytes. [Ex.] When "NO" data is registered at memory locations 16 to 31, the data at memory locations 32 and on are moved down to locations 16 and on. Data example: Only point No. 0 to 7 in block 0 Contents Data F FA White/ black information White/black information FA (H) Point No. White/black A 1 1 1 1 1 0 1 0 P7 P6 P5 P4 P3 P2 P1 P0 White White White White White Black White Black 0: black, 1: white 18 18-11 Computer Link 2. In the average light level mode Block 0 1 2 3 4 Item Data code Sign (+/0) No. of Decimal bytes point (digit) Registration Average densigy 20 None 2 None No. 0 Registration Registration No. 1 to 31 contain the same data as No. 1 to 31 registration No. 0. Registration Average densigy 20 None 2 None No. 32 Registration Registration No. 33 to 63 contain the same data as No. 33 to 63 registration No. 0. Registration Average densigy 20 None 2 None No. 64 Registration Registration No. 65 to 95 contain the same data as No. 65 to 95 registration No. 0. Registration Average densigy 20 None 2 None No. 96 Registration Registration No. 97 to 127 contain the same data as No. 97 to 127 registration No. 0. Registration Evaluation 0=NG 2 None No. 0 to 15 information 1=OK None Registration Evaluation 0=NG None 2 None No. 16 to 31 information 1=OK : : : Registration Evaluation 0=NG None 2 None No. 112 to 127 information 1=OK Note: If a point number has not been used yet, the data for the next registered number will be brought forward. 18 18-12 Computer Link (8) Multiple positional measurement Block 0 Block 1 2 3 4 Sign (+/0) Item Decimal point (digit) No. of bytes Registration Number of objects detected None 2 No. 0 Registration Registration No. 1 to 3 contain the same data as No.1 to 3 registration No. 0. Sign (+/0) Item No. of bytes None Decimal point (digit) Degree 2 None of match None Coodin- None Detection 0 2 None ate X Registration Coodin- None 2 None No. 0 ate Y Average light level 1 (total None 2 None of light level difference)* Detection Details about detected objects 1 to 127 1 to 127 are the same as for object 0. Registration No. 1 Registration Details about detected objects 2 to 4 are the same as for No. 2 object 1(register No. 0). Registration No. 3 (9) Multiple degree of match inspections Block 0 Block 1 2 3 4 Sign (+/0) Item Decimal point (digit) No. of bytes Registration Number of objects detected None 2 No. 0 Registration Registration No. 1 to 3 contain the same data as No.1 to 3 registration No. 0. Sign (+/0) Item No. of bytes None Decimal point (digit) Degree 2 None of match None Coodin- None Detection 0 2 None ate X Registration Coodin- None 2 None No. 0 ate Y Average light level 1 (total None 2 None of light level difference)* Detection Details about detected objects 1 to 127 1 to 127 are the same as for object 0. Registration No. 1 Registration Details about detected objects 2 to 4 are the same as for No. 2 object 1(register No. 0). Registration No. 3 * When light level matching is executed, the total difference in light level is output. 18-13 18 Computer Link (10) Distance and angle measurement Block Measurement 0 Camera1 58 Data No. of Decimal code Sign (+/0) bytes point (digit) 30 Provided 2 1 31 Provided 2 1 Item Measurement 0 Camera 2 Measurement 1 Measurement 2 Measurement 3 Measurement 4 Registration No. 0 Registration No. 1 to 15 Registration No. 0 to 15 Registration No. 0 to 15 Registration No. 0 to 15 Registration No. 0 to 15 Registration No. 0 to 15 Distance Angle Auxiliary 1 (coordinate X 32/33 Provided 4 Float /angle) Auxiliary 2 (coordinate Y 34/35 Provided 4 Float /Y slice length) Registration No. 1 to 15 contain the same data as registration No. 0. Registration No. 0 to 15 contain the same data as measurement 0, camera 1. Registration No. 0 to 15 contain the same data as measurement 0, camera 1. Registration No. 0 to 15 contain the same data as measurement 0, camera 1. Registration No. 0 to 15 contain the same data as measurement 0, camera 1. Registration No. 0 to 15 contain the same data as measurement 0, camera 1. Note: Blank items are omitted and the remaining lines are moved up. 18 18-14 Computer Link (11) Numerical calculation Block Data No. of Decimal code Sign (+/0) bytes point (digit) Item Registration Calculation 40 Provided 4 2 No. 0 result Measurement 0 Camera1 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 41 Provided 4 2 No. 0 result Measurement 0 Camera 2 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 42 Provided 4 2 No. 0 result Measurement 1 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 43 Provided 4 2 No. 0 result 51 Measurement 2 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 44 Provided 4 2 No. 0 result Measurement 3 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 45 Provided 4 2 No. 0 result Measurement 4 Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Registration Calculation 48 Provided 4 2 No. 0 result Final measurement Registration Registration No. 1 to 15 contain the same data as No. 1 to 15 registration No. 0. Note: Blank items are omitted and the remaining lines are moved up. 18 18-15 Computer Link 18-5 Specifications for any output data When the serial output is set to "ANY" (page 16-26), the measurement results for the output data that is set to "YES" will be written into the write register map "output data from measurements 0 to 4 (block 0): *6 on page 18-3," in output-code order. Measurement Measurement 0 Camera1 Measurement 0 Camera2 Measurement 1 Measurement 2 Measurement 3 Measurement 4 Output Registration Degree of match for register number 0 Degree of match for register number 1 Output code 01 (degree of match) to Degree of match for register number 7 Coordinate X for register number 0 Coordinate X for register number 1 Output code 02 (coordinate X) to Coordinate X for register number 7 to to Numeric calculation result for register number 0 Output code 40 Numeric calculation result for register number 1 (numeric to calculation) Numeric calculation result for register number 15 The details of the output codes and register numbers are the same as for "MEASUREMENT 0, CAMERA1" The details of the output codes and register numbers are the same as for "MEASUREMENT 0, CAMERA1" The details of the output codes and register numbers are the same as for "MEASUREMENT 0, CAMERA1" The details of the output codes and register numbers are the same as for "MEASUREMENT 0, CAMERA1" The details of the output codes and register numbers are the same as for "MEASUREMENT 0, CAMERA1" - Data that are set to "NO" output do not output any signal (scrolled up). - Set the next page for details about the output codes (type, number of bytes, related measurement programs) Ex.: Output data examples when the "SERIAL OUTPUT" column is set to "YES." SHARP Mitsubishi 18 09014 09015 09016 09017 09020 09021 09022 09023 09024 09025 09026 09027 09030 09031 09032 09033 D0006 D0007 D0008 D0009 D0010 D00011 D00012 D00013 L H L H L H L H L H L H L H L H Output data OMRON DM0006 DM0007 DM0008 DM0009 DM0010 DM00011 DM00012 DM00013 L H L H L H L H L H L H L 00 01 78 26 00 02 92 09 00 05 FA 00 01 H 00 L 28 H 26 Details Measurement item when SERIAL OUTPUT is set to "YES" 0100(H): 00 = fixed value 01 = output code (degree of match) 2678(H): 9848(D) = 98.48% 0200(H): 00 = fixed value 02 = output code (X coordinate) 0992(H): 2450(D) = 245.0 (coordinate value) 0005(H): 00 = fixed value,05 = output code (coordinate Y deviation) Register 0 (degree of match, coordinate X, coordinate Y deviation) for measurement 1 (position deviation measurement) 00FA(H): 250(D) = 25.0 (deviation value) Register 0 (degree of 0001(H): 00 = fixed value 01 = output code (degree of match) match) for measurement 3 (degree of match 2628(H): 9752(D) = 97.52% inspection) 18-16 Computer Link Codes and number of bytes of output data 1. Result of each measurement program O O Multiple degree of match inspections O Multiple positions measurement O Point measurement Area measure-ment by binary conversion O O O O O O O O O O O O O O 4 14 15 Object identification by binary conversion O O O O O O Lead inspection Degree of match inspection 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 Positional deviation measurement 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 10 11 12 13 Object counting by binary conversion Degree of match Coordinate X Coordinate Y Coordinate deviation X Coordinate deviation Y Angle Average light level 1 Number of object MAX. Distance MIN. MAX. Lead width MIN. MAX. Lead length/ lead width 2 MIN. Total area CUR. Area of each MAX. label MIN. CTR. OF X coordinate GRAVITY of gravity center/DistanMAX. ce between DIST. gravity MIN. centers X DIST. CTR. OF Y coordinate GRAVITY of gravity center/DistanMAX. ce between DIST. gravity MIN. centers Y DIST. CUR. Fillet diameter MAX. X MIN. CUR. Fillet diameter MAX. Y MIN. No. of bytes Kind of output Measurement program Output code Output data O 2 16 17 18 O 2 19 1A 1B 1C 1D 1E 1F O 2 O 2 18 18-17 Computer Link O O Distance 30 2 Angle 31 2 Coordinate X 32 Angle 33 Coordinate X 34 Y slice length 35 4 4 3. Results of numerical calculations Kind of output MEASURE 0 CAMERA 1 MEASURE 0 CAMERA 2 MEASUREMENT 1 MEASUREMENT 2 MEASUREMENT 3 MEASUREMENT 4 Final calculation Multiple degree of match inspections Point measurement O O O O No. of bytes Auxiliary 2 O O O O Output code Auxiliary 1 O O O O O 2. Results of distance and angle measurement Kind of output Object identification by binary conversion 1 1 2 2 2 2 Object counting by binary conversion 28 29 2A 2B 2C 2D Area measurement by binary conversion 2 Lead inspection 25 Degree of match inspection 2 4 2 2 2 Positional deviation measurement 20 21 22 23 24 Multiple positions measurement Main axis angle Perimeter Degree of match Coordinate X Coordinate Y Average light level 1 (total of light level differences) Average light level 2 Black and white Counting white objects Number of registers Center point X Center point Y No. of bytes Kind of output Measurement program Output code Output data Output code No. of bytes 40 4 18 18-18 Computer Link 18-6 Interface The interface between the IV-S30J and a programmable controller from each manufacturer is described below. Programmable controller IV-S30J Settings for the IV-S30J See item [1] below. Sharp [2] Mitsubishi [3] OMRON [4] Yokogawa [1] Setting items for the IV-S30J Item Setting details Communication speed(k bit/sec) 115.2, 57.6, 38.4, 19.2, 9.6, 4.8, 2.4 Data length (bit) 7, 8 Parity None, odd, even Stop bit 1, 2 Error check Checksum Station No. Sharp: 00 to 37(8) Mitsubishi: 00 to 31 OMRON: 00 to 31 Yokogawa: 01 to 32 Write address (up to 512 bytes) Sharp: 09000 to 99776 Mitsubishi: D0000 to D9999 OMRON: DM0000 to DM9999 Yokogawa: D00001 to D16384 18 18-19 Computer Link [2] Connection with a Sharp PC Applicable models 1. Control module: JW-22CU (can be used with ROM version 2.2 or later) JW-70CUH/100CUH, JW-32CUH/33CUH JW-32CUH1/33CUH1/33CUH2/33CUH3 JW-1324K/1342K/1424K/1442K/1624K/1642K Z-311J/312J JW-21CM, JW-10CM Z-331J/332J 2. Basic module: 3. CPU board: 4. Link module: 5. Communication board: (1) Module setting When a JW-22CU or a JW-70CUH/100CUH and Z-311J/312J are used Store the communication port conditions in system memory addresses #236 and #237. Bits D0 to D5 are stored in memory address #236. 7 6 5 4 3 2 1 0 #236 Data D5 Stop D4 D3 Parity D2 D1 D0 Transmission speed (k bit/sec) 7 bits, fixed 0 1 bit 0 0 None 0 0 1 1 2 bits 0 1 Odd 0 0 0 1 0 Even #237 Station No. 9.6 19.2 (001 to 037(8)) Enter the station No. for the current station. In the initial state, addresses #236 and #237 are set to 000. When a JW-32CUH/33CUH or a JW-32CUH/33CUH1/33CUH2/33CUH3 is used 1. When communication port 1 (PG/COMM1 port) is used Store the communication conditions in system memory addresses #234 and #235. Set bits D0 to D5 in memory address #234. Only an RS-422 cable can be connected to the PG/COMM1 port. 7 6 5 4 3 2 1 0 #234 Data D5 Stop D4 D3 Parity D2 D1 D0 Transmission speed (k bit/sec) 7 bits, fixed 0 1 bit 0 0 None 0 0 1 1 2 bits 0 1 Odd 0 0 0 1 0 Even 1 1 1 1 1 0 1 0 1 18 #235 9.6 19.2 38.4 57.6 115.2 * * Applicable only to the JW-32CUH1/33CUH1/33CUH2/33CUH3 Station No. (001 to 037(8)) Enter the station No. for the current station. In the initial state, addresses #234 and #235 are set to 000. 18-20 Computer Link 2. When communication port 2 (PG/COMM2 port) is used. Store the communication conditions in system memory addresses #222, #236 and #237. Either RS-232 or RS-422 cable can be connected to the PG/COMM2 port. #222 Communication method for the PG/COMM2 port (00(H)) Set to 00(H). 7 6 5 4 3 2 1 0 #236 Set bits D0 to D5 in memory address #236. Data D5 Stop D4 D3 Parity D2 D1 D0 Transmission speed (k bit/sec) 7 bits, fixed 0 1 bit 0 0 None 0 0 1 1 2 bits 0 1 Odd 0 0 0 1 0 Even 1 1 1 1 1 0 1 0 1 9.6 19.2 38.4 57.6 115.2 * * Applicable only to the JW-32CUH1/33CUH1/33CUH2/33CUH3 #237 Station No. (001 to 037(8)) Enter the station No. for the current station. In the initial state, addresses #222, #236 and #237 are set to 000. When a JW-1324K/1342K/1424K/1442K/1624K/1642K is used 1. When the communication port is used Store the communication conditions in system memory addresses #234, #236 and #237. #234 Communication mode for the communication port (00(H)) Set to 00(H) (computer link). 7 6 5 4 3 2 1 0 #236 Set bits D0 to D5 and D7 in memory address #236. D7 Data D5 0 7 bits 1 8 bits #237 Stop D4 D3 Parity D2 D1 D0 Transmission speed (k bit/sec) 0 1 bit 0 0 None 0 0 1 1 2 bits 0 1 Odd 0 0 0 1 0 Even 1 1 1 Station No. 9.6 19.2 38.4 (001 to 037(8)) Enter the station No. for the current station. In the initial state, addresses #234, #236 and #237 are set to 000. 18-21 18 Computer Link 2. When the MMI port is used Store the communication conditions in system memory addresses #226 and #227. Set bits D0 to D5 in memory address #226. Use of the MMI port ensures a one-to-one connection between the IV-S30J and the JW10. 7 6 5 4 3 2 1 0 #226 D7 Data D5 Stop D4 D3 Parity D2 D1 D0 Transmission speed (k bit/sec) 0 7 bits 0 1 bit 0 0 None 0 0 1 1 8 bits 1 2 bits 0 1 Odd 0 0 0 1 0 Even 1 1 1 1 1 Invalid Station No. #227 9.6 19.2 38.4 (001(8)) Set to (001(8)) In the initial state, addresses #226 and #227 are set to 000. When a JW-21CM or JW-10CM is used Set the switches (SW0 to SW4 and SW7) on the module as shown below. Switch SW0 Setting Set value Command mode 4 SW1 Station No. (upper bit) SW2 Station No. (lower bit) 01 to 37(8) SW3-1 Invalid OFF SW3-2 4-wire system ON SW3-3 Invalid OFF SW3-4 Odd parity (OFF), even parity (ON) OFF or ON SW4 Transmission speed (k bit/sec) 19.2 (0) or 9.6 (1) SW7 With a termination resistance OFF or ON 0 or 1 ON When a Z-331J/332J is used Set the switches (SW0 to SW4 and SW7) on the board as shown below. Switch SW0 18 Setting Set value Computer link 4 SW1 Station No. (upper bit) SW2 Station No. (lower bit) 01 to 37(8) SW3-1 Invalid OFF SW3-2 Only the 2-wire system can be used. OFF SW3-3 Invalid OFF SW3-4 Odd parity (OFF), even parity (ON) SW4 Transmission speed (k bit/sec) SW7 With a termination resistance 19.2 (0), 9.6 (1) OFF or ON 0 or 1 ON (2) Using memory To allow the memory to be used by the IV-S30J, enter a result write start address in the following range. Memory Range (address) Register 09000 to 99776 18-22 Computer Link (3) Connections When a JW-22CU or JW-70CUH/100CUH is used 1. Communication through the RS-232C port Communication connector on the IV-S30J (RS232C/RS422) Pin No. Connector shield 3 2 5 JW-22CU JW-70CUH/100CUH (Communication port) Signal name Pin No. Signal name FG SD RD SG 1 3 2 7 12 14 FG RD SD SG Short-circuit terminal 15 m or less RS-232C 2. Communication through the RS-422 port (4-wire system) JW-22CU JW-70CUH/100CUH (Communication port) Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Pin No. Signal name 4 7 8 9 TA TB RA RB FG 12 13 10 11 1 RD (+) RD (-) SD (+) SD (-) FG Connector shield Shielded, twisted-pair cable 1 km or less RS-422 When a JW-32CUH/33CUH or JW-32CUH1/33CUH1/33CUH2/33CUH3 is used 1. Communication through the RS-232C port JW-32CUH/33CUH JW-32CUH1/33CUH1 /33CUH2/33CUH3 (PG/COMM2 port) Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Pin No. Signal name Connector shield FG SD RD SG 1 4 2 7 FG RD SD SG 3 2 5 15 m or less RS-232C 2. Communication through the RS-422 port (4-wire system) JW-32CUH/33CUH JW-32CUH1/33CUH1 /33CUH2/33CUH3 PG/COMM1 port PG/COMM2 port Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Pin No. Signal name 4 7 8 9 TA TB RA RB FG 9 10 3 11 1 RD (+) RD (-) SD (+) SD (-) FG Connector shield Shielded, twisted-pair cable 1 km or less RS-422 18-23 18 Computer Link When a JW-1324K/1342K/1424K/1442K/1624K/1642K is used The IV-S30J can only be connected to the RS-422 port. When the communication port is used, provide a 2-wire RS-422 system. When the MMI port is used, provide a 4-wire RS-422 system. 1. When the communication port is used JW-1324K/1342K/1424K /1442K/1624K/1642K (Communication port) Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name 4 8 7 9 TA RA TB RB FG Connector shield Terminal name L1 L2 SHLD Shielded, twisted-pair cable 1 km or less RS-422 (2-wire system) 2. When the MMI port is used JW-1324K/1342K/1424K /1442K/1624K/1642K MMI port Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Pin No. Signal name 4 7 8 9 TA TB RA RB FG 2 7 3 8 4 5 RX RX TX TX PG COM GND Connector shield Shielded, twisted-pair cable 1 km or less RS-422 (4-wire system) When a Z-311J/312J is used 1. Communication through the RS-232C port Z-311J/312J (Communication port CN3) Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Pin No. Signal name Connector shield FG SD RD SG 1 3 2 7 6 8 FG RDc TDc GND 3 2 5 Short-circuit terminal 15m or less RS-232C 2. Communication through the RS-422 port (4-wire system) Z-311J/312J (Terminal block TC1) Communication connector on the IV-S30J (RS232C/RS422) 18 Pin No. Signal name 4 7 8 9 TA TB RA RB FG Connector shield Pin No. 3 4 1 2 5 Shielded, twisted-pair cable 1 km or less RS-422 18-24 Signal name RD /RD TD /TD FG Computer Link When a JW-21CM or JW-10CM is used - Communication through the RS-422 port (4-wire system) JW-21CM JW-10CM Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Signal name 4 7 8 9 TA TB RA RB FG L3 L4 L1 L2 SHIELD GND Connector shield Ground Shielded, twisted-pair cable 1 km or less RS-422 (4-wire system) When a Z-331J/332J is used - Communication through the RS-422 port (2-wire system) Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name 4 8 7 9 TA RA TB RB FG Connector shield Z-331J/332J (Host communication port T1) Terminal name L1 L2 S FG Shielded, twisted-pair cable 1 km or less RS-422 (2-wire system) 18 18-25 Computer Link [3] Connection with a Mitsubishi PC Applicable models A series computer link modules 1. AJ71C24-Sx (AnA or AnN) In the case of the AnA, a computer link can be created if a CPU from the AnA series is used and the link module version is S6 or later. 2. A1SJ71C24(A1S) When the A1SJ71C24-R2 is used, the station number is fixed at 00 because it does not have a station number switch. 3. A0J72C24S1(A0J2) (1) Module setting Example using an AJ71C24-Sx module Item Description Transmission control procedure mode (RS-232C) Format 1fi 1 Station No. 00 to 31 Transmission speed (kbit/sec) 19.2, 9.6 Parity None, odd, even Transmission code Data bit 7/8 bits (ASCII) Stop bit 1, 2 bits Checksum Executed Writing while running Possible Switch setting Ex.: To set as shown below: Mode: RS-232C, Station No.: 00, Transmission speed: 19.2 K bytes/sec. Parity: Even, Data bit: 7 bits, Stop bit: 2 bits - 3 rotary DIP switches STATION No. 10 A B C D 9 8 7 6 5 4 3 STATION No. 1 E F 0 1 2 A B C D 9 8 7 6 5 4 3 E F 0 1 2 - DIP switches 18 SW11 to 13 SW14 to 24 OFF ON 18-26 MODE A B C D 9 8 7 6 5 4 3 E F 0 1 2 Computer Link Example using an A1SJ71UC24-R4 module Switch setting Ex.: To set as below: Mode: RS-422, Transmission speed: 19.2 K bytes/sec. Parity: Even, Stop bit: 2 bits SW ON OFF 01 02 03 04 05 06 07 08 09 10 11 12 STATION No. 6 5 4 6 5 4 7 8 3 2 7 8 3 2 AB 9 8 7 65 9 0 10 1 9 0 1 1 CD E F 0 1 2 43 (2) Using memory To allow the memory to be used by the IV-S30J, use a result write start address within the following range. Memory Range (address) D (data register) 0 to 9999/0 to 999900 Note: To write data from the IV-S30J to a Mitsubishi PC, use the WW/QW write command. The range that can be written using the write command WW/QW is D0000 to D1023/D000000 to D008191, due to the limitation of Mitsubishi PCs. The write all address can be set within the range of limitation for Mitsubishi PCs. See page 16-22. 18 18-27 Computer Link (3) Connections Shown below are the connections with a calculator link module. Example of RS-232C connection Calculator link module Communication connector on the IV-S30J (RS232C/RS422) In case of 25 In case of 9 pins connector pins connector Shielded cable Signal name Pin No. Signal name Connector shield FG FG 1 2 RD 2 3 SD 3 SD 3 2 RD 4 7 RS 5 8 CS 20 4 DTR 6 6 DSR 7 5 SG 5 Pin No. SG Pin No. FG 15m or less RS-232C Note: Jumper the RS, CS, DR and CD lines. Do not jumper the SG. Remarks - For RS-232C communications, create the sequence program shown below in order to set "no CD terminal check" for the CD terminal check setting. For details, see the instruction manual for Mitsubishi’s calculator link module. Example of RS-422 communication Communication connector on the IV-S30J (RS232C/RS422) 18 Shielded, twisted-pair cable Calculator link module Pin No. Signal name Signal name Connector shield FG TA TB RA RB SG FG RDA RDB SDA SDB SG 4 7 8 9 5 1 km max. RS-422 (4-wire system) 18-28 Computer Link [4] Connection with an OMRON PC Applicable models Host link modules 1. C500-LK203 (C1000H) 2. C200-LK201 (C200H RS-232C) 3. C200-LK202 (C200H RS-422) 4. CV CPU link port (CV1000, CVM1) 5. CV500-LK201 (CV1000, CVM1) 6. CS1W-SCU21 Remarks - Start the OMRON PC in the monitor mode when turning ON the power. If the OMRON PC is started in any other mode, a computer link error will occur. The operation mode is specified using the following items for each support tool: The initial mode setting switch on the memory module, or the monitor mode rising bits of the system setting (FUN49) instruction. Memory module initial setting switch OFF The bit used to set the monitor mode in the system setting (FUN49) instruction Installed support tool 0 Support tools other than the programming console No support tool 1 ON *1 Program mode Monitor mode Operation mode Operation mode Monitor mode Operation mode Programming console setting mode *2 Programming console *1 Insert the ladder program step shown below at address 000000. AR1001 FUN49 #A302 000 000 00000 *2 When the programming console is used, set the PC to the "monitor mode" using the switch. For details, see the user’s manual for the OMRON PLC module. (1) Module setting Item Description Module No. 00 to 31* Transmission speed (k bit/sec) 19.2, 9.6 Command level 1 Parity Odd or even Dat a bit 7 (ASCII) Stop bit 2 Transmission code 1:1/1:N procedure 1:N procedure Synchronous change-over switch Internal synchronization CTS change-over switch 0 V (normally ON) 5 V supply switch OFF * Enter the unit number of the IV-S30J, as a component of CV500-LK201 system. When communication port 1 is used, the unit number is fixed at 00, and when communication port 2 is used, any number (00 to 31) can be used. 18-29 18 Computer Link (2) Using memory To allow the memory to be used by the IV-S30J, enter a result write start address within the following setting range. Memory Range (address) DM (data register) 0 to 9999 Note: The IV-S30J uses [DM area write] command of C mode command. Concerning the limitation of address settings, see OMRON's PC manual. (3) Connections Example of RS-232C communication C500-LK203 CV500-LK201 C200-LK201 CV500-LK201 (Communication port 1) (Communication port 2) CV CPU module Communication connector on the IV-S30J (RS232C/RS422) Shielded cable Pin No. Pin No. Signal name FG 1 Connector hood FG 2 RD 2 2 SD 3 SD 3 3 RD 4 4 RS 5 5 CS 7 9 SG Pin No. Signal name Connector shield 5 SG 15m or less RS-232C Example of RS-422 communication Communication connector on the IV-S30J (RS232C/RS422) Pin No. Signal name Connector shield FG 4 7 8 9 TA TB RA RB Shielded, twisted-pair cable Calculator link module Signal name FG RDB(SD+) RDA(SD-) SDB(RD+) SDA(RD-) RS CS 1 km max. RS-422 (4-line system) 18 18-30 Pin numbers vary with the module to be used Computer Link 18-7 Program examples An example of measurements using the IV-S30J and a Sharp PC (JW70H) (2-point search for positional deviation measurement) is explained below, using data flow, a flowchart and a timing chart. Input terminal IV-S30J POWER Output module Communication port Sharp’s PC (JW70H) IV-S30J main housing (plan view) VIDEO CAMERA1 CAMERA2 RS232C/RS422 REMOTE IV-S30J main housing (side view) Communication connector (RS232C/RS422) Camera 1 Camera 1 connector (1) Data flow Output relay Description 00040 Start output Write Data (H) register *1 09000 00 09001 09002 01 09003 09004 01 09005 00 09006 01 09007 00 09010 00 09011 00 09012 00 09013 00 09014 09015 09016 09017 09020 09021 09022 09023 09024 09025 40 06 E0 06 98 0D 90 06 00 00 IV-S30J 1 Output a start signal. 2 Write data into the register. Description Termination code (normal termination) Object type No. (1) Result output Y0 to Y15 (Only Y0 is OK.) Measurement 0 using camera 1: Positional deviation measurement Measurement function of measurement 0 using camera 2 (none) Measurement function of measurement 1 (none) Measurement function of measurement 2 (none) Measurement function of measurement3 (none) Measurement function of measurement4 (none) X Y X Y 3 Transmit completion response. Execution of measurement Sharp PC (JW70H) * In this example, the write start address has been set to 09000. 1st point (center coordinates) Output data from measurem2nd point ent 1 using (center camera coordinates) 1(block 1) Angular deviation Note 1: The PC must be write enabled. A Mitsubishi, OMRON, or Yokogawa PC will operate in the same manner, but use different PC register and relay addresses. Note 2: If the PC has not been connected to the object type input (parallel) on the IV-S30J, the object type No. is set to 0. To set different types, first enter the object type numbers (parallel) using the type input terminals on the IV-S30J. 18-31 18 Computer Link (2) Flow chart Power ON 15 second interval N Y Camera starts operation (00040 = ON) N Y Starting the time-out detection timer Time-out Y N Y * Transferring the result output (Y0 to Y15) from registers 09004 and 09005 to addresses ]0412 and ]0413 Turning ON relay 00010 Normal termination N Error occurs. Y Turning ON relay 00013 Outputting Y0 Error recovery (00041 = ON) Outputting Y1 N Y 18 18-32 N Computer Link (3) Program 07377 TMR 000 1 0050 00000 00040 00007 T000 00000 F-044 04100 00006 [ 00007 00007 04100 04101 F-008 OCT 377 TMR 001 0030 5 04107 Fc012 CMP 09000 04100 Fc012 CMP 09000 04100 04101 F-000w XFER 09004 10 11 ]0412 00010 04100 00040 8 9 377 07356 6 7 000 07357 07354 07357 3 4 09000 T001 00007 2 12 00010 00011 04120 00040 13 00011 00012 04121 00040 14 00012 00013 04101 00041 15 04107 00013 00006 04101 00041 16 04107 18 18-33 Computer Link Explanation of the program The numbers 1 to 16 below correspond to the same numbers on the preceding page. 1. Turn on the power, and wait for 5 sec. (07377 is kept ON for only 1 scan after the power is turned ON.) 2. The camera is started. (00040 enters a measurement trigger.) 3. The trigger input (00007) is self-latched when the operation start has begin (00000 = ON). 4. The termination code of the write register is cleared. 5. The time-out detection timer monitoring the computer link is started. 6. Time-out error 7. A check is made for normal termination. 8. Normal termination (09000 = 000(8)) 9. A check is made for errors. 10. Occurrence of an error (09000 = 001 to 376(8)) 11. The data in the result output relays Y0 to Y15 (16 points) on the IV-S30J is transferred from registers 09004 to 09005 to addresses ]0412 and ]0413. 12. A normal termination signal is output. 13. The judgment (OK/NG) of the result output relay Y0 is output. 14. The judgment (OK/NG) of the result output relay Y1 is output. 15. When a time-out or an error occurs, it is output. 16. When a time-out or an error occurs, it is reset. (4) Timing chart 1 scan time Operation start 00040 Start signal input 00007 Operation of the IV-S30J through a computer link Execution of measurement Data writing IV-S30J - JW70H Normal termination 04100 OK Y0, Y1 Error output 00013 18 18-34 Troubleshooting Chapter 19: Troubleshooting Item [1] shows problems which may occur when the IV-S30J measurement system is started. If any error (the termination code is not 00 (H)) occurs during image processing on the IV-S30J, take the steps described in item [2]. Perform the recommended daily inspection following the maintenance procedures listed in item [3]. [1] Symptoms and checks The following symptoms may not be malfunctions. Before asking us to repair your equipment, check the recommended parts. Phenomenon The power is not turned ON. (The power lamp on the IVS30J does not light.) Checks 1. Make sure that the power cord has been connected properly to the DC power terminal block on the IV-S30J. 2. Make sure that the proper supply voltage is available and has not dropped. After the power is first turned ON, no images or characters are displayed on the monitor. 1. Make sure that the monitor cable has been connected correctly. After the power is first turned ON, no characters are displayed on the monitor. 1. Make sure that the message display and pattern display modes are not set to the non-display mode. Make sure that the title field is not filled with spaces. 2. Make sure that the offset and gain are adjusted properly. 1. The operation screen is always displayed in the freeze mode. Change the mode to the through mode on the lower menu section.* 2. Make sure that the lens iris is not closed. After the power is first turned ON, no image is displayed on 3. Make sure that the shutter speed has not been increased. the monitor, or the image on 4. Check the lens for contamination. the display is abnormal. 5. Check the CCD light receiving surface for contamination. 6. Make sure that the lens focus has been adjusted properly. 7. Make sure that the lighting equipment is providing adequate illumination. The background is completely white (or black) even after the shutter speed is changed. 1. Make sure that the monitor screen is not too bright or dark. (Changes in brightness cannot be sensed.) - Adjust the lens aperture or the illumination of the light source. Operations cannot be carried 1. Make sure that the remote key pad cable has been correctly out using the remote key pad. connected to the IV-S30J. 1. Make sure that the communication cable has been correctly connected. 2. Make sure that each terminal of the communication cable is properly connected. General purpose serial communications cannot be performed. 3. Make sure that the communication conditions (standard, speed, and parity check) in the personal computer conform to those of the IV-S30J. 4. Check the cable for disconnection and the connectors for contact failure. 5. Make sure that you waited about 15 seconds after you turned ON the power. 6. - Continued on the following page - Make sure that the operation screen is displayed on the screen. * You can change to the through mode screen using the "TYPE RUN COND" screen. 19-1 19 Troubleshooting Phenomenon Checks 1. Make sure that the communication cable has been correctly connected. 2. Make sure that the communication cable route does not run near electrically noisy devices. 3. Make sure that each terminal of the camera cables is properly connected. Communications through a computer link cannot be established. 4. Make sure that the communication conditions (standard, speed, and parity check) in the personal computer conform to those of the IV-S30J. 5. Make sure that a compatible model, the station No. and result write start address have been set correctly. 6. Make sure that you waited about 15 seconds after you turned ON the power. 7. Make sure that the operation screen is displayed on the screen. 1. Make sure that measurement can be started by using the key pad to send a trigger signal. 2. Make sure that the camera cables have been correctly connected. Measurement does not start even when a start trigger is given. 3. Make sure that the device to send a trigger signal have been properly connected to the input terminals on the IV-S30J main housing. 4. Make sure that you waited about 15 seconds after you turned ON the power. 5. Make sure that the operation screen is displayed on the screen. 1. Make sure that the camera cables have been correctly connected. Measurement results are not output. 2. Make sure that the devices have been properly connected to the input terminals on the IV-S30J main housing. 3. Make sure that you waited about 15 seconds after you turned ON the power. 4. Make sure that the operation screen is displayed on the screen. 1. Make sure that the lighting equipment does not flicker. 2. Make sure that the lens has not fogged up. 3. Check the lens for contamination. Measurement results are unstable, or NG results occur frequently. 4. Make sure that the focus ring has not turned. (Make sure that the camera lock screw has been secured.) 5. Check whether the camera position has changed. 6. Make sure that the illuminance monitor window has been set to the intermediate illumination. 7. Make sure that the criteria have been set properly. 19 19-2 Troubleshooting [2] Causes of termination codes (when an error occurs) and remedies When an abnormal termination code (other than 00(H)) is received, take the following measures. Termination code (H) Cause Remedy Processing errors Hardware errors Computer link errors Communication errors 01 The specified processing code does not exist. The wrong number of data items was specified 02 in the text. 03 The text data is outside the acceptable range. Check the processing code. Check the number of data items in the text. Check the text setting range. - Check the check sums. - Check the communication environment for 04 The results of the check sums are not identical. problems such as electric noise, which may come in on the communication line. The header code (:) was not attached to the Check whether the header code was attached 05 head of the communication command. to the head of the communication command. - Check the communication environment for 06 An asynchronous error has occurred. problems such as electric noise, which may come in on the communication line. The communication command contains an Check the number of data items in the 07 improper number of data items. communication command. The error code is contained in the evaluation An error response has been returned from the result area, and the error code is displayed on 08 programmable controller. (Communications are the monitor. Take the proper measures according to the error code (different models performed normally.) use different codes). - Make sure the power supply of the programmable controller and check the A time-out has occurred during communication connections of the cables. 09 through the computer link. - Check the communication conditions and computer link settings. Start address error (larger than the end 0A Check the address. address) 10 SDRAM error Replace the IV-S30J itself. 11 Flash memory error No camera connected to the camera 1 12 connector. Connect a camera. No camera connected to the camera 2 13 connector. 14 VRAM error has occurred. 18 Flash ROM delete error Replace the IV-S30J itself. 19 Flash ROM write error 1A Flash ROM verify error The measurement conditions for the specified 20 object type have not been set. The setting area is larger than the screen, due 21 to positional correction. Correction after binary conversion: The 22 illuminance monitor function (system) has not been set. Check the abnormal setting. Correction after binary conversion: The 23 threshold range has exceeded the specified range. 24 No edge detection 25 A reference image has not been registered 26 Number of labels exceeds the specified amount 27 No setting for number o fimage lines 28 "0" subtraction error (numeric calculation 19-3 19 Troubleshooting Termination code (H) 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 Processing errors 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 19 47 48 49 Cause Remedy Overflow (numerical calculation) No numerical calculation setting No label (camera adjustment) The search area is smaller than the reference image. Equivalent label exceeded Edge center point exceeded (lead inspection) Unable to make a numerical calculation (point measurement) Coordinates range exceeded (distance/angle measurement) The lines are parallel (at the same angle) (cross point of two straight lines) Divide by "0" (center of circle, vertically bisector, distance between point and line) The two points are the same (two points on a straight line) The CCD trigger has not been registered. The CCD trigger is not being sampled by a serial interface signal. The SIO trigger has not been set. A start point has not been set. (Distance/angle measurement) The auxiliary point conditions are not thoroughly specified. (Distance/angle measurement) Wrong conditions specified for a line or a point (distance / angle measurement) Check the abnormal setting. The distance conditions are not thoroughly specified. (Distance/angle measurement) The angle conditions are not thoroughly specified. (Distance/angle measurement) Image reading/writing is impossible. The range of calculations using two images has exceeded the specified range. The reference image cannot be registered from parallel input X6. Exceeded the number of reference images registered Image not captured (CCD trigger) The reference image rotation condition does not match. The reference image edge is not registered yet. CCD trigger disabled (through image). Not a manual measurement Binary mask conditions not set yet No position correction conditions - You assigned a non-existing register number or model number to the position correction conditions. - An angle has not been assigned for rotation correction (only X and Y correction values have been assigned.) - The rotation angle detection is set to "NO" for a 1point search, or this register number is used for the angular correction in the rotation correction. Number of objects to measure has not been set. (BGA/CSP) In a multiple detection, the number of the edges exceeded the limit. Unable to make a positional correction since there is no edge. 19-4 Troubleshooting Communication errors Processing errors Termination code Cause Remedy (H) 4A No output data Object type conditions not set yet (numerical 4B calculation) Number of objects detected or number of labels is too 4C small (numerical calculation) 4D Image capture mode does not match. Cannot make two corrections in one step (same register 4E number) 4F Serial trigger disabled 50 The object type cannot be changed. 51 No corresponding block Check the abnormal setting 52 The output camera cannot be changed. 54 Image area is not appropriate 55 NG image not registered 56 Font not registered 57 Character strings not registered 58 Menu tables not registered 59 Area not registered (user menu) 5A Title not registered (user menu) 5B Initialization error (user menu) 5C Number of data exceed the limit (any setting) 19 19-5 Troubleshooting [3] Maintenance Check the equipment for the following items. (1) Operation check - Change the measurement number on the MAIN OPS MENU, and change the monitor screen to the freeze or through mode. Then, make sure that the image is normally displayed. (2) Checks - Check the illumination from the lighting equipment. - Make sure that the monitor screen is in focus and that the aperture setting is proper. - Check the cable insulation for breaks, and make sure that the cable connectors are not loose. - Carefully wipe dust off the lens with a soft, dry cloth. - If dust has landed on the CCD surfaces of this camera, wipe them with a clean cotton swab soaked in isopropyl alcohol. Move the cotton swab lightly and slowly in one direction. Change cotton swabs frequently. Do not clean more than one CCD surface with one cotton swab. Procedure for checking after cleaning 1 Mount the lens (mirror tube) on this camera. 2 Close the lens iris all the way. 3 Point the lens toward the light source, and check the monitor screen to make sure that there are no spots on the screen. (If the iris is open even a little, then even if spots exist, they will not be visible on the monitor screen. Fine adjustments to the iris are required.) CCD section A Front view (view A) of the CCD When an IV-S30C1 is used (3) When measurement errors and/or evaluation errors occur frequently, check: - The illumination of the lighting equipment and lamps. - The inspection object is within the window. - The cables for looseness or disconnection. - The lens for dirt and dust. - The lens focus and aperture have not changed. - The power is being supplied normally, and - The parameters you set have been stored. (If the parameters have changed, reset the parameters from the beginning.) 19 19-6 Alphabetical Index [A] Absolute value of the differences ..................................................................................................... 3-20 ALL-INIT (total initialization) ............................................................................................................. 2-22 AND (evaluation) .............................................................................................................................. 10-5 Angle detection (DTECT ANGL) ....................................................................................................... 4-12 Angular correction (standard/high precision) .................................................................................... 3-30 Area measurement by binary conversion ........................................................................................... 8-1 Artifact processing ............................................................................................................................ 3-15 Automatic setting (threshold value) .................................................................................................. 3-11 AUTO-REG (condition setting) ......................................................................................................... 3-15 Average light level method ............................................................................................................. 16-18 [B] Binary area conditions ...................................................................................................................... 3-27 Binary image display .......................................................................................................................... 2-7 Binary image mask ........................................................................................................................... 3-25 Binary method ................................................................................................................................ 16-18 Binary processing (fixed/threshold value correction) ........................................................................ 3-12 BLK WRT COMMAND (block write command) .............................................................................. 16-22 [C] Calibrating the IV-S30J ................................................................................................................... 16-28 Camera settings ............................................................................................................................... 2-17 CAMERA TYPE ................................................................................................................................ 2-17 Causes of termination codes (when an error occurs) and remedies ................................................ 19-3 CCD trigger ..................................................................................................................................... 16-18 Change camera display mode ............................................................................................................ 2-3 Change the Japanese or English display mode ............................................................................... 1-15 CHG-C1 (change camera 1) ............................................................................................................. 1-12 CHG-C2 (change camera 2) ............................................................................................................. 1-12 CHG-MEA (change measurement) .................................................................................................. 1-12 CHG-TYPE (change object type) ..................................................................................................... 1-12 CHNG-REG (change registration) .................................................................................................... 1-12 Circle window ..................................................................................................................................... 3-5 Common operations for each menu ................................................................................................. 1-14 Communication (general purpose serial interface) ........................................................................... 17-1 Communication format ..................................................................................................................... 17-5 Comparative calculations between images ...................................................................................... 3-20 Compatible models ........................................................................................................................... 18-1 Computer link output ...................................................................................................................... 16-23 Computer link setting ...................................................................................................................... 16-22 Computer link ................................................................................................................................... 18-1 Configuration of set wizard ................................................................................................................. 1-6 Configuration of the setting conditions ............................................................................................... 1-5 Connection with a Mitsubishi PC .................................................................................................... 18-26 Connection with a Sharp PC .......................................................................................................... 18-20 I-1 I Connection with an OMRON PC .................................................................................................... 18-29 Contents of the measurement result block (for each measurement function) .................................. 18-6 CONTR. PIXL (pixel contraction) ........................................................................................................ 4-7 Contrast magnification rate ............................................................................................................... 3-22 Contrast search (reference image) ................................................................................................... 3-16 Copying ............................................................................................................................................ 3-37 Crosshair cursor display .......................................................................................................... 2-12, 2-13 [D] Data flow .................................................................................................................................. 17-3, 18-2 Data in specified blocks .................................................................................................................. 16-23 Data length ..................................................................................................................................... 18-19 Degree of match inspection ................................................................................................................ 5-1 Description of the operation screen .................................................................................................. 1-10 Detection precision ............................................................................................................................. 3-9 DISPLAY MODE ............................................................................................................................... 1-15 Distance and angle measurement .................................................................................................... 13-1 [E] Edge detection condition .................................................................................................................... 4-7 Edge detection .................................................................................................................................. 3-14 Edge emphasis ................................................................................................................................. 3-23 Edge extraction ................................................................................................................................. 3-23 Editing operation screen ................................................................................................................... 2-21 Eliminating binary noise ............................................................................................... 3-13, 7-6, 8-6, 9-7 Elliptical window ................................................................................................................................. 3-7 Evaluation change display ................................................................................................................ 2-10 Evaluation conditions ........................................................................................................................ 3-17 Evaluation condition measurement - Area measurement by binary conversion ......................................................................................... 7-6 Degree of match inspection .............................................................................................................. 5-8 Lead inspection ................................................................................................................................ 6-4 Multiple degree of match inspection ............................................................................................... 12-7 Multiple positional measurement .................................................................................................... 11-9 Object counting by binary conversion ............................................................................................... 8-7 Object identification (labeling) by binary conversion ........................................................................ 9-8 Point measurements ....................................................................................................................... 10-7 - Positional deviation measurement ................................................................................................... 4-9 Examples of a final output conditions ladder circuit ........................................................................ 15-17 Existence inspection by point measurement .................................................................................... 10-1 Expansion/contraction method of elimination noise in binary images .............................................. 3-13 Extension functions .......................................................................................................................... 2-12 External synchronization .................................................................................................................. 2-19 I [F] Final numerical calculations ............................................................................................................. 14-9 Final output conditions .................................................................................................................... 15-11 Flow chart ....................................................................................................................................... 18-32 Full .................................................................................................................................................... 2-18 I-2 Full+half ............................................................................................................................................ 2-18 [G] Gain/offset adjustment ...................................................................................................................... 2-15 General purpose serial output ........................................................................................................ 16-21 Gray level change ............................................................................................................................. 3-22 Gray scale processing ........................................................................................................................ 3-9 Gray scale search - Degree of match inspection .............................................................................................................. 5-3 Multiple positional measurements .................................................................................................. 11-3 - Positional deviation measurements .................................................................................................. 4-4 [H] Half ................................................................................................................................................... 2-18 Halt on NG measurement ................................................................................................................. 3-38 Histogram widening .......................................................................................................................... 3-22 Horizontal edge ................................................................................................................................ 3-23 Horizontal line ..................................................................................................................................... 3-6 How to display NG images ............................................................................................................... 1-19 How to enter the setting screen .......................................................................................................... 3-1 [I] Illuminance (light level) monitor ........................................................................................................ 3-34 Image adjustment ............................................................................................................................. 3-24 Image capture ..................................................................................................................................... 2-4 Image pre-processing ....................................................................................................................... 3-19 Image settings .................................................................................................................................... 3-9 Individual numerical calculations for each measuring program ........................................................ 14-1 Initialization ..................................................................................................................... 2-22, 17-2, 17-4 Input & output / system settings ....................................................................................................... 3-34 Interface .......................................................................................................................................... 18-19 Internal synchronization .................................................................................................................... 2-19 [L] Ladder circuit program creation ........................................................................................................ 15-3 Lead Inspection .................................................................................................................................. 6-1 List of processing functions .............................................................................................................. 17-1 LOCK (menu display) ....................................................................................................................... 1-15 Lock the menu display ...................................................................................................................... 1-15 [M] MAIN OPS MENU ............................................................................................................................ 1-15 Maintenance ..................................................................................................................................... 19-6 MANL-MEAS (manual measurement) ..................................................................................... 1-12, 2-13 Manually setting the object type ....................................................................................................... 2-14 Mask setting ................................................................................................................ 3-26, 7-6, 8-6, 9-7 Measurement conditions - Area measurement by binary conversion ......................................................................................... 7-2 Degree of match inspection .............................................................................................................. 5-2 I-3 I Distance and angle measurement .................................................................................................. 11-2 Lead inspection ................................................................................................................................ 6-2 Multiple degree of match inspection ............................................................................................... 12-2 Multiple position measurement ....................................................................................................... 11-2 Object counting by binary conversion ............................................................................................... 8-2 Object identification (labeling) by binary conversion ........................................................................ 9-2 Point measurements ....................................................................................................................... 10-2 - Positional deviation measurement ................................................................................................... 4-2 MEA-CND (measurement conditions) ................................................................................................ 1-5 Measurement data blocks ................................................................................................................ 18-5 Measurement processing cycle ........................................................................................................ 15-2 Measurement start input and result output settings .......................................................................... 16-5 Measurement start input interface ........................................................................................... 16-1, 16-4 Measurement start input ................................................................................................................... 16-4 Menu bar ................................................................................................................................. 1-11, 1-12 Menu configuration ............................................................................................................................. 1-4 Message display ................................................................................................................................. 2-5 Method for selecting the menu configuration ...................................................................................... 1-2 Mid emphasis ................................................................................................................................... 3-22 Monitor output ..................................................................................................................................... 2-2 Multiple degree of match inspection ................................................................................................. 12-1 Multiple positional measurements .................................................................................................... 11-1 [N] NEXT-NG (display next NG image) .................................................................................................. 1-22 NG image display screen ................................................................................................................. 1-19 NG image display .................................................................................................................... 1-19 to 23 Number of blocks .............................................................................................................................. 18-5 Numeric calculation - Area measurement by binary conversion ................................................................................ 7-8, 14-6 Degree of match inspection ..................................................................................................... 5-9, 14-5 Distance and angle measurement ......................................................................................... 13-8, 14-8 Lead inspection ....................................................................................................................... 6-8, 14-5 Multiple degree of match inspection ...................................................................................... 12-8, 14-7 Multiple position measurement ............................................................................................ 11-10, 14-7 Object counting by binary conversion ...................................................................................... 8-8, 14-6 Object identification (labeling) by binary conversion ............................................................... 9-9, 14-6 Point measurements .............................................................................................................. 10-8, 14-7 - Positional deviation measurement ........................................................................................ 4-10, 14-2 Numerical calculation conditions ...................................................................................................... 14-1 Numerical calculations (setting examples) ....................................................................................... 14-2 Numerical calculations ...................................................................................................................... 14-1 I [O] Object counting by binary conversion ................................................................................................. 8-1 Object identification and numbering function (labeling) .................................................................... 3-11 Object Identification by binary conversion .......................................................................................... 9-1 Operation cycle ................................................................................................................................. 15-1 Operation flow after the measurement start input is turned ON. ...................................................... 1-26 I-4 Operation flow .................................................................................................................................. 1-24 Operation main display ....................................................................................................................... 2-9 Operation screen .............................................................................................................................. 1-10 Operation set menu ............................................................................................................................ 2-1 Operations menu lock ....................................................................................................................... 1-15 Operations to return to the operation screen .................................................................................... 1-14 Operation settings - Area measurement by binary conversion ......................................................................................... 7-2 Degree of match inspection .............................................................................................................. 5-2 Distance and angle measurement .................................................................................................. 13-2 Lead inspection ................................................................................................................................ 6-2 Multiple degree of match inspection ............................................................................................... 12-2 Multiple positional measurements .................................................................................................. 11-2 Object counting by binary conversion ............................................................................................... 8-2 Object identification (labeling) by binary conversion ........................................................................ 9-2 Point measurements ....................................................................................................................... 10-2 - Positional deviation measurement ................................................................................................... 4-2 Option ............................................................................................................................................... 2-22 OR (evaluation) ................................................................................................................................ 10-5 Output conditions - Area measurement by binary conversion ................................................................................ 7-8, 15-9 Degree of match inspection ..................................................................................................... 5-9, 15-9 Distance and angle measurement ....................................................................................... 13-8, 15-10 Lead inspection ....................................................................................................................... 6-8, 15-9 Multiple degree of match inspection .................................................................................... 12-8, 15-10 Multiple positional measurements ..................................................................................... 11-10, 15-10 Object counting by binary conversion .................................................................................... 8-8, 15-10 Object identification (labeling) by binary conversion ............................................................. 9-9, 15-10 Point measurements ............................................................................................................ 10-8, 15-10 - Positional deviation measurement ........................................................................................ 4-10, 15-4 Output block assignment ................................................................................................................ 16-23 Output code ......................................................................................................................... 17-16, 18-17 Output conditions .............................................................................................................................. 15-3 Output monitor .................................................................................................................................... 2-1 [P] Parallel input X5 ............................................................................................................................... 16-2 Parallel input X6 ............................................................................................................................... 16-3 Parity check .................................................................................................................................... 16-21 Pattern display .................................................................................................................................... 2-6 Pattern settings ................................................................................................................................... 3-4 PC Function ...................................................................................................................................... 15-1 PC monitor screen ................................................................................................................. 2-11, 15-18 PC scan cycle ................................................................................................................................... 15-2 Pixel contraction ................................................................................................................................. 3-9 Point condition .................................................................................................................................. 10-4 Point measurement .......................................................................................................................... 10-1 Polygonal window ............................................................................................................................... 3-8 Position correction ............................................................................................................................ 3-30 I-5 I Positional deviation measurement ...................................................................................................... 4-1 Power ON and main loop processing ............................................................................................... 1-24 Power ON setting menu ................................................................................................................... 1-15 Pre-processing ................................................................................................................................. 3-19 Processing functions ........................................................................................................................ 17-7 Program examples (shape and positional deviation inspection) .................................................... 15-16 Program examples ......................................................................................................................... 18-31 [R] RAM initialization .............................................................................................................................. 2-22 Reading result ......................................................................................................................... 17-1, 17-9 READY'ON (I/O conditions) .............................................................................................................. 16-3 Rectangular window ........................................................................................................................... 3-4 RE-EXAM-NG (re-examine NG) ....................................................................................................... 1-22 Reference image ................................................................................................................................ 4-5 Register coordinate position (window group move) .......................................................................... 3-39 Register a reference image ................................................................................................................ 4-6 Register setting ................................................................................................................................. 18-3 Remote keypad (IV-S30RK1) ........................................................................................................... 1-16 Remote keypad specifications .......................................................................................................... 1-16 Reset ................................................................................................................................................ 17-2 RESET (condition settings) .............................................................................................................. 3-15 Result output .................................................................................................................................... 16-5 Reference image (masking) ............................................................................................................. 3-17 I [S] SAVE ................................................................................................................................................ 1-12 Saving data ....................................................................................................................................... 1-14 Select "ANY" for the serial output ................................................................................................... 16-26 Select "YES" or "NO" for output data.............................................................................................. 16-27 SELECT CAMERA ........................................................................................................................... 2-17 Select output ..................................................................................................................................... 14-3 Self-diagnosis ................................................................................................................................... 2-22 Serial output ........................................................................................................................ 16-23, 16-26 Set serial block ............................................................................................................................... 16-25 Set wizard ........................................................................................................................................... 1-2 Setting (operating) procedure ......................................................................................................... 16-24 Setting and operating outline .............................................................................................................. 1-1 Setting and operating procedures ...................................................................................................... 1-1 Setting any data output ................................................................................................................... 16-26 Setting distance and angle condition ................................................................................................ 13-2 Setting examples ............................................................................................................................ 14-11 Setting for serial communications ................................................................................................... 16-21 Setting items for the IV-S30J .......................................................................................................... 18-19 Setting measurement conditions ........................................................................................................ 3-1 Setting numerical data of any output measuring ............................................................................ 17-16 Setting reference image area ...................................................................................................... 4-4 to 5 Setting the conditions for each object type ......................................................................................... 3-1 Setting the data output ................................................................................................................... 16-26 I-6 Setting the input/output conditions ................................................................................................... 16-1 Setting the measurement programs ................................................................................................. 1-13 Setting the operating and system conditions ...................................................................................... 2-1 Setting the operating conditions ......................................................................................................... 2-1 Setting the shutter speed .................................................................................................................. 3-36 Setting the system conditions ........................................................................................................... 2-14 Setting window boundaries ............................................................................................................... 3-11 Shading correction ............................................................................................................................ 3-24 Shutter speed ................................................................................................................................... 3-37 Smoothing (median, average) .......................................................................................................... 3-23 Space filter ........................................................................................................................................ 3-23 Specifications for any output data .................................................................................................. 18-16 Station No. ...................................................................................................................................... 16-22 STROBE OUT (strobe output) .......................................................................................................... 16-3 Subtraction ....................................................................................................................................... 3-24 Symptoms and checks ..................................................................................................................... 19-1 SYS-CND (system conditions) ........................................................................................................... 1-5 [T] Table of controller functions ............................................................................................................. 1-29 Termination code .............................................................................................................................. 19-3 Threshold value automatic setting (edge detection) ......................................................................... 3-15 Threshold value automatic setting (gray scale search) .................................................................... 3-10 Threshold value correction ............................................................................................................... 3-12 Threshold value setting .................................................................................................................... 3-10 Through display ................................................................................................................................ 2-11 Title registration ................................................................................................................................ 3-33 Troubleshooting ................................................................................................................................ 19-1 [V] Variation difference ........................................................................................................................... 3-12 Variation rate .................................................................................................................................... 3-12 Vertical edge ..................................................................................................................................... 3-23 Vertical line ......................................................................................................................................... 3-6 [W] Window group move ......................................................................................................................... 3-39 Window shape selection and settings ................................................................................................ 3-4 Write address ................................................................................................................................. 16-22 [X] XY correction .................................................................................................................................... 3-30 [γ] γ (positive/negative) .......................................................................................................................... 3-22 [θ] θ angle correction image display ........................................................................................................ 2-8 I-7 I