The text of a manual · part 26 of 30
SLC 500 Modular Hardware Style User Manual, pages 251 to 260
Pages 251 to 260 of 296
The original document is the PDF (3.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-L524
Page 251
Communicating with Devices on an Ethernet Network
251
Data Table Memory Map The Data Table Memory Map page displays a list of the data table files, their type, and size in elements for a connected SLC 5/05 processor.
Each file contains a hyperlink that takes you to the specific Data Table Monitor page for that file. When you click on a particular file, the Data Table Monitor page appears, displaying the contents of the data table file you selected. Data Table Monitor
The available and default display formats depend on the data type of the file.
Publication 1747-UM011G-EN-P - June 2008
Page 252
252
Communicating with Devices on an Ethernet Network
Press Prev or Next to display the previous or next page of the data table file, if any. You can change the Data Table Address, Display format and Refresh data every xx seconds fields by entering data in the text boxes and clicking Change Parameters. To change the refresh data function back to the default of 15 s, click Default. To disable the refresh data function, click Disable.
Data Table Monitor You may also go directly to the Data Table Monitor screen by selecting it on the home page or by clicking on D/T Monitor on the bottom row of the other pages. In this case, since a particular data file has not been chosen, a default screen is displayed.
From here you may enter in the starting data table address to display.
Publication 1747-UM011G-EN-P - June 2008
Page 253
Communicating with Devices on an Ethernet Network
253
User Provided Pages You can use a text editor to generate up to 16 user-provided web pages. Each page is stored in four consecutive ASCII files of the SLC 5/05 processor. The channel configuration feature of RSLogix 500 software (version 6.0 or later), lets you select the starting file number and the number of user pages to be stored.
RSLogix 500 software (version 6.0 or later) also lets you import an HTML file from your personal computer to specified ASCII files in the SLC 5/05 processor. See page 257 for details.
HTML Pages Referencing Other Pages/Servers - following are some basic considerations when referencing other pages or servers: • reference user-specified pages in the SLC 5/05 processor by using the names user1.html...user16.html • to reference a page on the same processor, specify a URL such as /user2.html • to reference a page on another processor, specify a URL such as http://www.xxx.yyy.zzz/user2.html, where www.xxx.yyy.zzz is the IP address of the processor • you can reference other WWW servers and display images from other sources without affecting your usage of data table memory (except for the size of the HTTP reference) Referencing Data Table Memory - reference data table memory locations by placing custom tags into your HTML source which specify Publication 1747-UM011G-EN-P - June 2008
Page 254
254
Communicating with Devices on an Ethernet Network the data table location and optional formatting information. Use the following format for the custom tag: <!ABDTR-file_type{file_number}:{file_element}[,#elements][%format]> The items surrounded by {} are sometimes optional. The items surrounded by [] are always optional. You must always specify the basic file reference. Depending on which file is being referenced, file_number or file_element may be defaulted. If the file_type is I, O or S, the file_number does not need to be specified, but the file_element must be specified. If the file_type is not one of the three special files, the file_number must be specified and the file_element may default to zero (the input, output and status files have fixed file numbers). When defining your custom tag, consider the following items. Custom Tag Considerations Tag Item
Description
#elements
If not specified, this defaults to one. If it is less than one, it also defaults to one. Each element is output using the same format (whether specified with % format or defaulted).
%format
Legal values are %d for decimal and %x for hexadecimal. The following file types allow the format to be specified: • Input • Output • Status • Integer
• Timer • Counter • Control
Display format defaults
Input and output file elements are output in decimal format. Status file elements are output in hexadecimal format with a leading 0x. Integer file elements are output in decimal format. Complex data types (Timer, Counter, Control) are output as a table with bits and important words specified.
Fixed display formats
Float files are always output in floating point format (C%g format). ASCII and STring files are always output as a null terminated text string. Binary files are always output as two binary bytes.
HTML Examples - the following example shows an HTML code segment with a short description of what you would see on a web browser.
Publication 1747-UM011G-EN-P - June 2008
Page 255
Communicating with Devices on an Ethernet Network
255
HTML Code Examples
HTML Code
Web browser displays
Input image word I:0 <!ABDTR-I:0> the value of the first word of the input image table in the default format of decimal with bold type.
Timer T4:0
<!ABDTR-T4:0> the values of the timer in T4:0 in the default format of a table.
Timer T4:0
<!ABDTR-T4:0%d> the values of the three words comprising timer T4:0 in decimal with bold type.
N24:0 to N24:3
<!ABDTR-N24:0,4> the values of the four words in N24:0 through N24:3 in decimal with bold type.
S:21 to S:23
<!ABDTR-S:21, 3%d> the values of the three words in S:21 through S:23 in decimal with bold type.
Publication 1747-UM011G-EN-P - June 2008
Page 256
256
Communicating with Devices on an Ethernet Network
Generating Custom Data Table Monitor Pages You can generate Custom Data Table Monitor pages with your text editor then download them to the SLC 5/05 processor using RSLogix 500 version 6.0 or later. The first element of the file must contain a special tag as follows: <!ABCDM-xx> where xx is the automatic refresh rate in seconds (01...99). A value outside the range defaults to a snapshot display. You can modify the refresh rate three different ways: • Enter the desired refresh rate and press Change • Select Default for a 15 second refresh • Disable the refresh by selecting Disable Referencing Data Table Memory - the Data Table locations in the Custom Data Table Monitor are referenced by placing custom tags into the ASCII file of the processor. The format of the custom tag is: <!ABDTR-file_type{file_number}:{file_element}[,#elements][%format] [#expand][!comment]> The items surrounded with {} are sometimes optional, whereas the items surrounded by [] are always optional. You must always specify the basic file reference. Depending on which file is being referenced, file_number or file_element may be defaulted. If the file_type is I, O or S, the file_number does not need to be specified, but the file_element must be specified. If the file_type is not one of the three special files, the file_number must be specified and the file_element may default to zero (because the input, output and status files have fixed numbers).
Publication 1747-UM011G-EN-P - June 2008
Page 257
Communicating with Devices on an Ethernet Network
257
Tag Elements Tag Item
Description
#elements
If not specified, this defaults to one. If it is less than one, also defaults to one. Each element is output using the same format (whether specified with %format or defaulted). Any associated comment is displayed only for the first element.
%format
Legal values are %b for binary, %d for decimal, %0 for octal and %x for hexadecimal. The following file types allow the format to be specified: • Input • Output
• Status • Integer
All other file types are displayed in an appropriate format. If a %format modifier is present, the format may be changed by clicking on the file type/number via a web browser. #expand
Legal values are #c and #e. This modifier determines whether the structure file types are displayed in their expanded or compact formats. If a # modifier is present, the format may be changed by clicking on the [+]/[-] via a web browser. If a #modifier is not present, the default display of expanded is used.
!comment
Data after the exclamation point and up to the closing > is displayed in the Comment column of the monitor.
Fixed display formats
Float files are always output in floating point format (C%g format). String files are always output as a null terminated text string. Binary files are always output as four binary nibbles. ASCII files are displayed in a memory dump format.
Importing User Page Files to the SLC 5/05 Processor Follow this procedure to use RSLogix 500 software to import user page files to the SLC 5/05 ASCII files. 1. In the Project folder (under the Data Files folder), right-click on the first of the block of four consecutive ASCII files where you will import the user page HTML file. 2. Click Properties. 3. Click Import HTML. 4. Use the browser to locate the user page HTML file you want to import. 5. Double-click on the file to select it. 6. Click OK. 7. Repeat this process for each user page file. Publication 1747-UM011G-EN-P - June 2008
Page 258
258
Communicating with Devices on an Ethernet Network
8. When all user page files have been imported, go online with your SLC 5/05 processor. 9. Select the User provided Pages link to view the User Provided Pages menu.
Click the User Provided Page #X to display that specific page.
You can change the radix display of I, O, S, and N file addresses, which appear with an underline. 1. Go back to the User-Provided Custom Data Table Monitor page. 2. In the Address column, click on an underlined address to display the radix selection page. 3. Click on a radio button to select the desired radix type. Follow this procedure to see the Sample Extended Format page. Publication 1747-UM011G-EN-P - June 2008
Page 259
Communicating with Devices on an Ethernet Network
259
1. Go back to the User-Provided Custom Data Table Monitor page. 2. In the Address column, click + before an address to display the Sample Extended Format. Click the link under the file heading to display an ASCII dump of the ASCII file. For example, click A116. This screen appears.
Publication 1747-UM011G-EN-P - June 2008
Page 260
260
Communicating with Devices on an Ethernet Network
Notes:
Publication 1747-UM011G-EN-P - June 2008