background image

WWW.NNC.IR

Vision Sensor 

 

FH/FZ5 Series 

Vision System 
 
 

 
 
 

User’s Manual 

Z340-E1-07

FH-1

@@@

 

FH-3

@@@ 

 

FZ5-L35

FZ5-6

@@ 

FZ5-11

@@ 

 

Summary of Contents for fh-1 series

Page 1: ...WWW NNC IR Vision Sensor FH FZ5 Series Vision System User s Manual Z340 E1 07 FH 1 FH 3 FZ5 L35 FZ5 6 FZ5 11...

Page 2: ...Please keep this manual in a safe place so that it can be referred to whenever necessary About copyright and trademarks IJG Code is copyright C 1991 2011 Thomas G Lane Guido Vollbeding This software i...

Page 3: ...and communications Z341 Vision System FH FZ5 Series Processing Item Function Reference Manual Describes the functions settings and operations of the processing items that you can use with the FH FH5 s...

Page 4: ...inspection content changes Normally you can set up to 128 scenes If you need more than 128 scenes you can separate them into different groups or use the Conversion Scene Group Data Tool to create a sc...

Page 5: ...allows complete parallel processing of measurements and logging Traditionally logging was not possible while processing measurements Either measurements or logging had to be given priority and the ot...

Page 6: ...ence position The point that is always the reference If the location of the registered model is different from the reference position the setting should be changed in Ref setting Model The image patte...

Page 7: ...computation For instance Negative number inverting all bits of a positive number and then adding 1 to the result The first digit is used to judge whether the number is positive or negative When 0 Posi...

Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...

Page 9: ...System Configuration 38 Basic Configuration Models 39 Functional Comparison between the FH series and FZ5 series Controllers 42 Saving Settings before Turning OFF the Power and Restarting 43 Restartin...

Page 10: ...lements Layout Modification 78 Setting the Behavior of Output Signals for Each Layout Layout Settings 90 Changing Layout Numbers in the Main Window 90 Troubleshooting 91 Arranging the Window Display 9...

Page 11: ...Layout Restrictions 152 Setting User Group Operation Restrictions 153 Saving Loading Deleting the Security Settings 154 Changing between User Accounts 157 Logging in 157 Logging Out 157 Remotely Opera...

Page 12: ...ger Delay Inter camera setting 264 Setting the SHTOUT Signal Output Signal Settings 265 Setting the Conditions That Are Related to Operation during Measurement 267 Setting the Operation Mode 268 Guide...

Page 13: ...nterface 833 Serial Interface RS 232C 422 Connection 834 Camera with Lighting Controller 834 Measurement Mechanism 835 Color Processing Mechanism 835 Search Processing Mechanism 836 Edge Detection Mea...

Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 15: ...f the non complying Product ii repair the non complying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be...

Page 16: ...SYSTEM Programmable Products Omron Companies shall not be responsible for the user s programming of a programmable Product or any consequence thereof Disclaimers Performance Data Data presented in Om...

Page 17: ...tentially hazardous situation which if not avoided will result in minor or moderate injury or may result in serious injury or death Additionally there may be significant property damage Indicates a po...

Page 18: ...apply pressure that would deform heat to 100 C or higher or incinerate the Controller Since camera that can be connected with this product emits a visible light that may have an adverse effect on the...

Page 19: ...to use a base to install the camera connected with the FH Sensor Controller Since the exclosure of the camera main body made of metals is short circuited with the internal circuit the internal circui...

Page 20: ...not install the product immediately above significant heat sources such as heaters transformers or large capacity resistors Do not let the ambient temperature exceed 50 C 122 F Provide a forced air fa...

Page 21: ...an indefinite signal may be output from the high order interface To avoid this problem clear the receiving buffer of your device at initial operations Fail Safe Measures If you wish to operate a stage...

Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 23: ...n describes the basic flow and preparations that are necessary to start operation Overview 22 Flow of Application 25 Windows 27 Checking the System Configuration 38 Saving Settings before Turning OFF...

Page 24: ...ng to execute based on the inspection results or input conditions of the vision inspection You can use macro processing to execute pre packaged processing items and functions in the FH FZ5 to create o...

Page 25: ...ng on the inspections This is called a scene and you can set up to 128 scenes Reference What Is a Scene p 48 You can also combine more than one scene into a scene group Management of scenes by scene g...

Page 26: ...ene groups for every line from 0 to 7 You can connect up to eight Cameras to the FH four for the FZ5 and selectively control each Camera Reference Multi line Random trigger Mode p 273 Camera You can c...

Page 27: ...rence Preparing the Controller and Cameras p 70 Select Tool System settings and then under Startup setting set the settings for Basic Communication and Operation mode Reference Changing the System Env...

Page 28: ...tion Reference Manual Cat No Z341 Click the Data save button Reference Saving Settings before Turning OFF the Power and Restarting p 43 Reference Loading Settings Data from the Controller RAM Disk or...

Page 29: ...Run Window Default p 69 Layout 2 to layout 8 Layouts 2 to 8 are for user defined purposes and are created as they are needed Reference Arranging the Window Display p 92 For example if more than one li...

Page 30: ...ystem settings Startup setting Basic tab Startup layout Default Layout 0 both local and remote Layout switching Layout switching Layout 0 default adjustment window Layout 1 default run window Edit Flo...

Page 31: ...stable switch to the Main Window layout 1 and perform measurements Names of the Parts of the Main Window Layout 0 Adjustment Window Default 1 Judgement Pane Overall Judgement Result The overall judgme...

Page 32: ...asurement Pane Camera image meas This button performs a test measurement on the Camera image Image file meas This button re measures saved images Output Select this option to output the measurement re...

Page 33: ...d Alignment button This allows you to display more than one pane side by side Reference Arranging Window Elements Layout Modification p 78 6 Detail Result Pane This pane displays the results of test m...

Page 34: ...played in a list You can create a flow for a scene by adding processing items to the unit list 2 Property Setting Buttons The Properties Dialog Box is displayed and allows you to make detailed setting...

Page 35: ...you to select an item to add to the flow The items are displayed in tree format that is organized by type Click the button for each item to display the lower level items Click the button for each ite...

Page 36: ...ent flow 1 Item Tab Area The parameters for the processing unit that is currently being set are displayed Settings are performed starting with the item on the left 2 Detail Area This area is used to s...

Page 37: ...ecution of measurement processing according to the contents and sequence that is set in the measurement flow Names of the Parts of the Main Window Layout 1 Run Window Default The functions of each dis...

Page 38: ...ion p 78 Clear measurement Clears the measurement data Reference Clearing Measurement Results p 122 Clear logging image Clears the images that are logged in the Controller Reference Clearing Saved Ima...

Page 39: ...ered image Manager Used to register the most recent input image a logged image that is saved in the Controller or an image file and load it as a measurement image Reference Using the Registered Image...

Page 40: ...and switch between Cameras during the measurement flow Communications protocol Communications cable Connector on the FH Parallel Parallel I O cable I O connector Ethernet cable Ethernet connector PLC...

Page 41: ...SM02 FH SC04 SM04 FZ SC5M2 FZ S5M2 FH SC12 SM12 Intelligent compact camera FZ SQ010F FZ SQ050F FZ SQ100F FZ SQ100N Intelligent camera FZ SLC15 FZ SLC100 Automatic focus camera FZ SZC15 FZ SZC100 The C...

Page 42: ...a FZ SLC15 FZ SLC100 Automatic focus camera FZ SZC15 FZ SZC100 Camera 2ch type FZ5 L350 FZ5 L355 Camera 4ch type FZ5 L350 10 FZ5 L355 10 Sensor Controller Detects workpieces as images Camera Power Sup...

Page 43: ...le camera cable FZ VSL2 15m min bending radius 93mm Standalone camera FZ SC FZ S FZ SC2M FZ S2M FZ SFC FZ SF FZ SPC FZ SP FZ SHC FZ SH FZ SC5M2 FZ S5M2 Intelligent compact camera FZ SQ010F FZ SQ050F F...

Page 44: ...re than 129 scenes 4 Nine languages are selectable in the Language setting dialog box under System Settings however only Japanese English Simplified Chinese and Traditional Chinese can be used If a la...

Page 45: ...d 2 Click OK The Controller is restarted The settings data that was saved in flash memory is enabled Data That Is Saved Scene data and system data are saved in the Controller Logged images and data th...

Page 46: ...n turn OFF the LCD without turning OFF the Controller 1 Click the LCD off button that is located on the Measurement Manager Bar in the lower right corner of the window A confirmation message is displa...

Page 47: ...ler System initialization You can restore the Controller to the default settings Before you initialize the Controller back up any required data such as scene data and system data Reference Saving and...

Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 49: ...processing items and is called a scene This section explains how to create and edit scenes What Is a Scene 48 What Is a Scene Group 51 Creating a Scene 52 Editing Processing Units in Scenes 53 Display...

Page 50: ...ng the scene whenever the measurement object or measurement objective has changed Reference Changing the Scene or Scene Group p 60 Normally you can set up to 128 scenes If you require more than 128 sc...

Page 51: ...to the flow The number at the top of the processing unit is called the unit number When the measurement trigger is input processing is executed in the order of the processing unit numbers Example Norm...

Page 52: ...position compensation for measurement object 1 Check for defects in measure ment object 1 Return the image that was moved with the Position Compensation processing item to its original position Perfor...

Page 53: ...named USBDisk for it to be used as the destination for scene groups 1 to 31 The names USBDisk2 to USBDisk4 cannot be used for saving When other USB memory devices are already inserted for the USB disk...

Page 54: ...The selected processing item is added at the bottom of the unit list flow 5 Add another processing unit if necessary Repeat the steps after 3 6 Either click the icon of the processing unit to be set o...

Page 55: ...at the very top or bottom of the unit list or a processing unit at any position in between Adding a Processing Units at a Specified Position Adds or inserts a processing unit at the bottom position of...

Page 56: ...ssing units are copied or deleted together Click the Multiple selection button to display the check boxes for the processing items The selected processing units can be manipulated as a group Referring...

Page 57: ...ther processing units the branch destination of the pasted processing unit is initialized to End processing When pasting whole processing units within a folder a parallelization processing unit or a p...

Page 58: ...easy to understand the relationship of branches and folders in the measurement flow The Flow Viewer allows you to edit the measurement flow and also allows you to edit rename and save processing units...

Page 59: ...This area shows Camera images figures positions and other graphic information The measurement image is updated each time a unit is selected Flow Editor Button This button starts the edit flow window...

Page 60: ...e to the position directly before the selected unit in the flow as a new unit Measurement ON OFF Used to turn off measurement execution for individual in scene processing units so that measurement is...

Page 61: ...s in a Scene 59 2 Setting Scenes Measurement Flows Vision System FH FZ5 Series User s Manual Z340 Examples of Branch and Folder Views Examples Edit Flow Window Flow Viewer Edit Flow Window Flow Viewer...

Page 62: ...he Scene switch button in the Toolbox Pane The Scene switch dialog box is displayed 2 Click to select the scene to change to To change the scene group click Switch and then click in the displayed dial...

Page 63: ...ile changing the scene group Make sure that the power supply is not turned OFF while the scene group is being changed If the available external memory is not sufficient to save data when changing the...

Page 64: ...he copy is to be made and then click Paste An overwrite confirmation dialog box is displayed 4 Click Yes The scene selected as the destination is overwritten with the copied scene data 5 Click the Clo...

Page 65: ...Click the scene to be renamed from the scene list 3 Click the Edit button 4 Set the Scene name Author and Note 1 Click the button for each item The on screen keyboard is displayed 2 Set the names and...

Page 66: ...copy and then click the Copy button 4 Select the copy destination scene group and click Paste An overwrite confirmation dialog box is displayed 5 Click Yes The scene group selected as the destination...

Page 67: ...nt to make scene groups easier to identify when there are many scene groups to manage 1 In the Main Window layout 0 select Scene maintenance from the Function menu The Scene maintenance dialog box is...

Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 69: ...whether correct measurement can be performed at the set conditions and describes useful functions for operation Adjustment Windows and Run Windows 68 Preparing the Controller and Cameras 70 Executing...

Page 70: ...rement time for the entire scene are displayed Units with NG results are displayed in red Measurement results are displayed in text format You can overlay the measurement results on the Camera image M...

Page 71: ...witch layout dialog box select the layout number layout 1 by default The display changes to the Main Window layout 1 Main Window Layout 1 Changing to the Adjustment Window 1 In the Main Window layout...

Page 72: ...able below shows the camera connector and camera number assignments when connecting the Sensor Controller and camera cable with a two cable connection Camera numbers for operation modes other than mul...

Page 73: ...r Camera number in application software Example when all cameras use one cable connection Example when all cameras use two cable connection Example when combining one and two cable connection Line 0 L...

Page 74: ...s and the iris can be automatically adjusted If a Camera is used together with a lens turn the focus ring on the lens to adjust the focus Refer to Lens Adjustment Setting in the Vision System FH FZ5 S...

Page 75: ...of Intelligent Cameras are as follows A single Camera enables testing of illumination from various angles so it is possible to shorten the lighting setting time and test measurement time The Controll...

Page 76: ...k box when the measurement results on the adjustment window are also to be output Clear the checkmark when test measurement for the device is to be performed without results being output Continuous me...

Page 77: ...ment is impossible such as when using images loaded from the Camera that have noise irregularities or low contrast or when the background has patterns during defect measurement Refer to Filtering in t...

Page 78: ...are taking time Refer to Points for Adjustment for individual processing items in the Vision System FH FZ5 Series Processing Item Function Reference Manual Cat No Z341 for details on adjustment parame...

Page 79: ...ning the Processing Time for the Overall Measurement Flow You can use parallel processing to shorten the processing time Parallel processing reduces the processing time of the overall measurement flow...

Page 80: ...unit to be displayed for each product type inspection or measurement Layout Default setting Behavior of output signals RUN signal output Signal output of results Layout 0 Layout 0 is set as an adjust...

Page 81: ...this state you can display and arrange the layout of objects in the Main Window 1 Normal menu and window operations are not available in Layout Modification Mode 3 Select a layout from Layout 0 to La...

Page 82: ...will be hidden Top menu display Specify whether to display the main menu at the top of the Main Window Selected A menu will be displayed at the top of the window Not selected The menu at the top of th...

Page 83: ...To Exit Layout Modification Mode 1 Click Finish on the layout modification Window to end layout modification Changing the Layout Number from a Layout with a Hidden Top Menu If you click Finish on a l...

Page 84: ...an Be Laid Out or Changed Layout 0 in Default State and Layouts 2 to 8 Layout 1 in Default State Judgement Pane Information Pane Toolbox Pane Measurement Pane Flow Display Pane Detail Result Pane Imag...

Page 85: ...button Switch layout button Pane Name displayed when a pane is added in Pane Customization Mode Error Pane FZ_PanDA ErrorWindow Flow Display Pane FZ_PanDA FlowWindow Image Pane FZ_PanDA ImageContaine...

Page 86: ...you click a processing unit icon is set to the Simplified Non stop Adjustment Mode 1 In Layout Modification Mode click the icon in the upper right corner of the Flow Display Pane 2 The following setti...

Page 87: ...isplayed Use this to specify the display mode for the Detail Result Pane Image Pane This pane shows the image To Change the Settings for the Image Display Pane 1 After you end Layout Modification Mode...

Page 88: ...t If you specify a unit number the measurement image will continue to display the image for that unit number regardless of the selected unit in the flow display Image Specify a sub image number for th...

Page 89: ...al Z340 2 Click the Add Image Pane button to add an Image Pane with the specified number to the display Then click the Align button to align the Image Panes Example To display Image Pane numbers 0 to...

Page 90: ...seful for remote operation or situations where an error dialog box would be difficult to close The latest error string error message is displayed on the top line of the error pane Also the error pane...

Page 91: ...er s Manual Z340 Clearing the Error Display 1 In the state where you have exited layout modifications click the upper left corner of the Error Pane 2 The following dialog box is displayed Click the Cl...

Page 92: ...utton to close the Switch layout dialog box 1 You can also change the layout number with communications commands Item Description Layout Layout name up to 32 characters RUN signal output The RUN signa...

Page 93: ...ve To save or load the settings to or from a file click Save to file or Load from file to save or load the system data and scene group 0 data or the system settings data An image of a window object re...

Page 94: ...w display is displayed If you select another unit in the flow display the measurement image that is displayed will also change according to the selected unit If you specify a unit number the measureme...

Page 95: ...s shown in the overall judgement and measurement time In this case the overall judgement result and measurement time may conflict with the Camera image Also during continuous measurements the last NG...

Page 96: ...and show only the parameters that are necessary You can also create a settings dialog box that allows the operator to change the settings for more than one processing unit Flow of Use From the Custom...

Page 97: ...custom dialog box 1 In the Main Window select Custom dialog tool from the Tool menu The List of dialog display area is displayed The Custom Dialog Tool has the following display areas Dialog Box List...

Page 98: ...e copied dialog box to the end of the list Delete dialog Deletes the selected dialog box Edit normal dialog If the selected dialog box is a normal dialog box this button allows you to edit the content...

Page 99: ...ay Area p 98 for details on individual settings Dialog kind Description Normal dialog This is a custom dialog box that you create with numeric input boxes buttons and other items Region setting dialog...

Page 100: ...nce Editing a Normal Dialog Box p 101 To save the settings individually click the Save to dialog settings file button to save the settings to a file The saved file can be loaded with the Load dialog s...

Page 101: ...ght 100 to 1080 768 Sets the height of the dialog box Parameter Set value Factory default Description Setting target figure No 0 Specifies the figure number for the unit to use for region setting The...

Page 102: ...ter it with the Data reference button Click the Data reference button to select the target data in the Data reference dialog box Parameter Set value Factory default Description Binary upper s data No...

Page 103: ...is Normal dialog you can freely place objects such as numeric entry boxes and buttons anywhere in the Edit Dialog Box Area 1 In the Dialog Box List Display Area select a dialog box that is of the norm...

Page 104: ...nges between the Design Pane and the List Pane Add item Adds an item The Select item dialog box is displayed Click the OK button to add the selected item to the end of the list Copy item Copies the it...

Page 105: ...sed to enter characters From the processing items select the character string data to use as the target for the entered a character string Radio Button This setting object is used to enter button opti...

Page 106: ...iption Left Aligns the left edges of the selected items to the left side of the first item that is selected Right Aligns the right edges of the selected items to the right side of the first item that...

Page 107: ...oordinates of the upper left corner of the dialog box item The upper left corner of the dialog box is 0 0 The display position is also updated when you drag an item to a new position in the Design Pan...

Page 108: ...erence button You can select the data number directly to enter it or you can enter it with the Data reference button Click the Data reference button to select the target data in the Data reference dia...

Page 109: ...tom dialog box Parameter Set value Factory default Description Target unit No 0 to Number of units in the display target scene 1 0 Specify the unit to be the target for the check box setting The units...

Page 110: ...target data numbers that correspond to each item in the combo box Parameter Set value Factory default Description Event OK Cancel Launch dialog Set the event to execute when the button is clicked OK O...

Page 111: ...click the OK button 2 In the Main Window layout 0 click the Image file meas button in the Measurement Pane 3 Click the Select image button The Select image dialog box is displayed 4 Click the button a...

Page 112: ...n is achieved when continuous measurement is performed measurement stops and the following message is displayed 3 Select the processing for the measured image Adjusting Flow Settings Click the Adjust...

Page 113: ...of the processing unit that does not have a Judgement setting item the Judgement Pane is not displayed 7 Modify the judgement conditions for the processing units 8 Click OK The Judgement Pane closes...

Page 114: ...change 4 Click Move and input the value or click the arrows to move the image Images can also be directly dragged to move them 5 Click OK The change is registered Monitoring Measurement Value Trends...

Page 115: ...or the most recently executed data logging unit Reference Specifying Logging Conditions for Images p 120 This section describes system logging in detail Refer to the Vision System FH FZ5 Series Proces...

Page 116: ...ave last logging image from the Function menu The File Explorer is displayed 2 Set the logged image save destination Specify the image file save destination RAM disk or external memory 3 Edit the file...

Page 117: ...measured images are saved Some images may not be saved if Measurement is set in Logging priority in step 4 In order to perform logging quickly image files are first saved in the Controller memory RAM...

Page 118: ...group names at the time of measurement execution If a scene name or scene group name contains a character not supported for file names or folder names a logging error is generated when logging is exec...

Page 119: ...name with the Data Logging processing unit Maximum number of characters 128 single byte characters Logging images saved in the Controller memory are overwritten starting with the oldest image if the...

Page 120: ...ailable in the RAM disk If USB disk is selected it depends on the USB disk capacity The following restrictions apply to a USB disk There is no limit if an NTFS formatted USB disk is used with the FH F...

Page 121: ...ocessing time The time that is displayed in the upper left corner Image logging time The time that is required to generate and save a single image file Example If the processing time is 100 ms and the...

Page 122: ...dual judgements of three measurement units U1 U3 and U5 are NG Example 2 Image logging is performed if the edge with for a measurement unit is below a set value Destination of Images This diagram show...

Page 123: ...ing Logged Data with a Computer This section uses the example of saving logging data in USB memory 1 Copy the logged data in the external memory to the computer 2 Open the copied data in the folder us...

Page 124: ...me One image data file contains the Camera image data of all the connected units In this way measurement data can be made to always correspond with image data Verify data with the measurement ID Clear...

Page 125: ...be loaded into the computer and pasted into documents Set the destination for captured images Use the following procedure to set the save destination for the image captured with the screen capture fun...

Page 126: ...ion menu I you use the Capture button that is located in the bottom right corner to capture the screen image in Multi line Random trigger Mode the image is always saved to the destination that is set...

Page 127: ...e operation log 3 Click Apply 2012 09 10 13 08 41 Administrator SetSystemData OperationLog enabled 1 0 2012 09 10 13 08 41 Administrator MeasureStart 0 2012 09 10 13 08 41 Administrator GetSceneGroupN...

Page 128: ...Stop To close the dialog box without changing the current operation log status click the Cancel button Loading an Operation Log File When the log file is set to be saved to the Controller use the foll...

Page 129: ...m interface is executed The information for one piece of API information is written into the log file as one record The format for each record that is written to the log file is as follows The four da...

Page 130: ...1 Set up the computer and Controller for communications through Ethernet 2 Start the Explorer on the computer 3 In the address bar type the IP address and destination and press the Enter Key Example...

Page 131: ...ve Register the shared folder on a network drive with a shared name 1 Select Tool menu System settings Other Network drive setting 2 Select the shared name to be registered and click Edit 3 Enter the...

Page 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 133: ...28 Scenes 140 Outputting a List of Scene Data Set Values 143 Saving Image Files to a RAM Disk or External Memory Device 146 Using the Registered Image Manager 148 Using Accounts 150 Changing between U...

Page 134: ...nly in 2 ways Adjustment of measurement set values during start up Use sample workpiece images to analyze optimal set values for the processing flow Analysis of NG causes during operation Use logged i...

Page 135: ...ys selected images 2 Image selection Selects the image number to be displayed in the image display area a b 1 2 3 1 List of units A list of units currently set is shown together with analysis results...

Page 136: ...form adjustment 3 Click files in the folder are displayed 4 Click Execute batch measurement All images in the folder are measured in batch Classify sample images beforehand into the OK folder containi...

Page 137: ...the processing item to be adjusted and click Details of unit In the above example Search becomes the adjustment target 7 The cause of NG is displayed To check the details of values further click Detai...

Page 138: ...e the set values of the processing unit 9 Repeat steps 5 to 8 to correct the set values corresponding to all causes of incorrect judgement 10 Select Execute batch measurement to confirm that no images...

Page 139: ...ference in advance When you click the Measure ref button the Controller measures the reference for all units that are selected in the Unit Setting list and updates the reference position If you click...

Page 140: ...Use the User Data processing item to set or reference the values in the data that you set with the User Data Tool Refer to User Data in the Vision System FH FZ5 Series Processing Item Function Referen...

Page 141: ...ment will be displayed in the Comment column of the User Data processing item 5 Repeat steps 2 to 4 to set the user data 6 To stop the User Data Tool click Close 7 Click Data save to save the specifie...

Page 142: ...p even if there are more than 128 scenes simplifies the PLC control programming and data management Using the Conversion Scene Group Data Tool When you start the Conversion Scene Group Data Tool the f...

Page 143: ...FZ5 Series User s Manual Z340 Use the following procedure and the guidance in the dialog boxes to perform the conversion process 1 Select Conversion scene group data tool from the Tool menu The Conver...

Page 144: ...alog box is displayed 4 Edit the scene in the converted scene group Click the button to copy the conversion source to the conversion destination Click the button to copy the conversion destination to...

Page 145: ...p that contains the scene with the set values to download 2 When saving data to external memory insert an external memory device into the Sensor Controller 3 In the adjustment window layout 0 select S...

Page 146: ...ion angle 180 startAngle Lower limit of the rotation angle 180 angleSkip Skipping angle 5 smartMode Smart mode 1 stability Stab CR 12 accuracy Prec 2 searchSpeed Stab PT 3 referencePosX Reference X 0...

Page 147: ...to be loaded and click OK 6 Click OK The data is uploaded To upload the file set the character code to Unicode UTF 8 with the Windows Notepad or another application and save the file in CSV format If...

Page 148: ...e to save 4 Specify the destination folder name and file type 5 Click OK The image is logged in the selected destination If a file with the same name already exists in the destination folder the newly...

Page 149: ...der name and file type 6 Click OK The image is logged in the selected destination If a file with the same name already exists in the destination folder the newly saved file overwrites the old one Para...

Page 150: ...to 999 4 Click the Image registration button 5 Select the image to register 6 Click the Registration button In step 3 if you select a registered image number that is already registered an overwrite c...

Page 151: ...oading an Image A registered image can be loaded as a measurement image 1 In the Main Window select Registered Image Manager from the Tool menu The Registered Image Manager dialog box is displayed 2 S...

Page 152: ...to link to the operation log and get operation records for the currently logged in user Setting Accounts Account List This section explains how to add edit and delete user accounts Adding Accounts Us...

Page 153: ...dure to add a user account 1 In the Main Window select Security settings from the Tool menu The Security settings dialog box is displayed 2 Click Account list in the Item Tab Area 3 Click the user to...

Page 154: ...ht to change the layout for each user group You can restrict the functions that can be used by each user group The layouts that can be restricted are as follows 1 In the Main Window select Security se...

Page 155: ...ta Nonstop data transfer Start stop of operation log System information NG analyzer System settings Registered image management Customize I O command Unit setting mode starting Nonstop adjustment mode...

Page 156: ...Account setting data is not included in BKD files Saving Security Settings You can save user account and user group settings to a RAM disk or an external memory device During data transfer to external...

Page 157: ...d file name in the Save to file area 5 Click the Save button Loading Security Settings Use the following procedure to load a saved user account and user group settings into the Sensor Controller 1 If...

Page 158: ...fault user and password Administrator If the login dialog box is canceled the Security setting dialog box is closed Transferring Old Security Settings Password settings that were made in FZ4 version 4...

Page 159: ...played 2 Enter the user account and password If the login fails The user name or the password is wrong is displayed Enter the correct user name and password 3 Click OK The login icon switches to the l...

Page 160: ...ion Tool CD ROM For example the function can be used as follows 1 GUI operations such as editing multiple inspection and measurement line processing items and changing the settings can be performed by...

Page 161: ...stem settings Startup Startup settings from the Tool menu and then select ON for Remote Operation in the Communications Module Area Make sure that the software installed on the remote operation PC is...

Page 162: ...the Controller 3 Set the IP address In the Main Window select System settings Communications Ethernet from the Tool menu and then set the IP address 1 The shows the Serial Ethernet setting that was se...

Page 163: ...The FZ5 Sensor Controller always has two lines lines 0 and 1 and the FH Sensor Controller allows you to select as many as eight lines Set the line numbers based on the number of lines that are set fo...

Page 164: ...tching not both If the layouts of both are changed to Layout 8 operation on the sensor controller will not be possible during remote operation and only normal remote operation can be executed The layo...

Page 165: ...splay Displays the camera images and figures etc Displays the camera images and figures etc with low pixels Unit Macro Unit Calculation Macro Customize I O Command Program editing is allowed Program e...

Page 166: ...e communications protocol or as a command number from 0 to 255 These commands are stored in the main memory of the Sensor Controller If you send a registered communications command from the external d...

Page 167: ...flow of processing for the measurement flow that is currently being edited When you edit a flow the Flow Viewer is useful when you need to check the relationship of branches and folders Refer to the...

Page 168: ...e a customized settings dialog box and display it instead of the normal settings dialog box that is provided for each processing item This allows you to create settings dialog boxes that match your ap...

Page 169: ...a graphic display of the calibration setting results relationship of the positions of the Camera coordinates and the actual coordinates when you set the alignment function This allows you to check for...

Page 170: ...for specifying the scene group storage location appears 2 Set each item in the Scene group saving destination on settings area Variable name Set value Factory default Content Scene Group Saving Desti...

Page 171: ...ssages and Troubleshooting in the Appendices for descriptions of error messages Reference Error Messages and Troubleshooting p 827 When the scene group data storage location setting is changed a file...

Page 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 173: ...and How to Configure Settings 181 Components of the Program Editing Screen 181 Description of the System Status Console Window 185 Description of the Setting Screen for the Unit Calculation Macro Proc...

Page 174: ...em 222 Scope of Data and Save Area 225 State Transitions and Execution Timing 227 Exclusive Control in a Process 234 How to Use the Debug Function 235 Debug Preparations 235 Debug Procedure 238 Checki...

Page 175: ...hic display detailed text display etc result output and creation of initial processing Approxi mate level of difficulty Function Description Target function Measurement processing Communication comman...

Page 176: ...t Calculation Macro processing item Display result graphic display detailed text display etc Output result Measurement initialization processing scene switching etc Unit Macro processing item Scene co...

Page 177: ...f Data and Save Area Reference XScope of Data and Save Area p 225 As needed As needed As needed As needed Status Transitions and Execution Timing Reference XState Transitions and Execution Timing p 22...

Page 178: ...ting of programs in the processing items tool setting screens and setting screens of each function and a system status console window that allow errors to be checked when a program operates abnormally...

Page 179: ...f the Program Editing Screen p 181 System status console window Console window that shows the system status as text When a program created with a macro customize function operates abnormally a descrip...

Page 180: ...e settings Save your changes Item name Step Description Registration of a unit calculation macro processing unit Add a macro calculation processing unit to the measurement flow Settings of the unit ca...

Page 181: ...labels will be used Make preparations to use unit labels rather than processing unit numbers to reference processing units in the measurement flow Program input Write in the program Program debug Ref...

Page 182: ...ssing unit Add a unit macro processing unit to the measurement flow Settings of unit macro processing unit Reference XDescription of the Setting Screen of the Unit Macro Processing Item and How to Con...

Page 183: ...program appears in this area You can select whether some of the display items are displayed Reference XDisplay option p 184 Program input area This area is used to enter programs Create and edit prog...

Page 184: ...e variable tab This area allows to register and configure settings for reference variables This area only appears in the program editing screen for unit calculation macros scene control macros and uni...

Page 185: ...tton Description Display Settings Shows the display settings screen Keyboard Displays the screen keyboard Use the keyboard to create and edit programs DEL Deletes one character immediately after the c...

Page 186: ...visible form For details on hidden characters refer to Program Area Reference X1 Program area p 181 Disp ruler Checked Unchecked Shows the ruler in the program input area Showing the ruler makes it e...

Page 187: ...tion operates abnormally a description of the error appears in the system status display area For the information displayed refer to Checking the System Status Console Window Reference XStructure of t...

Page 188: ...per unit 1 From the list click the operator of the calculation processing to be set 2 Place a check at the operator to use to perform the calculation processing 3 In the Edit area click Edit The unit...

Page 189: ...Program Input Unit Calculation Macro The program input method is the same method as for the unit macro processing item Reference XProgram Input Unit Macro p 200 Item Description Copy Copy the setting...

Page 190: ...default Description Comment Enter a comment on the calculation processing you have selected from the list Judgement condition Value judge Calculation judge Select whether to use a figure or macro judg...

Page 191: ...processing items that support processing unit data setting acquisition and from control commands Parameter to be adjusted Troubleshooting Nothing happens while the focus is not on the code window key...

Page 192: ...Settings Scene Control Macro The scene control macro can be used to set unit labels Setting a unit label allows you to specify a processing unit in a program by the label rather than the processing u...

Page 193: ...o processing item Reference XProgram Input Unit Macro p 200 Setting item Setting value Description Unit Label 1 to 32 characters Set the unit label name The unit label set here is used by the Ut funct...

Page 194: ...tion The information of all of the commands such as Command name Function Name Comment and Program is initialized 4 Command list Display the list of the commands 5 Edit Launch the Macro program editor...

Page 195: ...pecifying Communication Command Macro The specified custom communications command is sent from an external device to the Sensor Controller The method that you use to specify a command depends on the c...

Page 196: ...ms change DI7 from OFF to ON to send the command 3 Send DIOFFSET 0 0 OFF 1 ON Using PLC Link EtherCAT or EtherNet IP Except for the Non procedure Protocol and Parallel Interface Specify the command nu...

Page 197: ...ng serial command p 197 Reference XCreating Parallel Command p 198 Reference XCreating PLC Link Command p 198 Reference XCreating Fieldbus command p 198 Control BUSY signal Basically the BUSY flag on...

Page 198: ...s defined as the table below and we intend to call procedure of CMD0 from CMD1 the codes for CMD1 should be like this This case the behavior of the command like BUSY depends on the caller CMD1 and BUS...

Page 199: ...32 ArgumentString Array of text string Array of parameters string Allocate a number of array elements equal to the number of parameters ArgumentValue Array of real numbers Array of parameters converte...

Page 200: ...cution result 0 Command processing successful Other than 0 Command processing failed The ERROR signal turns on Variable name Type Content ArgumentsLength Integer Number of parameters 0 to 6 ArgumentVa...

Page 201: ...is the same as the program editing screen For details on the setting screen refer to Program Editing Screen Reference XComponents of the Program Editing Screen p 181 Reference Variable Settings Unit...

Page 202: ...Click to set the variable value If System is selected Place a check at applicable Select to select the type of system variable and then select the variable to be referenced from the list To set a var...

Page 203: ...e setting of calculation processing is complete click OK Setting item Setting value Factory default Description Operand input method Free input Select this option if you want to enter an operand freel...

Page 204: ...iption Judge Judgement result Sub image Explanation of image to be displayed 0 Measurement image Parameter to be adjusted Troubleshooting Refer to the error messages list Reference X Appendixes About...

Page 205: ...be managed and analyzed on a computer using a text editor Saving and Loading Programs in the Unit Calculation Macro In the Unit Calculation Macro processing item programs can be saved and loaded to t...

Page 206: ...want to load and click OK Saving and Loading Programs in the Unit Macro In the Unit Macro processing item programs can be saved and loaded to the scene data as a processing unit and in the properties...

Page 207: ...ust be known as a minimum in order to create programs The examples below include the basic program syntax that is used in the macro customize functions Basic syntax examples Necessity of referring to...

Page 208: ...se as a separator when listing parameters in output text Apostrophe Add in front of a comment A Rem statement can also be used to indicate a comment Asterisk Add in front of a label name Space Always...

Page 209: ...a macro customize function consists of subroutines By writing GoSub function name the processing component of the corresponding macro customize function can be called and executed from another subrou...

Page 210: ...mize functions are shown below A 255 AA h7f B 3 14 C TEST STRING Constant type Description Data range Number of bytes per data item Integer Used for signed integer values 2147483648 to 2147483647 4 by...

Page 211: ...on is used for this purpose For variables other than array variables the data area is automatically allocated when the program is executed and thus declaration is not necessary 2 Assign a value to the...

Page 212: ...ays add a type identifier to the end of the variable name of each variable For the type identifiers that can be used refer to Variable Types and Type Identifiers Data type Description Data range Numbe...

Page 213: ...rs that can be used with array variables are shown below Temporary variable data type Type identifier Example Integer A 1 Double precision real number A 12 34 Character string AA OMRON The type identi...

Page 214: ...real number A 12 34 Character string AA OMRON The data type integer real number etc can be identified from the type identifier of a regular variable however identification of the data type from the ty...

Page 215: ...ription of operation Example Assigns the value on the right side to the left side A B C When is used in a conditional comparison such as an If Then or Select statement is treated as a relational opera...

Page 216: ...elational operators that can be used in macro customize functions are shown below 4 Logic Operator A logic operator is used to investigate multiple conditions and perform bit operations and binary ope...

Page 217: ...expression that returns a numerical value is referred to as a numerical expression This joins numerical constants numerical variables and macro functions that return numerical values with arithmetical...

Page 218: ...ssion Example of a logical expression Function An expression that executes a predefined command or operation or an expression that executes a predefined operation on a specific specified value argumen...

Page 219: ...e data can be set and acquired from a processing unit data setting item processing unit data acquisition item and a communication commands A processing unit data setting macro function or processing u...

Page 220: ...ame searchNo search number of the Unit No 1 search processing unit The result is the same as when 1 is set in External Reference Data No 147 Figure data Figure data is used to set and acquire region f...

Page 221: ...e Array length 5 Number of figure data items 1 Number of bytes of figure data size 5 x 4 20 Figure data header information 20 1 x 65536 65556 figure 1 Figure 0 type information Type information of fig...

Page 222: ...tomize program model data can also be set by communication commands A processing unit figure setting macro function or model copy macro function is used to set model data from a macro customize progra...

Page 223: ...data Acquisition of Data Execution of only image data acquisition is not possible Dim FIGURE 5 GetUnitFigure 1 0 FIGURE Rem Re register the model by setting the model figure SetUnitFigure 1 0 FIGURE R...

Page 224: ...System data p 224 To use new global data first specify a data identification name and register the global data Half width alphabetical characters and the half width marks and _ can be used for the glo...

Page 225: ...but character strings as well use system data Reference XGlobal Data p 222 Reference XSystem data p 224 Before using user data you can set the default values of the user data with the user data tool R...

Page 226: ...tion names that correspond to ID Information 0 and ID Information 1 must be specified as arguments of the macro function For details on identification information and data identification names refer t...

Page 227: ...nit Within a communication command macro Only enabled within one processing unit If multiple processing units of the Unit Macro processing item or the Unit Calculation Macro processing item are includ...

Page 228: ...on Scene data Data stored as scene data In addition to Data save scene data can be saved to a file as a scene data file For example use this when handling data that must be saved for each scene such a...

Page 229: ...ta Reference XModel data p 220 Image data Reference XImage data p 221 Temporary data Global Data Reference XGlobal Data p 222 Within the system User Data Reference XUser Data p 223 System data System...

Page 230: ...tion MCRINIT Executed immediately after the program is loaded Measurement initialization MEASUREINIT Executed before starting measurements Measurement execution MEASUREPROC Executed when measurement p...

Page 231: ...N Measurement acceptance state Measurement instructions and communication commands can be accepted in this state In the measurement accepted state the BUSY signal or similar status signal turns OFF Ex...

Page 232: ...during process Timing of execution after process Description Scene change Measurement initialization Scene change process The program is executed when measurement initialization takes place after the...

Page 233: ...ssing unit in the measurement flow when Define displayed unit is selected The program is executed when graphic display takes place Text display Selection of a processing unit in the measurement flow w...

Page 234: ...ge is not updated when measurement initialization takes place However if at least one of the 24 image windows that can be used in the layout function is set to Through camera image the measurement ima...

Page 235: ...When measurement is executed When the text window settings are changed When the text window is set to Define displayed unit and the processing unit selected in the measurement flow is changed Details...

Page 236: ...output To stop acceptance of measurement trigger input use the MeasureStop function To enable acceptance of measurement trigger input use the MeasureStart function Example Necessity of referring to th...

Page 237: ...n for debugging in the program and executing the program and by directly entering a macro function from the system status console window and executing the program Program Execution Mode Macro customiz...

Page 238: ...system status console window 3 Set the usage mode to release mode When an error occurs an error description is output to the message box 16 Set the usage mode to debug mode When an error occurs an er...

Page 239: ...t ends or an error occurs 0 Executes the program by step in execution If the current program line calls a subroutine the subroutine is entered and is executed in steps Otherwise the current statement...

Page 240: ...y stopped Checking Why an Error Occurred Reference XChecking Why an Error Occurred p 238 Check the console window A brief description of the error appears in the system status console window Check the...

Page 241: ...rror Message This message indicates error factors Based on the error message you can check what type of error occurred 3 Error line number The number of the line where the error occurred Use this to d...

Page 242: ...ify 18 in the parameter for the debug function at the beginning of the communication command program to be debugged If you specified 0 or 16 for the debug function parameter the error information will...

Page 243: ...editing screen with OK and return to the main screen The main screen appears 3 Execute measurement When the Stop function line is executed the measurement process stops If the process does not stop c...

Page 244: ...eyboard 9 Hit Enter on your keyboard The variables are listed in the system status console window From the program contents and the variable list it can be seen that the value of the POS X denominator...

Page 245: ...Str 0 Return MEASUERPROC Rem The actual measurement process is written from here POS X POS0 X POS1 X 2 POS Y POS0 Y POS1 Y 2 Rem Execute the Stop function and stop the program on the line where the PO...

Page 246: ...e the parameter for the debug function in the MCRINIT subroutine to 1 MEASUERPROC Rem Execute the Stop function and stop the program at this line Stop Rem The actual measurement process is written fro...

Page 247: ...es not use a router or DNS server set the same value for the default gateway and DNS server address as the IP address A value is not set in a variable The variable in which you are attempting to set a...

Page 248: ...y set Set judgement conditions that are appropriate for the calculation and expected result Problem Cause Action An error message appears in the system status console window An error occurred when the...

Page 249: ...unication command macro execute on the sensor controller Measure or Remeasure is executed in the program when there is a checkmark in BUSY ON Before using Measure or Remeasure in command processing to...

Page 250: ...s Reference XSetPollingState in Macro Function Reference p 711 Unit figure data cannot be set and registered figures are also cleared There may not be a measurement image when the figure is set When t...

Page 251: ...ccurrence of 0 detections in the program Reference XTry Catch End Try function p 773 Problem Cause Action An error message appears in the system status console window An error occurred when the progra...

Page 252: ...acro function is the same as the name of a standard communication command the command created with the communication command macro is given priority Change the command name to a name that is different...

Page 253: ...urement is executed with the MeasureProc function It is possible that no objects were found in the search process An Illegal function call error occurs if there are 0 detections in the measurement pro...

Page 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 255: ...h Memory and Restarting 257 Saving Settings Data to the Controller RAM Disk or an External Memory Device 258 Saving Logged Images in the Controller Memory RAM to a RAM Disk or an External Memory Devic...

Page 256: ...mages are temporarily stored when logging images using the logging function This memory is a ring memory Images will be overwritten starting with the oldest image if the maximum number of save images...

Page 257: ...wer left on the front 2 Lower right on the front 3 Upper left on the front 4 Upper right on the front FH or FZ5 11 USB devices are assigned as drives E F G and H in the order in which they are inserte...

Page 258: ...k the Eject button When the USB Memory Can Be Removed If the removal failed wait until the external memory device is no longer being accessed and then try removing the device again Shared folder on a...

Page 259: ...and the data from scene groups 1 to 31 is saved to the external memory For the FH or FZ5 11 all data is saved in the flash memory in the Controller by default If more than one USB memory device is co...

Page 260: ...ing transfer status is displayed and the data is sent to the save destination Data Description System data ini This is the setting data such as the System menu setting contents that is shared within t...

Page 261: ...er Set value Factory default Description Data to be saved All logging image All logged images are saved Select image The selected logged images are saved Click to select the image to save When Latest...

Page 262: ...ler 2 In the Main Window select Save to file from the Function menu The Save to file dialog box is displayed 3 Click Copy files and select the file or folder to copy or move 4 To delete the copy sourc...

Page 263: ...ternal memory device that has the load data saved in it into the Controller 2 In the Main Window select Load from file from the Function menu The Load from file dialog box is displayed 3 Select the fi...

Page 264: ...WWW NNC IR Loading Settings Data from the Controller RAM Disk or an External Memory Device to the Sensor Controller 262 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Page 265: ...ibes the settings that are related to the system environment of the Controller Setting the Camera Conditions 264 Setting the Conditions That Are Related to Operation during Measurement 267 Setting the...

Page 266: ...sical connection 3 Click the Close Button Setting the Trigger Delay Inter camera setting This setting is used to set the delay time from when the STEP signal for the input trigger is received to when...

Page 267: ...sensor controller and that for the FZ5 sensor controller differ The delay time for the FZ5 equivalents to the displayed time value in the Delay between STEP cameras field Delay count between STEP cam...

Page 268: ...put HDR or Camera Image Input HDR Lite processing item the SHTOUT signal is output for every image that is taken If you are using the Through Image Mode in the Main Window the SHTOUT signal is output...

Page 269: ...hether the ERROR signal output turns ON when the next STEP signal is input during measurement Save scene group on switch scene Selected Not selected Set the operation to perform when you change to ano...

Page 270: ...or Selecting the Operation Mode This section describes how to set the operation mode that best suits the purpose 1 The next STEP input is acknowledged as soon as image input processing is completed Th...

Page 271: ...used together with the multi input function Refer to Multi input Function before you use the Single line High speed Mode When the multi input function cannot be used the Single line High speed Mode i...

Page 272: ...With EtherCAT communications check the status of the Trigger Ready signal instead of the READY signal The FH and FZ5 11 both have a multi core CPU Using the Single line High speed Mode where each CPU...

Page 273: ...lti input function cannot be used in the following cases The flow has more than one camera input processing unit The flow has a Camera Image Input HDR processing unit Branching is used to process a si...

Page 274: ...rmation OK Movement Multi Points OK EC Circle Search OK Trapezoidal Correction OK Detection Point OK Ec Corner OK Machine Simulator OK Camera Calibration OK Ec Cross OK Image Subtraction RST 1 Data Sa...

Page 275: ...want to measure more than one line with a single Controller You can measure the inputs from different Cameras on up to eight independent lines You can set a scene group data and scene data for each l...

Page 276: ...ent on the Multi line random trigger mode settings tab page For example if you use Cameras 0 and 1 on line 0 you can use up to 6 Cameras from Camera 2 to 7 on line 2 FZ5 Series The Camera assignments...

Page 277: ...ll lines Use layout modification to set the display position and size for the Main Window for each line One of the lines must be selected to be displayed Both lines cannot be displayed at the same tim...

Page 278: ...Output Area I O ports are assigned for each line The I O ports in the Sysmac Error Status Area are shared by all lines The maximum data size that can be output depends on the number of lines as shown...

Page 279: ...O0 to DO15 Line 0 D00 to D07 Line 1 D8 to D15 No output I O Number of lines 1 line 2 lines STEP STEP0 STEP0 or STEP1 DSA DSA0 DSA0 or DSA1 DI DI0 to DI7 DI0 to DI7 RUN RUN None This input is assigned...

Page 280: ...rcle Search OK Trapezoidal Correction OK Detection Point OK Ec Corner OK Machine Simulator OK Camera Calibration OK Ec Cross OK Image Subtraction RST 1 Data Save OK Shape Search II OK Advanced Filter...

Page 281: ...r line 1 is called the Non stop Adjustment Mode Window This display change will not stop the measurements on images input to line 0 3 Click the icon portion of the processing unit to adjust To change...

Page 282: ...ation for image logging to a destination that does not use external memory Do not change the image mode for Non stop Adjustment Mode If you use image logging in Non stop Adjustment Mode the non stop d...

Page 283: ...ion OK User Data OK Control Flow Fieldbus RST 3 Circular Scan Edge Width OK Set Unit Data OK Selective Branch OK Color Data OK Get Unit Data OK Data Output OK Gravity and Area OK Set Unit Figure OK Pa...

Page 284: ...lly parallelized Reference Processing Items That Supports Automatic Parallelization p 289 Parallel Processing Settings Manual Parallelization If you use the FH FZ5 series sensor controller you will ne...

Page 285: ...rocessing units that are placed in this position will not be executed Always insert the Parallelize Task processing item between the Parallelize processing item and Parallelize End processing item If...

Page 286: ...tic parallelization OFF manual parallelization not applied Applying the automatic parallelization only Same as above When using four CPU cores on the FH sensor controller Applying the automatic parall...

Page 287: ...t processing item within task blocks To change the Camera image you must use the Camera Switching processing item and set a different Camera number Flow of Images Image 1 Camera Image Input Paralleliz...

Page 288: ...ual measurement flow and image Inserting Camera Image Input Processing Items Do not insert a Camera Image Input processing item inside the range of a Parallelize Task processing item To use a differen...

Page 289: ...This section describes the settings that are required to enable parallel processing Setting the Operation Mode Use the following procedure to set Parallel processing or ON in the Operation mode settin...

Page 290: ...elize processing items The Parallelize End processing item is not displayed in the list of items It is registered as a set with the Parallelize processing item Precautions on Flow Editing Editing oper...

Page 291: ...ezoidal Correction Detection Point Ec Corner OK Machine Simulator Camera Calibration Ec Cross OK Image Subtraction Data Save Shape Search II OK Advanced Filter Conditional Branch Classification OK Pan...

Page 292: ...ask processing item Do not get or set figure data from a processing unit that is inside the range of a different Parallelize Task processing item Do not get or set unit data from a processing unit tha...

Page 293: ...Setting a Network Drive Network Drive Setting p 298 Reference Setting Up a Connection to the External Device This section describes communications with external devices such as computers and programma...

Page 294: ...of the Controller fan FZ5 6 or FZ5 11 only 1 In the Main Window select System settings Other Fan control setting from the Tool menu The Fan control setting dialog box is displayed 2 Select a fan sett...

Page 295: ...startup scene scene group Selected The selected scene and scene group will be the scene and scene group at startup Not selected The scene or scene group that is set in the Controller when you execute...

Page 296: ...ay is given priority Measurement triggers will not be received until display refresh processing is completed Item Set value Factory default Description Serial Ethernet Normal UDP Normal TCP Normal TCP...

Page 297: ...erial Ethernet and Serial RS 232C 422 to PLC Link They cannot be used at the same time Normal Fxxx Series Method With the Normal Fxxx series method communications method the OK response timing in rela...

Page 298: ...trigger Encoder input type Open collector Line driver Select the output format of the encoder to be connected Resolution pulse rotation 1 to 65535 Set how many pulses equal one rotation Set this param...

Page 299: ...Z When STEP start is specified for Enable timing you can select Every trigger pulse or Every STEP When Every rotation is set multiple pulses can be set for phase A Phase A trigger 0 to 65535 Set how...

Page 300: ...ting data saved in a network drive into the Controller If you register a shared folder on the network drive the network drive connected to the Select file or Select folder dialog box of the FH FZ5 sof...

Page 301: ...ou set the shared folder name With the FZ5 L35 FZ5 6 you will not be able to connect to the network drive if you specify the IP address If images and data are logged to a network drive the use of the...

Page 302: ...le data memory FZ5 L3 or FZ5 6 only The data memory is the amount of memory that can be used for scene group data Check the available memory that can be used for unit data and settings data for each u...

Page 303: ...about Operations 844 Setting Figures 848 About Number of Logging Images 856 About Limits on the Number of Image Input Processing Items Used 858 About Max Number of Loading Images during Multi input 8...

Page 304: ...h as corners and outputs the axis movement to a PLC or stage controller which aligns the workpiece into a specified position hereafter called the reference position The PLC or stage controller simply...

Page 305: ...movement None Camera axis movement X axis Camera axis movement Y axis Camera axis movement XY axes XY axis Direct drive Camera axis movement None Camera axis movement X axis Camera axis movement Y ax...

Page 306: ...ion of alignment marks on the workpiece or the position of specific features of the workpiece such as corners in Camera coordinates pixels The calibration parameter that is calculated in the calibrati...

Page 307: ...e Output parameter tab page to OFF Camera Switching processing item Select Camera 1 Position measurement processing item Measure the position of the alignment marks to use as the sampling target or th...

Page 308: ...e using a robot use this processing item Refer to Robot Data of the Vision System FH FZ5 Series Processing Item Function Reference Manual Cat No Z341 The settings for the machine setting processing it...

Page 309: ...mand to the FH FZ5 series Controller Reference the Reference Calib Data item to access the calibration data that was created Refer to PLC Master Calibration of the Vision System FH FZ5 Series Processi...

Page 310: ...xt axis movement for the number of axes on the external device Origin Return Flag Calibration Completion Flag 4 Return to origin Return to origin Completion Response 5 Moveeachaxesbytheamountofthenext...

Page 311: ...rement command 17 Externalreferencecommand ExecutionoftheCalibrationCalculationcommand 5005 Loop Iterations Number of rotations 3 An origin return is performed and the calibration workpiece is moved t...

Page 312: ...rnal device 2 Execution of the measurement command Loop Iterations Number of parallel movements 4 Execution of the measurement command Loop Iterations Number of rotations 6 Execution of the measuremen...

Page 313: ...s to adjust Correction The unit number is set to None and cannot be selected Check whether there are any processing items that retain calibration data that are registered in the current scene The sett...

Page 314: ...osition Camera Switching item Select Camera 1 Reference Calib Data processing item Select Image Master Calibration or PLC Master Calibration on the calibration scene with the reference calibration dat...

Page 315: ...from the image in Camera 0 To output the actual coordinates of the position set Calibration on the Output parameter tab page to OFF Set the workpiece in reference position and then set the reference...

Page 316: ...calculated and output Refer to Movement Multi Points in the Vision System FH FZ5 Series Processing Item Function Reference Manual Cat No Z341 Executing Alignment If you are using the measurement resu...

Page 317: ...t number is used to graphically display the positioning relationship of the Camera coordinates and the actual coordinates You can specify the following processing items for the processing units Camera...

Page 318: ...Alignment 316 Vision System FH FZ5 Series User s Manual Z340 Refer to the Vision System FH FZ5 Series Processing Function Reference Manual Cat No Z341 for further information on the alignment process...

Page 319: ...ssing item Data No Each axis movement number 128 to 135 Settings data The next set of axis movements NMX to NMR for the Vision Master Calibration processing item Machine Simulator processing item Set...

Page 320: ...Vision System FH FZ5 Series Processing Item Function Reference Manual Cat No Z341 Position measurement processing item Measure the position of the alignment marks or the position of a special feature...

Page 321: ...a Reference Calib Data This processing item is used to reference calibration data and distortion data that is stored in other processing items The referenced data is used to perform coordinate convers...

Page 322: ...ant is over 255 characters Shorten the character string length 7 Out of memory Insufficient sensor controller working memory or a loop process is nested too deep Occurs when too many character strings...

Page 323: ...n an If instruction does not exist or is not written correctly in an If Else statement Write the If instruction correctly 126 ELSE without IF ELSE statement occurs without a corresponding If statement...

Page 324: ...error Determine the nature of the error from the error message that appears in the system status console window Error information appears in the system status console window Abs ACTIVE ACTIVETABLE Ad...

Page 325: ...DrawPoint DrawPolygon DrawSearchFigure DrawText DrawTextG DrawUnitImage Dskf ElapsedTime Else Elseif End EndIf Eof Erase Erl Err Errcmnd Errno Error ExecuteImageLogging Exit ExitFzProcess Exp FALSE Fc...

Page 326: ...E_NG JUDGE_OK JUDGELOWER JUDGEMACROFLAG JudgeOut JUDGEUPPER Keyword Kill Layout _Title represents a number Layout _WindowSetting represents a number Layout _output represents a number Layout _runout r...

Page 327: ...SaveBackupData SaveData SaveImage SaveMeasureImage SaveScene SaveSceneGroup SaveSystemData SaveUnitData SceneCount SceneDescription SceneGroupCount sceneGroupDataPath SceneGroupNo SceneGroupTitle Sce...

Page 328: ...talJudge TransformAngle TransformArea TransformDist TransformLine TransformXY TRUE Try UCase UnitCount UnitData UnitData UnitData2 UnitInfo UnitItemIdent UnitJudge UnitNo UnitTitle Ut Val VarList VarP...

Page 329: ...Spanish cht Traditional Chinese ita Italian kor Korean Language Initial scene group number initialSceneGroupNo Initial scene number initialSceneNo Operation priority 0 Measurement result priority 1 Me...

Page 330: ...t1 Parallel ParallelIo Standard Parallel I O ioIdent0 Fieldbus 1 Blank character None EtherCAT EtherCAT EtherNet IP EtherNet IP ioIdent3 Remote Operation RemoteServer Yes 1 Blank character None ioIden...

Page 331: ...Normal 1 Fast transferRate0 Baud rate 1 0 Normal 1 Fast transferRate1 Baud rate 2 0 Normal 1 Fast transferRate2 Baud rate 3 0 Normal 1 Fast transferRate3 Baud rate 4 0 Normal 1 Fast transferRate4 Baud...

Page 332: ...ut timeout Number of delay delayCount One shot OR signal 0 OFF 1 ON orOutMode OR signal output time orOutputTime Normal SerialNormal Timeout timeout Interface 0 RS 232C 1 RS 422 rsMode Baud rate 2 400...

Page 333: ...CP One SerialPlcLink Output control 0 OFF 1 Handshaking handshake Timeout timeout Interface 0 RS 232C 1 RS 422 rsMode Baud rate 2 400 4 800 9 600 19 200 38 400 57 600 115 200 baudRate Data length 7 o...

Page 334: ...its Flow control 0 OFF 1 Xon Xoff softFlow Delimiter 0 CR 1 LF 2 CR LF delimiter Command Area type commandArea Command Area address commandMemoryAddress Response Area type responseArea Response Area a...

Page 335: ...portNo2 Ethernet PLC Link MELSEC QnU Q QnAS UdpPlcLinkM Output control 0 OFF 1 Handshaking handshake Command Area type commandArea Command Area address commandMemoryAddress Response Area type respons...

Page 336: ...pNormal Automatic 0 OFF 1 ON enableDhcp IP address ipAddress Subnet mask subnetMask Default gateway defaultGateway DNS server dns Output IP address destIpAddress Input port number portNo Output port n...

Page 337: ...ess commandMemoryAddress Response Area type responseArea Response Area address responseMemoryAddress Data Output Area type outputArea Data Output Area address outputMemoryAddress Asynchronous output 0...

Page 338: ...256 Result Data Format 3 64 DINT 2097152 Result Data Format 4 4 LREAL 4194304 Result Data Format 5 8 LREAL 8388608 Result Data Format 6 16 LREAL 16777216 Result Data Format 7 32 LREAL 1572872 Result D...

Page 339: ...DINT 256 Result Data Format 3 64 DINT 2097152 Result Data Format 4 4 LREAL 4194304 Result Data Format 5 8 LREAL 8388608 Result Data Format 6 16 LREAL 16777216 Result Data Format 7 32 LREAL 1572872 Re...

Page 340: ...2 DINT 256 Result Data Format 3 64 DINT 2097152 Result Data Format 4 4 LREAL 4194304 Result Data Format 5 8 LREAL 8388608 Result Data Format 6 16 LREAL 16777216 Result Data Format 7 32 LREAL 1572872 R...

Page 341: ...ng usage flag 1 encoderTriggerAngleA1 Phase A trigger timing usage flag 2 encoderTriggerAngleA2 Phase A trigger timing usage flag 3 encoderTriggerAngleA3 Phase A trigger timing usage flag 4 encoderTri...

Page 342: ...aving folder by scene 0 Disabled 1 Enabled imageLoggingScene Switch saving folder by judge 0 Disabled 1 Enabled imageLoggingJudge Logging priority 0 Give priority to logging 1 Give priority to measure...

Page 343: ...etails p 344 SerialPlcLinkM Serial Interface PLC Link MELSEC QnU Q QnAS communication Reference Details p 346 SerialPlcLink Serial Interface PLC Link SYSMAC CS CJ CP One communication Reference Detail...

Page 344: ...rnet BusyOut JudgeOut RunOut GetAll OK Reference GetAll p 528 PutAll OK Reference PutAll p 643 ReceiveData OK Reference ReceiveData p 651 SendData OK Reference SendData p 696 SendString OK Reference S...

Page 345: ...me Cycle time 0 1ms 100 riseTime Rise time 0 1ms 10 outputTime Output time 0 1ms 50 timeout Timeout 0 1ms 100 delayCount Number of delay 1 orOutMode One shot OR signal 0 OFF 1 ON 0 orOutputTime Time o...

Page 346: ...iew This is a module is for sending and receiving commands and data via the serial interface System data Dim data 256 Gets the five data ReceiveData ParallelIo data 4 5 size Dim data 256 Transmit the...

Page 347: ...e OK GetPort OK Reference GetPort p 542 PutPort OK Reference PutPort p 645 BusyOut JudgeOut RunOut GetAll OK Reference GetAll p 528 PutAll OK Reference PutAll p 643 ReceiveData OK Reference ReceiveDat...

Page 348: ...RS 422 0 baudRate Baud rate bps 9600 byteSize Data length bit 7 or 8 7 parity Parity 0 None 1 Odd number 2 Even number 2 stopBits Stop bits bit 0 1 1 2 1 softFlow Flow control 0 None 1 Xon Xoff 0 tim...

Page 349: ...OK GetPort OK Reference GetPort p 542 PutPort OK Reference PutPort p 645 BusyOut JudgeOut RunOut GetAll OK Reference GetAll p 528 PutAll OK Reference PutAll p 643 ReceiveData OK Reference ReceiveData...

Page 350: ...RS 422 0 baudRate Baud rate bps 9600 byteSize Data length bit 7 or 8 7 parity Parity 0 None 1 Odd number 2 Even number 2 stopBits Stop bits bit 0 1 1 2 1 softFlow Flow control 0 None 1 Xon Xoff 0 tim...

Page 351: ...rea EM6 166 EM Area EM7 167 EM Area EM8 168 EM Area EM9 169 EM Area EMA 170 EM Area EMB 171 EM Area EMC 172 IoInitialize OK GetPort OK Reference GetPort p 542 PutPort OK Reference PutPort p 645 BusyOu...

Page 352: ...Dim readData 256 Dim data3 21 Gets the data from PLC ReadPlcMemory SerialPlcLink 130 10 7 readData Gets the data of the real number type GetPlcData SerialPlcLink readData 0 8 data1 Gets the data of th...

Page 353: ...sk Subnet mask 255 255 255 0 defaultGateway Default gateway 10 5 5 110 dns DNS server 10 5 5 1 serverIpAddress Server IP address 10 5 5 101 portNo Port number to receive commands 9600 IoInitialize OK...

Page 354: ...P protocol System data Dim data 256 Dim ipaddr 4 Set the IP address of the destination ipaddr 0 10 ipaddr 1 5 ipaddr 2 5 ipaddr 3 101 Gets the five data ReceiveData TcpClient data 4 5 size ipaddr 4 4...

Page 355: ...BusyOut JudgeOut RunOut GetAll OK Reference GetAll p 528 PutAll OK Reference PutAll p 643 ReceiveData OK Reference ReceiveData p 651 SendData OK Reference SendData p 696 SendString OK Reference SendS...

Page 356: ...DHCP 0 Disabled 1 Enabled 0 ipAddress IP address of the system 10 5 5 100 subnetMask Subnet mask 255 255 255 0 defaultGateway Gateway address 10 5 5 110 dns DNS server address 10 5 5 1 destIpAddress...

Page 357: ...ess and parameter size 4 integer type domain in a parameter to use an Ethernet Dim data 256 Dim ipaddr 4 Set the IP address of the destination ipaddr 0 10 ipaddr 1 5 ipaddr 2 5 ipaddr 3 101 Gets the f...

Page 358: ...k 255 255 255 0 defaultGateway Gateway address 10 5 5 110 dns DNS server 10 5 5 1 delayCount Output IP address 0 0 0 0 portNo Input port No 9600 Identification Meaning Initial value commandArea Comman...

Page 359: ...etAll OK Reference GetAll p 528 PutAll OK Reference PutAll p 643 ReceiveData OK Reference ReceiveData p 651 SendData OK Reference SendData p 696 SendString OK Reference SendString p 698 ReadPlcMemory...

Page 360: ...pPlcLinkM readData 8 4 data2 Gets the data of the character type GetPlcData UdpPlcLinkM readData 12 5 data2 Dim writeData 256 Set the data 123 45 of the real number type SetPlcData UdpPlcLinkM writeDa...

Page 361: ...200 handshake Handshaking 1 responseTimeout Retry interval ms 10000 responseTimeout2 Retry interval 2 ms 1000 Area classification name Area classification number Data register 176 IoInitialize OK Get...

Page 362: ...the IP address of the destination ipaddr 0 10 ipaddr 1 5 ipaddr 2 5 ipaddr 3 101 Transmit the five data SendData UdpPlcLinkY data 4 5 ipaddr 4 4 Dim readData 256 Dim data3 21 Gets the data from PLC R...

Page 363: ...e system 10 5 5 100 subnetMask Subnet mask 255 255 255 0 defaultGateway Gateway address 10 5 5 110 dns DNS server DNS server address 10 5 5 1 delayCount Output IP address 0 0 0 0 portNo Input port No...

Page 364: ...166 EM Area EM7 167 EM Area EM8 168 EM Area EM9 169 EM Area EMA 170 EM Area EMB 171 EM Area EMC 172 IoInitialize OK GetPort OK Reference GetPort p 542 PutPort OK Reference PutPort p 645 BusyOut Judge...

Page 365: ...paddr 4 Set the IP address of the destination ipaddr 0 10 ipaddr 1 5 ipaddr 2 5 ipaddr 3 101 Transmit the five data SendData UdpPlcLink data 4 5 ipaddr 4 4 Dim readData 256 Dim data3 21 Gets the data...

Page 366: ...Number of figure data x 65536 figure 1 Figure 0 type information Type information of figure 0 data Includes drawing mode and figure type information Upper 16 bits Drawing mode Lower 16 bits Figure ty...

Page 367: ...ype information figure 2 X coordinate of center figure 3 Y coordinate of center figure 4 X direction radius figure 5 Y direction radius Circle 32 figure 0 Figure data header information figure 1 Figur...

Page 368: ...rtexes figure 3 First point X figure 4 First point Y figure 5 Second point X figure 6 Second point Y figure 19 9th point X figure 20 9th point Y figure 21 10th point X figure 22 10th point Y Parameter...

Page 369: ...fication 4 Index 0 model 4 registration model figure model registration 5 Index 1 model 0 registration model figure model registration 6 Index 1 model 1 registration model figure model registration 17...

Page 370: ...0 Measurement region figure region setting 2DCode 0 Measurement region figure region setting Barcode 0 Measurement region figure region setting Circle Angle 0 Measurement region figure region setting...

Page 371: ...ex 0 model 0 search model 1 Index 0 model 1 search model 2 Index 0 model 2 search model 3 Index 0 model 3 search model 4 Index 0 model 4 search model Sensitive Search 0 Search model ECM Search 0 Searc...

Page 372: ...efect 0 Precise Defect model Fine Matching 0 Fine Matching model Character inspection No model Date Verification No model Model Dictionary 0 Index 0 model 0 search model 1 Index 0 model 1 search model...

Page 373: ...o image Classification No image Edge Position No image Edge Pitch No image Scan Edge Position No image Scan Edge Width No image Circular Scan Edge Position No image Circular Scan Edge Width No image I...

Page 374: ...ransformed image Trapezoidal Correction 0 Trapezoidal corrected image Machine Simulator 0 Axis shifted image Image Subtraction 0 Subtraction image Advanced filter 0 Output image 0 1 Output image 1 2 O...

Page 375: ...ment Single Position No image Movement Multi Points No image Detection Point No image Camera Calibration No image Data Save No image Conditional Branch No image End No image DI Branch No image Control...

Page 376: ...rement object and corresponding model 2 Edge image 3 Display of edge image and corresponding model Ec Corner 0 Measurement image Ec Cross 0 Measurement image Classification 0 Measurement image Edge Po...

Page 377: ...is registered 4 Binary image Shape Search 0 Measurement image Advanced labeling 0 Measurement image 1 Color extraction image when measuring a color image Binary image when measuring a monochrome image...

Page 378: ...image Unit Macro 0 to 100 Can defined as desired Unit Calculation Macro 0 Measurement image Calculation 0 Measurement image Line Regression 0 Measurement image Circle Regression 0 Measurement image P...

Page 379: ...bration 0 Measurement image Calibration progress display 1 Measurement image Convert Position Data 0 Measurement image Movement Single Position 0 Measurement image Movement Multi Points 0 Measurement...

Page 380: ...r more images are saved Most recent NG image when less than two images are saved 2 2nd preceding NG image when three or more images are saved Most recent NG image when less than three images are saved...

Page 381: ...856MB for color image Model registration count model registration figure model parameters image size whether image is color or monochrome Sensitive Search Approx 8KB Approx 1 088MB for monochrome imag...

Page 382: ...her image is color or monochrome 2DCode Approx 12KB Approx 1MB Length of comparison character string number and length of sorting comparison character strings Barcode Approx 3KB Approx 1MB Length of c...

Page 383: ...n Approx 1KB Approx 1MB Circle radius circle width end point overlay image size Trapezoidal Correction Approx 1KB Approx 1MB Number and length of calculation expressions Machine Simulator Approx 1KB N...

Page 384: ...th of prefix Elapsed Time Approx 1KB No change Wait Approx 1KB No change Focus Approx 1KB Approx 13MB Figure in region settings image size Iris Approx 1KB Approx 13MB Figure in region settings image s...

Page 385: ...expressions number and length of comments Parallel Data Output Approx 1KB Approx 1MB Communication module settings number and length of calculation expressions number and length of comments Parallel...

Page 386: ...X Details p 415 Atn Gets the arctangent of the specified expression Arithmetic Calculation OK OK OK OK Reference X Details p 417 BusyOut Sets the output state of the processing busy signal IO Module C...

Page 387: ...tic Calculation OK OK OK OK Reference X Details p 452 Date Reads out the date from the internal clock Arithmetic Calculation OK OK OK OK Reference X Details p 454 Debug Set the program execution form...

Page 388: ...aw the wide straight line on the image window Image Window Control OK Reference X Details p 490 DrawMeasur eImage Draw the measurement image on the image window Image Window Control OK Reference X Det...

Page 389: ...p 530 GetImageSiz e Gets the image size of the processing unit image Processing unit control OK OK OK OK Reference X Details p 532 GetImageWi ndow Get the state of the image window Display control OK...

Page 390: ...nary data from the file File Control OK OK OK OK Reference X Details p 571 InsertUnit Inserts a processing unit Flow control OK OK Reference X Details p 573 Int Converts numeric value to integer value...

Page 391: ...ic Calculation OK OK OK OK Reference X Details p 610 Measure Executes measurement processing Measurement control OK OK Reference X Details p 612 MeasureDisp G Executes display of the measurement resul...

Page 392: ...state of the specified output terminal IO Module Control OK OK OK Reference X Details p 645 RaiseOption Event Notifies option events to the UI screen Others OK OK Reference X Details p 647 ReadPlcMem...

Page 393: ...ssing unit Data Save Load OK OK Reference X Details p 681 SceneCount Gets the number of scenes that can be used Scene control OK OK Reference X Details p 683 SceneDescri ption Gets the scene descripti...

Page 394: ...K Reference X Details p 713 SetSceneDe scription Sets the scene description Scene control OK OK Reference X Details p 715 SetSceneGro upTitle Sets the title of the scene group Scene group control OK O...

Page 395: ...ternal clock Arithmetic Calculation OK OK OK OK Reference X Details p 757 Timer Gets the elapsed time Others OK OK OK OK Reference X Details p 759 TotalJudge Gets the total judgement result Processing...

Page 396: ...ssing unit Processing unit control OK OK OK OK Reference X Details p 791 Ut Gets a processing unit number based on the specified unit label Scene control OK OK OK OK Reference X Details p 793 Val Conv...

Page 397: ...ccurrence and executes an exception process Reference X Details p 773 Command Function References Abs Gets the absolute value of the specified expression Reference X Details p 403 AND Gets the logical...

Page 398: ...delimiter from the string Reference X Details p 637 Right Extracts the specified length of characters from the right side of character string Reference X Details p 664 Str Converts a numeric value in...

Page 399: ...ts the processing item information Reference X Details p 582 ItemTitle Gets the processing item title Reference X Details p 584 Command Function References AssignUnit Registers the processing unit Ref...

Page 400: ...distance value Reference X Details p 767 TransformLine Applies the calibration result and position correction amount to a line component value Reference X Details p 769 TransformXY Applies the calibr...

Page 401: ...Reference X Details p 696 SendString Sends the character string data Reference X Details p 698 SetPlcData Creates the data that is written with the WritePlcMemory function Reference X Details p 709 Se...

Page 402: ...DrawPoint Draw a point on the image window Reference X Details p 493 DrawPolygon Draw a polygon on the image window Reference X Details p 495 DrawSearchFigure Draw the search figure on the image windo...

Page 403: ...Closes up the file Reference X Details p 432 Dskf Gets the free space on disk drives Reference X Details p 506 Eof Examines the end of the file Reference X Details p 510 Fcopy Copies the file Referenc...

Page 404: ...ference X Details p 796 Command Function References ElapsedTime Gets the elapsed time since starting the measurement Reference X Details p 508 ExecuteImageLogging Executes image logging Reference X De...

Page 405: ...or will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the...

Page 406: ...Series User s Manual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items GetUnitData Reference...

Page 407: ...dataIdent parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Synta...

Page 408: ...C IR Macro Reference 406 Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items GetGlobalData Reference X Details p 530 SetGlobalData Reference X Details...

Page 409: ...or will occur If an identification name that does not exist is specified in the dataIdent0 parameter an Illegal function call error will occur If a character string longer than 255 characters is speci...

Page 410: ...40 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items AddGlobalData Reference XDetails p 405 GetSy...

Page 411: ...If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error wil...

Page 412: ...FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items GetUnitData Reference X Details p 552 NOT Reference X Details p 626 OR Reference X Details p 635 UnitData Referenc...

Page 413: ...or equal to the number specified in the count parameter are stored without adding element numbers but adding to the variables If an incorrect data type is specified for a parameter a Type mismatch err...

Page 414: ...o Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Dim X 3 Y 3 Rem Assign the three values of the coordinate value to the array X 0 50...

Page 415: ...ter string longer than 255 characters is specified for a character string parameter an error will not occur If a value is assigned to the return value variable or the variable is not used in an expres...

Page 416: ...ence X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 591 Len Reference X Details p 593 Mid Reference X Details p 621 Piece Reference X Details p 637 Right Reference X Detail...

Page 417: ...legal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will...

Page 418: ...CheckUnit Reference X Details p 425 CopyUnit Reference X Details p 442 DeleteUnit Reference X Details p 460 InsertUnit Reference X Details p 573 MeasureStart Reference X Details p 617 MeasureStop Refe...

Page 419: ...he return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting...

Page 420: ...418 Vision System FH FZ5 Series User s Manual Z340 Related Items Cos Reference X Details p 450 GetUnitData Reference X Details p 552 Sin Reference X Details p 743 Tan Reference X Details p 755 UnitDat...

Page 421: ...or will occur Even if an output status parameter value that does not exist i e other than 0 and 1 is specified in the state parameter an error will not occur If the format is written incorrectly such...

Page 422: ...FZ5 Series User s Manual Z340 Related Items GetAll Reference X Details p 528 GetPort Reference X Details p 542 JudgeOut Reference X Details p 585 PutAll Reference X Details p 643 PutPort Reference X...

Page 423: ...ction that is not registered is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a Str...

Page 424: ...heck the operations and debug with external devices disconnected from the sensor controller in advance To operate this macro function in an actual environment with external devices connected to always...

Page 425: ...me incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurement in progress signal i...

Page 426: ...macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurement in...

Page 427: ...lue is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name i...

Page 428: ...ssignUnit Reference X Details p 415 CopyUnit Reference X Details p 442 DeleteUnit Reference X Details p 460 InsertUnit Reference X Details p 573 MeasureStart Reference X Details p 617 MeasureStop Refe...

Page 429: ...tion of data types or values is specified for a parameter an Illegal function call error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overfl...

Page 430: ...tails p 413 Hex Reference X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 591 Len Reference X Details p 593 Mid Reference X Details p 621 Piece Reference X Details p 637 Rig...

Page 431: ...occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute t...

Page 432: ...ng the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurem...

Page 433: ...such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or...

Page 434: ...e accessing processes such as data writing to a file and data reading from a file may not be completed properly in the following cases This macro function is not executed This macro function is used i...

Page 435: ...trol Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items DATA 10 Rem Open the file Open E input dat For Output As 1 Rem Write the data in the opened fil...

Page 436: ...re the OpenTextData function is used The message file cannot properly be closed and this macro function may not properly be executed in the subsequent processes in the following cases This macro funct...

Page 437: ...Unit Macro Supported Versions Version 5 00 or later Related Items MEASUREDISPT Rem Get the measurement result GetUnitData 5 5 CR Rem Open the messages file OpenTextData Search As 1 Rem Get the text T...

Page 438: ...ting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Parameter name Data type Description mode Integer type Resuming method of the stopped program This param...

Page 439: ...cro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Items Macro U1 220 Stop Macro U1 Stop in 220 Macro U1 230 POS X POS0 X POS1 X 2 Macro U1...

Page 440: ...ied for a parameter an Illegal function call error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If the format is w...

Page 441: ...ro Reference 439 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items CopyUnitImage Reference X Details p 446 SetMeasureImage Reference X...

Page 442: ...llegal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will...

Page 443: ...data an Illegal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error e...

Page 444: ...unit number of the processing unit of the copy destination is moved down by 1 When 0 is specified in the mode parameter specify different values in the srcUnitNo parameter and destUnitNo parameter If...

Page 445: ...ro Supported Versions Version 3 50 or later Related Items AssignUnit Reference X Details p 415 CheckUnit Reference X Details p 425 DeleteUnit Reference X Details p 460 InsertUnit Reference X Details p...

Page 446: ...or will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Ex...

Page 447: ...he measurement region figure of the Shape Search III processing item is figure 1 Useable Modules Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Rel...

Page 448: ...parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values are specified for a parameter an Illegal function call error will occur If a...

Page 449: ...rted Versions Version 3 50 or later Related Items Rem Calculate the image buffer number MYIMAGENO MYIMAGENO 1 Rem Overwrite the 32nd and following images in order from the oldest image If MYIMAGENO 31...

Page 450: ...m for measurement there is also the model data model figure model parameter and other information The model information varies by processing item and correct operation does not always result from simp...

Page 451: ...gure of Shape Search III CopyUnitFigure 0 2 0 3 0 Rem Copy the detection point setting of Shape Search III GetUnitData 2 detectionPosX PosX GetUnitData 2 detectionPosY PosY SetUnitData 3 detectionPosX...

Page 452: ...ismatch error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as w...

Page 453: ...ppendices Vision System FH FZ5 Series User s Manual Z340 Related Items Atn Reference X Details p 417 GetUnitData Reference X Details p 552 Sin Reference X Details p 743 Tan Reference X Details p 755 U...

Page 454: ...ines gotten with the Lsqumeth function If an undefined array is specified a parameter an Undefined label error will occur If an incorrect data type is specified for a parameter a Type mismatch error w...

Page 455: ...2 Rem Rem Initialize variables for straight line 1 For I 0 To 3 GetUnitData I 1 X POS1X I GetUnitData I 1 Y POS1Y I Next Rem Get the straight line 1st component Lsqumeth 4 POS1X POS1Y PARAM1 Rem Rem...

Page 456: ...d as a value from 00 to 80 representing 2000 to 2080 The internal clock can be adjusted in Date time Settings under System settings Reference XSetting the Date and Time Date time Setting p 291 If a va...

Page 457: ...em FH FZ5 Series User s Manual Z340 Related Items GetSystemData Reference X Details p 546 Mid Reference X Details p 621 Piece Reference X Details p 637 Print Reference X Details p 639 SetSystemData Re...

Page 458: ...ror will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions N...

Page 459: ...le Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Items MCRINIT Rem Output an error description to the syste...

Page 460: ...ith the Debug function Specifying other values than the range above will treat the statement with this function in the same manner with the Rem function i e ignores the statement Reference XHow to Use...

Page 461: ...ommunication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Items Cont Reference X Details p 436 Debug Reference X Details p 456 List Reference X Details p 597 Print Referen...

Page 462: ...incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurement in progress signal is...

Page 463: ...An array variable and a variable with the same name are treated as different variables If a defined array variable is redefined the previously defined variable is released before redefinition If an i...

Page 464: ...window according to the set image display sub number in the image window of the main screen MEASUREDISPG Rem Get the displayed sub image number SUBNO DisplaySubNo Rem Change the display on the image...

Page 465: ...anual Z340 Useable Modules Unit macro Supported Versions Version 3 50 or later Related Items Return DrawTextG Reference X Details p 502 SetTextStyle Reference X Details p 727 UnitJudge Reference X Det...

Page 466: ...n expression a Syntax error error will occur Usage Cautions None Example In the communication command macro gets the processing unit number selected in the flow window Useable Modules Scene Control Ma...

Page 467: ...ing the Goto or Gosub function unexpected operation may occur If neither the Do statement nor the Loop While statement is used either the DO without LOOP LOOP without DO or EXIT without DO error will...

Page 468: ...NNC IR Macro Reference 466 Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items For To Step Next Reference X Details p 526 Print Reference X Details p...

Page 469: ...n point for a line gotten with the Lsqumeth function If an undefined array is specified a parameter an Undefined label error will occur If an incorrect data type is specified for a parameter a Type mi...

Page 470: ...POSY 3 PARAM 2 DIST 3 Rem Initialize variables for straight line For I 0 To 3 GetUnitData I 1 X POSX I GetUnitData I 1 Y POSY I Next Rem Get the straight line component Lsqumeth 4 POSX POSY PARAM SUMD...

Page 471: ...e unitNo parameter normally specify the processing unit number of the Unit Macro processing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error...

Page 472: ...the string at the fixed position regardless of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is use...

Page 473: ...cessing unit number of the Unit Macro processing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numeri...

Page 474: ...s 5 6 7 8 and 9 respectively To display the arc at the fixed position regardless of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit wher...

Page 475: ...an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values are specified for a parameter an Il...

Page 476: ...mpensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable Modules Unit macro Supported...

Page 477: ...sing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or va...

Page 478: ...pectively To display the string at the fixed position regardless of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDIS...

Page 479: ...processing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data type...

Page 480: ...Data numbers 5 6 7 8 and 9 respectively To display the string at the fixed position regardless of the position compensation result specify the assigned processing unit number to this Unit Macro proces...

Page 481: ...g unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or value...

Page 482: ...gardless of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable M...

Page 483: ...processing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data type...

Page 484: ...is parameters are 1000 1100 1200 and 1300 respectively To display the string at the fixed position regardless of the position compensation result specify the assigned processing unit number to this Un...

Page 485: ...processing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types...

Page 486: ...ent number used for the figure data Useable Modules Unit macro Supported Versions Version 3 50 or later Related Items MEASUREDISPG Dim FIGURE1 255 FIGURE2 255 FIGURE3 255 FIGURE4 255 Rem Get the figur...

Page 487: ...y such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions This macro function can only be used in the MEASURE...

Page 488: ...parameter an Overflow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error wil...

Page 489: ...FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items DrawText Reference X Details p 500 GetUnitData Reference X Details p 552 UnitData Reference X Details p 778 UnitJud...

Page 490: ...orrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal f...

Page 491: ...s of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable Modules...

Page 492: ...n incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Ille...

Page 493: ...regardless of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable...

Page 494: ...pecified as an integer parameter an Overflow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a...

Page 495: ...ing unit that executes this process If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or val...

Page 496: ...ess of the position compensation result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable Module...

Page 497: ...in the imageNo parameter In the unitNo parameter normally specify the processing unit number of the Unit Macro processing unit that executes this process If an incorrect data type is specified for a...

Page 498: ...result specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable Modules Unit macro Supported Versions V...

Page 499: ...normally specify detection points X and Y of the referenced search processing unit In the measureX parameter the measureY parameter and the measureAngle parameter normally specify the measurement coor...

Page 500: ...ow error will occur If a value outside the range 1 0E30 to 1 0E30 is specified for a double precision real number parameter an Overflow error might occur If the format is written incorrectly such as w...

Page 501: ...40 Useable Modules Unit macro Supported Versions Version 3 50 or later Related Items GetUnitData Reference X Details p 552 Int Reference X Details p 575 SetDrawStyle Reference X Details p 700 UnitData...

Page 502: ...47483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If a character string longer than 255 characters is specified for a character string parameter a String too lon...

Page 503: ...Get the measurement result GetUnitData 5 6 X GetUnitData 5 7 Y GetUnitData 5 8 TH Rem Draw the delimiter after drawing the character string with the OK judgement color without adding any line break Dr...

Page 504: ...or a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur I...

Page 505: ...ult specify the assigned processing unit number to this Unit Macro processing unit where the MEASUREDISPG subroutine is used for the unitNo parameter Useable Modules Unit macro Supported Versions Vers...

Page 506: ...ange 2147483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comm...

Page 507: ...ision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items DrawFillImage Reference X Details p 485 DrawMeasureImage Reference X Details p 492 UnitNo Reference...

Page 508: ...for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width s...

Page 509: ...n System FH FZ5 Series User s Manual Z340 Related Items Fcopy Reference X Details p 522 IsFile Reference X Details p 577 Kill Reference X Details p 587 Mkdir Reference X Details p 623 PutPort Referenc...

Page 510: ...cur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Example...

Page 511: ...es User s Manual Z340 Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items Return DrawText Reference X Details p 500 StartTimer Reference X Details...

Page 512: ...rror will occur If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Ov...

Page 513: ...ntrol Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Next Rem Close up the file Close 1 Close Reference X Details p 432 Input Reference X Details p...

Page 514: ...eing released its allocated memory area is released before the redefinition If variables other than array variables are specified in the array parameter Syntax error will occur If the format is writte...

Page 515: ...ration a null string is returned Use this macro function in the Try Catch End Try statement If a value is assigned to the return value variable or the variable is not used in an expression a Syntax er...

Page 516: ...User s Manual Z340 Supported Versions Version 3 50 or later Related Items Errno Reference X Details p 515 GetUnitData Reference X Details p 552 Print Reference X Details p 639 SetUnitData Reference X...

Page 517: ...riable is not used in an expression a Syntax error error will occur Usage Cautions None Example Uses the Try Catch End Try statement in the MEASUREPROC subroutine of the Unit Macro processing unit to...

Page 518: ...WW NNC IR Macro Reference 516 Vision System FH FZ5 Series User s Manual Z340 Related Items Errcmnd Reference X Details p 513 Print Reference X Details p 639 Try Catch End Try Reference X Details p 773...

Page 519: ...ile name If an empty string is specified in the header parameter no header character string is added to the file name If an incorrect data type is specified for a parameter a Type mismatch error will...

Page 520: ...rectory set as the logged files destination in the system settings After the measurement a file with file name new_2012 11 01_13 11 25 0025 ifz is saved under C temp Image Useable Modules Unit macro S...

Page 521: ...s executed on the sensor controller turn OFF the power to the sensor controller after the execution Usage Cautions None Example After saving the data to the controller terminates the controller Useabl...

Page 522: ...error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value is assigned to the re...

Page 523: ...ppendices Vision System FH FZ5 Series User s Manual Z340 Related Items Cos Reference X Details p 450 GetUnitData Reference X Details p 552 Log Reference X Details p 609 Sin Reference X Details p 743 U...

Page 524: ...xternal memory If only the directory name is specified in the srcPath parameter or the dstPath parameter an Illegal function call error will occur If an incorrect data type is specified for a paramete...

Page 525: ...ystem FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items Dskf Reference X Details p 506 IsFile Reference X Details p 577 Kill Reference X Details p 587 Mkdir Refer...

Page 526: ...or example Int 7 2 returns 8 and Fix 7 2 returns 7 If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value is assigned to the return value variable or the va...

Page 527: ...ce 525 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items Int Reference X Details p 575 GetUnitData Reference X Details p 552 UnitData R...

Page 528: ...peating operation immediately If the program process is jumped into or out of the For block statement using the Goto or Gosub function the resulting operation may be unpredictable If neither the For s...

Page 529: ...nits Processing Unit numbers 6 to 9 respectively Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Item...

Page 530: ...er Normally ParallelIo should be specified in the ioIdent parameter If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value is assigned to the return value v...

Page 531: ...tem FH FZ5 Series User s Manual Z340 Related Items BusyOut Reference X Details p 419 GetPort Reference X Details p 542 JudgeOut Reference X Details p 585 PutAll Reference X Details p 643 PutPort Refer...

Page 532: ...or values is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified in the dataIdent parameter a String too long error will o...

Page 533: ...Z5 Series User s Manual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items AddGlobalData Refe...

Page 534: ...name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Use this macro function with the measurement image displayed after one or more measureme...

Page 535: ...ger type Image window number to get the status locationX Integer type Upper left X coordinate value of the image window locationY Integer type Upper left Y coordinate value of the image window width I...

Page 536: ...s stored In the originX parameter and the originY parameter specify the variables that store the values of the relative coordinates from the upper left coordinates of the gotten image window to the up...

Page 537: ...er Related Items For I 0 To 3 Rem Get the state of the image window GetImageWindow I LOCATIONX LOCATIONY WIDTH HEIGHT UNITNO SUBNO MAG ORIGINX ORIGINY UPDATE VISIBLE Rem Change the update timing to Th...

Page 538: ...error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurement in progress signal is ON and measurement is prohibited Reference XState Transitions and Execution...

Page 539: ...IR Macro Reference 537 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Related Items SendData Reference X Details p 696 SendString Reference X Details p 698 SetMeasureOut Reference X Detai...

Page 540: ...l number In the data parameter specify the variable that will store the gotten data If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number num...

Page 541: ...UdpPlcLink Rem Get the settings of the output data area GetSystemData IOMODULE outputArea AREA GetSystemData IOMODULE outputMemoryAddress ADDRESS Rem Create the integer array variable to store the rea...

Page 542: ...used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax...

Page 543: ...in the system status console window If SIZE 0 Then Print Received data size Str SIZE Endif Loop While SIZE 0 Rem Data has been received so set the polling state of the communication module to running...

Page 544: ...ismatch error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as w...

Page 545: ...les Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items IOMODULE ParallelIo Rem Get the input state STATE GetPort IOMODULE 7 BusyOut Refer...

Page 546: ...nction call error will occur Even if a combination of different data types is specified as parameters an error will not occur If an incorrect data type is specified for a parameter a Type mismatch err...

Page 547: ...es Vision System FH FZ5 Series User s Manual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Ite...

Page 548: ...error will occur If an identification name that does not exist is specified as the parameter an Illegal function call error will occur If a character string longer than 255 characters is specified in...

Page 549: ...rol Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the screen capture destination folder that belongs to the measurement control settings G...

Page 550: ...ll error will occur Even if an identification name that does not exist is specified in the textIdent parameter an error will not occur If an identification name that does not exist is specified for a...

Page 551: ...it Macro Supported Versions Version 5 00 or later Related Items MEASUREDISPT Rem Get the measurement result GetUnitData 5 5 CR Rem Open the messages file OpenTextData Search As 1 Rem Get the text TEXT...

Page 552: ...e mismatch error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usa...

Page 553: ...Z340 Supported Versions Version 3 50 or later Related Items DisplayUnitNo Reference X Details p 464 GetImageWindow Reference X Details p 533 SetDisplayUnitNo Reference X Details p 699 SetTextWindow Re...

Page 554: ...t is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Example Gets the judgem...

Page 555: ...ommand Macro Unit Macro Supported Versions Version 3 50 or later Related Items GetUnitFigure Reference X Details p 554 SetUnitData Reference X Details p 731 SetUnitFigure Reference X Details p 733 Uni...

Page 556: ...Illegal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error wil...

Page 557: ...Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items GetUnitFigure Reference X Details p 554 SetUnitData Reference X Details p 731 SetUnit...

Page 558: ...e specified label does not exist for a parameter an Undefined label error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitti...

Page 559: ...WWW NNC IR Macro Reference 557 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items Goto Reference X Details p 558...

Page 560: ...ctly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Example Uses the MEASUREPROC subroutine in...

Page 561: ...dices Vision System FH FZ5 Series User s Manual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related...

Page 562: ...recision real number type expression in the expression parameter convert the expression to the integer type with Fix or Int in advance If an incorrect data type is specified for a parameter a Type mis...

Page 563: ...3 50 or later Related Items Rem Get the measurement result of the processing unit GetUnitData 5 20 CHARA1 Rem Convert the character to the character code CODE Asc CHARA1 Rem Convert the character code...

Page 564: ...umped to the line with a label name specified in the label parameter If the Else part statement is omitted the process flow is controlled only when the specified condition by the expression parameter...

Page 565: ...Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Print NG Return Gosub Reference X Details p 556 If Then Elseif Else EndIf Reference X Detai...

Page 566: ...t parameter is executed If there are multiple of If Elseif and Else statements having a true logical expression within the statement only the first statement from the beginning of the block statement...

Page 567: ...on Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items MEASUREDISPT Rem Get the measurement result GetUnitData 1 5 RESULT Rem Branch...

Page 568: ...a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value outside the range 2147483648 to 214748364...

Page 569: ...rted Versions Version 3 50 or later Related Items MEASUREDISPT Rem Get the judgement result of the processing unit JUDGE UnitJudge UnitNo Rem Get the image format FORMAT ImageFormat UnitNo 0 If FORMAT...

Page 570: ...t image from the camera Usage Cautions None Example In the communication command macro updates an image displayed in Camera Image Freeze image mode to the most recent image Useable Modules Scene Contr...

Page 571: ...an Illegal function call error will occur If a file number of the opened file by a macro function other than the Open For Input As function is specified in the fileNo parameter an Illegal function cal...

Page 572: ...later Related Items Dim ALLDATA 255 Rem Open the file Open E input dat For Input As 1 For I 0 to 255 Rem Read line by line from the top of the file Input 1 DATA ALLDATA I DATA Rem Check if the end of...

Page 573: ...ta is specified in the length parameter an Illegal function call error will occur If an unopened file number is specified in the fileNo parameter an Illegal function call error will occur If a file nu...

Page 574: ...l Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Open the file Open E input dat For Input As 1 Rem Read 6 bytes of data from the file DATA Inpu...

Page 575: ...does not exist is specified as the itemIdent parameter an Illegal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a com...

Page 576: ...AssignUnit Reference X Details p 415 CheckUnit Reference X Details p 425 CopyUnit Reference X Details p 442 DeleteUnit Reference X Details p 460 MeasureStart Reference X Details p 617 MeasureStop Refe...

Page 577: ...lue greater than the specified negative value For example Fix 7 2 returns 7 and Int 7 2 returns 8 If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value is...

Page 578: ...anual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Fix Reference X Details p 524 GetUni...

Page 579: ...inserted to the sensor controller 0 There is no file is returned If an incorrect data type is specified for a parameter a Type mismatch error will occur Even if a character string longer than 255 cha...

Page 580: ...Reference X Details p 506 Fcopy Reference X Details p 522 GetSystemData Reference X Details p 546 Kill Reference X Details p 587 Open For Append As Reference X Details p 627 Open For Input As Referen...

Page 581: ...Example Gets the number of processing item types and by repeated processing searches for search processing items and gets the processing item type of each search processing item Useable Modules Scene...

Page 582: ...expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error erro...

Page 583: ...581 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items ItemCount Reference X Details p 579 ItemInfo Reference X Details p 582 ItemTitle...

Page 584: ...ccur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro fun...

Page 585: ...Command Macro Supported Versions Version 3 50 or later Related Items Rem Get the number of the available processing items INUM ItemCount Rem Search for search processing items a number of times equal...

Page 586: ...or error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cauti...

Page 587: ...r an error will not occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage...

Page 588: ...ed Versions Version 3 50 or later Related Items BusyOut Reference X Details p 419 GetAll Reference X Details p 528 GetPort Reference X Details p 542 RunOut Reference X Details p 667 PutAll Reference X...

Page 589: ...specified for a parameter a Type mismatch error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the form...

Page 590: ...d 1280 720 bmp under the directory M Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Kill M 128...

Page 591: ...character will be discarded If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such a...

Page 592: ...rence X Details p 427 Hex Reference X Details p 560 Left Reference X Details p 591 Len Reference X Details p 593 Mid Reference X Details p 621 Piece Reference X Details p 637 Right Reference X Details...

Page 593: ...r less number is specified in the length parameter an Illegal function call error will occur If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value outside...

Page 594: ...Macro Unit Macro Supported Versions Version 3 50 or later Related Items CHARA Measurement Result Rem Extract 11 byte length of characters from the left side of the character string TITLE Left CHARA 1...

Page 595: ...a character string longer than 255 characters is specified for a character string parameter an error will not occur If a value is assigned to the return value variable or the variable is not used in...

Page 596: ...ence X Details p 427 Hex Reference X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 591 Mid Reference X Details p 621 Piece Reference X Details p 637 Right Reference X Detail...

Page 597: ...s a double quoted character string the double quotation marks are also read as characters If an unopened file number is specified in the fileNo parameter an Illegal function call error will occur If a...

Page 598: ...later Related Items Dim ALLDATA 255 Rem Open the file Open E input dat For Input As 1 For I 0 to 255 Rem Read line by line from the top of the file Line Input 1 DATA ALLDATA I DATA Rem Check if the en...

Page 599: ...pecified for a parameter an Undefined line number error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width sp...

Page 600: ...ersion 3 50 or later Related Items Cont Reference X Details p 436 Debug Reference X Details p 456 DebugPrint Reference X Details p 458 Print Reference X Details p 639 SetStop Reference X Details p 723...

Page 601: ...55 characters is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma...

Page 602: ...rsions Version 3 50 or later Related Items GetSystemData Reference X Details p 546 LoadScene Reference X Details p 601 LoadSceneGroup Reference X Details p 603 LoadSystemData Reference X Details p 605...

Page 603: ...Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the format is written incorr...

Page 604: ...lated Items ChangeScene Reference X Details p 423 GetSystemData Reference X Details p 546 LoadBackupData Reference X Details p 599 LoadSceneGroup Reference X Details p 603 LoadSystemData Reference X D...

Page 605: ...eter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the format is writte...

Page 606: ...ed Items ChangeScene Reference X Details p 423 GetSystemData Reference X Details p 546 LoadBackupData Reference X Details p 599 LoadScene Reference X Details p 601 LoadSystemData Reference X Details p...

Page 607: ...or combination of data types or values is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string para...

Page 608: ...rsion 3 50 or later Related Items Rem Load the file of the system data LoadSystemData C BACKDIR backupsysset ini Rem Save to the controller SaveData Rem Reboot the Sensor Controller SystemReset GetSys...

Page 609: ...ype is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call...

Page 610: ...ion Command Macro Supported Versions Version 3 50 or later Related Items Rem Load the file of the scene data LoadUnitData 2 4 5 1 C BACKDIR unitsave unt GetSystemData Reference X Details p 546 LoadBac...

Page 611: ...ue is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name in...

Page 612: ...greater than or equal to the number specified in the count parameter without adding element numbers but adding to the variables This macro function is mainly used to get the straight line of an edge...

Page 613: ...on 3 50 or later Related Items Dim POSX 3 POSY 3 PARAM 2 Rem Calculate the edge points from the measurement result For I 0 To 3 GetUnitData I 1 X POSX I GetUnitData I 1 Y POSY I Next Rem Get the strai...

Page 614: ...parameter an Overflow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error wil...

Page 615: ...FZ5 Series User s Manual Z340 Useable Modules Scene Control Macro Communication Command Macro Supported Versions Version 3 50 or later Related Items MeasureStart Reference X Details p 617 MeasureStop...

Page 616: ...47483647 is specified as an integer parameter an Overflow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half...

Page 617: ...identification If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur Usage Cautions This macro function can only be used in t...

Page 618: ...specified for a parameter an Illegal function call error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If the forma...

Page 619: ...e sure to execute the MeasureStop function If the MeasureStop function is not executed or the MeasureStart function is executed without executing the MeasureStop function unexpected operation may occu...

Page 620: ...ment Y coordinate is external reference data number 7 Useable Modules Scene Control Macro Communication Command Macro Supported Versions Version 3 50 or later Related Items Rem Set multi point output...

Page 621: ...xecuted in the measurement allowed state and in the measurement prohibited state For details refer to the explanations of the macro functions and usage cautions When measurement trigger input is prohi...

Page 622: ...ent Y coordinate is external reference data number 7 Useable Modules Scene Control Macro Communication Command Macro Supported Versions Version 3 50 or later Related Items Rem Set multi point output t...

Page 623: ...legal function call error will occur If 0 or smaller value is specified in the start parameter or length parameter an Illegal function call error will occur If an incorrect data type is specified for...

Page 624: ...ation Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items INPUTSTR ABCDEFG Rem Extract four characters from the second character of the character string OUTPUTSTR1 Mid INPU...

Page 625: ...pecified for a parameter a Type mismatch error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the forma...

Page 626: ...ccur If 0 is specified in the expression2 parameter a Division by zero error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error...

Page 627: ...tting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or other measurement in progress signal is ON and measureme...

Page 628: ...r an Overflow error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly suc...

Page 629: ...the file to be opened If the file of the file name specified in the fileName parameter does not exist the file is newly created If the file of the file name specified in the fileName parameter already...

Page 630: ...50 or later Related Items STRING Sample Rem Open the file Open E input txt For Append As 1 Print 1 STRING Rem Close up the file Close 1 Close Reference X Details p 432 Eof Reference X Details p 510 G...

Page 631: ...he fileName parameter use an absolute path to specify the file name of the file to be opened If the file of the file name specified in the fileName parameter does not exist an Illegal function call er...

Page 632: ...0 to 255 Rem Read line by line from the top of the file Input 1 DATA ALLDATA I DATA Rem Check if the end of the file is reached If Eof 1 0 Then Exit For Endif Next Rem Close up the file Close 1 Close...

Page 633: ...the file of the file name specified in the fileName parameter does not exist an Illegal function call error will occur If the file of the file name specified in the fileName parameter already exists t...

Page 634: ...ms DATA 10 Rem Open the file Open E input dat For Output As 1 Rem Write the data in the opened file Print 1 DATA Rem Close the opened file Close 1 Close Reference X Details p 432 Eof Reference X Detai...

Page 635: ...DataNo parameter an Illegal function call error will occur If the text data number that is already opened is specified in the textDataNo parameter an Illegal function call error will occur If an incor...

Page 636: ...acro Supported Versions Version 5 00 or later Related Items MEASUREDISPT Rem Get the measurement result GetUnitData 5 5 CR Rem Open the messages file OpenTextData Search As 1 Rem Get the text TEXT Get...

Page 637: ...parameter a Type mismatch error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If a value is assigned to the return...

Page 638: ...FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items AND Reference X Details p 409 GetUnitData Reference X Details p 552 UnitData Reference X Details p 778 NOT Referenc...

Page 639: ...cur If 0 or smaller value is specified in the start parameter or end parameter an Illegal function call error will occur If a larger value than the number of separated portions is specified in the end...

Page 640: ...LIMITER Rem Extract the first substring of the character string OUTPUTSTR1 Piece INPUTSTR DELIMITER 1 1 Rem Extract the third and forth substrings from the character string OUTPUTSTR2 Piece INPUTSTR D...

Page 641: ...icolon and comma are specified at the end of parameters a line break is added after all the parameters are output to the system status console window If a non existent number numerical value or combin...

Page 642: ...le Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the measurement result GetUnitData 2 5 CR Ge...

Page 643: ...r is specified in the fileNo parameter an Illegal function call error will occur If a file number of the opened file by a macro function other than the Open For Append As function and the Open For Out...

Page 644: ...culation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items STRING Sample Rem Open the file Open E input txt For Append As 1 Print...

Page 645: ...r If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value outside the range 2147483648 to 2147...

Page 646: ...ol Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items BusyOut Reference X Details p 419 GetAll Reference X Details p 528 GetPort Reference X Details p...

Page 647: ...ication module to be used always ParallelIo Reference XList of I O Modules p 341 portNo Integer type Terminal number of output terminal whose output state is to be set Parallel I O FH DO0 to DO15 0 to...

Page 648: ...xist i e other than 0 and 1 is specified in the state parameter an error will not occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error wil...

Page 649: ...uch as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Through the use of the FH AP1 Application Producer sold separately it...

Page 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...

Page 651: ...element array should be prepared with the readData parameter and 2 should be specified in the channelCount parameter If a size larger than the array size specified in the readData parameter is specif...

Page 652: ...cLink Rem Get the settings of the output data area GetSystemData IOMODULE outputArea AREA GetSystemData IOMODULE outputMemoryAddress ADDRESS Rem Create the integer array variable to store the read dat...

Page 653: ...ter If the desired data is not received the first time the macro function is executed execute repeatedly until all data has been received If an incorrect data type is specified for a parameter a Type...

Page 654: ...ata size SIZE 0 Repeat the reception process until the data has been received Try Do Rem Attempting the data reception ReceiveData IOMODULE BUFFER 12 SIZE Rem Once the data has been received display t...

Page 655: ...ne Example In the communication command macro updates an image displayed in Camera Image Freeze image mode to the most recent image Useable Modules Communication Command Macro Scene Control Macro Supp...

Page 656: ...on Updates the judgement window Usage Cautions None Example Updates the judgement window in the communication command macro Useable Modules Communication Command Macro Scene Control Macro Supported Ve...

Page 657: ...lculation expression 0 of the calculation processing unit of Processing Unit number 5 of the current scene and then updating the display of the text window Calculation result of calculation expression...

Page 658: ...the information window Usage Cautions None Example Updates the display of the information window in the communication macro Useable Modules Communication Command Macro Scene Control Macro Supported Ve...

Page 659: ...same line If a comment and another type of statement are written in one same line the comment may not be correctly recognized and the program may not operate properly Example Inserts a comment statem...

Page 660: ...urement result cannot be properly gotten If you want to get the measurement result specify 1 or 2 for the wait parameter If an incorrect data type is specified for a parameter a Type mismatch error wi...

Page 661: ...search processing unit of Processing Unit number 2 after remeasurement is executed using the most recent logging image The measured X and Y coordinates can be gotten with External Reference Data numbe...

Page 662: ...a Syntax error error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur...

Page 663: ...es Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items DeleteUnit Reference X Details p 460 InsertUnit Reference X Details p 573 UnitNo Reference X De...

Page 664: ...value is handled as being 255 If an incorrect data type is specified for a parameter a Type mismatch error will occur Even if a non existent number numerical value or combination of data types or valu...

Page 665: ...n System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items DrawFillImage Reference X Details p 485 DrawText Reference X Details p 500 SetDrawStyle Reference X Det...

Page 666: ...e character string in the parameter is extracted If 0 or less number is specified in the length parameter an Illegal function call error will occur If an incorrect data type is specified for a paramet...

Page 667: ...n Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items CHARA Measurement Result Rem Extract 6 byte length of characters from the right side of the character string TITLE Rig...

Page 668: ...ismatch error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as...

Page 669: ...output status parameter value that does not exist i e other than 0 and 1 is specified in the state parameter an error will not occur If the format is written incorrectly such as writing the macro fun...

Page 670: ...FZ5 Series User s Manual Z340 Related Items BusyOut Reference X Details p 419 GetAll Reference X Details p 528 GetPort Reference X Details p 542 JudgeOut Reference X Details p 585 PutAll Reference X...

Page 671: ...itten incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when th...

Page 672: ...utions Execute this macro function when the BUSY signal or other measurement in progress signal is ON and measurement is prohibited Reference XState Transitions and Execution Timing p 227 Example Save...

Page 673: ...f an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an I...

Page 674: ...NNC IR Macro Reference 672 Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items GetSystemData Reference X Details p 546 Remeasure Reference X Details p...

Page 675: ...y a value of at least 1 in the sizeX and sizeY parameters If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combinatio...

Page 676: ...ntire image of measurement image 0 in a file in BMP format Useable Modules Unit macro Supported Versions Version 4 00 or later Related Items SaveMeasureImage 0 C IMAGE sample bmp 0 GetImageSize Refere...

Page 677: ...is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur...

Page 678: ...emData Reference X Details p 546 LoadScene Reference X Details p 601 SaveBackupData Reference X Details p 669 SaveData Reference X Details p 670 SaveSceneGroup Reference X Details p 677 SaveSystemData...

Page 679: ...for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the forma...

Page 680: ...ata Reference X Details p 546 LoadSceneGroup Reference X Details p 603 SaveBackupData Reference X Details p 669 SaveData Reference X Details p 670 SaveScene Reference X Details p 675 SaveSystemData Re...

Page 681: ...occur If a character string longer than 255 characters is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro f...

Page 682: ...ted Items GetSystemData Reference X Details p 546 LoadSystemData Reference X Details p 605 SaveBackupData Reference X Details p 669 SaveData Reference X Details p 670 SaveScene Reference X Details p 6...

Page 683: ...overwritten If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a...

Page 684: ...d Items Rem Save Processing Unit number 2 to Processing Unit number 4 of the current scene in a processing unit data file SaveUnitData 1 2 3 C BACKDIR unitsave unt GetSystemData Reference X Details p...

Page 685: ...t can be used If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur Usage Cautions None Example Gets the number of scenes tha...

Page 686: ...ue or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value is assigned to the return value variable or the variable is not used in an e...

Page 687: ...ystem FH FZ5 Series User s Manual Z340 Related Items SceneMaker Reference X Details p 689 SceneTitle Reference X Details p 692 SetSceneDescription Reference X Details p 715 SetSceneMaker Reference X D...

Page 688: ...s If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur Usage Cautions None Example Gets the number of useable scene groups U...

Page 689: ...r will occur Usage Cautions None Example Gets the scene group number of the current scene group and if the scene group number is 2 change to scene 3 Useable Modules Scene Control Macro Communication C...

Page 690: ...ing Scenes p 62 If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for...

Page 691: ...existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value is assigned to the return value variable or th...

Page 692: ...Z5 Series User s Manual Z340 Related Items SceneDescription Reference X Details p 684 SceneTitle Reference X Details p 692 SetSceneDescription Reference X Details p 715 SetSceneMaker Reference X Detai...

Page 693: ...is not used in an expression a Syntax error error will occur Usage Cautions None Example Gets the scene number of the current scene and if not 2 changing to scene 2 Useable Modules Scene Control Macro...

Page 694: ...erical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a value is assigned to the return value variable or the variable is not us...

Page 695: ...t is overwritten If an incorrect data type is specified for a parameter a Type mismatch error will occur If a character string longer than 255 characters is specified for a character string parameter...

Page 696: ...that matches a result value of the expression is executed Case block statements and Case Else block statement are optional If the program process is jumped into or out of the Case and Case Else block...

Page 697: ...it 1 is displayed with the color in accordance with the judgment result SetTextStyle 24 TA_LEFT UnitJudge 1 0 FONTSTYLE_NORMAL TEXT UnitTitle 1 Case 2 Rem If the gotten sub image number is 2 the title...

Page 698: ...f an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an I...

Page 699: ...the destination address information 10 1 1 101 Dim IPADDR 4 IPADDR 0 10 IPADDR 1 1 IPADDR 2 1 IPADDR 3 101 Rem Make the transmit data Dim BUFFER 4 BUFFER 0 1 BUFFER 1 2 BUFFER 2 3 BUFFER 3 4 BUFFER 4...

Page 700: ...nger than 255 characters is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitt...

Page 701: ...r If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this m...

Page 702: ...ned above are drawn with a solid line i e the same line type as when PS_SOLID is specified for the style parameter The gotten color value by the RGB function can be set for the color parameter Referen...

Page 703: ...ater Related Items MEASUREDISPG Rem Set the draw attibutes SetDrawStyle PS_DASH 1 JUDGE_OK Rem Draw the image DrawLine 100 100 500 400 0 UnitNo Return DrawArc Reference X Details p 469 DrawArcW Refere...

Page 704: ...255 characters is specified in the dataIdent parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or...

Page 705: ...cro Reference 703 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items AddGlobalData Reference X Details p 405 GetGlobalData Reference X D...

Page 706: ...age window unitNo Integer type Processing unit number of the target processing unit to display 1 to the number of registered processing units in the current scene minus one subNo Integer type Sub imag...

Page 707: ...ameter and the originY parameter specify the values of the relative coordinates from the upper left coordinates of the image window to the upper left coordinates of the displayed image In the update p...

Page 708: ...ed Items For I 0 To 3 Rem Get the state of the image window GetImageWindow I LOCATIONX LOCATIONY WIDTH HEIGHT UNITNO SUBNO MAG ORIGINX ORIGINY UPDATE VISIBLE Rem Change the update timing to Through UP...

Page 709: ...orrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions This macro function can only be used in the...

Page 710: ...ror will not occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur If a value o...

Page 711: ...y 2 4 or 8 in the size parameter These respectively set a 2 byte integer 4 byte integer or 8 byte real number If an incorrect data type is specified for a parameter a Type mismatch error will occur If...

Page 712: ...ed Items IOMODULE UdpPlcLink Rem Get the measurement result GetUnitData 2 6 X GetUnitData 2 7 Y Rem Convert the real number value multiplied by 1 000 to the integer value VALUE0 Int X 1000 VALUE1 Int...

Page 713: ...ll occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions After u...

Page 714: ...reception data size SIZE 0 Repeat the reception process until the data has been received Try Do Rem Attempting the data reception ReceiveData IOMODULE BUFFER 12 SIZE Rem Once the data has been receiv...

Page 715: ...ding location as a scene control macro error and then an Illegal function call error will occur in this macro function as an error of the module that called the macro function If an incorrect data typ...

Page 716: ...Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Items GetSceneData Reference X Details p 544 Rem Set...

Page 717: ...g longer than 255 characters is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly o...

Page 718: ...Manual Z340 Supported Versions Version 3 50 or later Related Items SceneMaker Reference X Details p 689 SceneTitle Reference X Details p 692 SceneDescription Reference X Details p 684 SetSceneMaker R...

Page 719: ...combination of data types or values is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string paramet...

Page 720: ...NC IR Macro Reference 718 Vision System FH FZ5 Series User s Manual Z340 Related Items SceneGroupTitle Reference X Details p 688 SceneTitle Reference X Details p 692 SetSceneTitle Reference X Details...

Page 721: ...of data types or values is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified for a character string parameter a String t...

Page 722: ...Control Macro Communication Command Macro Supported Versions Version 3 50 or later Related Items SceneDescription Reference X Details p 684 SceneMaker Reference X Details p 689 SceneTitle Reference X...

Page 723: ...nt number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If a character string longer than 255 characters is specified fo...

Page 724: ...FZ5 Series User s Manual Z340 Related Items SceneDescription Reference X Details p 684 SceneMaker Reference X Details p 689 SceneTitle Reference X Details p 692 SetSceneDescription Reference X Detail...

Page 725: ...am execution when the execution form is debug mode Characters character string wildcard operator and single character wildcard operator can be used as wildcards for the string specification If an inco...

Page 726: ...m stops Stop AAB Rem If character string AABB specified in the Stop function argument does not match pattern AA the program does not stop Stop AABB Rem If character string BCDEF specified in the Stop...

Page 727: ...ll occur If an identification name that does not exist is specified as the parameter an Illegal function call error will occur If a character string longer than 255 characters is specified in the data...

Page 728: ...on Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the destination path to be set as the screen capture destination fold...

Page 729: ...e XRGB p 662 If an incorrect data type is specified for a parameter a Type mismatch error will occur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overf...

Page 730: ...ng unit to display a character string with its font size of 20 aligned to bottom and horizontally centered colored by the OK judgement color and inclined by 90 degrees Useable Modules Unit macro Suppo...

Page 731: ...such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY signal or o...

Page 732: ...lated Items DisplaySubNo Reference X Details p 462 DisplayUnitNo Reference X Details p 464 GetTextWindow Reference X Details p 550 RefreshTextWindow Reference X Details p 655 SetDisplayUnitNo Referenc...

Page 733: ...rectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Execute this macro function when the BUSY sign...

Page 734: ...llJudge Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items SetUnitData 2 103 1 Rem The same result...

Page 735: ...unction call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur U...

Page 736: ...on the gotten figure data change the values of the upper left point XY coordinates and lower right point XY coordinates of the region figure FIGURE 2 100 FIGURE 3 100 FIGURE 4 300 FIGURE 5 300 Rem Set...

Page 737: ...y the judgement result set with this macro function In both cases the judgement result can be reflected in the overall judgement prior to overwriting by specifying True with the totakJudgeRefrect para...

Page 738: ...ssing Unit number 2 in Judgement Result OK Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items SetUnitJudge 2 JUDGE_OK True SetUnitData Reference X...

Page 739: ...is specified for a character string parameter a String too long error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a...

Page 740: ...sion System FH FZ5 Series User s Manual Z340 Related Items MeasureStart Reference X Details p 617 MeasureStop Reference X Details p 619 UnitNo Reference X Details p 790 UnitTitle Reference X Details p...

Page 741: ...tions commands in all communications command macros that call and execute user defined functions If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existe...

Page 742: ...ned functions creation use the FH AP1 Example With identification name USR registers a user defined function UserProc0 that has been defined in MacroUserProc dll Then specifies the identification name...

Page 743: ...incorrect data type is specified for a parameter a Type mismatch error will occur Even if a non existent number numerical value or combination of data types or values is specified for the parameter an...

Page 744: ...er 1 i e A01 A02 AA01 AB01 B01 and B02 sets the values of all reference variables that start with A i e A01 A02 AA01 and AB01 The result is shown below Useable Modules Unit Calculation Macro Scene Con...

Page 745: ...ter a Type mismatch error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrect...

Page 746: ...744 Vision System FH FZ5 Series User s Manual Z340 Related Items Atn Reference X Details p 417 Cos Reference X Details p 450 GetUnitData Reference X Details p 552 UnitData Reference X Details p 778 Ta...

Page 747: ...call error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as wri...

Page 748: ...acro function and the Timer function are valid for all macro customize functions If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error w...

Page 749: ...ntax error error will occur Usage Cautions This macro function is only enabled when specified in debug mode with the Debug function Specifying other values than the range above will treat the statemen...

Page 750: ...ops Stop ABC Rem If character string ABCD specified in the Stop function argument does not match pattern ABC the program does not stop Stop ABCD Rem If the parameter is not specified in the Stop funct...

Page 751: ...occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Examp...

Page 752: ...tems 1 98 4 Asc Reference X Details p 413 Chr Reference X Details p 427 GetUnitData Reference X Details p 552 Hex Reference X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 5...

Page 753: ...the integral parameter a maximum positive number or a minimum negative number that can be expressed with the specified number of integer digits in the expression parameter is returned as a numeral cha...

Page 754: ...part 5 When expression parameter is 10 123 the changed numerical character string is 10 12300 If an incorrect data type is specified for a parameter a Type mismatch error will occur If a non existent...

Page 755: ...0 or later Related Items 150 000 359 000 97 Asc Reference X Details p 413 Chr Reference X Details p 427 Hex Reference X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 591 Len...

Page 756: ...data executes Save data To apply the loaded settings in the sensor controller restart the sensor controller Useable Modules Scene Control Macro Communication Command Macro Supported Versions Version 3...

Page 757: ...error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing t...

Page 758: ...756 Vision System FH FZ5 Series User s Manual Z340 Related Items Atn Reference X Details p 417 Cos Reference X Details p 450 GetUnitData Reference X Details p 552 Sin Reference X Details p 743 UnitDat...

Page 759: ...nternal clock can be adjusted in Date time Settings under System settings Reference XSetting the Date and Time Date time Setting p 291 If a value is assigned to the return value variable or the variab...

Page 760: ...ual Z340 Supported Versions Version 3 50 or later Related Items Date Reference X Details p 454 GetSystemData Reference X Details p 546 Mid Reference X Details p 621 Piece Reference X Details p 637 Pri...

Page 761: ...an Illegal function call error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written inc...

Page 762: ...nual Z340 Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items ElapsedTime Reference X Details p 508...

Page 763: ...to the return value variable or the variable is not used in an expression a Syntax error error will occur Usage Cautions None Example In the MEASUREDISPG subroutine of the Unit Macro processing unit g...

Page 764: ...NNC IR Macro Reference 762 Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items DrawTextG Reference X Details p 502 SetUnitJudge Reference X Details p...

Page 765: ...non existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If the format is written incorrectly such as writing...

Page 766: ...on name angle Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the measurement result GetUnitData 2 angle BEFOREANGLE Rem Transform to t...

Page 767: ...n existent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If the format is written incorrectly such as writing the...

Page 768: ...ea Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the measurement result GetUnitData 2 area BEFOREAREA Rem Transform to the value afte...

Page 769: ...istent number numerical value or combination of data types or values is specified for a parameter an Illegal function call error will occur If the format is written incorrectly such as writing the mac...

Page 770: ...tification name width ave Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the measurement result GetUnitData 2 width_ave BEFOREDIST Rem...

Page 771: ...ation mode 0 After image transformation Before image transformation 1 Before image transformation After image transformation 10 Camera coordinates After calibration srcA Double precision real number d...

Page 772: ...alf width space a Syntax error error will occur Usage Cautions None Example Transforms the values of the line components measured with the scan edge position processing unit of Processing Unit number...

Page 773: ...fied for a parameter an Illegal function call error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space...

Page 774: ...l reference data identification name positionY Useable Modules Unit Calculation Macro Unit Macro Supported Versions Version 3 50 or later Related Items Rem Get the measurement result GetUnitData 2 pos...

Page 775: ...curred error number in the Try block statement Reference XErrno p 515 Reference XErrcmnd p 513 Errors in the Catch block statement cannot be detected If statements in the Catch block can cause an erro...

Page 776: ...cro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items MEASUREPROC Try WORK 0 SUMM 100 200 300 ANS SUMM WORK Catch If Errno 11 Then Rem Output the error numb...

Page 777: ...6th character will be discarded If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly su...

Page 778: ...rence X Details p 427 Hex Reference X Details p 560 LCase Reference X Details p 589 Left Reference X Details p 591 Len Reference X Details p 593 Mid Reference X Details p 621 Piece Reference X Details...

Page 779: ...Adds the search processing unit to the end of the measurement flow Useable Modules Scene Control Macro Communication Command Macro Supported Versions Version 3 50 or later Related Items Rem Get the nu...

Page 780: ...an Illegal function call error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written inc...

Page 781: ...cro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items GetUnitData Reference X Details p 552 SetUnitData Reference X Details p 731 UnitDa...

Page 782: ...ameter an Illegal function call error will occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is writt...

Page 783: ...cro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 3 50 or later Related Items GetUnitData Reference X Details p 552 SetUnitData Reference X Details p 731 UnitDa...

Page 784: ...correct data type is specified for a parameter a Type mismatch error will occur If a non existent number numerical value or combination of data types or values is specified for a parameter an Illegal...

Page 785: ...ation name Y Even when the Calibration setting of the search processing unit is ON this macro function can be used to get drawing coordinates without concern for the calibration settings Useable Modul...

Page 786: ...ze of control data structure Units are bytes 4 The maximum number of figure data Maximum number of figure data items held by processing unit 5 Maximum number of model data Maximum number of model data...

Page 787: ...will not occur If a value is assigned to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the...

Page 788: ...r will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions Non...

Page 789: ...es Vision System FH FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items SetUnitData Reference X Details p 731 UnitCount Reference X Details p 777 UnitNo Reference X De...

Page 790: ...en incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Example Gets the judgement result...

Page 791: ...ces Vision System FH FZ5 Series User s Manual Z340 Related Items GetUnitData Reference X Details p 552 SetUnitJudge Reference X Details p 735 TotalJudge Reference X Details p 761 UnitNo Reference X De...

Page 792: ...used in an expression a Syntax error error will occur Usage Cautions None Example Gets the judgement result of the processing unit registered immediately before the current processing unit Useable Mo...

Page 793: ...acro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cautions None Example In the scene control macro searches for the search processing...

Page 794: ...ries User s Manual Z340 Supported Versions Version 3 50 or later Related Items SetUnitData Reference X Details p 731 SetUnitTitle Reference X Details p 737 UnitCount Reference X Details p 777 UnitNo R...

Page 795: ...to the return value variable or the variable is not used in an expression a Syntax error error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitt...

Page 796: ...g parameter characters from the beginning of the string to one character before the inconvertible character are converted to a numeric value If an incorrect data type is specified for a parameter a Ty...

Page 797: ...E1 123 456 VALUE2 123 456 VALUE3 0 123 VALUE4 0 456 VALUE5 123 456 VALUE6 123 Asc Reference X Details p 413 Chr Reference X Details p 427 Hex Reference X Details p 560 LCase Reference X Details p 589...

Page 798: ...the following manner If an incorrect data type is specified for a parameter a Type mismatch error will occur If a character string longer than 255 characters is specified for a character string parame...

Page 799: ...e characters including the type identifier Useable Modules Unit Calculation Macro Scene Control Macro Communication Command Macro Unit Macro Supported Versions Version 5 20 or later Related Items Macr...

Page 800: ...n value None Description Restore the values of all variables that were saved by the most recent VarPush function If the VarPush function is executed more than once the saved values are restored from t...

Page 801: ...k the current values of the variables before calling the subroutine Print A B C D E Rem Variables named A B C are used in the EXPB subroutine Rem These names are also used for variables in this EXPA s...

Page 802: ...variables Rem Values in variables A B C D E are saved in different areas from Rem where the Varpush statement in the earlier part of the EXPA subroutine saves Rem This prevents the previously saved va...

Page 803: ...re the saved value Reference XVarPop p 815 If this macro function is executed 17 times or more without executing the VarPop function an Internal error will occur Execute the VarPop function to restore...

Page 804: ...current values of the variables before calling the subroutine Print A B C D E Rem Variables named A B C are used in the EXPB subroutine Rem These names are also used for variables in this EXPA subrout...

Page 805: ...local variables Rem Values in variables A B C D E are saved in different areas from Rem where the VarPush statement in the earlier part of the EXPA subroutine saves Rem This prevents the previously sa...

Page 806: ...t data type is specified for a parameter a Type mismatch error will occur Even if a non existent number numerical value or combination of data types or values is specified for the parameter an error w...

Page 807: ...scene control macro saves the version information managed independently in scene data Useable Modules Scene Control Macro Supported Versions Version 5 20 or later Related Items None SAVEPROC Rem Creat...

Page 808: ...ow error will occur If the format is written incorrectly such as writing the macro function name incorrectly omitting a comma or omitting a half width space a Syntax error error will occur Usage Cauti...

Page 809: ...the writeData parameter and 2 should be specified in the channelCount parameter If a size larger than the array size specified in the writeData parameter is specified in the channelCount parameter a S...

Page 810: ...result GetUnitData 2 6 X GetUnitData 2 7 Y Rem Convert the real number value multiplied by 1 000 to the integer value VALUE0 Int X 1000 VALUE1 Int Y 1000 Rem Get the settings of the output data area...

Page 811: ...ccur If a value outside the range 2147483648 to 2147483647 is specified as an integer parameter an Overflow error will occur If a value is assigned to the return value variable or the variable is not...

Page 812: ...FZ5 Series User s Manual Z340 Supported Versions Version 3 50 or later Related Items AND Reference X Details p 409 GetUnitData Reference X Details p 552 NOT Reference X Details p 626 OR Reference X D...

Page 813: ...acement distance mm SV 0614V SV 0813V SV 03514V SV 04514V SV 1214V SV 1614V SV 2514V SV 3518V SV 5018V SV 7527V SV 10035V 3Z4S LE t0 t5 t10 t15 t20 t25 t40 t30 t50 t50 t0 t5 t10 t15 t20 t25 t40 t2 t5...

Page 814: ...014H SV 7525H SV 10028H t15 t20 t30 t0 t5 t10 t15 t20 t25 t30 t40 t0 t5 t10 t15 t20 t25 t30 t0 t2 t5 t10 t15 t0 t2 t5 t0 t1 t2 t0 t0 5 t1 t0 t0 5 t50 t40 t25 t10 t5 t0 t50 t40 t30 t25 t20 t15 t10 t5 t...

Page 815: ...t10 t10 t10 t10 t20 t15 t15 t15 t15 t20 t20 t40 t25 t25 t30 t30 t40 t0 t0 t0 5 t0 5 t1 3Z4S LE VS 0618H1 VS 0814H1 VS 1214H1 VS 1614H1 VS 2514H1 VS 3514H1 VS 5014H1 SV 7525H SV 10028H Camera placement...

Page 816: ...Points such as t5 0 on the graph correspond to the thickness of the extension tube used t0 is used if an extension tube is not necessary and t5 0 is used if a 5 mm extension tube is used Example If t...

Page 817: ...WD to 39 4 mm WD 1000 mm M30 5 P0 5 3Z4S LE SV 7527V 76 71 mm F2 7 32 mm dia 42 0 mm WD to 44 4 mm WD 1000 mm M30 5 P0 5 3Z4S LE SV 10035V 95 4 mm F3 5 32 mm dia 43 9 mm WD to 46 3 mm WD 1000 mm M30 5...

Page 818: ...mm F1 8 44 mm dia 44 5 mm WD to 49 5 mm WD 500 mm M40 5 P0 5 Lens type Focal distance Aperture F number Max O D Full length L Filter size Optical magnification 3Z4S LE VS L1828 M42 10 18 mm F2 8 to F1...

Page 819: ...amera placement distance mm 10 100 1 000 10 000 1 10 100 1 000 t2 t10 t30 t2 0 t5 t5 t10 t0 t10 t30 t20 t0 t0 t40 t10 t10 t20 t20 t10 t0 t0 t0 t0 VS MC15 VS MC20 VS MC25N VS MC30 VS MC35 VS MC50 VS MC...

Page 820: ...10 t15 t10 t5 t5 t10 t15 t10 t5 t5 t10 t15 t10 t5 t5 t10 t15 t20 t5 t10 t20 t10 t20 t30 t10 t20 t30 t40 t20 t40 t60 t30 t30 t0 t0 t0 t0 t0 t0 t0 VS MC15 VS MC20 VS MC25N VS MC30 VS MC35 VS MC50 VS MC7...

Page 821: ...10 000 1 10 100 1 000 10 000 t0 t1 t2 t2 t5 t10 t0 t7 t10 t20 t30 t7 t10 t0 t20 t30 t40 t7 t10 t20 t30 t40 t10 t20 t30 t40 t10 t20 t30 t40 t0 t0 t0 t0 VS MCH100 3Z4S LE VS MCH12 VS MCH16 VS MCH25 VS...

Page 822: ...mm 0 30x M27 0 P0 5 0 03x 732 4 mm 0 20x 19 2 mm 0 30x 9 2 mm 3Z4S LE VS MC20 20 mm F2 31 mm dia 23 0 mm 0 04x to 30 5 mm 0 40x M27 0 P0 5 0 04x 110 8 mm 0 25x 3 4 mm 0 40x 1 5 mm 3Z4S LE VS MC20 FN0...

Page 823: ...m dia 32 0 mm 0 26x to 45 7 mm 0 65x M27 0 P0 5 0 26x 11 9 mm 0 30x 9 2 mm 0 65x 2 5 mm 3Z4S LE VS MC50 50 mm F2 31 mm dia 44 5 mm 0 08x to 63 9 mm 0 48x M27 0 P0 5 0 08x 33 8 mm 0 20x 6 0 mm 0 48x 1...

Page 824: ...FN056 F5 6 38 mm dia 42 5 mm 0 025x to 46 5 mm 0 25x M34 P0 5 0 025x 735 0 mm 0 10x 49 3 mm 0 25x 9 0 mm 3Z4S LE VS MCH16 FN080 F8 38 mm dia 42 5 mm 0 025x to 46 5 mm 0 25x M34 P0 5 0 025x 1050 0 mm 0...

Page 825: ...0x 17 6 mm 0 15x 8 2 mm 3Z4S LE VS MCH75 FN056 F5 6 38 mm dia 49 5 mm 0 025x to 60 7 mm 0 15x M34 P0 5 0 025x 735 0 mm 0 10x 49 3 mm 0 15x 22 9 mm 3Z4S LE VS MCH75 FN080 F8 38 mm dia 49 5 mm 0 025x to...

Page 826: ...F5 6 52 mm dia 72 0 mm 0 025x to 82 3 mm 0 40x M46 P0 75 0 025x 735 0 mm 0 10x 49 3 mm 0 40x 3 9 mm 3Z4S LE VS MCL25 FN080 M42 10 F8 52 mm dia 72 0 mm 0 025x to 82 3 mm 0 40x M46 P0 75 0 025x 1050 0...

Page 827: ...a 105 0 mm 0 05x to 130 2 mm 0 35x M46 P0 75 0 05x 269 0 mm 0 10x 70 4 mm 0 35x 7 1 mm 3Z4S LE VS MCL100 M42 10 100 mm F2 5 52 mm dia 110 0 mm 0 05x to 135 0 mm 0 30x M46 P0 75 0 05x 94 1 mm 0 10x 24...

Page 828: ...n the lens and the threaded section of another extension tube overlapping them will cause unstable fixation When using an extension tube larger than 30 mm reinforcement is necessary to avoid being aff...

Page 829: ...Reference Camera Image Input Camera Settings in the Vision System FH FZ5 Series Processing Item Function Reference Manual Cat No Z341 Failed to start the window Memory is insufficient Because memory...

Page 830: ...then restart Cannot read selected file Confirm selected file once again Check the following points Have you removed the USBDisk from the controller after selecting files on the USBDisk Have you delet...

Page 831: ...er is not found Please check Check the following points Have you deleted the destination folder For cases where he save destination is the folder in the USBDisk is the USBDisk connected to the control...

Page 832: ...ge logging failed due to insufficient memory at the save destination The error message disappears after 10 s Please delete unneeded files in the save destination or prepare a new USBDisk The Logon to...

Page 833: ...when data is being saved to the controller a scene group is being switched and a scene group is being saved to or loaded from the USB memory the data file may get corrupted The file needs to be repai...

Page 834: ...e this issue The image will not be displayed when remeasuring saved images You may be using the through image mode in the image display pane on the used layouts If you are used the through image mode...

Page 835: ...n the Edit Flow window etc displayed Are there any setting windows open A setting window is defined as a window that opens separately such as the Edit Flow window and the Scene Maintenance window Sign...

Page 836: ...cation specifications set to None To save data set Flow control to None Reference Non procedure Communications Communications Specifications Settings in the Vision System FH FZ5 Series User s Manual f...

Page 837: ...acquired from cameras are available with color information such as R red G green B blue RGB images can render 16 7 million colors on the screen and adjustment of color intensity with a range of 0 to 2...

Page 838: ...lowing ways Please select measurement objects that are in good condition clean for Model Registration In the case of large or complicated models processing time is prolonged With extremely small model...

Page 839: ...arch In contrast if the values specified for Stab or Prec are large or if the value for Skipping angle is small the processing speed is slow because search is performed without the amount of model inf...

Page 840: ...angle and overall maximum rotation range for the model angle range Search is performed for objects that most resemble these acceptable models Example When angle range is 15 and skipping angle is 5 Ca...

Page 841: ...ify the density and color of the edges to be detected Derivation A differential processing is performed to calculate the change in density between neighboring pixels A differential waveform with the l...

Page 842: ...ment region 2 Min color difference value 0 Max color difference value 100 3 Locations in which there is an edge level color difference are detected as edges When performing measurement using color dif...

Page 843: ...noise When no color is specified If another edge is detected within the width range starting from the point where an edge was first detected the newly detected point is considered noise When a color...

Page 844: ...utput parameter with which you can select how to handle coordinates In Output parameter you can set Output coordinates and Calibration Output Coordinates Selects coordinate types to be output to exter...

Page 845: ...ues after position compensation are output Calibration Select whether or not to perform calibration when selecting output to external devices Calibration ON Calibration is performed during output and...

Page 846: ...efer to individual setting descriptions 1 Click in the item in which a value is to be set The numeric keyboard is displayed 2 Click the numeric keys to input values The numerical value is input To fin...

Page 847: ...lder is selected Select folder is displayed b Folder View Area A list of folders on the RAM disk and folders in the mounted USB memory is displayed At the root of the tree the drive names of all acces...

Page 848: ...te Renaming a Folder or a File 1 Click the name of file or folder to be renamed from the List View area The file or folder will be selected 2 Click Rename The soft keyboard is displayed 3 Enter a new...

Page 849: ...zoom display area is in the original image b Magnification factor Input the magnification factor A factor of between 25 to 1600 can be indicated c Operation buttons Zoom in button Enlarges the selecte...

Page 850: ...foreground The higher the sequence position of the object the further back in the background it is When objects are drawn overlapping the settings for the object set last are valid b Edit Used to edit...

Page 851: ...Dimension Adjustment Example When enlarging Image selection status Points are displayed at the starting point ending point and mid point of lines Dimension Adjustment Drag the points Example When cha...

Page 852: ...The window for settings is split into two Setting is performed through input of numbers or through tapping on the arrows Image selection status Dimension Adjustment Drag the points Example When zoomin...

Page 853: ...erformed through input of numbers or through tapping on the arrows Image selection status Dimension Adjustment Drag the points Example When enlarging the entire circumference Drag a point on the outer...

Page 854: ...ge selection status Dimension Adjustment Drag the points Example When enlarging an arc Drag the point inside the arc outward Example When adjusting the width of an arc Drag a point on the inner or out...

Page 855: ...e to Decagon Drawing methods for drawing a quadrilateral 1 When Polygon is specified a triangle is drawn at first 2 If you drag and drop one of the sides at the point you want to make a new vertex a n...

Page 856: ...split into two Setting is performed through input of numbers or through tapping on the arrows Text Image selection status Entire image is selected Time Image selection status Entire image is selected...

Page 857: ...ent regions Images with only the NOT setting cannot be drawn At the location that overlaps another figure OR NOT of the region set up later will take priority Item Description OR NOT Used when drawing...

Page 858: ...troller 2 megapixel camera 5 megapixel camera 1 cam era 2 cam eras 3 cam eras 4 cam eras 5 cam eras 6 cam eras 7 cam eras 8 cam eras 1 cam era 2 cam eras 3 cam eras 4 cam eras 5 cam eras 6 cam eras 7...

Page 859: ...pixel camera 1 cam era 2 cam eras 3 cam eras 4 cam eras 5 cam eras 6 cam eras 7 cam eras 8 cam eras 1 cam era 2 cam eras 3 cam eras 4 cam eras 5 cam eras 6 cam eras 7 cam eras 8 cam eras FZ5 L3 11 5 F...

Page 860: ...0 3 megapixel monochrome camera 245 Intelligent compact camera FZ SQ 69 2 megapixel color camera 13 2 megapixel monochrome camera 39 5 megapixel color camera 6 5 megapixel monochrome camera 19 Item P...

Page 861: ...and 1 32 for cameras 2 and 3 4 for cameras 0 and 1 8 for cameras 2 and 3 1 for cameras 0 and 1 2 for cameras 2 and 3 FZ5 6 32 8 2 FZ5 11 32 8 2 FH 1 FH 3 256 64 25 Type of controller 0 3 megapixel cam...

Page 862: ...Number of upper level bits x 16 number of lower level bits output value Examples If the recognized character is 2 50 is output If the recognized character is C 67 is output Upper 4 bits 0 1 2 3 4 5 6...

Page 863: ...his is memory inside the FZ4 files can be saved and read faster than using USB memory However capacity is a fixed 40 MB 256 MB for FH FZ5 11 Files saved in RAMDisk are cleared when the power is turned...

Page 864: ...be registered in the serial output flow on the FZ4 side If 8 expressions are registered data is stored as follows CX Programmer PLC I O memory display image As an example if 3 data items expression 0...

Page 865: ...play image As an example if 3 data items expression 0 DATA0 1 000 expression 1 DATA1 200 000 and expression 2 DATA2 1000 000 are output from FZ4 they are stored to the PLC Link area as measurement dat...

Page 866: ...868 ClearSettingData Clears setting data Reference Details p 868 ConvertImageFileF Converts an image file ConvertImageFileM Converts an image file CopyFile Copies a file Reference Details p 869 CopySc...

Page 867: ...e for a processing item GetUnitTitle Acquires a processing unit title name GetUnitTitle2 Acquires a processing unit title name ImageLogging Executes image logging ImageUpdate Updates image data Refere...

Page 868: ...ata Reference Details p 677 SaveSecurityData Saves security related settings Reference Details p 874 SaveSystemData Saves system data Reference Details p 679 SaveSystemData0 Saves system data SaveUnit...

Page 869: ...e Details p 875 SetUnitDataN Sets processing unit data SetUnitDataN2 Sets processing unit data SetUnitDataS Sets processing unit data SetUnitDataS2 Sets processing unit data SetUnitFigure Sets the fig...

Page 870: ...urn value If it succeeded returns 0 Otherwise returns value other than 0 Clearing Setting Data in a Batch ClearSettingData Parameters None Return value If it succeeded returns 0 Otherwise returns valu...

Page 871: ...rectory Parameters Return value If the directory is created successfully returns 0 Otherwise returns value other than 0 Deleting a User Account DeleteUserAccount Parameters Return value If it succeede...

Page 872: ...r imageNo Image number imageChannel Image channel number Specifies RGB R 0 G 1 B 2 For monochrome image any value is OK rectangle Target rectangular area The maximum size to acquire density is 4096 pi...

Page 873: ...es held in the controller memory ioModuleNo I O module number 0 Registers ParallelIo Parallel I O Fixed 1 Registers any of the following I O modules in the module communication system SerialNormal Ser...

Page 874: ...rity Related Settings LoadSecurityData Parameters Return value If it succeeded returns 0 Otherwise returns value other than 0 _userName User name executed _password User password executed dataIdent Da...

Page 875: ...e Return value If non stop adjustment data is synchronized successfully returns 0 Otherwise returns value other than 0 File Directory Name Change RenameFile Parameters Return value If the file directo...

Page 876: ...turns value other than 0 Setting Security Related Parameters SetJudgeWindow Parameters Return value If the judgment result display window is set successfully returns 0 Otherwise returns value other th...

Page 877: ...ccessfully returns 0 Otherwise returns value other than 0 Setting a User Account SetUserAccount Parameters Return value If it succeeded returns 0 Otherwise returns value other than 0 _userName User na...

Page 878: ...essfully returns 0 Otherwise returns value other than 0 Setting Measurement Trigger Input to Enabled UnLockMeasureStop Parameters None Return value If it succeeded returns 0 Otherwise returns value ot...

Page 879: ...nput information list 877 8 Appendices Vision System FH FZ5 Series User s Manual Z340 Logging Out UserLogout Parameters Return value If it succeeded returns 0 Otherwise returns value other than 0 remo...

Page 880: ...e Revision Contents Software Version 01 Jul 2013 Original production Ver 5 00 02 Aug 2013 Additions for lighting controllers Ver 5 10 03 Aug 2013 Additions for software version upgrade Ver 5 10 04 Sep...

Page 881: ...WWW NNC IR...

Page 882: ...es IL 60169 U S A Tel 1 847 843 7900 Fax 1 847 843 7787 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 Contact www ia omr...

Reviews: