Omron ZFX-C10 COMMUNICATION Operating manual

Cat. No. Z252-E1-02
Vision Sensor with built-in
LCD monitor
Smart Sensor
ZFX-C10
Serial Communication
Command Reference
Cat. No. Z252-E1-02 Note: Specifications subject to change without notice.
Authorised Distributor:
Printed in Europe
Cat. No. Z252-E1-02 Smart Sensor ZFX-C10 Vision Sensor with built-in LCD monitor COMMUNICATION MANUAL

Introduction
Thank you for purchasing the ZFX-C.
This manual provides information regarding functions, performance and operating methods that
are required for using the ZFX-C.
When using the ZFX-C, be sure to observe the following:
• The ZFX-C 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 this manual in a safe place so that it can be referred to 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
device, such as a PC or a programmable controller, via
the serial interface.
Serial Communication
Command Reference
Cat. No. Z252-E1-01
Smart Sensor
Vision Sensor with built-in LCD monitor
ZFX-C10
User's Manual
Cat. No. Z251-E1-01
Smart Sensor
Vision Sensor with built-in LCD monitor
ZFX-C10

ZFX-C Serial Communication Command Reference
1
Contents
Communication Interface Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Connecting a PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Connecting a PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About Communication Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Command/Response Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Available Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Bank Control Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Measurement Control/Measurement Value Acquisition Commands . . . . . . . . . . . 13
Setting Acquisition/Change Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Backup/Restore Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Utility Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Parameter List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Example of Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Version Upgrade Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Communication Interface Specifications
2
ZFX-C Serial Communication Command Reference
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.
<USB>
This interface allows Full speed (12 Mbps) communications compliant with USB2.0 with a PC equipped with
the same USB interface.
<RS-232C/422>
This interface allows data communications compliant with the EIA RS-232C/422 standards up to a maximum
speed of 115200 bps.
For details on how to set the communication 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, system
data and other data.)
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 9600, 19200, 38400, 57600, 115200
Data length 7 bits, 8 bits
Parity None, even, odd
Stop bit 1 bit, 2 bits
Delimiter CR, LF, CR+LF
Transmission protocol Normal (Note, however, that XMODEM protocol is used when sending image data, system
data and other data.)
Communication protocol TCP/IP
Transmission mode Peer to Peer

Connection
ZFX-C Serial Communication Command Reference
3
Connection
Connecting a PC
<USB>
Use a USB cable (ZFX-XUSB) to connect the Controller to the
PC.
• When connecting the PC, refer to the Instruction Manual for the PC.
• Attach the ferrite cores supplied to both ends of the USB cable.
<Ethernet>
Use a commercially available LAN cable to connect the Controller
to the 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 connecting an external device to the USB interface for the first
time.
For the USB driver, please contact your OMRON representative.
Important
Ferrite cores
Note
Important

Connection
4
ZFX-C Serial Communication Command Reference
• 1:1 Connection
When connecting the Controller directory to the PC, use a 10BASE-T or 100BASE-TX cross cable (Category 5
or higher). Limit the cable length to 30 m.
Example: A measurement command is input and the result is acquired.
• 1:N Connection
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.
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
measurement.
Output the
processing result.
Receive the
measurement result.
MEASURE
IP address
192.168.250.010
Start the TELNET communications software on the PC, and
specify individual IP addresses to access each Controller.
The method for inputting commands is the same as for a 1:1
connection.
HUB
IP address
192.168.250.100
IP address
192.168.250.101
IP address
192.168.250.102

Connection
ZFX-C Serial Communication Command Reference
5
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

About Communication Commands
6
ZFX-C Serial Communication Command Reference
About Communication Commands
Command/Response Format
< Command >
< Response >
Command data Specifies the command 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
KO
RE
When processing ends successfully
When processing fails

About Communication Commands
ZFX-C Serial Communication Command Reference
7
Configuration of Measurement Value Data
The following explains the output format of measurement values.
To output measurement values by serial communication, the following items must be set.
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.
Output content
Set the output content as an expression.
Set the output content at [Setup] - [Support] - [Calculation] - [Data].
Output destination
Specify [RS-232C/422] or [USB] at [System] - [Output] - [Data output].
Output format
Set the output format at [System] - [Output] - [Serial output].
Sign The sign of 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
Note
Field separator
Number of digits past the decimal point: max. 3
Decimal separator: 1 digit
Sign + number of digits of integer section: max. 8 digits
(Insert "0" for spaces.)
Record
separator
Measurement value of data 0 Measurement value of data 1 Measurement value of data 31
23456 . 789
CR
01
04567 . 800
CR
00
04567 . 800
CR
-0
123456.789
4567.8
-4567.8
< Measurement value > < Data structure >
Example: Number of digits of integer section: 7, number of digits past the decimal point: 3,
decimal separator: period

About Communication Commands
8
ZFX-C Serial Communication Command Reference
Binary Format
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.
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 x 1000
Measurement value
of data 31 x 1000
4 bytes 4 bytes
$00 $44$03$FF$E9$FF $FC$18
Example: Data 0 "256.324" and data 1 "-1.000"
Data 0: 256324
(256.324 x 1000)
Data 1: -1000
(-1.000 x 1000)
Note

About Communication Commands
ZFX-C Serial Communication Command Reference
9
Available Commands
Bank Control Commands
Measurement Control/Measurement Value Acquisition Commands
Setting Acquisition/Change Commands
Backup/Restore Commands
Command name Description Page
BANK (or BK) This command acquires the current bank No. p.11
This command switches the bank to be used. p.11
BANKGROUP (or BG) This command acquires the current bank group No. p.12
This command switches the bank group to be used. p.12
Command name Description Page
MEASDATA (or MD) This command acquires the measurement result of the measurement item. p.13
MEASURE (or M) This command executes a single measurement. p.14
This command starts continuous measurement. p.15
This command ends continuous measurement. p.15
Command name Description Page
DATE (or DT) This command acquires the date and time of the calendar timer incorporated
into the Controller.
p.16
This command changes the date and time of the calendar timer incorporated
into the Controller.
p.16
MODELSET (or MS) This command re-registers the model of the specified item. It does not reset
filters, etc.
p.17
PASSWORD (or PW) This command acquires the currently set password. p.17
It sets and changes the password character string. p.18
VERGET (or VR) This command acquires the version information of the Controller. p.18
Command name Description Page
BGRLOAD (or GL) This command uploads bank group data to the Controller from an external
device.
p.19
This command uploads bank group data to the Controller from an SD card. p.19
BGRSAVE (or GS) This command backs up bank group data to an external device from the
Controller.
p.20
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. p.21
This command uploads bank data to the Controller from an SD card. p.21
BNKSAVE (or BS) This command backs up bank data to an external device from the Controller. p.22
This command backs up bank data to an SD card from the Controller. p.22
DATASAVE (or SV) This command saves the current settings to the Controller. p.23
IMGLOAD (or IL) This command uploads image data to the Controller from an external device. p.23
This command uploads image data to the Controller from an SD card. p.24

About Communication Commands
10
ZFX-C Serial Communication Command Reference
Utility Commands
IMGSAVE (or IS) This command backs up image data to an external device from the Controller. p.25
This command backs up image data to an SD card from the Controller. p.26
SYSLOAD (or SL) This command uploads system data to the Controller from an external device. p.27
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
Command name Description Page
RESET (or RS) This command restarts the Controller. p.29
EXIT This command ends the TELNET connection for Ethernet communications and
disconnects the line.
p.29
Command name Description Page

About Communication Commands
ZFX-C Serial Communication Command Reference
11
Bank Control Commands
Acquiring/Switching the Bank No. < BANK command >
Acquiring a bank No.
This command acquires the current bank No.
< Command format >
< Response format >
< Explanation of parameters >
Switching to 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)
BANK
CR
BK
CR
or
CR
ER
CR
OK
CR
When processing ends successfully
When processing fails
Bank No. (max. 2 digits)
BANK
CR
BK
CR
Bank No.
(max. 2 digits)
or
Bank No.
(max. 2 digits)
OK
CR
ER
CR
When processing ends successfully
When processing fails

About Communication Commands
12
ZFX-C Serial Communication Command Reference
Acquiring/Switching the Bank Group No. < BANKGROUP command >
Acquiring a bank group No.
This command acquires the current bank group No.
< Command format >
< Response format >
< Explanation of parameters >
Switching bank group Nos.
This command switches 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)
BA
CR
BG
CR
NKGROUP or
CR
ER
CR
OK
CR
When processing ends successfully
When processing fails
Bank group No. (max. 2 digits)
BA
CR
BG
CR
NKGROUP
Bank group No.
(max. 2 digits)
or
Bank group No.
(max. 2 digits)
OK
CR
ER
CR
When processing ends successfully
When processing fails

About Communication Commands
ZFX-C Serial Communication Command Reference
13
Measurement Control/Measurement Value Acquisition
Commands
Acquiring the Measurement Result of the Measurement Item < MEASDATA command >
This command acquires the measurement result of the measurement item.
< Command format >
< Response format >
< Explanation of parameters >
Measurement item No. Specifies the measurement item No. (0 to 31)
Data No. Specifies the data No. (0 to 127)
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.
• The decimal point is indicated by a period ".".
• The maximum number of digits past the decimal point is three.
MEAS
CR
MD
CR
DATAor
Data No.
(max. 3 digits)
Data No.
(max. 3 digits)
Measurement
item No.
(max. 2 digits)
Measurement
item No.
(max. 2 digits)
OK
CR
ER
CR
CR
When processing ends successfully
When processing fails
Measurement value

About Communication Commands
14
ZFX-C Serial Communication Command Reference
Executing Measurement < MEASURE command >
Executing a Single Measurement
This command executes a single measurement.
< Command format >
< Response format >
< Explanation of parameters >
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].
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.7
MEAS
CR
M
CR
UREor
OK
CR
ER
CR
CR
When processing ends successfully
When processing fails
Measurement value
Important

About Communication Commands
ZFX-C Serial Communication Command Reference
15
Starting Continuous Measurement
< Command format >
< Response format >
Ending Continuous Measurement
< Command format >
< Response format >
MEAS
CR
M/C
CR
URE / C
or
OK
CR
ER
CR
CR
When processing ends successfully
When processing fails
Measurement value (for number of continuous measurements)
MEAS
CR
M/E
CR
URE / E
or
OK
CR
ER
CR
When processing ends successfully
When processing fails

About Communication Commands
16
ZFX-C Serial Communication Command Reference
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 >
< Response format >
< Explanation of parameters >
Changing the Date Setting
This command changes the date and time of the calendar timer incorporated 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
DATE
CR
DT
CR
or
CR
OK
CR
ER
CR
When processing ends successfully
When processing fails
Year/hour/day/hour/minute/second
DATE
CR
DT
CR
Year/hour/day/hour/
minute/second
or
Year/hour/day/hour/
minute/second
OK
CR
ER
CR
When processing ends successfully
When processing fails

About Communication Commands
ZFX-C Serial Communication Command Reference
17
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 >
< Response format >
< Explanation of parameters >
Acquiring/Changing Passwords < PASSWORD command >
Acquiring the password
This command acquires the currently set password.
< Command format >
< Response format >
< Explanation of parameters >
Measurement item No. Specifies the measurement item No.
Measurement items: 0 to 31
Position correction items: 0 to 1
Attribute Specifies measurement item or position correction item.
0: Measurement item
1: Position correction item
Default is measurement item.
Password A password of any eight alphanumeric characters is returned.
MOD E
CR
MS
CR
LSET or
Attribute
Measurement
item No.
(max. 2 digits)
Attribute
Measurement
item No.
(max. 2 digits)
OK
CR
ER
CR
When processing ends successfully
When processing fails
PASS
CR
PW
CR
WORD
or
CR
ER
CR
OK
CR
When processing ends successfully
When processing fails
Password

About Communication Commands
18
ZFX-C Serial Communication Command Reference
Setting/Changing the password
This command sets and changes the password character string.
< Command format >
< Response format >
< Explanation of parameters >
Acquiring the Version No. < VERGET command >
This command acquires the version information of the Controller.
< Command format >
< Response format >
< Explanation of parameters >
Password Specifies a password of any eight alphanumeric characters.
Model information The model No. of the Controller is returned.
Version No. The version No. of the Controller's firmware is returned.
PASS
CR
PW
CR
WORD
Password
or
Password
OK
CR
ER
CR
When processing ends successfully
When processing fails
VERG
CR
VR
CR
ET or
ZFX- VerX .XX
CR
ER
CR
OK
CR
Version No.
Model information
When processing ends successfully
When processing fails
Other manuals for ZFX-C10 COMMUNICATION
2
Table of contents
Other Omron Accessories manuals

Omron
Omron ZS-HLDS5T User manual

Omron
Omron E3S-LS3 User guide

Omron
Omron E3X-DA-S User manual

Omron
Omron ZX-E - User manual

Omron
Omron E3X-DA-SE-S User manual

Omron
Omron F3M-S Series User manual

Omron
Omron E3C-LDA-N Series User manual

Omron
Omron E2KQ-X User manual

Omron
Omron ZFV Series User manual

Omron
Omron TL User manual