EMS, Escort Memory Systems and the EMS logo are registered trademarks of Escort Memory Systems, a Datalogic Group Company. Other brand and product names mentioned are trademarks or registered trademarks of their respective holders. Escort Memory Systems A Datalogic Group Company 170 Technology Circle Scotts Valley, CA 95066 Telephone (831) 438-7000 FAX (831) 438-5768 www.ems-rfid.com email: info@ems-rfid.com
Table of Contents
Chapter 1 Getting Started
1.1 1.2 1.3 2.1 2.2 2.3 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Unpacking and Inspection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Organization of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 RF Range and Orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 HMS827 Antenna Direction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3.1 Changing the HMS827 read head orientation . . . . . . . . . 9 2.3.2 Remote Antennas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Mounting the HMS827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.4.1 Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Conveyor Mounting the HMS827-04 . . . . . . . . . . . . . . . . . . . . . 13 Mounting HMS Tags to Metal . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Terminal Screws. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.1.1 Power Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.2.1 RS422/RS485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.2.2 RS232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 LED Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 RS232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 RS232 Serial Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 RS485/MUX32 Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.4.1 Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.4.2 Terminators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 DIP Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.5.1 Switches S1-1 through S1-5 . . . . . . . . . . . . . . . . . . . . . 23 4.5.2 Switch S1-6 Conditional . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.5.3 Switch S1-7- RS232 or RS485 Selection . . . . . . . . . . . . 24 4.5.4 Switch S1-8 - RS485 Bus Baud Rate . . . . . . . . . . . . . . 25 4.5.5 . . . . . . Switch S1-9 - 7 Second <Ctrl> D start up delay. 25 4.5.6 Switch S1-10 - Reserved for Future Use . . . . . . . . . . . . 25 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Configuration Menu Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.1.1 Data Size Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.1.2 MUX32 Command Format . . . . . . . . . . . . . . . . . . . . . . . 32
4.5
Table of Contents 6.2 6.1.3 Command Timeout Values . . . . . . . . . . . . . . . . . . . . . . 32 Basic Command Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.2.1 Command 0 (00 Hex): Idle . . . . . . . . . . . . . . . . . . . . . . 33 6.2.2 Command 1 (01 Hex): Non-contiguous Read . . . . . . . . 33 6.2.3 Command 2 (02 Hex): Non-contiguous Write . . . . . . . . 34 6.2.4 Command 3 (03 Hex): Configure Non-contiguous Addresses 35 6.2.5 Command 4 (04 Hex): Fill Tag . . . . . . . . . . . . . . . . . . . 37 6.2.6 Command 5 (05 Hex): Block Read . . . . . . . . . . . . . . . . 37 6.2.7 Command 6 (06 Hex): Block Write . . . . . . . . . . . . . . . . 39 6.2.8 Command 7 (07H): Read Tag ID Number . . . . . . . . . . . 40 6.2.9 Command 8 (08 Hex): Tag Search . . . . . . . . . . . . . . . . 40 6.2.10 Command A (0A Hex): Change RS232 Baud Rate . . . . 41 6.2.11 Command B (0B Hex): RF Port Protected Block Write . 42 6.2.12 Command C (0C Hex): Initiate/Cancel Infinite Block Read 43 Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Electrical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication with Host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RF Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mechanical Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 47 47 47 47
ii
1 Getting Started
1.1 Introduction
Escort Memory Systems' passive read/write system is a complete family of field-proven read/write Radio Frequency Identification products. The system consists of reader/writers, antennas and controllers or bus interfaces, RF tags, and ancillary equipment. Tags can be attached to a product or its carrier and act as an electronic identifier, job sheet, portable database, or manifest. Tags are read and updated via an Escort Memory Systems Reader/Writer through any nonconductive material while moving or standing still. The passive design of the HMS Read/Write system uses the RF field from the antenna to power the tag, eliminating the need for tag batteries. The HMS passive read/write system is designed to provide cost effective RFID data collection and control solutions to less demanding automation and material handling applications. The HMS827 Series Reader/Writer uses a standard limit switch type enclosure to house the controller board. The HMS827 has an integrated antenna with vertical and horizontal read orientations. The HMS827-03 features an 18 mm tubular remote antenna at the end of a 1 meter cable. The HMS827-05 features a 30 mm tubular remote antenna at the end of a 1 meter cable. The HMS827-06 has a rectangular, 30 x 40 mm remote antenna at the end of a 1 meter cable. The HMS system uses the internationally recognized ISM frequency of 13.56 MHz to both power the tag, and to establish a radio link to transfer the information. The HMS827 Reader/ Writer is a stand alone unit that communicates to the host over an RS232 point-to-point or RS485/MUX32 multidrop bus interface. The HMS standard program supports the well established ABx standard protocol and includes all the command functions for efficient serial and RFID communications. The HMS-Series passive tags provide 736 bytes of re-programmable memory, and are specifically designed to work with the HMS800 Series Reader/Writers.
Getting Started
1.2
1.3
2 Mechanical Specifications
2.1 Dimensions
Figure 2-1 shows the dimensions and mounting hole locations for the HMS827 Reader/Writer.
Mechanical Specifications
Figure 2-2 shows the overall dimensions of the HMS827-03 and HMS827-05 Reader/Writer with tubular remote antennas.
Mechanical Specifications
Figure 2-3 shows the overall dimensions of the HMS827-06 Reader/ Writer with remote antenna
Mechanical Specifications
Figure 2-4 shows the mechanical dimensions for the HMS827-04. The Controller body dimensions and mounting holes are the same as shown for the other models.
Mechanical Specifications
2.2
Figure 2-5. HMS827, -03, -06 reading range Table 2-1: HMS827, -03, -06 to tag ranges
Guaranteed Range (X, inches/mm) Model HMS108 HMS112 HMS125 Vert. .35/9 .55/14 .94/24 Horiz. .31/8 .43/11 .79/20 .79/20 .28/7 .39/10 .63/16 .63/16 .39/10 .47/12 .87/22 .87/22 N/A N/A Vert. .43/11 .67/17 Typical Range (Y, inches/mm) Horiz. .39/10 .55/14 .35/9 .47/12 .79/20 .79/20 .47/12 .59/15 1.06/27 1.06/27 N/A N/A
Mechanical Specifications
Figure 2-6. HMS827-04 antenna range Table 2-3: HMS827-04 to tag ranges
inches/mm Typical Range Guaranteed Range Field Length (Y) Field Width (X) HMS125 (HT) .71/18 .55/14 11.50/292 3.14/80 HMS150 (HT) 1.57/40 1.26/32 11.50/292 3.14/80
Mechanical Specifications
Figure 2-7 shows the preferred orientation of the tag to the reader/ writer. Orientation for the HMS827-04 antenna is the same in relation to the reading surface of the -04 antenna.
Figure 2-7. HMS827 to Tag orientation Figure 2-8 shows the dimensions and mounting holes for the HMS tags. For information on tag mounting spacers, see section 2.4 Mounting the HMS827 on page 2-12.
inches mm
2.3
Mechanical Specifications
possible damage due to electrostatic discharge (ESD). Disconnect all power from the unit and take proper grounding precautions to eliminate potential ESD. Begin by unfastening the four captive screws holding the read head to the controller block (see Figure 2-9).
10
Mechanical Specifications
Without disconnecting the cable, gently invert the read head to expose the jumpers on the bottom interior of the read head. Refer to Figure 2-10 for the correct jumper position for vertical operation.
Figure 2-10. Antenna orientation jumpers NOTE: Do not disturb the trim pot settings. They are set at the factory to provide optimum performance. After you have changed the jumper position, place the read head on the control block and fasten the four retaining screws.
11
Mechanical Specifications
2.4
2.4.1 Guidelines
Isolate the reader/writer and antenna from electromagnetic radiation. Avoid surrounding reader/writer and remote antenna with metal. Maintain at least 6 inches minimum spacing between adjacent reader/writers or antennas. Stay within the guaranteed range for the tag to be used. Conform with EIA RS232 and RS485 standards. Use a non-ferrous spacer when mounting tags to metal.
12
Mechanical Specifications
2.5
13
Mechanical Specifications
2.6
Figure 2-13. Mounting HMS tags with a spacer Table 2-4: Tag spacer kits
Tag HMS125 HMS150 X 10mm 15mm Thickness Material QTY 8mm 10mm 8mm 10mm Nylon Nylon Teflon Teflon 20 20 10 10 Screw Torque Part Number 00-1116 00-1117 00-1118 00-1119
M3 Flat head 5 in.lbf M3 Flat head 6 in. lbf M3 Flat head 5 in.lbf M3 Flat head 6 in. lbf
14
NOTES: Signal names referenced to host com port. Use shielded cable only. Connect shield drain at one end only, preferably at the host or power supply end. Recommended cable for RS485 is belden 3107A or 3108A or compatible. Recommended cable for RS232 is belden 9939 or 9941 or compatible. RS485 requires 120 ohm termination resistors (refer to page 20).
15
NOTE: To fully comply with FCC regulations Part 2, you should attach a ferrite clamp (such a Fair-Rite P/N 0443167251) around the power and communication cables as close to the cord grip as possible CAUTION:Do not bundle communications wiring with high current power lines. This will cause communications errors.
3.2
Wiring
To connect your cable to the HMS827 Interface Block: 1. Remove the head with attached antenna by loosening the four captive screws. 2. Loosen the two captive screws in the interface block and separate the two parts as shown in Figure 3-2. 3. Loosen the cord grip, feed the cable through the cord grip and attach the wires to the terminal screws shown in Figure 3-1. Tighten the cord grip to seal the cable. Note that you must use a cable of sufficient diameter to properly seal with the cord grip. The recommended minimum O.D. is .125 inches (3.2 mm). A dual cable grip is also supplied for linking unit in a multidrop application.
16
3.2.1 RS422/RS485
Recommended cable for RS485 and RS422 is Belden 3082A (thick) or 3084A (thin). Information on Belden cables can be found at their Web site: www.belden.com.
3.2.2 RS232
Recommended cable for RS232 is Belden 9941.
17
3.3
LED Indicator
The HMS827 has one bi-color LED indicating power on and activity on the serial port. Table 3-2 shows the LED activity and meaning. Table 3-2: HMS827 LED indicator
LED Action Slow RED flash HMS81x state Power-up or reset Description The LED will flash RED slowly for four seconds following power-up or reset during which the user may send a <control D> to enter configuration mode. If the HMS827 receives a <control D> during the four second period, the LED will flash at a faster rate until configuration mode has been exited by sending a "G" or resetting the unit. A steady GREEN LED indicates that the four second period has elapsed without entering the configuration mode or that configuration has been completed and the unit is ready for operation. While the reader/writer is occupied with a command the LED will switch to RED. The LED indicator will alternate between GREEN and RED during normal operation. Both LEDs will be on until the reader/writer can either complete a Block Read or until it receives a cancel command.
Configuration mode
Steady GREEN
Idle
Executing Command
18
4 Serial Communications
4.1 Overview
The HMS827 offers either RS232 or RS485 communications. Normally, the RS232 interface is used to program and test the device but can also be used as a point-to-point serial connection. The RS485 option provides the potential for a MUX32 network of up to 32 reader/ writers linked through a bus master such as the MM80 MicroMux. Network parameters, such as bus addresses and baud rate, are set by DIP switches located inside the reader/writer or by the configuration program accessed over the RS232 port. CAUTION:Do not bundle communications wiring with high current power lines. This will cause communications errors.
4.2
RS232 Interface
The HMS827 is set by the factory to initially communicate via RS485 however, during the first four seconds after power-on the device will respond to commands from the RS232 lines. This allows you to enter the configuration program by entering a <control D> after power-on. If no commands are received by the reader/writer during the four seconds, the reader/writer will continue according to the position of DIP switch 7 on S1. For more information on the Configuration Menu refer to Chapter 5. To communicate with the device via RS232, set the serial communications parameters of the host as follows: Baud rate Parity Data bits Stop bit 9600 none 8 1
NOTE: The reader/writer automatically resets to 9600, N, 8,1 for seven seconds whenever the power is cycled, after which it will apply the setting made in the configuration menu.
4.3
19
Serial Communications
The signals and electrical loads from the RS232 TX and RS232 RX pins should conform to the electrical specifications of EIA Standard RS232. The maximum cable length specified under this standard is 50 feet. High quality shielded cable should be used for these connections. Table 4-1 gives the connections required to establish RS232 communications between the reader/writer and an RS232 host. Table 4-1: Serial/power connector pinouts
Terminal 1 2 3 4 5 Function RS485+ RS485-/RS232 RX 24 VDC+/- 10% RS232 TX Power and Signal Ground
4.4
20
Serial Communications
4.4.1 Grounding
To avoid damage and loss of communications to devices due to voltage fluctuations between grounding points, make sure that there is only one grounding point per RS485 network.
4.4.2 Terminators
The RS485 bus must be terminated with resistors that match the characteristic impedance of the cable. If for example, the bus cable has a nominal impedance of 120 ohm, then a 120 ohm resistor should be used at each end of the bus between the RS485+ and RS485lines. The resistors will eliminate positive and negative overshoot caused by reflections at the end of the bus. Polling and data sent over the network will also be output on the RS232 lines since the transmit lines for the RS232 and RS485 are tied together.
4.5
DIP Switches
There are ten DIP switches inside the HMS827 enclosure. They control the bus address of the device, the speed of the bus communications, whether RS232 or RS485 communications are active and if the HMS827 should wait 7 seconds for <Ctrl> D or begin running immediately at power up. To manually set these parameters you must open the reader/writer to expose the DIP switches.
21
Serial Communications
To expose the DIP switches, disconnect the reader/writer from power and remove the two captive screws holding the cover to connector backplate. The DIP switches are located at the bottom of the device as shown in Figure 4-1.
Figure 4-1. DIP Switch location All DIP switches are set to the ON position at the factory. While all switches are in the ON position, changes made through the configuration program will be effective. Changing any of the switches to the OFF position will override settings made through the configuration program for those variables. RS232 variables not set by the DIP switches can still be modified by the configuration program. See Chapter 5, page 26, for more information on the configuration program and serial variables. Figure 4-2 shows the DIP switches and the OFF/ON positions. The HMS827 is shipped with all the switches set to the ON position.
22
Serial Communications
Table 4-2 describes the function of each switch. Table 4-2: DIP switch functions
Switch Number 1 2 3 4 5 6 7
Description Multidrop Address, bit 0 Multidrop Address, bit 1 Multidrop Address, bit 2 Multidrop Address, bit 3 Multidrop Address, bit 4 Conditional - See switch description Select serial communications ON RS485/MUX32 communications OFF RS232 Communications Select MUX32 bus speed ON High (19200 or 346K) OFF Low (9600) ON - Wait 7 seconds for <Ctrl> D when reset or at power up. OFF- Do not wait for <Ctrl> D, pwr up straight into operation Resevered for future use. Must be in ON position
9 10
All switches ON = Options configured through the configuration menu. Any switch OFF = Options set by switch settings.
23
Serial Communications MUX32 Address Switch SW1 ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON SW2 ON ON SW3 ON ON ON ON SW4 ON SW5 ON ON ON ON ON ON ON ON ON MUX32 Addr.7 MUX32 Addr.8 MUX32 Addr.9 MUX32 Addr.10 MUX32 Addr.11 MUX32 Addr.12 MUX32 Addr.13 MUX32 Addr.14 MUX32 Addr.15 MUX32 Addr.16 MUX32 Addr.17 MUX32 Addr.18 MUX32 Addr.19 MUX32 Addr.20 MUX32 Addr.21 MUX32 Addr.22 MUX32 Addr.23 MUX32 Addr.24 MUX32 Addr.25 MUX32 Addr.26 MUX32 Addr.27 MUX32 Addr.28 MUX32 Addr.29 MUX32 Addr.30 MUX32 Addr.31 Setting
24
Serial Communications
Switch Settings Examples The following are some example DIP switch settings and their effect. Remember that switch 1 is the LSB and switch 5 is the MSB in regards to the MUX32 address setting
Switch Settings Description The reader/writer is set to communicate in RS232 mode. RS232 serial parameters are then set via the configuration program.
The reader/writer is set to communicate over the RS485/MUX32 bus at the higher baud rate. It has been set to be recognized as slave number 26.
The reader/writer is set to communicate over the RS485/MUX32 bus at the lower baud rate. It has been set to be recognized as slave number 27.
25
Serial Communications
26
5 Configuration Menu
5.1 Introduction
The HMS827 contains a configuration program in EEPROM memory for defining the RS485 bus parameters and RS232 data format and protocol. After the reader/writer has been powered, it pauses for seven seconds in RS232 mode waiting for the command to enter the configuration program. The RS232 communications parameters during this seven second period will always be: 9600 baud No Parity 8 data bits 1 stop bit
Using a terminal emulation program to send a <control D> within this four second period will initialize the Configuration Menu. If no <control D> is received, the HMS827 will go "online" with the previously user defined settings and/or those defined by the switch settings. The Configuration Menu will display the current state of the operating parameters. To change a parameter, type the character in the associated word that is capitalized. For example to change the baud rate, type "b" to scroll through the possible values. Typing <control F> will reset the reader/writer and restore the default values. Typing a <control G> will launch the HMS827 program with the new user defined settings. If RS232 parameters have been changed in the configuration menu, the terminal emulation will need to match the new settings of the HMS827. NOTE: Switches 1 through 8 must be set in the ON position. If any of the DIP switches are set to the OFF position, changes made in the software configuration menu will not be recognized. Using the EC Program The terminal emulation program, EC.EXE, is provided for communication to the HMS827. Unlike many other terminal emulation programs, EC.EXE provides for binary data transfer in hex-based format which is required if commands are to be sent to the HMS827 via the terminal emulation program. Table 5-1 shows the Configuration Menu format and indicates the default values when appropriate. Table 5-1: Configuration menu
HMS827 nOde Default 0 Available Parameters (* = defaults) 0* -31
27
Configuration Menu
5.2
28
Configuration Menu
Stop bits* Typing "S" will toggle the stop bits between 1 and 2. floW control* Typing "W" will toggle the flow control between none and XON/XOFF. Banner Typing "B" will toggle the display of the power-on message on or off. The default setting is to NOT display the power-on message. If the power on message is turned off the reader/writer may seem to be not functioning. End protected This option allows you to define a range of tag addresses, starting at byte 0, that can only be written to using the "Protected Block Write" command. To define a protected field, enter "E" for each byte of the protected region. The menu will update its display with the new ending address after each "E." Disable protected If you have previously defined a protected tag field this option will appear in the configuration menu. By typing "D" you will disable the protected field. deFaults Typing "F will restore the default settings Go online Typing "G" will start the resident program with the current parameter settings.
*These parameters are not affected by any DIP switch settings and can only be modified through the configuration program.
29
Configuration Menu
30
6 RFID Interface
6.1 Introduction
The HMS827 features a standard program to perform the reading/ writing transfer of data between the tag and the host. The standard program is based on the established ABx protocol. Table 6-1 lists the commands available in the standard program. Table 6-1: Command set listing
Command Hex Equivalent 00 Hex 01 Hex 02 Hex 03 Hex 04 Hex 05 Hex 06 Hex 08 Hex 0A Hex 0B Hex 0C Hex Command Name Idle (do nothing) Non-contiguous Read Non-contiguous Write Configure Non-contiguous addresses Fill Tag Block Read Block Write Tag Search Change Baud Rate RF Port Protected Block write Initiate/Cancel Infinite Block Read
The Reader/Writer stores incoming bytes in a buffer which it scans for a start character (AA Hex). When a start character is found, it will check for the terminating character (FFFF Hex). Having identified a potentially valid command string, the standard program will check the format of the data and either perform the requested function or generate an error message.
31
RFID Interface
32
RFID Interface
Read applications requiring a tag travel rate of 500 feet per second have been successfully implemented; however, many factors need to be considered for high speed applications such as; address range, command type, tag and antenna models, and the installation environment. Please contact Escort Memory Systems' application support team for help with your application.
6.2
No response
33
RFID Interface
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 non-contiguous read command issued after the addresses are preconfigured using the example presented with the configuration command (Command 3). It directs the antenna to read and return the data at addresses 0005H, 0100H, 0101H, 0150H, and 02ABH of the tag memory. A timeout of 2 seconds (070DH = 2000 x 1ms increments) is set for the completion of the read.
Command from the Host MSB LSB Remarks AAH 07H FFH 01H D0H FFH Perform Command 1 Timeout value Message Terminator Response from the HMS827 MSB LSB Remarks AAH 00H 00H 00H 00H 00H FFH 01H 10H 11H AAH BAH 32H FFH Command Echo Data read at Address 0005H Data read at Address 0100H Data read at Address 0101H Data read at Address 0150H Data read at Address 02ABH Message Terminator
34
RFID Interface
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 previously configured, an error response will be received. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. If the operation is not completed within the time permitted by the timeout value, the command will return an error. When the timeout is 00H, the Reader/Writer will attempt to complete the command indefinitely. EXAMPLE The following example illustrates a non-contiguous write command issued after the addresses are preconfigured using the example presented with the configuration command (Command 3). It directs the antenna to write 44H to address 002AH and 67H to address 0102H.A timeout of 2 seconds (70D0H) is set for the completion of the write.
Command from the Host MSB LSB Remarks AAH 07H 00H 00H FFH 02H D0H 44H 67H FFH Perform Command 2 Timeout value Write 44H to Address 002AH Write 67H to Address 0102H Message Terminator Response from the HMS827 MSB LSB Remarks AAH FFH 02H FFH Command Echo Message Terminator
35
RFID Interface
After the configure command is executed, any sequence of noncontiguous read or write commands can subsequently be executed. When using the Non-contiguous Write command, data must be presented in the same sequence as configured. Likewise, the read command returns data in the same sequence as configured. The Configure Non-Contiguous R/W Addresses Command is limited to 16 read and 16 write block definitions, for a total of 32 definitions. No other commands can be processed between a configure command and a read or a write command. Multiple reads and writes can follow a configuration command and multiple configuration commands (followed by read/write commands), can be used to complete the desired operation. Note: A tag address (start address + length) above 735 will wrap to an address starting at 0. Reading or writing to address 740 will read or write to address 4. Tag address 736 is address 0. EXAMPLE Configures the Non-contiguous Read command for the antenna to read at addresses 0005H, 0100H, 0101H, 0150H and 02ABH, and the Non-contiguous Write command to write at addresses 002AH and 0102H. A timeout of 2 seconds (07D0H = 2000 x 1 msec increments) is set for the completion of the configuration.
Command from the Host MSB LSB Remarks AAH 07H 00H 01H 01H 01H 02H FFH 00H 01H FFH FFH 03H D0H 05H 00H 01H 50H ABH F0H 2AH 02H F1H FFH Perform Command 3 Timeout value Read Address 1 = 0005H Read Address 2 = 0100H Read Address 2 = 0101H Read Address 2 = 0150H Read Address 2 = 02ABH Read Address Terminator Write Address 1 = 002AH Read Address 2 = 0102H Write Address Terminator Message Terminator Response from the HMS827 MSB LSB Remarks AAH FFH 03H FFH Command Echo Message Terminator
36
RFID Interface
37
RFID Interface
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 100 bytes of data transferred to the host with one command, with an additional two bytes used to transmit the command echo. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. CAUTION:Setting the timeout to 0 for this command will cause the HMS827 to remain in read mode indefinitely or until the HMS827 is reset. To initiate a block read with an infinite timeout, use Command C, Initiate/Cancel Infinite Block Read as described on page 43. Unlike the non-contiguous 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. Note: A tag address (start address + length) above 735 will wrap to an address starting at 0. Reading or writing to address 740 will read or write to address 4. Tag address 736 is address 0.
EXAMPLE Reads 8 bytes of data from the tag starting at address 0101H. A timeout of 2 seconds (07D0H = 2000 x 1 msec increments) is set for the completion of the Block Read.
Command from the Host MSB LSB Remarks AAH 01H 00H 07H FFH 05H 01H 08H D0H FFH Perform Command 5 Start Address = 00101HH Read Block Length = 8 bytes (0008H) Timeout value Message Terminator Response from the HMS827 MSB LSB Remarks AAH 00H 00H 00H 00H 00H 00H 00H 05H 52H 46H 49H 44H 20H 54H 61H Command Echo Read Data 1 = 52H Read Data 2 = 46H Read Data 3 = 49H Read Data 4 = 44H Read Data 5 = 20H Read Data 6 = 54H Read Data 7 = 61H
38
RFID Interface Command from the Host MSB LSB Remarks Response from the HMS827 MSB LSB Remarks 00H FFH 67H FFH Read Data 8 = 67H Message Terminator
39
RFID Interface Command from the Host MSB LSB Remarks 00H 00H 00H FFH 46H 49H 44H FFH Write Data 2 = 46H Write Data 3 = 49H Write Data 4 = 44H Message Terminator Response from the HMS827 MSB LSB Remarks
40
RFID Interface
DISCUSSION This command will activate the reader/write to "look" for a tag in the RF field. If the reader/writer finds a tag it will return a command echo to the host. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. If no tag is present it will return an error message. See Section 6.3 for information on the error messages. EXAMPLE Checks for an RFID tag in the RF field. A timeout of 2 seconds (07D0H = 2000 x 1 msec increments) is set for the completion of the Tag Search.
Command from the Host MSB LSB Remarks AAH 07H FFH 08H D0H FFH Perform Command 8 Timeout value Message Terminator Response from the HMS827 MSB LSB Remarks AAH FFH 08H FFH Command Echo Message Terminator
41
RFID Interface Change Baud Rate Variables MSB LSB Remarks 00H 01H 02H 04H C0H 80H 40H 80H 19200 38400 57600 115200
42
RFID Interface
Writes 4 bytes of data to the tag starting at address 0004H. A timeout of 2 seconds (07D0H = 2000 x 1 msec increments) is set for the completion of the Block Write.
Command from the Host MSB LSB Remarks AAH 00H 00H 07H 00H 00H 00H 00H FFH 0BH 32H 04H D0H 52H 46H 49H 44H FFH Perform Command B Start Address = 0032H Write Length= 4 bytes (0004H) Timeout value Write Data 1 = 52H Write Data 2 = 46H Write Data 3 = 49H Write Data 4 = 44H Message Terminator
Response from the HMS827 MSB LSB Remarks AAH FFH 0BH FFH Command Echo Message Terminator
43
RFID Interface
The HMS827 will indicate it is in Infinite Block Read condition by lighting both the red and the green LEDs simultaneously. The data read from the tag is returned in the LSB of the register, and the MSB is always 00H. Note: A tag address (start address + length) above 735 will wrap to an address starting at 0. Reading or writing to address 740 will read or write to address 4. Tag address 736 is address 0. Length Limitation The HMS827 is limited to 100 byte transactions over RS232 communications and 55 bytes over MUX32. If you specify a read length greater than these limits, the HMS827 will stop responding until it receives a new Command C with a read length of 0. If you are using the HMS827 over a MUX32 bus, limit the read length to 55 bytes (37H). If you are using the HMS827 over RS232, limit the read length to 100 bytes (64H). EXAMPLE This example will wait until a tag is in range and then reads 10 bytes of data from the tag starting at address 012CH.
Command from the Host MSB LSB Remarks AAH 01H 00H FFH 0CH 2CH 0AH FFH Perform Command C Start Address = 012CH Read Length = 10 bytes Message Terminator Response from the HMS827 MSB LSB Remarks AAH FFH 0CH FFH Command Echo Message Terminator
When a tag comes into range of the HMS827, it will perform the read and return the data as follows.
Response from the HMS827 MSB LSB Remarks AAH 00H 00H 00H 00H 0CH 52H 46H 49H 44H Command Echo Read Data 1 = 52H Read Data 2 = 46H Read Data 3 = 49H Read Data 4 = 44H HMS827 Series Passive Reader/Writer
44
RFID Interface Response from the HMS827 MSB LSB Remarks 00H 00H 00H 00H 00H 00H FFH 50H 51H 53H 54H 55H 56H FFH Read Data 5 = 50H Read Data 6 = 51H Read Data 7 = 53H Read Data 8 = 54H Read Data 9 = 55H Read Data 10 = 56H Message Terminator
6.3
Error Codes
The Standard Program will return an error if it encounters a fault during operation. Error codes are returned in the LSB of the second register passed to the PLC. Table 6-2 lists these hex error codes and their meanings. Table 6-2: Error codes
Error Code 01H 02H 03H 04H 05H 06H 08H 19H 20H 21H Description Non-contiguous Read has failed Non-contiguous Write has failed Non-contiguous Read/Write Configuration has failed Fill Operation has failed Block Read has failed Block Write has failed Search Tag Operation failed Protected Address violation Non-contiguous Read/Write attempted without PreConfiguration Input Command does not match pre-defined format
45
RFID Interface
46
A.2
A.3
RF Interface
Data Transfer Rate: 1,000 bytes per second Error Detection: CRC and parity check
A.4
Mechanical Specifications
Dimensions (W x H x D): 4.68 x 1.79 x 1.57 in. (119 x 45.4 x 40 mm) LED Indicator: Power/Communications
A.5
Environment
Operating Temperature: -4 to +120 F (-20 to +49 C) Storage Temperature: - 40 to +185 F (-40 to +85 C) Humidity: 0 to 95% non-condensing Protection Class: NEMA 4 (IP65)
47
Technical Specifications
48
B.2
Accessories
Model HMS108 HMS112 HMS125 HMS150 HMS125HT HMS150HT Description Passive read/write tag, 8 mm diameter, 736 bytes memory. Passive read/write tag, 12 mm diameter, 736 bytes memory. Passive read/write tag, 25 mm diameter, 736 bytes memory. Passive read/write tag, 50 mm diameter, 736 bytes memory. Passive read/write tag, 25 mm diameter, survives 240oC, 736 bytes memory Passive read/write tag, 50 mm diameter, survives 240oC, 736 bytes memory
49
50
Decimal 000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030
Hex 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E
Character NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC FS GS RS
Decimal 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061
Hex 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D
51
Decimal 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094
Hex 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E
Character > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^
Decimal 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Hex 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F
Character _ a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL
52