Anda di halaman 1dari 56

OPERATORS MANUAL

HMS827 Series Passive Reader/Writer

Manual Revision 01, 10-01 Publication # 17-1298

Escort Memory Systems Warranty


Escort Memory Systems warrants that all products of its own manufacture conform to Escort Memory Systems specifications and are free from defects in material and workmanship when used under normal operating conditions and within the service conditions for which they were furnished. The obligation of Escort Memory Systems hereunder shall expire one (1) year after delivery, unless otherwise specified, and is limited to repairing, or at its option, replacing without charge, any such product which in Escort Memory System's sole opinion proves to be defective within the scope of this Warranty. In the event Escort Memory Systems is not able to repair or replace defective products or components within a reasonable time after receipt thereof, Buyers shall be credited for their value at the original purchase price. Escort Memory Systems must be notified in writing of the defect or nonconformity within the warranty period and the affected product returned to Escort Memory Systems factory or to an authorized service center within thirty (30) days after discovery of such defect or nonconformity. Shipment shall not be made without prior authorization by Escort Memory Systems. This is Escort Memory Systems' sole warranty with respect to the products delivered hereunder. No statement, representation, agreement or understanding oral or written, made by an agent, distributor, representative, or employee of Escort Memory Systems which is not contained in this warranty, will be binding upon Escort Memory Systems, unless made in writing and executed by an authorized Escort Memory Systems employee. Escort Memory Systems makes no other warranty of any kind whatsoever, expressed or implied, and all implied warranties of merchantability and fitness for a particular use which exceed the aforestated obligation are hereby disclaimed by Escort Memory Systems and excluded from this agreement. Under no circumstances shall Escort Memory Systems be liable to Buyer, in contract or in tort, for any special, indirect, incidental, or consequential damages, expenses, losses or delay however caused. Equipment or parts which have been subject to abuse, misuse, accident, alteration, neglect, unauthorized repair or installation are not covered by warranty. Escort Memory Systems shall make the final determination as to the existence and cause of any alleged defect. No liability is assumed for expendable items such as lamps and fuses. No warranty is made with respect to custom equipment or products produced to Buyer's specifications except as specifically stated in writing by Escort Memory Systems in the contract for such custom equipment. This warranty is the only warranty made by Escort Memory Systems with respect to the goods delivered hereunder, and may be modified or amended only by a written instrument signed by a duly authorized officer of Escort Memory Systems and accepted by the Buyer. Extended warranties of up to four years are available for purchase for most EMS products. Contact EMS or your distributor for more information. This document contains proprietary information which is protected by copyright. All rights are reserved. The information in this manual has been carefully checked and is believed to be accurate; however, no responsibility is assumed for possible inaccuracies or omissions. Specifications are subject to change without notice.

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

Chapter 2 Mechanical Specifications

2.4 2.5 2.6 3.1 3.2

Chapter 3 Power and Electrical Interface

3.3 4.1 4.2 4.3 4.4

Chapter 4 Serial Communications

4.5

Chapter 5 Configuration Menu


5.1 5.2 6.1

Chapter 6 RFID Interface

HMS827 Series Passive Reader/Writer

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

6.3 A.1 A.2 A.3 A.4 A.5 B.1 B.2

Appendix A Technical Specifications

Appendix B Models & Accessories


Available Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Appendix C ASCII Chart

ii

HMS827 Series Passive Reader/Writer

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.

HMS827 Series Passive Reader/Writer

Getting Started

1.2

Unpacking and Inspection


Unpack the Reader/Writer and retain the original shipping carton and packing material in case any item has to be returned to Escort Memory Systems. Inspect each item carefully for evidence of damage. If any item appears to be damaged, notify your Escort Memory Systems representative immediately. Check that all of the following items are present: HMS827, HMS827-03, HMS827-04, HMS827-05 or HMS827-06 Passive Reader/Writer Operator's Manual Demonstration Program Diskette (DOS compatible)

1.3

Organization of this Manual


This manual presents in Chapters 2, 3, and 4 the essential information required for installing, connecting and powering the HMS827 Series. The following chapters explain the configuration and operation of the HMS827 Series Reader/Writer.

HMS827 Series Passive Reader/Writer

2 Mechanical Specifications
2.1 Dimensions
Figure 2-1 shows the dimensions and mounting hole locations for the HMS827 Reader/Writer.

Figure 2-1. HMS827 dimensions and mounting hole locations

HMS827 Series Passive Reader/Writer

Mechanical Specifications

Figure 2-2 shows the overall dimensions of the HMS827-03 and HMS827-05 Reader/Writer with tubular remote antennas.

Figure 2-2. HMS827-05 and HMS827-03 dimensions

HMS827 Series Passive Reader/Writer

Mechanical Specifications

Figure 2-3 shows the overall dimensions of the HMS827-06 Reader/ Writer with remote antenna

Figure 2-3. HMS827-06 dimensions

HMS827 Series Passive Reader/Writer

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.

Figure 2-4. HMS-04 antenna dimensions

HMS827 Series Passive Reader/Writer

Mechanical Specifications

2.2

RF Range and Orientation


The following information should be considered when positioning the antenna of the reader/writer. The path of the tags through the RF field should be within the guaranteed reading/writing range unless sufficient site testing has been performed to assure consistent RF communications.

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

1.18/30 .98/25 1.18/30 .98/25

HMS125HT .94/24 HMS150

1.50/38 1.26/32 N/A

1.89/48 1.57/40 N/A 1.89/48 1.57/40 N/A

HMS150HT 1.50/38 1.26/32 N/A

HMS827 Series Passive Reader/Writer

Mechanical Specifications

Table 2-2: HMS827-05 to tag ranges


inches/mm Typical Range Guaranteed Range HMS108 .39/10 .312/8 HMS108 LT L002 0.35/9 0.28/7.2 HMS112 0.55/14 0.44/11.2 HMS125 (HT) 1.06/27 .848/21.6 HMS150 (HT) 1.57/40 1.416/36

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

HMS827 Series Passive Reader/Writer

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

Figure 2-8. HMS Tag dimensions and mounting holes

2.3

HMS827 Antenna Direction


The HMS827 Reader/Writer with integrated read head, has two possible antenna orientations; emitting from the face (horizontal) or emitting from the top (vertical). Your unit is set by the factory to be emitting from the horizontal location. To change the read head to vertical emitting you must remove the head and change a jumper position.

2.3.1 Changing the HMS827 read head orientation


CAUTION:The following procedure exposes sensitive components to
HMS827 Series Passive Reader/Writer

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).

Figure 2-9. Removing the read head

10

HMS827 Series Passive Reader/Writer

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.

HMS827 Series Passive Reader/Writer

11

Mechanical Specifications

2.3.2 Remote Antennas


The remote antenna models of the HMS827 do not change orientation. However, there is a jumper in the read head that should not be removed. If the jumper is not present or has been moved, reinstall the jumper as shown in Figure 2-11.

Figure 2-11. Re-installing the jumper for remote antenna models

2.4

Mounting the HMS827


The range of the HMS Reader/Writers is affected by electromagnetic radiation and metal. Mount the reader/writer to minimize the impact of these factors. The RF field of the reader/writer can also cause errors when reader/writers are spaced too closely together. Do not position adjacent antennas closer than 6 inches center to center. The remote antennas for the HMS827-03, HMS827-04, HMS827-05, and HMS827-06 have a cable length of 1 meter. The tubular antenna should be mounted through non-ferrous materials. Surrounding the antenna with metal will greatly reduce the reading range of the antenna. If mounted in metal, ensure that the face of the antenna extends at least 1 inch (25 mm) beyond any metal surface.

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

HMS827 Series Passive Reader/Writer

Mechanical Specifications

2.5

Conveyor Mounting the HMS827-04


Figure 2-12 shows important details for mounting the remote -04 antenna.

Figure 2-12. HMS827-04 conveyor mounting

HMS827 Series Passive Reader/Writer

13

Mechanical Specifications

2.6

Mounting HMS Tags to Metal


Mounting HMS tags to metal can greatly impact the effective range of the tags. To maintain the best possible range, the tags should be mounted away from the metal surface using a non-ferrous spacer. Mounting kits are available from Escort Memory System as shown in Figure 2-13 and Table 2-4 below.

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

HMS125HT 10mm HMS150HT 15mm

14

HMS827 Series Passive Reader/Writer

3 Power and Electrical Interface


3.1 Terminal Screws
Power and serial communications connections for the HMS827 are made at terminals screws located on the interface block of the HMS827 enclosure. Your cable should be wired to these terminals according to the pinouts given in Table 3-1 and shown in Figure 3-1 Table 3-1: HMS827 terminal connections
HMS827 Terminal 1 2 3 4 5 Description RS485+ RS485-/RS232 RX 18-30 VDC RS232 TX Signal Ground, VRS232 Host, DE9 N/C DE9 pin 3 N/C DE9 pin 2 DE9 pin 5 RS232 MUX32 Host, DB25 Master N/C DB25 pin 2 N/C DB25 pin 3 DB25 pin 7 RS485+ RS485V+ N/C Signal Ground, V-

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).

Figure 3-1. HMS827 terminal screws

HMS827 Series Passive Reader/Writer

15

Power and Electrical Interface

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.1.1 Power Requirements


The reader/writer operates at 18~30 VDC. A suitable power supply should deliver a minimum of 160 mA of current @ 24VDC (3.84W) to each unit.

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

HMS827 Series Passive Reader/Writer

Power and Electrical Interface

4. Re-assemble the enclosure and secure the screws.

Figure 3-2. HMS827 disassembly

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.

HMS827 Series Passive Reader/Writer

17

Power and Electrical Interface

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.

Fast RED flash

Configuration mode

Steady GREEN

Idle

Short RED flash

Executing Command

RED and GREEN Executing Infinite Block Read

18

HMS827 Series Passive Reader/Writer

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

RS232 Serial Connections


The connections for the RS232 interface are RS232 TX (data from the HMS827), RS232 RX (data to the HMS827), and Ground.

HMS827 Series Passive Reader/Writer

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

RS485/MUX32 Serial Interface


When using the RS485 bus and an Escort Memory Systems' MUX32 host or master, up to 32 HMS827s can be connected on a single bus. The RS485 bus uses the MUX32 protocol found in most Escort Memory Systems equipment. The bus can operate at two speeds determined by a DIP switch setting as described in Section 4.5. The bus address for each reader/writer is also set using DIP switch positions. To use a MicroMux master with your HMS827, you must download the "HMS.HEX" program located on the disk supplied with the MicoMux into the MicroMux memory. Follow the instructions in your MicroMux Operator's Manual to configure and use the MicroMux master. Escort Memory Systems interfaces with built-in MUX32 protocol have special HMS commands. Please refer to the interface documentation for more information. The signals and electrical loads on the RS485 pins, as well as the characteristics of the shielded twisted pair cable must conform to the electrical specification of EIA Standard RS485. The maximum recommended length of the RS485 connection is 4,000 feet. The length of drops from the bus must not exceed six feet. Use quality cable with adequate gauge for these connections.

20

HMS827 Series Passive Reader/Writer

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.

HMS827 Series Passive Reader/Writer

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.

Figure 4-2. DIP switch positions

22

HMS827 Series Passive Reader/Writer

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.

4.5.1 Switches S1-1 through S1-5


MUX32 Bus Address Selection Each slave on the multidrop bus must have a unique address. These switches determine the address of the device according to the binary value for the desired address 0-31. Table 4-3: MUX32 DIP switch Settings
MUX32 Address Switch SW1 ON ON ON ON HMS827 Series Passive Reader/Writer ON ON SW2 ON ON SW3 ON ON ON ON SW4 ON ON ON ON ON ON ON SW5 ON ON ON ON ON ON ON MUX32 Addr.0 MUX32 Addr.1 MUX32 Addr.2 MUX32 Addr.3 MUX32 Addr.4 MUX32 Addr.5 MUX32 Addr.6 Setting

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

4.5.2 Switch S1-6 Conditional


When the HMS827 configuration is set by the software configuration menu, S1-6 must be set to the ON position. When the HMS827 is set for high speed MUX32 mode AND is set to slave address 0, S1-6 must be set in the OFF position. All other configurations do not use S1-6 and it does not matter which position S1-6 is set to

4.5.3 Switch S1-7- RS232 or RS485 Selection


The setting of this switch will determine the serial interface used after the 4 second period of RS232 interface that follows power-on.

24

HMS827 Series Passive Reader/Writer

Serial Communications

4.5.4 Switch S1-8 - RS485 Bus Baud Rate


The bus can operate at either low rate of 9600, or one of two high rates, 19200 or 346K baud. The HMS827 and MicroMuxes support the high baud rates. If a Datalogic bar code MUX32 device is to be included in the bus, the baud rate must be set at the slower speed.

4.5.5 Switch S1-9 - 7 Second <Ctrl> D start up delay.


Switch 9 is examined during reset. If switch 9 is in the default ON position, then the HMS827 waits 7 seconds for a <Ctrl> D. If switch 9 is in the OFF position, then the configuration menu is not displayed and the HMS827 goes immediately into operating mode.

4.5.6 Switch S1-10 - Reserved for Future Use


This switch is reserved for future use and must be in the ON position for the HMS827 to function properly.

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.

HMS827 Series Passive Reader/Writer

25

Serial Communications

26

HMS827 Series Passive Reader/Writer

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

HMS827 Series Passive Reader/Writer

27

Configuration Menu

Table 5-1: Configuration menu


HMS827 Interface bus Rate Baudrate Parity Stop bit floW control bAnner End protected Disable protected Default RS232 9600 9600 N 1 none N none Available Parameters (* = defaults) RS232* or RS485 9600* or 346K 1200,2400, 4800, 9600*, 19200, 38400, 57600, 115200 Even, Odd or None* 1* or 2 none* or XON/XOFF Display the power on message, Yes or No* none* or length of protected field in number of bytes Type D to remove protected field. This option will appear only if you have previously defined a protected field. Restore default values Start application program Type a <control D> to get a - prompt for entering parameters.

deFaults Go online ^D for menu

5.2

Configuration Menu Options


nOde Typing "O" will scroll through the possible multidrop addresses, 0-31. Dip switches must be set to the ON position for the Configurations Program settings to take effect. Interface Typing "I" will toggle the serial interface between RS232 and RS485. bus Rate Typing "R" will toggle between the two bus speeds, 9600 and 346K. Baudrate* Typing "B" will scroll through the available baud rate values for the RS232 interface. The default is 9600. Parity* Typing "P" will scroll the parity choice for the RS232 interface of Even, Odd or None.

28

HMS827 Series Passive Reader/Writer

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.

HMS827 Series Passive Reader/Writer

29

Configuration Menu

30

HMS827 Series Passive Reader/Writer

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.

6.1.1 Data Size Limitations


The amount of data you can transfer with a single command is limited to 100 bytes. Since the HMS tag has 736 bytes of memory, you may need to issue several commands to complete a desired read or write. Due to communications overhead in the MUX32 protocol, the data size for reads is reduced from 100 bytes to no more than 60 bytes, and block writes are limited to no more than 55 bytes.

HMS827 Series Passive Reader/Writer

31

RFID Interface

6.1.2 MUX32 Command Format


The commands given in the following sections are shown as they would be formatted over RS232 communications. Commands sent over a MUX32 bus may have additional bytes containing the MUX32 command header (AA) and a MUX32 slave address. Please refer to your MUX32 master or host documentation for additional information on HMS commands.

6.1.3 Command Timeout Values


Most commands sent to the HMS Reader/Writer contain a timeout value field. This is the maximum number of milliseconds that a command will be attempted. If a command is not successfully completed within this time interval, a tag search error (08) will be returned. When a command is successfully completed, the appropriate command response will be returned to the host. This will happen in less time than the timeout period. Specifying a long timeout will not necessarily affect the time required to complete a command, but merely instructs the HMS827 how long to attempt the command before aborting. The timeout is executed only if the command can not be successfully executed. For example, when the tag is not currently within the RF field. Using a zero timeout value instructs the HMS827 not to timeout. Using a zero timeout value will put the HMS827 into a state that cannot be exited from unless the command is completed successfully. If the command can not be successfully completed, the unit must reset by cycling power. CAUTION:During write commands, the tag must remain in the field until either the command completes successfully, or the timeout period has expired. If a write command is initiated with a tag in the antenna's active field and then the tag leaves the field before the command has completed or times out, data may be lost or corrupted. Use the longest timeout value permitted by the application. For applications where the tag positioning may not be controlled and the tag movement cannot be limited to the antenna field, longer timeouts and retries should be utilized in the application program. This will ensure the highest success rates. If an application demands the tag to travel at high speeds and retries can not be utilized, it may be required to synchronize the tag travel speed with the command timeouts. Use of a presence sensors or other means may be required to ensure that the Reader/Writer cannot timeout while the tag is passing by the Reader/Writer.

32

HMS827 Series Passive Reader/Writer

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

Basic Command Descriptions


DESCRIPTION Sets the command byte in the buffer to 0. DISCUSSION When a data transfer 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 reader/writer will not respond to the idle command. EXAMPLE Sets the command byte in the buffer to 0.
Command from the Host MSB AAH FFH LSB 00H FFH Remarks Perform Command 0 Message Terminator Response from the HMS827 MSB LSB Remarks

6.2.1 Command 0 (00 Hex): Idle

No response

6.2.2 Command 1 (01 Hex): Non-contiguous Read


DESCRIPTION Directs the reader/writer to perform a Read of non-contiguous data addresses in an RFID tag. DISCUSSION This command is designed to perform non-contiguous address reads from an RFID tag. The data collected from the tag is sent to the Host. If the reader/writer fails to establish communications with a tag an error will be returned. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. Before a non-contiguous read command can be performed, the addresses must be preconfigured through the use of the configuration command (Command 3). The

HMS827 Series Passive Reader/Writer

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

6.2.3 Command 2 (02 Hex): Non-contiguous Write


DESCRIPTION Directs the reader/writer to perform a Write to non-contiguous data addresses in an RFID tag. DISCUSSION This command is designed to perform non-contiguous address writes to an RFID tag. If the reader/writer fails to establish communications with a tag an error will be returned. Before a non-contiguous write command can be performed, the addresses must be pre-configured using the configuration command (Command 3). This command has the same control structure as the non-contiguous read command, except the command number is 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.

34

HMS827 Series Passive Reader/Writer

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

6.2.4 Command 3 (03 Hex): Configure Non-contiguous Addresses


DESCRIPTION Sets up all non-contiguous Read/Write data addresses in the RFID tag. 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 Non-contiguous Read (Command 1) or Noncontiguous Write (Command 2) is directed from the host. 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. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH.
HMS827 Series Passive Reader/Writer

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

HMS827 Series Passive Reader/Writer

RFID Interface

6.2.5 Command 4 (04 Hex): 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 one-byte value repetitively across a specified range of tag addresses. 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. When Fill Length is set to 0, the reader/writer will write fill data from the start address to the end of the tags memory. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. 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 Writes 'A' (41H) to the tag starting at address 0005H for the following next consecutive 100 bytes. 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 00H 00H 07H 00H FFH 04H 05H 64H D0H 41H FFH Perform Command 4 Start Address = 0005H Fill Length= 100 bytes (0064H) Timeout value Data Value Byte = 41H Message Terminator Response from the HMS827 MSB LSB Remarks AAH FFH 04H FFH Command Echo Message Terminator

6.2.6 Command 5 (05 Hex): Block Read


DESCRIPTION Read a block of data from an RFID tag. DISCUSSION
HMS827 Series Passive Reader/Writer

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

HMS827 Series Passive Reader/Writer

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

6.2.7 Command 6 (06 Hex): 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 100 bytes of data transferred from the Host with one command, with an additional two bytes used to transmit the command. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. Unlike the non-contiguous 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. 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 Writes 8 bytes of data to the tag starting at address 0064H. 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 06H 64H 04H D0H 52H Perform Command 6 Start Address = 0064HH Write Length= 4 bytes (0004H) Timeout value Write Data 1 = 52H Response from the HMS827 MSB LSB Remarks AAH FFH 06H FFH Command Echo Message Terminator

HMS827 Series Passive Reader/Writer

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

6.2.8 Command 7 (07H): Read Tag ID Number


DESCRIPTION This command retrieves the four-byte tag identification number. DISCUSSION Each HMS tag has an unique (232 possible numbers) identification number. This number can not be changed and is not part of the 736 available data bytes. Tag ID will be return in the LSB only with the MSB as 00H. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. EXAMPLE This example will wait until a tag is in range and then reads the 4-byte identification number. In this example the ID is 510541010 in decimal or 1E6E3DC2 in hexadecimal. A timeout of 2 seconds (07D0H = 2000 x 1 msec increments) is set for the completion of the Read Tag ID Number.
Command from the Host MSB LSB Remarks AAH 07H FFH 07H D0H FFH Perform Command 7 Timeout value Message Terminator Response from the HMS827 MSB LSB Remarks AAH 00H 00H 00H 00H FFH 07H 1EH 6EH 3DH C2H FFH Command Echo Tag ID byte 1 Tag ID byte 2 Tag ID byte 3 Tag ID byte 4 Message Terminator

6.2.9 Command 8 (08 Hex): Tag Search


DESCRIPTION Check to see if there is an RFID tag in the reader/writer field.

40

HMS827 Series Passive Reader/Writer

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

6.2.10 Command A (0A Hex): Change RS232 Baud Rate


DESCRIPTION Reset the RS232 baud rate of the Reader/Writer. DISCUSSION This command can be used to change the baud rate from the default of 9600. Once this command has been initiated, communications with the Reader/Writer will stop until the Host has re-established communications at the new rate. The following baud rates can be set using the corresponding hex value in the command.
Change Baud Rate Variables MSB LSB Remarks 00H 00H 00H 00H 0CH 18H 30H 60H 1200 2400 4800 9600

HMS827 Series Passive Reader/Writer

41

RFID Interface Change Baud Rate Variables MSB LSB Remarks 00H 01H 02H 04H C0H 80H 40H 80H 19200 38400 57600 115200

EXAMPLE Changes the baud rate to 19200.


Command from the Host MSB LSB Remarks AAH 00H FFH 0AH C0H FFH Perform Command A Change rate to 19200 Message Terminator

6.2.11 Command B (0B Hex): RF Port Protected Block Write


DESCRIPTION Write a block of data to the protected addresses of an RFID tag. DISCUSSION The RF Port Protected Block Write command is used to write data to the protected area of tag memory. It is capable of transferring up to 100 bytes of data transferred from the Host with one command. The timeout value is given in 1 msec increments and can have a value of 00H to FFFEH. The Protected 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. 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

42

HMS827 Series Passive Reader/Writer

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

6.2.12 Command C (0C Hex): Initiate/Cancel Infinite Block Read


DESCRIPTION This command instructs the reader/writer to perform a single block read to the next available tag. DISCUSSION Sending this command to the Reader/Writer will put it into a read standby mode while it waits for a tag to come into range. Defining a Read Length is required to initiate the command. Setting the Read Length to 0 will cancel the Infinite Block Read. There is no timeout value with this command. The reader/writer will wait indefinitely until it is either able to read a tag or until it receives a new Command C with the Read Length set to zero. Since sending other commands will not cancel the Infinite Block Read, you should not send additional commands until the Infinite Block Read has been completed or canceled. If there is not a tag in front of the HMS827 when it receives the command, the HMS827 will acknowledge the command with a command echo and send the read data later.

HMS827 Series Passive Reader/Writer

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

HMS827 Series Passive Reader/Writer

45

RFID Interface

The format of the error response is shown below.


Error Response from the HMS827 MSB AAH 00H FFH LSB FFH Error Code FFH

46

HMS827 Series Passive Reader/Writer

Appendix A Technical Specifications


A.1 Electrical
Supply Voltage: 18-30 VDC Current: 180 mA at 24 VDC (5 Watts)

A.2

Communication with Host


Interface: RS232 and RS485/MUX32 serial communications Baud Rate: 1200, 2400, 4800, 9600 (default), 19200, 38400, 57600 and 115200 Parity: None Data Bits: 8 Stop Bit: 1

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)

HMS827 Series Passive Reader/Writer

47

Technical Specifications

48

HMS827 Series Passive Reader/Writer

Appendix B Models & Accessories


B.1 Available Models
Model HMS827 HMS827-03 HMS827-04 HMS827-05 HMS827-06 Description Passive Reader/Writer, RS232/RS485 communications, integrated antenna. Passive Reader/Writer, RS232/RS485 communications, 18mm tubular remote antenna. Passive Reader/Writer, RS232/RS485 communications, conveyor-mount remote antenna. Passive Reader/Writer, RS232/RS485 communications, 30mm tubular remote antenna. Passive Reader/Writer, RS232/RS485 communications, 40 x 30 x 12mm rectangular remote antenna.

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

HMS827 Series Reader/Writer

49

Models & Accessories

50

HMS827 Series Reader/Writer

Appendix C ASCII Chart

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

Character US (SPACE) ! " # $ % & ( ) * + , . / 0 1 2 3 4 5 6 7 8 9 : ; < =

HMS827 Series Reader/Writer

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

HMS827 Series Reader/Writer

Anda mungkin juga menyukai