Delta Mynah 1770-KF2 User Manual

Size:
231.19 Kb
Download

Allen-BradleyDriver for DeltaV

Programmable Serial Interface Card

USER MANUAL

May 2003

Rev. P1.7

Allen-Bradleyand DeltaV are registered trademarks and DeltaV is a trademark of Emerson © Emerson 1998, 1999, 2000, 2001. All rights reserved.

Printed in the U.S.A.

While this information is presented in good faith and believed to be accurate, MYNAH Technologies does not guarantee satisfactory results from reliance upon such information. Nothing contained herein is to be construed as a warranty or guarantee, express or implied, regarding the performance, merchantability, fitness or any other matter with respect to the products, nor as a recommendation to use any product or process in conflict with any patent. MYNAH Technologies reserves the right, without notice, to alter or improve the designs or specifications of the products described herein.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

1

Powerful Solutions for Digital Plants

1 INTRODUCTION

1.1Scope

This document is the User Manual for the Allen Bradley serial communication driver firmware for the Emerson DeltaV Control System; it provides information required to install, configure, and maintain the Allen-Bradleydriver firmware on the DeltaV Programmable Serial Interface Card (PSIC). The reader should be familiar with the DeltaV controller system and theAllen-BradleyPLC-5Family of Programmable Logic Controllers, the AllenBradleySLC-500Family of Serial Logic and/or ControllersAllen-BradleyPLC-3Family of Programmable Logic Controllers.

A DeltaV Programmable Serial Interface Card with the Allen-Bradleydriver may communicate with theAllen-BradleyPLC-5Family of Programmable Logic Controllers, theAllen-BradleySLC-500Family of Serial Logic Controllers and/orAllen-BradleyPLC-3Family of Programmable Logic Controllers within the constraints delineated herein. In general for driver version 1.0, theAllen-Bradleyfamily ofSLC-500’scan communicate using the same command set used to communicate with thePLC-5family. The SLC5/01 communicates via the PLC2 basic commands, so only file N9 can be accessed with the SLC5/01. For driver version 1.1, a specific command type was added to read/write SLC5/XX Input and Output tables. The previous release of the driver, version 1.4, expands on the SLC specific command to read/write all SLC tables. Additionally, this version allows you to select communications using Half Duplex/CRC. Note that the default is Full Duplex/BCC. This release, version 1.7, provides support forPLC-3file read and write, and ControlNet extra hop addressing when using the Allen Bradley1770-KFC15gateway device.

The section Document Format briefly describes the contents of each section of this manual.System Specifications outlines hardware and software requirements for theAllen-BradleyDriver (P1.7) firmware.Related Documents lists other documents used to prepare this manual.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

1

Powerful Solutions for Digital Plants

1.2Document Format

This document is organized as follows:

Introduction

Theory of Operation

Downloading Firmware

PSIC Configuration

Operational Check

DeltaV-PLC/SLC

Electrical Interface

Describes the scope and purpose of this document

Provides a general functional overview of the Allen-BradleyDriver.

Describes downloading procedures for the Allen-BradleyDriver firmware on to the DeltaV PSIC

Describes procedures and guidelines for configuring the DeltaV PSIC

Provide tips and assistance to ensure PSIC is properly setup and configured

Describes the electrical interface between DeltaV and the PLC-5,SLC5/XX or thePLC-3

Describes the pin assignments necessary for RS-232and RS422/485 communications

1.3System Specifications

The following table lists the minimum hardware requirements for the Allen-BradleyDriver:

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

2

Powerful Solutions for Digital Plants

Table 1: System Specifications

Specifications

Firmware

Protocol

Compatibility

Software

Requirements

Allen-BradleyDriver Firmware (P1.7)

Allen-BradleyProtocol as defined in the documents:

Data Highway/Data Highway Plus /DH-485Communication Protocol and Command Set Reference Manual byAllen-Bradley

DeltaV System Software (Release 3.1 or later) installed on a hardware-appropriateWindows NT workstation configured as a ProPlus for DeltaV

Serial Interface Port License (VE4102)

Minimum

Hardware

Requirements

DeltaV PSIC Hardware Rev 1.1 or later (Series 1 only)

DeltaV M3, M5, M5Plus, or MD Controller, Power Supply and 2- wide controller carrier

8-wideI/O card carrier

Allen-BradleyPLC-3Family of Programmable Logic Controllers,Allen-BradleyPLC-5Family of Programmable Logic Controllers orAllen-BradleySLC5/XX family of Serial Logic Controllers or equivalent

1.4Related Documents

The following documents were referenced either directly or indirectly in the development of this document:

96KH06.D01 - Type KJ3003 Serial Interface Hardware Specification

96KH05.D03 - DeltaV Programmable Serial Card Design Document

DeltaV Programmable Serial Card Application Guide

DeltaV Programmable Serial Card Allen-BradleyData Highway Settings Rev 3

Data Highway/Data Highway Plus /DH-485Communication Protocol and Command Set byAllen-Bradley

96KH05.D01 DeltaV Serial Card Design Document

Allen-BradleyDF1 Protocol and Command Set Reference Manual

Allen-BradleyEnhanced and EthernetPLC-5Programmable Controllers User Manual

Allen-BradleySoftware Configuration Manual

Allen-BradleyProgramming Manual

Allen-BradleyInstruction Set Reference

Allen-BradleyEnhanced and EthernetPLC-3Programmable Controllers User Manual

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

3

 

 

 

Powerful Solutions for Digital Plants

2

THEORY OF OPERATION

 

As part of the serial interface port license, a standard Modbus protocol is installed on the

 

DeltaV PSIC prior to customization. The PSIC needs to be flash upgraded from the

 

Modbus protocol to the Allen-Bradleyprotocol before operation.

 

The Allen-Bradleyserial driver implements DF1 protocol. It communicates withPLC-3,

 

PLC-5or SLC5/XX devices on the DH+ network through either a1785-KEor1770-KF2

 

communication modules. These modules convert the DF1 serial protocol to the DH+

 

network protocol. The switch settings must be configured properly for the RS-232or RS-

 

422/485 prerequisite for proper operation.

 

The Allen-BradleyDriver communicates with the PLC and updates emulated DeltaV I/O

 

with the data received from the PLC. The primary functions of the driver are listed below:

 

Performs data and message handling between DeltaV and PLC-3 /PLC-5 /SLC5/XX.

 

Sends messages to PLC-3 /PLC-5 /SLC5/XX from DeltaV

 

 

Processes reply information and updates the corresponding emulated DeltaV I/O

 

 

channels

 

 

 

 

Update emulated input

channel status and Data Block status to indicate the

 

 

communication state of PLC-3 /PLC-5 /SLC5/XX.

 

Checks validity of messages received by PLC-3 /PLC-5 /SLC5/XX.

 

Upon proper installation and configuration of the Allen-Bradleydriver within the

 

DeltaV/PSIC system, communications with a properly configured Allen-BradleyPLC-3 /

 

PLC-5or SLC5/XX may proceed.

 

There are a maximum of 16 Datasets (DS) per port, with a total of 32 per PSIC. The

 

maximum number of data elements per Dataset that can be supported by the PSIC

 

depends on the data file type. Note that the number of supported Datasets does not

 

change. The following table describes this correlation:

 

 

 

 

 

Dataset Data File Type

Number of Data Elements

 

 

 

or Registers

 

 

Boolean

100

 

 

Discrete

100

 

 

8-bitsigned integer

100

 

 

16-bitsigned integer

100

 

 

32-bitsigned integer

50

 

 

8-bitunsigned integer

100

 

 

16-bitunsigned integer

100

 

 

32-bitunsigned integer

50

 

 

Floating point

50

 

 

String

1

 

The DeltaV PSIC is the master in all communications. It polls each input device and requests data values on a message by message basis. The output is performed when a new value is to be written to the devices. The PSIC constantly scans the configured input Datasets for new values and updates the database. Upon a change of value in the output Dataset, the PSIC will finish the current input scan and suspend the input process. It will service all the output requests before resuming the input process.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

4

Powerful Solutions for Digital Plants

With the Allen-Bradleydriver installed, the “Advanced” tab under port properties will allow selection of the configuration option for the port to act as a slave. ThisAllen-Bradleydriver does not support slave functionality, so this configuration option is not valid.

The Allen-Bradleydriver supportsPLC-5Logical ASCII and binary addressing, and SLC5/XX Protected Typed Logical addressing.

NOTE: When addressing registers, DeltaV PSIC register numbers are 1 based, whereas PLC and SLC registers are 0 based.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

5

Powerful Solutions for Digital Plants

3 Downloading the firmware

To begin installation of the Allen-Bradleydriver, create a folder on the hard drive. The preferred location for the folder is at C:\DeltaV\Ctl\ProgSerial\AllenBradley, although any location will work.

Next, copy the eight files from the diskette provided. Those files are:

1200.idf IO_Compatibility.csv AllenBradleyApp.sdf AllenBradleyApp.hex SerBoot.hex SerReleaseApp.hex StandardModbusApp.sdf Ab-manual.pdf

Once the files have been copied to the appropriate folder, the process of downloading the driver can begin:

1.Start the “Controller Upgrade Utility” from the DeltaV/Installation menu

2.Select “Upgrade I/O Modules” and engage the “Next” button

3.From the controller list select the controller to which the serial card is attached and enter the “Next” button

4.Find the list of I/O cards connected to the selected controller. At the bottom of the screen there is an upgrade file path displayed. Enter the “Browse” button and browse to the directory containing the Allen-Bradleydriver. This should be C:\DeltaV\Ctl\ProgSerial\AllenBradley. Engage the “OK” button to return to the I/O card selection screen

5.Select the Serial Card or Prog Serial Card to be upgraded

6.If the user chooses a standard Serial Card to be upgraded then the card will automatically be upgraded as soon as the “Next” button is entered. If the user chooses a Prog Serial Card, the user will be prompted for the SDF file to use. Browse to and select the proper SDF file. Press the “Open” button followed the “Next” button to start the upgrade process

7.The Flash Upgrade process should start and the progress will be displayed in the progress window. An upgrade complete message will be displayed upon completion of the upgrade.

8.If a standard Serial Card was used for this installation, delete the Serial Card in DeltaV Explorer and Auto-sensethe new Prog Serial Card. Installing a special driver changes the card from a standard Serial Card to a Prog Serial Card.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

6

 

Powerful Solutions for Digital Plants

4

CONFIGURATION INFORMATION

 

This section describes the steps necessary to configure the DeltaV PSIC and the Allen-

 

Bradley PLC such that communications may be invoked

4.1Channel Attributes Block of PSIC

Channel Attributes Block

For the PSIC configuration, there is one channel attributes block per Dataset. There can be up to 16 Datasets configured per port for a total of 32 Channel Attribute Blocks per Serial Card. Each Channel Attribute Block contains all the configuration information for a single configured PSIC Dataset.

The four following attributes (page 9) are unique to the Allen-BradleyData Highway serial card. All other values are as per the standard serial interface card. Information for the standard serial interface card can be found inDeltaV Books Online, under the title “Using Serial Data Control Strategies”.

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

7

Powerful Solutions for Digital Plants

Attribute

 

 

Defined Values

 

 

DeviceDataType

0 = Basic Protected

 

1

= Basic Protected Bit

 

2

= Basic Unprotected

 

3

= Basic Unprotected Bit

 

4

= PLC-5Typed (Logical ASCII Addressing)

 

5

= PLC-5Ranged (Logical ASCII Addressing)

 

6

= Diagnostic

 

7

= PLC-5Read-Mod-Write(Logical ASCII Addressing)

 

8

=

PLC-5Typed (Logical Binary Addressing)

 

9

=

PLC-5Ranged (Logical Binary Addressing)

 

10 = PLC-5Read-Mod-Write(Logical Binary Addressing)

 

11= SLC 500, SLC 5/03 and SLC 5/04 Protected Typed

 

Logical Read/Write with three address fields

 

12=SLC Reserved

 

13=PLC-3

 

 

SpecialData1

This Field is “Don’t Care” for DeviceDataType 0-3,and 6

(PLC-5 /SLC /PLC-3File Type)

0 = Output File Type, O

 

1

= Input File Type, I

 

2

= Status File Type, S

 

3

= Binary File Type, B

 

4

= Timer File Type, T *

 

5

= Counter File Type, C *

For PLC-3Character value of File Prefix. For

6

= Control File Type, R *

 

 

 

example for File F, enter 70.

7= Integer File Type, N

 

8

= Floating File Type, F

 

* Timer, Counter and Control types are not available in this

 

driver at this time when communicating with a PLC-5.

 

 

SpecialData2

This field is “Don’t Care” for DeviceDataType 0-3,6

(PLC-5 /SLC /PLC-3File Number)

0 – 65535 file number

 

0

- 8 are reserved to match with file types in

 

SpecialData1

 

 

 

 

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

8

 

Powerful Solutions for Digital Plants

 

 

SpecialData3

Specify 0 for DF1 with Full Duplex and BCC

 

Specify 1 for DF1 with Half Duplex and CRC

 

 

SpecialData4

When using a 1770-KFC15gateway device, use this

 

Extra Hop parameter to access the ControlNet address

 

of the CNB module. The DeltaV PSIC device address

 

must be between 1-50.This parameter has only the

 

following values:

 

1. 100 for ControlNet node in slot 0.

 

2. 150 for ControlNet node in slot 1.

 

3. 200 for ControlNet node in slot 2.

 

All other values will generate an error message. Please

 

refer to Allen Bradley 1747-KFC15and1770-KFC15,

 

Firmware Version 4.2 release notes for more detailed

 

ControlNet information.

 

 

4.2Device And Dataset Configuration

The following paragraphs discuss some attributes in the device and Dataset configuration:

4.2.1Device Address:

The device address attribute is located in the device configuration box under port. It is the PLC/SLC node address, not the 1785-KEor1770-KF2communication module address. This number is used by DeltaV to uniquely identify each PLC in the Data Highway Plus network. The PLC node address is anoctal-basednumber set with dip switches on the PLC. Therefore, it needs to be converted to a decimal number in the serial card configuration. For example, an octal address of 10 on the PLC corresponds to a decimal address of 8 in the serial card. The acceptable address range is between 1 and 255.

4.2.2Output Mode:

Two output modes are available in the driver: block output (0) and single output (1). In typed or ranged transaction (DeviceDataType 4,5,8, and 9), the block output mode writes the entire data block for every output data value change. Therefore, it is undesirable to contain any foreign-device-controlled(device other than DeltaV) values within the block. For example, if aPLC-5memory N7:5 is written by aPLC-2,and user defines a Dataset with a range of N7:0 to N7:10 in block output mode, an output operation will overwrite the N7:5 with the value in the DeltaV database.

Single output mode allows individual value to be sent out, leaving other values in the Dataset unaffected. In the binary file type, word value is treated as a single value. It does not allow user to write a specific bit within a word. Therefore, the entire 16 bit will be written when a single discrete output value changes. When communication with a PLC-5,writing single bit values in amulti-bitDataset can be achieved withRead-Modify-Write(RMW) transaction (DeviceDataType 7 and 10). The RMW is used only with binary file type and single output mode. Each bit can be set or reset within a binary file without

MYNAH Technologies 504 Trade Center Blvd. Chesterfield, MO 63005 Telephone 636 681-1555Fax 636681-1660www.mynah.com

9