Chapter 9 Write Single Block RSLogix 5000 Code Examples The Write Single Block command writes one block of user data to an RFID tag. Set the following values in the output image table: a. xx:O.Channel[0].Command = 10 b. xx:O.Channel[0].Address = starting address to write c. xx:O.Channel[0].BlockSize = 0, 4, or 8 d. xx:O.Channel[0].Data[0…112] = data to write e. xx:O.Channel[0].Length = 0, 4, or 8 f. xx:O.Channel[0].BlockSize = 0, 4, or 8 g. xx:O.Channel[0].Reset = 0 h. xx:O.Channel[0].Timeout = 0 i.
Chapter 9 RSLogix 5000 Code Examples Example Results The output image table shows that the address is set to Block 3; the block size is 4 and the command is 10. The data to be written to block 3 is 41, 42, 43, and 44. Upon successful completion of the write block command, the Input Image table shows that Command = 10 and ChError = 0. The input channel data fields are all zero. Use the Read Single Block command (=1), with option flag set to zero, to read the contents of the tag in block 3.
Chapter 9 RSLogix 5000 Code Examples Continuous Read Mode The Continuous Read command is used for specialty applications that require high line speeds (up to 3 ms). See Continuous Read Mode on page 114 for details on this command. Stop Continuous Read The Stop Continuous Read command is used with the Continuous Read command for specialty applications that require high line speeds (up to 3 ms). See Continuous Read Mode on page 114 for details on this command.
Chapter 9 RSLogix 5000 Code Examples Notes: 102 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 10 SLC Code Examples This sample code example uses an SLC-5/05 with a catalog number 56RF-IN-IPD22 interface block. Read Byte Routine The Read Byte command (value =4) reads a user-specified number of bytes from a tag, starting at a user-specified address. Additionally, an Option Flag can be set to return the UUID of the tag.
Chapter 10 SLC Code Examples Example Routine Rung 0000 Description Place RFID interface into the Run mode. The bit must be highlighted in green. If the bit is not green, right-click it and click Toggle Bit. Read Input Image. Double-click the EEM box to enter the setup screen. Input Size is 116 bytes (58 words). Click the MultiHop tab to configure an EtherNet/IP™ device. 0001 Write Output Image. Double-click the MSG box to enter the setup screen. Output size is 124 bytes (62 words).
Chapter 10 Rung 0004 Description When the command value has been cleared, load in the instruction parameters contained in N104 (Read Byte). N101 (Read Single Block) could be used in place of N104. Block Size Command Address Timeout 0005 0006 SLC Code Examples Length UIDLow0-Hi1 Wait for the read command to run. The Read in Progress bit is highlighted in green when the command is running. When the command has completed, the Read in Progress bit returns to its original state.
Chapter 10 SLC Code Examples Notes: 106 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 11 MicroLogix 1400 Code Examples Read Byte The Read Byte command (value =4) reads a user-specified number of bytes from a tag, starting at a user-specified address. Additionally, an Option Flag can be set to return the Universally Unique Identifier (UUID) of the tag. • Option Flag 0 Returns the specified user data • Option Flag 1 Returns the UUID of the tag and the specified user data IMPORTANT This command operates only on the first tag in the field.
Chapter 11 MicroLogix 1400 Code Examples Example Routine Rung 0000 Description Place RFID interface into the Run Mode. The bit must be highlighted in green. If the bit is not green, right-click it and click Toggle Bit. Read Input Image. Double-click the MSG box to enter the setup screen. Input size is 116 bytes (58 words). Click the MultiHop tab to configure an EtherNet/IP™ device. 0001 Write Output Image. Double-click the MSG box to enter the setup screen. Output size is 124 bytes (62 words).
Chapter 11 Write Byte MicroLogix 1400 Code Examples The Write Byte command (value = 14) writes bytes of user data to a tag. You can specify the data, the start byte, and the number of bytes to write. IMPORTANT This command operates only on the first tag in the field. Example Routine Rung 0000 0001 0002 0003 0004 0005 0006 Description Place RFID interface into the Run Mode. The bit must be highlighted in green. If the bit is not green, right-click it and click Toggle Bit. Read Input Image.
Chapter 11 MicroLogix 1400 Code Examples Read Multiple Blocks The Read Multiple Blocks command (value = 2) reads multiple blocks of user data from a tag. Additionally, Option Flags can be set to return information such as the UUID or the Data Storage Format Identifier (DSFID) of the tag.
Chapter 11 Output Image Layout MicroLogix 1400 Code Examples See Appendix on page 125 for details on the Output Image Layout.
Chapter 11 MicroLogix 1400 Code Examples Notes: 112 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 12 RFID Tag Speed Table 27…Table 30 on page 114 are guides to help determine the amount of information that can be written to/read from an RFID tag, which is based on the speed of your application. For example, to read 8 bytes consistently from a tag using the square transceiver, your line speed must be 0.827 ms or slower. If you have a high-speed application, it is best to choose the largest transceiver, larger tag, which provides the largest antenna range.
Chapter 12 RFID Tag Speed Table 29 - M18 Transceiver Bytes 4 8 16 32 64 112 160 2000 Max Tag Speed (ms) Read Write 0.1984127 0.1771479 0.1838235 0.1495886 0.1603849 0.1142204 0.1277139 0.07748935 0.09070295 0.04713646 0.06325111 0.02970444 0.04855547 0.02168492 0.004899919 0.00191022 Table 30 - M30 Transceiver Bytes 4 8 16 32 64 112 160 2000 Continuous Read Mode Max Tag Speed (ms) Read Write 0.3373016 0.3011515 0.3125 0.2543007 0.2726544 0.1941748 0.2171137 0.1317319 0.154195 0.08013199 0.1075269 0.
Chapter 12 RFID Tag Speed Modes of Operation Only one type of mode of operation can be used on each channel. To change modes you must issue a Stop Continuous Read, and then reissue a Start Continuous Read with the new mode. Both channels can be configured for the same mode or different modes simultaneously. Modes of operation are limited based on the model number of the interface.
Chapter 12 RFID Tag Speed Command Structure a. xx:O.Channel[0].Reset =0 b. xx:O.Channel[0].Command = 5 c. xx:O.Channel[0].BlockSize = Bytes per Block in the tag d. xx:O.Channel[0].Address = Starting Block e. xx:O.Channel[0].Length = Number of blocks to read f. xx:O.Channel[0].Timeout = Delay time between sending commands g. xx:O.Channel[0].UIDLow = 0 h. xx:O.Channel[0].UIDHi = 0 i. xx:O.Channel[0].Data[0] = Mode x j. xx:O.Channel[0].
Chapter 12 RFID Tag Speed If the interface is unable to obtain 10 good reads in a row, it decrements the delay time by 1 ms and starts again in phase 2. If the delay time has been decremented more than 30 ms from the average, the interface exits teach mode and reports back the recommended delay time of -1. A -1 value indicates that the interface cannot determine what the best delay time would be due to variations in tag speed.
Chapter 12 RFID Tag Speed Notes: 118 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 13 RFID Interface Block Webpage The RFID interface block webpage provides diagnostic and configuration for the RFID interface block. You can access the webpage by entering the IP address of the interface block into a web browser. The interface block must have Ethernet connectivity and power to be viewable on the webpage. Home The home page allows you to view basic information about the interface block. Data cannot be changed on the home page.
Chapter 13 RFID Interface Block Webpage Network Settings 120 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Chapter 13 RFID Interface Block Webpage Ethernet Statistics I/O Connections Configuration To access the configuration section of the RFID interface block webpage, a username and password are required. The default username is Admin, and there is no password by default. The username and password can be changed on the Device Services tab. IMPORTANT If the username and password are lost, the interface block must be reset to default before it can be accessed again.
Chapter 13 RFID Interface Block Webpage Device Identity Change the device name, description, or location. Changes take place after power to the interface block has been cycled.
Appendix A Error Codes for RFID Interface Block Error Codes The error codes for the RFID interface block are stored in the input for each channel. In the examples in the manual, the error codes are stored in the image table RFID_1:I:Channel[0].ChError and RFID_1:I:Channel[1].ChError.
Appendix A Error Codes for RFID Interface Block • • • • • • • • 124 Format Error (Decimal 7) Indicates that the format of the command or response was invalid. Tag Communications Error (Decimal 8) Indicates that the interface block was not able to complete command execution with a tag before the tag left the field or the Output Channel Timeout is set too short. For example, set the Output Channel Timeout to 100 ms and then try to read 112 bytes of data from a catalog number 56RF-TG-30 tag.
Appendix B CIP Information Product Codes and Name Strings Figure 32 lists the product codes and name strings for the EtherNet/IP™ interface block. Table 32 - Product Codes and Name Strings Product Type 139 139 139 Product Code 4 5 6 Cat. No.
Appendix B CIP Information Instance 1 of the Identity Object contains the following attributes: Attribute ID 1 2 3 Access Rule Get Get Get 4 Get 5 6 Get Get 7 Get Name Vendor Device Type Product Code Revision Major Revision Minor Revision Status Serial Number Product Name String Length ASCII String Data Type UINT UINT UINT Structure of: USINT USINT WORD UDINT Structure of: USINT STRING Value 1 139 4, 5, or 6 The initial release is Major Rev. 1, Minor Rev. 1. See Table 33 on page 127.
Appendix B • • • • • • • • • CIP Information CIP_Data[0]…[1]= Vendor (1=Allen-Bradley) CIP_Data[2]…[3]= Device Type (139=RFID) CIP_Data[4]…[5]=Device Code (5=56RF-IN-IPS12) CIP_Data[6]= Major Revision (1) CIP_Data[7]= Minor Revision (1) CIP_Data[8]…[9]= Status (100 decimal, 000000001100100 binary) CIP_Data[10]…[13]= Serial Number (A000B955) CIP_Data[14]= Product Name Length (32 bytes) CIP_Data[15]-[n]= Product Name Device Status (CIP_Data[8…9]) Table 33 - Device Status (CIP_Data[8…9]) Bits 0 1 2 3 4…7
Appendix B CIP Information Assembly Object Class Code 0x0004 The Assembly Object binds attributes of multiple objects, which allows data to be sent to or received from each object over one connection. Controllers that cannot create and establish a class 1 (scheduled) connection can use the Assembly Object in a message instruction to obtain both the input and output assemblies of the RFID interface.
Appendix B • • • • • • • CIP Information N10:0 is the data table address where the input image is stored and spans N10:0…N10:57. The number of bytes to receive is 116 (58 words). The extended routing file (RIX11:0) is used to store the Multi-Hop routing information. Service is type Read Assembly Class 4 is the Assembly Instance Class Instance 79h is the input image connection instance.
Appendix B CIP Information I/O Data Bit 0 1 2 3 4 5 6 7 Definition Pt00 Data Reserved Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Pt00 Readback Reserved Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Error Code Error Code Error Code Error Code Reserved Reserved Reserved Reserved Channel[n] Diagnostics Bit 0 1 2 3 4 5 6 7 Definition Reset Fault Tag Present Busy Reset in Progress Continuous Read Mode Reserved R
Appendix B CIP Information I/O Data Bit 0 1 2 3 4 5 6 7 Definition Pt00 Data Pt01 Data Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Error Code Error Code Error Code Error Code Reserved Reserved Reserved Reserved Channel[n] Diagnostics Bit 0 1 2 3 4 5 6 7 Definition Reset Fault Tag Present Busy Reset in Progress Continuous Read Mode Reserved Reser
Appendix B CIP Information I/O Data Bit 0 1 2 3 4 5 6 7 Definition Pt00 Data Reserved Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Pt00 Readback Reserved Reserved Reserved Reserved Reserved Reserved Reserved Bit 8 9 10 11 12 13 14 15 Definition Error Code Error Code Error Code Error Code Reserved Reserved Reserved Reserved Channel[n] Diagnostics Bit 0 1 2 3 4 5 6 7 Definition Reset Fault Tag Present Busy Reset in Progress Continuous Read Mode Reserved R
Appendix B CIP Information The Multi-Hop information is used to configure the communications path from the MicroLogix to the RFID interface.
Appendix B CIP Information Input Image (56RF-IN-IPD22A Interface Block) Word N20:0 N20:1 N20:2 N20:3 N20:4 N20:5 N20:6 N20:7 N20:8…N20:9 N20:10…N20:11 Description Module Data Reserved Channel[0] Reset Block Size Command Address Length Timeout UIDLow UIDHi Word N20:12…N10:31 N20:32 N20:33 N20:34 N20:35 N20:36 N20:37 N20:38…N20:39 N20:40…N20:41 N20:42…N20:61 Description Data Channel[1] Reset Block Size Command Address Length Timeout UIDLow UIDHi Data Module Data Bit 0 1 2 3 4 5 6 7 Definition Run Mode
Appendix B CIP Information Read the Input Image Table of a 56RF-IN-IPD22 Interface Block with an SLC-5/05 The main difference between the MicroLogix1400 and the SLC-5/05 is that the SLC uses an EEM instruction instead of an MSG instruction, but the setup is similar. The routing information for the EEM is stored within the Control Block address (N30:0) • N10:0 is the data table address where the input image is stored and spans N10:0…N10:57. • The size in words is 58 (116 bytes).
Appendix B CIP Information • • • • • • Class 1 Connections N20:0 is the data table address to store the output image and spans N20:0…N20:61. The Send Data size is 62 (124 bytes). Service is type Write Assembly Class 4 is the Assembly Instance Class Instance 83h is the output image connection instance. Attribute 3 is the assembly attribute for the output image table Class 1 connections are used to transfer I/O data, and can be established to the Assembly Object instances.
Appendix B • • Input Only Connection CIP Information Connection point O -> T must be Assembly Object, Instance 3, 162 or 166 (162 for product codes <= 0x100 only, 166 for product codes > 0x100 only). Connection point T -> O must be Assembly Object, Instance 52, 150 or 151 (150 for product codes <= 0x100 only, 151 for product codes > 0x100 only). This connection is used to read data from the module without controlling the outputs. This connection is not dependent on any other connection.
Appendix B CIP Information Discrete Input Point Object Class Code 0x0008 The following class attributes are currently supported for the Discrete Input Point Object: Attribute ID 1 2 Access Rule Get Get Name Revision Max Instance Data Type 0xC7 UINT Value 2 4 Two instances of the Discrete Input Point Object are supported. All instances contain the following attributes.
Appendix B CIP Information Figure 26 - Obtain Input Filter Off/On Value Instance 1 is the first input (Pt00), if the RFID interface supports two inputs, then Pt01 would be instance 2. The return value contains the filter time in milliseconds. Discrete Output Point Object Class Code 0x0009 The following class attributes are supported: Attribute ID 1 2 Access Rule Get Get Name Revision Max Instance Data Type 0xC1 UINT Value 1 4 or 10 Two instances of the Discrete Output Point Object are supported.
Appendix B CIP Information To obtain the state of an output point, configure a CIP message as shown in Figure 27: Figure 27 - Obtain State of Output The return value contains the state of the output (0=Off, 1=On) To set the state of an output point, configure a CIP message as shown in Figure 28: Figure 28 - Set State of Output CIP_Data_Source is a SINT that contains the value to set the output too (0=Off, 1=On).
Appendix C Install the Add-on Profile Introduction This appendix goes through the Add-on Profile (AOP) of the RFID transceivers with the RSLogix 5000® program. AOPs are files that you add to your Rockwell Automation® library. These files contain the pertinent information for configuring a device that is added to the Rockwell Automation network. The AOP simplifies the setup of devices.
Appendix C Install the Add-on Profile 5. With Install selected, click Next. 6. The profile name appears in the left-hand box and its details appear in the right-hand box. Verify that the module name is correct. Click Install.
Appendix D Troubleshooting Common Solutions Table 36 lists common problems and solutions for the RFID system. Table 36 - Problems/Solutions Problem Solution The RFID interface is shipped with DHCP/BootP enabled and does have an I just hooked this unit up assigned EtherNet/IP™ address unless the MAC address of the RFID is in the out-of-the-box and cannot see relationship list.
Appendix D Troubleshooting Notes: 144 Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021
Index Numerics 888 IP address 39 A accessory product selection 25 address MAC 47 advanced IP address 34 AFI definition 7 lock 75 write 89 AOP definition 7 assembly object Class Code 0x0004 128 auxiliary power connection 27 B backward compatibility 11 block interface 13 lock 77 block read multi-tag 82 block write multi-tag 96 bytes clear multiple 65 C cable overview 27 change IP address 37 CIP explicit connection behavior 125 CIP object 125 Class 1 connection 136 Class 3 connection 137 Class Code 0x0001 i
Index DOS definition 7 DSFID lock 79 write 92 E EAS definition 7 error code 123 Ethernet statistics 121 EtherNet/IP 24 connection 30 interface block product selection 24 exclusive owner connection 136 explicit connection behavior CIP 125 input image layout 110 input image table read with MicroLogix 1400 128 read with SLC-5/05 135 input only connection 137 INT definition 7 interface block 13, 24 internet protocol tab 51 inventory 72 IP address 888 39 advanced 34 change 37 fundamental 33 ISO definition 7
Index multiple blocks read 110 write 94, 110 multiple bytes clear 65 multi-tag block write 96 multi-tag block read 82 N name string 125 network configuration 122 network address set 33 network setting 120 with SLC-5/05 135 multiple block 84 multiple blocks 110 single block 86 transceiver setting 88 read byte 107 command 80 routine 103 resource 8 RFID defined 9 definition 7 tag 16 RFID commands 61 routine command 63 main 63 read byte 103 O object CIP 125 operation 114, 116 mode 115 option power connectio
Index T tab connection 48 general 47 internet protocol 51 module info 50 port configuration 51 tag configuration 53 input 54 input channel 55 memory structure 16 output 57 output channel 57 product selection 24 RFID 16 Taiwan NCC warning statement 11 teach continuous read 116 topology device level ring 32 Linear 31 Star 31 transceiver 15 connection 29 field map 42 power up sequence 16 product selection 24 read setting 88 spacing 41 status indicator 15 U UID definition 7 username default 121 UUID definitio
RFID Systems User Manual Rockwell Automation Publication 56RF-UM001D-EN-P - November 2021 5
Rockwell Automation Support Use these resources to access support information. Technical Support Center Knowledgebase Local Technical Support Phone Numbers Literature Library Product Compatibility and Download Center (PCDC) Find help with how-to videos, FAQs, chat, user forums, and product notification updates. Access Knowledgebase articles. Locate the telephone number for your country. Find installation instructions, manuals, brochures, and technical data publications.