Summary of Contents for Omron ZFX-C10 - COMMUNICATION
Page 1
Cat. No. Z252-E1-02 Smart Sensor ZFX-C10 Vision Sensor with built-in LCD monitor 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...
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.
• 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 6
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.
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. ZFX-C Serial Communication Command Reference Connection...
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) About Communication Commands ZFX-C Serial Communication Command Reference...
Page 9
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 10
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.
This command backs up bank group data to an external device from the p.20 Controller. This command backs up bank group data to an SD card from the Controller. p.20 BNKLOAD (or BL) This command uploads bank data to the Controller from an external device.
This command uploads system data to the Controller from an SD card. p.27 SYSSAVE (or SS) This command backs up system data to an external device from the Controller. p.28 This command backs up system data to an SD card from the Controller. p.28...
(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) ZFX-C Serial Communication Command Reference About Communication Commands...
Page 14
< 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) About Communication Commands ZFX-C Serial Communication Command Reference...
For details, see "Parameter List (p.30)." 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.
Page 16
Configuration of Measurement Value Data p.7 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]. About Communication Commands...
Page 17
< Command format > M E A S U R E < Response format > When processing ends successfully (for number of continuous measurements) Measurement value When processing fails Ending Continuous Measurement < Command format > M E A S U R E <...
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 19
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. < Command format > M O D E L S E T Attribute Attribute...
Page 20
Setting/Changing the password This command sets and changes the password character string. < Command format > P A S S W O R D Password Password < Response format > When processing ends successfully When processing fails < Explanation of parameters >...
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 22
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 23
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 24
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 25
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 26
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 27
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 28
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.) About Communication Commands...
Page 29
< 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 30
< 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...
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 >...
-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 Measurement angle -180 to 180 Solid color rate 0 to 100 About Communication Commands ZFX-C Serial Communication Command Reference...
Page 33
Position difference Y -9999.999 to 9999.999 Width Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Edge width 0 to 9999.999 Edge position X1 -9999.999 to 9999.999 ZFX-C Serial Communication Command Reference About Communication Commands...
Page 34
Pitch 1 0 to 9999.999 Width 1 0 to 9999.999 Pitch 2 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 About Communication Commands ZFX-C Serial Communication Command Reference...
Page 35
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 36
Data No. Parameter Output Range Maximum value 0 to 100.0 Minimum value 0 to 100.0 Parameters for inspection by individual application Defect Data No. Parameter Output Range Judgment result 0: OK -1: NG -2: not measured Defect 0 to 255...
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 38
Set the communication conditions. HyperTerminal is started up. To facilitate command transactions, set echo and other communication conditions. Open [Property]. Example of Usage ZFX-C Serial Communication Command Reference...
Page 39
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 40
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. Example of Usage ZFX-C Serial Communication Command Reference...
Version Upgrade Information The following describes the content of the software version upgrade. Ver1.00 to Ver1.10 Changes The following backup and restore commands can now be used in Ethernet communications, too: BGRLOAD, BGRSAVE, BNKLOAD, BNKSAVE, SYSLOAD, SYSSAVE Ver1.10 to Ver1.20 Changes...
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. Z252-E1-02 Revision code Revision code Date Revised contents June 2007 Original production August 2007 New commands as explained in "Version Upgrade Information"...
Need help?
Do you have a question about the ZFX-C10 - COMMUNICATION and is the answer not in the manual?
Questions and answers