Omron ZFX-C Command Reference Manual

Smart sensor
Hide thumbs Also See for ZFX-C:

Advertisement

Quick Links

Cat. No. Z265-E1-05
Smart Sensor
ZFX-C

Serial Communication

COMMAND REFERENCE

Advertisement

Table of Contents
loading

Summary of Contents for Omron ZFX-C

  • Page 1: Serial Communication

    Cat. No. Z265-E1-05 Smart Sensor ZFX-C Serial Communication COMMAND REFERENCE...
  • Page 2 • To ensure correct use, please read this manual thoroughly to deepen your understanding of the product. • Please keep this manual in a safe place so that it can be referred to whenever necessary. Manuals Provided with this Product...
  • Page 3: Table Of Contents

    Example of Usage ..........56 Version Upgrade Information........60 Revision History .
  • Page 4 ■ Difference between the ZFX-C20/C25, ZFX-C10H/C15H and ZFX-C10/C15 This manual is intended for the ZFX-C20/C25, ZFX-C10H/C15H and ZFX-C10/C15 Controllers. Unless otherwise specified, explanations are given for the ZFX-C20/C25. The following table summarizes the main differences. Item ZFX-C20/C25 ZFX-C10H/C15H ZFX-C10/C15 Number of connected cameras...
  • Page 5: Communication Interface Specifications

    Communication Interface Specifications You can use the USB port or RS-232C/422 connector of the Controller to perform serial communication with external devices such as a personal computer or programmable controller. Serial communication functions in the RUN mode. Communication cannot be performed in the ADJ or MENU modes.
  • Page 6: Connection

    • Attach the ferrite cores supplied to both ends of the USB cable. Ferrite cores Note Installation of the USB driver is necessary only when connecting an external device to the USB interface for the first time. For the USB driver, please contact your OMRON representative.
  • Page 7 When connecting two or more Controllers to one PC via a hub, use a 10BASE-T or 100BASE-TX straight cable (Category 5 or higher). Also, limit the cable lengths between the PC and the hub, and the Controllers and the hub to 30 m, respectively. Be sure to set unique IP addresses to each Controller. Do not set duplicate IP addresses to Controllers.
  • Page 8: Connecting A Plc

    Connecting a PLC Use the exclusive RS-232C cable (ZFX-XPT2A) / RS-422 cable (ZFX-XPT2B) to connect the Controller to a PLC. Important When connecting to a PLC, refer to the Instruction Manual for the PLC. Connection ZFX-C Serial Communication Command Reference...
  • Page 9: About Communication Commands

    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) ZFX-C Serial Communication Command Reference About Communication Commands...
  • Page 10 For detailed settings, refer to the User's Manual. ASCII Format Up to 32 results are output as a data structure of fixed length of up to 12 characters including the sign. Measurement value of data 0 Measurement value of data 1...
  • Page 11 The value obtained by multiplying the measurement value by 1000 is output continuously as four bytes per single data item. Minus values are output as 2's complement. Up to 32 results can be output. The binary format differs from the ASCII format in that data separators, such as field separator or record separator, do not exist.
  • Page 12: Available Commands

    This command uploads bank group data to the Controller from an SD card. p.25 BGRSAVE (or GS) This command backs up bank group data to an external device from the Controller. p.26 This command backs up bank group data to an SD card from the Controller.
  • Page 13: Utility Commands

    ERRHISTORY (or EH) Outputs a history of up to five of the latest errors. p.36 CAPTURE(CP) Executes display capture, and outputs this to the host or SD card as an image. p.37 RESET (or RS) This command restarts the Controller. p.38...
  • Page 14: Bank Control Commands

    (max. 2 digits) < Response format > When processing ends successfully When processing fails < Explanation of parameters > Bank No. Specifies the bank No. after the bank is switched. (0 to 31) About Communication Commands ZFX-C Serial Communication Command Reference...
  • Page 15 < Response format > When processing ends successfully When processing fails < Explanation of parameters > Bank group No. Specifies the bank group No. after the bank group is switched. (0 to 31) ZFX-C Serial Communication Command Reference About Communication Commands...
  • Page 16: Measurement Control/Measurement Value Acquisition Commands

    Measurement value When processing fails < Explanation of parameters > Measurement item No. Specifies the measurement item No. (0 to 127 (ZFX-C20/C25/C10H/C15H), 0 to 31 (ZFX- C10/C15)) Data No. Specifies the data No. (0 to 127) For details, see "Parameter List (p.39)."...
  • Page 17 Configuration of Measurement Value Data p.8 Important Measurement values 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]. ZFX-C Serial Communication Command Reference...
  • Page 18 • [Image storage] option is set to OFF < Explanation of parameters > Measurement value The re-measurement value for the saved image of specified save memory No. is returned. When the save memory No. is omitted, the re-measurement value for the latest saved image is returned.
  • Page 19: Setting Acquisition/Change Commands

    Setting Acquisition/Change Commands Acquiring/Changing the Date Setting < DATE command > Acquiring the date setting This command acquires the date and time of the calendar timer incorporated into the Controller. < Command format > D A T E < Response format >...
  • Page 20 Re-registering the Model of the Specified Item < MODELSET command > This command re-registers the model of the specified item. It does not reset filters, etc. Important The execution of this command does not re-register any model for the flexible search, graphic search and grouping items. < Command format >...
  • Page 21: Setting Measurement Conditions

    Setting/Acquiring the Measurement Conditions < MEASPARA command > Setting measurement conditions This command sets the detailed conditions and thresholds of specified items. < Command format > M E A S P A R A Setting value Setting value Data No.
  • Page 22 Data No. Specifies the data No. (0 to 127) "Parameter List (p.39)." For details, see Acquired value The detailed conditions and thresholds of specified items is returned. "Parameter List (p.39)." For details, see About Communication Commands ZFX-C Serial Communication Command Reference...
  • Page 23 Setting/Acquiring Position Shift Correction Condition< POSIPARA Command > Setting position shift correction conditions This command sets the detailed conditions and thresholds of position shift correction. < Command format > P O S I P A R A Setting value Setting value Data No.
  • Page 24 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. "Parameter List (p.39)." For details, see About Communication Commands ZFX-C Serial Communication Command Reference...
  • Page 25 When processing ends successfully Password When processing fails < Explanation of parameters > Password A password of any eight alphanumeric characters is returned. Setting/Changing the password This command sets and changes the password character string. < Command format > P A S S...
  • Page 26 Acquiring the Version No. < VERGET command > This command acquires the version information of the Controller. < Command format > V E R G < Response format > When processing ends successfully Z F X - V e r X . X X Version No.
  • Page 27: Backup/Restore Commands

    Uploading Bank Group Data < BGRLOAD command > Uploading bank group data to the Controller from an external device This command uploads the bank group data to the Controller by XMODEM protocol. The bank group data is loaded to the specified bank group No.
  • Page 28 Bank group No. (max. 2 digits) (max. 2 digits) < File transfer > The bank group data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D...
  • Page 29 Bank No. (max. 2 digits) (max. 2 digits) < File transfer > The bank data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D When processing ends successfully When processing fails <...
  • Page 30 Bank No. (max. 2 digits) (max. 2 digits) < File transfer > The bank data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D When processing ends successfully When processing fails <...
  • Page 31 No. (max. 2 digits) (max. 2 digits) < File transfer > The image data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D When processing ends successfully When processing fails <...
  • Page 32 When processing fails < Explanation of parameters > 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"...
  • Page 33 No. (max. 2 digits) (max. 2 digits) < File transfer > The image data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D When processing ends successfully When processing fails <...
  • Page 34 When "-1" is specified for the Save memory No., the latest image data is specified. File name Files 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.
  • Page 35 < Command format > S Y S L O A D < File transfer > The system data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D...
  • Page 36 < Command format > S Y S S A V E < File transfer > The system data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1K) is not supported. < Response format > R E A D...
  • Page 37: Utility Commands

    When processing fails 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 >...
  • Page 38 This command outputs a history of up to five of the latest errors. This command shows information of up to five of the latest errors by error code No. (0 to 9). "-1" is returned other than error code No. if the number of error occurrences does not exceed five.
  • Page 39 (0 or 1) < File transfer > When the mode No. is set to 0 and the image is output to external devices, the image data is transferred by XMODEM (-CRC or SUM) after READY is received. XMODEM (-1k) is not supported.
  • Page 40 When processing ends successfully None When processing fails 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 >...
  • Page 41: Parameter List

    -180 to 180 Position difference X -9999.999 to 9999.999 Position difference Y -9999.999 to 9999.999 Angle difference -180 to 180 Graphic search (available only on ZFX-C20/C25/C10H/C15H) Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured...
  • Page 42 Flexible search (available only on ZFX-C20/C25/C10H/C15H) Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Correlation 0 to 100 Measurement position X -9999.999 to 9999.999 Measurement position Y -9999.999 to 9999.999 Sensitive search Data No.
  • Page 43 Labeling (available only on ZFX-C20/C25/C10H/C15H) Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Area 0 to 9999999.999 Gravity position X -9999.999 to 9999.999 Gravity position Y -9999.999 to 9999.999 Number of labels 0 to 65535 Axis angle -180.0 to 180.0...
  • Page 44 -9999.999 to 9999.999 Count Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Number of edges 0 to 255 Average pitch 0 to 9999.999 Minimum pitch 0 to 9999.999 About Communication Commands ZFX-C Serial Communication Command Reference...
  • Page 45 0 to 9999.999 Width 2 0 to 9999.999 0 to 9999.999 Pitch 255 0 to 9999.999 Width 255 0 to 9999.999 Angle (available only on ZFX-C20/C25/C10H/C15H) Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Angle -180.00 to 180.00...
  • Page 46 Brightness and color inspection parameters Brightness Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Density average 0 to 255.0 Density deviation 0 to 127.0 Reference density average 0 to 255.0 Reference density deviation 0 to 127.0 Density average difference 0 to 255.0...
  • Page 47 Data No. Parameter Output Range Maximum value 0 to 100.0 Minimum value 0 to 100.0 Parameters for inspection by individual application Grouping (available only on ZFX-C20/C25/C10H/C15H) Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured...
  • Page 48 Search mode 0: Hi-speed, 1: Normal, 2: Precision Rotation range 0 to 180 Skipping angle 0: 1°, 1: 2°, 2: 3°, 3: 5°, 4: 10°, 5: 15°, 6: 20°, 7: 30° Interpolation 0: OFF, 1: ON Verification 0: OFF, 1: ON...
  • Page 49 Search mode 0: Hi-speed, 1: Normal, 2: Precision Rotation range 0 to 180 Skipping angle 0: 1°, 1: 2°, 2: 3°, 3: 5°, 4: 10°, 5: 15°, 6: 20°, 7: 30° Interpolation 0: OFF, 1: ON Candidate level 0 to 100...
  • Page 50 Sensitivity 0: Low, 1: Middle 2: High Rotation range 0 to 180 Skipping angle 0: 1°, 1: 2°, 2: 3°, 3: 5°, 4: 10°, 5: 15°, 6: 20°, 7: 30° Interpolation 0: OFF, 1: ON Verification 0: OFF, 1: ON...
  • Page 51 0: Normal 1: Pos. correction Area upper limit value 0.000 to 9999999.999 Area lower limit value 0.000 to 9999999.999 Gravity position X upper limit value -9999.999 to 9999.999 Gravity position X lower limit value -9999.999 to 9999.999 Gravity position Y upper limit value -9999.999 to 9999.999...
  • Page 52 0: Normal, 1: Precision Sort mode 0: Area descending order, 1: Area ascending order, 2: X gravity descending order, 3: X gravity ascending order, Y gravity descending order, Y gravity ascending order Label No. 0 to 2499 Measure axis angle...
  • Page 53 Measurement mode 0:Average, 1: Peak, 2: Bottom Color mode 0: Color filter, 1: Color Pickup Split size 1 to 99 0: Light → Dark, 1: Dark → Light Color Edge level 1 to 99 Noise level 0 to 255 Noise width...
  • Page 54 Color mode 0: Color filter, 1: Color Pickup Measurement mode1 0:Average, 1: Peak, 2: Bottom Split size1 1 to 99 0: Light → Dark, 1: Dark → Light Color1 Edge level1 1 to 99 Noise level1 0 to 255 Noise width1...
  • Page 55 Brightness and color inspection parameters Brightness Data No. Parameter Output Range Density average upper limit value 0.0 to 255.0 Density average lower limit value 0.0 to 255.0 Density deviation upper limit value 0.0 to 127.0 Density deviation lower limit value 0.0 to 127.0...
  • Page 56 Parameters for inspection by individual application Grouping Data No. Parameter Output Range Search mode 0: Hi-speed, 1: Normal, 2: Precision Verification 0: OFF, 1: ON Candidate level 0 to 100 Calibration 0: OFF, 1: ON Coordinates mode 0: Normal, 1: Pos. correction...
  • Page 57 Search mode 0: Hi-speed, 1: Normal, 2: Precision Rotation range 0 to 180 Skipping angle 0: 1°, 1: 2°, 2: 3°, 3: 5°, 4: 10°, 5: 15°, 6: 20°, 7: 30° Interpolation 0: OFF, 1: ON Verification 0: OFF, 1: ON...
  • Page 58: Example Of Usage

    Example of Usage The following describes an example procedure to communicate by non-procedural commands using Windows standard tool HyperTerminal. Start up HyperTerminal. HyperTerminal is located under [Program]-[Accessory]-[Communication]. Enter an appropriate project name, and select OK. Select the COM port connected to the ZFX-C in the Connect using field.
  • Page 59 Set the communication conditions. HyperTerminal is started up. To facilitate command transactions, set echo and other communication conditions. Open [Property]. ZFX-C Serial Communication Command Reference Example of Usage...
  • Page 60 Mark the following checkboxes, and click OK to complete the setting. Set the communication conditions for the ZFX-C. Set [System]-[Comm] to match the above settings. For details on how to set the communication specifications, refer to the User's Manual. Switch the ZFX-C to the RUN mode. MENU...
  • Page 61 Execute non-procedural communication. Enter a command, and then press the return key. The returned value corresponding to the command is returned from the Controller. ZFX-C Serial Communication Command Reference Example of Usage...
  • Page 62: Version Upgrade Information

    "Angle" has been newly added to the edge inspection parameters of the MEASDATA command. Ver1.30 to Ver1.50 Changes The following commands were added: MEASPARA, POSIPARA, CLRMEAS, CLRERR, ERRHISTORY, CAPTURE The new feature to re-measure the saved image has been added to the MEASURE command. Version Upgrade Information ZFX-C Serial Communication Command Reference...
  • Page 63 MEMO ZFX-C Serial Communication Command Reference Version Upgrade Information...
  • Page 64 MEMO Version Upgrade Information ZFX-C Serial Communication Command Reference...
  • Page 65 MEMO ZFX-C Serial Communication Command Reference Version Upgrade Information...
  • Page 66: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number at the bottom of the front and back covers of this manual. Cat. No. Z265-E1-05 Revision code Revision code Date Revised contents June 2007 Original production August 2007 New commands as explained in "Version Upgrade Information"...

Table of Contents