ICC Modbus Master Tool User's Manual
ICC Modbus Master Tool User's Manual
Instruction Manual
ICC
ICC Modbus Master Tool Users Manual Printed in U.S.A. 2012 Industrial Control Communications, Inc. All rights reserved
NOTICE TO USERS Industrial Control Communications, Inc. reserves the right to make changes and improvements to its products without providing notice. Industrial Control Communications, Inc. shall not be liable for technical or editorial omissions or mistakes in this manual, nor shall it be liable for incidental or consequential damages resulting from the use of information contained in this manual. INDUSTRIAL CONTROL COMMUNICATIONS, INC.S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE-SUPPORT DEVICES OR SYSTEMS. Life-support devices or systems are devices or systems intended to sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided in the labeling and user's manual, can be reasonably expected to result in significant injury. No complex software or hardware system is perfect. Bugs may always be present in a system of any size. In order to prevent danger to life or property, it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk involved. This users manual may not cover all of the variations of interface applications, nor may it provide information on every possible contingency concerning installation, programming, operation, or maintenance. The contents of this users manual shall not become a part of or modify any prior agreement, commitment, or relationship between the customer and Industrial Control Communications, Inc. The sales contract contains the entire obligation of Industrial Control Communications, Inc. The warranty contained in the contract between the parties is the sole warranty of Industrial Control Communications, Inc., and any statements contained herein do not create new warranties or modify the existing warranty.
ICC
TABLE OF CONTENTS
1. 2. 3. Introduction .................................................................................. 3 Application Overview ...................................................................... 4 General Operation ........................................................................ 5
3.1 Connecting and Disconnecting .............................................................5 3.1.1 Communication Settings ...................................................................5 3.2 Uploading Register Values....................................................................7 3.2.1 Creating a Data File from Uploaded Data .........................................7 3.3 Downloading Registers .........................................................................8 3.4 Verifying Register Values ......................................................................8 3.4.1 Comparing Differences .....................................................................9 3.5 Logging Registers .................................................................................9 3.5.1 Logging Window Overview .............................................................10 3.6 Profile Management ............................................................................11 3.6.1 Rename ..........................................................................................12 3.6.2 View Details ....................................................................................12 3.6.3 Delete .............................................................................................12
4.
5.
5.1 Opening the XML Manager .................................................................15 5.2 Encrypting a File .................................................................................15 5.2.1 Verification ......................................................................................16 5.3 Decrypting a File .................................................................................16
6.
6.1 6.2
Troubleshooting ......................................................................... 17
XML Parsing ........................................................................................17 Register Settings .................................................................................18
ICC
1. Introduction
This manual describes the operation of the ICC Modbus Master Tool software. It also describes the profile configuration files used by the software. This manual assumes the user has a working knowledge of the Modbus RTU and/or Modbus/TCP protocol. For more information about these protocols, refer to the Modicon Modbus Protocol Reference Guide. This manual also assumes a familiarity with XML files and the XML tag format. All profile configuration files are written in XML notation and must be independently created and edited using an application such as a text editor or XML file editor.
ICC
2. Application Overview
The ICC Modbus Master Tool is used to connect to a Modbus RTU or Modbus/TCP slave device in order to upload, download, verify, or log register values on the device. Preconfigured profiles appear as selectable buttons. Once a profile is selected, the user can upload, download, verify, or log the registers defined in the profiles register settings. Upon startup, the software will load the profiles from the Data Files directory in the applications data directory. The data files are validated and encrypted from user-created XML configuration files by using the XML Manager. These files contain customizable features such as names, icons, and versions for each profile. The XML Manager is an embedded feature of the ICC Modbus Master Tool that can be accessed by clicking on the XML Manger button. It is used to first verify that an XML profile configuration file is valid, and then encrypt it into a data file. The XML Manager can also be used to decrypt the data file back into an editable XML file so that a user may make changes to existing configurations. The XML files used by the software for configuring a device contain specific XML tags to define the profile configuration. There are two main components to these files: the profile identification and the register settings. Each of these components has its own definitions for valid tags and the format of the tags values. The communication settings for the software are configurable and are set upon clicking the connect button. After clicking this button, the user can select whether to connect to a device via a serial port (using Modbus RTU), or via an Ethernet interface (using Modbus/TCP).
ICC
3. General Operation
3.1 Connecting and Disconnecting
While disconnected, click the connection status icon on the left-hand side of the status bar (as shown in Figure 1), select the desired media, and enter the communication settings (as shown in Figure 2 and Figure 3).
Figure 1: Connecting
Figure 3: Ethernet Communication Settings Figure 2: Serial Communication Settings While connected, click the connection status icon again to disconnect (as shown in Figure 4).
Figure 4: Disconnecting
ICC
3.1.1.1 Serial Settings
Target Addr This field sets the Modbus RTU slave target address. This is the address the software will use when trying to connect to a device. The default value is 1. Port This field selects the serial port. All serial ports available on the computer will be displayed in the dropdown box. The default selection is COM 1, if available. Baud This field selects the baud rate that the software will use to communicate with a device. This field and the baud rate setting of the device must match. The default value is 9600. Parity This field selects the parity that the software will use to communicate with a device. This field must match the parity setting of the device. The following describes the valid values: None .. No parity check occurs (default value). Even ... Sets the parity bit so that the count of bits set is an even number. Odd .... Sets the parity bit so that the count of bits set is an odd number. Stop Bits This field selects the number of stop bits that the software will use to communicate with a device. This field must match the number of stop bits that the device is configured to use. The following describes the valid values: One .... One stop bit is used (default value). Two .... Two stop bits are used.
ICC
3.2 Uploading Register Values
The registers defined in the selected profile may be uploaded to view the current values on the device by clicking the Upload button. Once the values are uploaded, the results may be saved to a file, printed, or used to create a new data file.
ICC
3.3 Downloading Registers
To download the register values defined for the selected profile, click the Download button. A prompt will appear for confirmation to download to the connected device (see Figure 6). Click Yes to download the configuration to the device.
ICC
3.4.1 Comparing Differences
If the register values on the device do not match the values contained in the selected configuration, the user may click the View Differences button (shown in Figure 8). This will then display a comparison of the register values in the selected configuration (Value Expected) compared to the corresponding values currently on the device (Value Read). An example Difference Results report is shown in Figure 9.
ICC
3.5.1 Logging Window Overview
3.5.1.1 Information
Target This specifies the device to connect to when logging. This will always be the device that the tool was connected to when the Log button was clicked. Register Set This specifies the register set that will be logged. This will always be the profile configuration that was selected when the Log button was clicked.
3.5.1.2 Settings
Log File This field specifies the path of the log file that the logger will write to. The log file path may be entered manually or selected by clicking on the ellipsis (.) button. Interval This field specifies the interval (in seconds) between log entries. The logging interval may be specified down to the millisecond (0.001 second). Note that in some cases it may take the tool longer to read each register in the register set than the configured interval, resulting in log entries with an interval greater than what was configured.
10
ICC
3.5.1.3 Status & Log Entries
Status This specifies the status of the logger. It will indicate if the logger is stopped, paused, or running. Log Entries This records the number of successful log entries written to the log. A log entry consists of the timestamp, register number, and register value for each register in the register set.
3.5.1.4 Details
The details window can be shown and hidden by clicking the Show/Hide Details button. This window will provide information about when logging is started, paused, or resumed, as well as when registers are being read from the target device and when the log is being updated with new log entries. This window will also show any errors or warnings that occur while logging.
Figure 11: Profile Management Menu Existing profiles can be managed by right clicking on the profile icon button. The options shown in Figure 11 are described in this section.
11
ICC
3.6.1 Rename
Click Rename to rename the profiles title. This will open the renaming prompt, as shown in Figure 12. After a profile is renamed, the software will automatically refresh the profile configurations.
3.6.3 Delete
Click Delete to permanently remove the profile from the softwares database. After a profile is deleted, the software will automatically refresh the available profile configurations.
12
ICC
4. XML Configuration Files
4.1 Data Files
The core functionality of the ICC Modbus Master Tool comes from the information contained in the data files located in the Data Files folder. Data files are the encrypted versions of XML profile configuration files (see Section 5.2 for details). The software uses this information to display the available profiles and upload, download, or verify the configuration to or from supported devices. The title of the data file is used as the profile icons display name in the software. This section describes the tags and valid values for an XML profile configuration file. A profile configuration file is always enclosed with the Profile tag.
13
ICC
Register This is the enclosing tag for the register entry. All register entries must be enclosed by this tag. Address This is the Modbus register, in decimal. Refer to the devices instruction manual for the register mapping. This tag is required. Value This is the decimal value to which the register is to be set (when downloading) or compared against (when verifying). Because this value is written unmodified to the device, care must be taken when defining the value so that the proper scaling is used. For example, each numerical increment to a Maximum Frequency register on a device may increment the actual parameter setting by 0.1Hz. Therefore, in order to set the Maximum Frequency parameter value to 60.0 Hz, a raw value of 600 (60 divided by 0.1) must be used. This tag is optional. If this tag is omitted, the configuration will only have the ability to upload values from the device.
14
ICC
5. XML Manager
Figure 14: XML Manager The XML Manager is a feature embedded into the ICC Modbus Master Tool which allows a user to create profile configuration data files for use by the software. The XML Manager can check XML profile configuration files for validity and inform the user when errors are detected. Once an XML file is verified, it can then be encrypted into a data file for use by the software. The XML Manager can also be used to decrypt existing data files back into XML files, which can then be viewed or edited with a standard XML editor or text editor.
15
ICC
5.2.1 Verification
The verification process ensures that the XML profile configuration file is compatible with the software. After verifying the selected XML file, the XML manager will display the results. The results window will indicate whether the file was parsed successfully or not, as well as any applicable errors or warnings. It also lists the register settings defined in the XML file so that the user can easily confirm these values. An example of the results window is shown in Figure 16.
16
ICC
6. Troubleshooting
The ICC Modbus Master Tool and XML Manager offer detailed feedback when certain errors occur. This section details the troubleshooting techniques that should be used while creating and debugging a new profile configuration.
17
ICC
Figure 18 shows the results window from parsing an XML file that could not be parsed successfully. This XML file contains a typo in only the opening Register tag. Because this entry contains an opening tag, but no matching closing tag, the entire XML file is considered to be invalid and all other tags after the unmatched opening tag are considered a part of that tag section. Therefore, the XML file as a whole has no proper closing tag for the main Profile tag and also no registers defined, both of which are fatal errors. The warning shown in Figure 18 identifies the offending tag.
18
ICC
Figure 20 shows an error received while uploading a configuration from a device, and one of the targeted registers contained in the profile does Figure 20: Illegal Data Address Exception not exist on the device. Refer to the devices instruction manual and ensure that the register address has been calculated correctly.
19
ICC
INDUSTRIAL CONTROL COMMUNICATIONS, INC.
1600 Aspen Commons, Suite 210 Middleton, WI USA 53562-4720 Tel: [608] 831-1255 Fax: [608] 831-2045 http://www.iccdesigns.com Printed in U.S.A