Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 24 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 11 - Communicating with Devices on an Ethernet Network, pages 195 to 204

Pages 195 to 204 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.1 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 1785-L20B and Allen-Bradley 1785-L40B

Page 195

Communicating with Devices on an Ethernet Network

11-21

Each file contains a hyperlink that takes you to the specific Data Table Monitor page for that file. 8. On the bottom of the Data Table Memory Map page, click on DT Monitor. The Data Table Monitor page appears and displays a table that shows the contents of the selected PLC-5 data table file:

The available and default display formats depend on the data type of the file. Press the Prev or Next buttons to display the previous or next page of the data table file. You can change the Data Table Address, Display Format and Refresh data every fields by entering the data in the text boxes and clicking the Change Parameters button. To change the refresh data function back to the default of 15 seconds, click the Default field. To disable the refresh data function, click the Disable button.

Publication 1785-UM012D-EN-P - July 2005

Page 196

11-22

Communicating with Devices on an Ethernet Network

Generating User Provided Web Pages You can use a text editor to generate up to 16 user provided web pages. The pages are stored in consecutive ASCII files of the PLC-5 controller. The channel configuration feature of RSLogix5 (release 5.20 or later) allows you to select the starting file and number of files used, as shown in the following example:

The software also allows you to import your user file from your PC to a specified ASCII file in the PLC-5 controller.

HTML Pages Referencing Other Pages/Servers - following are some basic considerations when referencing other pages or servers: • reference User Specified Pages in the PLC-5 by using the names user1.html through user 16.html • to reference a page on the same controller, specify a URL such as /user2.html • to reference a page on another controller, specify a URL such as http://iota4/user2/html

Publication 1785-UM012D-EN-P - July 2005

Page 197

Communicating with Devices on an Ethernet Network

11-23

• 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 numbers). Other considerations: #elements - if not specified, this defaults to one. If less than one, also defaults to one. Each element gets 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

• • •

MSG BT Control

• • •

BCD PID SFC

Display format defaults - Input and Output file elements are output in octal format. Status and BCD file elements are output in hexadecimal format with a leading 0x. Integer file elements are output in decimal format. Complex data types (Timer, Counter, MSG, BT, Control, PID, SCF) 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.

Publication 1785-UM012D-EN-P - July 2005

Page 198

11-24

Communicating with Devices on an Ethernet Network

HTML Examples - the following examples shows an HTML code segment in bold with a short description of what you would see on a web browser: The input image word is I:0 is <b><!ABDTR-I:0></b> (this segment displays the value of the first word of the input image table in the default format of octal with bold type) The time values in T4:0 are<!ABDTR-T4:0> (this segment will display the values of the timer in T4:0 in the default format of a table) I:0 is <,b><!ABDTR-I:0%d></b> (this segment displays the value of the first word of the input image table in decimal with bold type) T4:0 is <b><!ABDTR-T4:0%d></B> (this segment displays the values of the three words comprising timer T4:0 in decimal with bold type) N24:0 to n24:3 are <b><!ABDTR-N24:0,4></b> (this segment displays the values of the four words in N24:0 through N24:3 in decimal with bold type) S:21-S:23 are <b><!ABDTR-S:21, 3%d></b> (this segment displays the values of the three words in S:21 through S:23 in decimal with bold type)

Generating Custom Data Table Monitor Pages You can generate Custom Data Table Monitor pages with your text editor and then download them to the PLC-5 controller. 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

Publication 1785-UM012D-EN-P - July 2005

Page 199

Communicating with Devices on an Ethernet Network

11-25

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 controller. The format of the custom tag is: <!ABDTR-file_type{file_number}:{file_element}[,#elements][%forma t][#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). Other considerations: #elements - if not specified, this defaults to one. If less than one, also defaults to one. Each element gets 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 BCD

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 compacted 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 will be used. !comment - data after the exclamation point and up to the closing > will be displayed in the Comment column of the monitor.

Publication 1785-UM012D-EN-P - July 2005

Page 200

11-26

Communicating with Devices on an Ethernet Network

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 PLC-5 Controller Use RSLogix5 to import user page files to the PLC-5 ASCII files: 1. In the Project folder (under Data Files folder), right-click on the ASCII file where you will import the user page file, and choose Properties. 2. Click on Import HTML. 3. Use the browser to locate the user page file you want to import. 4. Double-click on the file to select it and click OK. 5. Repeat this process for each user page file. 6. When all user page files have been imported, go online with your PLC-5 controller.

Publication 1785-UM012D-EN-P - July 2005

Page 201

Communicating with Devices on an Ethernet Network

11-27

7. Click on the User Provided Pages link to view the User Provided Pages menu, as shown in the following example:

8. Click on the User Provided Page # to display that specific page. 9. Click on the link under the file heading to display an ASCII dump of the ASCII file. For example, click on the A15 to display the following screen:

Publication 1785-UM012D-EN-P - July 2005

Page 202

11-28

Communicating with Devices on an Ethernet Network

10. Select the User Provided Page #4 to display the following screen:

11. Click on [+]A22 to display the following screen:

You can change the radix display of N7:0 through N7:2: 1. Go back to the Custom Data Table Monitor page. 2. In the Address column, click on N:70 to display the radix selection page:

3. Click on a radio button to select the desired radix type.

Publication 1785-UM012D-EN-P - July 2005

Page 203

Communicating with Devices on an Ethernet Network

11-29

To see the Sample Extended Format page: 1. Go back to the Custom Data Table Monitor page. 2. In the Address column, click on the + before the T4:0 to display the Sample Extended Format:

This completes the Embedded Web Server enhancements and descriptions. Corrected anomalies and previous controller enhancements are described on the following pages.

Using Multihop Messaging

You can use multihop messaging over Ethernet, so that controllers can communicate over Ethernet with ControlLogix devices or through a ControlLogix Ethernet module (1756-ENET) to other PLC-5 and SLC controllers. You need a series E, revision D or later PLC-5 controller, and if using a sidecar module, you will need a series B or later 1785-ENET interface module. To take advantage of these enhancements, you need RSLogix 5 programming software, release 3.2 or later.

Publication 1785-UM012D-EN-P - July 2005

Page 204

11-30

Communicating with Devices on an Ethernet Network

Keep in mind these considerations: • RSLogix programming software on ControlNet and DH+ links cannot see the controllers on an Ethernet link. • The RSLinx DDE server on a ControlNet link cannot poll data from the controllers on an Ethernet link. • The RSLinx DDE server on a ControlNet link cannot accept unsolicited data from controllers on an Ethernet link. • Applications that register themselves as nodes on the RSLinx “Virtual Link” in workstations on ControlNet cannot accept unsolicited packets from controllers on Ethernet. • Applications that register themselves as nodes on the RSLinx “Virtual Link” in workstations on an Ethernet link cannot accept unsolicited packets from the controllers on an Ethernet link.

Multihop Examples The following examples use this system configuration: originating PLC-5 controller with Ethernet interface module

ControlLogix chassis 1 slot 0 Logix5550 controller slot 1 1756-ENET module slot 2 1756-CNB module slot 3 1756-DHRIO module RUN

DC INPUT

DC INPUT

Logix5550

POWER

DC INPUT

DC INPUT

A#24

A#24

A#24

A#24

FLT 0 1 2 3 4 5 6 7 O ST 8 9 10 11 12 13 14 15 K

DC INPUT

ST 0 1 2 3 4 5 6 7 O

DC INPUT

Logix5550

POWER

RUN

DC INPUT

DC INPUT

DC INPUT

DC OUTPUT

DC INPUT

ST 0 1 2 3 4 5 6 7

I/O

ST 8 9 10 11 12 13 14 15 K

RS232

FLT 8 9 10 11 12 13 14 15

OK

OK B

REM

DC OUTPUT ST 0 1 2 3 4 5 6 7

I/O RS232

BAT

RUN

ControlLogix chassis 2 slot 0 Logix5550 controller slot 1 1756-DHRIO module slot 3 1756-CNB module (node 4) slot 6 1756-CNB module

PROG

A

OK B

A

A#24

ST 0 1 2 3 4 5 6 7 O ST 8 9 10 11 12 13 14 15 K

A#24

OK

BAT

OK

DIAGNOSTIC

B

RUN

REM

PROG

A#24

FLT 0 1 2 3 4 5 6 7 O ST 8 9 10 11 12 13 14 15 K

A#24

FLT 8 9 10 11 12 13 14 15

OK

A

DIAGNOSTIC

B

A

DH+ link (link 30) ControlNet link Ethernet link

ControlNet link

DH+ link (link 12)

ControlNet PLC-5 controller (node 1)

PLC-5 controller (DH+ station 76)

The following table shows the multihop path you enter to communicate over these scenarios. Publication 1785-UM012D-EN-P - July 2005