Trycom Technology TRP-C31M User Manual

TRP-C31M
MODBUS TCP to RTU/ASCII
Gateway
User’s Manual
Printed Feb. 2007 Rev 1.0
Trycom Technology Co., Ltd
1F, No.2-11, Sihu street, Yingge Township, Taipei, Taiwan ROC
T el: 886-2-86781191, Fax: 886-2-86781172
Web: www.trycom.com.tw
Copyright
Copyright Notice: The information in this manual is subject to change without prior notice in order to improve reliability, design and function and dosed not represent a commitment on the part of the manufacture r. No part of this manual may be reproduced, copied, or transmitted in any form without the prior written permission of manufacturer. Acknowledgment Products mentioned in this manual are mentioned for identification purpose only. Products manes appearing in this manual may or may not be registered trademarks or copyright of their respective companie s.
1. Introduction.
The TRP-C31M, MODBUS gateway allows the legacy MODBUS RTU/ASCII devices to operate on a MODBUS TCP network. It allows either MODBUS serial master or slave to communicate with MODBUS TCP’s slave or master. When TRP-C31M function as “MODBUS TCP masters to RTU/ASCII slaves”: It allows multiple MODBUS TCP masters to communicate with a MODBUS serial network. the queries from different masters are pipelined and processed one by one. When TRP-C31M function as MODBUS RTU/ASCII master to MODBUS TCP slaves: it can connect up to 8 MODBUS TCP slaves. User can specify a UID range for each MODBUS TCP slave. TRP-C31M provides inactive timeout that allows user to specify a time period to disconnect TCP/IP connection to prevent one connection slot was occupied if there is no activity in the network., or prevent any another connection again. A friendly management software provides user an easy way of configuration over Ethernet. TRP-C31M can work at Loop back Mode, all data is sent back immediately. This feature makes the connection testing easy. The industry standard DIN rail and panel mount design enable user a fast and professional installation.
1-1. Features
¾ DIN rail or Panel mount. ¾ Supports 10/100 Mbps Ethernet. ¾ Supports RS-232, RS-422, and RS-485 serial interface. ¾ Supports LAN and WAN communications. ¾ Management access password protected. ¾ High speed up to 230.4Kbps ¾ Supports 8 MODBUS TCP master to MODBUS RTU/ASCII slave (up to 31). ¾ Supports MODBUS RTU/ASCII master to MODBUS/TCP slave devices (up to 8). ¾ Provide inactive timeout for connection auto-recovery when power failures. ¾ Automatically generate exception when RTU/ASCII slave device does not response. ¾ Remote IP address filtering function to reject unwanted incoming connection source.
1-2. Specifications
¾ Output: 64K bytes. ¾ Input: 8K bytes. ¾ Serial Connection: DTE – BD-9 male ¾ LAN: 10/100 Mbps Auto-detecting. ¾ RS-232: TX, RX, RTS, CTS, DTR, DSR, DCD, GND. ¾ RS-422: TX+, TX-, RX+, RX-, RTS+, RTS-, CTS+, CTS-, GND. ¾ RS-485: Data +, Data –, GND. ¾ Data Rate: 110 bps to 230.4 k bps. ¾ Parity: none, even, odd, mark, space. ¾ Data Bits: 5, 6, 7 or 8. ¾ Stop Bits: 1, 1.5 or 2. ¾ Protocol: TCP, IP, ARP, DHCP, Telnet, HTTP, UDP, ICMP.
¾ Power Requirements: 9 ~15 VDC / 500 Ma. ¾ Operating Temperature: 0 to 60 °C. ¾ Storage Temperature: -20 to 70 °C ¾ Humidity: 10~ 90% Non-Condensing. ¾ Dimensions: 151mm x 77mm x 26mm. ¾ Weight: 377g.
2. Hardware Description
2-1.Panel Layout
2-2.Block Diagram
2-3. LED display
PWR LED: System is ready. RX LED: Data receiving. TX LED: Data transmitting.
2-4.Reset Button
The reset button can be found between the switch and terminal block. To reset the unit manually apply power, insert a small plastic tool, and press lightly depressing switch. Hold for 1 second and release. The Link and Run LED will go out and turn back on.
2-5. Dip Switches A double DIP switch allows the TRP-C31M to be entered into Console/Loop back/Default/Data Mode.
When all these switches are moved into the ON position, theTRP-C31M enters Console Mode, allowing configuration of the TRP-C31M from a PC running a terminal program such as Hyper-terminal. When the TRP-C31M enters Console Mode, the Console Mode screen will appear in the Hyper-terminal program window. The serial port settings must be 8-N-1 at 9600 baud.
When the DIP switches are switched to the ON OFF position, the TRP-C31M will work at Loop back Mode, all data is sent back immediately.
When the DIP switches are switched to the OFF ON position, the TRP-C31M will revert to its factory
version firmware no matter what newer firmware has been upgraded.
When all of the DIP switches are switched back to the OFF position, the TRP-C31M will enter Data Mode (RS-232, RS-422 or RS-485).
3. TRP-C31M typical application.
3-1. Ethernet master link to multiple serial slaves (up to 31)
3-2. Serial master link to multiple Ethernet slaves (up to 8)
4. Install TRP-C31M
The following information is provided to give the user an understanding of how to connect the TRP-C31M to the LAN and serial device. A review of the switch settings and the functionality of the LED’s are also provided.
4-1.Power Connection The TRP-C31M has a two pins terminal block and power jack. Power can apply from either terminal block or the power jack. It accepts 9VDC-15VDC 500mA power supply. When power is applied PWR LED will turn and flash every one second to indicate the system is up and ready.
4-2.Ethernet Connection
A straight-through Ethernet cable can be used to connect the MODB US gateway to an Ethernet hub, switch, or wall plate. A crossover Ethernet cable can be used to make a connection directly to the NIC (Network Interface Card) on a PC or laptop.
4-3.Serial Connection
The TRP-C31M has one DB-9 male connector. The serial port is configured as a DTE (data terminal equipment) device just as PC’s COM ports. Therefore a null modem cable is required to make a connection between a COM port on a PC to the TRP-C31M serial port. The cable to connect the TRP-C31M serial port to a DCE device must be straight-through.
The TRP-C31M has one serial port. The port can be configured as a Console Mode connection or as RS-232, RS-422 or RS-485 interface to the TRP-C31M (if all of the DIP switches are in the OFF position) using the TRP-C3XM software, via Telnet, or using the Web Server.
4-4. DB9 Pin Configuration
Pin RS-232 RS-422 RS-485
1 DCD RXD (-) 2 RXD RXD (+) 3 TXD TXD (+) D (+) 4 DTR TXD (-) D (-) 5 GND GND GND 6 DSR CTS (-) 7 RTS CTS (+) 8 CTS RTS (+) 9 RI RTS (-)
5.Serial Port Operational Modes
Using the TRP-C3XM Manager software, the serial port of TRP-C31M can be set to Console Mode, Default Mode or Upgrade Mode. The serial port can be configured for RS-232, RS-422 or RS-485
operation. The TRP-C31M also can be set to Console Mode by placing all the DIP switches into the ON position.
5-1. Console Mode
The console mode allows TRP-C31M access to the setup menu. This is the way to reconfigure the default settings for the application. A serial connection is made between a PC COM port and the TRP-C31M serial port by using a null modem cable. In console mode, the serial port defaults to an RS-232 interface.
The serial port default settings are,
Server name: TRP-C31M Serial number: Fixed Password: Blank DHCP: Disable IP address: 192.168.1.1 Netmask: 255.255.255.0 Gateway : 192.168.1.254 MAC address: Fixed Version & Date: Current firmware version number and date
Serial port
Baud rate: 9600 Data/Stop bits: 8-1 Parity: None Flow control: None Serial port mode: RS232
MODBUS parameters
Serial data format: RTU Character timeout: 10 ms Message timeout: 100ms Inactive timeout: 0 minute (Disabled) Maximum connection: 1 Gateway type: TCP Master to Serial Slave
TCP Master to Serial Slave
Listening TCP port: TRP-C31M: 502
Use MBAP’s UID: Enable
Use specific:10
Generate Exception: Off
Remote IP address/filter: 255.255.255.255
TCP Slave to Serial master
UID range: 1 to 8
Slaves IP address: 0.0.0.0
Destination TCP port: 502
and must be set to VT100 emulation mode. The default settings are used when the first serial port is set to console mode regardless the actual configuration parameters are.
5-2. Upgrade Mode
The newest firmware can be upgraded to TRP-C31M using the PC’s serial port .
5-3.Default Mode
When Default Mode is selected and the Gateway Properties are updated (saved), all configuration settings return to their default values.
5-4.RS-232 Mode
The RS-232 supports 8 channels plus Signal Ground and is configured as DTE like a computer. Signals are single ended and referenced to Ground. To use handshaking, Flow Control must be set to RTS/CTS during Configuration. Refer to the next Pin out for connections.
5-5.RS-422 Mode
The RS-422 mode supports 4 channels with full duplex operation for Receive, Transmit, RTS (Request to send) and CTS (Clear to Send). The data lines are in differential pairs. Ground provides a common mode reference. To use handshaking Flow Control must be set to RTS/CTS during configuration. Refer to the next pin out for connections.
5-6.RS-485 Mode
The RS-485 mode supports the Transmit and Receive Channels using 2-wire half-duplex operation. The data lines are differential pair Ground provides a common mode reference. Refer to the Pin out table for connections.
Loading...
+ 19 hidden pages