The text of a manual · part 38 of 70
SLC 500 Instruction Set Reference Manual, pages 371 to 380
Pages 371 to 380 of 694
The original document is the PDF (7.2 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-L514
Page 371
SLC Communication Channels
13-41
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 (version 6.0 or later) allows you to select the starting file number and the number of user pages to be stored, as shown in the following example. Figure 13.8 Channel Configuration Screen in RSLogix 500
RSLogix 500 (version 6.0 or later) allows you to import an HTML file from your PC to specified ASCII files in the SLC 5/05 processor. See page 13-45 for details. RSLogix 500 (version 6.3 or higher) allows you to export a page from the SLC 5/05 processor into an HTML source file on your PC. Refer to page 13-48 for more information.
Publication 1747-RM001G-EN-P - November 2008
Page 372
13-42
SLC Communication Channels
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 by using the names user1.html through 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 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).
Publication 1747-RM001G-EN-P - November 2008
Page 373
SLC Communication Channels
13-43
When defining your custom tag, consider the following: Table 13.12 Custom Tags: 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 Table 13.13 HTML Examples: 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-RM001G-EN-P - November 2008
Page 374
13-44
SLC Communication Channels
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 the Change button • Select the Default button for a 15 second refresh • Disable the refresh by selecting the Disable button 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). When defining your custom tag, consider the following: Table 13.14 Custom Tag Definition
Publication 1747-RM001G-EN-P - November 2008
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.
Page 375
SLC Communication Channels
Tag Item
Description
%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
13-45
• 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 Provided Page Files to the SLC 5/05 Processor Use RSLogix 500 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 on Properties. 3. Click on 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 desired user page file. 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, as shown in the following example.
Publication 1747-RM001G-EN-P - November 2008
Page 376
13-46
SLC Communication Channels
Figure 13.9 User Provided Pages Menu
Click on the User Provided Page #X to display that specific page. Figure 13.10 User Provided Page #5 Displayed
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.
Publication 1747-RM001G-EN-P - November 2008
Page 377
SLC Communication Channels
13-47
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. To see the Sample Extended Format page: 1. Go back to the User-Provided Custom Data Table Monitor page. 2. In the Address column, click on the + before an address to display the Sample Extended Format. Click on the link under the file heading to display an ASCII dump of the ASCII file. For example, click on the A116 to display the following screen. Figure 13.11 File A116 Dump
Publication 1747-RM001G-EN-P - November 2008
Page 378
13-48
SLC Communication Channels
Exporting User Provided Page Files from the SLC 5/05 Processor To export user provided pages to HTML files: 1. In the Project folder (under the Data Files folder), right click on the first block of four consecutive ASCII files you want to export. 2. Click on Properties. 3. Click on Export HTML. 4. Name the file and browse to the subdirectory to save it in. 5. Click OK. 6. Repeat this process for each desired user page file.
Publication 1747-RM001G-EN-P - November 2008
Page 379
SLC Communication Channels
DF1 Full-duplex Communications
13-49
DF1 Full-duplex protocol (also referred to as DF1 point-to-point protocol) is provided for applications where RS-232 point-to-point communication is required. This type of protocol supports simultaneous transmissions between two devices in both directions. You can use channel 0 as a programming port, or as a peer-to-peer port using the MSG instruction. In full-duplex mode, the SLC 5/03 (or higher) processor can send and receive messages. When the processor receives messages, it acts as an end device - a device that stops the transmission of data packets. The processor ignores the destination and source addresses received in the data packets. However, the processor exchanges these addresses in the reply that it transmits in response to any command data packet that it has received. If you use a modem with DF1 channel 0 in the full-duplex mode, it must be capable of operating in full-duplex mode. Typically, a dial-up modem is used for communication over telephone lines.
Configuring Channel 0 for DF1 Full-duplex To configure an SLC 5/03, SLC 5/04 or SLC 5/05 processor channel 0 for DF1 full-duplex, do the following using your programming software.
To bring up the Channel Configuration interface, double-click on the Channel Configuration icon.
Publication 1747-RM001G-EN-P - November 2008
Page 380
13-50
SLC Communication Channels
Define the location of the diagnostic file used for Channel Status here. For channel status details, refer to 13-53.
1. On the Channel 0 tab, choose DF1 Full-Duplex for your Driver. 2. Configure the communication driver characteristics according to table 13.15.
Publication 1747-RM001G-EN-P - November 2008