OMRON ZFV-C User Manual

Smart Sensor
ZFV-C
CompoWay/F Communication Command Reference
Cat. No. Z243-E1-01
Introduction
This manual provides information regarding operations and input/output format that are
required for communication between ZFC-V controllers and external devices using the
OMRON proprietary communication protocol, Compoway/F.
When using the ZFV-C, be sure to observe the following:
• The ZFV-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.
Contents
Contents
ÇÕǹÇ?Ç ëÊ 1 èÕ ëÊ 2 èÕ ëÊ 3 èÕ ëÊ 4 èÕ
Contents Section 1 Section 2 Section 3 ëÊ 6 èÕ ëÊ 7 èÕ
Section 1
About Communication Commands 1-1
How Communication Works 1-2
Setting the Communication Specifications 1-3
Command Formats 1-4
Response Formats 1-6
Examples of Abnormal End 1-8
Section 2
Details of Commands 2-1
About General Information of Communication Commands 2-2
Reading Parameter Areas 2-3
List of Parameter Area Read Commands 2-3
Commands and Responses 2-4
Writing Parameter Areas 2-6
List of Parameter Area Writing Commands 2-6
Commands and Responses 2-7
Reading Controller Information 2-8
Operation Instructions 2-9
List of Operation Instruction Commands 2-9
Commands and Responses 2-9
Section 3
Unit Nos. and Parameter Nos. 3-1
Setting Value Acquisition/Change Commands 3-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 Works 1-2
Setting the Communication Specifications 1-3
Command Formats 1-4
Response Formats 1-6
Examples of Abnormal End 1-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 text ETX
MRC SRC 03Hex
fixed
1 byte
BCC
1 byte
* In the example format, 1 byte = 1 ASCII character.
Element Description
STX This 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.
Subaddress This should be fixed to "00."
SID (service ID) This should be fixed to "0."
Command text This is the text section of the command.
"Section 2 - Details of Commands" describes these sections by each individual command.
ETX This code indicates the end of the text (03Hex).
BCC This is the block check character.
The exclusive OR (XOR) of values from node No. to ETX per single byte is BCC.
1-4
ZFV-C
CompoWay/F Communication Command Reference
Command Formats
Example of BCC calculation
STX Node No. Subaddress SID Command text ETX BCC
02Hex
"0"
(30Hex)
"0"
(30Hex)
"00"
(3030Hex)
<Calculation> BCC=30Hex+30Hex+30Hex+30Hex+30Hex+33Hex+30Hex+30Hex+35Hex+33Hex+
30Hex+30Hex+31Hex+03Hex=37Hex
"0"
(30Hex)
Set the result of calculation, "37Hex," to the BCC section.
"30053001"
(3330303533303031Hex)
"+" indicates the exclusive OR (XOR) operation.
03Hex
Section 1
Section 1 About Communication Commands
37Hex
CompoWay/F Communication Command Reference
ZFV-C
1-5
Loading...
+ 21 hidden pages