DH-485/RS-232C Interface Module Catalog Number 1747-KE User Manual
Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment. Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls, publication SGI-1.1, available from your local Rockwell Automation sales office or online at http://www.literature.rockwellautomation.com, describes some important differences between solid state equipment and hard-wired electromechanical devices.
Summary of Changes The information below summarizes the changes to this manual since the last printing. To help you find new and updated information in this release of the manual, we have included change bars as shown to the right of this paragraph.
2 Summary of Changes Notes: Publication 1747-UM005B-EN-P - March 2006
Table of Contents Preface Who Should Use This Manual . . . Purpose of This Manual. . . . . . . . Related Documentation . . . . . Terms and Abbreviations. . . . . . . Conventions Used in This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1 P-1 P-2 P-2 P-3 Interface Module Overview . . . . . . . . . . . . . . . . Features . . . . . . . .
ii Table of Contents Add an Interface Module to Your System . . . . . . . . . Replace a Series A Interface Module in Your System . Set the Module’s Mode . . . . . . . . . . . . . . . . . . . . . . . . . Configure with an ASCII Terminal . . . . . . . . . . . . . . Configure Through the Backplane . . . . . . . . . . . . . . Verify CONFIG Port Configuration . . . . . . . . . . . . . . . . . Verify DF1 Port Configuration . . . . . . . . . . . . . . . . . . . . Install Your Module in an Open Slot . . . . . . .
Table of Contents DF1 Full-duplex Setup Parameters . . . . . . . . . . . . . . . DF1 Half-duplex Setup Parameters . . . . . . . . . . . . . . . Build the DH-485 Configuration Packet . . . . . . . . . . . . . . DH-485 Port Setup Parameters . . . . . . . . . . . . . . . . . . Build the Modem Init String Configuration Packets . . . . . . Modem Init String for Characters 1 Through 14 . . . . . . Modem Init String for Characters 15 Through 28 . . . . . Use the Real Time Clock . . . . . . . . . . . . . . . . . .
iv Table of Contents Appendix B PLC-5 to SLC 500 Communications Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1 PLC-5 Message Instruction . . . . . . . . . . . . . . . Use the SLC 500 CIF File . . . . . . . . . . . . . . . . Use the PLC-5 Message Instruction with Word Use the PLC-5 Message Instruction with Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-2 B-2 B-3 B-4 . . . . . . . . . . . . . . . . . . . . . .
Preface Read this preface to familiarize yourself with the rest of the manual. This preface covers the following topics. • • • • • Who Should Use This Manual Who should use this manual The purpose of this manual Contents of this manual Terms and abbreviations Conventions used in this manual Use this manual if you are responsible for designing, installing, programming, or troubleshooting control systems that use Allen-Bradley small logic controllers.
2 Preface Related Documentation The following documents contain additional information regarding Rockwell Automation products.
Preface 3 Half-duplex - a mode of operation for a point-to-point or multi-point baseband link with two physical circuits, in which messages or transmission blocks can be sent in one direction or the other, but not both at the same time. Modem - Modulator/demodulator. Equipment that connects data terminal equipment to a communication line. RAM - random access memory. The type of memory in which each storage location is by X/Y coordinates, as in core or semiconductor memory.
4 Preface Publication 1747-UM005B-EN-P - March 2006
Chapter 1 Overview This chapter provides: • an overview of the interface module. • features (communication ports, LED indicators, and jumpers). • guidelines outlining the type of modems you can use with the module. • a brief discussion on using RSLinx software with your module. • typical configurations.
1-2 Overview Features The features of the module are shown below. 1747-KE Module Features JW1 LEDs DH-485/RS-232C CAT FRN SLC 500 INTERACE MODULE SER SERIAL NO. CONFIG Port 9 87 6 54 3 2 1 CONFIG 5 4 3 2 1 CONFIG DF1 Port 9 87 6 54 3 2 1 DF1 5 4 3 2 1 DH-485 Port Battery JW4 9 8 7 6 DF1 DH485 JW2 9 8 7 6 DH485 Door Label There are three communication ports on the front of the module. They are: • CONFIG - used to configure the module with an ASCII terminal.
Overview 1-3 LED Indicators There are eight LED indicators on the front of the module. These LED indicators are used for module diagnostics and operator interface. The LED indicators and their descriptions are provided below. LED Indicators DH485/RS-232C ACT FAULT 485 CFG BA LO W H/D DF1 F/D INTERFACE LED Indicator Status LED Color Status Indication ACT Green ON(1) The module is receiving power from the backplane, is configured properly, and is placed in Run mode.
1-4 Overview Jumper JW1 JW1 lets you to select the communication interface for the CONFIG port. Refer to page 4-5. Jumper JW2 JW2 lets you to select the communication interface for the DF1 port. Refer to page 4-6. Jumper JW4 JW4 lets you to select the functionality and mode of the interface module. The orientation of the jumper determines the module’s functionality.
Overview Use a Modem with Your Interface Module 1-5 The module can be connected to most types of dial-up network or direct connect modems. IMPORTANT Some modems are designed to respond to the DTR signal by answering the phone whether it is ringing or not. Since the module asserts DTR at all times (except during the hang-up sequence), the phone appears to be busy at all times. Do not use the interface module with any type of modem that answers the phone as soon as DTR is asserted.
1-6 Overview Typical Configurations The following configurations illustrate some of the possible uses for the module. Full-duplex (Point-to-point) Full-duplex (Point-to-point) Interface Module (1747-KE) DF1 Modem Modem 1747-C13 Cable This illustration shows a connection to a single remote SLC node. The 1747-C13 cable eliminates the need for a 1747-AIC link coupler.
Overview 1-7 Full-duplex (Network, Example 2) Full-duplex (Network, Example 2) RSLinx Interface Module (1747-KE) Modem Host computer is capable of calling and interfacing with one network at a time.
1-8 Overview Half-duplex (Local Mode) Half-duplex (Local Mode) Master Link Coupler (1747-AIC) PLC-5 processor Interface Module (1747-KE) Modem Modem Link Coupler (1747-AIC) Link Coupler (1747-AIC) This configuration allows the host controller to interface on a remote DH-485 network of up to 31 SLC nodes using the half-duplex protocol.
Overview 1-9 Half-duplex (Remote Mode) Half-duplex (Remote Mode) Master SLC 5/05 processor Dedicated Line Modem Interface Module (1747-KE) Interface Module (1747-KE) Group 00 Dedicated Line Modem Interface Module (1747-KE) Group 01 Dedicated Line Modem Dedicated Line Modem Group 02 This illustration shows a host connect up to eight groups of DH-485 networks, connecting up to a total of 254 SLC nodes.
1-10 Overview Half-duplex (Slave-to-slave Communication) Half-duplex (Slave-to-slave Communication) Dedicated Line Modem SLC 5/05 processor Dedicated Line Modem RSLinx Dedicated Line Modem Interface Module (DF1 Slave) Link Coupler (1747-KE) (1747-AIC) Link Coupler (1747-AIC) Link Coupler (1747-AIC) (DF1 Slave) This configuration allows a DF1 slave device send a message to another DF1 slave device. In this example, RSLinx can communicate to an SLC slave.
Chapter 2 Quick Start This chapter can help you to get started using the DH-485/RS-232C Interface Module (catalog number 1747-KE). The procedures included here assume that you have a basic understanding of SLC 500 products. You should understand electronic process control and be able to interpret the ladder logic instructions required to generate the electronic signals that control your application.
2-2 Quick Start Procedures Unpack the Module Remove the items from the package making sure that the contents include: • DH-485/RS-232C Interface Module (catalog number 1747-KE). • cable (1747-C13). • installation instructions, publication 1747-IN006. If the contents are incomplete, call your local Rockwell Automation representative for assistance.
Quick Start 2-3 Configure the Module Configure the module by either connecting to an ASCII terminal or communicating through the backplane. For more information, see Chapter 5 (Module Configuration Using an ASCII Terminal) and Chapter 6 (Module Configuration Using the Backplane). Start-up the Module Power up your system by performing standard start-up procedures as indicated in your processor manual. No special start-up procedures are required when using the module.
2-4 Quick Start Publication 1747-UM005B-EN-P - March 2006
Chapter 3 Communicate with the Interface Module This chapter explains: • • • • DF1 Communication full- and half-duplex DF1 communication. local and remote half-duplex operation. communicating with master and slave DH-485 devices. communicating with a modem. The module supports full-duplex DF1 protocol and half-duplex DF1 slave protocol on its RS-232 connection to the host computer (using the DF1 Port).
3-2 Communicate with the Interface Module Full-duplex (Point-to-point) Full-duplex (Point-to-point) Interface Module (1747-KE) RSLinx Modem Modem 1747-C13 Cable This illustration shows a connection to a single remote SLC node. The 1747-C13 cable eliminates the need for a 1747-AIC link coupler for connections to one node.
Communicate with the Interface Module 3-3 You may prefer local mode for use in applications where the RS-232C link is not networked, since it simplifies the polling algorithm. Remote mode should be used when more than 31 SLC nodes are required on the DH-485 network. Because the interface module is transparent to the master device, existing drivers can be used without rewriting.
3-4 Communicate with the Interface Module Local Mode SLC 500 Node 02 Link Coupler ((1747-AIC) PLC 5 controller DF1 Master RS-232C DF1 SLC 500 Node 01 SLC 500 Node 03 DH-485 Link Coupler ((1747-AIC) DH-485 SLC 500 Node 00 Link Coupler ((1747-AIC) Remote Mode The valid range of slave addresses on a half-duplex network is 000 through 376 octal (000 through 254 decimal) accommodating a total of 255 devices.
Communicate with the Interface Module 3-5 Messages from the remote nodes on the DH-485 network (such as the SLC nodes) use the destination address of the module. Normally the module responds to a message from the DF1 master by swapping the source and destination addresses in the received message, assuring that the reply message is sent to the proper DF1 master station.
3-6 Communicate with the Interface Module Half-duplex Remote Address Conversion Table DH-485 Half–duplex DF1 Address (octal) Node Address Group 00 Group 01 Group 02 Group 03 Group 04 Group 05 Group 06 Group 07 (decimal) Publication 1747-UM005B-EN-P - March 2006 00 000 040 100 140 200 240 300 340 01 001 041 101 141 201 241 301 341 02 002 042 102 142 202 242 302 342 03 003 043 103 143 203 243 303 343 04 004 044 104 144 204 244 304 344 05 005 045 105 145 20
Communicate with the Interface Module 3-7 Remote Mode Addressing on a Multi-drop Network Example This example shows a PLC-5 controller as the half-duplex master in a multi-drop configuration. Each interface module has been configured after Remote mode has been selected. The half-duplex master address of the PLC-5 controller has been set to 010 (octal).
3-8 Communicate with the Interface Module The group number is used by the interface module to create a half-duplex DF1 address for each node on the DH-485 network. The DF1 addresses are the octal equivalent of an eight bit binary word with the three most significant bits corresponding to the group number and the five least significant bits corresponding to the local network address.
Communicate with the Interface Module 3-9 Slave-to-slave Communication The interface module lets communication from a DH-485 network device to a single DF1 slave device, regardless of which mode of half-duplex addressing is selected (local or remote). To achieve this, the interface module’s Master Station Address must be configured as that DF1 slave address.
3-10 Communicate with the Interface Module Slave-to-slave communication When the interface module is in Slave-to-slave communication occurs Local mode Only if the module’s DF1 node is the same as the DH-485 node for which the message is destined. In this mode the RSLinx computer can only communicate with one SLC node.
Communicate with the Interface Module 3-11 DH-485 Non-Token Passing Devices The DH-485 network also supports non-token passing slave devices. The module communicates with these slaves using a special PLC command (CMD) byte. Application programs communicate with non-token passing slaves via Send and Receive Data (SRD) messages on DH-485. The SRD message is a link layer service provided on DH-485.
3-12 Communicate with the Interface Module For successful modem communication be sure that: • RSLinx software and the interface module agree on communication rate and error checking. • both modems have the echo disabled. • both modems have Carrier Detect set to normal (unforced). • both modems have DTR Dialing disabled. • the modem to receive the call has auto answer enabled.
Chapter 4 Installation and System Configuration This chapter provides the following installation and system configuration information.
4-2 Installation and System Configuration Choose the Module’s Functionality Your series B interface module has the ability to function as a series A interface module. This feature may be important to you if you are replacing a series A module with a series B module. Refer to page 4-2 for more information. The module’s functionality depends on the placement of the JW4 jumper.
Installation and System Configuration 4-3 module configuration ID equivalent to the module configuration ID of the series A module you are replacing (4209). As you work through the remainder of this manual, follow the instructions for series A functionality (horizontal placement of the JW4 jumper).
4-4 Installation and System Configuration Set the Module’s Mode Setting the module’s mode depends on which method you want to use to configure the module. You can configure the module using: • an ASCII terminal. • backplane communications. IMPORTANT You can only use backplane communications if you selected series B functionality for the module. Decide which method you want to use and then place the JW4 jumper according to the directions given below.
Installation and System Configuration Verify CONFIG Port Configuration 4-5 Jumper JW1, located at the top of the module, selects the following electrical interface for the CONFIG port. • RS-423/232 (default) • RS-422 • RS-485 CONFIG Port Configuration 2 4 6 8 10 RS-423/232 1 3 5 7 9 RS-422 JW1 CONFIG Port RS-485 ATTENTION All other jumper settings are illegal and may cause damage to the module.
4-6 Installation and System Configuration Verify DF1 Port Configuration Jumper JW2 selects the following electrical interface for the DF1 port. • RS-423/232 (default) • RS-422 • RS-485 DF1 Port Configuration RS-423/232 9 7 5 3 1 10 8 6 4 2 RS-485 JW2 DF1 Port RS-422 ATTENTION Publication 1747-UM005B-EN-P - March 2006 All other jumper settings are illegal and may cause damage to the module.
Installation and System Configuration Install Your Module in an Open Slot 4-7 Installation procedures for this module are the same as any other digital I/O or specialty module. IMPORTANT ATTENTION Make sure you have JW1, JW2, and JW4 configured. Do not install or remove the 1747-KE module from the SLC 500 chassis until all power dissipates from the SLC 500 power supply (approximately 10 seconds). To install the module: 1. Align the full-size module circuit board with the chassis card guide.
4-8 Installation and System Configuration Connect Cable to CONFIG or DF1 Ports The CONFIG and DF1 ports communicate to user devices through RS-423/232, RS-422, and RS-485 Communication modes. The Communication mode is selected by setting jumpers JW1 and JW2 as described on pages 4-5 and 4-6. IMPORTANT The following table and cable drawings assume the peripheral devices have conventional pin assignments. Check the documentation for your device to verify signals conform to those shown.
Installation and System Configuration 4-9 These illustrations show wiring diagrams for the RS-423/232, RS-422, and RS-485 communications.
4-10 Installation and System Configuration RS-423/232 DTE to DCE (No Handshake to DCE) Interface Module Peripheral 9-pin 25-pin NC 1 CD 1 8 RXD RXD COM 2 3 4 5 COM 2 3 4 5 3 2 20 7 DSR 6 DSR 6 6 RTS 7 8 9 RTS 7 8 9 4 5 22 TXD DTR CTS NC TXD DTR CTS RI DTE (1) (1) DCE (1) Connect DSR to DTR and CTS to RTS when using devices that cannot disable their hardware handshaking.
Installation and System Configuration 4-11 RS-485 Interface Module TRXD- Peripheral 1 TRXD- 2 3 4 COM 5 COM 6 TRXD+ 7 8 9 TRXD+ DTE Connect Cable to the DH-485 Port The DH485 port can communicate to user devices through the DH-485 Communication mode. Use a 1747-C11, 1747-C10, or 1747-C13 interface cable to connect the module to a link coupler interfaced with the DH-485 network.
4-12 Installation and System Configuration Connect to the DH-485 Port via the 1747-C11 Cable Link Coupler (1747-AIC) Interface Module (1747-KE) CONFIG Port Cable (1747-C11) J2 (Peripheral) DF1 Port J1 (CPU) Power is supplied to link coupler through the DH-485 port on the SLC 500 processor. Cable (1747-C11) DH-485 Port OR Power is supplied to link coupler by an eternal power source. The 1747-C13 cable can also connect the module’s DH-485 port directly to a single SLC processor.
Installation and System Configuration Configure Your SLC Chassis 4-13 The slot containing the interface module must be assigned within the SLC program. Using RSLogix 500 software, you can either manually insert the KE module into the chassis configuration in I/O Configuration or select Read I/O Config to read the current I/O configuration out of the processor and insert the module automatically. Enter the module ID code 4209.
4-14 Installation and System Configuration Configure the DF1 Driver within RSLinx Software To configure the DF1 driver within RSLinx software: 1. Open RSLinx Classic. 2. Select Configure Drivers. 3. Click Add New. 4. Click Auto-Configure. If RSLinx software successfully communicates with the 1747-KE module, the following dialog appears.
Installation and System Configuration Configure Your Module 4-15 Configuration instructions are in Chapter 5, Module Configuration Using an ASCII Terminal, and Chapter 6, Module Configuration Using the Backplane. Proceed to the chapter that corresponds to the configuration method you have chosen. ATTENTION Complete the Installation of Your Module This module is a device used for communications. Improper configuration or module failure may cause communications to stop.
4-16 Installation and System Configuration c. Re-insert the module into the chassis. IMPORTANT Make sure you have JW4 positioned for the Run mode that corresponds to the functionality you’ve chosen for your module. 2. Connect the DF1 cable to the DF1 port. 3. Connect the DH-485 cable to the DH-485 port. 4. Insert the cable tie in the slots and secure the cable. 5. Cover all unused slots with the Card Slot Filler (catalog number 1746-N2). DF1 Port DH-485 Port 6. Apply power to the SLC 500 chassis. 7.
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.
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.
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.
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].
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.
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.
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.
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. . . . .
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.
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.
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 Module Data Mode Hand Bit shake Bit 1 Day (1...31) 2 Month (1...12) 3 Year (00...
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.
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.
Chapter 7 Interpret the LED Indicators This chapter contains the following information. • Interface module status indicators • Input image description • SLC fault code Interface Module Status Indicators For a full description of the eight LED indicators on the front of the module, see page 1-3. During normal operation, the LED indicators are illuminated as shown below LED Indicators Solid Green Solid Green Off Flashing during communications.
7-2 Interpret the LED Indicators Shown below are possible error conditions represented by the LED indicators and their possible solutions. LED LED Indicator Error Conditions Color Status Condition ACT Green Solution Flashing The module requires configuration. The module requires configuration. OFF The module is not receiving power from the backplane. A fault condition exists. Check the SLC power supply. Make sure the interface module is properly installed in the rack.
Interpret the LED Indicators Status Codes from the Module to the Processor 7-3 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.
7-4 Interpret the LED Indicators Publication 1747-UM005B-EN-P - March 2006
Chapter 8 Application Examples This chapter contains the following application examples. • Basic configuration example using the backplane • Supplementary examples using the backplane • RSLinx software to SLC network via modem example Basic Configuration Example Using the Backplane This example demonstrates configuration of the interface module using the backplane. IMPORTANT Before you begin this application, insure that the JW4 jumper is in vertical Run mode (module configuration ID=3509).
8-2 Application Examples Parameter Settings For this example, configure the parameters to the settings provided below. DF1 Configuration (N10:11...17) Parameter Configuration Word and Bits Used Communication Rate N10:11/0...2 1200 Bits Per Character 8 N10:11/3 Parity None N10:11/4...
Application Examples 8-3 Configuration Results Configuration occurs upon power up or when entering Run mode. The configuration is successful only if data file N10:0=4. If your configuration is unsuccessful, check the table below for the failed configuration block. Failed Configuration Block If N10:0= Then failure occurred in the 0 DF1 port 1 DH485 port 2 Modem Init String (characters 1...14) 3 Modem Init String (characters 15...
8-4 Application Examples Backplane Configuration User Program The following steps summarize the user program. 1. N10:0 is initialized. 2. The DF1 port config block is copied to the interface module. 3. The results of the DF1 config are checked. 4. The DH-485 port config block is copied to the interface module. 5. The results of the DH-485 config are checked. 6. The Modem Init String (1 to 14) config block is copied to the Module. 7. The results of the Modem Init String (1 to 14) config are checked. 8.
Application Examples N10:0 is initialized here. 8-5 N10:0 points to the Config block that is being transferred. Clear pointer. Rung 2:0 MOV S:1 ] [ 15 MOVE Source Dest 0 N10:0 0 Put interface module in Config Mode. O:1 (L) 15 Reset Handshake bit. O:1 (U) 14 This rung copies a new DF1 Config block to the interface module. Config handshake bit to the module. EQU Rung 2:1 EQUAL Source A Source B N10:0 0 0 O:1 ]/[ 14 Config handshake ACK bit from the module. Copy DF1 Config to the module.
8-6 Application Examples This rung copies a new DH±485 Config block to the interface module. Config handshake bit to the module. EQU Rung 2:3 EQUAL Source A Source B N10:0 0 1 O:1 ]/[ 14 Config handshake ACK bit from the module. Copy DH±485 Config to the module. COP I:1 ]/[ 14 COPY FILE Source Dest Length #N10:20 #O:1.0 8 Config handshake bit to the module. O:1 (L) 14 This rung checks the Modem Init String (1±14) from the interface module. Config handshake bit to the module.
Application Examples 8-7 This rung checks the Modem Init String (15±28) from the interface module. Config handshake bit to the module. EQU Rung 2:6 EQUAL Source A Source B N10:0 0 2 O:1 ] [ 14 Config handshake ACK bit from the module. Copy Config from the module. COP I:1 ] [ 14 COPY FILE Source Dest Length #I:1.0 #N11:30 8 Config handshake bit to the module. O:1 (U) 14 Check status and point to next Config block.
8-8 Application Examples This rung checks the Modem Init String (15±28) from the interface module. Config handshake bit to the module. EQU Rung 2:8 EQUAL Source A Source B N10:0 0 3 Config handshake ACK bit from the module. O:1 ] [ 14 Copy Config to the module. COP I:1 ] [ 14 COPY FILE Source Dest Length #I:1.0 #N11:40 8 Config handshake bit to the module. O:1 (U) 14 Check status and point to next Config block.
Application Examples Supplementary Example Using the Backplane 8-9 These supplementary examples demonstrate how to use the backplane to operate the interface module’s Real Time Clock and Data Echo features. IMPORTANT Before you begin these applications, be sure that the JW4 jumper is in vertical Run mode (module configuration ID=3509). Real Time Clock You can use the interface module as a Real Time Clock (RTC) in conjunction with normal module operation.
8-10 Application Examples This rung initializes the module. Copy the RTC data. Rung 2.0 B3 ] [ 0 COP B3 [OSR] 2 COPY FILE Source Dest Length #N10:0 #O:1.0 8 Put Interface Module in Config mode. O:1 (U) 13 Turn ON the handshake bit. O:1 (L) 14 This rung gets the calendar/clock data from the module. Handshake bit from module. Rung 2:1 I:1 ] [ 14 Handshake bit to module. O:1 ] [ 14 Get data from module. MEQ COP MASKED EQUAL Source I:1.
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.
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.
Application Examples 8-13 This rung checks that proper data was echoed from the module, or that 5 seconds passed without interface module response. Handshake bit to module. Rung 2:3 O:1.0 ] [ 14 Handshake bit to the interface module. O:1.0 ] [ 14 Handshake bit from module. Get data from the interface module. COP I:1.0 ] [ 14 No response from interface module. I:1.0 ]/[ 14 COPY Source Dest Length Set 5 secs after data echo. #I:1.0 #N10:10 8 Reset 40 second base timer.
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.
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.
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.
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.
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.
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.
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.
Application Examples IMPORTANT 8-21 Before continuing, the PC modem must be connected to a working outside phone line and the network modem must be connected to the incoming phone line specified in the phone book. Also, the network modem must be connected to a working Allen-Bradley network. Once the proper connections are verified, the AB_DF1-1 driver can be tested.
8-22 Application Examples 10. To complete the driver configuration and attempt a connection, click OK. The Dialer window appears and relays the information about the attempted connection. The dialer will repeatedly attempt to establish a connection until the time duration expires or retries as shown in the Dialer dialog. When the connection is properly established, the status will be connected to the 1747-KE module. 11. Click OK to exit the dialer and maintain a connection to the network device. 12.
Application Examples 8-23 13. Click Close to exit the Configure Drivers dialog. 14. Click on Communications>RSWho If everything was completed properly, you should be remotely monitoring the DH-485 network and all existing devices on the network.
8-24 Application Examples The following is an example network configuration.
Application Examples 8-25 Go Online using RSLogix 500 Software and RSLinx Version 2.x and 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 go online using RSLogix500 software and RSLinx version 2.x. To begin: 1. Start RSLogix500 software.
8-26 Application Examples 3. Select the driver of the PLC controller. Make sure the driver currently selected is AB_DF1-1. If another driver is in the driver window, click on the combo box down arrow and select the AB_DF1-1 driver. 4. Select the node address of the PLC controller. If the node address is known then enter the value directly into the Processor Node dialog. If the processor node is unknown, the value can be selected from RSLinx software’s NetworkWho. 5.
Application Examples 8-27 The program returns to the System Options dialog and the Processor Node dialog is populated with the node address selected in the NetworkWho. 6. Click the Online button. If everything occurred correctly, you will have a remote connection with the processor. This is indicated by the Remote Run or Program indicator.
8-28 Application Examples Publication 1747-UM005B-EN-P - March 2006
Appendix A Specifications This appendix contains information regarding hardware specifications for the DH-485/RS-232C Interface Module. Hardware Specifications The module hardware specifications are listed in the following tables. Hardware Specifications Attribute Value Power Supply Loading at 5V dc 0.150 A (module only) Power Supply Loading at 24V dc 0.070 A (module only)(2)(3) Noise Immunity NEMA Standard ICS 2-230 Vibration Displacement: 0.015 in., peak-to-peak at 5...57 Hz 0.
A-2 Specifications IMPORTANT The 1747-KE module requires both 5V dc and 24V dc power from the SLC backplane. The power consumption of the module must be taken into consideration when planning your SLC 500 system. Refer to the documentation supplied with your SLC 500 fixed or modular controller for additional information on power supplies and current requirements.
Specifications A-3 Maximum Communication Distances Maximum Communication Distances Communication Max.
A-4 Specifications Publication 1747-UM005B-EN-P - March 2006
Appendix B PLC-5 to SLC 500 Communications This appendix details how to use the PLC-5 Message instruction to access an SLC 500 processor. This method uses PLC-2 Unprotected Reads and Unprotected Writes to access the Common Interface File, CIF, File 9 of an SLC processor. Overview PLC-2 Unprotected Reads and Writes are not really implemented as unprotected in the SLC processor. They are subject to the SLC’s file protection schemes.
B-2 PLC-5 to SLC 500 Communications IMPORTANT File 9 must be created and defined at the time that the SLC processor is programmed. File 9 must also be made large enough to include the unprotected read and write addressing space. Otherwise, all unprotected reads and unprotected writes will be rejected by the SLC processor. PLC-5 Message Instruction When using the PLC-5 Message instruction, the Destination Address is entered in octal.
PLC-5 to SLC 500 Communications Use the PLC-5 Message Instruction with Word B-3 The PLC-5 Message instruction’s octal Destination Address must be between 010 (base 8) and 177 (base 8). This range corresponds to word 16 (base 10) through word 254 (base 10) in the SLC processor. Only even numbered words (16, 18, 20,... 254) in the SLC processor can be addressed by the PLC-5 Message instruction.
B-4 PLC-5 to SLC 500 Communications Use the PLC-5 Message Instruction with Byte IMPORTANT The byte addressing mode is selected in the SLC processor by setting bit S:2/8 to 1. (The default is S:2/8 = 0 for word addressing.)This selection bit is only available in the SLC 5/02 Series B, FRN 3 processor or later. The PLC-5 Message instruction’s octal Destination Address must be between 010 (base 8) and 377 (base 8). This range corresponds to byte 16 (base 10) through byte 510 (base 10).
Appendix C Lithium Battery Replacement, Handling, and Disposal This appendix contains important information you should know when using lithium batteries. Battery Replacement Your module provides back-up power for RAM through a replaceable lithium battery (catalog number 1747-BA). This battery provides back-up for approximately five years. A BAT LOW indicator on the front of the module alerts you when the battery voltage has fallen below the replace battery threshold level.
C-2 Lithium Battery Replacement, Handling, and Disposal Battery Location CAT FRN SLC 500 INTERACE MODULE SER SERIAL NO. 54 3 2 1 CONFIG 9 87 6 54 3 2 1 DF1 9 87 6 DH485 Red Wire White Wire Battery 3. Unplug the battery connector. IMPORTANT The module has a capacitor that provides 30 minutes of battery back-up while the battery is disconnected. Data in RAM is not lost if the battery is replaced within 30 minutes. 4. Remove the battery from the retaining clips. 5.
Lithium Battery Replacement, Handling, and Disposal Battery Handling C-3 The procedures listed below must be followed to be sure of proper battery operation and reduce personnel hazards. • Use battery only for intended operation • Do not ship or dispose of cells except according to recommended procedures • Do not ship on passenger aircraft ATTENTION Do not charge the batteries. An explosion could result or the cells could overheat causing burns.
C-4 Lithium Battery Replacement, Handling, and Disposal Three or More Batteries Procedures for the transportation of three or more batteries shipped together within the United States are specified by the Department of Transportation (DOT) in the Code of Federal Regulations, CRF49, “Transportation”. An exemption to these regulations, DOT – E7052, covers the transport of certain hazardous materials classified as flammable solids.
Lithium Battery Replacement, Handling, and Disposal Battery Disposal C-5 The following procedures must be followed when disposing of lithium batteries. ATTENTION Do not incinerate or dispose of lithium batteries in general trash collection. Explosion or violent rupture is possible. Batteries should be collected for disposal in a manner to prevent against short circuiting, compacting, or destruction of case integrity and hermetic seal.
C-6 Lithium Battery Replacement, Handling, and Disposal Publication 1747-UM005B-EN-P - March 2006
Appendix D Interface Module Configuration Worksheets This appendix contains worksheets to help you configure the interface module. You will find worksheets on: • DF1 Full-duplex. • DF1 Half-duplex.
D-2 Interface Module Configuration Worksheets DF1 Full-duplex Parameter Name:_______________________________ Date:____________ DH485 Port Options Node Address 0...31 (decimal) Max. Node Address 1...31 (decimal) Message Timeout 100...
Interface Module Configuration Worksheets DF1 Half-duplex Parameter Name:________________________________ Date:____________ DH485 Port Options Node Address 0...31 (decimal) Max. Node Address 1...31 (decimal) Message Timeout 100...
D-4 Interface Module Configuration Worksheets Publication 1747-UM005B-EN-P - March 2006
Index Numerics 1746-N2 card slot filler 4-16 1747-AIC link coupler 1-2 1747-C11 cable 4-11 1747-C13 cable 1-2, 4-11 1770-KF2 3-2 A addressing DF1 protocol 5-8, 5-9 DH-485 network 5-7 application examples 8-1 supplementary Data Echo feature 8-11 Real Time Clock 8-9 ASCII terminal configuration of 5-2 use to configure the module 5-1 auto answer, modem 1-5 B backplane communication 6-1 battery back-up C-1 lithium status 1-3, 7-2 baud rate, See "communication rate" 1-2 C cables 4-8 1747-C10 4-11 1747-C11 4-1
2 Index diagnostics 7-3 use LED indicators 1-3, 7-2 display parameters menu 5-12 E equipment needed 2-1 error handling 7-3 European directives compliance 4-1 examples supplementary Data Echo feature 8-11 Real Time Clock 8-9 use the PLC-5 message instruction with byte B-4 I initialization string, modem 5-9, 5-11, 6-10, 6-11, D-2, D-3 input image 6-6, 7-2 status word 6-6, 7-2 installation 4-7 final steps 4-15 quick start procedures 2-2 J jumpers JW1 1-4, 4-5 JW2 1-4, 4-6 JW4 1-4, 4-4, 4-15 F fault code
Index module configuration ID 1-4, 4-2 functionality 4-2 multidrop network 1-6 N node addressing 5-7 non-token passing devices 3-11 O output status word 6-6 overview of module 1-1 P phone line access 3-11 pin assignments 4-8 PLC command byte 3-11 PLC-5 communications message instruction B-2 with word B-3 polling 3-3 ports isolation 1-2 publications related P-2 Q quick start 2-1 3 definition P-3 selection 4-5, 4-6 RS-423 definition P-3 selection 4-5, 4-6 RS-485 definition P-3 selection 4-5, 4-6 Run mo
Rockwell Automation Support Rockwell Automation provides technical information on the web to assist you in using its products. At http://support.rockwellautomation.com, you can find technical manuals, a knowledge base of FAQs, technical and application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the best use of these tools.