Testing the installation example, F-46 – Rockwell Automation PLC-5 Fieldbus Solutions for Integrated Architecture User Manual User Manual

Page 294

Advertising
background image

Publication 1757-UM006A-EN-P May 2002

F-46 1788-CN2FF Installation Example

10. Click Apply.

At this point we have the first two parts of the structure defined.
Enter the remaining members as shown below.

11. Click OK.

We now have a structure with which we can create tags just the
same as Timers, Counters, etc. Let's create a tag which will hold
the data coming from the Linking device.

12. Open the controller tags database and select the Edit tab on the

bottom of the window.

13. Enter a tag name of: LD_Node_9

14. Tab over to the Data Type field.

15. Click the button with the 3 dots to bring up the choices for data

type.

The FF_Linking_Device is one of the data types listed.

16. Set the data type to FF_Linking_Device and click OK.

17. Press Enter to accept the new tag.

18. Open MainRoutine and enter the following rung.

This rung will copy the contents of the input data in the linking device
tags to the tag LD_Node_9. The length is set to 1 since we are only
copying to one element of LD_Node_9. The copy instruction will
actually copy 12 bytes, since the copy instruction always bases the
length on the size of the destination tag. Since the destination tag is
actually a structure of 12 bytes, 1 element is 12 bytes.

19. Accept the rung and save your project.

20. Download the project to the controller.

We are now ready to test the project.

Testing the Installation
Example

1. Put the processor in RUN mode and view the individual

elements under the tag structure LD_Node_9.

2. You should be able to read all the values directly now.

Advertising