background image

Cat. No. Z265-E1-05

Serial Communication

Smart Sensor 
ZFX-C

COMMAND REFERENCE

Cat. No. F08E-EN-01

Note: Specifi cations subject to change without notice.

Authorized Distributor:

Printed in Europe

Cat. No. F08E-EN-01

RM6  Muting Controller 

OPERA

TION MANUAL

Содержание ZFX-C

Страница 1: ...Cat No Z265 E1 05 Serial Communication Smart Sensor ZFX C COMMAND REFERENCE Cat No F08E EN 01 RM6 Muting Controller OPERATION MANUAL ...

Страница 2: ... whenever necessary Manuals Provided with this Product User s Manual This manual describes basic operations such as installation and connections and information on settings and specifications to ensure safe and correct use of this product Serial Communication Command Reference this document This manual provides reference information for when this product performs communications with an external de...

Страница 3: ...C 6 About Communication Commands 7 Command Response Format 7 Available Commands 10 Bank Control Commands 12 Measurement Control Measurement Value Acquisition Commands 14 Setting Acquisition Change Commands 17 Backup Restore Commands 25 Utility Commands 35 Parameter List 39 Example of Usage 56 Version Upgrade Information 60 Revision History 64 ...

Страница 4: ...rences Item ZFX C20 C25 ZFX C10H C15H ZFX C10 C15 Number of connected cameras 2 1 1 Available measurement items All available Only the following items are available Pattern search Sensitive search Area Position Width Count Bright Hue Defect Available position correction items All available Only the following items are available Edge position Area 1 model 2 model Number of measurement items that ca...

Страница 5: ... specifications refer to the User s Manual Ethernet Synchronization method Start stop Transmission code ASCII Binary format can be selected only when outputting measurement values set at Setup Support Calculation Data Communication speed USB2 0 compliant Data length Parity Stop bit Delimiter CR LF CR LF Transmission protocol Normal Note however that XMODEM protocol is used when sending image data ...

Страница 6: ... PC There are two ways of making the LAN connection to the PC directly to the PC or via a hub The following communications are not possible Communications with the Controller from outside the LAN Communications between the Controller and two or more PCs Communications between Controllers Communications between the Controller and the PLC Installation of the USB driver is necessary only when connect...

Страница 7: ...es to each Controller Do not set duplicate IP addresses to Controllers Example If communications software for a TELNET connection is activated on the PC to access the Controller the Controller will automatically switch to the Ethernet connection The parallel interface s ENABLE signal will be OFF during measurement To end the Ethernet connection input the EXIT command Input command Execute measurem...

Страница 8: ...Communication Command Reference Connecting a PLC Use the exclusive RS 232C cable ZFX XPT2A RS 422 cable ZFX XPT2B to connect the Controller to a PLC When connecting to a PLC refer to the Instruction Manual for the PLC Important ...

Страница 9: ... and parameters in ASCII code Response data Stores the acquired data Delimiter This control code indicates the end of the data Record separator This delimiter is appended to one session s worth of output data default delimiter CR Command data Delimiter Response data Record separator Record separator Record separator K O R E When processing ends successfully When processing fails ...

Страница 10: ... the measurement value is stored Plus 0 Minus Number of digits of integer section 0 is inserted in spaces in the integer section and digits past the decimal point When a value is greater than the preset number of digits all digits other than the sign digit become 9 Output range 9999999 999 to 09999999 999 Number of digits past the decimal point Decimal separator Field separator Record separator No...

Страница 11: ...r or record separator do not exist Output range 2147483 648 to 2147483 647 A value obtained by multiplying by 1000 also is output as the judgment result JG OK 0 NG 1000 1 x 1000 When the measurement value is less than 2147483 648 2147483 648 is output When the measurement value is greater than 2147483 647 2147483 647 is output 4 bytes Measurement value of data 0 x 1000 Measurement value of data 1 ...

Страница 12: ...LSET or MS This command re registers the model of the specified item It does not reset filters etc p 18 MEASPARA or MP This command acquires the detailed conditions and thresholds of specified measurement items p 19 This command sets the detailed conditions and thresholds of specified measurement items p 19 POSIPARA or PP This command acquires the detailed conditions and the threshold value of pos...

Страница 13: ...ard from the Controller p 32 SYSLOAD or SL This command uploads system data to the Controller from an external device p 33 This command uploads system data to the Controller from an SD card p 33 SYSSAVE or SS This command backs up system data to an external device from the Controller p 34 This command backs up system data to an SD card from the Controller p 34 Command name Description Page CLRMEAS...

Страница 14: ...o another bank This command switches the bank to be used Command format Response format Explanation of parameters Bank No The acquired bank No is returned 0 to 31 Bank No Specifies the bank No after the bank is switched 0 to 31 B A N K CR B K CR or CR E R CR O K CR When processing ends successfully When processing fails Bank No max 2 digits B A N K CR B K CR Bank No max 2 digits or Bank No max 2 d...

Страница 15: ...the bank group to be used Command format Response format Explanation of parameters Bank group No The acquired bank group No is returned 0 to 31 Bank group No Specifies the bank group No after the bank group is switched 0 to 31 B A CR B G CR N K G R O U P or CR E R CR O K CR When processing ends successfully When processing fails Bank group No max 2 digits B A CR B G CR N K G R O U P Bank group No ...

Страница 16: ...No Specifies the data No 0 to 127 For details see Parameter List p 39 Measurement value The acquired measurement value is returned in ASCII code The measurement value is not dependent on the format ASCII binary specified in the output conditions Minus sign plus sign none The size of the integer section is variable The decimal point is indicated by a period The maximum number of digits past the dec...

Страница 17: ... are output only when an expression is set at Setup Support Calculation Data and RS 232C 422 or USB is specified at System Output Data output Measurement value The acquired measurement value is returned The measurement value is output in the format ASCII binary specified in the output conditions Configuration of Measurement Value Data p 8 M E A S CR MCR U R E or O K CR E R CR CR When processing en...

Страница 18: ... the re measurement value for the latest saved image is returned Configuration of Measurement Value Data p 8 M E A S CR M C CR U R E C or O K CR E R CR CR When processing ends successfully When processing fails Measurement value for number of continuous measurements M E A S CR M E CR U R E E or O K CR E R CR When processing ends successfully When processing fails M E A S CR M CR U R E I I or Save ...

Страница 19: ...orated into the Controller Command format Response format Explanation of parameters Year hour day hour minute second The acquired date and time are returned as numerical values of two digits each Example 060301120020 12 00 20 on March 1st 2006 Year hour day hour minute second Specifies the date and time Example 060301120020 12 00 20 on March 1st 2006 D A T E CR D T CR or CR O K CR E R CR When proc...

Страница 20: ...tem No Specifies the measurement item No Measurement items 0 to 127 ZFX C20 C25 C10H C15H 0 to 31 ZFX C10 C15 Position correction items 0 to 3 0 Position correction 0 of camera 0 1 Position correction 1 of camera 0 2 Position correction 0 of camera 1 3 Position correction 1 of camera 1 Attribute Specifies measurement item or position correction item 0 Measurement item 1 Position correction item De...

Страница 21: ...tem No Specifies the measurement item No 0 to 127 Data No Specifies the data No 0 to 127 For details see Parameter List p 39 Setting value Specifies the setting value For details see Parameter List p 39 M E A S CR Setting value CR Setting value M P P A R A or Data No max 3 digits Measurement item No max 3 digits Data No max 3 digits Measurement item No max 3 digits O K CR E R CR When processing en...

Страница 22: ...lanation of parameters Measurement item No Specifies the measurement item No 0 to 127 Data No Specifies the data No 0 to 127 For details see Parameter List p 39 Acquired value The detailed conditions and thresholds of specified items is returned For details see Parameter List p 39 ...

Страница 23: ...ction item No 0 to 3 Item Nos are assigned as follows 0 Position correction0 of camera0 1 Position correction1 of camera0 2 Position correction0 of camera1 3 Position correction1 of camera1 Data No Specifies the data No 0 to 127 For details see Parameter List p 39 Setting value Specifies the setting value For details see Parameter List p 39 P O S I CR Setting value CR Setting value P P P A R A or ...

Страница 24: ...ows 0 Position correction0 of Camera0 1 Position correction1 of Camera0 2 Position correction0 of Camera1 3 Position correction1 of Camera1 Data No Specifies the data No 0 to 127 For details see Parameter List p 39 Acquired value The detailed conditions and thresholds of position correction is returned For details see Parameter List p 39 CR Acquired value O K CR E R CR When processing ends success...

Страница 25: ...d This command sets and changes the password character string Command format Response format Explanation of parameters Password A password of any eight alphanumeric characters is returned Password Specifies a password of any eight alphanumeric characters P A S S CR P WCR W O R D or CR E R CR O K CR When processing ends successfully When processing fails Password P A S S CR P W CR W O R D Password ...

Страница 26: ...ormation of the Controller Command format Response format Explanation of parameters Model information The model No of the Controller is returned Version No The version No of the Controller s firmware is returned V E R G CR V R CR E T or Z F X V e r X X X CR E R CR O K CR Version No Model information When processing ends successfully When processing fails ...

Страница 27: ...bank group data to the Controller from an SD card This command uploads bank group data to the Controller from an SD card Command format Response format Explanation of parameters Bank group No Specifies the bank group No to upload 0 to 31 Bank group No Specifies the bank group No to upload 0 to 31 File name Specifies the file name within eight alphanumeric characters An extension is not required B ...

Страница 28: ...er This command backs up bank group data to an SD card from the Controller Command format Response format Explanation of parameters Bank group No Specifies the bank group No to back up 0 to 31 Bank group No Specifies the bank group No to back up 0 to 31 File name The file can be given any name within eight alphanumeric characters An extension is not required B G R S CR G S CR A V E 0 0 Bank group ...

Страница 29: ...er from an SD card This command uploads bank data to the Controller from an SD card Command format Response format Explanation of parameters Bank No Specifies the bank No to upload 0 to 31 Bank No Specifies the bank No to upload 0 to 31 File name Specifies the file name within eight alphanumeric characters An extension is not required B N K L CR B L CR O A D 0 0 Bank No max 2 digits or Bank No max...

Страница 30: ...m the Controller This command backs up bank data to an SD card from the Controller Command format Response format Explanation of parameters Bank No Specifies the bank No to back up 0 to 31 Bank No Specifies the bank No to back up 0 to 31 File name The file can be given any name within eight alphanumeric characters An extension is not required B N K S CR B S CR A V E 0 0 Bank No max 2 digits or Ban...

Страница 31: ... uploads image data to the Controller by XMODEM protocol Command format File transfer The image data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported Response format Explanation of parameters Save memory No Specifies the No of the save memory for saving the image data to 0 to 99 D A T A CR S V CR S A V E or O K CR E R CR When processing ends successfully When ...

Страница 32: ...Save memory No Specifies the No of the save memory for saving the image data to 0 to 99 File name Specifies the file name within 8 characters excluding the file extension File extensions GRY image captured by a monochrome camera or BYR image captured by a color camera are allowed I M G L CR I L CR O A D 1 1 or File name File name Save memory No max 2 digits Save memory No max 2 digits O K CR E R C...

Страница 33: ...fter READY is received XMODEM 1K is not supported Response format Explanation of parameters Save memory No Specifies the No of the save memory for backing up the image data to 0 to 99 When 1 is specified for the Save memory No the latest image data of camera 0 is specified When 2 is specified for the Save memory No the latest image data of camera 1 is specified I M G S CR I S CR A V E 0 0 or Save ...

Страница 34: ...s can be given any file name up to 5 characters long Entry of a file extension is not necessary When performing measurement on two cameras the image data of both cameras is saved In this case the file names are automatically appended with C0 and C1 Image data from camera 0 file name_C0 BYR or file name_C1 GRY Image data from camera 1 file name_C1 BYR or file name_C1 GRY I M G S CR I S CR A V E 1 1...

Страница 35: ...fter READY is received XMODEM 1K is not supported Response format Uploading system data to the Controller from an SD card This command uploads system data to the Controller from an SD card Command format Response format Explanation of parameters File name Specifies the file name within eight alphanumeric characters An extension is not required S Y S L CR S L CR O A D 0 0 or O K CR E R CR R E A D C...

Страница 36: ...er READY is received XMODEM 1K is not supported Response format Backing up system data to an SD card from the Controller This command backs up system data to an SD card from the Controller Command format Response format Explanation of parameters File name The file can be given any name within eight alphanumeric characters An extension is not required S Y S S CR S S CR A V E 0 0 or O K CR E R CR R ...

Страница 37: ...external output signals OR DO0 to DO15 No parameters are provided for this command Command format Response format Clearing Error Output CLRERR Command Clears the error output results The parallel external output signal ERROR is turned OFF to turn the ERROR LED OFF No parameters are provided for this command Command format Response format C L R C M CR M E CR A S or O K CR E R CR When processing end...

Страница 38: ...currences does not exceed five Command format Response format Explanation of parameters Error Code No Description 0 Trigger input error 1 Parallel command error 2 SD CARD access error 3 Parallel timeout error 4 USB connection error 5 LAN connection error 6 Image input error 8 VDIN timeout error 9 Camera communication error E R R E H CR H I S T O CR R Y or E R CR When processing ends successfully W...

Страница 39: ...t Explanation of parameters Captured images are transferred to external devices by XMODEM protocol Images are sent in bitmap format Save the images with BMP file extensions Mode No Description 0 Display capture is executed and the captured display is output as an image to external devices 1 or omitted Display capture is executed and the captured display is output as an image to SD card The capture...

Страница 40: ...d format Response format Ending Ethernet Communications EXIT command This command ends the TELNET connection for Ethernet communications and disconnects the line No parameters are provided for this command Command format Response format R E S CR R S CR E T or E R CR When processing ends successfully When processing fails None E X CR I T E R CR When processing ends successfully When processing fail...

Страница 41: ... 9999 999 7 Reference position Y 9999 999 to 9999 999 8 Reference angle 180 to 180 9 Position difference X 9999 999 to 9999 999 10 Position difference Y 9999 999 to 9999 999 11 Angle difference 180 to 180 Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Correlation 0 to 100 2 Measurement position X 9999 999 to 9999 999 3 Measurement position Y 9999 999 to 9999 999 4 Meas...

Страница 42: ...ition X 9999 999 to 9999 999 3 Measurement position Y 9999 999 to 9999 999 4 Measurement angle 180 to 180 5 Solid color rate 0 to 100 Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Area 0 to 9999999 999 2 Gravity position X 9999 999 to 9999 999 3 Gravity position Y 9999 999 to 9999 999 4 Axis angle 9999 999 to 9999 999 5 Reference area 0 to 9999999 999 6 Reference posi...

Страница 43: ...to 1 0 10 Reference area 0 to 9999999 999 11 Reference position X 9999 999 to 9999 999 12 Reference position Y 9999 999 to 9999 999 13 Reference axis angle 180 0 to 180 0 14 Reference perimeter 0 to 9999 999 15 Reference length X 0 to 9999 999 16 Reference length Y 0 to 9999 999 17 Reference roundness 0 to 1 0 18 Area difference 9999999 999 to 9999999 999 19 Position difference X 9999 999 to 9999 ...

Страница 44: ... X1 9999 999 to 9999 999 3 Edge position Y1 9999 999 to 9999 999 4 Edge position X2 9999 999 to 9999 999 5 Edge position Y2 9999 999 to 9999 999 6 Reference edge width 0 to 9999 999 7 Reference edge position X1 9999 999 to 9999 999 8 Reference edge position Y1 9999 999 to 9999 999 9 Reference edge position X2 9999 999 to 9999 999 10 Reference edge position Y2 9999 999 to 9999 999 11 Width differen...

Страница 45: ...2 not measured 1 Angle 180 00 to 180 00 2 Edge position X1 9999 999 to 9999 999 3 Edge position Y1 9999 999 to 9999 999 4 Edge position X2 9999 999 to 9999 999 5 Edge position Y2 9999 999 to 9999 999 6 Reference angle 180 00 to 180 00 7 Reference position X1 9999 999 to 9999 999 8 Reference position Y1 9999 999 to 9999 999 9 Reference position X2 9999 999 to 9999 999 10 Reference position Y2 9999 ...

Страница 46: ...0 to 360 0 2 Saturation 0 to 100 0 3 Value 0 to 100 0 4 Hue deviation 0 to 180 0 5 Saturation deviation 0 to 50 0 6 Value deviation 0 to 50 0 7 Reference hue 0 to 360 0 8 Reference saturation 0 to 100 0 9 Reference value 0 to 100 0 10 Hue difference 360 0 to 360 0 11 Saturation difference 100 0 to 100 0 12 Value difference 100 0 to 100 0 13 Reference hue deviation 0 to 180 0 14 Reference saturatio...

Страница 47: ...ion X 9999 999 to 9999 999 3 Measurement position Y 9999 999 to 9999 999 4 Index No 0 to 633 Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Defect 0 to 255 2 Maximum density 0 to 255 3 Minimum density 0 to 255 4 Number of defects 0 to 255 5 Defect position X 9999 999 to 9999 999 6 Defect position Y 9999 999 to 9999 999 7 Reference position X 9999 999 to 9999 999 8 Refe...

Страница 48: ...1 ON 56 Verification 0 OFF 1 ON 57 Candidate level 0 to 100 58 Calibration 0 OFF 1 ON 59 Coordinates mode 0 Normal 1 Pos correction 71 Correlation upper limit value 0 to 100 72 Correlation lower limit value 0 to 100 73 X upper limit value 9999 999 to 9999 999 74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 999 to 9999 999 77 Angle...

Страница 49: ...74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 999 to 9999 999 77 Angle upper limit value 180 to 180 78 Angle lower limit value 180 to 180 Data No Parameter Output Range 51 Search mode 0 Hi speed 1 Normal 2 Precision 52 Verification 0 OFF 1 ON 53 Candidate level 0 to 100 54 Calibration 0 OFF 1 ON 55 Coordinates mode 0 Normal 1 Po...

Страница 50: ...ation 0 OFF 1 ON 60 Solid color check 0 OFF 1 ON 61 Coordinates mode 0 Normal 1 Pos correction 62 Output position 0 Difference position 1 Center position 71 Correlation upper limit value 0 to 100 72 Correlation lower limit value 0 to 100 73 X upper limit value 9999 999 to 9999 999 74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 99...

Страница 51: ...mal 1 Pos correction 71 Area upper limit value 0 000 to 9999999 999 72 Area lower limit value 0 000 to 9999999 999 73 Gravity position X upper limit value 9999 999 to 9999 999 74 Gravity position X lower limit value 9999 999 to 9999 999 75 Gravity position Y upper limit value 9999 999 to 9999 999 76 Gravity position Y lower limit value 9999 999 to 9999 999 77 Axis angle upper limit value 90 00 to ...

Страница 52: ...al 1 Pos correction 71 Area upper limit value 0 000 to 9999999 999 72 Area lower limit value 0 000 to 9999999 999 73 X upper limit value 9999 999 to 9999 999 74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 999 to 9999 999 77 Axis angle upper limit value 90 00 to 90 00 78 Axis angle lower limit value 90 00 to 90 00 79 Perimeter upp...

Страница 53: ... Color filter 1 Color Pickup 53 Split size 1 to 99 54 Color1 0 Light Dark 1 Dark Light 55 Edge level1 1 to 99 56 Noise level1 0 to 255 57 Noise width1 0 to 255 58 Color2 0 Light Dark 1 Dark Light 59 Edge level2 1 to 99 60 Noise level2 0 to 255 61 Noise width2 0 to 255 62 Calibration 0 OFF 1 ON 63 Coordinates mode 0 Normal 1 Pos correction 71 Edge width upper limit value 0 000 to 9999 999 72 Edge w...

Страница 54: ...mode1 0 Average 1 Peak 2 Bottom 53 Split size1 1 to 99 54 Color1 0 Light Dark 1 Dark Light 55 Edge level1 1 to 99 56 Noise level1 0 to 255 57 Noise width1 0 to 255 58 Measurement mode2 0 Average 1 Peak 2 Bottom 59 Split size2 1 to 99 60 Color2 0 Light Dark 1 Dark Light 61 Edge level2 1 to 99 62 Noise level2 0 to 255 63 Noise width2 0 to 255 64 Calibration 0 OFF 1 ON 65 Coordinates mode 0 Normal 1 ...

Страница 55: ...er Output Range 51 Deviation 0 OFF 1 ON 71 Hue upper limit value 0 0 to 360 0 72 Hue lower limit value 0 0 to 360 0 73 Saturation upper limit value 0 0 to 100 0 74 Saturation lower limit value 0 0 to 100 0 75 Value upper limit value 0 0 to 100 0 76 Value lower limit value 0 0 to 100 0 77 Hue deviation upper limit value 0 0 to 180 0 78 Hue deviation lower limit value 0 0 to 180 0 79 Saturation devi...

Страница 56: ... 100 73 X upper limit value 9999 999 to 9999 999 74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 999 to 9999 999 77 Index No upper limit value 0 to 63 78 Index No lower limit value 0 to 63 Data No Parameter Output Range 52 Detection size 4 to 64 53 Detection interval 4 to 64 54 Noise level 0 to 255 55 Calibration 0 OFF 1 ON 56 Coo...

Страница 57: ...0 1 1 2 2 3 3 5 4 10 5 15 6 20 7 30 55 Interpolation 0 OFF 1 ON 56 Verification 0 OFF 1 ON 57 Candidate level 0 to 100 71 Correlation upper limit value 0 to 100 72 Correlation lower limit value 0 to 100 73 X upper limit value 9999 999 to 9999 999 74 X lower limit value 9999 999 to 9999 999 75 Y upper limit value 9999 999 to 9999 999 76 Y lower limit value 9999 999 to 9999 999 77 Angle upper limit ...

Страница 58: ...ample procedure to communicate by non procedural commands using Windows standard tool HyperTerminal 1 Start up HyperTerminal HyperTerminal is located under Program Accessory Communication 1 1 Enter an appropriate project name and select OK 1 2 Select the COM port connected to the ZFX C in the Connect using field ...

Страница 59: ...e ZFX C Serial Communication Command Reference 57 2 To facilitate command transactions set echo and other communication conditions 1 3 Set the communication conditions 1 4 HyperTerminal is started up 2 1 Open Property ...

Страница 60: ... System Comm to match the above settings For details on how to set the communication specifications refer to the User s Manual 4 Switch the ZFX C to the RUN mode 2 2 Select the Settings tab and then ASCII Setup 2 3 Mark the following checkboxes and click OK to complete the setting ADJ ADJ MENU MENU RUN RUN Mode switch ...

Страница 61: ...FX C Serial Communication Command Reference 59 5 Execute non procedural communication 5 1 Enter a command and then press the return key 5 2 The returned value corresponding to the command is returned from the Controller ...

Страница 62: ...nd restore commands can now be used in Ethernet communications too BGRLOAD BGRSAVE BNKLOAD BNKSAVE SYSLOAD SYSSAVE Changes The following image data backup restore commands have been newly added IMGLOAD IMGSAVE Changes Angle has been newly added to the edge inspection parameters of the MEASDATA command Changes The following commands were added MEASPARA POSIPARA CLRMEAS CLRERR ERRHISTORY CAPTURE The...

Страница 63: ...Version Upgrade Information ZFX C Serial Communication Command Reference 61 MEMO ...

Страница 64: ...Version Upgrade Information 62 ZFX C Serial Communication Command Reference MEMO ...

Страница 65: ...Version Upgrade Information ZFX C Serial Communication Command Reference 63 MEMO ...

Страница 66: ...ents 01 June 2007 Original production 02 August 2007 New commands as explained in Version Upgrade Information added Ver1 20 03 November 2007 New command parameters as explained in Version Upgrade Information added Ver1 30 04 March 2008 Inclusion of information of ZFX C20 C25 ZFX C10H C15H and ZFX C10 C15 Controllers 05 September 2008 New commands as explained in Version Upgrade Information added V...

Отзывы: