RFID Systems Bulletin Number 56RF User Manual Original Instructions
RFID Systems User Manual Important User Information Read this document and the documents listed in the additional resources section about installation, configuration, and operation of this equipment before you install, configure, operate, or maintain this product. Users are required to familiarize themselves with installation and wiring instructions in addition to requirements of all applicable codes, laws, and standards.
Table of Contents Summary of Changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Who Should Use this Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Purpose of this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Abbreviations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Additional Resources . . . . . . . . . . . . . . . . . . .
Table of Contents Fundamental IP Addresses: 192.168.1.xxx . . . . . . . . . . . . . . . . . . . . . . . . . . Advanced IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Change IP Address from One Advanced Address to Another Advanced Address. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IP Address 888 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Example Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Example Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Get Version Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Example Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Example Results . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents Continuous Read Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Stop Continuous Read. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Teach Continuous Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Chapter 10 SLC Code Examples Read Byte Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Example Routine . . . . . . .
Table of Contents Appendix B CIP Information Product Codes and Name Strings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 CIP Explicit Connection Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 CIP Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Identity Object Class Code 0x0001 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Assembly Object Class Code 0x0004 . . . . . . . .
Table of Contents Notes: 8 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Preface Read this preface to familiarize yourself with the rest of the manual. Summary of Changes This publication contains the following new or updated information. This list includes substantive updates only and is not intended to reflect all changes. Topic Updated International Standard Compliance Who Should Use this Manual Page 9 Use this manual if you are responsible for design, installation, programming, or troubleshooting of control systems that use Bulletin 56RF RFID products.
Preface Additional Resources These documents contain additional information concerning related products from Rockwell Automation. Resource High Frequency 13.56 MHz RFID EtherNet/IP Interface Block Installation Instructions, publication 56RF-IN008 Bulletin 56RF RFID Square 40x40 mm Transceiver Installation Instructions, publication 56RF-IN009 Bulletin 56RF Rectangular 80x90 mm Transceiver Installation Instructions, publication 56RF-IN010 High Temperature ICODE Tag (High Frequency RFID 13.
Chapter 1 Introduction RFID Defined RFID (Radio Frequency Identification) is a method to communicate information from one point to another point by the use of electromagnetic waves (radio waves). RFID has unique characteristics that make it attractive for use in industrial systems. For example, you have a shipping carton that must be loaded with various goods to meet the specific purchase order of a customer. You can attach a tag to the carton.
Chapter 1 Introduction position modulation. The position of one pulse relative to a known reference point codes the value of a nibble or byte of data. This process allows the card to draw the maximum energy from the field almost continuously. Tags, which have no power source, can be energized at ranges of up to 1 m (3.3 ft) from a coupler that can only transmit power within the limits that international radio frequency (RF) regulations permit.
Chapter 1 Introduction Taiwan NCC Warning Statement 《䖤㻤뀿阮僈⛓⡜⸆桧㼙걽㐼勞ꬌ竤呍ⲥⰗ㉂贫䧴⢪欽罏㖳♶䖤乲 荈隶刿걽桧⸈㣐⸆桧䧴隶刿⾲鏤鎙⛓暶䚍⿻⸆腋 ⡜⸆桧㼙걽㐼勞⛓⢪欽♶䖤䕧갠굳菕㸞⿻䎁仠ざ岁鸒⥌竤涮植剤䎁仠 植韍儘䥰用⽰⨢欽⚛佖㊥荛搂䎁仠儘倰䖤糒糵⢪欽 鶤ざ岁鸒⥌䭸⣜ꨶ⥌盘椚岁鋊㹁⡲噠⛓搂箁ꨶ鸒⥌ ⡜⸆桧㼙걽㐼勞갭䗾「ざ岁鸒⥌䧴䊨噠猰㷸⿻ꄴ派欽ꨶ岚鱖㼙䚍ꨶ堥鏤⪔ ⛓䎁仠 Date of manufacture (year/month) is written on package. This device must be installed under 3m DC power cable. If the DC power cable of the radio and/or the ancillary equipment is less than or equal to 3 m (9.84 ft) in length, there is no need to conduct an emission test.
Chapter 1 Introduction Figure 1 - RFID System MS 1783-US05T Ethernet switch NS ETHERNET/IP LINK 1769-L35E CompactLogix™ 1 56RF transceiver P W R 2 Tracked object 3 56RF transceiver 4 5 1783-US05T Computer 56RF interface block 56RF tag Tags are attached to objects that must be tracked. The tags hold important information about the object. An RF transceiver reads and/or writes information to the tags when the tag moves within the transmission envelope of the transceiver (dotted ellipse).
Chapter 2 RFID Components Interface Block Three different interface blocks are available. Table 1 shows the type of ports for each catalog number. Table 1 - Type of Ports Transceiver Ports 1 2 2 Input Ports 1 1 2 Output Ports 1 1 0 Cat. No. 56RF-IN-IPS12 56RF-IN-IPD22 56RF-IN-IPD22A Figure 2 identifies the connections for the EtherNet/IP™, RF transceivers, input devices, output devices, and power.
Chapter 2 RFID Components Status Indicators When the status indicator is flashing, all flashes are 0.25 s on and 0.25 s off. This block has the seven status indicators.
Chapter 2 RFID Components Table 2 - Status Indicators (Continued) Status Indicator Name Status Indicator Indicates State Outputs inactive Inputs inactive Outputs active Yellow Inputs active Flashing green Outputs are idled and not faulted. Flashing red Output faulted Inputs faulted Outputs forced off Red Inputs unrecoverable fault Off No power is applied. Steady green The applied voltage is within specifications. Steady yellow The input power is out of specification.
Chapter 2 RFID Components Table 3 - Status Indicators Status Status Indicator Indicates Indicator Name State Off There is no power applied to the block. Module Status Green The block is operating in a normal condition. Red The transceiver has an unrecoverable fault; can need replacing. Off There is no power applied to the device. The EtherNet/IP interface block is communicating with the transceiver, but no tag Green Read/Write is present. No errors received.
Chapter 2 RFID Components The numbering of the 64 bits is done according to ISO/IEC 15693-3; numbering starts with the least significant bit (LSB) 1 and ends with the most significant bit (MSB) 64. This way is in contrast to the general used bit numbering within a byte (starts with LSB 0). Byte 5 (bit 41…48) is the tag type. Byte 6 (bit 49…56) is the manufacturer code, which coincides with the number of bytes/block. Table 5 shows the structure of our RFID tags.
Chapter 2 RFID Components Data Storage Format Identifier (DSFID) The DSFID indicates how data is structured in the tag memory. The respective commands can program and lock it. It is coded on 1 byte. It allows for instant knowledge on the logical organization of the data. Electronic Article Surveillance (EAS) EAS is a technology that is typically used to help prevent shoplifting in retail establishments. An EAS detection system detects active tags and sets off an alarm.
Chapter 2 RFID Components EAS: e = 1 (EAS enabled) e = 0 (EAS disabled) IMPORTANT Only change the EAS Configuration in a secure environment. The label must not be moved out of the communication field of the antenna during writing. We recommend putting the label close to the antenna and not to remove it during the operation.
Chapter 2 RFID Components Table 11 - Write Access Block -1 Byte 0 Condition Write Access for Block Number MSB 0 0 0 0 0 0 3 2 1 0 -2 (3) -2 (2) 0 LSB 0 Byte 1 MSB 0 0 0 0 0 0 0 LSB 0 -2 (1) -2 (0) 11 10 9 8 7 6 5 4 Byte 3 MSB 0 0 0 0 0 0 0 LSB 0 26 25 24 23 22 21 20 Block -1 Byte 2 Condition Write Access for Block Number MSB 0 0 0 0 0 0 0 LSB 0 19 18 17 16 15 14 13 12 27 Byte 3 MSB 0 0 0 0 0 0 0 LSB 0 27 26 25 24 23 22 21 20
Chapter 2 RFID Components SLI-S Memory Organization Table 12 - SLI-S Memory Organization Page -6 : : : : -1 0 : : 9 Block -24 -23 -22 -21 : : : : -4 -3 -2 -1 0 1 2 3 : : 36 37 38 39 Byte 0 Byte 1 Byte 2 Byte 3 : : : : : : : : : : : : : : : : : : : : : : : : Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021 Description Configuration area for internal use User Memory 10 pages 4 blocks per page 4 bytes per block Total: 160 bytes 21
Chapter 2 RFID Components Smart Label IC – Lean (SLI-L) The SLI-L is used in applications that require smaller memory size. The 512 bit EEPROM memory is divided into 16 blocks. A block is the smallest access unit. Each block consists of 4 bytes (1 block = 32 bits). Four blocks are summed up to one page. Bit 0 in each byte represents the least significant bit (LSB) and bit 7 the most significant bit (MSB), respectively.
Chapter 2 RFID Components Table 14 - FRAM Memory Configuration Area User area (2000 bytes) Block No. Details Data Read Data Write 00H to F9H User area Yes Yes FAH UUID (64 bits) Yes No FBH AFI, DSFID, EAS, security status Yes Limited FCH to FFH Block security status Yes No System area (48 bytes) Blocks 00H…F9H are user area, which is defined as an area that can be accessed when the corresponding block address is specified.
Chapter 2 RFID Components Product Selection Table 17…Table 22 on page 26 show the catalog numbers for the components in the Bulletin 56RF product family. Main Components Table 17 - EtherNet/IP Interface Blocks Transceiver Ports 1 2 2 Input Ports 1 1 2 Output Ports 1 1 0 Cat. No. 56RF-IN-IPS12 56RF-IN-IPD22 56RF-IN-IPD22A Recommended Sensing Distance [mm (in.)] (1) Sensing Distance, Max [mm (in.)] (1) Cat. No. 100 (3.9) 168 (6.6) 56RF-TR-8090 50 (2) 85 (3.3) 56RF-TR-4040 35 (1.4) 18 (0.
Chapter 2 RFID Components Accessories Transceiver Table 20 - Transceiver Style Connector Type Concave straight to convex straight Concave straight to convex right angle DC Micro (M12) Patchcords Concave right angle to convex straight Concave right angle to convex right angle No. of Pins Shield Wire Size [mm² (AWG)] Cat. No. 889D-F5FCDM-Jx (1) 889D-F5FCDE-Jx (1) 4 Shielded 0.
Chapter 2 RFID Components Table 22 - EtherNet/IP Style M12 D Code Patchcords M12 D Code Patchcords Connector Type Convex straight to convex straight Convex straight to convex right angle Convex right angle to convex right angle Convex straight to convex straight Convex straight to convex right angle Convex right angle to convex right angle No. of Pins Shield Wire Size [mm² (AWG)] Cat. No. 1585D-M4TBDM-x (1) 4 Unshielded 0.
Chapter 3 Electrical Installation Cable Overview The Ethernet switch must be mounted inside a control panel. The Bulletin 56RF interface block and Bulletin 56RF transceivers can be mounted on the machine. Figure 5 - Transceiver Mounting Mounted in a Cabinet Mounted on the Machine 1 1 P W R 2 3 2 5 1783-US05T 4 3 1783-US05T Ethernet Switch 56RF Interface Block 56RF Transceivers Figure 5 shows the three types of cables that are needed. 1. An Ethernet cable, RJ45 to M12-QD patchcord. 2.
Chapter 3 Electrical Installation Figure 6 - Pin Connections for the Aux Power Connectors 2 Module Power + 1 Output Power + Module Power - 3 4 Output Power Convex Module Power + 2 Output Power + 1 3 Module Power - Output Power - 4 Concave The power for the output port is separate from the power to the remaining portions of the interface block. This configuration allows the output device to be turned off, while maintaining power to the transceivers, the input port, and the EtherNet/IP™ connection.
Chapter 3 Electrical Installation Figure 8 - Power Option 2 56RF Interface Blocks 889D-R4AENM-D2 1606-XLDNET8 DC 24V/8 A 889N-F4AF-20F 889D-F4AENM-D2 889D-R4AENM-D2 889N-F4AFNU-20F 898N-43PB-N4KF 898N-43PB-N4KF Transceiver Connection The following shows the M12 QD concave connector for the transceivers. Pin 5 is the cable shield connection and is connected only at the block to functional earth (FE).
Chapter 3 Electrical Installation EtherNet/IP Connection The following shows the D-Code M12 connector on the interface block. 4 3 5 1 2 Pin 1 2 3 4 5 Function Tx+ Rx+ TxRxConnector shell connected to FE Use the catalog number 1585D-M4DC-H (polyamide small body unshielded) or catalog number 1585D-M4DC-SH (zinc die-cast large body shielded) mating connectors for the D-Code M12 concave network connector. Use two twisted-pair Cat 5E UTP or STP cables.
Chapter 4 EtherNet/IP Addressing Star Topology The star topology consists of a number of devices that connect to the central switch. When this topology is used, only one Ethernet connection can be made to the Bulletin 56RF interface block – this connection is made to the Link 1 connector. The Link 2 connection must remain unused.
Chapter 4 EtherNet/IP Addressing Figure 10 - Linear Topology RFID Interface Block Device Level Ring (DLR) Topology RFID Transceivers RFID Interface Block RFID Transceivers A DLR network is a single-fault tolerant ring network that is intended for the interconnection of automation devices. DLR topology is advantageous as it can tolerate a break in the network. If a break is detected, the signals are sent out in both directions. When this topology is used, both Ethernet connections are used.
Chapter 4 EtherNet/IP Addressing Figure 11 - DLR Topology RFID Interface Block RFID Transceivers Setting the Network Address RFID Transceivers RFID Interface Block Before using the 56RF interface block in an EtherNet/IP™ network, configure it with an IP address, subnet mask, and optional Gateway address. This chapter describes these configuration requirements and the procedures for providing them. The address can be set in one of three ways: • Use the Network Address switches.
Chapter 4 EtherNet/IP Addressing Figure 12 - Address Setting Example The subnet mask of the interface block is automatically set to 255.255.255.0 and the gateway address is set to 0.0.0.0. When the interface block uses the network address set on the switches, the interface block does not have an assigned host name or use a Domain Name Server (DNS). Advanced IP Addresses 34 Step 1…Step 6 show how to change the IP address from the fundamental 192.168.1.xxx to an advanced address.
Chapter 4 EtherNet/IP Addressing b. When power is restored, the interface block repeatedly broadcasts its MAC ID and requests an IP address. The BOOTP-DHCP server displays the MAC ID in the Request History panel. c. Double-click one of the Ethernet addresses (MAC) of the device. The New Entry dialog appears, which shows the Ethernet address (MAC) of the device. d. Type in the IP address, host name, and description and click OK. The host name and description are optional fields; they can be left blank.
Chapter 4 EtherNet/IP Addressing 5. Change the Network Adapter to 192.168.2.1. a. Open the network connections of the host computer. b. Highlight the Internet Protocol (TCP/IP) connection. c. Click Properties. In the IP address field, set the IP address to 192.168.2.1. Click OK. d. Click Close to close the Local Area Connection window (this window must be closed to apply the new address). 6. Disable DHCP. a. Set the rotary switches to 0 0 0. b.
Chapter 4 EtherNet/IP Addressing f. From a DoS prompt, you can ping the new address. The response must be four packets sent, four packets received, and zero lost. Change IP Address from One Advanced Address to Another Advanced Address The easiest way to change the IP address from one non-simple address to another non-simple address is to use RSLinx. In this case, the three network switches on the 56RF interface block are set to 999, and the address has been previously set using the BootP/DHCP server.
Chapter 4 EtherNet/IP Addressing a. Click Yes to confirm the change. b. To close the configuration window, click OK. RSLinx places an X over the RFID adapter because it can no longer communicate with it. c. Use the same steps to change the IP address of the other devices on the network. Change the Network adapter address to 192.168.3.1. d. Close and reopen the RSWho window. The older addresses are not available and the new addresses (192.168.3.115 and 192.168.3.214) appear.
Chapter 4 EtherNet/IP Addressing In the following example, power was cycled to the 56RF interface block at 7:45:16, 7:47:47, 7:49:06, and again at 10:56:00. Each time power was applied, the 56RF interface block notified the BootP/DHCP server of its IP address, which indicates that DHCP has not been disabled. If DHCP is disabled, the 56RF interface block would show nothing. IP Address 888 Address 888 is used to reset the interface block to the factory defaults.
Chapter 4 EtherNet/IP Addressing Notes: 40 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 5 Mechanical Installation Each transceiver generates a similar but unique RF field. Fastening Attach the transceiver to the flat plate with M5 screws. The tightening torque must be 1.5 N•m (13.3 lb•in) for the M5 screw. Spacing Between Transceivers The installation of multiple transceivers causes radio frequency interference and can result in tag communication difficulty. Keep a sufficient distance between the transceivers as shown in Figure 13.
Chapter 5 Mechanical Installation Spacing Next to Metal Surfaces For the square transceiver, the communication distance drops significantly when the distance between the transceiver and any surrounding metal is 30 mm (1.2 in.) or less. For the rectangular transceiver, the communication distance drops significantly when the distance between the transceiver and any surrounding metal is 50 mm (2 in.) or less. Figure 14 - Transceiver Spacing with Metal Surfaces Metal Metal ≥30 (1.
Chapter 5 Mechanical Installation Figure 15 - 65 x 65 mm (2.6 x 2.6 in.) Transceiver RFID Tag Alte1rnate Direction of Travel 100 OFF 50 Sensing Distance [mm] RFID Tag Preferred Direction of Travel OFF Acceptable Ideal Sensing Sensing Range Range ON Side Lobe 0 Side Lobe OFF -80 40 0 -40 Misalignment [mm] Referenced for a 50 mm (2 in.) disk tag 80 The field map for the 80 x 90 mm (3.1 x 3.5 in.) transceiver, which is shown in Figure 16, is similar. Figure 16 - 80 x 90 mm (3.1 x 3.5 in.
Chapter 5 Mechanical Installation Notes: 44 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 6 Add Your RFID Interface Block to an RSLogix 5000 Program Procedure 1. Open RSLogix 5000® software. 2. Click File>New. 3. Enter the new controller information. 4. Right-click the Ethernet port of the controller.
Chapter 6 Add Your RFID Interface Block to an RSLogix 5000 Program 5. Click New Module. 6. Select the desired 56RF module and click OK.
Chapter 6 General Tab Add Your RFID Interface Block to an RSLogix 5000 Program The General tab describes the device, its definition, and its IP address. Make the changes that are shown Figure 17 and click Apply. Figure 17 - General Tab 1. Enter a name for the module. In this example, the name is RFID_1. You can have multiple modules, so be sure to give it a brief but descriptive name. The name that you assign to the module appears in the Controller Organizer navigation pane.
Chapter 6 Add Your RFID Interface Block to an RSLogix 5000 Program • Module Definition Click Host Name and type in the name of the host. In the following example, the host name is QPACK4. You do not need to change the default values. If necessary, changes can be made by clicking Change. You can change the Series, Revision, Electronic Keying, Connection, and Data Format. Click the down arrow on the Data Format field and select SINT.
Chapter 6 Connection Tab Add Your RFID Interface Block to an RSLogix 5000 Program You do not need to change any settings on this tab. Setting Requested Packet Interval Inhibit Module Major Fault on Controller If Connection Fails While In Run Mode Use Unicast Connection over EtherNet/IP Module Fault Description Specify the number of milliseconds between requests for information from the controller to the RFID block.
Chapter 6 Add Your RFID Interface Block to an RSLogix 5000 Program Module Info Tab The Module Info tab contains read-only data that is populated when the controller goes online (a program is downloaded to or uploaded from the controller). In the left panel, the Add-on Profile (AOP) shows the vendor, product type, product code. Revision level, serial number, and product name. In the right panel, the AOP shows the fault status, internal state (Run mode), and whether the file is owned and Module Identity.
Chapter 6 Internet Protocol Tab Add Your RFID Interface Block to an RSLogix 5000 Program For the purposes of this user manual, you are expected to use a Private Address, that is, an address of 192.168.1.xxx. This window is automatically populated with the data. Port Configuration Tab Changes to the fields on the Port Configuration tab are not required for the Quick Start process. These fields only become active when the controller is online.
Chapter 6 Add Your RFID Interface Block to an RSLogix 5000 Program Click the ellipsis (…) under the Port Diagnostics. The following window appears, which shows the communication that takes place between the controller and the transceiver that is connected to the port.
Chapter 7 RSLogix 5000 Controller Tags During the module installation, the RFID_1 tags are automatically loaded as controller tags, which makes the tags available to all programs. In the Controller Organizer, click the Controller Tags. Three categories of tags appear. The tag name is composed of the module name followed by: • “:C” for Configuration • “:I” for Input • “:O” for Output.
Chapter 7 RSLogix 5000 Controller Tags Configuration Image Table and Tags Expand the RFID_1:C by clicking “+” to show the configuration image table, which has the following tags: Tag Description The communication rate for Channel 0 from the RFID block to the RFID transceiver is Ch0BaudRate stored in this tag. Allowable communication rates are 9600, 19200, 38400, and 115200. The default value is 115200.
Chapter 7 Tag AuxPwrFault BlockFault Channel Fault ModuleStatus Pt00Data Pt00InputFault Pt00InputShortCircuit Pt00NoLoad Pt00OpenWire Pt00OutputFault Pt00OutputShortCircuit Pt00Readback Run RSLogix 5000 Controller Tags Description The AuxPwrFault bit indicates if there is no auxiliary power detected. A value of 0 indicates no fault; a value of 1 indicates a fault condition. The Block Fault bit indicates if any of the RFID channels or input/output points is in a fault condition.
Chapter 7 RSLogix 5000 Controller Tags Input Channel Tags Expand the RFID_1:Channel by clicking “+” to show that two channels exist (Channel[0] and Channel[1]). Expand the RFID_1:Channel[0] by clicking “+”. Each channel has the following tags: Tag Busy ChError Command ContReadMode Counter Data Fault Length Reset ResetInProgress TagPresent 56 Description The channel Busy bit indicates the status of an RFID channel. A value of 0 indicates that the RFID channel is not executing a command.
Chapter 7 RSLogix 5000 Controller Tags Table 23 - Allowable Commands Value 1 2 3 4 5 6 8 10 11 12 13 14 20 31 33 34 40 41 42 43 44 45 Output Image Table and Tags Command Read Single Block Read Multiple Blocks Multi-tag Block Read Read Byte Start Continuous Read Stop Continuous Read Description Reads one block of user data. Reads multiple blocks of user data from a tag. Reads information from up to four tags. Reads bytes of user data from a tag. Initiates continuous read mode.
Chapter 7 RSLogix 5000 Controller Tags Output Channel Tags Expand the RFID_1:Channel by clicking “+” to show that two channels exist (Channel[0] and Channel[1]). Expand the RFID_1:Channel[0] by clicking “+”. Each channel has the following tags: Tag Address BlockSize Command Data Length Reset Timeout UIDHi UIDLow 58 Description The channel Address word is a 2-byte value that contains the address or block value within the RFID tag that the command executes on.
Chapter 7 RSLogix 5000 Controller Tags Table 24 - Allowable Commands Value 1 2 3 4 5 6 8 10 11 12 13 14 20 31 33 34 41 42 43 44 45 Command Read Single Block Read Multiple Blocks Multi-tag Block Read Read Byte Start Continuous Read Stop Continuous Read Description Reads one block of user data. Reads multiple blocks of user data from a tag. Reads information from up to four tags. Reads bytes of user data from a tag.
Chapter 7 RSLogix 5000 Controller Tags Notes: 60 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 8 Commands Summary RFID Commands This section provides a summary of the commands that the RFID transceiver supports. Detail of the commands can be found in RSLogix 5000 Code Examples on page 63. This guide assumes familiarity with RSLogix 5000®. The *.ACD file must already be downloaded into the PLC and working properly. Table 25 assumes the following: • You have configured the RSLogix 5000 Add-on Profile (AOP) with Data Format set to SINT. • The RFID tag has blocks that are only 4 bytes each.
Chapter 8 Commands Summary Table 25 - Commands (Continued) Command Lock AFI Write DSFID Lock DSFID Get System Information Get Multiple Block Security Status Output xx.O.
Chapter 9 RSLogix 5000 Code Examples This chapter contains examples of routines that run in the RSLogix 5000® program. The examples are written for an RF transceiver that is connected to the “0” connector on the RF interface block. A momentary switch is connected to the Digital Input connector. The switch is used to enable the routine to allow you to repeat the routine easily.
Chapter 9 RSLogix 5000 Code Examples Rung 0 Rung 0 initiates the routine. A sensor or momentary switch, which is connected to the input connection of the RFID interface block, senses that an object (with an RFID tag attached) is approaching and enables the execution of the read routine. The sensor is the Examine If Closed (XIC) bit labeled _RFID_1:I:Pt00Data. When the sensor detects the object, the instruction latches ON. Rung 1 Rung 1 initializes the output image table in preparation for command.
Chapter 9 RSLogix 5000 Code Examples RFID_1:I:Channel[0].Busy – When the command begins execution, the Busy bit goes HI. This contact closes and the rung is executed. InProgress – When command begins execution, an In-Progress bit is latched ON. Start – This contact is opened, as the command has transitioned from start to busy. Rung 4 Rung 4 confirms the completion of the command, as the interface block moves a value into the input channel command location.
Chapter 9 RSLogix 5000 Code Examples Example Results To demonstrate the results, the Read Byte command was executed on an RFID tag. The data in this tag was a simple list of numbers starting from 1. The counter is 31. The Clear Multiple Byte command is executed successfully as the ChError = 0 and all data bytes are zero. The counter increments to 32. The tag is read again (command = 4) to confirm the clearing. Data bytes 2...4 are successfully set to 0.
Chapter 9 Get Multiple Block Security Status RSLogix 5000 Code Examples The Get Multiple Block Security Status command retrieves the security status of multiple blocks within a tag. It also displays the Universally Unique Identifier (UUID) of the RFID tag. Set the following values in the output image table: a. xx:O.Channel[0].Command = 45 b. xx:O.Channel[0].Address = the first block to read c. xx:O.Channel[0].Block = 0 d. xx:O.Channel[0].Data[0] = 0 e. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results The following example shows the security status for the first three blocks. Blocks 0 and 2 are locked. Block 1 is not locked.
Chapter 9 RSLogix 5000 Code Examples The following information is displayed: • xx:I.Channel[0].Data[0…7] = UUID • xx:I.Channel[0].Data[8…9] = Security status of block x • xx:I.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results The Info Flag contains data that is used to determine what parameters are passed back. The DSFID, AFI, and UUID follow. The tag being read was catalog number 56RRF-TG-30. This tag has 28 blocks. The maximum block number is 27, as the first block is 0. Each block has 4 bytes. The maximum byte number is 3, as the first byte is 0. The IC Ref is the last byte reported.
Chapter 9 Get Version Information RSLogix 5000 Code Examples The Get Version Information command retrieves the firmware revision information from the transceiver. Set the following values in the output image table: a. xx:O.Channel[0].Command = 33 b. xx:O.Channel[0].Address = 0 c. xx:O.Channel[0].BlockSize = 0 d. xx:O.Channel[0].Data[0] = 0 e. xx:O.Channel[0].Length = 0 f. xx:O.Channel[0].Reset = 0 g. xx:O.Channel[0].Timeout = 0 h. xx:O.Channel[0].UIDLow = 0 i. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results The results are stored in Data [0…3]. In this example, the version is de20007 (version 2.07). Inventory The inventory command returns the UUID and DSFID information from the RFID tags in the field. This command can read up to a maximum of four tags. The more tags in the field, the more time the tags must be in the field to complete the inventory command.
Chapter 9 RSLogix 5000 Code Examples Example Routine In the following example routine, the initialization in Rung 1 sets the address, length data, the Data[0] value that is used to clear the fields and sets the command value to 0. The BlockSize, Reset, Timeout, UIDLow, and UIDHi are set to 0 in the output image table. The example ladder diagram is initially set for Address =0, Length = 0 and Data[0] = 0.
Chapter 9 RSLogix 5000 Code Examples Example Results In example 1, the Address = 0, Length = 0 and Data[0] = 0. Four RFID tags were in the RF field at the time the read command was executed. The controller tag values are shown in the following example. The data shows the number of tags in the RF field and the UUID for each tag. In example 2, the length was changed to 1, the Address = 0, Length = 1 and Data[0] = 0. Four RFID tags were in the RF field at the time the read command was executed.
Chapter 9 RSLogix 5000 Code Examples In example 3, we get the tag information for only those tags that have a specific AFI. In this example, the AFI is 57. Address = 1, Length = 1 and Data[0] = 57. Two of the four RFID tags that were present in the RF field at the time the read command was executed had AFI set to 57. The controller tag values are shown in the following example. The data shows the number of tags in the RF field, the DSFID, and the UUID for each of these tags.
Chapter 9 RSLogix 5000 Code Examples Example Routine In the following example routine, the initialization in Rung 1 sets the address, length, the Data[0, UIDLow and UIDHi values used to lock the AFI and sets the command value to 0. The BlockSize, Reset, and Timeout are set to 0 in the output image table. Example Results Figure 18 shows an example of results on the input image table. The Command is showing 42 and the ChError is showing 0. The input data bytes are all zero.
Chapter 9 Lock Block RSLogix 5000 Code Examples The Lock Block command locks one block of user data, preventing future writing. The transceiver automatically determines the block size of the RFID tag. IMPORTANT Once the block is locked, the block cannot be unlocked. Set the following values in the output image table: a. xx:O.Channel[0].Command = 40 b. xx:O.Channel[0].Address = the number of the block to lock c. xx:O.Channel[0].BlockSize = 0 d. xx:O.Channel[0].Data[0] = 0 e. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results Figure 19 shows address 26, which is the second to last block of the catalog number 56RF-TG-30 tag. The command is 40. The UUID must be specified to lock any blocks. Figure 19 - Input Image Table After completion of the lock block command, the input image table shows that the command is 40 and the ChError is 0. Errors The ChErrorfield is 8 if you try to lock a block that is already locked.
Chapter 9 Lock DSFID RSLogix 5000 Code Examples The Lock DSFID command locks the 1 byte of information for the Data Storage Format Identifier (DSFID) area of the tag, preventing it from being modified. IMPORTANT Once the DSFID byte is locked, it cannot be unlocked. Set the following values in the output image table: a. xx:O.Channel[0].Command = 44 b. xx:O.Channel[0].Address = 0 c. xx:O.Channel[0].Data[0] = 0 d. xx:O.Channel[0].Length = 0 e. xx:O.Channel[0].Reset = 0 f. xx:O.Channel[0].Timeout = 0 g.
Chapter 9 RSLogix 5000 Code Examples Example Results When successful, the results shown in the input image table show ChError = 0 and the Command number =44. If you try to lock the DSFID on an RFID tag that is already locked, the ChError is equal to 8. Read Byte Command The Read Byte command reads a user-specified number of bytes from a tag, starting at a user-specified address. An Option Flag can be set to return the UUID of the tag.
Chapter 9 RSLogix 5000 Code Examples In the following example routine, the initialization in Rung 1 sets the address, length, the Data[0]to the Option Flag, and sets the command value to 0. The BlockSize, Reset, Timeout, UIDLow, and UIDHi are set to 0 in the output image table. Example Results Figure 20 shows an example of results where the Option Flag was set to 1, which reads the UUID. The UUID is loaded into Data[0] through Data[7]. The user data (1, 2, 3, 4, 5, 6…) begins in Data[8].
Chapter 9 RSLogix 5000 Code Examples In Figure 21, the command was repeated with the Starting Address set to 2 and the number of bytes set to 3. Figure 21 - Input Image Table - Repeated Command Multi-tag Block Read The Multi-tag Block Read command reads multiple blocks of user data from multiple tags in the RF field. The transceiver automatically determines the block size. All RFID tags in the field will have the same block size. This command can read up to four tags.
Chapter 9 RSLogix 5000 Code Examples Example Results The input image data fields are populated with the number of tags, followed by the UUID and block data of each tag. In the following example, four catalog number 56RF-TG-30 RFID tags were read. These tags hold 4 bytes per block. Since two blocks (25 and 26) were read, a total of eight data fields are used to store the user data. The image only shows the information from two of the four RFID tags.
Chapter 9 RSLogix 5000 Code Examples Read Multiple Blocks The Read Multiple Blocks command reads multiple blocks of user data from an RFID tag. Option Flags can be set to return just the data in the blocks or return the data and the security status for each block of data. The maximum number of blocks that can be read at one time is 10. • Option Flag 0 Returns multiple blocks of user data. Set xx:O.Channel[0].Data[0] = 0.
Chapter 9 RSLogix 5000 Code Examples Example Results This first example uses Option Flag = 0; return only the data in the blocks. With a starting block number of 25 and two blocks to read, data from Blocks 25 and 26 are returned. The tag was a catalog number 56RF-TG-30, which has only 4 bytes per block. The data appears in the input channel Data[0…7]. This second example shows the results for Option Flag = 1; return the data and the security status.
Chapter 9 RSLogix 5000 Code Examples The data for the second block appears in the input channel Data[6…9]. The security status appears in Data[10]. The value of 1 indicates that the block is locked. Read Single Block The Read Single Block command reads one block of user data from a tag. Option Flags can be set to return information the UUID and security status of the block. • Option Flag 0 Returns one block of user data. Set xx:O.Channel[0].Data[0] = 0.
Chapter 9 RSLogix 5000 Code Examples Example Results • Option Flag 0 This first example uses Option Flag = 0; return only the data in the block. The block number is 26. The tag was a catalog number 56RF-TG-30, which has only 4 bytes per block. The data appears in the input channel Data[0…3]. • Option Flag 1 The second example demonstrates the results when Option Flag = 1. Data[0] shows the security status of the block. The 1 indicates that the block has been locked.
Chapter 9 RSLogix 5000 Code Examples Read Transceiver Settings The Read Transceiver Settings command retrieves the following information from the transceiver: • Device ID • Communication rate • Retry time • Gain Set the following values in the output image table: a. xx:O.Channel[0].Command = 31 b. xx:O.Channel[0].Address = 0 c. xx:O.Channel[0].BlockSize = 0 d. xx:O.Channel[0].Data[0] = 0 e. xx:O.Channel[0].Length = 0 f. xx:O.Channel[0].Reset = 0 g. xx:O.Channel[0].Timeout = 0 h. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results The following information is displayed: • xx:I.Channel[0].Data[0…1] = Device ID • xx:I.Channel[0].Data[2…5] = Communication rate • xx:I.Channel[0].Data[6…7] = Retry setting • xx:I.Channel[0].Data[8…9] = Gain Gain is 0…3, with 0 being the highest gain. Write AFI The Write AFI command writes 1 byte of information into the AFI. The AFI is used to group RFID tags by application.
Chapter 9 RSLogix 5000 Code Examples Example Results Figure 22 shows an example of results on the input image table. The Command is showing 41 and theChError is showing 0. The data bytes are all zero. Confirmation that the AFI was written can be observed in the Get_System_Information_Routine. Figure 22 - Input Image Table Write Byte Command 90 The Write Byte command writes bytes of user data to a tag. You must specify the data, the start byte, and the number of bytes to write. a. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Unless a UUID is specified, this command operates on the first tag in the field. Specify a UUID in xx:O.Channel[0].UIDLow and xx:O.Channel[0].UIDHi to perform the command on a specific tag. Example Routine In the following example routine, the initialization in Rung 1 sets the address, length, and Data[0] values used to read multiple blocks and sets the command value to 0. The BlockSize, Reset, Timeout, UIDLow, and UIDHi are set to 0 in the output image table.
Chapter 9 RSLogix 5000 Code Examples After successful completion of the Write Byte command, the input image table shows the UUID of the tag. The Read_Byte_Routine can be used to read the data. The data is stored in the input channel data, starting at location 0. Write DSFID The Write DSFID (Data Storage Format Identifier) command writes 1 byte of information in the Data Storage Format Identifier (DSFID) of the RFID tag. Set the following values in the output image table: a. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples The example ladder diagram is initially set for Address =0, the Length = 0. Data[0] is set to the DSFID value. Example Results The command is executed successfully if the ChError = 0, the Command value = 43 and all Data bytes are 0. Use the Get System Information command or the Inventory command to read the DSFID.
Chapter 9 RSLogix 5000 Code Examples Write Multiple Blocks The Write Multiple Blocks command writes to either one or two blocks of user data to a FRAM tag. This command only works on FRAM tags. Catalog number 56RF-TG-2KB is a FRAM tag. a. xx:O.Channel[0].Command = 11 b. xx:O.Channel[0].Address = starting block to write c. xx:O.Channel[0].BlockSize = number of bytes per block d. xx:O.Channel[0].Data[0…xxx] = data to write e. xx:O.Channel[0].Length =the number of blocks to write f. xx:O.Channel[0].
Chapter 9 RSLogix 5000 Code Examples Example Results Figure 24 shows the output image table with the data that is written (a simple numeric sequence starting at 2). Two blocks of 8 bytes each is written to the tag. The data is written to address locations 3 and 4. Figure 24 - Output Image Table If the Write Multiple Blocks command is executed properly, the input table image results show ChError = 0, Command = 11 and Data[0-xxx] =0.
Chapter 9 RSLogix 5000 Code Examples Use the Read Multiple Block command (=2) to read the data. Multi-tag Block Write The Multi-tag Block Write command writes one or more blocks of user data to multiple tags in the transceiver field. The maximum number of tags in the RF field is limited to four and all tags must have the same block size. Set the following values in the output image table: a. xx:O.Channel[0].Command = 12 b. xx:O.Channel[0].Address = starting address to write c. xx:O.Channel[0].
Chapter 9 IMPORTANT RSLogix 5000 Code Examples The BlockSize field is used to specify the number of bytes/block of the tag. Valid values are: • 0 = 4 bytes/block • 4 = 4 bytes/block • 8 = 8 bytes/block Typically, ISO15693 tags have a block size of 4 bytes/block, and FRAM tags have a block size of 8 bytes/block. Example Routine In the following example, data is written to two blocks, starting with Block 3. The data is loaded into the output channel image table.
Chapter 9 RSLogix 5000 Code Examples Example Results The input channel image table shows the number of RFID tags that were written and the UUID of each RFID tag. Use the Read Multi Tag Block command (=3) to read the blocks and confirm that the data was written.