Rabbit EM1500 Product Manual

EM1500 User’s Manual
019-0124 • 070720-E
The latest revision of this manual is available on the Rabbit Semiconductor Web
site, www.rabbit.com, for free, unregistered download.
EM1500 User’s Manual
Part Number 019-0124 • 070720–E • Printed in U.S.A.
©2006 Rabbit Semiconductor Inc. • All rights reserved.
No part of the contents of this manual may be reproduced or transmitted in any form or by any means without the express written permission of Rabbit Semiconductor.
Permission is granted to make one or more copies as long as the copyright page contained therein is included. These copies of the manuals may not be let or sold for any reason without the express written permission of Rabbit Semiconductor.
Rabbit Semiconductor reserves the right to make changes and
Trademarks
Rabbit and Dynamic C® are registered trademarks of Rabbit Semiconductor.
Windows
®
is a registered trademark of Microsoft Corporation
Table of Contents
Chapter 1 Introduction 1
1.1 Overview of the EM1500 ................................................................................................................................... 1
1.2 Summary of Features.......................................................................................................................................... 2
1.2.1 Hardware Highlights ................................................................................................................................... 3
1.2.2 Software Highlights .................................................................................................................................... 4
1.2.3 EM1500 Factory Defaults ...........................................................................................................................6
1.4 The EM1500 and its Tool Kit............................................................................................................................. 8
1.4.1 Rabbit Engineering Demo Board ................................................................................................................9
1.5 Contact Information............................................................................................................................................ 9
Chapter 2 Getting Started 11
2.1 Hardware Connections...................................................................................................................................... 11
2.1.1 Ethernet Connection ..................................................................................................................................11
2.1.2 Power Supply ............................................................................................................................................ 12
2.1.3 Serial Port Connection ..............................................................................................................................12
2.2 Up and Running ................................................................................................................................................ 13
2.2.1 Serial Port Configuration ..........................................................................................................................13
2.2.2 Making the Connection .............................................................................................................................15
2.3 Using the Demo Board ..................................................................................................................................... 15
2.3.1 Select an EM1500 ....................................................................................................................................15
2.3.2 Wiring the Demo Board to the Selected EM1500 ....................................................................................16
2.3.3 Digital Output ...........................................................................................................................................16
2.3.4 Digital Input and Relay ............................................................................................................................. 17
Chapter 3 Assigning an IP Address to the EM1500 19
3.1 How to Obtain an IP Address ........................................................................................................................... 19
3.2 How to Tell the EM1500 its IP Address........................................................................................................... 19
3.2.1 Directed Ping .............................................................................................................................................20
3.2.2 Stand-Alone Configuration Program ........................................................................................................ 20
Chapter 4 EM1500 Specifics 21
4.1 Front Panel of EM1500..................................................................................................................................... 21
4.1.1 User LED Patterns ....................................................................................................................................22
4.2 Back Panel of EM1500..................................................................................................................................... 23
4.3 Connector Pin-Outs........................................................................................................................................... 24
4.3.1 Serial Port 1 (SER1) ..................................................................................................................................24
4.3.2 Serial Port 2 (SER2) ..................................................................................................................................24
4.3.3 Serial Port 3 and 4 (SER3 & SER4) .........................................................................................................25
4.3.4 Serial Port 5 (RS485) ................................................................................................................................26
4.3.5 9-Pin Connector ........................................................................................................................................30
4.3.6 10-Pin Connector ......................................................................................................................................30
Chapter 5 EM1500 Configuration 31
5.1 Ethernet Modem Configurator.......................................................................................................................... 31
5.1.1 General Tab ...............................................................................................................................................34
5.1.2 Aux I/O Tab ..............................................................................................................................................38
5.1.3 Network Tab .............................................................................................................................................40
5.1.4 Serial Tab (for SER1 - SER4) ...................................................................................................................42
5.1.5 Serial Tab for RS485 .................................................................................................................................47
EM1500 User’s Manual www.rabbit.com iii
5.1.6 Modem Tab ...............................................................................................................................................48
5.1.7 Polling Tab ................................................................................................................................................54
5.1.8 Opening Tab ..............................................................................................................................................59
5.1.9 Closing Tab ...............................................................................................................................................62
5.1.10 Protocol Tab ............................................................................................................................................64
5.1.11 Status/Debug Area ...................................................................................................................................66
5.2 Differences between Configuration Methods ................................................................................................... 71
Chapter 6 EM1500 Examples 73
6.1 Example 1: Test Data Flow............................................................................................................................... 73
6.2 Example 2: Remote Data Acquisition............................................................................................................... 74
6.2.1 Configuration Settings for EM1500 ..........................................................................................................74
6.2.2 Hardware Connections ..............................................................................................................................75
6.2.3 Software Setup ...........................................................................................................................................75
Appendix A EM1500 Specifications 77
A.1 Mechanical Characteristics............................................................................................................................... 77
A.1.1 Base Plate .................................................................................................................................................78
A.2 Specification Table........................................................................................................................................... 79
A.3 EM1500 EMI / EMC Information.................................................................................................................... 80
A.3.1 CE Compliance .........................................................................................................................................80
A.3.2 EM1500 FCC Compliance .......................................................................................................................82
A.4 EM1500 Jumpers.............................................................................................................................................. 83
A.4.1 How to Access the Jumpers ......................................................................................................................83
A.4.2 How to Move the Jumpers ........................................................................................................................84
A.5 The Backup Battery.......................................................................................................................................... 85
A.5.1 Replacing the Backup Battery ..................................................................................................................85
Appendix B Serial and TCP Protocols 87
B.1.1 Serial Port Signal Names and Directions ..................................................................................................87
B.1.2 Electrical Signals ......................................................................................................................................90
B.1.3 Data Signaling Conventions .....................................................................................................................90
B.1.4 Flow Control .............................................................................................................................................91
B.2.1 Packetization .............................................................................................................................................95
Appendix C Glossary of Terms 101
Appendix D EM1500 FAQ 105
INDEX 115
iv www.rabbit.com Table of Contents

1. INTRODUCTION

This manual is intended for anyone configuring Rabbit’s EM1500, an industrial grade serial-to-Ethernet converter and modem.
Many of the terms you will find in this manual are defined in C., “Glossary of Terms.” In the electronic versions of this manual, the first occurrence of the term will have a link to its meaning in the alphabetized list in the appendix.

1.1 Overview of the EM1500

The primary function of the EM1500 is as a serial to TCP/IP protocol converter, to convert a full duplex RS-232 or half-duplex RS-485 serial stream to a TCP/IP stream. The serial stream consists of at least the transmit and receive data, plus optional "modem control" signals.
The EM1500 has 5 serial ports. It has 4 RS232 serial ports, and a half-duplex RS485 port, all of which may be connected to different remote TCP/IP hosts. That is to say, each serial port may connect over the Internet, or a local Ethernet LAN, to a single host at any one time; however, the serial ports can all be con­nected to different hosts at the same time. The remote host may also be another EM1500.
In addition to the serial streams, which are transferred via TCP (Transmission Control Protocol) sockets, there is also a control socket which can be used to configure and monitor the EM1500 as a whole. The control socket uses UDP (User Datagram Protocol) rather than TCP.
After the EM1500 has been configured locally (i.e., on the same LAN as the host PC running the configu­ration software) the configuration socket allows the EM1500 to be remotely configured over the Internet. To make remote configuration secure, you can choose to encrypt configuration data. (See “Secure config”
on page 35 for instructions on how to do this.) This protects the EM1500 from accidental or malicious
tampering. The serial data streams are not protected in the current firmware release.
Success in today’s marketplace demands rapid, low-cost access to information. The EM1500 was designed to:
easily interface legacy RS-232 devices to Ethernet, allowing communication to remotely located
devices or computers.
extend the communication distance between two RS-232 devices, i.e., act as a transparent serial
bridge.
allow easy setup and monitoring
EM1500 User’s Manual www.rabbit.com 1

1.2 Summary of Features

Physically and functionally the EM1500 is a black box. As any good black box should be, the EM1500 is simple to use. No programming is needed. The tight integration of hardware and software offers unparal­leled reliability. Quick configuration over Ethernet, using a web browser or the stand-alone configuration program, is easy and convenient.
The performance of the EM1500 is:
Net long term throughput of 460800 bps full-duplex (FDX), assuming Ethernet/Internet link is not
the bottleneck.
Short term burst rates up to 1Mbit/sec net.
Any one port may achieve up to 230400 bps FDX.
The EM1500 interfaces with all types of serial devices: modems, sensors, card readers, bar scanners, print­ers, etc.
Figure 1.1 Block Diagram of EM1500 Application
Serial Device
Serial
Internet
RS-485 device 0
. . .
EM1500
RS-485 device 30
Device
Serial Device
Serial Device
Having two EM1500s allows you to create a transparent serial bridge, thereby use some of the more advanced software features, such as packetization and protocol conversions. For more information on these features, see .
Figure 1.2 Transparent Serial Bridge
Serial Device
2 www.rabbit.com Introduction
EM1500
EM1500
Internet
EM1500
Serial Device

1.2.1 Hardware Highlights

Low-EMI Rabbit 3000 microprocessor, running at 44.2 MHz
10/100Base-T Ethernet, RJ-45
9-wire DTE, RS-232 (also known as SER1)
9-wire DCE, RS-232 (aka SER2)
Configurable RS-232 serial port on 10-pin header (aka SER3):
3- and 5-wire options, or 9-wire DTE at TTL levels
3-wire RS-232 serial port on 10-pin header (aka SER4)
RS-485, half duplex (aka RS485)
5 digital I/0s on 10-pin header (PF0-4)
2 digital open collector outputs (OUT0 and OUT1) on 9-pin header
3 digital inputs (IN0-2) on 9-pin header, suitable for interfacing to mechanical switches or logic
level circuits
SPDT relay contacts, allows EM1500 to cycle power to attached device, or to switch other signals
4 status LEDs
Power, Link, Active and User
One-shot reset button
Wide input power capability (9-36 VDC)
EM1500 User’s Manual www.rabbit.com 3

1.2.2 Software Highlights

Serial-to-Ethernet protocol converter
• on all serial ports
Serial port geometry:
• 75 to 230400 bps
• none, even, odd, mark, space parity
• 7 or 8 data bits
• 1 stop bit only, or 2 stop bits may be emulated using “mark” parity.
Flow control:
• None
• XON/XOFF
• Hardware: CTS/RTS, DTR/DSR if these signals available to the port.
RS232/485 serial protocols:
• standard asynchronous
• async with timing-based packetization
• async with CRLF (or other fixed string) packetization
• 9th bit low protocol for start-of-frame
• Automatic polling of serial device is possible
• All serial ports may emulate AT (Hayes-compatible) command set.
RS485 transmit enable discipline:
• transmit whenever data present
• transmit only after idle time
Internet protocols:
• "raw" data stream over TCP
RFC2217 protocol:
EM1500 acts as "modem server" or "serial port server"
Works with popular PC COM port redirector
• RFC2217 + Rabbit extensions for packetized data and for two EM1500s communicating with each other. Extensions are transparently negotiated.
• EM1500 can be 'server' and/or 'client' (server only for RFC2217 protocol)
• Connections can be actively opened (client mode) based on modem line conditions, on received characters, on ATD type commands, or unconditionally.
• Connections can be passively opened (server mode) based on modem line conditions, on ATA type commands, or unconditionally.
• Connections may be closed based on modem line conditions, +++ATH type commands, net­work timeouts or automatic serial device polling timeouts.
4 www.rabbit.com Introduction
Ethernet network interface:
• IP address assignment via DHCP, directed ping, or statically assigned.
• Supports DNS (name server) queries
Configuration:
• via web browser.
• via standalone configuration program running on:
• Win95/98/2000/XP/NT
• 80x86-based Linux
• based on open source GUI toolkit (FOX).
• relatively easy for OEMs to customize
• EM1500 may be configured to require encrypted configuration updates. These are sup­ported by the stand-alone program. Subject to U.S. export restrictions.
• EM1500s can be automatically “discovered” on the local Ethernet segment.
• display dynamic unit status in near real-time.
• EM1500s can be partially reconfigured during operation without manual intervention using RFC2217, e.g., change serial port speed.
Auxiliary I/Os:
• May be configured for initial state and direction.
• Manual override using status window of stand-alone configuration program (GUI) or web browser.
Relay
• May be configured to change state when a TCP connection is established to any serial port.
• Manual override from GUI or web browser.
Operating modes:
• Normal run mode on power-up if unit is already configured.
• Other operating modes are determined by how long reset switch is held down:
• Normal run (0-4 sec)
• Run in local configuration mode only (4-10 sec)
• Reset to factory defaults and run in local configuration mode (over 10 sec).
EM1500 User’s Manual www.rabbit.com 5

1.2.3 EM1500 Factory Defaults

Every EM1500 is shipped with default values for some of the configuration parameters already set. Some parameters have been left blank where it makes no sense to have a default, such as the IP address and net­mask for the unit. The following table gives all of the factory defaults. To reset your unit to these defaults, press down the reset switch for 10 seconds. Parameters that have been left blank or are zero, are not included in this table.
Table 1-3. EM1500 Default Configuration Parameters
Configuration
Category
General
Aux I/O
Network (Ethernet)
Serial (Basic)
Configuration Parameter Default Setting
Unit Name EM1500-fac-dflt
TCP Keepalives 7200
Direction/State PF0-4 In/Low
State OUT0 and OUT1 Hi-Z
Relay Open
Enable Connections ON
Use DHCP ON
Ping configure ON
Enable config ON
Enable discovery ON
Speed 115200 (SER4) 19200 (all others)
Geometry 8N1 (all serial ports)
Flow control (Tx and Rx) None (all serial ports)
Relay action None (all serial ports)
Relay timer (ms) 10000 (all serial ports)
AT command set OFF (all serial ports)
DSR/DTR control Active (all serial ports, except RS485)
CTS/RTS control Active (all serial ports, except RS485)
Modem Emulation
DCD control Active (SER2 only)
RI control OFF (SER2 only)
Use PF0-3 OFF (SER3 only)
RS232 levels OFF (SER3 only)
Polling Enable poll OFF (all serial ports)
6 www.rabbit.com Introduction
Table 1-3. EM1500 Default Configuration Parameters
Configuration
Category
Opening
Configuration Parameter Default Setting
Local TCP port
SER1-8888, SER2-8889, SER3-8890 SER4-8891, RS485-8892
Remote TCP port same as local TCP port
Ephemeral port ON (all serial ports)
Use Nagle ON (all serial ports)
Don’t Purge OFF (all serial ports)
Incoming connection Always (all serial ports)
Active Open: Always OFF (all serial ports)
Active Open: When DSR/DTR OFF (all serial ports)
Active Open: When DCD OFF (all serial ports)
Active Open: When RI OFF (all serial ports)
Active Open: Any char OFF (all serial ports)
Active Open: Specific char OFF (all serial ports)
Closing
Protocol
Active Open: Char to open 13 (all serial ports)
DSR/DTR dropped OFF (all serial ports)
Modem control, not close on DSR/DTR drop
OFF (all serial ports)
DCD dropped OFF (all serial ports)
Network timeout OFF (all serial ports)
Modem Server ON (all serial ports)
Rabbit Extensions ON (all serial ports)
Packetizing None (all serial ports)
EM1500 User’s Manual www.rabbit.com 7

1.4 The EM1500 and its Tool Kit

The EM1500 is packaged in a small, heavy duty metal enclosure. Included with the EM1500 unit is a small plastic bag labeled 151-0124 that contains:
One 9 pin positive latch crimp housing
One 3 pin positive latch crimp housing
20 pieces of crimp terminals
The EM1500 ships without cables, power or documentation. All cables, etc., for use with the unit are pack­aged in the EM1500 Tool Kit, which may be purchased separately. The cables in the Tool Kit may also be puchased separately using the part numbers shown in the table below. Initially you will probably want to purchase a Tool Kit. With subsequent purchases of EM1500s you may or may not want the additional cables and manuals, so you have the option of just getting the EM1500 with the crimp housings and termi­nals.
Here are the cables that will be in the EM1500 Tool Kit:
Tool Kit Item Rabbit Part # Description of Use
DE9F-DE9F null-modem 10 ft. cable
DE9, F DE9,F
Rx 2 Tx 3 DTR 4 GND 5 DCD,DSR 6,1 RTS 7 CTS 8 RI 9
3 Tx 2 Rx 1,6 DCD,DSR 5 GND 4 DTR 8 CTS 7 RTS 9 RI
540-0063
Serial crossover cable for SER1 if DCD and RI signals are not required.
DE9M-DE9F 10 ft. cable 540-0052
Serial straight-thru cable for SER1 or SER2.
Connects the 10-pin header on the
10-pin IDC-DE9M 12 in. cable
1
540-0047
EM1500 to a DCE. This is for the case of SER3 being a full DTE.
3-pin latch connector with 22 AWG wires 12 in. cable
1
9-pin latch connector with 22 AWG wires 12 in. cable
1
540-0073
540-0074
CAT5E Ethernet patch 7 ft. cable 540-0076
Connects to the 3-pin header for the RS-485 serial port.
Connects to the 9-pin header for the digital I/O and relay
Connects the Ethernet connector on the EM1500 to a hub.
Connects the Ethernet connector on the
CAT5E Ethernet cross-over 7 ft. cable
540-0077
EM1500 directly to the Ethernet connector of another EM1500 or a PC.
Programming cable 101-0542 For downloading firmware upgrades.
1. Part # 151-0115 is a bag of 3 cables: 540-0047, 540-0073 and 540-0074.
8 www.rabbit.com Introduction
The other EM1500 Tool Kit items are:
24V power supply (Tool kits sold outside North America do not include a power supply. The power
requirements are 9 V to 36 V DC, 1.5 W typical.)
Wire kit 22 AWG (Rabbit Part # 805-0038)
Rabbit Engineering Demo Board
EM1500 User’s Manual
CD containing the Window and Linux versions of the stand-alone configuration program, a binary
version of the EM1500 firmware, and the RFU (and support files: flash.ini, coldload.bin, pilot.bin) to download the firmware.
Rabbit screw driver

1.4.1 Rabbit Engineering Demo Board

The demo board is useful for testing the functionality of the relay and digital I/O on the 9-pin connector. Look in Section 2.3 for some tips on how to use it.

1.5 Contact Information

If you purchased your EM1500 through a distributor or Rabbit Semiconductor partner, contact the distribu­tor or Rabbit partner first for technical support.
To contact Rabbit Semiconductor:
Check the Rabbit Technical Bulletin Board at www.rabbit.com/support/bb/.
Use the Technical Support e-mail form at www.rabbit.com/support/questionSubmit.shtml.
EM1500 User’s Manual www.rabbit.com 9
10 www.rabbit.com Introduction

2. GETTING STARTED

This chapter describes the hardware connections necessary for configuring the EM1500. This is followed by an example of telneting to a unit and a quick introduction to the Rabbit Engineering Demo Board.

2.1 Hardware Connections

An Ethernet connection is required for configuration. You may use a browser or the stand-alone configura­tion program that is included on the CD in the EM1500 Tool Kit.

2.1.1 Ethernet Connection

To make the Ethernet connection, you will need:
host PC with Ethernet access (i.e., RJ-45 jack)
Ethernet cross-over cable, or a hub
power supply
2.1.1.1 Host PC with Ethernet Access
Your PC must have an RJ-45 jack to connect to an Ethernet network. It is an 8-wire connector that looks similar to the ubiquitous (and slimmer) 6-wire RJ-11 connector used for telephone equipment. If your PC does not have an RJ-45 jack, you will need to install a 10Base-T or 100Base-T Ethernet card.
Please note that neither the telnet example described in this chapter, nor the configuration process described later in the manual have need of the EM1500 explicitly knowing the IP address of the host PC. This is because the EM1500 will not be initiating the Ethernet connection in these 2 cases. This is not to say that the host PC does not need an IP address—it definitely does. How this is accomplished depends on the operating system and the network card that is installed on the machine.
2.1.1.2 Using a Cross-Over Cable
An Ethernet cross-over cable can connect the RJ-45 jack on the front panel of the EM1500 directly to the RJ-45 jack of the host PC. This creates a very small isolated LAN on your desktop.
If you are using this hardware configuration, an IP address will have to be statically assigned to the EM1500 since it is unlikely there will be DHCP services available.
2
1
and 2 straight-through cables
2
1. A hub may be purchased in the TCP/IP Tool Kit, which is sold separately.
2. A suitable power supply and the cables needed by the EM1500 for Ethernet connection are supplied in the EM1500 Tool Kit, which is sold separately. Tool kits sold outside North America do not include a power supply.
EM1500 User’s Manual www.rabbit.com 11
2.1.1.3 Using a Hub and Two Straight-Through Cables
The Ethernet connection does not have to be direct. The EM1500 and the host PC may be connected to the same LAN through a hub. This way has the benefit of allowing more than one EM1500 unit to be config­ured in the same configuration session.
Of course, the hub can also be connected to a larger LAN, e.g., your company network or a test network. Always check with your network administrator before physically connecting to an existing network.

2.1.2 Power Supply

To supply power to the EM1500 use the specified AC adapter1. Connect the bare wires from the AC adapter to the V_INPUT (“+”) and GND (“-”) terminals of the screw terminal connec-
2
tor.
The wire with the red sleeve should be connected to the
GND
V_INPUT
adapter. Plug in the adapter and verify that the LED labeled PWR comes on steady.
“+” terminal (left side of screw terminal), the black wire to the “-” terminal (right side of screw terminal). If the wires on your power supply do not have the red and black sleeves, you may determine which wire is which by looking on the label of the

2.1.3 Serial Port Connection

After making the Ethernet hardware connections and supplying power to the EM1500, the unit is ready for complete configuration. Before delving into all the configuration parameters, we will step through a sim­ple example that will require minimal configuration. A serial port connection is not required to configure the unit, but is required for this example.
You must have a free COM port on an available PC. This can be the same PC that has the Ethernet access. The following directions assume there is only one host PC, and that it has both serial and Ethernet access to the EM1500.
Connect the COM port of the PC to SER2 on the EM1500 using a serial straight-through cable. The con­nector for SER2 is located on the upper right side of the back panel of the EM1500.
1. The adapter specification is 9 V to 36 V DC, with 1.5 W typical.
2. The screw terminal connector snaps into place and is easily removed from the EM1500 for ease of use.
12 www.rabbit.com Getting Started

2.2 Up and Running

A simple block diagram of the example is shown below.
Figure 2.1 Host PC connected to an EM1500
Ethernet
EM1500
SER2
Serial Cable
Direct connection using an Ethernet cross-over cable
(as described in Section 2.1.1.1)
Connection using a hub and Ethernet straight-through cables
(as described in Section 2.1.1.2)
Hub
Ethernet
EM1500
SER2
Serial Cable
There are two software programs that run on the host PC for this example:
a terminal emulator
emconf.exe (Windows) or emconf (Linux), the stand-alone configuration program located on the
CD in the EM1500 Tool Kit.
If there is a DHCP server on the same LAN as the host PC, you will not need to make any configuration changes on the EM1500. Otherwise, you will need to statically assign an IP address to the EM1500. Please see Chapter 3, “Assigning an IP Address to the EM1500,” for directions on how to accomplish this.

2.2.1 Serial Port Configuration

Open any terminal emulator program. In this example, we will use Tera Term. Choose a serial connection, then select the COM port that is connected to the EM1500. Go to the Setup menu and select “Serial port ...” to bring up the “Serial port setup” dialog. The serial port geometry (e.g., 8N1: character size is 8 bits, there is no parity and there is one stop bit.) and speed are set in this dialog. If you are using some other ter­minal emulator, the process might be slightly different, but each one has a dialog box that lets you set serial port parameters. The defaults in Tera Term are probably 8N1, no flow control and the baud rate is 9600 bps. Change the baud rate to 19200 bps and click on OK.
Open emconf or emconf.exe. This program will try and discover any EM1500s that reside on the same LAN as the host PC. You should be able to see the EM1500 on the upper left side of the program window. Click on its icon; this highlights the entry and shows status information for the unit in the area below its selection. The entry includes the IP address if DHCP was successful.
EM1500 User’s Manual www.rabbit.com 13
Figure 2.2 Screen Capture of the Stand-Alone Configuration Program, Showing an
EM1500 with Factory Defaults
A factory-default EM1500 will have SER2 set to 19200 bps for speed and 8N1 for serial port geometry. The screen shot shows the Serial tab selected for SER2. You may access this information by clicking on the Serial tab and then on the SER2 tab. (Please see Chapter 5. “EM1500 Configuration,” for more infor­mation about the stand-alone program.)
If using DHCP did not result in an IP address being assigned to the EM1500, you will need to assign one manually. First, get an IP address from your network administrator.
Now, click on the Network tab and type in the IP address in the first field of the Net­work dialog. Save the configuration change by pressing <Ctrl+S> (or by clicking on File | Save). You will see the entry for your unit updated in the upper left portion of the pro­gram window to include the IP address. This is the value you will use in the telnet com­mand described in the next section.
14 www.rabbit.com Getting Started

2.2.2 Making the Connection

From the command prompt or a DOS box on the host PC, telnet to the IP address of the EM1500. Substi­tute the IP address of your unit in the telnet command shown below. Use the default port number for SER2: 8889.
telnet 10.10.6.44 8889
Assuming the host PC is running a Telnet client, you will see a connect message similar to:
At this point, everything you type from the keyboard of the host PC while connected via telnet will travel over Ethernet to the EM1500. The EM1500 will convert the TCP/IP stream to a serial stream and send it out SER2 which is connected to the COM port of the host PC. The keyboard entries will then appear in the Tera Term window. You may also send files from Tera Term, by selecting File | Send file... from the Tera Term me n u.

2.3 Using the Demo Board

This section describes several ways to connect the auxiliary I/O that is available from the EM1500’s 9-pin header to the Rabbit Engineering Demo Board that came in the Tool Kit. You will need a couple of single wires, like those that came in the Tool Kit.

2.3.1 Select an EM1500

Open emconf or emconf.exe. As explained in the previous section, this program will try and discover any EM1500s that reside on the same LAN as the host PC. You should be able to see the EM1500 on the upper left side of the program window. Click on its icon; this highlights the entry and shows status infor­mation for the unit in the area below its selection.
EM1500 User’s Manual www.rabbit.com 15
In the status/debug area of the program window, there is a grouping of controls for the auxiliary I/O that looks like this:
Figure 2.3 AUX Tray
Detailed information about the status/debug area of the configuration program is in Section 5.1.11.

2.3.2 Wiring the Demo Board to the Selected EM1500

You must follow these steps before you can use the Demo Board to test the relay and digital I/O:
1. Use a single wire to connect +K from the Demo Board to V
(screw terminal) on the EM1500.
input
2. Use a single wire to connect GND from the Demo Board to GND (screw terminal) on the EM1500.
3. Connect the 9-wire assembly with plug that came with the Tool Kit to the 9-pin connector on the EM1500. The3 pins for the relay, plus the 2 digital outputs and 3 digital inputs are all available here.

2.3.3 Digital Output

To test the digital output, wire OUT0 and OUT1 to any LED on the Demo Board. To locate the wires com­ing from OUT0 and OUT1, do one of 2 things: look at the unit itself, then read the text on the back panel labelling the pins on the 9-pin connector; or look at the pinout diagram by selecting the “Pinouts” tab, then the “9-pin” tab in the stand-alone program.
Now you can click on OUT0 or OUT1 in the AUX tray to see the LED on the Demo Board to which it is connected, light up.
16 www.rabbit.com Getting Started

2.3.4 Digital Input and Relay

To test the relay and the digital input, follow these steps:
1. Move the jumper at H2 on the Demo Board to position 3-5 and 4-6.
2. Using the 9-wire assembly, wire IN0 to Relay NC.
3. Using the 9-wire assembly, wire IN1 to Relay NO.
4. Connect Relay Common from the 9-wire assembly to SW1 on the Demo Board.
5. Toggle the relay button in the AUX tray. When the relay is on the button is orange, when off, the color changes to gray.
Press down SW1 on the Demo Board. Depending on the state of the relay you will see either IN0 or IN1 change from bright green to dark green in the AUX tray.
When the relay is open, contact is made with the normally closed pole; therefore, pressing SW1(i.e.,
completing the circuit) causes the state of IN0 to change, which is then reflected in the button color for IN0.
When the relay is closed, contact is made with the normally open pole; therefore, pressing SW1(i.e.,
completing the circuit) causes the state of IN1 to change, which is then reflected in the button color for IN1.
EM1500 User’s Manual www.rabbit.com 17
18 www.rabbit.com Getting Started

3. ASSIGNING AN IP ADDRESS TO THE EM1500

To talk to the EM1500 over its Ethernet interface requires an IP address.

3.1 How to Obtain an IP Address

There are two ways to obtain a valid IP address for the EM1500. One is through dynamic assignment using DHCP/BOOTP. The EM1500 is a DHCP client by default. If a DHCP server resides on the same LAN as the EM1500, an IP address will be assigned to the EM1500 when it is powered on.
Dynamic allocation of an IP address works well during configuration, but if the EM1500 will act as a server when it is deployed in the field you will need to have a permanent IP address assigned to it so that it can be contacted later.
The second way to obtain a valid IP address is to have your network administrator assign one to you. Assigning an IP address to the EM1500 is explained in the next section.

3.2 How to Tell the EM1500 its IP Address

There are two ways you can tell the EM1500 its statically assigned IP address.
Directed ping
Stand-alone configuration program
The latter you might recognize as a way to configure the EM1500. The first method, directed ping, is only useful for assigning the IP address.
After using directed ping to set the IP address, you can then use a web browser to complete the configura­tion process.
EM1500 User’s Manual www.rabbit.com 19

3.2.1 Directed Ping

To use this method you must already have an IP address and the MAC address of the EM1500. The IP address has presumably been assigned by your network administrator.
The MAC address is assigned at the factory. The first six digits are 00:90:C2. The first six digits are the same for every network device manufactured by Rabbit. The last six digits of the EM1500’s MAC address are printed on a label affixed to the front panel of the unit. The six digits are identified by “MAC ID:”
The EM1500 must be on the same LAN as the host machine from which you issue the following ARP and ping commands. From a DOS box or command prompt, type:
arp -s xxx.xxx.xxx.xxx yy-yy-yy-yy-yy-yy
substituting your IP address for the xx.xx... and your MAC address for yy-yy... This sets up the next com­mand, which is:
ping xxx.xxx.xxx.xxx
This is the command that actually assigns the given IP address to the unit. Directed ping may only be used once, or not at all if the IP address was set through the stand-alone configuration program.

3.2.2 Stand-Alone Configuration Program

The stand-alone program comes in two versions, one for x86-based Linux (emconf) and one for Win­dows (emconf.exe). You will find the stand-alone program on the CD that comes with the EM1500 Tool Kit. Unlike directed ping, this method does not require you to know an IP and MAC address.
The stand-alone program allows multiple units to be configured at the same time. All EM1500s that are on the same LAN as the host running the stand-alone program (and have not been “secured” by another host) will respond to the special broadcast packet that is sent out. The MAC address will be displayed for every unit that is discovered. See Figure 5.1 for an illustration of what this looks like onscreen. The figure shows that one EM1500 was discovered.
By default, the EM1500 is a DHCP client. This means that it will accept a dynamically assigned IP address if one is available. You may assign a static IP address by going to the Network tab of the stand-alone pro­gram and entering it into the IP address field. If the unit will be deployed in an environment that has a DHCP server, be sure to uncheck Use DHCP in the Network dialog unless you want the static IP address to be a fallback for DHCP. Save the changes by pressing <Ctrl+S> or by selecting Save changes from the Edit menu.
The EM1500 needs to know more than its IP address. The rest of the configuration parameters may be set using the stand-alone configuration program, emconf. Each parameter will be explained fully in the next chapter.
20 www.rabbit.com Assigning an IP Address to the EM1500

4. EM1500 SPECIFICS

This chapter describes the front and back panels of the EM1500 and in particular the pin-outs for the serial ports and the jumpers for changing their default behavior.

4.1 Front Panel of EM1500

On the front panel are connectors for Ethernet, RS-485 and power. There is also a reset button, LEDs, and a label containing the last six digits of the unit’s MAC address. The first six digits of the MAC address are: 00:90:C2. This information will be important later if you are configuring multiple units at a time or you use directed ping to assign an IP address.
Figure 4.1 Front Panel of EM1500
MAC ID:
ETHERNET
USER
RESET
RJ-45
+ GND -
1x3 IDC header
RS-485
Â
+ -
POWER
9-36 VDC
ACT
LINK
PWR
Table 4.1 Front Panel Description
Connector Description of Use
.
RJ-45 Connects to 10/100Base-T Ethernet
1x3 IDC header Connects to RS485 half duplex serial port
Screw terminal Connects to 9-36V DC power adapter; snaps in and out for ease of use.
There are 4 LEDs:
• PWR (red) - comes on steady when power successfully applied.
• ACT (yellow) - flashes when data traffic present.
LEDs
• LINK (green) - comes on steady when Ethernet connection is made.
• USER (red and green, orange if both red and green on at the same time) - shows overall status/run mode. See Table 4.2 for more information.
EM1500 User’s Manual www.rabbit.com 21
Table 4.1 Front Panel Description
Connector Description of Use
The unit is reset whenever the reset button is pressed. The operating mode is usually determined by how long the reset button is held down:
Reset button
• 0 to 4 sec - Normal run
• 4 to 10 sec - Run in local configuration mode
• over 10 sec - Reset to factory defaults, run in local config mode.

4.1.1 User LED Patterns

The User LED on the front panel is a bi-color LED. It has a red and a green chip within, which provides a total of four states: off, red, green and orange. It indicates the overall status of the EM1500 as follows:
Table 4.2 User LED Patterns
LED pattern Status of EM1500
OFF Initializing after power-up or reset.
Solid Red
Orange with brief off-period every second
Flashing green 4 times per second
Alternating green and orange, 2 times per second
Alternating red and green every second
Any other pattern (usually green flash followed by one or more red flashes)
Run mode, with a valid IP address assigned to the Ethernet interface.
Run mode, but no IP address has been obtained. This means the unit has not been configured, or it has been configured to use DHCP but no DHCP server is available, and no fallback IP address was identified.
Reset has occurred, reset button has been pressed down for more than 4 seconds but less than 10 seconds.
After the reset button is held down for 10 seconds total time, the LEDs will go OFF and the unit will be reset to factory default configuration.
Factory default configuration mode. After configuring the unit for the first time, you may reset the unit by pressing the reset button to make the LEDs indicate normal run mode, i.e., solid red.
Special self-test mode. This mode is only used by the factory, so you should not normally observe this mode.
Self-test or other internal error. If you see this mode, contact technical support.
You may increase the functionality of the User LED to include the status of the Tx and Rx lines for one or more of the serial ports. Please see “LED shows Tx/Rx state in run mode” on page 39 for instructions on how to do this.
22 www.rabbit.com EM1500 Specifics

4.2 Back Panel of EM1500

The connectors on the back panel are shown in the following figure. Please note that pin 1 is PF2 on the 2x5 IDC header.
Figure 4.2 Back Panel of EM1500
SER 2 / RS-232
DE9 F
SER 3 / SER 4
SER 1 / RS-232
Tx3
Rx3
PF0
PF3
Rx4
Tx4
PF2
RLY IN
1x9 IDC header
COM
NO
PF1
NC
OUT
OUT1
OUT0
GND
IN2
IN1
DE9 M
IN0
GND
2x5 IDC header
PF4
The connectors on the back panel are described in the following table.
Table 4.3 Back Panel Description
Connector Description of Use
DE9, male For connection to RS-232 serial port (SER1) wired as a DTE.
DE9, female For connection to RS-232 serial port (SER2) wired as a DCE.
For connection to configurable serial port (SER3):
• 3-wire, pins 3 (Rx), 5 (Tx), and 9 (GND)
• 5-wire, pins 3 (Rx), 5 (Tx), 4 (RTS), 6 (CTS) and 9 (GND)
2x5 IDC header
• 9-wire, see Figure 4.5 for pins used.
For connection to 3-wire serial port (SER4). This is only available if SER3 is configured as a 3-wire port.
• 3-wire, pins 4 (Tx), 6 (Rx) and 9 (GND).
1x9 IDC header Digital I/O, GND, and the SPDT relay come out on this header.
EM1500 User’s Manual www.rabbit.com 23

4.3 Connector Pin-Outs

This section describes the pin-outs for the serial ports and the 9- and 10-pin connectors.

4.3.1 Serial Port 1 (SER1)

The serial port known as SER1 is wired as a DTE with a DE9 male connector. It is located at the lower right on the rear of the unit. The figure below shows the pin-out. The black circles (Tx, DTR and RTS) denote outputs. The white circles denote inputs.
Figure 4.3 Pin-Out for SER1
Tx
Rx
DTR
DCD
DSR
1
6
RTS
CTS
5
GND
RI
9

4.3.2 Serial Port 2 (SER2)

The serial port known as SER2 is wired as a DCE with a DE9 female connector. It is located at the upper right on the rear of the unit. The figure below shows the pin-out. The black circles denote outputs. The white circles denote inputs.
Figure 4.4 Pin-Out for SER2
RxTxDTR
GND
5
RI
9
1
DCD
DSR
6
CTS
24 www.rabbit.com EM1500 Specifics
RTS

4.3.3 Serial Port 3 and 4 (SER3 & SER4)

Serial ports SER3 and SER4 are available on the 2x5 IDC header (aka, the 10-pin header) on the back panel of the EM1500. By default, they are both 3-wire ports at RS-232 levels. Both can be jumpered for TTL level signals. SER3 is also configurable as a 5-wire RS-232 or TTL level port or a 9-wire port at TTL levels. Both the 5- and 9-wire options for SER3 preclude the use of SER4 since its Tx and Rx pins will be used as modem control lines for SER3.
Figure 4.5 10-Pin Header Signal Names
9
10
GND
PF4
PF0 / DTR PF2 / DCD
Tx3
PF3 / RI
Rx3
Tx4 / RTSRx4 / CTS
PF1 / DSR
NOTE: If SER3 is used in 3- or 5-wire mode, PF0-3 may be used as auxiliary TTL I/Os. PF4 is always a TTL I/O.
NOTE: Pinout allows ribbon cable crimped to 10-pin plug on one end and DE9 male crimped to the other end to have signals routed in the standard manner.

3-Wire Option (SER3 and SER4)

The 3-wire option is available with either RS-232 or TTL level signals.
Fresh from the factory SER3 and SER4 are configured as 3-wire RS-232 serial port, avail-
1
3
5
JP2
2
able on pins 3 (Rx) and 5 (Tx). JP2 is jumpered on 1,3 and 2,4: meaning RS-232 signal
4
levels for SER3. To change to TTL levels move the 2 jumpers down one position on JP2 to
6
3,5 and 4,6. For instructions on moving jumpers, please see Section A.4.
Pins 3 and 5 are either RS-232 or TTL, depending on the jumper at JP2. Pins 4 and 6 are
either RS-232 or TTL, depending on the jumper at JP3 (see 5-wire option).
1
2

5-Wire Option (SER3 only)

The 5-wire option is available with either RS-232 or TTL level signals.
To operate SER3 as a 5-wire port, you configure it to use hardware flow control (see
1
3
5
7
9
EM1500 User’s Manual www.rabbit.com 25
JP3
2
Section 5.1.4). Pins 4 (RTS) and 6 (CTS) are used on the 10-pin header. The signal levels
4
of pins 4 and 6 depend on the JP3 setting. The picture of JP3 shown here is of the jumpers
6
at 1,3 and 2,4—the default setting—which specifies RS-232 level signals on RTS and
8
CTS. Changing the jumpers to positions 3,5 and 4,6 cause the flow control lines for SER3
10
to be TTL levels.

9-Wire Option (SER3 only)

The 9-wire option is only available at TTL levels.
To configure SER3 as a 9-wire DTE go to the AUX I/O tab in the configuration program. Check the checkbox, “SER3 uses PF0-3.” (This option is also available on the Modem/SER3 tab.) JP2 and JP3 must be jumpered for TTL levels if you want to configure SER3 as a 9-wire DTE.
NOTE: It is possible to use SER3 in 9-wire mode with “pseudo-RS232” signal levels. See Modem/SER3 panel, check “RS232 levels.” Drive levels are 0-3 V TTL, which is below specification, but may work for short connections.

4.3.4 Serial Port 5 (RS485)

The EM1500 comes with an RS-485 port. Its connector is located on the front of the unit underneath the Ethernet connector. Compared to RS-232, RS-485 supports higher speeds (up to 250 kbps), longer dis­tances, and may be used in a multidrop configuration.
The EM1500 can be used in an RS-485 multidrop network spanning up to 1200 m (4000 ft), and there can be as many as 32 attached devices. Connect the 485+ to 485+ and 485– to 485– using single twisted-pair wires as shown in the figure below. Note that a common signal ground is recommended.
Figure 4.6 Multidrop Network
485+
GND
485-
485+
GND
485-
485+
GND
485-
For best performance in a multidrop network, termination resistors are enabled only on the end nodes and are disabled on intervening nodes. The EM1500 termination resistors are enabled by default. See
Appendix A.4, “EM1500 Jumpers,” for information on how to disable them.
The RS485 port has some unique properties compared with the other four serial ports. The main difference is that it is half duplex i.e. only one direction, transmit or receive, can be active at one time. Another differ­ence is that there are no modem control lines such as CTS, RTS or DCD. The last difference is that RS485 supports multi-dropping i.e. more than one device using the RS485 cable as a “party line.” This is also known as “daisy chaining.”
Because of these differences, the RS485 port has special considerations when configuring it.
The normal flow control disciplines associated with RS232 serial ports (i.e., XON/XOFF or modem hand­shake lines) do not apply. Instead, the RS485 port requires a transmitter enable discipline. In general, there must be one device or node that is configured to be a “master,” with every other device connected to the RS485 cable configured as a “slave.”
26 www.rabbit.com EM1500 Specifics
Loading...
+ 90 hidden pages