Академический Документы
Профессиональный Документы
Культура Документы
Configuring the Compact Panel MODBU Serial Driver to Communicate to a Modicon PLC
All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 002342
Created: March 2009
Introduction
The MODBU Driver is one of Wonderware's new generation of Compact Panel based products that provide connectivity
to devices that are fully compatible with the Modbus Protocol.
This Tech Note provides a basic step-by-step procedure on setting up the Compact Panel MODBU Driver to communicate to
a Modicon Quantum PLC through a serial connection. For more configuration options refer to the InTouch® Compact
Edition MODBU Configuration Guide.
Note: This Technote assumes you have created a Compact Panel InTouch application. You should also be familiar with
the basic setup, configuration and publishing of a Compact Panel InTouch application. See Tech Notes 516 and 517
for information regarding InTouch Compact Panel Edition.
2. Select Add.
• Access Name: This name will be used later in the MODBU driver configuration
• Application Name: For purposes of IO Driver configuration, this name is arbitrary and does not point to
an actual application.
• Topic Name: For purposes of IO Driver configuration, this name is arbitrary and does not point to an
actual topic definition.
Figure 1: Access Name definition
MODBU Configuration
2. Select MODBU from the list of available drivers, then configure the following:
• Place a checkmark next the the Access Name defined above in the Access Name Mapping section. In
the example below, modbusPLC would be selected.
• Select MODBU from the Mapping I/O Driver drop down box.
• Enter the PLC Model and Slave ID in the Station Address dialog box. If you omit the PLC Model the
driver assumes a Modbus PLC with a six digit register size. The example below uses a Quantum PLC Model.
3. Enter the connection information for serial communications to the PLC on the Direct tab. This example
uses COM1 on the Compact Panel communicating to the PLC with the following details:
• 1 Stop Bit
• Even Parity
• 8 Data Bits.
Figure 2: Driver Configuration
Create an IO Tag
1. Select Special/Tagname Dictionary from the Windowmaker menu.
2. Select New
4. Enter a Tagname
5. Select Access Name then select the Access Name that has been assigned to the IO Driver above. In
this example the Access name is modbusPLC.
6. Enter a valid 6 digit Modbus address in the Item box. In this example, the first holding register is
used (400001).
2. Place a pound sign on the window the double click the # sign.
6. Close WindowMaker.
1. Right-click on the Compact Panel InTouch application then select Validate / Publish Compact
Edition Application. The application should validate without errors.
3. Connect then send the InTouch application to the Compact Panel. When this is complete, run the application.
Troubleshooting
Use the following MODBU built-in items to help troubleshoot issues between the MODBU IO Driver and the PLC:
1. $Sys$ReadStatus - This tag contains an error code for a failed read operation from the PLC.
2. $Sys$WriteStatus - This tag contains an error code for a failed write operation from the PLC.
You can configure the above as IO Integer tags in your InTouch application. The tags can then be displayed in a window
and will contain an error code.
The following table lists available error codes, code descriptions, and possible causes:
For more troubleshooting information refer to the InTouch Compact Edition MODBU Configuration Guide.
G. Alldredge
Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest,
CA 92630. There is also technical information on our software products at www.wonderware.com/support/mmi
back to top
©2009 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by
any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without
permission in writing from Invensys Systems, Inc. Terms of Use.