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

The text of a manual · part 11 of 20

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

Pages 76 to 84 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 76

6-10

Module Configuration Using the Backplane

DF1 Full-duplex Setup Parameters Upon initial power up, the module defaults to full–duplex and the 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.

Parameter

DF1 Full-duplex Setup Parameters Default Options Description

Duplicate Packet Detection

Disabled

Enabled, Disabled

Determines whether duplicate message detection is Disabled or Enabled. When enabled, duplicate messages will be acknowledged and discarded.

Checksum

BCC

BCC, CRC16

Determines the type of error detection that will be used on the DF1 link. It must be the same as that for any application programs that may be running.

Constant Carrier Detect

Disabled

Disabled, Enabled

If enabled, hardware handshaking is forced on. The module will monitor the carrier from the modem (DCD signal) and will not begin communication until it is detected.

Modem Init String

(blank)

Modem Init String Delay

0s

0...25 s

Determines the amount of time the module will wait before sending the Modem Init String to the modem.

Message Timeout

10,000 ms

100...12,750 ms

The time to wait for a response to a message sent on a DF1 network. This parameter is rounded down to the nearest 50 ms increment. For example, if you enter 199 ms, it is accepted as 150 ms.

Hardware Handshaking

Disabled

Disabled, Enabled

If enabled, the module will use the RTS and CTS signals for control of the modem.

Embedded Response Detect

Embedded Response

Selecting Embedded Response lets the module to send Embedded embedded responses within packets. Selecting Auto Response, Detect Embedded Response causes the module to use Auto Detect Embedded Response embedded responses only if an embedded response from the host is received by the module.

ACK Timeout

200 x 5 ms

(0...65,535) x 5 ms

Determines the time the module will wait for an ACK to be received from the host DF1 device.

ENQuiry Retries

2

0...254

Determines the number of enquiry retries that will be attempted before a packet transmission is considered to have failed.

NAK Received Retries

2

0...254

Determines the number of packet retries that will be attempted when NAK responses are received on previous transmissions of the packet.

Publication 1747-UM005B-EN-P - March 2006

Lets you configure your modem using Hayes commands upon every power cycle of the module. For example, entering ATDT here would get the modem’s attention (AT) and set it to tone dialing (DT). Sending a (~) character will produce a one second wait on the modem. Refer to your modem user manual for details.

Page 77

Module Configuration Using the Backplane

6-11

DF1 Half-duplex Setup Parameters If you set Word 1, bit 11 to half-duplex (0), the default parameters are those shown in the table on the following page. 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 Half-duplex Setup Parameters Parameter

Default

Options

Description

Duplicate Packet Detection

Disabled

Enabled, Disabled

Determines whether duplicate message detection is Disabled or Enabled. When enabled, duplicate messages will be acknowledged and discarded.

Checksum

BCC

BCC, CRC16

Determines the type of error detection that will be used on the DF1 link. It must be the same as that for the DF1 device.

Constant Carrier Detect

Disabled

Disabled, Enabled

If enabled, hardware handshaking is forced on. The module will monitor the carrier from the modem (DCD signal) and will not begin communication until it is detected.

Modem Init String

(blank)

Modem Init String Delay

0s

0...25 s

Determines the amount of time the module will wait before sending the Modem Init String to the modem.

Message Timeout

10,000 ms

100...12,750 ms

The time to wait for a response to a message sent on a DF1 network. This parameter is rounded down to the nearest 50 ms increment. For example, if you enter 199 ms, it is accepted as 150 ms.

Hardware Handshaking

Disabled

Disabled, Enabled

If enabled, the module will use the RTS and CTS signals for control of the modem.

Poll Timeout

200 x 5 ms (0...65,535) x 5 ms

Determines the time to wait to be polled by the DF1 master before a transmission request is ignored.

Message Retries

2

0...254

Determines the number of allowable retries on the DF1 link before failure.

RTS On Delay

0 x 5 ms

(0...65,535) x 5 ms

Determines the delay between the RTS (Request to Send) signal and the start of transmission by the module. This parameter is only required when communicating with the type of radio modem that requires a delay after exerting the RTS signal. It only takes effect if hardware handshaking is enabled. Refer to your modem user manual.

RTS Off Delay

0 x 5 ms

(0...65,499) x 5 ms

Determines the delay between the end of the message and the module setting RTS (Request to Send) inactive. This parameter is only required when communicating with modems that require a delay between sending the last character and raising the RTS signal. It only takes effect if hardware handshaking is enabled. Refer to your modem user manual.

Lets you configure your modem using Hayes commands upon every power cycle of the module. For example, entering ATDT here would get the modem’s attention (AT) and set it to tone dialing (DT). Sending a (~) character will produce a one second wait on the modem. Refer to your modem user manual for details.

Publication 1747-UM005B-EN-P - March 2006

Page 78

6-12

Module Configuration Using the Backplane

Parameter

Default

Options

Description

Local/Remote Mode

Local

Local, Remote

Refer to pages 3-3 and 3-4 for a description of these half– duplex modes.

Slave Address/ Group Number

0

Slave Add. = 0...254 Slave address is a half-duplex local mode parameter and is Group No. = 0...7 the address of the module on the DF1 link. Group Number is a half-duplex remote mode parameter and provides a means of addressing more than 32 DH-485 nodes. This is explained in detail on page 3-4

Master Station Address 8 (10 octal) 0...254 (decimal)

Build the DH-485 Configuration Packet

Determines the address of the half-duplex DF1 master device. For slave-to-slave communication, this is the address of the DF1 slave device. Refer to page 3-9.

Use the SLC processor to set up the DH-485 port. Build the configuration packet shown below by following the configuration instructions found on page 6-2. Descriptions of each of the parameters follow. SLC Output File to the Interface Module

Bit Word 0

1

15

14

Module Data Mode Hand Bit shake Bit

13

12

11

10

9

8

7

6

5

Reserved

Read Reset or Interface Write Module Bit Bit

DH-485 Max. Node Address (1-31)

3

2

1

0

Data ID=3

DH-485 Node Address (0-31)

2 3

4

Pass DH-485 Communication Thru Rate Message Timeout (100...12,750 ms)

4 5 6 7

DH-485 Port Setup Parameters When the module is powered up for the first time, the DH-485 port will be set to the default parameters. 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.

Publication 1747-UM005B-EN-P - March 2006

Page 79

Module Configuration Using the Backplane

6-13

Parameter

DH-485 Port Setup Parameters Default Options Description

Node Address

2

0...31 (decimal)

The address of this node on the DH-485 network. Every device on the DH-485 network must be given a unique node address. For optimum performance, set devices to consecutive addresses starting at 0. This minimizes the solicitation of new stations.

Max. Node Address

31

1...31 (decimal)

The number of nodes that will be polled. For optimum performance this value should be set no larger than the value of the highest numbered node on the network.

Message Timeout

10,000 ms

100...12,750 ms

The time to wait for a response to a message sent on a DH-485 network.

Pass Through

Disabled

0=Disabled, 1=Enabled

Determines whether diagnostic commands are executed by the module (Disabled) or passed through to the host (Enabled).

Communication Rate

19200

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 on the DH-485 link. Important: All stations on the DH-485 link must be set to the same communication rate.

Build the Modem Init String Configuration Packets

When the module is powered up for the first time, the Modem Init String is empty. You can build the string using the two Data ID numbers reserved for the Modem Init String. The packet with Data ID 4 will set up the first 14 characters of the Modem Init String. If you require less than 14 characters, place a NULL in the location immediately following the last valid character. The module ignores all characters beyond the NULL value. If you require exactly 14 characters, the module automatically places a NULL after the 14th character. If you need more than 14 characters, you also need to send the packet with Data ID 5. Send this packet only after you send the packet with Data ID 4. Here again you need to place a NULL immediately following the last valid character. If you use all available characters of the string, a NULL is automatically placed after the 28th character.

Publication 1747-UM005B-EN-P - March 2006

Page 80

6-14

Module Configuration Using the Backplane

Modem Init String for Characters 1 Through 14 To set up string characters 1 to 14, build the configuration in the table shown below. Please note that sending a ~ character produces a one second wait on the modem. Follow the configuration instructions found on page 6-2. SLC Output File to the Interface Module Bit Word 0(1)

15

14

Module Data Mode Hand Bit shake Bit

13

12

Read or Reset write Interface Bit Module Bit

11

10

9

8

7

6

5

Reserved

1

1st ASCII character

2nd ASCII character

2

3rd ASCII character

4th ASCII character

3

5th ASCII character

6th ASCII character

4

7th ASCII character

8th ASCII character

5

9th ASCII character

10th ASCII character

6

11th ASCII character

12th ASCII character

7

13th ASCII character

14th ASCII character

(1)

4

3

2

1

0

Data ID=4

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

Publication 1747-UM005B-EN-P - March 2006

Page 81

Module Configuration Using the Backplane

6-15

Modem Init String for Characters 15 Through 28 Build the configuration in the table shown below if you need to use characters 15 to 28 of the Modem Init String. Please note that sending a ~ character produces a one second wait on the modem. SLC Output File to the Interface Module Bit Word

14

Module Data Mode Hand shake Bit Bit

0(1)

(1)

15

13

12

11

Read or Reset Write Interface Module Bit Bit

10

9

8

7

Reserved

6

5

4

3

2

1

0

Data ID=5

1

15th ASCII character

16th ASCII character

2

17th ASCII character

18th ASCII character

3

19th ASCII character

20th ASCII character

4

21st ASCII character

22nd ASCII character

5

23rd ASCII character

24th ASCII character

6

25th ASCII character

26th ASCII character

7

27th ASCII character

28th ASCII character

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

Publication 1747-UM005B-EN-P - March 2006

Page 82

6-16

Module Configuration Using the Backplane

Use the Real Time Clock

You can use the interface module as a Real Time Clock in conjunction with normal module operation. Set up the Calendar/Clock Function by using the configuration instructions found on page 6-2 and the configuration packet information shown below. SLC Output Status to the Interface Module

Bit Word 0(1)

15

14

13

12

Module Data Mode Hand Bit shake Bit

Read or Write Bit

Reset Interface Module Bit

1

Day (1...31)

2

Month (1...12)

3

Year (00...99)

11

10

9

4

Day of the Week (1...7, where Sunday=1 and Saturday=7)

5

Hour (0...23 [only 24 hour clock is available])

6

Minute (0...59)

7

Second (0...59)

(1)

8

Reserved

7

6

5

4

3

2

1

0

Data ID=1

The output status word is defined on page 6-6. To set the Real Time Clock, the Read or Write Bit must be 1. To read the Real Time Clock, the Read or Write Bit must be 1 and the Module Mode Bit can either be at 0 or 1.

Publication 1747-UM005B-EN-P - March 2006

Page 83

Module Configuration Using the Backplane

Establish a Data Echo Between the Interface Module and the SLC Processor

6-17

Whether in software Run or software Configuration mode, the SLC processor can send data in the Output Image file to the interface module and have it echoed back by the module’s Input Image file. This feature gives the SLC processor the ability to verify that the module is operating properly. If the data is not echoed back, the module is assumed to be operating incorrectly and is forced into a reset by the SLC processor. See the section Resetting the Interface Module from the SLC processor. Establish a Data Echo With the SLC processor you The interface module then 1. Set the Data ID to 6 (O:e.0/0...3). 2. Load known data into words 1...7 of the output file (O:e.1...7). 3. Set the Data Handshaking bit (O:e.0/14). 4. Verifies that the DF1 and DH-485 ports are okay. 5. Loads the data from the output file into the input file. 6. Sets the Data Handshaking Bit (I:e.0/14). 7. Verify that the Input File words 1...7 (I:e.1...7) match the Output File (O:e.1...7). 8. Reset the Data Handshaking Bit (O:e.0/14). 9. Resets the Data Handshaking Bit (I:e.0/14).

The SLC processor can set up the Data Echo configuration by building the configuration packet shown below. SLC Output File to the Interface Module Bit Word 0(1)

(1)

15

14

13

12

Module Data Mode Hand Bit shake Bit

Read or Write Bit

Reset Interface Module Bit

11

10

9

8

7

Reserved

1

User-defined Data

2

User-defined Data

3

User-defined Data

4

User-defined Data

5

User-defined Data

6

User-defined Data

7

User-defined Data

6

5

4

3

2

1

0

Data ID=6

The output status word is defined on page 6-6. To write the echo data packet, the Read or Write bit must be 0 and the Module Mode Bit can be either 0 or 1.

Publication 1747-UM005B-EN-P - March 2006

Page 84

6-18

Module Configuration Using the Backplane

Reset the Interface Module from the SLC Processor

The SLC processor can perform a soft reset of the interface module when the module is in either software Run or software Configuration mode. If the Reset bit is set, all other configuration information within that Output Image file will be ignored by the interface module. The reset is accomplished as listed below. Reset the Module from the SLC Processor With the SLC processor you The interface module then 1. Set the Reset Interface Module Bit (O:e.0/12). 2. Performs a reset. 3. Sets the Reset Acknowledgement Bit (I:e.0/12) if the module detects the Reset bit is high. Otherwise, the module will assume a normal power cycle reset occurred and will not need to set the Reset Acknowledgement bit. 4. Reset the Reset Interface Module Bit (O:e.0/12). 5. Resets the Reset Acknowledgement Bit (I:e.0/12).

Publication 1747-UM005B-EN-P - March 2006