background image

7

M

eth

od

s

fo

rC

on

ne

ctin

g

an

d

C

om

m

un

ica

tin

g

w

ith

E

xte

rn

al

D

ev

ice

s

506

Controlling/Outputting through Serial Communication (Non-procedure)

FZ4 User's Manual

When processing is not performed normally

<Parameters explanation>

Scene group
No.

Specifies the scene group No. to be read (0 to 31)

File name of
scene group
data

Specifies the name of the file to be read with a definite path (ex.: \USBDisk\abc.sgp, E:\abc.sgp).
Only files that are under the following systems and have an "SGP" extension can be read.

Load to

FZ4-1100 series

FZ-L35

/600/700 series

RAMDisk

C:\Data\RAMDisk

\RAMDISK

USBDisk

E:\,F:\,G:\,H:\

\USBDisk to \USBDisk3

Important

Do not turn off power to the controller until there is a response.

(Example)

When "LABEL.SGP" in the "IMG01" folder of the USB memory to which the drive name "USBDisk2" is
assigned is loaded to scene group 3

<Command>

<Response>

Note

For the USB memory drive, see Reference:

About USB Drive Names (p.330) .

SGRSAVE

Saves scene group data.

<Command format>

<Response format>

When processing is performed normally

Acesst 1.0 6251194

Summary of Contents for FZ4 Series

Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...

Page 2: ...he FZ4 Series must be operated by personnel knowledgeable in electrical engineering To ensure correct use please read this manual thoroughly to deepen your understanding of the product Please keep thi...

Page 3: ...er System Initialization 27 Restarting Controller System Restart 27 Saving Settings and Turning Power Off 28 Turning Off LCD 28 Setting Operation Mode 30 Operation Mode Selection Guidelines 32 High sp...

Page 4: ...wMeasurement Information Display Area 87 Changing Functions That Can Be Operatedfrom the RUN Window Tool Box 87 Useful Functions for Operation 88 Remeasuring Saved Images 88 Improving Adjustment Effic...

Page 5: ...bout Data Saving 330 About Saving Areas 330 About USB Drive Names 330 Saving Settings Data to Controller Memory 332 When Using Scene Group 0 332 When Using Scene Groups 1 to 31 332 Saving Settings Dat...

Page 6: ...ernet Non procedure 435 Setting Communication Specifications RS 232C 422 Non procedure 439 Checking Communication Status Non procedure 441 Command Format Non procedure 442 Command List Non procedure 4...

Page 7: ...Select File Window 597 Using the Zoom Function 598 Setting Figures 600 Layout of Figure Setting Area 600 Setting Methods 601 About OR Setting NOT Setting 609 About Number of Logging Images 611 About...

Page 8: ...l function The measurement flow control function is now supported Supported software version 4 20 or later Reference Processing Items List Manual Fieldbus Flow Control p 556 Reference Processing Items...

Page 9: ...ce User s Manual Methods for Connecting and Communicating with External Devices p 359 EtherNet IP message communication function The EtherNet IP message communication function is now supported Support...

Page 10: ...ied to the immunity test of this product If the level of disturbance of the video is such that characters on the monitor are readable the test is a pass This product complies with EC Directives EMC re...

Page 11: ...erence Operation Flow p 10 Reference Layouts of Screens Windows p 11 Reference Checking System Configuration p 21 Reference Preparing Controllers and Cameras p 23 Reference Input Operations p 25 Refer...

Page 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...

Page 13: ...s vary with the status of the operation being performed The structure of some typical screens and the functions for the various buttons are described here Layout of Main Screen ADJUST Window This scre...

Page 14: ...y Displays the scene group number scene number external output status and image mode for the currently displayed scene c Toolbar Commonly used functions appear in the toolbar Edit flow The Edit Flow w...

Page 15: ...n be done by tapping here e Control Area Displays Test measurement Flow Detail result and Image display Test measurement Use when test measurement conditions and images that have been acquired are use...

Page 16: ...pture Saves the content displayed on the monitor as an image Reference Set the save destination for captured images p 104 2 LCD Off Displayed only with LCD integrated controllers Turns off power to th...

Page 17: ...esults for each processing unit are displayed in the Control area 2 Processing time Displays the time required for the measurement process 3 Scene Group Name Scene Name Displays the scene group number...

Page 18: ...e processing unit buttons can be changed through View menu Display the enlarged flow in the ADJUST Window Detail result The detailed measurement results of the processing units selected in the measure...

Page 19: ...f Edit Flow Window This window is for compiling the measurement flow Flow parts are displayed on the right side and the measurement flow is displayed on the left If the measurement trigger is activate...

Page 20: ...tes the selected processing unit Append Bottom Adds a processing unit to the bottom of the flow Insert Inserts a new processing unit immediately before the selected processing unit Save unit This save...

Page 21: ...and displayed as a tree Tapping the plus sign of any item displays expanded contents below that item Tapping the minus sign of any item collapses the expanded contents When Ref other Scene s flow is c...

Page 22: ...s of Screens Windows FZ4 User s Manual with the item on the left b Detail Area Set detailed items c Image Display Area Displays camera images figures and coordinates d Zoom Browser Area Zooms in and o...

Page 23: ...camera Controller integrated with LCD FZ4 60 FZ4 60 10 FZ4 H60 FZ4 H60 10 FZ4 70 FZ4 70 10 FZ4 H70 FZ4 H70 10 FZ4 110 FZ4 110 10 FZ4 H110 FZ4 H110 10 Box type Controller FZ4 L35 FZ4 L35 10 FZ4 65 FZ4...

Page 24: ...ingle line high speed mode High speed logging mode Non stop adjustment mode and Multi line random trigger mode Reference Setting Operation Mode p 30 List of functions by model New function Type of con...

Page 25: ...he lens 1 Tap of Image mode in Image display of the Main screen Control area and select Through The through images captured from the camera are viewed in the Image Display area Reference Changing Disp...

Page 26: ...crucial importance to vision sensors If an intelligent camera is connected lighting can be controlled from the controller Features of intelligent cameras are as follows A single camera enables testing...

Page 27: ...pen and immediately take it off Perform when selecting items etc Drag Draw while pressing on the screen lightly with the touch pen Important Be sure to use the supplied touch pen for touch screen oper...

Page 28: ...ck Press the left mouse button once Perform when selecting items etc Note This document primarily describes operations using the term tapping When using a mouse or trackball read Tapping to mean Click...

Page 29: ...itialization back up required data such as scene data and system data Reference Saving Settings Data to RAMDisk USB Device p 334 1 On the Main screen tap System Controller System initialization The Sy...

Page 30: ...data saved in the RAMDisk are not saved Perform any of the following procedures to keep this data Copy data saved in the RAMDisk to the USB memory Reference Copying Moving Files p 338 Change the save...

Page 31: ...g Settings and Turning Power Off 29 Power to the LCD is turned off Turning LCD On Again This function is specific to FZ4 600 700 1100 series LCD integrated controllers Tap the lower part of the monito...

Page 32: ...lize the multi core CPU to set an operation mode appropriate for the condition of use This function is effective in improving the takt time and reducing the downtime For setting use Startup setting Re...

Page 33: ...de 31 3 Tap and select a desired operation mode 4 Tap OK 5 On the Main screen ADJUST window tap Data save in the toolbar to save the setting data 6 On the Main screen tap System menu Controller System...

Page 34: ...ge logging and image display The FZ4 11 H11 series performs processing using two CPUs with one CPU used exclusively for measurement and the other performing non measurement processing This ensures max...

Page 35: ...mprove the takt time effectively by combining the applicable units using an ingenious processing flow Not supported Supported Processing item Parallel processing Processing item Parallel processing Pr...

Page 36: ...ation Stripes Removal Filter Result Display Edge Position Stripes Removal Filter II Display Image File Edge Pitch Halation Cut Display Last NG Image Scan Edge Position Panorama Scan Edge Width Polar T...

Page 37: ...multiple image input function cannot be used consider using Parallel operation High speed mode Reference About Multiple Image Input Function p 559 Presence of certain processing items such as Data Ou...

Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...

Page 39: ...line 0 and line 1 in response to inputs from different cameras Scene group data and scene data can be set separately for line 0 and line 1 You can switch the monitoring target between line 0 and line...

Page 40: ...approximately by a time corresponding to the camera image input unit Error messages are the same If an error occurs on either line an error message is displayed If logging is performed for line 0 and...

Page 41: ...t appears 4 Change each processing unit 5 Tap OK The setting window closes and the screen returns to the Main screen When changing judgement conditions for multiple processing units repeat steps Refer...

Page 42: ...only are the only communication commands that are accepted during data transfer Data transfer takes a longer time when the scene group file size is larger If the RUN window is displayed in the fast v...

Page 43: ...ene This chapter explains how to create and edit scenes Reference What Is a Scene p 42 Reference What Is a Scene Group p 46 Reference Creating a Scene p 47 Reference Processing Item Selection Guidelin...

Page 44: ...such as using Scene 0 to inspect an ABC label and Scene 1 to inspect an XYZ label changing the set up can be performed smoothly just by changing the scene even when the measurement object and measurem...

Page 45: ...2 Setting Scenes Measurement Flow FZ4 User s Manual What Is a Scene 43 Example Normal measurement Note The processing item Camera Image Input is set in processing unit 0 beforehand...

Page 46: ...2 Setting Scenes Measurement Flow 44 What Is a Scene FZ4 User s Manual Example When adding Position Compensation for two measurement objects in the same field of view...

Page 47: ...2 Setting Scenes Measurement Flow FZ4 User s Manual What Is a Scene 45 Example When judging type from the image and dividing later inspection conditions according to type branch processing...

Page 48: ...oups can be set In other words 32 scenes x 32 scene groups 1 024 scenes which is the maximum number that can be used There are multiple USB ports on the controller but it is necessary to assign the dr...

Page 49: ...cessing unit to a scene 1 Display the scene to edit on the Main screen Reference Switching Scenes and Scene Groups p 65 2 Tap Edit flow in Toolbar The Edit Flow window is displayed 3 Select a processi...

Page 50: ...ocessing items that can be used is limited Reference About Limits on the Number of Image Input Processing Items Used p 612 6 Either tap the icon of the processing unit to be set or tap the Set button...

Page 51: ...p 56 Selecting Measurement Processing Items Using a Chart Select processing items appropriate to the target using the chart Item References Performing position compensation for objects Reference Posi...

Page 52: ...2 Setting Scenes Measurement Flow 50 Processing Item Selection Guidelines FZ4 User s Manual Position Compensation...

Page 53: ...2 Setting Scenes Measurement Flow FZ4 User s Manual Processing Item Selection Guidelines 51 Locating Measurement Objects Not Inclined...

Page 54: ...2 Setting Scenes Measurement Flow 52 Processing Item Selection Guidelines FZ4 User s Manual Locating Measurement Objects Inclined Internal and External Inspection...

Page 55: ...2 Setting Scenes Measurement Flow FZ4 User s Manual Processing Item Selection Guidelines 53 Presence Inspection Dimension Inspection Measurement...

Page 56: ...2 Setting Scenes Measurement Flow 54 Processing Item Selection Guidelines FZ4 User s Manual Burr Inspection Text Comparison Inspection...

Page 57: ...2 Setting Scenes Measurement Flow FZ4 User s Manual Processing Item Selection Guidelines 55 Defect Contamination Inspection Quantity Inspection Measurement...

Page 58: ...Items According to the Measurement Method and Purpose This section describes methods for selecting processing items appropriate to different measurement objectives such as counting quantities checkin...

Page 59: ...Search p 93 Reference Processing Item List Manual Shape Search II p 128 Reference Processing Item List Manual Shape Search p 116 Label position detection Edge Position Effective for detecting whether...

Page 60: ...ct Precise Defect FZ4 Hxxx series Effective for inspection for contamination or spots on plain backgrounds Reference Processing Item List Manual Defect p 290 Reference Processing Item List Manual Prec...

Page 61: ...idth of measurement objects Edge Position Effective when measuring the width of measurement objects Reference Processing Item List Manual Edge Position p 151 Dimension inspection of finished products...

Page 62: ...or exterior and direction Method objective References Interior exterior and orientation inspection through presence of markings Flexible Search Effective when there is variation in the size and positi...

Page 63: ...r than those with plain backgrounds Reference Processing Item List Manual Fine Matching p 308 When not all characters and markings are the same Sensitive Search Effective when the difference between t...

Page 64: ...t Manual Model Dictionary p 339 Reading barcodes Method objective References When reading barcodes Barcode FZ4 Hxxx series Effective when reading barcodes and outputting the information to an external...

Page 65: ...s can be used to automatically select the processing unit at the top or bottom or above or below an arbitrarily selected processing unit in the unit list Specifying the position for a processing unit...

Page 66: ...ted as a group Ref other Scene s flow Units of other scenes can be referred to and added to the current scene flow Selecting a scene to refer to displays the flow for that scene Note If a processing u...

Page 67: ...be performed from external devices Reference Methods for Connecting and Communicating with External Devices p 359 Switching Scenes 1 Tap Scene switch in the toolbar on the Main screen The Switch Scene...

Page 68: ...ve a scene group during switching is linked to the settings of the Measurement Setting window Reference Setting Conditions Related to Operation during Measurement p 344 3 Tap OK The scene group is swi...

Page 69: ...rce scene to copy and then tap Copy 3 In the scene list tap the scene to which the copy is to be pasted and then tap Paste The confirmation window for overwriting is displayed 4 Tap Yes The copied sce...

Page 70: ...cleared 5 Tap Close Renaming a Scene and Adding a Description Arbitrary descriptions can be added to each scene This is convenient for making settings more easily understandable when managing many sc...

Page 71: ...et the name and a description Scene name and Author cannot be longer than 15 characters and Note cannot be longer than 255 characters and cannot be used alone as a Scene name Note When writing Note en...

Page 72: ...performing this operation Copying a Scene Group 1 On the Main screen tap Scene Scene maintenance The Scene Maintenance window is displayed 2 Tap Edit The Scene Group Maintenance window is displayed 3...

Page 73: ...cene maintenance The Scene Maintenance window is displayed 2 Tap Edit The Scene Group Maintenance window is displayed 3 Select the scene group to delete and tap Clear A confirmation message is display...

Page 74: ...Measurement Flow 72 Editing Scene Groups FZ4 User s Manual 2 Set Scene group name 1 Tap for the Scene group name The soft keyboard is displayed 2 Enter a new name Use 15 characters or less to Input w...

Page 75: ...methods for checking whether correct measurement can be performed at the set conditions and describes useful functions for operation Reference ADJUST Window and RUN Window p 74 Reference Performing Te...

Page 76: ...ts are stable switch to the RUN window and perform measurement This section describes the ADJUST window and RUN window ADJUST Window RUN Window There are two types of RUN windows Normal mode and fast...

Page 77: ...ode RUN Window When processing is taking a long time it is necessary to check processing items and setting values The time required for measurement is also displayed with the measurement results so us...

Page 78: ...ntroller is turned on Reference Setting the Start up Status Startup Setting p 347 Lighting gradually gets darker if it is used for a long time so adjust judgement conditions periodically Without stopp...

Page 79: ...re when the measurement results on the ADJUST window are also to be output Remove the check when test measurement for the device only is to be performed without results being output Continuous meas Pl...

Page 80: ...images can be used in performing test measurement again Reference Logging Measurement Values and Measurement Images p 94 Important The measurement interval and display update interval will vary for co...

Page 81: ...re cases in which high precision measurement 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 de...

Page 82: ...e The filtering items Extract vertical edges Extract horizontal edges and Extract edges are effective Extract vertical edges This extracts the vertical edges of an image Extract horizontal edges This...

Page 83: ...sed Time after the processing unit for which time is to be measured 2 Execute measurement 3 After tapping the Detail result area tap the elapsed time processing unit where time is to be checked The el...

Page 84: ...ontrol area tap of the Image layout menu and select the number of images to be displayed The camera image view in the Image Display area switches according to the selected contents There are the follo...

Page 85: ...details of a certain image when four cameras are connected Thumbnail display is not available in the RUN window Fast view mode When using the thumbnail display in the ADJUST window the display will c...

Page 86: ...ist for units after Position Compensation is displayed The units in the area before Position Compensation are not displayed Sub image Indicates displayable image for the selected processing item For i...

Page 87: ...NG cannot be displayed Display Last NG Image fulfills a similar function as a processing item in which up to 4 NG error images can be saved If this processing item is used Last NG can be acquired wit...

Page 88: ...ious status 2 When displaying both the flow and detailed results you can change the size of the Display area of the flow and detailed results by dragging Detail result Switching the RUN Window to Fast...

Page 89: ...Mode window closes Changing Display Contents on the RUN Window Measurement Information Display Area The display contents on the RUN window measurement information display area can be changed Referenc...

Page 90: ...be remeasured include images saved in the controller and images saved in USB memory 1 In the Control area of the Main screen tap Test measurement 2 Tap Select image The Select Image window is displaye...

Page 91: ...amera is not connected measurement will not be performed correctly due to a memory deficiency Perform remeasurement after connecting a camera appropriate to the image size Improving Adjustment Efficie...

Page 92: ...nual If OK is selected If NG is selected 3 Select the processing for the measured image For Adjust setting Tap the Adjust setting button For Move Image file Specify the save destination and tap OK Tap...

Page 93: ...ustment mode Also it cannot be used in the ADJUST window or RUN window fast view mode If the Enter non stop adj button is not displayed the button can be added with the system controller RUN window sh...

Page 94: ...trol area of the Main screen tap Quit simplified non stop adj The simplified non stop adjustment mode ends Note If Switch to ADJUST mode is tapped while entering simplified non stop adjustment the sim...

Page 95: ...e registration region to change 4 Tap Move and input the value or tap the arrows to move the image Images can also be directly dragged and moved 5 Tap OK The change is registered Monitoring Measuremen...

Page 96: ...NG error images identified by trend monitor judgement create settings so that overall judgements from processing units other than Trend Monitor are not included in judgement Logging Measurement Value...

Page 97: ...ns for Operation 95 following kinds of adjustment Logging Current Image Save Last Logging Image This section explains the method for logging the latest input image being displayed 1 On the Main screen...

Page 98: ...ion RAMDisk or USB memory 3 Edit the file name as required 4 Tap OK After the logging operation is complete the Save Last Logging Image window closes Setting Logging Conditions Logging Setting Set the...

Page 99: ...he controller memory is cleared if the power is turned off again To keep images select Save to memory file and save images to USB memory etc Setting item Setting value Factory default Description Dest...

Page 100: ...in the image logging saving conditions When the measurement takt time is short time lag may occur with writing from the controller memory to the RAMDisk or USBDisk and temporary absences of free capac...

Page 101: ...ortant If a USB memory or a network drive is specified as the save destination the processing time may be longer or fluctuate Be sure to check it thoroughly before starting an operation When image log...

Page 102: ...mages and the resolution of the connected number of the camera The number of images that can be saved on the RAMDisk or USBDisk depends on free capacity If RAMDisk is selected this depends on the RAMD...

Page 103: ...to process and analyze data For example the optimum threshold value can be calculated Comparing Logging Data and Logging Images Compare image and measurement data to confirm correctness and to make a...

Page 104: ...asurement ID Clearing Measurement Results Clears all of the currently displayed scenes This function sets the expression which calculates the measurement count and is convenient when that count is to...

Page 105: ...he bottom right of the Main screen and tap Capture Note The same operation can also be performed by tapping the System menu Screen capture Screen capture When capture is performed from the measurement...

Page 106: ...tion Log Functions Setting the operation log This function automatically saves the contents of controller operations and setting changes as a unique file delimited with semicolons Setting content chan...

Page 107: ...ration log file name is the date and time at which the operation log was started the log extension Example 2012 09 29_12 39 04 log When operating in 2 line random trigger mode set a save destination f...

Page 108: ...ap the Measure menu Operation log Operation log state The current operation log status is displayed To change the current operation log status tap either Start or Stop To close the window tap Cancel S...

Page 109: ...erforming Test Measurement Starting Operation FZ4 User s Manual Useful Functions for Operation 107 2 On the Main screen tap Data Save to file The Save to File window is displayed 3 Tap the Copy files...

Page 110: ...3 Performing Test Measurement Starting Operation 108 Useful Functions for Operation FZ4 User s Manual 4 Select Select folder then tap and specify the folder 5 Select the operation log log...

Page 111: ...urement Starting Operation FZ4 User s Manual Useful Functions for Operation 109 6 Specify the destination 7 Tap OK For details on operation logs see Operation log format in the Appendix Reference Oper...

Page 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...

Page 113: ...er Data Tool p 119 Reference Outputting a List of Scene Data Setting Values p 122 Reference Saving Image Files to RAMDisk USB Device p 129 Reference Using Registered Image Administration Tool p 132 Re...

Page 114: ...e controller menu This tool which analyzes setting flows is used mainly in 2 ways Adjustment of measurement setting values during start up Use sample work images to analyze optimal setting values for...

Page 115: ...ens a Analysis result display area 1 List of units A list of units currently set is shown together with analysis results 2 Details of unit Detailed analysis results of each unit are shown 3 Details of...

Page 116: ...e number to be displayed in the image display area Images can be displayed by directly tapping the analysis result window b Control area 1 Target Sets images to be measured 2 Standard image Sets the i...

Page 117: ...ant to judge NG The applicable file types are IFZ BYR and BMP Do not input external commands or STEP signals while the NG analyser is running excluding during non stop adjustment 1 On the Main screen...

Page 118: ...the folder are measured in batch 5 Measurement results are displayed The results in the OK folder are shown first followed by the results in the NG folder Green indicates OK while red indicates NG Adj...

Page 119: ...check the details of values further tap Details of data 8 Adjust the processing item by referring to the displayed content In the following example Correlation values are clearly lower on some screens...

Page 120: ...ecute batch measurement to confirm that no images are falsely judged If there are still falsely judged images repeat the same procedure until a re measurement finds no falsely judged images Note OK NG...

Page 121: ...ed beyond the lines The data variables created are stored to the user data region on the controller Use the User data tool to edit data specify initial values and enter data description comments Use t...

Page 122: ...Specify the initial value for the data Item Setting value Factory default Description Data 999999999 9999 to 999999999 9999 0 000 Set the specified user data value 4 Enter the comment for the data Th...

Page 123: ...tting value Factory default Description Comment Up to 64 characters Space Set the comment for the specified user data 5 Repeat steps 2 to 4 and set the user data 6 To stop the user data tool tap OK 7...

Page 124: ...different setting values of multiple scene data can be easily checked by opening the CSV files in editor Only Get Set data can be downloaded With the setting values upload function a CSV file of whic...

Page 125: ...4 Using Tool FZ4 User s Manual Outputting a List of Scene Data Setting Values 123 5 Select the scene with the setting values to be downloaded 6 Tap...

Page 126: ...file name and tap OK 8 Tap OK The data will be saved to the save location About Downloaded CSV Files The character code of the downloaded CSV file is Unicode UTF 8 The file can be opened with Windows...

Page 127: ...limit of the rotation 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 SH 3 reference...

Page 128: ...er Downloading Setting Values 1 Switch to the scene group that contains the scene with the setting values to be uploaded 2 When reading from USB memory plug a USB memory device into the controller 3 O...

Page 129: ...a List of Scene Data Setting Values 127 6 Tap Important To upload the file set the character code to Unicode UTF 8 with Windows notepad etc then save the file in CSV format 7 Specify the folder and th...

Page 130: ...han the scene data to be loaded is uploaded the parts that do not exist in the CSV file will not change Example In such a case the processing item for Unit 3 will be changed from Camera image input to...

Page 131: ...Image file save The image file save window is displayed 3 Tap Logging image and select the logging image to save Setting item Setting value Factory default Description Data to be saved All logging im...

Page 132: ...played 3 Tap Image files and select the image file to save Setting item Setting value Factory default Description Select file Select folder Saves multiple files in a folder Tap and specify the source...

Page 133: ...ription Folder name Specify the save destination folder name Format Bitmap Jpeg Select the image format to be saved Quarity 0 to 100 100 Set the quality when the image is to be saved in Jpeg format 6...

Page 134: ...files in USB memory Changing it makes it impossible to read the files Registering Image This section describes how to register load or delete a image Registering Images Register images as follows The...

Page 135: ...ave Image File This registers an existing image file 6 Tap Registration In Step 3 if you have selected a number that has been assigned to an existing image the screen that prompts you to confirm wheth...

Page 136: ...elete Note When more than one image is included in the registration images tap the or symbol under the preview window as necessary to move forward or back to the desired image 4 Tap Delete The screen...

Page 137: ...stered Image Administration Tool screen is displayed 2 Select an index number of the reference image to load Note When more than one image is included in the registration images tap the or symbol unde...

Page 138: ...operators actually using the system etc It is also possible to link with the operation log and get operation records for currently logged in users Setting Accounts Account List This explains how to a...

Page 139: ...ce Setting User Group Operation Restrictions p 141 Password Enter the login password for the user being added The password for the new user must have 1 or more characters The password for a transferre...

Page 140: ...for 4 Tap Change group or Change password 5 Change the affiliated group or password 6 Tap OK The user information is changed Deleting an account Delete a user account as follows 1 On the Main screen t...

Page 141: ...ged out when no operation is performed as follows 1 On the Main screen tap the Tool menu Security Settings The security settings window is displayed 2 Tap Account list in the item tab area 3 In the No...

Page 142: ...e Switch to RUN mode ADJUST Control area Display Control area display Panel click ADJUST Test measurement Display Test Measure setting display Panel click ADJUST flow Display Flow display Panel click...

Page 143: ...can be restricted are as follows Security setting items ADJUST Window RUN Other Menu bar Other Edit flow Scene Edit flow Edit Flow buttons Scene switch Scene Scene switch Scene switch button Tool box...

Page 144: ...Image selection Test measure setting panel Image selection Display Image selection Next image Test measure setting panel Display Image selection Previous image Test measure setting panel Zoom images D...

Page 145: ...SMAC CS CJ CP One System Communication PLC Link SYSMAC CS CJ CP One Ethernet PLC Link MELSEC QnU Q QnAS System Communication Ethernet PLC Link MELSEC QnU Q QnAS RS 232C 422 Normal System Communication...

Page 146: ...analyser User Data Tool Tool User data tool Settings download and upload tools Tool Settings download and upload tools Image file save Tool Image file save Customize I O command Tool Customize I O co...

Page 147: ...unt Functions 145 2 In the item tab area tap Operating restrictions 3 Check the operations to be restricted Operations that are not checked are not restricted 4 Check the operations to be permitted in...

Page 148: ...ry device until transfer is completed Data and or the USB memory may corrupt Timing for saving in controller Data is only saved to the Controller when the security setting window is closed with the Cl...

Page 149: ...ntents of security settings Load the saved user account and user group settings into the controller as follows 1 If the settings were stored to USB memory insert the USB memory containing the security...

Page 150: ...llowing message is displayed User info logging in was changed now Please log in again 4 Tap OK The login window is displayed Enter the default user password Administrator If the login window is cancel...

Page 151: ...149 3 In the Item Tab area tap Setting Data 4 Tap Execution The After the migration is finished saved console OK confirmation message is displayed 5 Tap Yes The old security settings are changed 6 Ta...

Page 152: ...use In that case log in with a user account that does have the right to execute that operation Logging in When you log in you can execute those operations that the user account you logged into has th...

Page 153: ...matic logout time is set when you do not perform any operations at all for the set time period you are automatically logged out 1 Tap Login Icon in the Measurement Information Display area The login w...

Page 154: ...st 1 Paste The selected command is overwritten by the copied information Paste targets are comments and processing details If nothing is copied this is disabled 2 Clear The information of selected com...

Page 155: ...leased MeasureStart Afterwards a MeasureInit event is raised 14 Export Export the macro program to file 15 Import Import the macro program from file The existing data will be overwritten 2 Select the...

Page 156: ...value for selected parameter directly This is enabled when Free input is selected on Type of parameter input 3 Variable Select the variable for selected parameter This is enabled when Variable is sele...

Page 157: ...Body of the procedure 3 Output the result or response The way of input output command parameters and response depends on the type of IO modules For detail please refer the pages shown below Reference...

Page 158: ...ined as the table below and we intend to call procedure of CMD0 from CMD1 Command No Command name Busy Function name 0 CMD0 False FUNC0 1 CMD1 True FUNC1 the codes for CMD1 should be like this Gosub F...

Page 159: ...ng type ArgmentString 2 param2 String type ArgmentValue 0 numeric value converted from param0 0 when conversion failed ArgmentValue 1 numeric value converted from param1 0 when conversion failed Argme...

Page 160: ...lue on these variables Variable name Type Content ResponseValue Array of Integers Output data ResponseCode Array of real numbers Command execution result 0 Command processing successful 1 Command proc...

Page 161: ...calculation includes four fundamental calculation index calculation and getting remainder calculation Following is various kinds of calculation Arithmetic Calculation Calculation Content Example Math...

Page 162: ...nus 5 Multiplication or Division 6 Mod Calculation Mod 7 Addition or Subtraction 8 Relative Calculation and so on 9 Not 10 And 11 Or 12 Xor Character Only when English lowercase letter of character co...

Page 163: ...le integer is converted into double When doing logic calculation all digits are operated as integer and the result is integer When division calculation between integer the result will be to round up t...

Page 164: ...expression use not calculation logic or logic and and xor calculation to calculate logically To designated value parameter repeat to define calculation let the result to return this kind of code is c...

Page 165: ...atch C chr C ClearMeasureData C close C cont C CopyMeasureImage C CopyUnitImage C cos C crspoint D date D debug D dim D DisplaySubNo D Do D dposline D DrawArc D DrawArcW D DrawBox D DrawCircle D DrawC...

Page 166: ...E ExecuteImageLogging E exit do E exit for E exp F fcopy F fix F For G GetAll G GetGlobalData G GetImageSize G GetImageWindow G GetPort G GetSystemData G GetUnitData G GetUnitFigure G gosub G goto H h...

Page 167: ...iece P print P print P PutAll P PutPort R ReceiveData R rem R RenumUnitNo R RGB R right R rmdir R RunOut S Select S SendData S SendString S SetDrawStyle S SetGlobalData S SetImageWindow S SetMeasureIm...

Page 168: ...make a descriptive record of command treatment and function description Unexecutable statement that make a descriptive record of annotation and so on that not deal with Label that define branch targe...

Page 169: ...Example Variable A and variable a is the same Both of them are considered as uppercase Variable Type It can be divided into integral variable double variable and string variable After variable name p...

Page 170: ...length space The capacity of fix length space is 8KB It can save integer and double variable The capacity of variable length space is no limited memory permit it can store string and array variable W...

Page 171: ...macro program execution of macro subroutine will be automatically terminated However the rest of the system for example measurement flow continues working Check error information Error information is...

Page 172: ...SELECT without END SELECT 124 CASE without END SELECT 125 ELSEIF without IF 126 ELSE without IF 127 ENDIF without IF 128 IF without ENDIF 129 ELSEIF without ENDIF 130 ELSE without ENDIF 135 DO without...

Page 173: ...statement corresponding if statement Illegal function call Parameters for command or function is out of acceptable range Or problem happened on execution of command Check the calling format and descri...

Page 174: ...d Do Loop While Reference Details p 201 Free the array variable memory region that was defined by the Dim command Erase Reference Details p 203 Gets the Error occurrence commands during exception hand...

Page 175: ...ence Details p 278 Gets the square root Sqr Function Reference Details p 279 Gets the tangent of the specified expression Tan Function Reference Details p 283 Gets the exclusive disjunction exclusive...

Page 176: ...GetMeasureOut Function Reference Details p 213 Update image ImageUpdate Reference Details p 223 Permit the measurement execution MeasureStart Reference Details p 239 Forbid the measurement execution...

Page 177: ...oad the System Scene group data LoadBackupData Reference Details p 235 Load the Scene group data LoadSceneGroup Reference Details p 236 Load the scene data LoadScene Reference Details p 235 Load the S...

Page 178: ...itle Function Reference Details p 264 Set the scene group title name SetSceneGroupTitle Reference Details p 273 Flow control Function Command name References Register a processing unit AssignUnit Refe...

Page 179: ...erence Details p 243 Writes data macro console Print Reference Details p 249 Stops the execution of the program Stop Reference Details p 280 Others Function Command name References Reads in the date f...

Page 180: ...lock Date Function Others Reference Details p 197 Sets the debugging mode Debug Debug command Reference Details p 198 Delete the processing unit DeleteUnit Flow control Reference Details p 199 Definit...

Page 181: ...ol processing unit Reference Details p 222 Update image ImageUpdate Measurement control Reference Details p 223 Reads in the specified number of bytes of binary data Input Function File control Refere...

Page 182: ...thmetic calculation Reference Details p 247 Fetches the specified part separated by the specified character from the character string Piece Function String operation Reference Details p 247 Output dat...

Page 183: ...data SetGlobalData Control global data Reference Details p 269 Set the attribute of the image window SetImageWindow Display control Reference Details p 270 Set the output mode of the measurement resu...

Page 184: ...g unit Reference Details p 289 Gets the processing item ident name of processing unit UnitItemIdent Function Control processing unit Reference Details p 289 Gets the judgement value of the processing...

Page 185: ...X2 200 Y2 100 DX Abs X1 X2 DY Abs Y1 Y2 The results are as follows DX 100 DY 100 Adds global data AddGlobalData dataIdent data Parameters dataIdent Data ident that is to be add data Data to be add Ret...

Page 186: ...r set data AddSystemData Logging LogingCount 20 Get the logical product AND of 2 specified expressions expression1 And expression2 Parameters expression1 The expression integer type that requests the...

Page 187: ...oordinate of approximate circle centerY Y coordinate of approximate circle radius radius of approximate circle Return Value None Description Calculate approximate circle from multiple coordinates coun...

Page 188: ...ter code of the specified character Character code is ASCII Description The character code of the head character of the of the character string specified by Character String is returned in decimal The...

Page 189: ...Unit unitNo Ident Get the arc tangent of the expression specified Atn expression Parameters expression The expression that gets the arc tangent integer type or double precision type real numbers Retur...

Page 190: ...le that executes send processing is specified in argument ioIdent The content of operation depends on the specification of the I O module Example Output BUSY ON to Parallel interface BusyOut ParallelI...

Page 191: ...o scene group 10 ChangeSceneGroup 10 0 Check a registration state of the processing unit CheckUnit unitNo Parameters unitNo Unit number to check integer type Return Value Returns the value of the inte...

Page 192: ...output by inputting the corresponding value is possible For example if Chr 13 is used CR ctrl M is output There is the reverse function asc in relation to Chr and the character code that corresponds...

Page 193: ...scene clear for the scene Clear the title of the scene Delete all processing units in the scene When clear the current scene the screen display is cleared Cannot clear the scene number that is bigger...

Page 194: ...later Open command for I O processing of other files In addition files that have been freed from the File No specified by Close can be opened again using the same File No Multiple files can be closed...

Page 195: ...llowing prompt will be displayed to the macro console MACRO While the prompt shown above is displayed it is possible to directly input Macro Commands Example MACRO Print A ENT When the Cont command is...

Page 196: ...rk memory capacity that only copy it becomes error Illegal function call Example Copy scene group 0 to scene group 1 CopySceneGroup 0 1 Copy the processing unit CopyUnit srcSceneNo srcUnitNo destUnitN...

Page 197: ...cessing unit number integer type destFigureNo The copy destination figure number integer type Return Value None Description Copy the processing unit figure data Example Copy the domain graphic data 0...

Page 198: ...he specified expression This is returned as a numeric value within the range of 1 to 1 Description Specify the angle in the Expression as a radian In the case of angle notation X degrees it is necessa...

Page 199: ...rs are the same type of array that is gotten using the Lsqumeth command to get Line Components This is mainly used to get the intersection of lines gotten by the Lsqumeth command Reference Lsqumeth co...

Page 200: ...Date Time Example Read in the date from the internal clock and output it to the macro console TODAY Date print 20 TODAY This is output as described below 2011 03 10 Sets the debugging mode Debug Mode...

Page 201: ...rray Variable Name Maximum Value of Subscript Maximum Value of Subscript Maximum Value of Subscript Maximum Value of Subscript Parameters Array Variable Name Variable name to be used as the array Arra...

Page 202: ...fined arrays are freed using the Erase command When a declared existing array is re defined without freeing it the array defined the most recently will be valid In this case the array defined before w...

Page 203: ...on logical expressions and Boolean values Reference Calculation p 159 The Exit Do command is used to forcefully exit the Do Loop While command Control is moved from outside the Do block to within usin...

Page 204: ...Get the variance and deviation with respect to the straight lines gotten from the 4 points Please refer to the Lsqumeth command for the method of determining a straight line Dim POSX 3 POSY 3 PARM 2...

Page 205: ...r of the file opened by the Open command Return Value Returns the value of the integer The content of the value is as listed below 0 The end of the file has not been reached 1 The end of the file has...

Page 206: ...0 ARRAY2 200 ARRAY3 300 Erase ARRAY1 ARRAY2 ARRAY3 Gets the Error occurrence commands during exception handling Errcmnd Parameters None Return Value Returns the value of the character string The conte...

Page 207: ...ND Print Then Close Print Writing failed Endif End try Return Gets the error class during exception handling Errno Parameters None Return Value Returns the value of the integer The content of the valu...

Page 208: ...IF without ENDIF 129 ELSEIF without ENDIF 130 ELSE without ENDIF 135 DO without LOOP 136 LOOP without DO 140 EXIT without FOR 141 EXIT without DO This is used between the catch end try of try catch e...

Page 209: ...Expression The expression that gets the exponential value integer type or double precision type Return Value Return double precision type value The return value is the value of mathematical constant...

Page 210: ...n no file exists it is created When the File Name for the copy destination has been omitted when only the directory name and path have been specified it is copied using the same name as the original f...

Page 211: ...int function returns 8 and the Fix function returns 7 Example Truncate the measurement results after the radix point and output them NUMBER1 Fix 9 7 NUMBER2 Fix 9 7 NUMBER3 Fix 9 2 The results are as...

Page 212: ...mand is executed to forcefully exit the loop while the For To Step Next is executing Control is moved from outside the For block to within using the Goto command etc Moving control from inside the blo...

Page 213: ...element of array variable is available The acquired data is stored in the variable specified after it converts into the type of the specified variable Example Gets the value of global data GsetData G...

Page 214: ...be displayed integer type magnification Display magnification Real number type originX Upper left X coordinate of a display image relative to the window upper left coordinate integer type originY Upp...

Page 215: ...cription Gets measurement and the Output presence If an acquisition value carries out the serial data output in the case of 0 the data are not output to the outside If an acquisition value carries out...

Page 216: ...ber of bytes The data is variable in output data The value that an size can appoint is 2 4 8 byte The data acquisition is each carried out for 2 bytes integer 4 byte integer 8 byte real number Appoint...

Page 217: ...t of IO modules p 299 Example If DI3 is ON carry out processing pno3 GetPort ParallelIo 3 If pno3 1 Then Carry out processing Endif Gets system data GetSystemData dataIdent0 dataIdent1 data Parameters...

Page 218: ...1 Window indication Return Value None Description Gets information about the text Display window setting Example Acquire the setting of the text indication window and in the case of non indication a...

Page 219: ...unitNo figureNo figure Parameters unitNo Processing unit number figureNo The figure number to be set figure The figure data to be set Return Value None Description The integer type array variable of o...

Page 220: ...n After processing has been moved to the specified subroutine it is returned using the Return command and the processing is moved to the next line after the line the Gosub command had moved processing...

Page 221: ...ters Expression The expression to be converted to a character string integer Return Value Returns the value of the character type string The content of the value is the character string which converts...

Page 222: ...value is true not 0 either the statement below the Then statement is executed or the processing is moved to the line specified by the Label Refer to Calculation for details on logical expressions and...

Page 223: ...n accordance with the Logical Expression If the condition of the Logical Expression after If is true other than 0 the Then statement within the block right after it is executed Refer to Calculation fo...

Page 224: ...for processing integer type Return Value Returns the value of the integer The content of the value is the processing unit figure format of the specified image 0Binary image 1Monochrome image 2RGB colo...

Page 225: ...it use it Camera Image Input Color Gray Filter Serch Make the input image from a camera ImageUpdate Serch Serch Reads in the specified number of bytes of binary data Input No of Characters File No Pa...

Page 226: ...nd assigns it to a variable Input File No Variable Variable Parameters File No The file number integer of the file with the data to be read in Variable The variable that will store the value that is r...

Page 227: ...urn Value None Description Insert a processing item appointed with a itemIdent in the position appointed with an unitNo Example Between processing unit number 2 and processing unit number 3 insert a s...

Page 228: ...nd the Fix function returns 7 Example Truncate the measurement results after the radix point and output them NUMBER1 Int 9 7 NUMBER2 Int 9 7 NUMBER3 Int 9 2 The results are as follows NUMBER1 9 NUMBER...

Page 229: ...ems Example Acquire the number of the available processing items and search a search processing item and acquire graphic data biggest number information of the search processing item Gets the number o...

Page 230: ...To Inum 1 If ItemIdent I Search Then Goto GetInfo Endif Next GetInfo Gets graphic data biggest number information of the search processing item figMax ItemInfo I 4 Gets the information of the process...

Page 231: ...ent I Search Then Goto GetInfo Endif Next GetInfo Gets graphic data biggest number information of the search processing item figMax ItemInfo I 4 Gets a title name of the processing item ItemTitle item...

Page 232: ...dgement result to be set integer type Return Value None Description Identification name string of I O module that executes send processing is specified in argument ioIdent The content of operation dep...

Page 233: ...n does not exist The desk drive is not connected Example Delete file 1280 720 bmp in Drive C Kill C 1280 720 bmp Convert the capital letter into a small letter LCase character Parameters character Con...

Page 234: ...ct from the character string in Length of Characters Specify the number of bytes in the range from 1 to the number of bytes eligible for extraction in the character string When the Length of Character...

Page 235: ...iption Reads data that exists within the line separated by the line feed code and assigns it to a character Variable Character Variable is less than 255 characters which includes strings such as space...

Page 236: ...the entire Macro Program that is currently loaded List Loads the Program into the Controller memory Load File Name Parameters File Name The program file name of the file to be loaded character string...

Page 237: ...ample Carry out Data save after load the system scene group data LoadBackupData C BACKDIR BackupData bkd Carry out the Data save SaveData Load the scene data LoadScene sceneNo filename Parameters scen...

Page 238: ...data The file name include a pass Example Change scene data to scene 0 after reading in scene group 2 LoadSceneGroup 2 C BACKDIR scenegroup02 sgp ChangeScene 0 Load the System data LoadSystemData file...

Page 239: ...position appointed with a unitNo only the number of unitCount reads processing unit data When appoint 1 in a sceneNo load it in the current scene When appoint 1 in an unitCount load all processing un...

Page 240: ...inate Y coordinate array of the point for calculating the approximate line double precision array Straight Line Component Approximate straight line parameter double precision array Return Value None D...

Page 241: ...timing mode character type 0 Come back immediately without waiting until the measurement end 1 Wait until the measurement end and come back 2 Wait until a measurement and the end of the measurement r...

Page 242: ...fter this command practice do not accept input of the measurement trigger It is necessary to execute MeasureStart command to accept the measurement trigger again When an apple is omitted assume it 0 E...

Page 243: ...s greater than the No of Characters to the right of the Starting Position the entire character string to the right of Starting Position is extracted Example INPUTSTR ABCDEFG OUTPUTSTR1 Mid INPUTSTR 2...

Page 244: ...2147483647 for Expression 1 and Expression 2 When the values of Expression 1 and Expression 2 are double precision type the fractional part is handled as a rounded value Example Run a counter between...

Page 245: ...clears all variables other than the reserved variables Execute this command via control communication method This command works incorrectly if it is implemented in the Macro program Example Delete th...

Page 246: ...branches to the subroutine Label that corresponds to the value given in Expression When the value given by the Expression is 1 branching is done to the location specified by the 1st Label When it is...

Page 247: ...abel Return Value None Description The flow of the program processing moves to the Label that corresponds to the value given in Expression When the value given by the Expression is 1 branching is done...

Page 248: ...ta has been completed the Close command is used to close the file Specify the following values in I O mode Input When data is to be read in from the file Output When data is to be written to the file...

Page 249: ...n also be used in an If statement as an Or condition Refer to Calculation for details on logical expressions Reference Calculation p 159 Values from 2147483648 to 2147483647 can be specified for Expre...

Page 250: ...ring is returned Specify a number of 1 or more in Starting No and Ending No When the Starting No is greater than the Ending No the Null string is returned When the Ending No exceeds the numerical rang...

Page 251: ...macro console When the Expression is delimited with commas it is output delimited by tabs When the Expression is delimited with semicolons it is output after what was output immediately before When th...

Page 252: ...lel I Os data 1 PutAll ParallelIo data Output terminal a point output PutPort ioIdent portNo state Parameters ioIdent Identification name string of I O module that executes send processing portNo Port...

Page 253: ...event set by a system is a notice of connection 100 at the time of the remote control 2 events of the notice of cancellation 200 now the parameter is unused It is necessary to handle the event number...

Page 254: ...began to read Example Begin to read data for 10ch from 4ch of the DM area of the OMRON PLC Gets the 20 integer type data from read data Dim readData 30 Dim getData 20 Begin to read data from PLC Read...

Page 255: ...e only with the type What data you specify is according to the specification of the I O module Example Receive up to 10 bytes of data from the serial Dim data 256 ReceiveData SerialNormal data 10 size...

Page 256: ...ication of the text display window RefreshTextWindow Parameters None Return Value None Description Update the indication of the text display window Example Update the indication of the text display wi...

Page 257: ...am s execution in any way All of the characters and symbols specified in the comment statement are handled as comments A single quotation mark expresses a comment statement the same as a Rem statement...

Page 258: ...cified character string length from the right of the character string Right Character String No of Characters Parameters Character String The Character String that will be extracted character type No...

Page 259: ...ue None Description Always specify an absolute path with the drive name included for the Directory Path Name The directory will not be deleted in the cases stated below The directory specified for del...

Page 260: ...l of the parallel interface RunOut ParallelIo 1 Save the System Scene group data SaveBackupData fileName Parameters filename File name character type Return Value None Description Save system data and...

Page 261: ...n Value None Description Save the image data Save the image specified by the operand preImage under the name specified by the operand filename Please specify operand filename with a password If 1 is s...

Page 262: ...SaveSceneGroup sceneGroupNo filename Parameters sceneGroupNo Save scene group number integer type filename File name character type Return Value None Description Save scene group by a name appointed...

Page 263: ...scene number integer type unitNo Start processing unit number integer type unitCount Number of the preservation processing units integer type filename File name character type Return Value None Descri...

Page 264: ...ation of the scene SceneDescription sceneNo Parameters sceneNo Scene number integer type Return Value Returns the value of the character type The content of the value is explanation of the scene Descr...

Page 265: ...upCount 1 Example Gets the number of effective scene groups groupCount SceneGroupCount Gets the current scene group number SceneGroupNo Parameters None Return Value Returns the value of the integer ty...

Page 266: ...he scene group title name Set a scene group title if unestablished If SceneGroupTitle 1 Then SetSceneGroupTitle 1 Group name Endif Gets the scene creator name SceneMaker sceneNo Parameters sceneNo sce...

Page 267: ...scene number Example If current scene number is not 2 change it to scene 2 NO SceneNo If NO 2 Then ChangeScene 2 Endif Gets the scene title name SceneTitle sceneNo Parameters sceneNo Scene number int...

Page 268: ...inted with an filename Capture is capture of the screenfuls The file name include a pass When already appoint an existing file name it is overwritten Example Output the capture of the screen to a file...

Page 269: ...be omitted The End Select statement can be omitted When multiple expression results exist that match the Case statement Value only the first Case statement from among them is executed Moving control...

Page 270: ...on integer type array variable do not specify it with the number of element like X but like only with the type Example Send a string using serial interface Dim sData 2 sData 0 2 sData 1 8 SendData Ser...

Page 271: ...e processing unit number of image text window Example If display unit number is 1 set processing unit number 2 in display unit number If DisplayUnitNo 1 Then SetDisplayUnitNo 2 Endif Sets global data...

Page 272: ...the window upper left coordinate integer type originY Upper left X coordinate of a display image relative to the window upper left coordinate integer type update Update timing integer type 0 Every me...

Page 273: ...serial data output in the flow is carried out When I set an output mode to 1 the data are output to the outside if the serial data output in the flow is carried out Example Turn on an output mode SetM...

Page 274: ...data of the character string type appoint the character string head to set in size and the character string that added NULL to the end is set for character string from the top of the character string...

Page 275: ...n 1 Endif Set the scene group title name SetSceneGroupTitle sceneGroupNo sceneGroupTitle Parameters sceneGroupNo Scene group number integer type sceneGroupTitle title name character type Return Value...

Page 276: ...Endif Set the scene title name SetSceneTitle sceneNo sceneTitle Parameters sceneNo Scene number integer type sceneTitle title name character type Return Value None Description The number of the scene...

Page 277: ...Measure captureDirectory dirName Set the attribute of the Text Window SetTextWindow unitNo subNo update visible Parameters unitNo Processing unit number integer type subNo Sub number to be displayed i...

Page 278: ...earch processing unit processing unit number 2 SetUnitData 2 103 1 or SetUnitData 2 overallJudge 1 Notes It is forbidden to modify parameters of image input category units from MeasureProc Sets proces...

Page 279: ...s the judgement result of the relevant processing unit The processing unit number to be set is specified for the argument unitNo To the argument judge as a judgment result of the setting The following...

Page 280: ...of the specified expression Sin Expression Parameters Expression The expression that gets the sine integer type or double precision type Return Value Returns the value of the double precision type num...

Page 281: ...fetched Description Get the square root of the specified expression The value of the Expression must be 0 or a positive number Specify either an integer type or double precision type real number in th...

Page 282: ...ng of the ms that TIME Stops the execution of the program Stop Parameters None Return Value None Description Stops the execution of the program The Stop statement can be used anywhere within the progr...

Page 283: ...to Str where the character string of the number is converted to a numeric value Example Convert the measurement results of each processing unit to character strings A 10 B 11 Print Str A Str B The re...

Page 284: ...of negative values it becomes the minimum value Example In the case where 2 is specified for the Integer Part and 0 is specified for the Fractional Part If the Expression is 179 099 then it becomes 9...

Page 285: ...eft Date 2 STARTDAY Then SystemReset Endif Return Gets the tangent of the specified expression Tan Expression Parameters Expression The expression that gets the tangent integer type or double precisio...

Page 286: ...the time from the internal clock is given as Hour HH Minute MM and Second SS separated by colons The range of the time returned is as follows Hour HH 00 23 Minute MM 00 59 Second SS 00 59 Description...

Page 287: ...the amount of time that has elapsed after StartTimer function is called Example By on the store which can be an element of real array real variable the return value of this function passed to the firs...

Page 288: ...as the Goto statement is not possible The kind of error which occurs between Catch End Try can be identified by using the Errno command The command which generated the error between Catch End Try can...

Page 289: ...alue of the integer type The content of the value is enrollment number of the processing unit Description Gets the enrollment number of processing unit from the current flow Example Add the search uni...

Page 290: ...mber 5 serrch UnitData 5 6 or serrch UnitData 5 X Gets processing unit data character string UnitData unitNo dataNo dataIdent Parameters unitNo Processing unit number integer type dataNo Data number i...

Page 291: ...e of control data struct 4 The maximum of figure data 5 The maximum of model data 6 The maximum of image data 7 The maximum of inner processing unit 8 Whether camera setting is effective or not 9 Whet...

Page 292: ...dif Next proc Gets the judgement value of the processing unit UnitJudge unitNo Parameters unitNo Processing unit number integer type Return Value 0 No judgement not yet measured 1 Judgement result OK...

Page 293: ...g unit that is registered in the flow Gets the number of registration of a processing unit Inum UnitCount Registration number which loops For I 0 To Inum 1 title UnitTitle I Output to a file unit numb...

Page 294: ...er string specified for Character String the characters up to that character will be converted to numeric values When there is no 0 to 9 at the head of the Character String the value returned will be...

Page 295: ...in Subroutine EXPB however the variable content will be used in EXPB Varpush Varpop saving returning so there will be no arbitrary rewriting of the variable content Gosub EXPB Print A B C D E The cont...

Page 296: ...and maintainability of a large program can be enhanced through the use of internal variables If the variables fit within a row 255 characters as many as desired can be saved at one time Saved variabl...

Page 297: ...Varpush Varpop saving returning so there will be no arbitrary rewriting of the variable content Gosub EXPB Print A B C D E The content of variables A B C D E is stored to a different region by Varpus...

Page 298: ...elOffset channelCount writeData Parameters ioIdent Identification name of I O module character type area Area classification number integer type channelOffset Offset from the top of an area targeted f...

Page 299: ...of the integer The content of the value is the requested exclusive disjunction Description Each of the values of Expression 1 and Expression 1 will be given as a 32 digit binary number and each bit w...

Page 300: ...matically 0 OFF 1 ON ipAddress IP Address subnetMask Subnet mask defaultGateway Default gateway destIpAddress IP address to which the data is output SerialNormal Communication Serial setting rsMode Co...

Page 301: ...ggingDirectory Destination folder to save data logging imageLoggingPriority Image logging mode 0 Logging operation has priority 1 Measurement interval has priority imageLoggingScene Switches the savin...

Page 302: ...ls p 312 UdpPlcLinkY PLC Link JEPMC MP communication Reference Details p 315 UdpPlcLink PLC Link SYSMAC CS CJ CP One communication Reference Details p 317 EtherNetIP EtherNet IP Interface communicatio...

Page 303: ...4 5 ParallelIo Parallel Interface communication IoModule identification name ParallelIo Overview This is a module is for sending and receiving commands and data via the Parallel interface System data...

Page 304: ...ceive data p 252 SendData Reference Send data p 267 SendString Reference Sends string p 268 ReadPlcMemory WritePlcMemory SetPlcData GetPlcData Example Receive data A parameter of ReceiveData the param...

Page 305: ...ported functions IoInitialize GetPort Reference Input terminal a point input p 214 PutPort Reference Output terminal a point output p 250 BusyOut JudgeOut RunOut GetAll Reference Input terminal all po...

Page 306: ...dentification Meaning Initial value rsMode Interface 0 RS 232C 1 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...

Page 307: ...ta p 252 SendData Reference Send data p 267 SendString Reference Sends string p 268 ReadPlcMemory Reference Begin to read data from designated memory of the PLC p 251 WritePlcMemory Reference Write in...

Page 308: ...low Flow control 0 None 1 Xon Xoff 0 timeout timeout s 5 PLC Link data Identification Meaning Initial value commandArea Command area Area CIO Area CIO commandMemoryAddress Command area Address 0 respo...

Page 309: ...ce Receive data p 252 SendData Reference Send data p 267 SendString Reference Sends string p 268 ReadPlcMemory Reference Begin to read data from designated memory of the PLC p 251 WritePlcMemory Refer...

Page 310: ...a 20 of the integer type SetPlcData SerialPlcLink writeData 32 4 20 Set the data OMRON of the character type SetPlcData SerialPlcLink writeData 36 5 OMRON Write in data for 7ch from 10ch of the DM are...

Page 311: ...ry SetPlcData GetPlcData Example Receive data Set an IP address 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 destinati...

Page 312: ...Reference Output terminal a point output p 250 BusyOut JudgeOut RunOut GetAll Reference Input terminal all point input p 210 PutAll Reference Output terminal all point output p 249 ReceiveData Refere...

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

Page 314: ...ination ipaddr 0 10 ipaddr 1 1 ipaddr 2 1 ipaddr 3 101 Gets the five data ReceiveData UdpNormal data 4 5 size ipaddr 4 4 Send data Set an IP address and parameter size 4 integer type domain in a param...

Page 315: ...Address 200 handshake handshaking 1 responseTimeout Retry interval ms 10000 Area classification Area classification name Classification code Data register 168 File register 175 Link register 180 Suppo...

Page 316: ...a from 10ch of the Data register area Gets the data from readData Dim readData 256 Dim data3 21 Gets the data from PLC ReadPlcMemory UdpPlcLinkM 168 10 7 readData Gets the data of the real number type...

Page 317: ...Output IP address 0 0 0 0 portNo Input port No 9600 PLC Link data commandArea Command area Area Data register commandMemoryAddress Command area Address 0 responseArea Response area Area Data register...

Page 318: ...ipaddr 0 10 ipaddr 1 1 ipaddr 2 1 ipaddr 3 101 Gets the five data ReceiveData UdpPlcLinkY data 4 5 size ipaddr 4 4 Send data Set an IP address and parameter size 4 integer type domain in a parameter...

Page 319: ...s for sending and receiving commands and data by Ethernet PLC Link protocol System data Identification Meaning Initial value enableDhcp Enable DHCP 0 Disabled 1 Enabled 0 ipAddress IP address of the s...

Page 320: ...t input p 214 PutPort Reference Output terminal a point output p 250 BusyOut JudgeOut RunOut GetAll Reference Input terminal all point input p 210 PutAll Reference Output terminal all point output p 2...

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

Page 322: ...only with Ethernet connection Important A controller window cannot be operated or displayed simultaneously on multiple PCs on the network For example the function can be used as follows 1 GUI operatio...

Page 323: ...C is of the same version as that on the controller Environment Settings on the Remote Operation PC The recommended operating conditions for the remote operation PC are as follows CPU Core 2Duo 2 2 GHz...

Page 324: ...anual 1 Set the communication module Select System Controller Startup setting and then Communication and select Remote Operation ON 2 Click Data save and restart when the settings have been saved 3 Se...

Page 325: ...ng Tool FZ4 User s Manual Remotely Operating the Controller Remote Operation 323 Next specify the IP address of the remote operation PC Open the local area connection properties on the remote operatio...

Page 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...

Page 327: ...select or directly enter the IP address and the Line No of the controller to be connected Press Browse to find the IP address and the line number of the controller that can be connected The Line No s...

Page 328: ...however are not the windows of the controller themselves and thus the following types of operational differences can be caused Major differences are listed as follows Functions to be noted Description...

Page 329: ...during a remote operation for example a camera connection error the error dialog box is displayed not on the remote PC but on the controller The remote operation communication will be disconnected if...

Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...

Page 331: ...and image data Reference Basic Knowledge about Data Saving p 330 Reference Saving Settings Data to Controller Memory p 332 Reference Saving Settings Data to RAMDisk USB Device p 334 Reference Saving L...

Page 332: ...stem will not work properly at the next startup Do not remove USB memory devices during saving or loading Operation of the controller may damage data or the USB memory Do not change the extension of s...

Page 333: ...eft of the front 2 Lower right of the front 3 Upper left of the front 4 Upper right of the front Important When the BOX type controller is used If USB memory devices are separately connected to adjace...

Page 334: ...the controller flash memory Note however that if a USB memory device is plugged in scene group data can be saved to the USB memory For FZ4 11 H11 all data are saved in the controller When Using Scene...

Page 335: ...333 etc that the USB memory where scene group data is to be saved is recognized as the USBDisk Reference About USB Drive Names p 330 Note If a USB memory device is not plugged in a check message is d...

Page 336: ...Important During saving do not restart turn off power or remove the USB memory Data will be corrupted and the system will not work properly at the next start up It is especially necessary to pay atten...

Page 337: ...5 Saving Loading Data FZ4 User s Manual Saving Settings Data to RAMDisk USB Device 335 6 Tap OK The window showing transfer status is displayed and the data is sent to the save destination...

Page 338: ...p Data Save to file The Save to File window is displayed 3 Tap Logging image and select the file to save Setting item Setting value Factory default Description Data to be saved All logging image Saves...

Page 339: ...displayed 2 Information of each drive is displayed in the Memory state dialog box If a USB memory is inserted the Eject button is displayed 3 To remove the USB memory tap the Eject button When the USB...

Page 340: ...Main screen tap Data Save to file The Save to File window is displayed 3 Tap Copy files and select the file or folder to copy or move Setting item Setting value Factory default Description Select fil...

Page 341: ...5 Saving Loading Data FZ4 User s Manual Copying Moving Files 339 5 Tap OK The window showing transfer status is displayed and the data is sent to the save destination...

Page 342: ...y at the same time During loading do not restart turn off power or remove the USB memory Data will be corrupted and the system will not work properly at the next startup Be sure to restart the control...

Page 343: ...em Environment This chapter describes settings related to the controller system environment Reference Setting Conditions for Camera Use p 342 Reference Setting Conditions Related to Operation during M...

Page 344: ...n the Main screen tap the System menu Camera Camera connection The Camera Connection window is displayed 2 Verify the connection status 3 Tap Close Setting Trigger Delay Inter camera Setting This crea...

Page 345: ...creen tap the System menu Camera Inter camera setting The Inter camera Setting window is displayed 2 Tap of each item and set values Item Set value Factory default Description STEP Camera 0 delay 0 to...

Page 346: ...uring measurement Save scene group on scene switch Checked Unchecked Sets operation when scene group switching is performed Sets whether the scene group is saved when it is switched The scene group sw...

Page 347: ...lse Width STEP Setting p 355 Reference Setting a Network Drive Network Drive Setting p 356 In addition the controller model and measurement application version can be checked Reference Checking System...

Page 348: ...OK A confirmation message is displayed 4 Tap Yes The setting is saved in the controller and the system automatically restarts After the system restarts the language switches to the selected one Note T...

Page 349: ...led in the FZ4 L35 series Setting the Start up Status Startup Setting The status for when power is turned on is set here Inspection can be set to start immediately after the power is turned on by sett...

Page 350: ...ecifies whether measurement results display or menu operation is to have priority Measurement result priority Measurement results display processing is prioritized Menu operation will be harder to rec...

Page 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...

Page 352: ...CP One PLC Link MELSEC QnU Q QnAS Parallel Standard Parallel I O Specifies the communication module Serial Ethernet Normal Normal Fxxx series method Communication is performed with external devices t...

Page 353: ...gs are confirmed and the Startup Setting window closes Reference About Normal Fxxx series method With the Normal Fxxx series method communication method the OK response timing in relation to MEASURE c...

Page 354: ...ng The current RUN window mode is displayed To change the mode specify the mode in System Controller Select RUN mode 2 Set items to be displayed 3 Set the layout as required Setting the RUN Window Sho...

Page 355: ...stem menu Controller Encoder trigger setting 2 Set the target encoder Setting item Set value Factory default Description Use Encoder trigger Checked Unchecked Sets whether the encoder trigger will be...

Page 356: ...put during the measurement trigger receipt period STEP start Does not count pulses even during the measurement trigger receipt period until the STEP signal is input Pulse reset timing Every trigger pu...

Page 357: ...sabled in the FZ4 L35 series Setting the STEP Input Detection Pulse Width STEP Setting This setting is performed as a countermeasure against STEP input chattering and to prevent operation malfunctions...

Page 358: ...k Drive Network Drive Setting Set a network drive Register the shared folder on a network drive with a shared name The network drive connected to the Select File Folder window of the FZ software will...

Page 359: ...the drive letters such as E F G and H are displayed Shared folder Specify the shared folder name Specify the name of the folder that has been created in advance on the network drive For example if the...

Page 360: ...gging If the time zone of the external device is different from the time zone setting of the controller GMT 08 00 Pacific Time US Canada Do not automatically adjust clock for Daylight Saving Time the...

Page 361: ...PCs and programmable controllers etc Reference About Connecting with External Devices p 360 Reference Communicating through Serial Communication PLC Link p 363 Reference Controlling Outputting through...

Page 362: ...ed as an external device The PLC supported by the FZ4 PLC link protocol is the SYSMAC CS CJ CP One series PLC from OMRON models supporting FINS command and PLC MELSEC Q series protocol MC protocol fro...

Page 363: ...y SYSMAC_CJ1 CJ1H CJ1G CJ1M Yes CJ1W SCU21 V1 CJ1W SCU31 V1 CJ1W SCU41 V1 SYSMAC_CS1 CS1H CS1D CS1G Yes CS1W SCBxx V1 CS1W SCU21 V1 CS1W SCU31 V1 SYSMAC_CP1 CP1E CP1L CP1H CP1W CIF01 SYSMAC_One NSJ Ye...

Page 364: ...l model QnUDECPU Q03UDECPU Q04UDECPU Q06UDECPU Q10UDECPU Q13UDECPU Q20UDECPU Q26UDECPU QJ71C24N QJ71C24N R2 QnUDCPU Q03UDCPU Q04UDCPU Q06UDCPU Q10UDCPU Q13UDCPU Q20UDCPU Q26UDCPU Yes QnUCPU Q00UJCPU Q...

Page 365: ...data area The command area is used when control commands are sent from the PLC to the FZ4 The FZ4 can be controlled by writing commands to the command area In the response area the execution results...

Page 366: ...controller and the external device When making system settings Ethernet settings do not send external input into the Ethernet 1 On the Main screen tap the System menu Communication Ethernet PLC Link...

Page 367: ...ss DNS server a b c d a 1 to 223 b 0 to 255 c 0 to 255 d 0 to 255 10 5 5 1 Input the DNS server address Input Output setting Output IP address a b c d a 0 to 255 b 0 to 255 c 0 to 255 d 0 to 255 0 0 0...

Page 368: ...Area AR DM Area DM EM Area EMO EMC Set the Command area Available EM areas vary depending on the type of the PLC to be connected Address 0 to 99999 0 Set the top channel address in the Command area R...

Page 369: ...the top channel address in the Data output area Output control None Handshaking Set whether or not to provide an interlock with the PLC when performing data output None Data is output regardless of th...

Page 370: ...ferent depending on the communication environment Make sure to verify on the actual usage environment before use The communication speed of the controllers for the FZ4 L35 6 7 series may be faster tha...

Page 371: ...57600 115200 Adjust to the PLC communication specifications Data length bit Note 2 7 8 Adjust to the PLC communication specifications Parity None Odd Even Stop bit bit 1 2 Flow control None Flow cont...

Page 372: ...r Note 2 With the RS 232C MELSEC Q series set the data length to 8 Note 3 With the MELSEC Q series RS 422 cannot be used 3 Tap PLC Link setting The PLC Link Setting window is displayed 4 Set the follo...

Page 373: ...iliary Bit Area AR DM Area DM EM Area EMO Set the Data output area Address 0 to 99999 200 Set the top channel address in the Data output area Output control None Handshaking Set whether or not to prov...

Page 374: ...Data register File register Link register Set the Command area Address 0 to 99999 0 Set the top channel address in the Command area Response area Area Data register File register Link register Set the...

Page 375: ...the communication status Important The communication time is different depending on the communication environment Make sure to verify on the actual usage environment before use The communication spee...

Page 376: ...Signal Signal name Function FLG Command completion bit Turns on when command execution is complete GATE Data output completion bit Turns on when data output is complete BUSY Command execution in progr...

Page 377: ...s p 378 0010 1020 Starts continuous measurement Reference Details p 378 0010 1030 Completes continuous measurement Reference Details p 379 0010 1040 Executes measurement tests on specified units Refer...

Page 378: ...the specified parallel I O terminal Active or Inactive Reference Details p 396 0020 8020 Gets all the ON OFF states for terminals other than DI at once Reference Details p 397 0020 8030 Retrieves the...

Page 379: ...erence Details p 414 0040 4060 Acquires the set DI terminal offset data Reference Details p 415 Data write command Command area top channel Function References 3 2 0050 1000 Sets unit data Reference D...

Page 380: ...mand PLC to Controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 1010 0001 0000 0001 0000 Set command codes 3 0010 0000 0000 0001 0000 Response Controller to PLC Respo...

Page 381: ...ription 15 12 11 8 7 4 3 0 2 0001 0000 0011 0000 Command code Store response target command codes 3 0000 0000 0001 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1...

Page 382: ...4 3 0 2 0010 0000 0001 0000 Command code Store response target command codes 3 0000 0000 0001 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 000...

Page 383: ...binary if the 1st bit is 1 the model is re registered When the setting value is expressed in binary if the 2nd bit is 1 the reference position is updated When the setting value is expressed in binary...

Page 384: ...dow number 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Sets the X movement distance camera coordinate system 7 0000 0000 0000 0000 8 0000 0000 0000 0000 Sets the Y movement distance camera coordinate...

Page 385: ...1 FFFF FFFF 5 0000 0000 0000 0000 Fit Returns the display position and display zoom ratio for the image display window to their default values Command PLC to controller Command area top channel Comma...

Page 386: ...umber of the scene to copy from 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Specifies the number of the scene to copy to 7 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit...

Page 387: ...a with a number specified by command argument 1 after completing copying If there is already data at the copy destination the copied data is written over that data Command PLC to controller Command ar...

Page 388: ...Specifies the type of data to register from 0 Last measured image 1 Logging image 2 Image file 7 0000 0000 0000 0000 8 0000 0000 0000 0000 Specifies the logging image number or file name Source to reg...

Page 389: ...d codes 3 0000 0000 0001 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Echo Returns as is any character string sent by an extern...

Page 390: ...nel Command code Bit Description 15 12 11 8 7 4 3 0 2 A010 1010 0000 0001 0000 Sets command codes 3 0010 0000 0000 0001 0000 4 0000 0000 0000 0000 Sets the affiliated group ID 0 to 7 5 0000 0000 0000...

Page 391: ...000 0000 0001 0000 4 0000 0000 0000 0000 Sets the user ID 0000 0000 0000 0000 19 0000 0000 0000 0000 20 0000 0000 0000 0000 Sets a user account UG0 0000 0000 0000 0000 35 0000 0000 0000 0000 36 0000 0...

Page 392: ...0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Restart Restarts the controller Important When a restart command is executed BUSY does not turn off even after the command execution bit turns off Aft...

Page 393: ...mand PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 2000 0010 0000 0000 0000 Set command codes 3 0020 0000 0000 0010 0000 Response Controller to PLC Respo...

Page 394: ...4 3 0 2 0100 0000 0000 0000 Command code Store response target command codes 3 0000 0000 0010 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 000...

Page 395: ...ently displayed in the specified image display window Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 5020 0101 0000 0010 0000 Sets command codes 3...

Page 396: ...display 0 to 4 5 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0101 0000 0011 0000 Command code Store response target command codes 3 0...

Page 397: ...d execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Response data Input state 0 Prohibited 1 Permitted 7 0000 0000 0000 0000 Getting communication output state...

Page 398: ...00 0010 0000 4 0000 0000 0000 0000 Specifies the terminal type 0 STEP 1 DSA 2 DI 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Specifies the terminal number When the terminal type is STEP 0 STEP1 1 STEP...

Page 399: ...0 Command code Store response target command codes 3 0000 0000 0010 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 6 0000 0000 00...

Page 400: ...oller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 9000 1001 0000 0000 0000 Sets command codes 3 0020 0000 0000 0010 0000 4 0000 0000 0000 0000 Specifies the item to acqu...

Page 401: ...codes 3 0000 0000 0010 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Response data Acquired affiliated gro...

Page 402: ...ene No 5 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0001 0000 0000 0000 Command code Store response target command codes 3 0000 0000...

Page 403: ...0 0100 0000 0000 0000 Sets command codes 3 0030 0000 0000 0011 0000 4 0000 0000 0000 0000 Specifies the item to set 0 Local 1 Remote 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Sets the layout number...

Page 404: ...0000 0000 Sets the unit number 7 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0101 0000 0001 0000 Command code Store response target co...

Page 405: ...e setting Sets the image mode for the specified Image Display window Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 5030 0101 0000 0011 0000 Sets...

Page 406: ...ption 15 12 11 8 7 4 3 0 2 7010 0111 0000 0001 0000 Sets command codes 3 0030 0000 0000 0011 0000 4 0000 0000 0000 0000 Specifies the communication module type 0 Serial Ethernet 1 Serial RS 232C 422 2...

Page 407: ...ea top channel Bit Description 15 12 11 8 7 4 3 0 2 0111 0000 0010 0000 Command code Store response target command codes 3 0000 0000 0011 0000 4 0000 0000 0000 0000 Response code Command execution res...

Page 408: ...000 0000 0000 0000 Sets the terminal state 0 OFF 1 ON 9 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 1000 0000 0001 0000 Command code S...

Page 409: ...e target command codes 3 0000 0000 0011 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Terminal state batch setting Sets all the...

Page 410: ...0000 0000 Specifies the item to set 0 Local 1 Remote 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Sets the user ID 7 0000 0000 0000 0000 8 0000 0000 0000 0000 Sets the password 9 0000 0000 0000 0000 R...

Page 411: ...Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Acquiring Unit Data Acquires the specified processing unit data Important In unit data setting acquisition ex...

Page 412: ...troller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 2000 0010 0000 0000 0000 Set command codes 3 0040 0000 0000 0100 0000 Response Controller to PLC Response area top ch...

Page 413: ...sult OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Version information character string 7 0000 0000 0000 0000 8 0000 0000 0000 0000 9 0000 0000 0000 0000 0000 0000 0000 000...

Page 414: ...000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 Getting image logging folder name Gets the set image logging folder name Command PLC to controller Command area top channel Command code Bit Descr...

Page 415: ...0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Response data Folder name absolute path 7 0000 0000 0000 0000 Getting screen capture folder name Gets the set screen capture folde...

Page 416: ...0000 0100 0000 Command code Store response target command codes 3 0000 0000 0100 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000...

Page 417: ...setting command has been executed the acquisition command is enabled Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 4060 0100 0000 0110 0000 Sets...

Page 418: ...ption 15 12 11 8 7 4 3 0 2 0000 0000 0100 0111 Command code Store response target command codes 3 0000 0000 0100 0111 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 F...

Page 419: ...the date and time of the internal calendar timer in the controller Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 2000 0010 0000 0000 0000 Set co...

Page 420: ...name of the item to be set Refer to identifier 1 of non procedure command SYSDATA Setting value Specifies the setting value Separate Identifier 0 and Identifier 1 with 00 NULL 5 0000 0000 0000 0000 6...

Page 421: ...K 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Data logging folder name setting Sets the data logging folder name Command PLC to controller Command area top channel Command code Bit Description 15...

Page 422: ...nse Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0100 0000 0011 0000 Command code Store response target command codes 3 0000 0000 0101 0000 4 0000 0000 0000 0000 Re...

Page 423: ...the Logging Setting window Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 4050 0100 0000 0101 0000 Sets command codes 3 0050 0000 0000 0101 0000...

Page 424: ...codes 3 0000 0000 0101 0000 4 0000 0000 0000 0000 Response code Command execution result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Loading scene data Reads scene data Command PLC to controll...

Page 425: ...s the number of the scene group to be loaded 5 0000 0000 0000 0000 6 0000 0000 0000 0000 Specifies the name of the file to be loaded with the absolute path Up to 256 characters 7 0000 0000 0000 0000 R...

Page 426: ...result OK 0 0000 0000 NG 1 FFFF FFFF 5 0000 0000 0000 0000 Loading all data Reads system scene group 0 data Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7...

Page 427: ...000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0101 0000 0000 0000 Command code Store response target command codes 3 0000 0000 0111 0000 4 000...

Page 428: ...0000 0000 Saving system data Saves system data Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 3000 0011 0000 0000 0000 Sets command codes 3 0070 0...

Page 429: ...2e49 I 17 465a FZ 7 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0100 0000 0000 0000 Command c...

Page 430: ...Saves the last logging image Command PLC to controller Command area top channel Command code Bit Description 15 12 11 8 7 4 3 0 2 4020 0100 0000 0010 0000 Sets command codes 3 0070 0000 0000 0111 0000...

Page 431: ...ation Up to 256 characters 5 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0101 0000 0000 0000 Command code Store response target comman...

Page 432: ...ommand operates without an argument 5 0000 0000 0000 0000 Response Controller to PLC Response area top channel Bit Description 15 12 11 8 7 4 3 0 2 0100 0000 0011 0000 Command code Store response targ...

Page 433: ...icating with External Devices FZ4 User s Manual Communicating through Serial Communication PLC Link 431 Timing Chart PLC Link This section explains timing charts for command response output and measur...

Page 434: ...7 Methods for Connecting and Communicating with External Devices 432 Communicating through Serial Communication PLC Link FZ4 User s Manual Data Output...

Page 435: ...7 Methods for Connecting and Communicating with External Devices FZ4 User s Manual Communicating through Serial Communication PLC Link 433 Measurement Command Details...

Page 436: ...for Connecting and Communicating with External Devices 434 Communicating through Serial Communication PLC Link FZ4 User s Manual Ladder Program Example PLC Link This section shows a PLC ladder progra...

Page 437: ...32C 422 connection using a non procedure method with commands Communication is performed via the Ethernet using the UDP IP TCP IP protocols Communication Processing Flow Non procedure This section exp...

Page 438: ...same communication specification settings for the controller and the external device When making system settings Ethernet settings do not send external input into the Ethernet If the operation mode F...

Page 439: ...7 Methods for Connecting and Communicating with External Devices FZ4 User s Manual Controlling Outputting through Serial Communication Non procedure 437 Non procedure TCP Non procedure TCP Client...

Page 440: ...0 to 255 255 255 255 255 255 255 0 Input the subnet mask address Default gateway a b c d a 1 to 223 b 0 to 255 c 0 to 255 d 0 to 255 10 5 5 110 Input the default gateway address DNS server a b c d a 1...

Page 441: ...net Non procedure p 435 Important Before setting the communication specifications set the Serial RS 232C 422 communication module to Normal or Normal Fxxx method save the setting to the controller and...

Page 442: ...38400 57600 115200 Adjust to the PC communication specifications Data length bit 7 8 Adjust to the PC communication specifications Parity OFF Odd Even Stop bit bit 1 2 Flow control OFF Flow control is...

Page 443: ...he communication status with connected external devices using the serial interface You can check whether wiring and communication settings have been performed correctly 1 On the Main screen tap the Sy...

Page 444: ...acquisition data and the OK response are sent as separate packets Reference Command List Non procedure p 443 Input format example When using DISPCOND to acquire the display status Command format Resp...

Page 445: ...th lowercase and uppercase letters can be used FZ4 11 FZ4 H11 The configuration is as follows USBDisk E USBDisk2 F USBDisk3 G and USBDisk4 H Execute command Command Abbreviation Function References BR...

Page 446: ...l states except for DI in batches Reference Details p 494 PARAPORTCOND PPC Gets the state of the specified parallel I O terminal Active or Inactive Reference Details p 495 SCENE S Acquires the current...

Page 447: ...defined screen capture folder name Reference Details p 462 IMAGELOGFOLDER ILF Gets the defined image logging folder name Reference Details p 468 IMAGELOGHEADER ILH Gets the prefix of the image logging...

Page 448: ...normally Parameters explanation Destination folder name Specify the name of the folder to save to with the absolute path examples USBDisk E Save destinations include directories under the following sy...

Page 449: ...bkd Only files that are under the following systems and have a BKD extension can be read Load to FZ4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk...

Page 450: ...the file name Save destination FZ4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important Do not turn off power to the controller until there is...

Page 451: ...ing is not performed normally Window display status after clearing Judgement result Unmeasured 0 Value 0 Character string Null character CPYSCENE or CSD Copies the data for the scene with the number s...

Page 452: ...Specifies the scene No to copy to 0 to the number of scenes in the scene group minus 1 Example Copying the scene data for Scene 2 to Scene 10 Command Response DATALOGCOND or DLC Getting the data loggi...

Page 453: ...mmand Response Setting the data logging condition Sets the data logging condition for system data Sets the Data logging condition on the Logging Setting window Command format or Response format When p...

Page 454: ...Gets the set data logging folder name Command format or Response format When processing is performed normally When processing is not performed normally Parameters explanation Data logging folder name...

Page 455: ...n Data logging folder name Specify the name of the data logging folder with the absolute path examples USBDisk E Save destinations include directories under the following systems Save destination FZ4...

Page 456: ...cene group data is saved to the USB memory If there is no USB memory plugged in ER is returned Do not turn off power to the controller until there is a response DATE Acquiring date and time Acquires t...

Page 457: ...7 12 30 00 Command Response Setting date and time Changes the date and time of the internal calendar timer in the controller Command format Response format When processing is performed normally When p...

Page 458: ...ing minute and second omitting hour minute and second Patterns that cannot be used include omitting hour only and omitting minute only Example When changing the date and time to 8 30 2007 12 30 00 Com...

Page 459: ...nal offset is the value added to the command parameter for DI0 DI4 when a parallel command is executed Once the terminal offset setting command has been executed the acquisition command is enabled Com...

Page 460: ...ffset is the value added to the command parameter for DI0 DI4 when a parallel command is executed Command format or Response format When processing is performed normally When processing is not perform...

Page 461: ...dure 459 or Response format When processing is performed normally When processing is not performed normally Parameters explanation Terminal state Responds with the DI0 DI7 states 0 255 1st bit DI0 2nd...

Page 462: ...When processing is not performed normally Parameters explanation Terminal state Specify the DO terminals to switch ON 0 65535 1st bit DO0 2nd bit DO1 16th bit DO15 Example When setting DO0 and DO4 ON...

Page 463: ...ample When returning the character string FZ4 Command Response IMAGECAPTURE or EIC Captures the screen The folder into which the captured image is saved depends on the system data setting The file nam...

Page 464: ...solute path Examples C Data RAMDisk abc bmp RAMDISK abc bmp Be sure to attach the BMP extension to the file name Save destination FZ4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK E...

Page 465: ...o RAMDisk Command Response Setting the screen capture folder name Sets the screen capture folder name Command format or Response format When processing is performed normally When processing is not per...

Page 466: ...ied Image Display window Command format or Response format When processing is performed normally When processing is not performed normally Parameters explanation Display image window number Specify th...

Page 467: ...format When processing is performed normally When processing is not performed normally Parameters explanation Display image window number Specify the number 0 15 of the display image window where you...

Page 468: ...ing Outputting through Serial Communication Non procedure FZ4 User s Manual Response IMAGEFIT or EIF Returns the display position and display zoom ratio for the image display window to their default v...

Page 469: ...Specifies the number of the display image window whose display position and display zoom ratio are returned to their default values 0 to 15 Example When returning the display position and display zoo...

Page 470: ...tputting through Serial Communication Non procedure FZ4 User s Manual IMAGELOGFOLDER or ILF Getting the image logging folder name Gets the set image logging folder name Command format or Response form...

Page 471: ...AMDisk Command Response Setting the image logging folder name Sets the image logging folder name Command format or Response format When processing is performed normally When processing is not performe...

Page 472: ...logging is saved to Gets the prefix for the name of the file the image logging is saved to The maximum length of the prefix character string is 32 characters Command format or Response format When pr...

Page 473: ...formed normally Parameters explanation Image logging prefix Sets the prefix for the name of the file the image logging is saved to with a maximum of 32 characters The set character string is added at...

Page 474: ...ocessing is not performed normally Parameters explanation Display image window number Specify the number of the display image window whose display position and display zoom ratio are returned to their...

Page 475: ...the currently displayed sub image Gets the number of the sub image currently displayed in the specified image display window Command format or Response format When processing is performed normally Wh...

Page 476: ...ub image displayed in the specified image display window Command format or Response format When processing is performed normally When processing is not performed normally Parameters explanation Displa...

Page 477: ...specified display image window Command format or Response format When processing is performed normally When processing is not performed normally Parameters explanation Display image window number Spec...

Page 478: ...or Response format When processing is performed normally When processing is not performed normally Parameters explanation Display image window number Specify the number of the display image window se...

Page 479: ...ing through Serial Communication Non procedure 477 IMAGEZOOM or EIZ Zooms the image display window whose number is specified in or out to the specified zoom ratio The zoom ratio here is the ratio comp...

Page 480: ...zoom ratio 250 16000 250 means 25 16000 means 1600 Example When zooming in display image display window 1 to 200 Command Response IMGSAVE Saves image data Command format Response format When processin...

Page 481: ...L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important If the specified file name already exists this existing file will be overwritten Do not turn off power t...

Page 482: ...Remote operation Input state 0 Prohibited 1 Permitted Example When getting the serial Ethernet input state Command Response Setting communication module input states Permits prohibits input to communi...

Page 483: ...rial Ethernet 1 Serial RS 232C 422 2 Parallel IO 3 Fieldbus 4 Remote operation Input state 0 Prohibited 1 Permitted Example When setting the serial Ethernet input state to Prohibited Command Response...

Page 484: ...ile named abc ifz Command Response Note When the extension is ifz the image is saved with the specified file name When the extension is anything other than ifz the image is saved with ifz appended to...

Page 485: ...er 0 ADJUST window 1 RUN window Example When the currently displayed window is the RUN window Command Response Setting the layout number Sets the layout number and switches the window Important For no...

Page 486: ...When processing is not performed normally Parameters explanation Setting target 0 Local 1 Remote Layout number 0 ADJUST window 1 RUN window Example When displaying the RUN window Command Response LOG...

Page 487: ...ation Acquisition target 0 Local 1 Remote User ID Returns the user ID in the user account used by the user currently logging in Example When getting the name of the user account currently logged in Co...

Page 488: ...the password for the user to switch 32 characters maximum Example When switching to user ID abc with password efg Command Response LOGINACCOUNTGROUP or LAG Gets the group ID in the user account used b...

Page 489: ...asurement one time Command format Response format When processing is performed normally Normal Normal Fxxx series When processing is not performed normally Note About Normal Fxxx series method Referen...

Page 490: ...continuous measurement is performed are output as a response Reference Output Format Non procedure p 519 Completes continuous measurement Continuous measurement ends Command format Response format Whe...

Page 491: ...planation Unit No Specifies the unit number to run a test with 0 to the uppermost unit model number in the unit Example The following sample command runs a test on unit number 5 Command Response MOVSC...

Page 492: ...fies the scene number to copy scene data from 0 to the number of the scenes in the scene group minus one Target scene number Specifies the target scene number for copying scene data 0 to the number of...

Page 493: ...n state 0 OFF 1 ON Example The following sample command returns an enabled logging operation state Command Response Sets logged operation state Sets the logged operation state This command allows conf...

Page 494: ...ple command enables the logging operation state Command Response OUTPUTTRANSSTATE or OTS Gets output state to external device Gets the output state to an external device Enabled or Disabled Command fo...

Page 495: ...ables Disables outputs to external devices When the input state is disabled i e set to 0 all the communications modules are unable to transmit data Command format or Response format When processing is...

Page 496: ...e or Inactive Command format or Response format When processing is performed normally When processing is not performed normally Parameters explanation Terminal state Returns the states of terminals 0...

Page 497: ...not performed normally Parameters explanation Terminal state Sets the following terminal states 0 to 15 0th bit RUN 1st bit ERR 2nd bit BUSY 3rd bit OR0 4th bit OR1 5th bit GATE0 6th bit GATE1 7th bit...

Page 498: ...rameters explanation Terminal types 0 STEP 1 DSA 2 DI Terminal number Specifies the terminal number 0 to 15 When the terminal type is STEP 0 STEP0 1 STEP1 When the terminal type is DSA 0 DSA0 1 DSA1 W...

Page 499: ...ed normally Parameters explanation Terminal types 3 RUN 4 ERR 5 BUSY 6 OR 7 GATE 8 READY 9 DO Terminal number Specifies the terminal number 0 15 When the terminal types are RUN ERR and BUSY 0 When the...

Page 500: ...his operation results in the same operation as when pressing the Register button on the Register Image Management tool If the source to register is 0 the last measured image command argument 3 can be...

Page 501: ...image with registered image number 100 and logging image number 10 is registered Command Response Loads specified image data as registered image Loads a specified registered image as a measured image...

Page 502: ...start the controller Command format Response format OFF SCENE or S Acquires scene No Acquires the current scene No Command format Response format When processing is performed normally When processing...

Page 503: ...tion Non procedure 501 Command Response Scene switch No Switches the scene No to be used Command format Response format When processing is performed normally When processing is not performed normally...

Page 504: ...uires the current scene group No Command format Response format When processing is performed normally When processing is not performed normally Parameters explanation Scene group No The acquired scene...

Page 505: ...itching 0 to 31 Example When switching to scene group 2 Command Response Important During parallel continuous measurement and when the STEP signal is input continuously do not perform switching of the...

Page 506: ...ead with a definite path ex USBDisk abc scn E abc scn Only files that are under the following systems and have an SCN extension can be read Load to FZ4 1100 series FZ L35 600 700 series RAMDisk C Data...

Page 507: ...Z4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important If the specified file name already exists this existing file will be overwritten Do no...

Page 508: ...gp Only files that are under the following systems and have an SGP extension can be read Load to FZ4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk...

Page 509: ...ries RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important If the specified file name already exists this existing file will be overwritten Do not turn off power to the controll...

Page 510: ...ric characters Data Logging dataLogging 0 None 1 Only NG 2 All Name of destination folder for saving data logging dataLoggingDirectory Save destination folder name one byte alphanumeric character Impo...

Page 511: ...ix for image logging file name imageLoggingHeader Prefix for image logging file name one byte alphanumeric characters Data Logging dataLogging 0 None 1 Only NG 2 All Name of destination folder for sav...

Page 512: ...ation Non procedure FZ4 User s Manual Command Response Example 2 When the RAMDisk is set as the image logging save destination Command For FZ4 L35 FZ4 4 FZ4 7 For FZ4 11 Response SYSLOAD Reads system...

Page 513: ...the following systems and have an INI extension can be read Load to FZ4 1100 series FZ L35 600 700 series RAMDisk C Data RAMDisk RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important Do not turn off p...

Page 514: ...RAMDISK USBDisk E F G H USBDisk to USBDisk3 Important If the specified file name already exists this existing file will be overwritten Do not turn off power to the controller until there is a response...

Page 515: ...issued in milliseconds 100 to 99999 Command string Specifies the command string Max 1024 characters Example In case of permission of trigger input when 3000 ms elapses Command Response UNITDATA or UD...

Page 516: ...ls refer to External Reference Table for each processing item in Processing Item List Manual Measurement The acquired measurement value is output as a response Example When the judgement result of Sea...

Page 517: ...ls refer to External Reference Table for each processing item in Processing Item List Manual Setting data Set the settings data parameters Example When Skipping angle external reference table value 12...

Page 518: ...binary if the 1st bit is 1 the model is re registered When the setting value is expressed in binary if the 2nd bit is 1 the reference position is updated When the setting value is expressed in binary...

Page 519: ...cifies a group ID to which a user account is to be added 0 to 7 User ID Specifies a user ID of the user to be added with up to 32 characters Password Specifies a password for the user to be added with...

Page 520: ...or Response format When processing is performed normally When processing is not performed normally Parameters explanation User ID Specifies the user ID of the user to be deleted with up to 32 charact...

Page 521: ...version Example When the controller type is FZ4 XXX the software version is 4 00 and the date is Nov 07 2011 Command Response Output Format Non procedure If the processing unit Data Output is set in...

Page 522: ...eparators are not output in the absence of the following data Decimals are rounded up and output The range of values that can be output is as follows 999999999 9999 Measurement value 999999999 9999 Wh...

Page 523: ...nd data 1 is 1 000 Note Unlike ASCII output binary output has no separators between data such as field separators or record separators etc Reference Processing Item List Manual Data Output p 574 The r...

Page 524: ...edure commands using FZ4 specific VisionSystemObjects EtherNet IP communication specification The EtherNet IP communication specification is described The conformance test applies to Ver A7 Before est...

Page 525: ...rea of the FZ4 For input connections allocate the response area and data output area of the FZ4 Output connections are used when control commands are sent from the PLC to the FZ4 Input connections are...

Page 526: ...the multi line random trigger mode the communication module on line 1 must also be set to Ethernet IP Reference Setting the Start up Status Startup Setting p 347 When using 2 line random trigger mode...

Page 527: ...when Output control is set to Handshaking A timeout error occurs when no response from external devices is received within the time that has been set A timeout error occurs if the status of each flag...

Page 528: ...res command parameters For input connections execution results and output data from the controller are set Execution results from the controller control outputs command codes response codes response d...

Page 529: ...s the response from the executed command RES DATA Response data Stores the response data from the executed command DATA0 7 Output data 0 to 7 The data set in the output processing items is output When...

Page 530: ...communications areas with one data type for the command area and another data type for the response and output areas Here data types called S_EIPOutput and S_EIPInput are defined Data Type to Access t...

Page 531: ...Access the Response and Output Areas Name of data type S_EIPInput Type of derivative data type Structure Name of data type Data type S_EIPInput STRUCT StatusFlag U_EIPFlag The data type that was defi...

Page 532: ...t For data links to the response and output areas 3 Exporting the Variables That Were Defined on Sysmac Studio Export the variables that you defined so that you can use them on the Network Configurato...

Page 533: ...put ResposeCode Response data EIPInput ResposeData Output Area Signal name Variable name Output data 1 EIPInput OutputData 0 Output data 8 EIPInput OutputData 7 Accessing Communications Areas by Speci...

Page 534: ...ds equivalent to non procedure command Execute command Command area top channel Function References 3 2 0010 1010 Measurement is performed one time Reference Details p 378 0010 1020 Starts continuous...

Page 535: ...0 8010 Gets the state of the specified parallel I O terminal Active or Inactive Reference Details p 396 0020 8020 Gets all the ON OFF states for terminals other than DI at once Reference Details p 397...

Page 536: ...s p 536 0040 4050 Acquires the set data logging condition Reference Details p 414 0040 4060 Acquires the set DI terminal offset data Reference Details p 415 Data write command Command area top channel...

Page 537: ...System Scene Group 0 data in a file Reference Details p 536 Executes a screen capture Reference Details p 536 Data Output EtherNet IP Either fixed point output or floating point output can be selecte...

Page 538: ...may occur Do not use EtherNet IP communication when the multiple input function is being used If the measurement interval is short a communication error may occur depending on the measurement processi...

Page 539: ...l and for line 0 in the 2 line random trigger mode 2 02Hex For line 1 in the 2 line random trigger mode TCP IP Interface Object 245 F5Hex 1 01Hex EtherNet Link Object 246 F6Hex 1 01Hex Data type The d...

Page 540: ...code Name Details 14 0EHex GetAttributeSingle Acquires the attribute value Setting for information the FZ4 sends Instance Setting item Setting value Description Instance 101 For normal control and for...

Page 541: ...alent to non procedure commands Reference Controlling Outputting through Serial Communication Non procedure Command List p 443 Service Service code Name Details 0x32 SetAttribute Sets a value for the...

Page 542: ...ing Communication Specifications Parallel Interface Set the controller communication specifications Use the same communication specification settings for the controller and the external device Note Du...

Page 543: ...hat the interval is equal to or longer than Gate ON delay Output time and shorter than measurement interval If the cycle is longer than the measurement interval output timing will be delayed while mea...

Page 544: ...rom the external device to the controller is displayed When a signal is input the background color becomes red DSA0 DSA1 DI RUN The output status of each signal is displayed When a signal is output th...

Page 545: ...trigger mode the ERR signal is used in common 3 Change the contents to be sent When switching between ON OFF is performed the changed contents are displayed on the monitors of external devices Please...

Page 546: ...ene switch Switch measurement scenes 1 01 Input Scene No in binary format 0 to 31 Switch to scene 2 Input example 10100010 Scene group switch Switch measurement scene groups 1 11 Input Scene Group No...

Page 547: ...0 Clear the measurement values of line 1 Input example 11010000 Clear Error Clear error output The ERROR indicator is also cleared 1 10 0001 Clear the error of line 0 Input example 11010001 Clear Para...

Page 548: ...ct from a 2 s complement binary format or BCD format For 2 s complement see Reference Terminology Explanations p 590 Output sequence Measurement results are output in sequence starting with the smalle...

Page 549: ...nce Clears measurement value by the parallel command p 555 Reference Clears the OR and DO signal by the parallel command p 556 Reference Clears error by the parallel command p 557 Reference Timing cha...

Page 550: ...se on going processing or commands that are input will not be performed correctly OR Outputs overall judgement This is determined when the measurement is completed BUSY signal ON OFF Selection of whet...

Page 551: ...Signal Function STEP Input measurement triggers from external devices such as optic switches etc Perform measurement once synchronous with the STEP signal turning on OFF ON Turn the STEP signal ON fo...

Page 552: ...ing turned on DI7 This is the execution trigger After DI0 to 6 is set turn DI7 on after an interval over 1 ms Always have this turned ON during a continuous measurement Stops continuous measurement wh...

Page 553: ...ample When 3 expressions are set in Parallel Data Output Reference The output signal functions the same as when Output Control is set to None Reference When Output Control Is Set to None p 547 Input s...

Page 554: ...output levels will be counted according to the number of times the STEP signal turns on For this reason perform settings so that results are output only once for each measurement 1 unit for Judgement...

Page 555: ...me as when Output Control is set to None Reference When Output Control Is Set to None p 547 Scene Scene Group Switch Output signal Signal Function RUN Turns on when the controller is available for mea...

Page 556: ...n the BUSY signal OFF timing on the control side set the scene switching additional time to lengthen the BUSY signal OFF timing Reference The amount of time during which the BUSY signal is turned ON w...

Page 557: ...time during which the BUSY signal is turned ON is approximately 1 ms Input signal Signal Function DI0 to 4 Turns the command OFF DI5 Turns the command OFF DI6 Turns the command ON DI7 This is the tri...

Page 558: ...l not be executed correctly BUSY This does not change when the OR and DO signal is being cleared Do not however clear the OR and DO signal when the BUSY signal is turned ON The command will not be exe...

Page 559: ...al Function RUN Turns ON when the controller is set to the RUN window Turns OFF in the ADJUST window READY This does not change when an error is being cleared Do not however clear the error signal whe...

Page 560: ...rns the command OFF DI6 Turns the command ON DI7 This is the trigger signal to clear an error After DI0 to 6 is set turn DI7 ON after an interval over 1 ms After checking that the ERROR signal has tur...

Page 561: ...nterface p 540 GATE0 GATE1 Used to control the loading time of the DO signal to external devices GATE0 and GATE1 correspond to line 0 and line 1 respectively ON for the time required for external devi...

Page 562: ...e Input p 614 If STEP is input while READY is off the ERROR terminal turns on If triggers are input continuously and too quickly for the communication output to catch up some steps may not be output o...

Page 563: ...ommand results and files Important When sending or receiving files using the FTP function make sure to create file names and folder names using one byte alphanumeric characters An account and a passwo...

Page 564: ...5 255 255 255 0 Input the subnet mask address Default gateway 0 0 0 1 to 255 255 255 254 10 5 5 110 Input the default gateway address DNS server a b c d a 1 to 223 b 0 to 255 c 0 to 255 d 0 to 255 10...

Page 565: ...the controller are shown Folder name Description Network This folder is used for management Data cannot be saved within this folder RAMDisk This folder is for storing logging images and data files Whe...

Page 566: ......

Page 567: ...Reference About Number of Logging Images p 611 Reference About Limits on the Number of Image Input Processing Items Used p 612 Reference About Max Number of Loading Images during Multiple Image Input...

Page 568: ...single refer to the following tables to prepare the lens and extension tube The lens may vary depending on the size of measurement objects and the camera setting distance Optical Diagrams 0 3 megapixe...

Page 569: ...setting distance for different types Make sure to verify the lens type when checking the graph as the field of view value is different for each type Points such as t5 0 on the graph correspond to the...

Page 570: ...ue is different for each type 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 extens...

Page 571: ...P0 5 3Z4S LE SV 1614H 16 2mm F1 4 30mm 47 5mm M27 P0 5 3Z4S LE SV 2514H 25 0mm F1 4 30mm 36 0mm M27 P0 5 3Z4S LE SV 3514H 35 01mm F1 4 44mm 45 5mm M35 5 P0 5 3Z4S LE SV 5014H 50 0mm F1 4 44mm 57 5mm M...

Page 572: ...ESR Max O D Thickness 12 Note Do not overlap 2 or more extension tubes 0 5 mm 1 0 mm 2 0 mm Since they are installed between the lens and the threaded section of another extension tube overlapping the...

Page 573: ...of each processing unit and the sizes of the registered models Shape search If shape search setup window is opened while the RAMDisk memory is insufficient for image logging etc on the RAMDisk a warn...

Page 574: ...rupt The communication time out is occurred Switch off controller verify the following contents and then restart Is cable connected correctly Does it comply with communication specifications of extern...

Page 575: ...eck 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 controller Or has the USBDisk be...

Page 576: ...Server screen is displayed The connection was cut off based on the idling session time set on the network logging destination PC At the command prompt on the PC enter net config server autodisconnect...

Page 577: ...group data and system data saved to the controller have been corrupted In some cases when the power is shut down or the USB memory was removed while accessing the CF card in the controller such as wh...

Page 578: ...er of specific processing items such as camera image input exceed the limit Reference About Limits on the Number of Image Input Processing Items Used p 612 In the Image view setting of the Control are...

Page 579: ...OK button to terminate it To fix the setting have an image input and then go into the setting window and press the OK button to terminate it To fix the setting have an image input and then go into th...

Page 580: ...allel data output GATE signals are not output unless these items are specified Is Output checked on the ADJUST window Measure on the RUN window or measure on the ADJUST window upon checking Output in...

Page 581: ...he external devices compatible with the controller Is Flow control in communication specifications set to None To save data set Flow control to None Reference Setting Communication Specifications RS 2...

Page 582: ...on the screen and adjustment of color intensity with a range of 0 to 255 can be performed For each of RGB black is rendered with a 0 value and white is rendered with a 255 value During measurement of...

Page 583: ...rough search of overall measurement region Search for the model over the entire measurement region 3 Perform additional searching near the model Search Detection Method With search processing there a...

Page 584: ...search processing speed by through the model parameter items Stab Prec and or Skipping angle If the value specified for Stab or Prec is small or if the value for Skipping angle is large the processin...

Page 585: ...interval skipping 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 skipp...

Page 586: ...ges in the measurement region Edge Detection Method The following two types of edge detection method are available Projection Density method A projected waveform is formed relative to the density leve...

Page 587: ...ighboring pixels for processing Edge Level Indicates the edge color change level degree of color difference This level is adjusted if edges cannot be accurately detected Note The value 0 to 100 for th...

Page 588: ...value for color difference in the edge detection area are determined and if the difference is less than the noise level it is judged that there is no edge When detection is affected by noise increase...

Page 589: ...se the color difference value Defect Detection Measurement Color changes within the measurement region are used to find defects such as scratches contamination and chipping After measurement region is...

Page 590: ...defect detection size limits leads to weaker detection sensitivity and shorter processing time Handling Coordinates The processing items for measuring positions have a setting item called Output param...

Page 591: ...rm calibration when selecting output to external devices Reference Calibration p 591 Calibration ON Calibration is performed during output and measured values after calibration are output Calibration...

Page 592: ...to the measurement object from processing items that are related to position compensation Intelligent camera with lighting function Cameras with a dome shaped light can also be controlled with the con...

Page 593: ...of the model are to be output by the search and ECM search processing item The initial value is at the center of a model Candidate With regards to search based processing items search flexible search...

Page 594: ...units Processing unit A unit that constitutes measurement processing Scenes measurement flow are created by setting processing items in processing units Reference Creating a Scene p 47 Correlation val...

Page 595: ...sed as 2 s complement 1 can be calculated by 0 1 There are methods for simple calculation without performing this kind of computation For instance Negative number inverting all bits of a positive numb...

Page 596: ...input of specific values Set numerical values by dragging the slider Setting values can be done by dragging the slider on the screen The method for displaying the numeric keyboard and setting values...

Page 597: ...o switch between uppercase and lowercase mode tap A a The default state is lowercase input mode Operation Method 1 Tap in the item in which a character string is to be set The soft keyboard is display...

Page 598: ...ayed ex USBDisk USBDisk2 c Toolbar Copy Reference Enabled when a folder or file is selected in the List View area p 597 When tapped the file that is selected is copied and Paste becomes enabled Paste...

Page 599: ...ile displayed Scene data System data etc in the List View area p 597 Available Operations in Select File Window This section describes the main operations available from the Select File window Note If...

Page 600: ...r or File 1 Tap the name of file or folder to be deleted from the List View area The file or folder will be selected 2 Tap Delete A confirmation window is displayed 3 Tap OK The selected file or folde...

Page 601: ...ons Zoom in button Enlarges the selected area to twice its size Original size button Displays the selected area in the original size Zoom out button Reduces the selected area by half Full screen butto...

Page 602: ...ing Area Window for registering figures when registering or setting areas or models as measurement objects a Figures Displays a list of names of objects that have been set The figure at the bottom of...

Page 603: ...ecify the object coordinates or radius Tapping or will display the items currently not displayed c Zoom Browser Area Magnifies the Image Display area by the selected magnification factor Setting Metho...

Page 604: ...ength of a line Drag the points toward the intended direction Example When changing the oblique direction Drag a point in the direction the line is to be changed Example When changing the line width D...

Page 605: ...ayed on the top bottom left right and lower right of the circle Dimension Adjustment Drag the points Example When zooming in on a circle Drag the point on the lower right of the circle Example When tr...

Page 606: ...tting is performed through input of numbers or through tapping on the arrows Circumference Image selection status Points are displayed on the top bottom left and right of both the inner and outer circ...

Page 607: ...Using numbers for setting The window for settings is split into two Setting is performed through input of numbers or through tapping on the arrows Arc Image selection status Points are displayed on t...

Page 608: ...usting the width of an arc Drag a point on the inner or outer arc inward or outward Example When changing the angle of arc part that is open Drag one of the points at the end of the arc Using numbers...

Page 609: ...ures 607 Crosshair Cursor Image selection status Entire image is selected Using numbers for setting Setting is performed through input of numbers or through tapping on the arrows The line type and lin...

Page 610: ...e created If the number of vertexes is not within 3 to 10 the image cannot be confirmed as a polygon Image selection status Points are displayed at the vertexes of the figure Dimension Adjustment Drag...

Page 611: ...cessing item About OR Setting NOT Setting The OR setting NOT setting is used when multiple images are combined Areas with complex shapes can be drawn through combining figures and unnecessary parts ca...

Page 612: ...time the button is tapped OR The selected figure is displayed with a dotted line in the OK color When drawing multiple figures the entire area is registered as one region NOT The selected figure is d...

Page 613: ...4 L35 270 135 90 67 232 116 77 58 40 20 13 10 11 5 FZ4 6 FZ4 H6 FZ4 7 FZ4 H7 43 21 14 10 FZ4 11 FZ4 H11 16 8 5 4 Intelligent compact camera 752 pixels x 480 pixels 0 3 megapixel camera 640 pixels x 48...

Page 614: ...chrome camera 19 Image input related processing items Target processing items are as follows Item Processing item Loading images Camera Image Input Camera Image Input HDR Camera Switching Performing i...

Page 615: ...ge input items that can be used is only reduced by one In the case of FZ4 11 H11 the number of processing items is not limited and as many processing items as permitted by the memory can be registered...

Page 616: ...ype of controller 0 3 megapixel camera 2 megapixel camera 5 megapixel camera FZ4 L35 16 Camera0 Camera1 32 Camera2 Camera3 4 Camera0 Camera1 8 Camera2 Camera3 1 Camera0 Camera1 2 Camera2 Camera3 FZ4 6...

Page 617: ...ecognized characters are output to an external device using a character code base 10 Calculation method for output value base 10 Number of upper level bits x 16 number of lower level bits of recognize...

Page 618: ...Description For 0 3 megapixel cameras For 2 megapixel cameras For 5 megapixel cameras X_MAX The max value in the X axis orientation 639 1599 2447 Y_MAX The max value in the Y axis orientation 479 119...

Page 619: ...files can be saved and read faster than using USB memory However capacity is a fixed 40 MB 256 MB for FZ4 11 H11 Files saved in RAMDisk are cleared when the power is turned OFF Application memory Thi...

Page 620: ...ge Data Output area DM1000 When the PLC link Data Output area is set to DM1000 data is stored as follows in the PLC I O memory Up to 8 expressions can be registered in the serial output flow on the FZ...

Page 621: ...isplay 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 d...

Page 622: ...class attribute 7 7 Get Maximum ID Number Instance Attributes UINT Attribute ID number of instance attribute 7 Instance Attribute ID Access Name Data type Description Attribute value 1 Get Vendor ID U...

Page 623: ...ification 621 1 2 02h Message Router Object Class Attribute None Instance Attribute None Service None 1 3 06h Connection Manager Class Attribute None Instance Attribute None Service Code Service name...

Page 624: ...bject Path size UINT Path size 2 Path Padded Segment specifying physical layer link object 20 F6 24 01 EPATH 5 Get Interface Configuration STRUCT of TCP IP network interface setting IP Address UDINT D...

Page 625: ...Maximum instance number 3 3 Get Num Instance UINT Number of ports where instance is created 2 Instance Attribute ID Access Name Data type Description Attribute value 1 Get Interface Speed UDINT Inter...

Page 626: ...n Attribute value 3 Get Data BYTE arrangement Byte data The data format is defined on the application side LINE 0 4 Get Size UINT Number of bytes Size 48 Instance Attribute O T Instance ID 102 ID Acce...

Page 627: ...ace is executed The information for one API information is written into the log file as one record The format for each record written into the log file is as follows The four data items of the executi...

Page 628: ...t processing SetMeasureOut Sets whether or not measurement results are output Reference Details p 271 UnLockMeasureStop Sets measurement trigger input to enabled Reference Details p 643 System Setting...

Page 629: ...cene No Reference Details p 265 GetSceneTitle Acquires the scene title name Reference Details p 265 SetSceneDescription Sets the scene description Reference Details p 272 SetSceneMaker Sets the scene...

Page 630: ...sing unit data GetUnitDataS2 Acquires processing unit data GetUnitFigure Acquires processing unit figure data Reference Details p 217 GetUnitItemIdent Acquires the identifier name for a processing ite...

Page 631: ...ation SystemReset Executes a system reset Reference Details p 643 Section added in Ver 3 40 API name Function References CreateDirectory Creates a directory Reference Details p 631 CopyFile Copies a f...

Page 632: ...than 0 Clearing the logging count information ClearImageLogCount Parameters None Return value If the image logging count is cleared successfully returns 0 Otherwise returns value other than 0 Clearin...

Page 633: ...meters None Return value If it succeeded returns 0 Otherwise returns value other than 0 Copy File CopyFile Parameters srcFileName Name of file to copy from destFileName Name of destination file Return...

Page 634: ...rns value other than 0 Ending an FZ process ExitFzProcess Parameters None Return value If the FZ process ended successfully returns 0 Otherwise returns value other than 0 Executing batch input of para...

Page 635: ...0 Getting an image histogram GetHistgram Parameters unitNo Image input related and image conversion related processing item processing unit number imageNo Image number imageChannel Image channel numb...

Page 636: ...n UdpNormal UDP non procedure communication UdpNormal2 UDP non procedure communication FXXX series method UdpPlcLink UDP PLC link Omron PLC UdpPlcLinkM UDP PLC link Mitsubishi PLC 3 Registers one of t...

Page 637: ...Parameters ioIdent Initializing I O module identifier name ParallelIo Parallel I O Serial normal Serial non procedure communication UdpNormal Ethernet UDP non procedure communication Return value If...

Page 638: ...nstopSync Parameters None Return value If non stop adjustment data is synchronized successfully returns 0 Otherwise returns value other than 0 Executing batch input of parallel I O and other terminal...

Page 639: ...unication portNo Input port number Parallel I O DO0DO7 0 to 15 GATE0 100 BUSY 101 OR0 102 ERROR 103 RUN 104 READY0 105 GATE1 108 OR1 110 READY1 113 data Input data Return value If data is input succes...

Page 640: ...connection IP address example 192 168 0 1 for the parameter with a character string Other I O The parameter specification is disabled use with it omitted parameterSize Input condition parameter size...

Page 641: ...ings SaveSecurityData Parameters _userName User name executed _password User password executed fileName File path to save to Return value If it succeeded returns 0 Otherwise returns value other than 0...

Page 642: ...e If data is output successfully returns 0 Otherwise returns value other than 0 Sending a character string SendString Parameters ioIdent I O module identifier name outputString Character string sent R...

Page 643: ...ow SetJudgeWindow Parameters handle Handle locationX X coordinate of upper left of window locationY X coordinate of upper right of window fontSize Font size Return value If the judgment result display...

Page 644: ...other than 0 Setting a user account SetUserAccount Parameters _userName User name executed _password User password executed userName Name of user to be set userGroupNo User group number to be set pas...

Page 645: ...her than 0 Setting measurement trigger input to enabled UnLockMeasureStop Parameters None Return value If it succeeded returns 0 Otherwise returns value other than 0 Logging in as the specified user U...

Page 646: ...8 Appendixes 644 Operation log format FZ4 User s Manual Return value If it succeeded returns 0 Otherwise returns value other than 0...

Page 647: ...corner of the front or back cover Rev No Rev Date Revision Contents Software Version 01 Nov 2011 Original production Ver 4 0 01A May 2012 Minor corrections Ver 4 1 02 Nov 2012 Improvements in communic...

Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...

Page 649: ...arImageLogCount 630 ClearMeasureData 190 ClearScene 191 ClearSceneGroup 630 ClearSecurityData 630 ClearSettingData 631 Clearing a scene 67 Clearing measurement result 102 Clearing saved images 102 CLR...

Page 650: ...633 GetImageLogInfo 633 GetImageSize 211 GetImageWindow 212 GetIoModuleIdent 634 GetMeasureOut Function 213 GetPlcData 213 GetPort API 634 GetPort Function 214 GetSecurityParameter 635 GetSystemData...

Page 651: ...Noise level 586 Noise Width 587 Non procedure 360 Non stop adjustment 91 Non stop adjustment mode 38 NonstopSync 636 Normal mode 75 Not Function 243 NOT setting 609 O On Gosub 244 On Goto 245 OPELOGCO...

Page 652: ...UP 502 SCNLOAD 503 SCNSAVE 504 Screen capture 103 ScreenCapture Custom Command 266 Search Detection 581 Search processing 580 Search speed 582 Select Case Case Else End Select 266 Select images 88 Sel...

Page 653: ...art EtherNet IP 535 Touch pen 25 Trackball 25 Try Catch EndTry 285 Trend Monitor 93 Trigger delay 342 U UCase Function 286 Unit Terminology Explanation 593 UnitCount Function 287 UNITDATA No procedure...

Page 654: ...652 FZ4 User s Manual...

Page 655: ......

Page 656: ...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 omron co...

Reviews: