The text of a manual · part 6 of 9
V600 RFID System V600-CD1D-V Serial Interface ID Controller Operation Manual, pages 51 to 60
Pages 51 to 60 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 51
Section
Types of Commands and Responses
4-4
4-4-9 Command Processing Terminating Command (AA) Terminates the processing of the commands other than the polling commands and restores the command wait status. Can also terminate the communication of frames of an expansion command. Command Format A
∗
A
CR
Terminator
Header
Response Format A
A
X
∗
X
CR
Terminator End code
Header
End code
Meaning
14
Processing of auto or ordinary command is not executed.
75
Expansion command has not been received yet, sync input has not become active yet, or command execution has been terminated before DC is detected. When DC read/write processing is terminated.
76
4-4-10 Data Check Command (MD C/K) Writes a CRC code and executes data collation in a check block specified by the user. A CRC code is calculated with the generating function X16 + X12 + X5 +1. The number of check block bytes required is the number of bytes of the check code calculation area plus two bytes. Refer to 5-5 Checking Function of the Data Carrier’s Memory for details.
1-to-1 Procedure Command Format M
D
C/K
1
X
X
X
X
X
X
∗
CR
Specifies a hexadecimal value (03H, 04H,..., FEH, FFH, 00H) for the number of overwriting operations to be added. 00H means 256 bytes.
Header Processing specification (C: Collation; K: Calculation) Read/Write head word (fixed to 1 Check block first address
Response Format M
D
Header
42
0
0
∗
CR
End code 00: Normal completion (at the time of calculation processing only) 75: Normal data (at the time of collation processing only) 76: Data abnormal warning (at the time of collation processing only)
Page 52
Section
Types of Commands and Responses
4-4
1-to-n Procedure Command Format @
Unit no
M
D
C/K
1
X
X
X
X
X
X
00 to 07
FCS
∗
Specify a hexadecimal value (03H, 04H,..., FEH, FFH, 00H) for the number of overwriting operations to be added. 00H means 256 bytes.
Header Processing specification (C: Collation; K: Calculation) Read/Write head word (fixed to 1) Check block first address
Response Format @
Unit no
M
D
0
0
FCS
∗
00 to 07 Header End code 00: Normal completion (at the time of calculation processing only) 75: Normal data (at the time of collation processing only) 76: Data abnormal warning (at the time of collation processing only)
4-4-11 Data Management Command (MDS/MDL) The MDL and MDS commands can be used to check the number of overwriting operations for the EEPROM in an EEPROM-type Data Carrier. By adding or subtracting a number of writing operations to the number in the management area specified by the user, it is possible to check whether or not the number of overwriting operations has exceeded the allowable number. Refer to 5-4-2 EEPROM-type Data Carrier for details.
1-to-1 Procedure Command Format M
Header
D
S/L
1
X
X
X
X
X
X
∗
CR
Specify a hexadecimal value (00H, 01H, 02H,..., FFH) for the number of overwriting operations to be added or subtracted. First address specification to or to Read/Write head word (fixed to 1) Mode specification S: Subtraction method used. The allowable number of overwriting operations is specified by the user (16,700,000 max.) Note that the specification for the allowable number of overwriting operations for an EEPROM-type Data Carrier is 300,000 at temperatures of less than 40°C. L: Addition method used. When using this command, the allowable number of overwriting operations is 100,000.
43
Page 53
Section
Types of Commands and Responses
4-4
Response Format M
D
7
5
∗
CR
End code 75: The number of overwriting operations has not exceeded the allowable number. 76: The number of overwriting operations has exceeded the allowable number.
Header
1-to-n Procedure Command Format @
Unit no
M
D
S/L
1
X
X
X
X
X
X
FCS
∗
00 to 07 Specifies a hexadecimal value (00H, 01H, 02H,..., FFH) for the number of overwriting operations to be added.
Header
First address specification Read/Write head word (fixed to 1) Mode specification S: Subtraction method used. The allowable number of overwriting operations is specified by the user (16,700,000 max.) Note that the specification for the allowable number of overwriting operations for an EEPROM-type Data Carrier is 300,000 at temperatures of less than 40°C. L: Addition method used. When using this command, the allowable number of overwriting operations is 100,000.
Response Format @
Unit no
M
D
7
5
00 to 07
∗
FCS
End code 75: The number of overwriting operations has not exceeded the allowable number. 76: The number of overwriting operations has exceeded the allowable number.
Header
4-4-12 Write Processing Repeat Command (RP) Executes the processing the write command previously executed. Command Format R
P
∗
CR
Header
Terminator
Response Format X
R/W Head No. specification (fixed to 1)
44
X
0
0
∗
CR
ASCII/HEX code specification A: ASCII code, JIS 8 code H: HEX code
Page 54
Section
Types of Commands and Responses
4-4
The write command information is cleared under the following conditions: • When the Controller is power-reset. • When a host communication error occurs during execution of write command • If the repeat command is executed in this status, a command input error occurs.
4-4-13 Controller Control Command (CC) Manipulates/reads I/O. Command Format C
C
0
0
0
∗
1
Header Processing code (fixed to 00)
CR
Terminator OUT 2 manipulation (0: Not manipulated, 1: ON, 2: OFF) OUT 1 manipulation (0: Not manipulated, 1: ON, 2: OFF)
Response Format C
C
0
0
0
1
1
1
Header End code
∗
CR
Output status after manipulation 1st character: OUT1, 2nd character: OUT2 1: ON, 0: OFF
Current input status 1st character: IN1, 2nd character: IN2 1: ON, 0: OFF
4-4-14 Error Information Read Command (CF) Reads the latest error log information. Command Format C
F
0
0
∗
CR
Terminator Processing code (fixed to 00)
Header
Response Format C
F
0
0
R
Header End code
D
1
7
0
R
D
1
4
∗
CR
Latest error log information (new -> old)
The latest error log information is arranged in the order of occurrence and five characters indicate one error. RD 1 7 0 Code of error that has occurred No. of head in which error has occurred (lower communication error only) If error other than lower communication error has occurred, “ ” (space). Command in which error has occurred
45
Page 55
Section
Types of Commands and Responses
4-4
Note The error log information is cleared by means of power reset. If this command is executed in this status, no error log information is read.
4-4-15 Test Command (TS) Returns a test message sent from the host computer as is. The test command is used to test communication between the host computer and the ID Controller. Command Format 1 frame = 266 characters max. T
S
X
X
X
X
∗
Test message
Header
Response Format T
S
X
X
X
X
∗
Test message
Header
4-4-16 Abort Command (XZ) If the ID Controller does not return a response due to a problem during the host communication or lower communication, the abort command can restore the ID Controller to the command wait status. There is no response to the abort command. Command Format X
Z
∗
Header
Note The ID Controller requires about 100 ms to get ready for reception of the next command after it has received the abort command.
4-4-17 Command Undefined Response (IC) This is a response the ID Controller returns if it cannot read the header of a given command. Response Format I
Header
46
C
∗
Page 56
Section
Types of Commands and Responses
4-4
4-4-18 Error Response If an error occurs during the host communication or lower communication, the error is identified by the end code. Response Format X
X
Header
X
∗
X
End code
The header same as that of the transmitted command
4-4-19 End Code List The end code is expressed as a 2-digit hexadecimal number. Type Normal
End code Normal completion
7B
Warning: Data Carrier battery end
74
10 11 14
Polling command reception Data Carrier not approaching (when polling inquiry command is issued) Termination of command before processing (Termination before execution of read/write processing of data) Termination of command after processing (Termination after execution of read/write processing of data) Parity error Framing/overrun error Command input error
18
Frame length MAX error
70 71 72
Data Carrier communication error Unmatching error Data Carrier missing
7A
Address over
7C
R/W head not connected
7D
Write protect error
75 76 Host communication
Lower communication
Name
00
47
Page 57
Example of Communications Program
4-5
Section
4-5
Example of Communications Program
Host Link Serial System Example of System Configuration
RS-232C
Example of BASIC Program In this example, data is written from Data Carrier 1 as HEX code by the write command. Input the write address in four characters in the range of 0006 to 1FFF, and write data as 2-digit HEX characters. The total character length of the write data must be 256 or less. Set the communication format of the ID Controller by using the DIP switches in accordance with the communication system of the host computer to be used. 10 CLS 20 OPEN ”COM1:9600,E,8,1,CS0,DS0,CD0,PE” AS#1 30 WIDTH #1.255 40 PRINT ”write command is executed” 50 INPUT ”write address (HEX data: 0006–01FF)”=WA$ 60 INPUT ”write data (HEX data: 2–digit units)”:WD$ 70 TX$=”WTH1”+WA$+WD$+”∗”+CHR$(&HD) 80 PRINT TX$ 90 PRINT #1, TX$; 100 INPUT #1, RX$ 110 PRINT ”RS data=”:RX$ 120 GOTO 40 Note The above program is for IBM-PC. The program differs depending on the host computer to be used.
48
Page 58
SECTION 5 Testing This section provides the information required to test and maintain the performance of the RFID System. 5-1 5-2 5-3 5-4
5-5 5-6 5-7 5-8
Test Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Error Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Checking the Data Carrier Life . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4-1 SRAM-type Data Carrier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4-2 EEPROM-type Data Carrier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Checking Function of the Data Carrier’s Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Maintenance and Inspection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Systems Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50 52 53 54 54 55 58 61 62 63
49
Page 59
Section
Test Run
5-1
5-1
Test Run
Checklist No.
Item
Criteria
1
Connection of power and I/O lines
Is the wiring correct? Are all terminals tightly secured?
2
Setting of DIP switches
Are communication specifications correctly set?
3
Connection of R/W Head
Is R/W Head correctly connected?
4
Location of data carrier
Are data carrier and R/W Head correctly located?
5
Connection of host computer
Is the RS-232C connector correctly connected?
6
Trigger condition
Is the input condition of trigger correctly set?
Procedure of Test Run Power application
– Check of supply voltage and power terminal connections. – Check of supply voltage to input/output terminals. – Check of ID Controller POWER indicators and R/W Head.
Checking of external input terminal functions
– Check of STOP operation by RESET input. – Check of status of trigger input in I/O display mode.
Off-line test in test mode
– Check of communications between DC and ID Controller without a host controller connection.
On-line test by host computer
– Check of communications between host controller and ID Controller by using test command.
Test run of system
– Check of overall system using actual commands and input/ output status.
End
Off-line Test in Test Mode By setting the Test Mode, communication between the ID Controller and DC can be tested without the Controller being connected to the host computer. Use this test to check mounting positions before the test run.
50
Page 60
Section
Test Run
5-1
Communications Test with Host Computer Communications testing between the ID Controller and the host computer can be performed by using the test command, so that connections of the cables and communications operation can be checked before the test run of the overall system. 1, 2, 3...
1. Create a simple communications program on the host computer and transmit the test command (TS). 2. If the communication system is normal, the ID Controller returns the test data it has received as is.
Frame 1 TSx x x_x …… x x x ∗ Transmission Test data: 262 characters max.
Response of host computer TSx x x_x …… x x x ∗ Response of test data
Reception
51