The text of a manual · part 14 of 20
DH-485/RS-232C Interface Module, Catalog Number 1747-KE, User Manual: 8 - Application Examples, pages 99 to 108
Pages 99 to 108 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 99
Application Examples
8-11
Configuration Data Table Shown below is the configuration information for N10 in Decimal radix. Configuration Data Table Address 0 1 2
3
4
5
6
7
8
9
N10:0
1
5
12
93
4
11
15
30
0
0
N10:10
0
0
0
0
0
0
0
0
0
0
N10:20
0
0
0
0
0
0
0
0
0
0
Data Echo Feature The Data Echo feature gives the SLC processor the ability to verify that the interface module is operating properly. This example shows you how to set up the Data Echo using the backplane.
User Program This program shown on the following pages checks for proper interface module operation every 40 seconds, and resets the module if proper operation is not detected.
Publication 1747-UM005B-EN-P - March 2006
Page 100
8-12
Application Examples
This rung provides a 40 second base timer. Data echo timer.
TON Rung 2:0
TIMER ON DELAY Timer T4:0 Time Base 0.01 Preset 4000 Accum 0
(EN) (DN)
This rung provides a 5 second timer. Start the response timeout. Rung 2:1
T4:0 ] [ DN
Response timer.
TON TIMER ON DELAY Timer T4:1 Time Base 0.01 Preset 500 Accum 0
(EN) (DN)
This rung initializes the interface module. Start the response timeout. Rung 2:2
T:4 B3 [OSR] ] [ 11 0
Get quasi random data.
MOV MOVE Source Dest
S:4 0 N10:1 123
Copy test echo data to interface module.
COP COPY Source Dest Length
#N10:0 #O:1.0 8
Turn OFF interface Reset bit.
O:1.0 (U) 12 Turn ON handshake bit to interface module.
O:1.0 (L) 14
Publication 1747-UM005B-EN-P - March 2006
Page 101
Application Examples
8-13
This rung checks that proper data was echoed from the module, or that 5 seconds passed without interface module response.
Rung 2:3
Handshake bit to module.
Handshake bit from module.
O:1.0 ] [ 14
I:1.0 ] [ 14
Handshake bit to the interface module.
No response from interface module.
O:1.0 ] [ 14
I:1.0 ]/[ 14
Get data from the interface module.
COP COPY Source Dest Length
Set 5 secs after data echo.
#I:1.0 #N10:10 8
Reset 40 second base timer.
S:4 ] [ 7
T4:0 (RES) Turn OFF handshake bit to interface module.
O:1.0 (U) 14 Check the first word echoed.
Turn ON interface Reset bit.
NEQ NOT EQUAL Source A Source B
O:1.0 (L) 12
N10:11 0 N10:1 123
Check the last word echoed.
NEQ NOT EQUAL Source A Source B
Rung 2:4
N10:17 0 N10:7 654
<END>
Configuration Data Table Shown below is the configuration information for N10 in Decimal radix. Configuration Data Table Address 0 1 2
3
4
5
6
N10:0
6
XXX
456
789
345
678
321
654
0
0
N10:10
0
0
0
0
0
0
0
0
0
0
N10:20
0
0
0
0
0
0
0
0
0
0
7
8
9
Publication 1747-UM005B-EN-P - March 2006
Page 102
8-14
Application Examples
RSLogix Software to SLC Network via Modem Example
One of the primary purposes for the interface module is to connect RSLogix software to a SLC 500 network by using modems. This example shows you how to make this type of connection by taking you through the steps necessary to set up the following system. RSLogix Software to SLC Network Interface Module (1747-KE)
DF1 Protocol
1747-C13 cable Modem
Modem
To connect RSLogix software to a SLC 500 network, the serial communications port on the interface module that uses the DF1 protocol must be configured to match the interface parameters for the computer serial port where RSLinx software is installed. The text starting on the next page describes the procedure you use to do this.
Publication 1747-UM005B-EN-P - March 2006
Page 103
Application Examples
8-15
Configure the Module’s Serial Port The steps below describe how to configure the interface module’s serial port using an ASCII terminal. However, you may use an alternate configuration method if you choose (for example, ASCII terminal emulation software or backplane communication). To configure the module’s serial port: 1. Place the interface module’s JW4 jumper into either horizontal or vertical configuration mode, depending on which functionality you chose. See Chapter 4 2. Connect an RS-232 cable between an ASCII terminal and the interface module’s configuration port. Please refer to Chapter 4 for RS-232 cable pinouts between the interface module’s configuration port and the ASCII terminal serial port. Use one of the cable diagrams on page 4-8 for no hardware handshaking. 3. Configure the module. The DF1 port and the DH-485 settings for the interface module are as shown below.
Setup Summary CONFIG PORT
DF1 PORT
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
DH-485 PORT
DF1 PRTCL (Full Dup)
10000ms
Pass Thru . . . . . Off
DPD . . . . . . . . . . . . . . Off Checksum . . . . . . . . CRC CCD . . . . . . . . . . . . . Off Modem Init Delay . . . . 1S Msg Time . . . . . 10000mS RTS/CTS . . . . . . . . . . Off Em Resp Detect . . . ADER ACK T ime . . . . . 200x5mS ENQ Retries . . . . . . . . . 2 NAK Retries . . . . . . . . . 2
Modem Init String = ATZ Hit any key to continue. . . . .
4. Once the interface module is configured, place the module’s JW4 jumper into either horizontal or vertical Run mode, depending on which functionality you chose.
Publication 1747-UM005B-EN-P - March 2006
Page 104
8-16
Application Examples
Configure the DF1 Modem Driver Using RSLinx 2.x or Later The DF1 driver makes the communication connection between the PC (sending modem) and the 1747-KE module (receiving modem). Once configured, this driver can be called by the programming software used to program the SLC processor. The steps below describe how to configure the DF1 modem driver using RSLinx Classic version 2.x. To begin: 1. Start RSLinx software. 2. Click on Start>Program Files>Rockwell Software>RSLinx>RSLinx Classic.
Once RSLinx software is opened, you’ll need to add the communication driver required for RSLinx software to communicate across a modem to network hardware. To configure the driver: 1. Select the Communications menu. 2. Scroll down and select the Configure Drivers.
Publication 1747-UM005B-EN-P - March 2006
Page 105
Application Examples
8-17
The driver configuration screen appears.
From the driver configuration window, you will need to add a new RS-232 DF1 driver or modify an existing RS-232 DF1 driver so it can be configured for modem communication.
Modify an Existing Driver If an RS-232 DF1 driver is already configured, double-click on the driver in the Configured Drivers window.
Add a New Driver If an RS-232 DF1 driver is not configured: 1. Select RS-232 DF1 in the Available Drivers window. 2. Click the Add New button.
Publication 1747-UM005B-EN-P - March 2006
Page 106
8-18
Application Examples
Configure the driver for KE Communication through a Modem Set all the parameters to match the configuration.
The station number is the DH-485 node address of the KE Module and should have a unique number. Once are the parameters are set: 1. Check the Use Modem Dialer box. 2. Click the Configure Dialer button. The Modem Dialer Windows opens which lets you to go through the modem dialer configuration.
Publication 1747-UM005B-EN-P - March 2006
Page 107
Application Examples
8-19
Modem Dialer Configuration Dialog The Modem Dialer configuration window serves two purposes; one as a phone book and the other as an operator. The window associates a name with the phone number and stores it for later use. The window also will dial the number and send out the proper modem initialization strings required to establish modem connection.
To start the modem configuration routine: 1. Press the following icon from the tool bar.
The New Phone Book dialog appears. 2. Type in a name. Choose a name that relates to the phone book and not to the specific connection.
3. Click Ok. 4. In the Name field, type in a unique name for the connection. Publication 1747-UM005B-EN-P - March 2006
Page 108
8-20
Application Examples
5. Tab to the Phone Number field and enter the phone number of the remote network modem.
6. Click OK. 7. To adjust the modem port parameters, click the following icon.
8. To adjust the modem dialing parameters, click the following icon.
9. To complete the connection configuration, highlight 1747KERAD and click OK.
The modem dialer configuration is now complete. In order to verify a proper DF1 connection, RSLinx software will attempt to connect to the network device.
Publication 1747-UM005B-EN-P - March 2006