Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 10 of 20

DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual: 6 - Module Configuration Using the Backplane, pages 67 to 75

Pages 67 to 75 of 139, from DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual

The original document is the PDF (1.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Allen-Bradley 1747-AIC DH-485

Page 67

Chapter

6

Module Configuration Using the Backplane

IMPORTANT

Configuration through the backplane is an alternate configuration method than that presented in Chapter 5. If you prefer to configure your module using an ASCII terminal, or have already done so, you do not need to go through this chapter. Instead, return to Chapter 5 for directions on configuration with a terminal or move on to Chapter 7.

The interface module can be configured through backplane communications using any SLC fixed, 5/01, 5/02, 5/03, 5/04, or 5/05 processor. This chapter guides you through the configuration of your interface module using backplane communications. Once you complete the configuration, return to page 4-15 for instructions on completing the installation of your module. Topics for this chapter include: • configuring the interface module from the SLC processor. • placing the module into software Run mode from the SLC processor. • reading the module’s configuration from the SLC processor. • examining the SLC processor’s status word. • building the DF1, DH-485, and Modem Init String configuration packets. • using the Real Time Clock. • establishing a Data Echo between the interface module and the SLC processor. • resetting the interface module from the SLC processor.

Overview

1

In this method of configuration, the SLC processor uses the backplane to load the configuration data into the Output Image file for the interface module. By assigning a Data ID value in the Output Image file you designate which parameters to configure.

Publication 1747-UM005B-EN-P - March 2006

Page 68

6-2

Module Configuration Using the Backplane

There are six valid Data ID values, one for each of the configuration packets you create to configure your interface module. Valid Data ID Values Data ID value Lets you build a configuration packet for 01

Calendar/Clock Function

02

DF1 Set Up Parameters

03

DH-485 Set Up Parameters

04

Modem Init String (1...14 characters)

05

Modem Init String (15...28 characters)

06

Data Echo

IMPORTANT

Configure the Interface Module from the SLC Processor

The steps for configuring the module from the SLC processor follow. Use these instructions to build the configuration packets described in the remainder of this chapter. IMPORTANT

Publication 1747-UM005B-EN-P - March 2006

Any of the configuration packets can be sent independently and do not need to be in a particular sequence, with the exception of the Modem Init String packets (Data ID 4 and 5). In this instance, packet ID 4 must be sent before packet ID 5.

The terms software Configuration mode and software Run mode in this chapter refer to the SLC processor changing the interface module’s mode across the backplane. The module’s JW4 jumper must remain in the vertical Run mode (module configuration ID=3509) while using backplane communications.

Page 69

Module Configuration Using the Backplane

6-3

Configure the Module From the SLC Processor With the SLC processor you

The interface module then

1. Place the module into software Configuration mode, if it is not already. Do this setting the Module Mode Bit (O:e.0/15). 2. Load the correct Data ID value for the parameters you will configure (O:e.0/0...3). 3. Build the Output Image file with configuration data (O:e.1...7). 4. Write the configuration data by resetting the Read or Write bit (O:e.0/13). 5. Set the Data Handshake bit to indicate the data in the Output Image file is valid (O:e.0/14). 6. Gets the configuration data from the SLC Output file. 7. Configures parameters on the Interface Module. 8. Echoes the Data ID (I:e.0/0...3) and configuration data (I:e.1...7), and places the status of the configuration transaction in the SLC Input File (I:e.0/4...10). 9. Sets the Data Handshake bit to indicate the image data is valid (I:e.0/14). 10. Reset the Data Handshake bit (O:e.0/14). 11. Resets the Data Handshake bit (I:e.0/14). 12. Save your configuration changes by putting the module in software Run mode.

IMPORTANT

The configuration data that is loaded does not take effect until the interface module goes to software Run mode. Therefore, to save your configuration changes be sure to put the module in software Run mode.

Publication 1747-UM005B-EN-P - March 2006

Page 70

6-4

Module Configuration Using the Backplane

Place the Module into Software Run Mode from SLC Processor

When configuration is complete, place the module in software Run mode by following these steps. Place the Module in Run Mode With the SLC processor you

The interface module then

1. Reset the Module Mode bit to software Run (O:e.0/15). 2. Set the Data Handshake bit to indicate the data in the Output Image file is valid (O:e.0/14). 3. Resets the Module Mode bit to software Run in the SLC Input Image File (I:e.0/15). 4. Sets the Data Handshake bit (I:e.0/14). 5. Reset the Data Handshake bit (O:e.0/14). 6. Resets the Data Handshake bit (I:e.0/14).

Publication 1747-UM005B-EN-P - March 2006

Page 71

Module Configuration Using the Backplane

Read the Module’s Configuration from the SLC Processor

6-5

The interface module’s current configuration can be read back to the SLC processor using the Input and Output Image files. IMPORTANT

The interface module can be in software Run or software Configuration mode during the read operation.

Read the Module’s Configuration from the SLC Processor With the SLC processor you The interface module then 1. Set the Read or Write bit to indicate a configuration read operation (O:e.0/13). 2. Set the Data ID value for the configuration parameters to be read (O:e.0/0...3). 3. Set the Data Handshake bit to indicate the data in the Output Image file is valid (O:e.0/14). 4. Interprets the Data ID value. 5. Gets the configuration data from the Interface Module. 6. Loads the data into the Input Image file (I:e.1...7). 7. Sets the Data Handshake bit to indicate the image data is valid (I:e.0/14). 8. Read configuration data. 9. 9. Reset the Data Handshake bit (O:e.0/14). 10. 10. Resets the Data Handshake bit (I:e.0/14).

Publication 1747-UM005B-EN-P - March 2006

Page 72

6-6

Module Configuration Using the Backplane

Examine the SLC Processor’s Status Word

SLC Output Status Word to the Interface Module The output status word reserved for implementing backplane configuration and for resetting the interface module is shown below. Those status bits not defined here are reserved for future use. SLC Output Status Word Status Bits Data Handshake Bit 0 = Data in the output image may not be valid. 1 = Data in the Output Image file is valid.

Reset Interface Module Bit 1 = Reset the module.

Bit Number (decimal) 15 14 13 12 11 10 9

8

7

6

5

Read or Write Bit

Module Mode Bit

4

3

2

1

0

O:e.0

R R R R R R R R

Status Word, Word 0

0 = Place module in software Run mode. 1 = Place module in software Configuration mode.

Data ID Value BIts

0 = Write 1 = Read

Valid Values: 01 = Calendar/Clock Setup 02 = DF1 Configuration 03 = DH-485 Configuration 04 = Modem Init String (characters 1 through 14) 05 = Modem Init String (characters 15 through 28) 06 = Data Echo Function (all other values are invalid)

SLC Input Status Word from the Interface Module This is the input status word reserved for implementing backplane configuration and for resetting the interface module. Those status bits not defined below are reserved for future use. SLC Input Status Word Status Bits Data Handshake Bit (1)

Reset Acknowledge Bit (1)

0 = Input image data may not be valid. 1 = SLC output image data is accepted by the interface module. Input image data is valid.

1 = Acknowledges that the module was reset from the SLC processor.

Bit Number (decimal) 15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

0 = Module is running. 1 = Module requires configuring or is in software Configuration mode.

Battery Status Bit

Modem Lost Bit (1)

0 = Battery is good. 1 = Battery is low.

0 = Modem carrier detected. 1 = Modem carrier inactive (no modem connected).

(1) Applies to series B, or later interface modules only.

Publication 1747-UM005B-EN-P - March 2006

0

I:e.0

Status Word, Word 0

Module Mode Bit

Status Code Bits

Data ID Value Bits (1)

Page 73

Module Configuration Using the Backplane

6-7

Status Codes from the Module to the Processor The module informs the SLC processor on the status of the configure or read transaction by placing a status value in the Input Image file word 0, bits 4 to 10. A value of 00 indicates that the status is okay. Status Codes from the Module to the SLC Processor Value Value Indicates improper status for (hex) (dec) 01

01

Day

02

02

Month

03

03

Year

04

04

Day of the Week

05

05

Hour

06

06

Minute

07

07

Second

08

08

Data ID

09

09

(Not Used)

0A

10

(Not Used)

0B

11

DF1 Enq/Msg Retry

0C

12

Modem Init String Delay

0D

13

Master Station/NAK Rec Retry

0E

14

Slave Address/Group Number

0F

15

(Not Used)

10

16

DF1 Message Timeout

11

17

(Not Used)

12

18

RTS Off Delay

13

19

DH-485 Node Address

14

20

DH-485 Max Node Address

15

21

DH-485 Communication Rate

16

22

DH-485 Message TImeout

17

23

Modem Init String character

18

24

A write operation is attempted, but the configuration bit is not set (still in software Run mode).

Publication 1747-UM005B-EN-P - March 2006

Page 74

6-8

Module Configuration Using the Backplane

Build the DF1 Configuration Packet

15

14

13

12

Use the SLC processor to set up the DF1 port. Build the configuration packet shown by following the configuration instructions found on page 6-2. SLC Output File to the Interface Module 11 10 9 8 7

6

5

4

3

2

1

0

Bit Word 0(1)

Module Data Read or Reset Reserved Mode Handshake Write Interface Bit Bit Bit Module Bit

1

Data ID=2

Embedded Half or Constant Hardware Check Duplicate Stop Response Full- Carrier Handsum Packet Bits Detect duplex Detect(2) shaking(2) Detection (Full) or Local/Rem ote Mode (Half)

Parity

Bits per DF1 Character Communication Rate

2

Modem Init String Delay (0...25 s)

Enq/Msg Retries (0...254)

3

Slave Address (Local) (0...254) Group Number (Remote) (0...7)

Master Station Address (Half Duplex) (0...254) NAK Rec Retries (Full Duplex) (0...254)

4

ACK/POLL Timeout (0...65,535 x 5 ms)

5

Message Timeout (100...12,750 ms)

6

RTS ON Delay (0...65,535 x 5 ms)(3)

7

RTS OFF Delay (0...65,499 x 5 ms)(3)

(1)

The output status word is defined on page 6-6. To configure the DF1 parameters the Read or Write Bit must be 0 and the Module Mode Bit must be 1. To read the DF1 parameters, the Read or Write Bit must be 1 and the Module Mode Bit can either be 0 or 1.

(2)

If Constant Carrier Detect is enabled, Hardware Handshaking is forced on.

(3)

The value is ignored if full-duplex is chosen.

Publication 1747-UM005B-EN-P - March 2006

Page 75

Module Configuration Using the Backplane

6-9

DF1 Port Setup Parameters When the module is powered up for the first time, the DF1 port will be set to the default parameters shown in the table below. If these parameters are changed and the setup is saved (by changing to software Run mode), then the module will always power up with the new settings, unless the battery fails and power to the module’s RAM is lost. DF1 Port Setup Parameters Options

Parameter

Default

Description

Communication Rate

1200

0=300, 1=600, 2=1200, 3=2400, 4=4800, 5=9600, 6 and 7=19200

The speed in bits per second at which data is transferred. Must be set the same as the DF1 device.

Bits Per Character

8 bits

0=7 bits, 1=8 bits

The size in number of bits of each character to be transferred. Must be set the same as the DF1 device.

Parity

None

0 and 3=None, 1=Even, 2=Odd

Used for checking data during the transfer. Must be set the same as the DF1 device.

Stop Bits

1 bit

0=1 bit, 1=2 bits

Used for delineating data during the transfer. Must be set the same as the DF1 device.

Publication 1747-UM005B-EN-P - March 2006