creating link between rfid data and excel

11
Page 1of 11 Logix5000 Application Note Creation Date: 8/13/01 Extracting ASCII String Data from Logix Controllers using RSLinx Because of the variety of uses for this information, the user of and those responsible for applying this information must satisfy themselves as to the acceptability of each application and use of the program. In no event will Allen-Bradley Company be responsible or liable for indirect or consequential damages resulting from the use or application of this information. The illustrations, charts and examples shown in this application note are intended solely to illustrate the principles of programmable controllers and some of the methods used to apply them. Particularly because of the many variables and requirements associated with any particular installation, Allen-Bradley Company cannot assume responsibility or liability for actual use based upon the illustrated used and applications. No patent liability is assumed by Allen-Bradley Company with respect to use of information, circuits, equipment, or software described in this text. Reproduction of the contents of the application note, in whole or in part, without the express written consent of the Allen-Bradley Company is prohibited. V1.0

Upload: jmtriggerz

Post on 23-Oct-2015

9 views

Category:

Documents


0 download

DESCRIPTION

Creating Link Between RFID Data and Excel

TRANSCRIPT

Page 1: Creating Link Between RFID Data and Excel

Page 1of 11

Logix5000 Application Note Creation Date:8/13/01

Extracting ASCII String Data from Logix Controllers using RSLinx

Because of the variety of uses for this information, the user of and those responsible for applying this information must satisfy themselves as to the acceptability of each application and use of the program. In no event will Allen-Bradley Company be responsible or liable for indirect or consequential damages resulting from the use or application of this information.

The illustrations, charts and examples shown in this application note are intended solely to illustrate the principles of programmable controllers and some of the methods used to apply them. Particularly because of the many variables and requirements associated with any particular installation, Allen-Bradley Company cannot assume responsibility or liability for actual use based upon the illustrated used and applications.

No patent liability is assumed by Allen-Bradley Company with respect to use of information, circuits, equipment, or software described in this text.

Reproduction of the contents of the application note, in whole or in part, without the express written consent of the Allen-Bradley Company is prohibited.

V1.0

Page 2: Creating Link Between RFID Data and Excel

Page 2of 11

PURPOSEThe purpose of this application note is to demonstrate how to create a DDE or OPC topic in RSLinx to extract ASCII String data from a Logix-based controller, to a Microsoft Excel spreadsheet.

SCOPEThis application note assumes the user is already familiar with Allen-Bradley programmable controllers, particularly the ControlLogix 5550 or 5555 controller.

SOFTWARE and FIRMWARE REVISIONS for this Example;RSLogix 5000 version 8.0RSLinx version 2.30 (Build 39)5550 firmware revision 8.17Microsoft Excel 2000 version 5.0 2195 Service Pack 1 Build 2195

PROCEDURE1. Open RSLinx and select Communications RSWho from the tool bar.2. Drill down through the tree path and highlight the 5550 processor that holds the string data to be

accessed.3. Right click on the highlighted processor and select Configure New DDE/OPC Topic from menu.4. A window will open with Topic information on the left side and three tabs, Data Source, Data

Collection and Advanced Communications. A new topic will be created using the name of the 5550 processor as the default Topic. For this example I renamed the topic String2Excel.

V1.0

Page 3: Creating Link Between RFID Data and Excel

Page 3of 11

5. The Data Source tab should have the 5550 processor highlighted, SerialPortTest1 is the name of the 5550 processor in this example.

6. Set the Data Collection tab like the following diagram

V1.0

Page 4: Creating Link Between RFID Data and Excel

Page 4of 11

7. Set the Advanced Communications tab like the following diagram.

V1.0

Page 5: Creating Link Between RFID Data and Excel

Page 5of 11

The Station (decimal) is the Slot Number that your ControlLogix 5550 processor is located. The 5550 for this example is located in Slot 7.

8. Click [Apply] and [Done] to save the new topic parameters.9. Select Edit Copy DDE/OPC Link from the RSLinx toolbar.10. A window like the following will appear;

V1.0

Page 6: Creating Link Between RFID Data and Excel

Page 6of 11

11. Click on the plus sign to the left of RSLinx OPC Server (Node: <Local>)12. The display will expand to show the String2Excel topic that was created. Click the plus sign to the left of

String2Excel, then click the plus sign to the left of Online. The tree will expand to show all tags that were created in this project. For this example, string data from Dest_1 will be used to pull string data from. Dest_1 were previously created as a STRING type using RSLogix5000.

V1.0

Page 7: Creating Link Between RFID Data and Excel

Page 7of 11

13. By expanding the plus sign to the left of Dest_1, DATA will appear underneath. Highlight the Dest_1.DATA in the left window pane. All available Dest_1.DATA words, [0] through [81], should appear in the right window pane as indicated below;

V1.0

Page 8: Creating Link Between RFID Data and Excel

Page 8of 11

14. Highlight Dest_1.DATA[0] in the right window pane. Notice the information that has appeared in the Data Table Address field below the window panes.

15. Cursor to the right-end of the information in the Data Table Address field and backspace until L1,C1 are removed.

16. Enter the following, SC20 (or SC(1-484). The SC stands for STRING type and the number represents how many characters to import. In this example, 20 characters will be inserted into MS Excel.

V1.0

Page 9: Creating Link Between RFID Data and Excel

Page 9of 11

17. Click [OK]18. Open MS Excel. Select the cell that you want to contain the string information. 19. Select Edit Paste Special from the Excel toolbar.20. The following window will appear. Click on the Paste link: radio button, then click [OK].

V1.0

Page 10: Creating Link Between RFID Data and Excel

Page 10of 11

21. The string information from Dest_1.DATA in the 5550 processor will now appear in the Excel cell selected, as indicated below;

V1.0

Page 11: Creating Link Between RFID Data and Excel

Page 11of 11

V1.0