About General Information of Communication Commands2-2
Reading Parameter Areas2-3
List of Parameter Area Read Commands2-3
Commands and Responses2-4
Writing Parameter Areas2-6
List of Parameter Area Writing Commands2-6
Commands and Responses2-7
Reading Controller Information2-8
Operation Instructions2-9
List of Operation Instruction Commands2-9
Commands and Responses2-9
Section 3
Unit Nos. and Parameter Nos.3-1
Setting Value Acquisition/Change Commands3-2
CompoWay/F Communication Command Reference
ZFV-C
1
Contents
MEMO
ZFV-C
2
CompoWay/F Communication Command Reference
Section 1
About Communication Commands
How Communication Works1-2
Setting the Communication Specifications1-3
Command Formats1-4
Response Formats1-6
Examples of Abnormal End1-8
Section 1 About Communication Commands
CompoWay/F Communication Command Reference
ZFV-C
1-1
Section 1
How Communication Works
How Communication Works
Section 1 About Communication Commands
ZFV-C controllers have a function for communicating with external devices. Use this
function to read the data in ZFV-C controllers from the host and to write the setting data.
Communication is achieved via the Command and Response Method based on
CompoWay/F, OMRON's proprietary communication protocol. Controllers execute
processing according to the command sent from the host, and then return the result as a
response to the host that sent the command.
Host
Programmable Controller
ZFV-C controller (RUN mode)
Personal Computer
The command is entered.
The result of command
execution is received.
The command is
executed.
During command
execution,
the controller is in a
non-measurement
state.
The execution result
is output.
1-2
ZFV-C
CompoWay/F Communication Command Reference
Section 1
Setting the Communication Specifications
Setting the Communication Specifications
Change the settings of the controller communication specifications for communicating with
the external device by CompoWay/F protocol.
Use a USB cable or RS-232C cable to connect ZFV-C controllers to external devices.
For the USB cable connection, download and install the USB driver beforehand.
For the USB driver, please contact your OMRON representative.
1. Switch the controller to [MENU].
2. Select [System2] - [Communication] to set the appropriate communication
specifications for the external device.
3. Switch the controller to [RUN]. (This executes the save.)
Section 1 About Communication Commands
CompoWay/F Communication Command Reference
ZFV-C
1-3
Section 1
Command Formats
Command Formats
Section 1 About Communication Commands
The command format of the communication commands is shown below.
In the following section, numerical values appended with "Hex" (e.g. 02Hex) indicate
hexadecimal numbers. Those annotated by " " or only numeral values indicate ASCII
characters.
(Text)
STX
02Hex
fixed
1 byte
Node No.
1
(x 10
2 bytes
) (x 100)
Subaddress
"00"
fixed
2 bytes
SID
"0"
fixed
1 byte
BCC calculating range
Command textETX
MRC SRC03Hex
fixed
1 byte
BCC
1 byte
* In the example format, 1 byte = 1 ASCII character.
ElementDescription
STXThis code indicates the start of a communication frame (02Hex).
Be sure to set the first byte to 02Hex.
When a controller receives STX while receiving a command, it receives the
command again starting from where it received STX.
Node No.This is the node No. for identifying the destination. It should be fixed to "00."
* About node No.
This node No. indicates the connection group No. as seen from the host
device (PLC). Not only ZFV-C but also two or more devices can be
connected to the programmable controller. The No. assigned to devices
connected to a PLC such as this is referred to as a node No.
SubaddressThis should be fixed to "00."
SID (service ID)This should be fixed to "0."
Command textThis is the text section of the command.
"Section 2 - Details of Commands" describes these sections by each individual
command.
ETXThis code indicates the end of the text (03Hex).
BCCThis is the block check character.
The exclusive OR (XOR) of values from node No. to ETX per single byte is
BCC.