Page 38
C H A P T E R 4 : E R R O R C O D E S
CHAPTER 4:
ERROR CODES
The HS500E will generate an error response if it is unable to complete an operation. When an error occurs, the LSB of the second word in a response (the Command Echo word) will be replaced by a 1-byte error code that indicates the actual error that was experienced.
4.1ERROR TYPES
There are basically two types of errors that can occur.
S Y N T A X E R R O R S
The majority of errors that occur do so because of improperly formatted commands. Syntax errors include everything from entering an invalid command ID to attempting to read from or write to an address not within the range of the tag’s memory limits.
R F R E S P O N S E E R R O R S
This type of error can occur if the distance from the tag to the antenna exceeds the RF range or when a command is not completed before the Timeout Value expires.
4 . 1 . 1 S y n t a x E r r o r s
O V E R A L L L E N G T H E R R O R S
0x89: User sends a command with an overall length value of less than 6 bytes. User miscalculates overall length when executing a Write command.
L E N G T H L I M I T S
0x8D: Limits or boundaries concerning a Read/Write/Fill Length field were not satisfied.
0x8F: Tag starting address and length conflict with one another. This can occur if, for example, the user decides to read data near the end of the tag and specifies a length that exceeds the remainder of the tag memory.
W R I T E L E N G T H L I M I T
0x99: User attempts to write to the tag but does not provide the exact number of bytes specified in the Write Length field.
4 . 1 . 2 R F R e s p o n s e E r r o r s
T I M E O U T F A I L C O D E
0x9F: Timeout Value has been exceeded. User needs to set a longer Timeout Value.
H S 5 0 0 E – O P E R A T O R ’ S M A N U A L | P / N : 1 7 - 1 3 0 5 R E V 0 2 ( 1 2 - 0 5 ) |
| P A G E 3 8 O F 8 2 |
Contents
Page
Industrial Ethernet Antenna
800 626-3993 toll free 831 438-7000 office 831 438-5768 fax
HS500E
FCC Compliance Notice
FCC Part
Table of Contents
RAW TCP/IP Command Example RAW TCP/IP Response Example
Syntax Errors RF Response Errors
Modbus TCP Command Structure Modbus TCP Response Structure
Html Server and OnDemand Overview
Appendix B Ascii Chart Appendix C ETHERNET/IP Object Model
O m pa n y B a c k g r o u n d
Getting Started
Introduction
F I D E r v i e w
E X N o ta t i o n
About this Manual
H o S h o u l d R e a d t h i s M a n u a l ?
Dimensions & Diagrams
I m e n s i o n s To p V i e w
Dimensions Side View
I m e n s i o n s S i d e V i e w
Dimensions Rear View Power & Ethernet
E D D e s c r i p t i o n s
LED Descriptions
N t e n n a R e a d R a n g e F r o n t V i e w
N t e n n a R e a d R a n g e S i d e V i e w
Installation & Setup
Installation P r e c a u t i o n s
Install i n g t h e H S 5 0 0 E
E Fault I P a d d r e s s
IP Configuration
IP Address Configuration
Html Server
Enter new IP address values in the fields provided
Html Server IP Configuration
Html Server- Main
Pinging the HS500E
Ping IP Address
T E
Rfid Commands
Command Structure
06 +
See the .2.1 Rfid Command Table for Complete list
M m a n d P a c k e t S t r u c t u r e Ta b l e
Seconds
S p o n s e P a c k e t S t r u c t u r e Ta b l e
Command Echo is
Byte RF Error Counter
Word, Node ID Echo
Returned Data Bytes 3
Retry Counter in the MSB
Returned Data Bytes 1
Rfid Commands
I D C o m m a n d s Ta b l e
Field Name
Word Value
Returned Data bytes 3,4
MSB = RF Retry Counter 0100 LSB = Reserved Total Time
Returned Data bytes 1
I T E D a T a
0006 0003 0101 Xxxx
L L T a G
0006 0005 0101 Xxxx
M M a N D F S T L E D S / G E T I N F O
0006 F100 0001 0000
Command F1 Test LEDs / Read Info Response Structure
Word
Applicable when word 2 is F203
Word Field Name
Value
Word # Field Name
MSB = RF Retry Counter LSB = Reserved Total Time
I T E I P a D D R E S S
This example sets the IP address of the HS500E to
Appendix a IP Address Reset
HS500E Factory Default IP Address
There is no response for this command
S E T B a T T E R Y C O U N T E R
Y n t a x Error s
Error Codes
Error Types
F R e s p o n s e Error s
What is Ethernet/IP?
Chapter ETHERNET/IP Protocol
Configure the HS500E via OnDemand Node Configuration
Steps to Configure the HS500E
HS500E Node Configuration
T M L S e r v e r a n d O n D e m a n d O v e r v i e w
OnDemand Configuration
Controller Settings
OnDemand Node 01 Configuration
Use this page to modify the settings for Node
Write Settings
Read Settings
Write Tag Name / Write File Address
G E 4 4 O F 8
Configuring PLC Controller Tags
O n t r o l l e r Ta g s S u m m a r y
Checking Ondemand Status
OnDemand Status
Using the HS500E with Rslogix
Screen shot of RSLogix
T h e r n e t / I P H a n d s h a k i n g
T h e r n e t / I P H a n d s h a k i n g E x a m p l e
G E 4 9 O F 8
Write Tag where responses are written by the HS500E
Html Server and Ondemand PLC Support
Words / 200 Bytes
Modbus TCP Overview
O d b u s T C P C o m m a n d S t r u c t u r e
4000
65536
Modbus TCP Command Structure
32775
Node 01 Memory Map Consume Registers
Modbus TCP Response Structure
O d b u s T C P R e s p o n s e S t r u c t u r e
40001
Node 33 Memory Map Produce Registers
Modbus TCP Handshaking
O s t / H S 5 0 0 E M o d b u s T C P H a n d s h a k i n g
G E 5 6 O F 8
Chapter RAW TCP/IP Protocol
Command
RAW TCP/IP Command & Response Examples
LSB = Command ID 02 Read Data
AW T C P / I P C o m m a n d E x a m p l e
AW T C P / I P R e s p o n s e E x a m p l e
Appendix a IP Address Reset
IP Address Reset Button
Ascii Chart
Appendix B
G E 6 2 O F 8
Appendix C ETHERNET/IP Object Model
ETHERNET/IP Required Objects
Class Attributes Name Data Type Data Value Access Rule
Instance Attributes Name Data Type Data Value Access Rule
D e n t i t y O b j e c t 0 x 0 1 1 I n s t a n c e
Common Services Implemented for Service Name Code
Status Word Bit Bit =
S s e m b l y O b j e c t 0 x 0 4 3 I n s ta n c e s
Class Attributes Name Data Data Value Access Rule Type
E s s a g e R o u t e r O b j e c t 0 x 0
Bitmap of Produce Instances with Data
Node 1 Serial Produce Data WORD100 All 0’s
Produce Data Sequence Number
Node 1 Serial Produce Data Size
Node Serial Produce Data Size
Node Serial Consume Data WORD100 All 0’s
Consume Data Sequence Number
Node Serial Consume Data Size
Yes SetAttributeSingle
Instance 0x80 Attributes Configuration Instance
Instance 0x81 Attributes Heartbeat Instance Input Only
O n n e c t i o n M a n a g e r O b j e c t 0 x 0
C P O b j e c t 0 x F 5 1 I n s ta n c e
Gateway Address
Interface Configuration Get Structure IP Address
Network Mask
Name Server
100 Get Interface Flags
T h e r n e t L i n k O b j e c t 0 x F 6 1 I n s t a n c e
Interface Speed
Physical Address Usint Array6 Get
S t a n c e s
Vendor Specific Objects
5 0 0 E C o n s u m e D a t a O b j e c t 0 x 6 4 3
Bit 0 Instance 1 … Bit 31 Instance
Consume Data 10,000-10,249
Consume Data 8,000-8,249
Consume Data 9,000-9,249
Consume Data 20,000-20,249
Yes Get Attribute Single
Yes Set Attribute Single
5 0 0 E P r o d u c e D a t a O b j e c t 0 x 6 5 3
Produce Data 20,000-20,249
Produce Data 9,000-9,249
Produce Data 10,000-10,249
122 Produce Data 30,000-30,249
G E 7 8 O F 8
D e m a n d O b j e c t 0 x 6 7 1 0 I n s ta n c e s
Only
Read Tag Name ControlLogix
G E 8 1 O F 8
EMS Warranty