MODBUS.TXT
Process Window
Modicon driver User's Guide
Release 1.00
---------------------------

Overview
========

This file includes detailed instructions about installing and using
the Modicon driver in your Process Window applications.

The driver covers release 1.00 of the Modbus and Modbus Plus driver.

This information file is copied to your hard drive as part of the
installation process. For access to its information, use any Word
Processor (such as Windows Notepad ) that can process ASCII files,
and open the file called MODBUS.TXT located in your Process
Window directory.


Installation
============

  1) Insert the distribution diskette in a floppy drive.
  2) Choose File|Run from the Program Manager main menu
  3) Type
            A:SETUP
  4) Follow on-screen instructions

  You MUST install the driver in the same directory used to install
  Process Window. Otherwise, drivers will not get loaded properly
  at runtime


  5) Modbus+ considerations
     If you are using the MODBUS+ version of the driver you must also
     install the SA85.SYS or MBPHOST.SYS driver provided with your
     Modicon SA-85 or 984/AT card.

     For instructions about installation of this driver, contact your
     Modicon documentation.

     If you are using a memory management utility, exclude the area
     used by the driver from use.

     For example, if you are using EMM386, and you want to load the
     SA85 card at address d800, modify your config.sys file to read
     as follows:

                 DEVICE = EMM386.EXE X=D800-D9FF


Using the driver
================

   1) From the Project Manager, select "Edit Driver List"
   2) Choose the "Add" button.
   3) From the list, pick the AEG or AEG+ driver as appropriate.
   4) Use the "command line paramters" edit field to specify
      interrupt selection, communication speed settings and
      timeout settings.

   5) Choose Ok.

   Note: For detailed information about valid command line paramters,
         see the "Command Line Parameters" heading below.

Accessing data
==============

  Use I/O scan tables to read/write PLC data.


    a) For MODBUS+

            1. Select AEG as the device.
            2. Enter parameters. Parameters are as follows:

                     - Route:   Routing path. (0 if no route) This version of
                                the driver supports 2 levels of routing in
                                addition to the node number (specified in the
                                next field)
                                To specify a route, use 3 digits for each
                                part of the route.

                                For example, to access a device at address

                                   234,23,11

                                Enter   234023 in the "Route" field and
                                        11     in the "Node" field

                                To access a device at address
                                   40,13

                                Enter   40     in the "Route" field and
                                        13     in the "Node" field.


                     - Node     Enter the node address for the PLC to access.
                                Valid range is 1 to 255

                     - Address  Address for the first element to read/write.
                                Examples of valid addresses are 30012 and 40002

                     - Bit Offset Reserved for this release of the driver. Must
                                  be set to zero. Will support bit access within
                                  registers.

  Performance tip:
    Reducing the number of I/O requests in an application by reading multiple
    points on each request will significantly enhance
                                   Writing bits in multiples of 16, starting
                                   at a bit offset of zero greately improves
                                   performance, by avoiding read/write to
                                   create update masks.

  Error Codes:
        Error codes for driver calls can be retrieved by using the following
        global variables:  #driverID
                           #driverError
                           #driverFunc



Command Line Parameters
=======================

All command line parameters must start with a hyphen or slash character.
A sample command line for Modbus+ that enables interrupt 0x5c and a timeout
of 5 ticks would look as follows:

                        -5c -t5

A modbus driver command line enabling COM2 at 9600 baud, even parity, 1 stop
bit, 8 data bits would look as follows:

                        -1 -b9600 -pe -s1 -d8


Parameter options
for the Modbus driver

Parameter     Valid options     Default    Description
-----------------------------------------------------------
   -1              -1             N/A      Enable COM 1

   -2              -2             N/A      Enable COM 1

   -B              -B110          -B9600   Set baud rate
                   -B150
                   -B300
                   -B600
                   -B1200
                   -B2400
                   -B4800
                   -B9600
                   -B19200

   -P              -PN            -PE      Set parity
                   -PE
                   -PO

   -D              -D7            -D7      Set data bits
                   -D8

   -S              -S1            -S1      Set stop bits
                   -S2

   -T              -Tn            -T3      Set timeout (in timer ticks)


For the Modbus Plus driver

Parameter     Valid options     Default    Description
-----------------------------------------------------------
   -5              -5b            -5b      Set software interrupt
                   -5c
                   -5d

   -A              -A0            -A0     Set adapter number
                   -A1

   -T              -Tn            -T3      Set timeout (in timer ticks)


