The text of a manual · part 9 of 20
DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual: 5 - Module Configuration with a Terminal Overview
Pages 55 to 66 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 55
Chapter
5
Module Configuration Using an ASCII Terminal
This chapter guides you through the configuration of your interface module using an ASCII terminal. If you prefer to configure your module using backplane communication, proceed to Chapter 6. Once you complete the configuration, return to page 4-15 for instructions on completing the installation of your module. This chapter includes: • configuration of the ASCII terminal. • overview of module configuration with a terminal. • top level setup menu. • CONFIG port menu. • DF1 port menu. • DH-485 port menu. • DF1 protocol menu. • display parameters menu.
IMPORTANT
1
Configuration with an ASCII terminal is an alternate configuration method than that presented in Chapter 6, Module Configuration Using the Backplane.
Publication 1747-UM005B-EN-P - March 2006
Page 56
5-2
Module Configuration Using an ASCII Terminal
ASCII Terminal Configuration
To communicate with the interface module through an ASCII terminal, connect the terminal to the CONFIG port. ASCII Terminal Configuration Interface Module (1747-KE)
ASCII Terminal
Cable (1747-C13)
The ASCII terminal can be any industrial terminal, workstation, or personal computer with terminal mode software that communicates in alphanumeric mode. Allen-Bradley has a development software package (catalog number 1747-PBASE) for the SLC 500 BASIC module that is capable of ASCII terminal emulation on an IBM compatible computer. HyperTerminal is a terminal emulation program included with all versions of MicroSoft Windows. Configure the ASCII terminal’s communication parameters for: • 1200 Kbps. • 8 bits per character. • no parity. • 1 stop bit. • software handshaking enabled (XON/XOFF).
Publication 1747-UM005B-EN-P - March 2006
Page 57
Module Configuration Using an ASCII Terminal
Module Configuration with a Terminal Overview
5-3
Configuration of the module with an ASCII terminal requires: • an ASCII terminal connected to the CONFIG port. • jumper JW4 to be in the configuration position. See page 4-4 for more information. • knowledge of the communication parameters of the devices you will be connecting to each of the module ports. • knowledge of what types of cables will be used to connect devices to the module ports. Refer to the cable information beginning on page 4-8. When you power up the module and your ASCII terminal, a Top Level Setup menu appears. The menu structure is three levels deep. Menu Structure
Top Level Setup Menu
CONFIG Port Setup
DF1 Port Setup
DH-485 Port Setup
DF1 Protocol Setup
Half-duplex Setup
Display Parameters
Full-duplex Setup
Publication 1747-UM005B-EN-P - March 2006
Page 58
5-4
Module Configuration Using an ASCII Terminal
Top Level Setup Menu
The Top Level Setup Menu provides six selections. Top Level Setup Menu 1747 KE Module, FRN # Top Level Setup Menu. 1. CONFIG PORT 2. DF1 PORT 3. DH 485 PORT 4. DF1 PROTOCOL 5. DISPLA Y PARAMETERS X. SAVE AND EXIT
Enter Selection. . . . .
• To redisplay the above menu, press [ENTER]. • To access the corresponding menus (described on the following pages), press [1] through [5]. • To save changes and exit, press [X]. This enables the DH-485 and DF1 ports. IMPORTANT
After configuration is complete, place the module in Run mode as described on page 4-15. If you operate the module in Configuration mode, cycling power will disable the DF1 and DH-485 ports, return to the configuration mode, and display the Top Level Setup Menu on your ASCII terminal.
Change Parameters for Menus 1 through 4 To change any of the parameters in menus 1 through 4: 1. Select the parameter you wish to change. The current parameter setting and a prompt for entering a new value appear at the bottom of the screen. 2. Type in the new value and press [ENTER]. If you enter an invalid value, the ASCII terminal beeps and the prompt remains. Refer to the tables on pages 5-5 through 5-12 for the valid parameter options.
Publication 1747-UM005B-EN-P - March 2006
Page 59
Module Configuration Using an ASCII Terminal
5-5
When you enter a valid value the prompt line disappears, indicating that your change has been saved. You now have the option to select another parameter. 3. Once you finish changing parameters, press [X] to return to the Top Level Setup Menu.
CONFIG Port Menu
The CONFIG PORT Setup Menu provides six selections. CONFIG Port Setup Menu CONFIG PORT Setup Menu
1. Baudrate 2. Bits per character 3. Parity 4. Stop bits 5. Handshaking X. SAVE AND EXIT
Enter Selection. . . . .
CONFIG PORT Setup Parameters Whenever the module is powered up, the CONFIG port is set to the default parameters. If these parameters are changed and the setup is saved, they will remain changed only as long as module power remains on. Whenever power to the module is cycled off, the CONFIG port parameters return to their default values.
Parameter
Default
CONFIG PORT Setup Parameters Options Description
Communication Rate 1200
300, 600, 1200, 2400, 4800, 9600, 19200
The speed in bits per second at which data is transferred. Must be set the same as the ASCII terminal.
Bits Per Character
8
7, 8
The size in number of bits of each character to be transferred. Must be set the same as the ASCII terminal.
Parity
None
Even, Odd, None
Used for checking data during the transfer. Must be set the same as the ASCII terminal.
Stop Bits
1
1, 2
Used for delineating data during the transfer. Must be set the same as the ASCII terminal.
Handshaking
Software
None, Software, Hardware, Both
Describes the communication protocol. If Hardware handshaking or Both is selected, you must use cables wired accordingly.
Publication 1747-UM005B-EN-P - March 2006
Page 60
5-6
Module Configuration Using an ASCII Terminal
DF1 Port Menu
The DF1 PORT Setup Menu provides five selections. DF1 PORT Setup Menu DF1 PORT Setup Menu
1. Baudrate 2. Bits per character 3. Parity 4. Stop bits X. SAVE AND EXIT
Enter Selection. . . . .
DF1 Port Setup Parameters When the module is powered up for the first time, the DF1 port will be set to the default parameters. If these parameters are changed and the setup is saved, 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
Default
DF1 Port Setup Parameters Options
Description
Communication Rate 1200
300, 600, 1200, 2400, 4800, 9600, 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
7, 8
The size in number of bits of each character to be transferred. Must be set the same as the DF1 device.
Parity
None
Even, Odd, None
Used for checking data during the transfer. Must be set the same as the DF1 device.
Stop Bits
1
1, 2
Used for delineating data during the transfer. Must be set the same as the DF1 device.
Publication 1747-UM005B-EN-P - March 2006
Page 61
Module Configuration Using an ASCII Terminal
DH-485 Port Menu
5-7
The DH-485 PORT Setup Menu provides six selections. DH-485 Port Menu DF1 PORT Setup Menu
1. Baudrate 2. Bits per character 3. Parity 4. Stop bits X. SAVE AND EXIT
Enter Selection. . . . .
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, then the module will always power up with the new settings, unless the battery fails and power to the module’s RAM is lost. DH-485 Port Setup Parameters Options Description
Parameter
Default
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
Enabled, Disabled
Determines whether diagnostic commands are executed by the module (Disabled) or passed through to the host (Enabled).
300, 600, 1200, 2400, 4800, 9600, 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.
Communication Rate 19200
Publication 1747-UM005B-EN-P - March 2006
Page 62
5-8
Module Configuration Using an ASCII Terminal
DF1 Protocol Menu
When you press [4] to select the DF1 Protocol Menu, you are first prompted at the bottom of the Top Level Setup Menu to select [H] or [F] for half- or full-duplex. IMPORTANT
Choose [F] for full-duplex when using RSLinx software.
DF1 Protocol Menu 1. CONFIG PORT 2. DF1 PORT 3. DH 485 PORT 4. DF1 PROTOCOL 5. DISPLA Y PARAMETERS X. SAVE AND EXIT
Enter Selection. . . . .4 DF1 Duplex = Full, New Value (H/F) =
DF1 Full-duplex Setup Menu Select full-duplex by pressing [F] when prompted at the bottom of the Top Level Setup Menu. The DF1 Full-duplex Setup Menu provides 12 selections. DF1 Full-duplex Setup Menu DF1 Full Duplex Setup Menu 1. Duplicate Packet Detection 2. Checksum 3. Constant Carrier Detect 4. Modem Init String 5. Modem Init String Delay 6. Message Timeout 7. Hardware Handshaking 8. Embedded Response Detect 9. ACK T imeout A. ENQuiry Retries B. NAK Received Retries X. SAVE AND EXIT Enter Selection. . . . .
Publication 1747-UM005B-EN-P - March 2006
Page 63
Module Configuration Using an ASCII Terminal
5-9
DF1 Full-duplex Setup Parameters When the module is powered up for the first time, the DF1 protocol will be set to the default parameters. If these parameters are changed and the setup is saved, 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.
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 1 s wait on the modem. Refer to your modem user manual for details.
Publication 1747-UM005B-EN-P - March 2006
Page 64
5-10
Module Configuration Using an ASCII Terminal
DF1 Half-duplex Setup Menu When you press [4] on the Top Level Setup Menu, you are prompted at the bottom of the menu to select [H] or [F] for half- or full-duplex. Enter [H] to display the Half–Duplex Setup Menu. IMPORTANT
Choose [F] for full-duplex when using RSLinx software.
DF1 Half-duplex Setup Menu
DF1 Half Duplex Setup Menu 1. Duplicate Packet Detection 2. Checksum 3. Constant Carrier Detect 4. Modem Init String 5. Modem Init String Delay 6. Message Timeout 7. Hardware Handshaking 8. Poll Timeout 9. Message Retries A. RTS On Delay B. R TS Of f Delay C. Local/Remote Mode D. Slave Address/Group Number C. Master Station Address X. SAVE AND EXIT Enter Selection. . . . .
DF1 Half-duplex Setup Parameters When the module is powered up for the first time, the DF1 protocol will be set to the default parameters. If these parameters are changed and the setup is saved, 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 65
Module Configuration Using an ASCII Terminal
Parameter
5-11
DF1 Half-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 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)
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.
Modem Init String Delay 0 s
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.
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 allows 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)
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-10.
Publication 1747-UM005B-EN-P - March 2006
Page 66
5-12
Module Configuration Using an ASCII Terminal
Display Parameters Menu
When you press [5] from the Top Level Setup Menu, you see a screen displaying all of the parameter settings of the CONFIG, DF1, and DH-485 ports. There are two Setup Summary screens, one for full-duplex and one for half-duplex. If you are in full-duplex mode when you select [5] you will see the full-duplex summary screen. Similarly, if you are in half-duplex mode when you select [5] you will see the half-duplex summary screen. To exit the Display Parameters screen and return to the Top Level Setup Menu, press any key. Full-duplex Setup Summary Setup Summary CONFIG POR T
DF1 POR T
DH-485 POR T
Baud . . . . 1200
Baud . . . . . 1200 Baud . . . . . . 19200
Bits/char . . . . . 8
Bits/char . . . . . . 8 Node . . . . . . . . . 2
Parity . . . . None
Parity . . . . . None Max Node Add . 31
Stop Bits . . . . 1
Stop Bits . . . . . . 1 Msg Time
Hndshking . Soft
10000ms
Pass Thru . . . . . Off
DF1 PR TCL (Full Dup) DPD . . . . . . . . . . . . . . Off Checksum . . . . . . . . BCC CCD . . . . . . . . . . . . . Off Modem Init Delay . . . . 0S Msg Time . . . . . 10000mS RTS/CTS . . . . . . . . . . Off Em Resp Detect . . . . . ER ACK T ime . . . . . 200x5mS ENQ Retries . . . . . . . . . 2 NAK Retries . . . . . . . . . 2
Modem Init String = Hit any key to continue. . . . .
Half-duplex Setup Summary
Setup Summary CONFIG POR T
DF1 POR T
Baud . . . . 1200
Baud . . . . . 1200 Baud . . . . . . 19200
Bits/char . . . . . 8
Bits/char . . . . . . 8 Node . . . . . . . . . 2
Parity . . . . None
Parity . . . . . None Max Node Add . 31
Stop Bits . . . . 1
Stop Bits . . . . . . 1 Msg Time
Hndshking . Soft
Modem Init String = Hit any key to continue. . . . .
Publication 1747-UM005B-EN-P - March 2006
DH-485 POR T
10000ms
Pass Thru . . . . . Off
DF1 PR TCL (Half Dup) DPD . . . . . . . . . . . . . . Off Checksum . . . . . . . . BCC CCD . . . . . . . . . . . . . Off Modem Init Delay . . . . 0S Msg Time . . . . . 10000mS RTS/CTS . . . . . . . . . . Off Poll Time . . . . . . 200x5ms Msg Retries . . . . . . . . . 2 RTS On Delay . . . 0x5ms RT S Off Delay . . . . 0x5ms Loc/Rem . . . . . . . . Local Group . . . . . . . . . . . . . 0 Master . . . . . . . . . . . . . 8