Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
All rights reserved. No part of this documentation shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Invensys Systems, Inc. No copyright or patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this documentation, the publisher and the author assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein. The information in this documentation is subject to change without notice and does not represent a commitment on the part of Invensys Systems, Inc. The software described in this documentation is furnished under a license or nondisclosure agreement. This software may be used or copied only in accordance with the terms of these agreements.
2001, 2003-2004 Invensys Systems, Inc. All Rights Reserved. Invensys Systems, Inc. 26561 Rancho Parkway South Lake Forest, CA 92630 U.S.A. (949) 727-3200 http://www.wonderware.com Trademarks All terms mentioned in this documentation that are known to be trademarks or service marks have been appropriately capitalized. Invensys Systems, Inc. cannot attest to the accuracy of this information. Use of a term in this documentation should not be regarded as affecting the validity of any trademark or service mark. Alarm Logger, ActiveFactory, ArchestrA, Avantis, DBDump, DBLoad, DT Analyst, FactoryFocus, FactoryOffice, FactorySuite, FactorySuite A2, InBatch, InControl, IndustrialRAD, IndustrialSQL Server, InTouch, InTrack, MaintenanceSuite, MuniSuite, QI Analyst, SCADAlarm, SCADASuite, SuiteLink, SuiteVoyager, WindowMaker, WindowViewer, Wonderware, and Wonderware Logger are trademarks of Invensys plc, its subsidiaries and affiliates. All other brands may be trademarks of their respective owners.
Contents
Contents
Wonderware WWRSLinx I/O Server..................5
Introduction ............................................................................................ 5 Communications Protocols................................................................. 5 Accessing Remote Items via the I/O Server ....................................... 6 Getting Started Quickly with the I/O Server .......................................... 7 Configuring the I/O Server..................................................................... 8 Configuring a Topic Definition .............................................................. 9 Topic Definition.................................................................................. 9 WWRSLINX Topic Definition......................................................... 10 Saving the I/O Servers Configuration File.......................................... 13 Save Configuration ........................................................................... 13 Saving Multiple Configuration Files ................................................ 13 Configuring the I/O Server Settings..................................................... 15 Server Settings .................................................................................. 15 Accessing I/O Server Information........................................................ 17 Information/Reports.......................................................................... 17 Information/Diagnostics ................................................................... 19 Accessing I/O Server Help ................................................................... 22 Contents ............................................................................................ 22 How to Use Help .............................................................................. 22 About WWRSLINX ......................................................................... 22 Item Names .......................................................................................... 23 PLC-2 Item Naming ......................................................................... 23 PLC-3 Item Naming ......................................................................... 27 PLC-5 Item Naming ......................................................................... 33 PLC-5/250 (Pyramid Integrator) Item Naming ................................ 43 SLC 500 Item Naming...................................................................... 52 Monitoring the Status of Communications with a PLC ....................... 61 Using the Status Item in Excel.......................................................... 61 Monitoring the Status of Communications with InTouch .................... 62 Using DDEStatus and IOStatus in Excel.......................................... 62 Reading Values from the I/O Server into Excel ................................... 63 Writing Values to the I/O Server from Excel ....................................... 64 Troubleshooting I/O Server Communications Problems ..................... 65 Debugging Communications Between InTouch and an I/O Server.. 65 Debugging Communications Between SuiteLink and an I/O Server 68 Debugging Communications Between an I/O Server and a PLC..... 68
Contents
Introduction
The Wonderware WWRSLinx I/O Server (referred to as the server through the remainder of this Users Guide) is a Microsoft Windows application program that acts as a communications protocol server. It allows other Windows application programs access to data in PLCs (also referred to as devices) attached to a ControlNet network. The server requires the Rockwell Software RSLinx OEM package. WWRSLinx can directly access data in 1785 PLC-5 ControlNet processors (for example, PLC-5/20C, PLC-5/40C). While the server is primarily intended for use with Wonderware InTouch, it may be used by any Microsoft Windows program capable of acting as a DDE, FastDDE, or SuiteLink client.
Communications Protocols
Dynamic Data Exchange (DDE) is a communications protocol developed by Microsoft to allow applications in the Windows environment to send/receive data and instructions to/from each other. It implements a client-server relationship between two concurrently running applications. The server application provides the data and accepts requests from any other application interested in its data. Requesting applications are called clients. Some applications such as InTouch and Microsoft Excel can simultaneously be both a client and a server. FastDDE provides a means of packing many proprietary Wonderware DDE messages into a single Microsoft DDE message. This packing improves efficiency and performance by reducing the total number of DDE transactions required between a client and a server. Although Wonderware's FastDDE has extended the usefulness of DDE for our industry, this extension is being pushed to its performance constraints in distributed environments. SuiteLink uses a TCP/IP-based protocol and is designed specifically to meet industrial needs such as data integrity, high-throughput, and easier diagnostics. This protocol standard is only supported on Microsoft Windows 2000, Windows XP, and Windows 2003. SuiteLink is not a replacement for DDE or FastDDE. The protocol used between a client and a server depends on your network connections and configurations. SuiteLink was designed to be the industrial data network distribution standard and provides the following features:
Value Time Quality (VTQ) places a time stamp and quality indicator on all data values delivered to VTQ-aware clients.
Extensive diagnostics of the data throughput, server loading, computer resource consumption, and network transport are made accessible through the Microsoft Windows 2000, Windows XP, and Windows 2003 operating systems Performance Monitor. This feature is critical for the scheme and maintenance of distributed industrial networks. Consistent high data volumes can be maintained between applications regardless if the applications are on a single node or distributed over a large node count. The network transport protocol is TCP/IP using Microsofts standard WinSock interface.
topic name
Note If this is a new install, it is essential to select Wonderware Common Components to be installed first in Step 3. 4. 5. 6. 7. 8. Restart the computer and restart Windows. Start RSLinx unless it was set to start automatically as a Windows service. Start the server. (Select the server icon from the servers program group.) On the Configure menu, click Topic Definition to configure topics for the PLCs on the ControlNet network. The server is now ready for use.
If the server starts up as an icon, double-click on the icon to open the server's window.
2.
To access the options used for the various configurations, open the Configure menu.
One or more topic definitions must exist for each PLC that the server will communicate with. Each topic definition must contain a unique name for the PLC associated with it. When this option is selected, the Topic Definition dialog box will appear:
Topic Definition
Note Once topics have been defined, their names will be listed in the Topics section of this dialog box.
Click this Done button to close the dialog box and accept any new definitions, modifications or deletions made.
To modify or view an existing topic definition, select its name in the list and click on the Modify button.
The WWRSLINX Topic Definition dialog box will appear, displaying the selected topic definition.
To delete an existing topic definition, select its name in the list and click on this Delete button.
10
1.
Enter a unique name (up to 32 characters long) for the PLC in this text box. For example, ABPLC.
Note When communicating with InTouch, this exact name is used as the topic name in the Access Name definition.
2.
This is a dynamic field, as you select a PLC type, Connect Type and Network Addressing change.
3.
Enable this option if using a 1785 PLC-5 that supports PID, ASCII String, Block Transfer, and SFC Status Files.
11
This check box is available only when PLC-5 is selected for the PLC Family.
4.
5.
Select the Port Mapping option that corresponds to RSLinxs INTERCHANGE Port Mappings dialog box.
6.
7.
Valid station addresses for ControlNet devices are between 1 and 99 decimal. Bridge, Link, and Gateway are currently not supported.
8.
Enter the maximum number of consecutive discrete values to be read at one time.
The Discrete Read Block Size value can be any integer between 8 and 1840 that is an even multiple of 8. For example, 8, 24, 32, 80, and so on.
9.
The Register Read Block Size value can be any integer between 1 and 115.
12
10. Enter the frequency (in milliseconds) that the server will read (poll) the items/points associated with this topic.
Enter a zero in this box when configuring a topic for Unsolicited Messages; this in effect disables periodic polling.
Note Different items/points can be polled at different rates by defining multiple topic names for the same PLC and setting different update rates for each topic.
11. Enter the amount of time (in seconds) that the PLC will be given to reply to commands from the server. Note This timeout is sustained only when the PLC fails to respond. When the PLC is responding normally, there is no penalty. The default value of 12 seconds should be sufficient for most configurations. 12. Click Cancel to close the dialog box without saving changes. 13. Click OK to accept the topic definition and return to the Topic Definition dialog box:
14. Click Done to close the dialog box. Note If this is the first configuration performed for the server, the Save Configuration dialog box will appear prompting you to save the configuration file.
13
Save Configuration
This text box displays the drive\directory into which the server will save the current configuration file. To save the configuration file to a different directory, enter the path for that directory in this text box.
This option is selected and disabled on initial entry to the Save Configuration dialog box.
This option becomes active if the Configuration File Directory is changed. Once enabled, selecting this option will record a new Configuration File path in the WIN.INI file. This option allows the server to find its configuration file automatically each time it is started.
Note When the server initially starts up, it attempts to locate its default configuration file by first checking the WIN.INI file for a previously specified path. If a path is not present in the WIN.INI file, the server will assume that the current working directory is to be used.
Click Defaults to reset the settings to their default values without saving changes. Click OK to save the configuration file to the specified directory.
14
For example, to start the server using a configuration file located in a different directory: 1. 2. 3. Click the Start button on the taskbar. Select Run. Enter the following in the Open combo box: WWRSLINX /d:c:\directoryname
15
When the Server Settings option is selected, the Server Settings dialog box will appear.
Server Settings
1.
Enter the frequency (in milliseconds) that the server is to check for data to process.
This should be approximately two to four times faster than the fastest rate desired to update data from the equipment.
2.
To create a new default configuration file, enter the complete path for the directory in which the file is to be saved in this text box.
This new path will automatically be written to the WIN.INI file and the server will use this path to load its configuration file the next time it is started.
Note There is no limit to the number of configuration files created. However, each must be saved in a different directory. When using the server with InTouch, it is recommended that you save the configuration file in your application directory. For more information on the Configuration File, see "Saving the I/O Servers Configuration File" in this User's Guide.
16
3.
Windows 2000, Windows XP, or Windws 2003 offers the capability of running applications even when a user is not logged on to the system. This is valuable when systems must operate in an unattended mode. Enabling this option and restarting the system will cause the server to run as a Windows service.
Note However, to view configuration information or to reconfigure the server, you must log on to the system. Any server-related problems that may arise such as missing adapter cards, licensing failures, or device drivers not loading will not be visible to you until a logon is performed. 4. Disabling this option and restarting the system will cause the server to run as a Windows application program once again.
Note It is highly recommended that the server is configured and communicating successfully prior to running it as a Windows service. 5. 6. Click Cancel to close the dialog box without saving changes. Click OK to accept the server settings.
7.
Note You must restart the server for the changes to take effect.
17
Information/Reports
Configuration File-Verbose
Reads the current configuration file (.CFG) from disk and prints it to the Wonderware Logger in a verbose form.
The report includes a text description of every selection made within the server with regards to the configured Adapters and Topics.
For example, the following report was generated from a configuration file that defined two Topics (ABPLC and BACKUPPLC) attached to the Adapter.
Notice the hierarchical layout, wherein the Adapter comes first, then all Topics attached to that Adapter are indented and listed below it.
=== Verbose Report of Configuration File === KT Card: 'Wonder0' Memory Address: D400 (Hex) Reply Timeout: 3 (Seconds) DH+ Address: 1 (Octal) Firmware Source: Server Supplied Termination Resistor: DISABLED Configured Topics Attached To This Card: Topic: 'BACKUPPLC' PLC Model: PLC5 -- Addressing -Connects to remote DH+ Station: 2 (Octal) through a bridge configuration. The local bridge device, a 1779-KP5 module, is DH+ Station: 0 (Octal) and the remote device is Non-DH+ Station: 0 (Octal) -- Other Information -Update Interval = 1000 (Milliseconds) PLC Does Not Support PID and String file types Max Block Size for Reading Bits: 1824 Max Block Size for Reading Words: 108 Topic: 'ABPLC' PLC Model: PLC5 Connects to local DH+ Station: 0 (Octal) Update Interval = 1000 (Milliseconds)
18
PLC Supports PID and String file types Max Block Size for Reading Bits: 1840 Max Block Size for Reading Words: 115 Total Configured Topics: 2 Total Configured Boards: 1 === End Verbose Report ===
Configuration File-Terse
Reads the current configuration file (.CFG) from disk and prints it to the Wonderware Logger in a terse (short) form.
For example, the following report was generated from a configuration file that defined two Topics (ABPLC and BACKUPPLC) attached to the Adapter.
Notice the hierarchical layout, wherein the Adapter comes first, then all Topics attached to that Adapter are indented and listed below it.
=== Summary Report of Configuration File === Adapter Card: 'Wonder0' Topic: 'BACKUPPLC' Topic: 'ABPLC' === End of Summary Report ===
The report includes a text description of every currently active Adapter and Topic within the server during runtime.
For example, the following report was generated from a configuration file that defined one Adapter (Wonder0) and two Topics (ABPLC and BACKUPPLC) attached to the Adapter.
Notice the hierarchical layout, wherein the Adapter comes first, then all Topics attached to that Adapter are indented and listed below it.
=== Report of Active Ports/Topics === KT Card: 'Wonder0' Memory Address: D400 (Hex) Reply Timeout: 3 (Seconds) DH+ Address: 1 (Octal) Firmware Source: Server Supplied Termination Resistor: DISABLED Active Topics Attached To This Card: Topic: 'backupplc' PLC Model: PLC5 -- Addressing -Connects to remote DH+ Station: 2 (Octal) through a bridge configuration. The local bridge device, a 1779-KP5 module, is DH+ Station: 0 (Octal) and the remote device is Non-DH+ Station: 0 (Octal) -- Other Information -Update Interval = 1000 (Milliseconds) PLC Does Not Support PID and String file types
19
Max Block Size for Reading Bits: 1824 Max Block Size for Reading Words: 108 Read Messages: 1 Write Messages: 0 Total Active Items: 1 Topic: 'abplc' PLC Model: PLC5 Connects to Local DH+ Station: 0 (Octal) Update Interval = 1000 (Milliseconds) PLC Supports PID and String file types Max Block Size for Reading Bits: 1840 Max Block Size for Reading Words: 115 Read Messages: 1 Write Messages: 0 Total Active Items: 1 Total Active Topics: 2 Total Active Ports: 1 ===End of Active Ports/Topics Report ===
Server Settings
Reads the current settings of the server from the WIN.INI file and prints them to the Wonderware Logger in report form.
This report provides information on the settings as configured in the Server Settings dialog box
For example:
=== Report of Server Settings === Protocol Timer Tick: 10 (Milliseconds) Valid Data Timeout: 60000 (Milliseconds) Config File Path: 'C:\IOServer\' The server will purge any pending writes upon entering slow poll mode === End of Server Settings Report ===
Information/Diagnostics
20
Server Information
When one or more topics are active, they will be displayed in the Active Topics list box.
Selecting a topic within the Active Topics list box will cause the dialog box to display the Active Items associated with the selected topic.
Normally, the client area of the server displays a list of all the active topics and messages.
Note This list can be very long in large applications, so long in fact that the list extends off the end of the window. This window was not designed to be scrollable due to performance considerations. Therefore, when many topics and many messages are active, the screen will not be able to display the entire list.
To provide a clearer picture of what is happening inside the server, this dialog box modifies the content of the client area. When this dialog box is open and a Topic has been selected, the client area displays ONLY the messages associated with the selected topic. Additionally, when an item is selected, the client area will move the line containing the description of the message to the top of the list and paint it red.
21
Displays the number of active items on the selected topic as well as the number of active messages on the selected topic.
Instructs the server to dump a one-time TRACE of the selected item. This trace consists of three messages dumped to the Wonderware Logger:
or:
Acknowledgment that the TRACE has been requested. A dump of the message request as it was sent to the PLC. A dump of the data returned by the PLC in response to the request made. A message indicating that the PLC failed to respond within the Reply Timeout period. In this case, no data is dumped to the logger, because nothing was sent back from the PLC.
Dumps a report to the Wonderware Logger describing the items and messages associated with the selected topic.
This report is very detailed. For large applications with many items, the server may pause while outputting this report; this will significantly impact the performance of the server while outputting the report.
22
Contents
This option is used to display the table of contents for the Help file.
About WWRSLINX
This option is used to access miscellaneous information regarding the server, such as the software version, copyright information, license information, and so on. Your FactorySuite system license information can be viewed through the license viewing utility that is launched from the About dialog box. Note For more information on the license viewing utility, see your FactorySuite System Administrators Guide.
23
Item Names
The Wonderware WWRSLinx I/O Server supports item names that follow the conventions described for the Allen-Bradley PLC-2, PLC-3, PLC-5, PLC5/250, and SLC 500 controllers.
Normally data is written using Unprotected Writes. Protected Writes can be selected by appending a "P" to the end of an item name (separated by a space). Protected and Unprotected items may be freely mixed in an application.
Using Protected Writes will require the PLC-2 ladder program to contain appropriately configured memory protection rungs. Without these rungs, Protected Writes will be rejected by the PLC.
These values will be treated as unsigned 16-bit values (0 to 65535) unless one of the qualifiers described below is appended to the item name. The qualifiers must be separated from the data-table address by a blank space (using the spacebar). S or SIGNED 4 or 4BCD 3 or 3BCD The value is treated as a signed 16-bit number (32768 to 32767). The value is treated as a 4-digit BCD number (0 to 9999). The value is treated as a 3-digit BCD number (0 to 999). Bits 0 through 13 octal are used, bits 14 through 17 octal are ignored.
24
Examples: 030 030 S 030 SIGNED 030 3 030 3BCD 030 4BCD 030 4 A 16-bit unsigned binary value (0 to 65535). A 16-bit signed binary value (-32768 to 32767). Same as 030 S. A 3-digit BCD value (0 to 999). Same as 030 3. A 4-digit BCD value (0 to 9999). Same as 030 4BCD.
ASCII String
The item name for an ASCII string is a range of data table addresses specified as "x-y".
"x" and "y" must be valid data-table addresses. The ASCII string is stored with two characters per word.
Note If reading only one word as a two-character string, the range must be "xx". For example, 1030-1030.
"www" must be a valid and appropriate data-table word address. "bb" must be between 0 and 17 octal. No spaces are allowed.
Examples: 010/0 122/17 020/7 Output, rack 1, group 0, bit 0. Input, rack 2, group 2, bit 17. Internal bit at data table word 020 bit 7.
The first way is to identify the word and bit(s) using octal addresses. The second way is to use the ".fields" described below.
For all of the field references, the item name takes the form "www.field". "www" is the octal address of the Timer or Counter.
25
Timer Fields
www.AC or .ACC The Accumulated value - refers to bits 0 through 13 octal of the data table word "www".
It is treated as a 3-digit BCD value (0 to 999). An alternate way to refer to this field is "www 3" as described above.
www.PR or .PRE The Preset value - refers to bits 0 through 13 octal of the data table word "www+100".
It is treated as a 3-digit BCD value (0 to 999). An alternate way to refer to this field is "xxx 3" where "xxx" is "www+100".
Counter Fields
www.AC or .ACC Same as for Timers. www.DN Same as for Timers. www.PR or .PRE Same as for Timers. www.OV The Overflow/Underflow bit - refers to bit 14 of the counter "www".
www.DE Enable bit for CTD instructions - refers to bit 16 of the counter "www".
www.UE Enable bit for CTU instructions - refers to bit 17 of the counter "www".
26
Examples: 030.DN 030.AC 030.PRE Done bit of counter/timer 030. Accumulated value of counter/timer 030 (implies a 3digit value). Preset value of counter/timer 030. This reference will access the data table location 130. (.PRE implies +100 octal and it implies a 3-digit BCD value.) Same as 030.PRE. Enable bit of counter/timer 030. Same as 030.EN.
27
The general form is shown below. The parts of the name shown in square brackets ([]) are optional. section [file :] word [/bit] section
A single letter identifying a section of the data table must be one of the following letters: Section O I T C N F D B A H S file Optional file number (0-999 decimal). Table Title Output Image Input Image Timer Counter Integer Floating-Point Decimal Binary ASCII High-Order-Integer Status
/bit
For Input and Output sections it must be between 0 and 7777 octal. For all other sections, it must be between 0 and 9999 decimal.
It is valid for all sections except Floating Point. For the High-Order Integer section, it must be between 0 and 37 octal. For all other sections, it must be between 0 and 17 octal.
28
29
30
31
32
33
The format is shown below. The parts of the name shown in square brackets ([]) are optional.
Purely optional. X Identifies the file type. The table below summarizes the valid file types, the default file number for each type and the fields allowed (if any): X O I S B T C R N F A D ST PD File Type Output Input Status Binary Timer Counter Control Integer ASCII BCD PID* Default File # .Fields 0 1 2 3 4 5 6 7 none none .LEN ADRF .ADRE .BIAS .CA .CL .CT .DB .DO .DVDB .DVN .DVNA .DVP .DVPA .EN .ERR .EWD .INI .KD .KI .KP .MAXI .MAXO .MAXS .MINI .MINO .MINS .MO .OLH .OLL .OUT .PE .PV .PVDB .PVH .PVHA .PVL .PVLA .PVT .SO .SP .SPOR .SWM .TIE .UPD DN .ER .FS .LS .OV .PRE .SA .TIM none .PRE .ACC .EN .TT .DN .PRE .ACC .CU .CD .DN .OV .UN LEN .POS .EN .EU .DN .EM .ER .UL .IN .FD
Floating Point 8
SC BT
none
none
.EN .ST .DN .ER .CO .EW .NR .RW .TO .RLEN .DLEN .FILE .ELEM
* Available only on certain PLC-5 models. Check the Processor Manual for the model being used.
34
For Input and Output files it must be between 0 and 777 octal. For all other file types it must be between 0 and 999 decimal.
.field Valid only for Counter, Timer, Control, ASCII String, PID, SFC Status, and Block Transfer files. Refer to the previous table. /bit Valid for all file types except ASCII String and Floating Point.
For Input and Output files it must be between 0 and 17 octal. For all other file types it must be between 0 and 15 decimal.
35
36
"b" specifies the bit number within the word In the first form (where ":e" is present), the bit number must be between 0 and 15 decimal. "m" specifies the bit number within the file. However, in the second form, no word number is specified and the bit number may be between 0 and 15999. Examples: B3/15999 B:6/4 (same bit as B:999/15) (same bit as B/100)
37
38
39
40
41
42
43
The general form is shown below. The parts of the name shown in square brackets ([]) are optional.
Use zero to access items in the RM (Resource Manager). Use 1-4 to access items in specific Logic Processors. Omit the module number when accessing I/O.
section Identifies the section type. The following table summarizes the supported section types: Section Section File .Fields B C F I L MSG N O PD Binary Counter Floating Point Input Image Long Integer MSG Integer Output Image PID .ADRM .ADRF .ADRE .BIAS .CA .CL .CT .DB .DO .DVDB .DVN .DVNA .DVP .DVPA .EN .ERR .EWD .INI .KD .KI .KP .MAXI .MAXO .MAXS .MINI .MINO .MINS .MO .OLH .OLL .OUT .PE .PV .PVDB .PVH .PVHA .PVL .PVLA .PVT .SO .SP .SPOR .SWM .TIE .UPD .DN .EM .EN .ER .EU .FD .IN .LEN .POS .UL .AD .AE .CO .DLEN .DN .EN .ER .EW .ST .RLEN .ERR PRE .ACC .CU .CD .DN .OV .UN
R S ST T file
44
For Input and Output sections it must be between 0 and 377 octal. For all other sections, it must be between 0 and 9999 decimal.
.field Valid only for Counter, Timer, Control, MSG and PID sections. See the previous table. /bit Valid for all sections except Floating Point and String.
For Input and Output sections it must be between 0 and 17 octal. When applied to a Long Integer or a field of a Timer, it may be between 0 and 31 decimal. For all other sections it must be between 0 and 15 decimal.
45
46
47
0MSG0:0.EN 1MSG3:900.DLEN
48
49
50
51
52
X O I S B T C R N F A ST
File Type Output Input* Status Binary Timer Counter Control Integer Floating Point* ASCII* none ASCII String*
* Available only on certain SLC 500 models. Check the Processor Manual for the model being used. file File number must be 0-255 decimal.
For Input and Output files it must be between 0and 30 decimal. All other file types, it must be between 0 and 255 decimal.
.field Valid only for Counter, Timer and Control files, see table above. /bit Valid for all file types except ASCII String and Floating Point.
53
54
Diagram system
Addressing of the I/O points begins by drawing a schematic of the system. The figure below is a diagram of the SLC 5/02 system.
The far left unit is the power supply. From left to right, the modules are: 1747-L524 1746-IA8 1746-OA16 1746-IA16 1746-NI4 1746-NO4I 1746-0A8 1746-IB32 SLC 5/02 Module Processor 8-point 120VAC input module 16-point 120VAC output module 16-point 120VAC input module 4-point 20mA analog input module 4-point 20mA analog output module 8-point 120VAC input module 32-point DC input module
55
Note In the table above, the minimum amount of words which can be consumed by a module is 1 (16-bits). This is due to the memory scheme of all Allen-Bradley processors.
56
I/O Diagram
57
58
59
60
61
The discrete item, Status, is set to 0 when communications with the PLC fails. It is set to 1 when communications is successful.
62
63
In this example, each time the value of N7:0 changes in the PLC, the server will automatically send the new value to the cell containing the formula in Excel. Note Refer to the Microsoft Excel manual for complete details on entering Remote Reference formulas for cells.
64
Data_Reference is the row/column ID of the cell containing the data value. =TERMINATE(channel)
Some applications have a limited number of channels therefore, they should be closed when finished. Channel is the channel number returned by the previously executed INITIATE function. =RETURN()
Marks the end of the macro. Note Refer to the .XLM sample Excel poke macro provided on the server program disk. Also refer to the Microsoft Excel manual for complete details on entering Remote Reference formulas for cells.
65
66
For example: If you start up WindowViewer and cannot successfully establish a conversation with a server, the following Initiating DDE Conversation dialog box will appear:
The information in the second line indicates that you have at least one I/O type tagname defined in your Tagname Dictionary that is associated with an Access Name that defines OMRONFO as the Application Name, and HLPLC as the Topic Name. Make of exactly how the application and topic names are spelled.
Note This example only applies when using a version of InTouch prior to InTouch 7.0. To troubleshoot communications problems between WindowViewer and the server, perform the following steps as listed. Verify the I/O Server is running. 1. 2. Start the server program. Verify the server is running by checking to see if it is in the Windows Task List.
Click the right mouse button on the Windows taskbar and select Task Manager from the menu. Click the Applications tab to view all currently running applications. Or press the CTRL+SHIFT+ESC keys.
If the I/O Server is running, verify the I/O Server's program name is correct in all WindowMaker Access Name definitions. 1. 2. Switch to (or start) WindowMaker. Select Access Names from the Special menu.
3.
The Access Name Definitions dialog box appears listing all Access Names defined in the WindowMaker.
In the Access Names list, select the Access Name referencing the server and click Modify.
4. 5.
Verify the server's program name in the Application Name box is correct. If it is wrong then correct it and click OK , else click Cancel.
67
Note The server's exact "executable name" must be typed in the Application Name box in all Access Name definitions. The ".exe" extension is not used. Note If you are debugging a remote tagname reference, also verify that the node name for the remote computer in the Node Name box is correct. 6. Repeat steps 3 through 5 and verify the server program name is correct in all Access Names that use it.
If you still cannot establish a conversation, verify the exact topic name used in the WindowMaker Access Name definitions are defined in the I/O Server program. 1. Close WindowViewer if it is running.
2. 3.
Start the server program. From the servers Configure menu select Topic Definition.
4.
The Topic Definition dialog box appears listing all topic names defined in the server.
Verify that the topic name exists and is spelled exactly the same (including spaces) as the topic name referenced in the WindowMaker Access Name definition.
Note Blank spaces cannot follow the topic name in either the server's Topic Definition or the Access Name definition. 5. 6. If the topic name is different, either correct it in the server or switch to WindowMaker and correct it in the Access Name Definitions dialog box. Once you performed the above procedure, restart WindowViewer and switch to the server program.
Data should now appear in the servers program window to indicate that WindowViewer and the server are communicating.
Note The data in the servers program window indicates the read and write messages the server is sending to and receiving from the PLC. These are not error messages; only status messages are written to the servers program window. 7. If no data appears in the servers program window, switch to the Wonderware Logger to check for error messages. For example, a common error message is: "Error for DDE: OMRONFO|HLPLC!<null>("item") Advise failed"
This message appears when the item defined in one or more tagnames is invalid for the server.
68
Note InTouch tagnames use specific naming conventions when accessing data from a server. The valid item names for all Wonderware servers are documented in their respective User's Guides. Typically, the item naming conventions used by each server are consistent with the names used by the equipment manufacturer. For more information on the Wonderware Logger, see your online FactorySuite System Administrator's Guide. If you are still experiencing problems, continue with the following troubleshooting section.
69
For example, some of the most common errors that may appear in the Wonderware Logger for serial servers are: Response Timeout WCRET = -2 WakeUp = -2 Receive Overrun Framing Errors Note Unless specified otherwise, most serial-communications-based servers are full duplex. If you require a server for half duplex (one that monitors the CTS and RTS lines) or if you are not sure whether the PLC's protocol is full or half duplex, call your PLC supplier. Also, during in-house server testing, we have found that the communications cards that use the National 16450 and 16550 UARTs seem to be less susceptible to level and timing problems. Cards based on other chips may work, but we recommend using the National cards. Some of the highly integrated UART chips (most notably, Winbond and UMC) have a tendency for their transmitters to stop responding, requiring re-initialization of the UART. If this occurs, you may have to restart the server or execute the Reinitialize I/O command from the Special menu in WindowViewer. Check your cabling to the PLC.
Is it wired correctly? Check for shorts, loose wires, broken wires, crossed wires, and so on.
Note A continuity tester can be helpful here. Verify the I/O Servers serial configuration settings (Parity, Stop Bits, Baud Rate, Handshaking and so on) against the settings in the hardware device. Verify the communications port is working properly in Windows. 1. Close the server program.
Note If you are using a server that requires a TSR, you will not be able to verify that the port is functioning properly while the TSR is running. Stop all TSRs then continue with this procedure. If you confirm that the port functions properly without the TSR running, change your software interrupt (IRQ) to another number. For example, change 60 to 62. Note Also, if you are using an AT-type computer, two devices cannot share interrupts. Verify that the communications port you are using has a unique interrupt setting. 2. 3. On Windows 2000, Windows XP, or Windows 2003, start the HyperTerminal program. Configure the HyperTerminal program to use the same communications port with the same settings (baud rate, parity, stop bits, and so on) as the hardware device. Wonderware WWRSLinx I/O Server Users Guide
70
4. 5. 6.
Connect a null modem cable to a second computer's port. On the second computer, start and configure the HyperTerminal program with the same settings as the first computer. Verify that you can send data between the two computers.
Note If you do not have two computers and the computer you are using has another port, start two instances of the HyperTerminal program with each configured to their own port. Then try communicating between them. Note If you have an external modem, connect the modem to the communications port that you are testing to see if you can dial out. 7. If the communications port does not appear to be functioning properly, check your environment files (AUTOEXEC.BAT, CONFIG.SYS, SYSTEM.INI, and WIN.INI).
8.
Look for suspicious programs or drivers that might be taking control of the port or its interrupt before the server is loaded. Always keep your environment files as clean as possible. If you are in doubt about an entry, comment it out.
If the previous step was unsuccessful, try another communications port or another computer.
Note A common misconception of connecting to a PLC with a DOS program and the same communications port will work in Windows is not the case! Windows is an entirely different environment than DOS. What type of UART is on the COM port? If it is not a 16550, then you must lower your baud rate to 9600 or slower.
Only the 16550 UART can sustain continuous, error-free communications at speeds higher than 9600 baud. Other UARTs may work at speeds faster than 9600 baud, but errors may be written to the Wonderware Logger.
For example, "Receive Overruns." To determine which UART you have 1. 2. Enter MSD at a DOS prompt. Select COM Ports from the MSD menu.
Verify the parameters for WWCOMTSR. Do not specify a receive and/or transmit buffer size of 8!
71
For example: Correct: COM1:0 COM2:1,2048,2048 COM1:0 COM2:1 Incorrect: COM1:0 COM2:1,8,8 Does your computer stop responding when trying to communicate through the COM port?
Note A utility, ShowSoft, is available on the Knowledge Base CD that can assist in determining the available software interrupts. Does your computer lock up?
Verify the COM port's IRQs do not conflict with each other or with other communications boards in the computer.
If the PLC or field device has more than one COM port, verify the connection to the correct port. The COM port on your computer uses the RS-232 hardware communications standard and connects the cable from the COM port to an RS-232-compliant device. Note To connect to an RS-422 or RS-485 port on the PLC, you need an RS232 to RS-422/485 conversion device. If possible, use an external converter instead of a board-based converter that plugs into a slot in the computer. A board-based converter is difficult to get working for inexperienced users. If a board-based converter is not set up properly, it can conflict with other communications boards in the computer such as, internal modems.
72
If you are using the Windows 2000/Windows XP/Windows 2003 operating system, verify the following: 1. 2. Click Start on the Windows taskbar. Point to Settings, then click Control Panel in the menu.
3. 4.
Click on Administrative Tools. In the Administrative Tools dialog box, double-click the Computer Management icon.
5.
Click on Device Manager and select the COM port you are using for the server. For example:
6.
73
7.
Fifty feet is the maximum practical length for the RS-232 standard.
Try using a different COM port for the I/O Server. If you are installing an I/O Server or configuring a board-based I/O Server on a computer running on the Windows 2000, Windows XP, or Windows 2003 operating system, log on with Administrator privileges. Note Without Administrator privileges, the server and Server Install program cannot make the necessary edits to the Windows Registry during installation or board configuration of the server. 1. 2. 3. Click Start on the Windows taskbar. Point to Settings, then Control Panel. In the Control Panel, double-click on Administrative Tools.
4.
74
5. 6.
Double-click on Local Users and Groups. Click on Groups and then double-click on Administrators to verify Administrative privileges.
If you experience occasional or random communications errors in the Wonderware Logger, such as "Response Timeouts," check for noise.
Do the physical cables run past any known noise sources such as photocopiers, fluorescent lamps, fans, pumps, motors, or generators? Are the cables properly shielded from its environment? With radio modems and satellite link-ups, occasional communications errors in the Wonderware Logger are normal and to be expected as long as they do not adversely impact the flow of data.
Increase the Reply Timeout setting in the I/O Server to a value between 5 and 10 seconds.
Not allowing the PLC or field device enough time to respond to the servers request for data may result in communications errors.
Verify the PLC is configured properly and the cable is good by using the programming software for the PLC.
Run the programming software and communicate with the server at the same time when testing.
Note Performance of this test depends upon the type of PLC you are using.
75
Reinstall the I/O Server and verify that you are using the latest version.
Wonderware is continually improving our servers and using the latest version will guarantee the best results.
Note New versions of the Wonderware I/O Servers are released regularly on the Knowledge Base CD and they are also available to Comprehensive Support customers from the Wonderware Web site at: http://www.wonderware.com. Moving the I/O Servers configuration file to another location on the computers hard disk clears all configurations for the I/O Server. The I/O Server must be reconfigured. Note Wonderware server configuration files are typically the exact same name as the servers executable name with the .CFG extension. For example, OMRONFO.CFG. Refer to the Configuration File section of the specific server Users Guide for the exact name of the configuration file. If possible, reinstall the Windows operating system.
Files installed earlier on your computer or the NT registry may have been corrupted or accidentally modified.
If these troubleshooting suggestions do not solve your problem, there may be a problem with your computer. There are many subtle differences between the various computer hardware brands. Using a computer that is a different brand and meets the following criteria: 1. 2. Select a different PC manufacturer and if this is not possible, try a different PC model from the same manufacturer. The computer cannot use an OEM (Original Equipment Manufacturer) version of Microsoft Windows.
It is highly recommend that only a Microsoft Windows product be used. Contact your vendor to determine if installing an off-the-shelf copy of Microsoft Windows will cause any problems.
If you feel you have tested all possible situations that may be causing your failed I/O communications, contact your local Wonderware distributor for technical support. Note For more information on obtaining technical support, see your online FactorySuite System Administrators Guide.
76