background image

WWW.NNC.IR

Macro Reference

687

8

App

end
ice
s

Vision System FH/FZ5 Series
User’s Manual (Z340)

SceneGroupNo

Gets the scene group number of the current scene group.

Format

SceneGroupNo

Parameter

None.

Return value

The scene group number of the current scene group is returned as an integer value.

Description

Gets the scene group number of the current scene group.
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 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 Command Macro

Supported Versions

Version 3.50 or later

Related Items

Rem Get the scene group number of the current scene group.
NO& = SceneGroupNo

Rem Get the scene group number, and if 2, change to scene 3
If NO& = 2 Then

ChangeScene3

Endif

ChangeScene (Reference: 

X

 Details (p.423))

ChangeSceneGroup (Reference: 

X

 Details (p.424))

ClearSceneGroup (Reference: 

X

 Details (p.431))

CopySceneGroup (Reference: 

X

 Details (p.441))

SceneGroupCount (Reference: 

X

 Details (p.686))

SceneNo (Reference: 

X

 Details (p.691))

Содержание fh-1 series

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 230: ...tion MCRINIT Executed immediately after the program is loaded Measurement initialization MEASUREINIT Executed before starting measurements Measurement execution MEASUREPROC Executed when measurement p...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 327: ...SaveBackupData SaveData SaveImage SaveMeasureImage SaveScene SaveSceneGroup SaveSystemData SaveUnitData SceneCount SceneDescription SceneGroupCount sceneGroupDataPath SceneGroupNo SceneGroupTitle Sce...

Страница 328: ...talJudge TransformAngle TransformArea TransformDist TransformLine TransformXY TRUE Try UCase UnitCount UnitData UnitData UnitData2 UnitInfo UnitItemIdent UnitJudge UnitNo UnitTitle Ut Val VarList VarP...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 337: ...ess commandMemoryAddress Response Area type responseArea Response Area address responseMemoryAddress Data Output Area type outputArea Data Output Area address outputMemoryAddress Asynchronous output 0...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 881: ...WWW NNC IR...

Страница 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...

Отзывы: