The text of a manual · part 5 of 9
V600 RFID System V600-CD1D-V Serial Interface ID Controller Operation Manual, pages 41 to 50
Pages 41 to 50 of 89
The original document is the PDF (566 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron V600-CD1D-V2
Page 41
Section
Command Format
4-3
4-3
Command Format
Command/Response List No.
Command
Header
Description
1
Read
RD
2
Write
WT
3
XR
5
Expansion read Expansion write Auto read
6
Auto write
AW
7
Polling auto read Polling auto write Command processing terminate
PR
AA
Terminates the processing of commands other than polling command.
Data management command
MD
Checks the data of the Data Carrier’s memory.
11
Write processing repeat
RP
Manages the number of overwriting operations on the EEPROM-type Data Carrier. Repeatedly executes the write command that was previously executed.
12
CC
Performs user input/output operation.
13
Controller control Error information read
CF
Reads a log information error.
14
Test
TS
Returns as a response a test message sent from the host computer.
15
Abort (reset0
XZ
16
Command undefined response)
IC
Restores the ID Controller to previous state upon power application. No response is returned. The response returned by the ID Controller when the ID Controller receives an undefined command from the host computer.
4
8 9
10
32
Reads or writes data to or from the Data Carrier. If the Data Carrier is missing, an error response returns.
XW AR
Reads or writes data to or from the Data Responds upon completion of Carrier. If the Data Carrier is missing, waits until command processing. the Data Carrier approaches Can inquire about the result of command processing
PW
Page 42
Section
Command Format
4-3
Command/Response Format The command sent from the host computer to the ID Controller, and the response returned from the ID Controller to the host computer are in the following format:
1 frame = 266 characters max.
X
X
X
X
.........
Header
Text
Type
Two-character symbol indicating operation.
Response
Symbol same as header of executed command
Command
Contents of processing: – ASCII/HEX code specification – R/W Head no. specification (fixed to 1) – Processing start address – Number of bytes to be processed (for read command), write data (for write command)
Response
Result of processing – End code – Read data (for read command)
Indicates end of command or response. Note: ∗ indicates “2A”H of ASCII code, and CR indicates “0D”H.
If the length of an expansion command exceeds 266 characters, or the length of a response to an expansion command exceeds 256 characters, the command or response is divided into several frames as follows. At this time, the terminator (∗CR) is appended to the last frame, and a delimiter (CR) is appended to the other frames. If response length exceeds 256 characters (for expansion read command): After transmitting a response which is not the last frame, the ID Controller transmits the next response frame when it has received a delimiter (CR) from the host controller.
Text Terminator
<ID Controller>
Text Delimiter
<Host >
Delimiter
Command Delimiter
Terminator
Description Command
Header XR Text Delimiter
Text
CR
Terminator
Header XR Text Terminator
Header
∗
X
Delimiter: CR Response
33
Page 43
Section
Command Format
4-3
If command length exceeds 266 characters (for expansion write command): When the ID Controller receives a command which is not the last frame, it transmits a delimiter (CR) to the host controller, and is ready to receive the next command frame.
Text Terminator
<Host >
Text Delimiter
Header XW Text Terminator
Command
Header XW Text Terminator
<ID Controller>
Delimiter
Delimiter
Response
Delimiter: CR
Specifying Data Code Whether the read or write data is treated as an ASCII (or JIS 8) code or HEX code is specified in a command. ASCII (JIS 8 Code) When the data length is specified to be 7 bits by the DIP switch of the ID Controller, ASCII is specified. When the data length is specified to be 8 bits, the JIS 8 code is specified. One character of ASCII or JIS 8 code data occupies 1 byte (1 address) of the Data Carrier memory. Example of specifying ASCII code: W T
Command
A
1
0
0
1
0
O
M R
O
N
∗
Write data
Header ASCII specification R/W Head No. specification (fixed to 1)
First address
Data Carrier memory address: Address 0010
4
F
“O”
0011
4
D
“M”
0012
5
2
“R”
0013
4
F
“O”
0014
4
E
“N”
Note For ASCII (JIS 8 code), refer to Appendix A. Hex Code One character is treated as a hexadecimal number. Therefore, only numerals 0 through 9 and A to F can be accepted. Two characters of data occupy 1 byte (1 address) of the Data Carrier memory. Therefore, specify data in 2-character units (in even numbers) when using a write command. If an odd number of data is specified by mistake, an error occurs.
34
Page 44
Section
Command Format
4-3
Example of specifying HEX code: W T
Command
H
1
0
0
2
0
1
9
8
8
∗
Write data
Header First address
HEX code specification R/W Head No. specification (fixed to 1)
Data Carrier memory address: Address 0020
1
9
0021
8
8 1 byte
Range of Address and Number of Bytes Read Command Other than expansion read command: 1 frame = 12 characters
X
X
A/H
1
First address
∗
No. of
CR bytes read
Header
No. of bytes of area from which data is to be read (hexadecimal)
ASCII/HEX code specification R/W Head No. specification (fixed to 1) First address specification (0000-FFFF)
ASCII
00-FF (1-256 bytes) (256 bytes when 00 is specified)
HEX
01-80 (1-128 bytes)
Expansion read command: 1 frame = 14 characters
X
R
A/H
1
First address
No. of bytes read
∗
CR
No. of bytes of area from which data is to be read (hexadecimal) 0001-0800 (1-2048 bytes)
Header ASCII/HEX code specification R/W Head No. specification (fixed to 1) First address specification (0000-FFFF)
Write Command Other than expansion write command: 1 frame = 266 characters max.
X
X
A/H
1
First address
Header ASCII/HEX code specification R/W Head No. specification (fixed to 1) First address specification (0002-FFFF)
Write data
∗
CR
Data written to DC ASCII
1-256 characters (1-256 bytes)
HEX
2-256 characters (even) (1-128 bytes)
35
Page 45
Section
Types of Commands and Responses
4-4
Expansion write command: Frame is divided if the number of characters is more than 267
X
W
1
A/H
First address
Header
∗
Write data
CR
Data written to DC
ASCII/HEX code specification R/W Head No. specification (fixed to 1) First address specification (0002-FFFF)
ASCII
1-2048 characters (1-2048 bytes)
HEX
2-4096 (4K) characters (even) (1-2048 bytes)
Note To divide a frame into several frames, make sure that one frame is of 266 characters or less. 1 frame = 266 characters max. Frame 1
4-4
Header
A/H
First address
1
Write data 1
CR
Frame 2
Write data 2
:
:
Frame (n–1) Frame n
Write data (n–1)
CR
Write data n
∗CR
CR
Types of Commands and Responses
4-4-1 Read (RD) Reads data from the Data Carrier. If the Data Carrier is missing, an error response (end code: 72 = Data Carrier missing) is returned. Command Format Read
R
D
A/H
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code R/W Head No. specification (fixed to 1) First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type)
36
1
X
X
X
X
No. of bytes read
∗ Specify the number of bytes to be read in HEX code. The number of bytes that can be read at a time is as follows: – ASCII: 256 bytes (256 characters) – HEX: 128 bytes (256 characters)
Page 46
Section
Types of Commands and Responses
4-4
Response Format Read
R
D
0
0
X
X
X
X
∗
Read data
Header End code 00: Normal completion
Note If the Data Carrier is missing, “RD72” is returned.
4-4-2 Write (WT) Writes data to the Data Carrier. If the Data Carrier is missing, an error response (end code: 72 = Data Carrier missing) is returned. Command Format 1 frame = 266 characters max. Write
W
T
A/H
1
X
X
X
X
X
X
X
X
∗
Specify the number of bytes to be written. The number of bytes that can be read at a time is as follows: ASCII: 256 characters (256 bytes) HEX: 256 characters (128 bytes)
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code R/W Head No. specification (fixed to 1) First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type) Note: Addresses 0000 and 0001 cannot be written as these are a production date area.
Response Format Write
W
T
0
∗
0
End code 00: Normal completion
Header
Note If the Data Carrier is missing, “WT72” is returned.
4-4-3 Expansion Read Command (XR) Performs batch read processing of up to 2 KB. The processing procedure to the DC is the same as that of the read command. Command Format X
R
Header ASCII/HEX code specification R/W Head No. specification (fixed to 1)
H/A
1
X
X
X
X
X
X
X
X
∗
CR
Terminator First address specification (0000-FFFF)
No. of bytes read
37
Page 47
Section
Types of Commands and Responses
4-4
Response Format X
R
0
0
X
X
X
X
X
X
X
X
∗
CR
Read data
Header End code
If the number of characters of read data is greater than 250, the frame is divided as follows:
Frame 1
XR
1 frame = 256 characters 250 characters Read data 1
00
Frame 2
CR
254 characters : Read data 2
CR
Read data (n–1)
CR
254 characters Read data n
*CR
: Frame (n–1) Frame n
Host
(Command) XR
(Delimiter) CR
(Delimiter) (Delimiter) (Delimiter) CR CR CR ...
Frame 1 Frame 2 (Response 1) (Response 2)
ID Controller
Frame n–1 Frame n (Response n–1) (Response n)
4-4-4 Expansion Write Command (XW) Performs batch write processing of up to 2 KB. The processing procedure to the DC is the same as that of the write command. Command Format X
W
H/A
1
X
Header ASCII/HEX code specification R/W Head No. specification (fixed to 1)
X
X
X
X
X
X
X
∗
CR
Terminator Write data
First address specification (0000-FFFF)
∗Up to 2 KB can be read by batch processing.
Response Format X
Header
W
0
0
∗
CR
End code
If the command length is greater than 266 characters, divide the frame. Frame Division 1, 2, 3...
38
1. Divide the frame so that each frame consists of up to 266 characters. 2. Append a terminator (∗CR) only to the last frame (frame n). Append a delimiter (CR) at the end of the other frames. 3. A header, ASCII/HEX specification, head no. specification, and first address are necessary for the first frame (frame 1). If one of these is missing, a command input error occurs. The write data can be omitted.
Page 48
Section
Types of Commands and Responses
4-4
4. If the HEX code is specified, the number of write data characters in each frame must be even. If it is odd, a command input error occurs. 5. Divide the frame so that the last frame is not AA∗CR or XZ∗CR.
1 frame = 266 characters Frame 1
Header
A/H
1 First address
Write data 1
CR
Frame 2
Write data 2
:
:
Frame (n–1) Frame n
Write data (n–1)
CR
Write data n
*CR
CR
(Communication procedure) Host
(Command 1) XR
(Command 2)
(Command n–1) (Command n) CR ...
CR
CR
ID Controller
CR
CR
(Delimiter) (Delimiter) (Delimiter) (Delimiter)
(Response)
4-4-5 Auto Read (AR) Reads data when the Data Carrier has approached. The ID Controller responds when the lower communication has ended. Command Format
Read
A
R
A/H
1
X
X
X
X
X
X
∗ Specify the number of bytes to be read in HEX code. The number of bytes that can be read at a time is as follows: ASCII: 256 bytes (256 characters) HEX: 128 bytes (256 characters)
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code R/W Head No. specification (fixed to 1)
First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type)
Response Format
Auto Read
A
R
O
O
X
X
X
X
∗
Read data (on normal completion only)
Header End code 00: Normal completion
39
Page 49
Section
Types of Commands and Responses
4-4
4-4-6 Auto Write (AW) Writes data when the Data Carrier has approached. The ID Controller responds when the lower communication has ended. Command Format 1 frame = 266 characters max. Auto write
A
W
A/H
1
X
X
X
X
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code
X
X
X
X
∗
Specify the number of bytes to be written. The number of bytes that can be read at a time is as follows: ASCII: 256 characters (256 bytes) HEX: 256 characters (128 bytes)
R/W Head No. specification (fixed to 1) First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type) Note: Addresses 0000 and 0001 cannot be written as these are a production date area.
Response Format Auto write
A
W
0
0
Header
∗ End code 00: Normal completion
4-4-7 Polling Auto Read (PR) When the host computer transmits the polling auto command, the ID Controller immediately responds, indicating the reception of the command. After this, the ID Controller reads data when the Data Carrier approaches. Meanwhile, the host computer can make an inquiry on the result of the command processing by using a subcommand. Command Format Polling auto read
P
R
A/H
1
X
X
X
X
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code
X
X
∗
Specify the number of bytes to be read in HEX code. The number of bytes that can be read at a time is as follows: ASCII: 256 bytes (256 characters) HEX: 128 bytes (256 characters)
R/W Head No. specification (fixed to 1) First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type)
Response Format Polling auto read
Header
40
P
R
7
4
∗ End code 74: Command received Note: In this case, the end code is either 74 or host communication error.
Page 50
Section
Types of Commands and Responses
4-4
Subcommand Format Polling auto read
P
R
C/E
1
∗
R/W Head No. specification (fixed to 1) Inquiry on result of polling auto processing/termination C: Inquiry on result of processing E: Termination
Header
Subcommand Response Format Polling auto read
P
R
0
0
X
X
X
X
∗
Read data (on normal completion only) End code 00: Normal completion 74: Data Carrier not approaching (2nd time or later) 75: Polling auto processing terminated (before communication processing with Data Carrier) 76: Polling auto processing terminated (when Data Carrier has approached and during or after communication processing with Data Carrier)
Header
4-4-8 Polling Auto Write (PW) When the host computer transmits the polling auto command, the ID Controller immediately responds, indicating the reception of the command. After that, the ID Controller writes data when the Data Carrier approaches. Meanwhile, the host computer can make an inquiry on the result of the command processing by using a subcommand. Command Format 1 frame = 266 characters max. Polling auto write
P
W
A/H
1
X
X
X
X
Header ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code
X
X
X
X
∗
Specify the number of bytes to be written. The number of bytes that can be read at a time is as follows: ASCII: 256 characters (256 bytes) HEX: 256 characters (128 bytes)
R/W Head No. specification (fixed to 1) First address No. specification range 0000-07FF (2KB type) 0000-1FFF (8KB type) Note: Addresses 0000 and 0001 cannot be written as these are a production date area.
Response Format Polling auto write
Header
P
W
7
4
∗ End code 74: Command received Note: In this case, the end code is either 74 or host communication error.
41