The text of a manual · part 3 of 5
Operator's Manual CM900 AutoID Interface Module, pages 21 to 30
Pages 21 to 30 of 50
The original document is the PDF (852 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 Datalogic CM900
Page 21
5.5 Command Set Overview The Standard Program recognizes a variety of commands from the PLC for performing reads and writes to the CM900’s ports. The commands are encoded in the least significant byte (LSB) of the first register passed to the CM900 from the PLC. Table 3 lists each command and provides a brief description of its function. Table 3 - Command Set Listing
COMMAND
HEX EQUIVALENT
COMMAND NAME
DIRECT RF 0
00 Hex
1
01 Hex
Idle RF Port Noncontiguous Read
2
02 Hex
RF Port Noncontiguous Write
3
03 Hex
RF Port Configure Noncontiguous Read/Write Addresses
4
04 Hex
RF Port Fill Tag
5
05 Hex
RF Port Block Read
6
06 Hex
RF Port Block Write
SERIAL 10
10 Hex
Serial Port Configure
11
11 Hex
Serial Port Block Read
12
12 Hex
Serial Port Block Write
13
13 Hex
Clear Serial Port
20
20 Hex
Posted Block Write*
21
21 Hex
Posted Block Read*
22
22 Hex
Read Posted Read Data Buffer *
23
23 Hex
Posted Status Byte*
POSTED RF
24 24 Hex Cancel Posted Operations* *Use of Posted Commands requires special considerations. Please consult EMS or your distributor before implementing these commands.
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
17
Page 22
5.6 Command Descriptions Command 0 (00 Hex): Idle DESCRIPTION Sets the command byte to 0. DISCUSSION When a file move has been completed or when RF operations are not needed, the command byte may be set to zero, but this is not required. Alternatively, the new command can overwrite the old command values. Unlike other commands, the CM900 will not respond to the idle command. EXAMPLE Sets the command byte to 0.
Command from PLC
Response from CM900
MSB
LSB
Remarks
None
00H
00H
ANT, perform Command 0
FFH
FFH
Message Terminator
18
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
Page 23
Command 1 (01 Hex): RF Port Noncontiguous Read DESCRIPTION Directs an RFID antenna to perform a Read of noncontiguous data addresses in an RFID tag. DISCUSSION This command is designed to perform noncontiguous address reads from an RFID tag. The data collected from the tag is presented to the PLC through a backplane register transfer. Before a noncontiguous read command can be performed, the addresses must be preconfigured though the use of the configuration command (Command 03). The data will be read in the same sequence as the addresses are originally stored. The data read from the tag is returned in the LSB of the register and the MSB is always 00H. EXAMPLE The following example illustrates a noncontiguous read command issued after the addresses are preconfigured using the example presented with the configuration command (Command 03). It directs the antenna to read and return the data at addresses 0005H, 0100H, 0101H, 04AAH, and 0597H of the tag memory. Command from PLC
Response from CM900
MSB
Remarks
MSB
LSB
Remarks
00H
01H
Port echo, Command echo
00H
10H
Data read at Address 0005H
00H
11H
Data read at Address 0100H
00H
AAH
Data read at Address 0101H
00H
BAH
Data read at Address 04AAH
00H
32H
Data read at Address 0597H
FFH
FFH
Message Terminator
LSB
00H
01H
ANT port, perform Command 1
FFH
FFH
Message Terminator
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
19
Page 24
Command 2 (02 Hex): RF Port Noncontiguous Write DESCRIPTION Directs the RFID antenna to perform a Write to noncontiguous data addresses in an RFID tag. DISCUSSION This command is designed to perform noncontiguous address writes to an RFID tag. Before a noncontiguous write command can be performed, the addresses must be preconfigured-configured using the configuration command (Command 03). This command has the same control structure as the noncontiguous read command, except the port address and command number are followed by the data to be written into the preconfigured addresses on the RFID tag. Since all data is stored in 8-bit data format, the MSB of each data word are set to 00H. Data to be stored is always placed in the LSB of the data word. The data must be written in the same sequence as when configured using the configure command. If the amount of data written by this command does not match the amount of data for which the port was configured, an error response will be received. EXAMPLE The following example illustrates a noncontiguous write command issued after the addresses are preconfigured using the example presented with the configuration command (Command 03). It directs the antenna to write 44H to address 3040H and 67H to address 3042H. Command from PLC
Response from CM900
MSB
LSB
Remarks
MSB
LSB
Remarks
00H
02H
ANT port, perform Command 2
00H
02H
Port echo, Command echo
00H
44H
Write 44H to Write Address 1
FFH
FFH
Message Terminator
00H
67H
Write 67H to Write Address 2
FFH
FFH
Message Terminator
20
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
Page 25
Command 3 (03 Hex): RF Port Configure Noncontiguous R/W Addresses DESCRIPTION Set up all non-contiguous Read/Write data addresses for the RFID port. Must be performed before Commands 1 or 2, or an error will occur. DISCUSSION This command configures the addresses to be accessed on the RFID tag when either a Noncontiguous Read (Command 1) or Noncontiguous Write (Command 2) is directed from the host PLC. No tag or antenna communications are initiated by using this command. A Read Address Terminator, FFF0H, and a Write Address Terminator, FFF1H, are always required, regardless of whether or not both reads and writes are being configured. After the configure command is executed, any sequence of noncontiguous read or write commands can subsequently be executed. When using the Noncontiguous Write command, data must be presented in the same sequence as configured. Likewise, the read command returns data in the same sequence as configured.
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
21
Page 26
EXAMPLE Configures the Noncontiguous Read command for the antenna to read at addresses 0005H, 0100H, 0101H, 04AAH and 0597H, and the Noncontiguous Write command to write at addresses 3040H and 3042H. Command from PLC
Response from CM900
MSB
LSB
Remarks
MSB
LSB
Remarks
00H
03H
ANT port, perform Command 3
00H
03H
Port echo, Command echo
00H
05H
Read Address 1 = 0005H
FFH
FFH
Message Terminator
01H
00H
Read Address 2 = 0100H
01H
01H
Read Address 3 = 0101H
04H
AAH
Read Address 4 = 04AAH
05H
97H
Read Address 5 = 0597H
FFH
F0H
Read Address Terminator
30H
40H
Write Address 1 = 3040H
30H
42H
Write Address 2 = 3042H
FFH
F1H
Write Address Terminator
FFH
FFH
Message Terminator
22
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
Page 27
Command 4 (04 Hex): RF Port Fill Tag DESCRIPTION Fill an RFID tag with a one-byte value over multiple contiguous addresses. DISCUSSION This command is commonly used to clear an RFID tag’s memory. It writes a onebyte value repetitively across a specified range of tag addresses, up to 8K bytes at a time. It should be noted that an 8K byte fill, which occurs at 3000 bytes/second, will supersede any other command to the CM900 for up to 2.6 seconds. The fill function requires one data value byte, a starting address, and a fill length. It will then proceed to fill the tag with the data value byte, starting at the specified start address for the specified number of consecutive bytes. EXAMPLE Writes ’A’ (41H) to the tag starting at address 0005H for the following next consecutive 2048 bytes. Command from PLC
Response from CM900
MSB 00H
LSB 04H
00H 08H
05H 00H
MSB 00H FFH
00H FFH
41H FFH
Remarks ANT port, perform Command 4 Start Address = 0005H Fill Length= 2048 bytes (0800H) Data Value Byte = 41H Message Terminator
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
LSB 04H FFH
Remarks Port echo, Command echo Message Terminator
23
Page 28
Command 5 (05 Hex): RF Port Block Read DESCRIPTION Read a block of data from an RFID tag. DISCUSSION The RF Port Block Read command is used to read segments of data from contiguous areas of tag memory. It is capable of handling up to 98 bytes of data transferred to the PLC with one command, with an additional two bytes used to transmit the command echo. Unlike the noncontiguous reads and writes, the block read does not need a configuration command to precede it. The block read consists of a start address and quantity, followed by the message terminator, FFFFH, as shown below. The data read from the tag is returned in the LSB of the register, and the MSB is always 00H. EXAMPLE: Reads 8 bytes of data from the tag starting at address 0101H. Command from PLC
Response from CM900
MSB 00H
LSB 05H
MSB
LSB
Remarks
00H
05H
Port echo, Command echo
01H 00H
01H 08H
00H
52H
Read Data 1 = 52H
00H
46H
Read Data 2 = 46H
00H
49H
Read Data 3 = 49H
FFH
FFH
00H
44H
Read Data 4 = 44H
00H
20H
Read Data 5 = 20H
00H
54H
Read Data 6 = 54H
00H
61H
Read Data 7 = 61H
00H
67H
Read Data 8 = 67H
FFH
FFH
Message Terminator
24
Remarks ANT port, perform command 5 Start Address = 0101H Read Block Length = 8 bytes (0008H) Message Terminator
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
Page 29
Command 6 (06 Hex): RF Port Block Write DESCRIPTION Write a block of data to an RFID tag. DISCUSSION The RF Port Block Write command is used to write segments of data to contiguous areas of tag memory. It is capable of transferring up to 98 bytes of data transferred from the PLC with one command, with an additional two bytes used to transmit the command. Unlike the noncontiguous reads and writes, the Block Write does not need a configuration command to precede it. The Block Write consists of a start address followed by the data stream to be written to the RFID tag. The data to be written to the tag is contained in the LSB of the register, and the MSB is always 00H. EXAMPLE: Writes 8 bytes of data to the tag starting at address 0400H.
Command from PLC
Response from CM900
MSB
LSB
Remarks
MSB
LSB
Remarks
00H
06H
ANT port, perform Command 6
00H
06H
Port echo, Command echo
FFH
FFH
Message Terminator
04H
00H
Start Address = 0400H
04H
00H
Write Data 1 = 52H
00H
46H
Write Data 2 = 46H
00H
49H
Write Data 3 = 49H
00H
44H
Write Data 4 = 44H
00H
20H
Write Data 5 = 20H
00H
54H
Write Data 6 = 54H
00H
61H
Write Data 7 = 61H
00H
67H
Write Data 8 = 67H
FFH
FFH
Message Terminator
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module
25
Page 30
Command 10 (10 Hex): Serial Port Configure DESCRIPTION Sets the serial communication protocol for the Serial Ports COM1 and COM2. Please note that the COM2 port is RS232 only. DISCUSSION This command will set up the serial communication protocol for a specified serial port. Table 4 lists the available serial port configuration options, and the appropriate hex values. The configuration options must be provided in the same order as listed in Table 4 .
Table 4 - Serial Port Protocol Settings Parameter
Hex Equivalent
Interface Type
Parameter
Hex Equivalent
Parity
RS232
00E8H
None
0001H
RS422
01A6H
Even
0002H
Odd
0003H
Baud Rate
Data Bits
300
012CH
8
0008H
600
0258H
7
0007H
1200
04B0H
2400
0960H
Stop Bits
4800
12C0H
1
0001H
9600
2580H
2
0002H
19200
4B00H
2
0002H
26
Copyright © 2001, Escort Memory Systems Inc. CM900 AutoID Interface Module