UNION Market TRP-C37M User manual

TRP-C37M
User’s Manual
MODBUS TCP to RTU/ASCII Gateway
User’s Manual
Printed September 1 2015 Rev 1.6
UNION Market Enterprise Company LTD.
1F., No.2, Alley 6, Lane 423, Zhuangjing Rd., Xinyi District, Taipei City 110, Taiwan
Tel : 02-2722-1198 Fax: 02-2722-1120
Web: www.umarket.com.tw / www.smartmeter.com.tw
Copyright
Copyright Notice: The information in this manual is subject to change without notice to improve reliability, design and
function and does not represent a commitment on the part manufacturer. No part of this manual may be reproduced,
copied, or transmitted in any form, without prior written permission by the manufacturer. Products mentioned in this
manual are mentioned for identification purposes only. In this manual, product names appearing may or may not be
registered trademarks of their respective companies or copyright.

2
1. Introduction
The TRP-C37M which is able to analyzes the protocols between Modbus TCP and Modbus
RTU / ASCII. It able to assign the UID of Modbus TCP slave from Modbus Serial Master.
The TRP-C37M which is suitable industrial environment Ethernet serial server, wide range power
input and serial communicate protection, It Built-in surge, over current, over voltage ensure
RS422 / 485 serial communication quality; if user lost password that can fast back to default by
external switch.
The TRP-C37M can as serial server that support 3 operates mode, "Direct IP Mode", "Virtual
COM Mode", and "Paired Mode", these modes are supported Modbus RTU / ASCII protocols.
The TRP-C37M offers maximum connection 16 host clients to link the one serial server, it is easy
to operate in Modscan32 and Modbus Poll many application uses Virtual-COM mode and Pair
Mode.
In network security, the TRP-C37M is able to set up 8 sets host IP, only these host IP can access
the TRP-C37M.
The TRP-C37M provides a watchdog timer function, The Watchdog timer allows the system to
automatically recover from a system crash. When the TRP-C37M MCU stop working correctly,
the watchdog timer waits for a preset period of time, and performs a hardware reset .
When The TRP-C37M working at unstable voltage industrial environment, the power detection
circuit can prevent the power fail cause of the boot fail then auto re-boot.
The TRP-C37M will be auto detects function which will be auto connect when the LAN
disconnect then re-connect or power off then power on.
1-1 Features
Wide input range DC power supply.
Built-In watchdog function prevents system boot fail.
Support Auto-MDIX twisted pair crossover detection and Auto-Correction.
Modbus Type support TCP Master to Serial Slave and TCP Slave to Serial Master.
Support 1 serial master to 8 TCP slave ,each TCP slave can free set up UID from 1~64.
Compatible with Modscan32 ,Modbus Poll,CAS Modbus Scanner and SCADA ..
Application.
Support virtual com maximum connection 16 client.
Maximum 8 sets host IP that limits network access.
Surge protection and over current and over voltage on RS-422/485 data lines.
Support baud rate from1200~921600Kbps.

3
Auto switching RS-232/422/485 signal interface.
Fully compatible with Ethernet and TCP/IP protocol.
Supports 10/100 Mbps Ethernet.
Power/Link/UART RX/UART TX mode LED indicator.
Heart Beat function ensures a reliable communicating connection.
Auto reconnection when power or Ethernet fail.
Back to factory configuration by external switch.
Support configuration by serial console.
Update the firmware from LAN.
Dual power input select from screw terminal or DC-Jack.
1-2 Specification
Power Input Voltage: DC +10V to +30V.
LAN: Auto-MDIX, 10/100 Mbps Auto-detecting.
RS-232: TX, RX, RTS, CTS, DTR, DSR, DCD, GND.
RS485 signal: differential 2 half-duplex wires (DATA+, DATA-).
RS422 signal: differential 4 full-duplex wires.(TX+,RX+,TX-,RX-)
Baud Rate: 1200,2400,4800,9600,19200,38400,57600,115200,921600 K bps.
Parity: none, even, odd.
Data Bits: 5, 6, 7 or 8.
Stop Bits: 1, 1.5 or 2.
Modbus TCP Type: TCP Master to Serial Slave, TCP Slave to Serial Master.
TCP Slave to Serial Master Mode: Maximum 8 TCP Port. UID Range:1~64.
Virtual COM drivers for WIN 98/2000/XP/VISTA/2003/7/8/8.1 and WIN10.
Virtual-Com mode support RS232 TXD,RXD,GND/RS422 TX+,TX-,RX+,RX-/RS485 D+,D-.
Power supply: Screw terminal, or DC jack.
Serial interface: +/-15 KV ESD.
RS422/485 interface: Surge, over current, over voltage protection.
RS422/485 interface: Industrial plug-in screw terminal.
Plug-in screw terminal wiring: Accepts AWG #12 ~30 wires.
Power consumption: 12V/140mA.
Operating Temperature: -10 to 65 °C.
Humidity: 0~90% Non-Condensing.
Dimensions: 151(L)*75(W)*26(H) mm.
Weight: 395g with packing.

4
2. Hardware Description
The following information is provided to give the user an understanding of how to connect the
TRP-C37M to the LAN and serial device. A review of the switch settings and the functionality of
the LED’s are also provided.
2-1. Panel layout
2-2. LED indicator
PWR LED: System is ready.(Blinking)
LINK LED: Ethernet cable connection and data active.
TX/RX LED: UART Transiting/Receiving Indicator.

5
2-3. Power Input
DC Jack: Power Input DC +10V to +30V. (Please use the 5.5*2.1mm DC JACK).
There are two types power input.
a. Use the plug of power adaptor than plug in the DC jack on the side.
This approach also allows the user to provide additional power to other devices using the
terminal from EU regulation.
b .Wiring terminals on the EU regulation
2-4. Reset Button
Push the reset button will Re-Boot.
2-5. DIP Switches
2-6. How to back factory by external DIP Switches 1,2
Power off then adjusts the SW 1, 2 to ON ON position then power on until the PWR LED blinking.
Adjusts the SW 1,2 to OFF,OFF.
2-7.Factory Setting

6
2-6. DB-9 Pin male pin assignment

7
3. Install TRP-C37M Hardware
STEP1: Connect power source with TRP-C37M, the PWR LED will blinking.
STEP2: Connect TRP-C37M with internet port by RJ45 LAN cable.
If the cable is properly connected the “LINK” LED will light up.
*The TRP-C37M Support Auto-MDIX, A straight-through or crossover Ethernet
cable can be used to make a connection directly to the HUB/Router/PC.
STEP3: Connect TRP-C37M with RS232 or RS422/485 RTU/ASCII of serial device.
The TRP-C37M has one DB-9 male connectors for RS232 connection and a screw
terminal connector for RS422/485 connection.
The DB-9 serial port is DTE interface. A null modem cable is required to make a
connection between the COM port on a PC and the TRP-C37M serial port. A straight
through cable is required to connect the TRP-C37M serial port to a DCE device.
The screw terminal connector accepts AWG #12 ~30 wires.
3-1. RS485 Wiring
3-2. RS422 Wiring

8
3-3. RS232 Wiring
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 Pin out table for connections.
4. How to configure TRP-C37M
There are 3 ways to access the Server Properties and program the TRP-C37M.
a.TRP-C37X DSM utility.

9
b. WEB Server

10
c. Serial Console

11
4-1. Using TRP-C37X DSM Utility.
The “TRP-C37X DSM” software performs several functions:
A: Searching for TRP-C37M connected to the network.
B: Displaying and changing the configuration of TRP-C37M.
C: Upgrading the TRP-C37M firmware.

12
*Refer the Firmware upgrade help file.
D: Saving and Loading Configuration from external log File or EEPROM.
4-2. Searching LAN for TRP-C37M
Once TRP-C37M is connected to the LAN the TRP-C37X DSM software will search it and
display it in a window by name , IP address, Mac….Information.
4-3.Configuring Server Properties
Select the “NO.” item and Double click to open the Server configuration, after setting then
click “Submit” will save the configuration to EEPROM.

13
Device Name
Device server name, Maximum 10 chars.
MAC Address
The Device server MAC address.
DHCP
If DHCP is disabled, it allows user setting the IP address, Subnet mask, Gateway.
If DHCP is enabled ,the IP address, Subnet mask, Gateway address will be dynamically
configuration by DHCP server such router.
When “DHCP” is enabled ,but the DHCP server is not available on the network, the TRP-C37M
will timeout then back to factory setting IP=192.168.1.1.
Master mode:
Listening IP: The Gateway IP address.
Listening port:RS232/422/485 port address.
Slave Mode:
UID Range(1~64) Using UID range to map a query from Modbus serial master with
an UID within this range to an IP and port.
Slave IP Address and TCP port
The TRP-C37M maps a message from MODBUS serial master to a serial slave.

14
Netmask
The default LAN Netmask is configured for a Class C address. This maybe reconfigured by the
user.
Gateway
Input the gateway IP address that can be allows users to access the serial gatway from internet.
DNS
Short for Domain Name System, an Internet service that translates domain names into IP
addresses. Because domain names are alphabetic, they're easier to remember. The Internet
however, is really based on IP addresses. Every time you use a domain name, therefore, a DNS
service must translate the name into the corresponding IP address.
Transmit timer:0~500 mS/Unit
Time interval to send out serial data char staring packet.
*The function main support serial data input to TRP-C37M RS232/422/485 port, if serial
data is a mass of serial data over 1K Byte ,Trying to adjust the Timer to 200ms.
Hear Beat: Disable /Enable
When Hear Beat enable, it allows open a 5300 port, 5 sec interval to send out data char packet
that provides a easy way to ensure the LAN communications between Host PC Client and
gateway devices.
Maximum Connection: 1~16
The function allows the user to configure the TRP-C37M Serial Gateway to have up to 16 TCP
client connections.
TCP Keep Alive: 1~7 /Minute
When TRP-C37M in Server mode, the TRP-C37M without data over the 1~7 Min setting value,
The TRP-C37M will be disconnecting TCP.
When TRP-C37M in Client mode, the TRP-C37M without data over the 1~7 Min setting value,
The TRP-C37M will be reconnecting TCP.
New Password: 12345
It only accepts value from0~65535 integer, if input the wrong password over 5 times, the
WEB-Page will lock until the TRP-C37M re-boot.
Firmware Version
Firmware Version.
Serial Port setting
Baud Rate: UART Speed from 1200,2400,4800,9600,19200,38400,57600,115200,921600 k bps
Data Bit: 5,6,7,8
Parity: Odd, Even, None
Stop Bits: 1, 1.5,2
Flow Control: Xon/Xoff, Hardware, None
Submit
Save the setting value to EEPROM.
Save

15
Save the setting value to external log file.
Load
Load the setting value to external log file.
Upgrade
Upgrade the firmware
4-4 using the WEB Server mode
The Web Server can be used to configure the TRP-C37M Serial Gateway from any web browser
software (such as I.E).
In Internet Explorer type the IP Address of the Serial Gateway into the address field and press
the Enter key. The following window will appear:
Example:
If TRP-C37M IP is 192.168.1.1 Please Input the 192.168.1.1 then enters at web
address, the web-page will appear….. See diagram below.
4-5 using the serial console mode
The serial console can be used to configure the TRP-C37M Serial Server from DB-9 connector
link the HOST PC by null modem cable.

16
Insert the TRP-Serial CD then find the CONSOLE.exe, The CONSOLE file support all windows
O.S include MS-DOS, Run the CONSOLE file and Re-boot the TRP-C37M then select correct
host COM port number and data format.

17
4-6 How to setup the network security
In network security, the TRP-C37M is able to setup 1~ 8 sets host IP, only these host IP can
access the TRP-C37M.
The TRP-C37M actually can make connections with any Host IP,
Once the user has filled in the Host IP, these IP are valid, the TRP-C37M will be pass with them.
Other host IP will not pass.
Refer to the following example illustrates.
*Please make sure the firmware version is 601 above,
and the DSM utility version 6.02 above.

18
5. Install the Virtual-COM
The Virtual-COM utility support TCP/IP、UDP data mapping to the HOST PC virtual-com, it can
creative Maximum 512~1024 virtual-com port, Support Server、Client、UDP mode, Support all
Windows O.S include Win98/Win2000/WinXP/Vista/Win2003/WIN7,Support Multi-virtual com at
different PC to one Serial Gateway; Support Ethernet and Internet , If TRP-C37M off line or
power fail, The Virtual-Com utility will try to Reconnection.
Step 1. Adjust the switch position to “ON, OFF”.
Step 2. Insert the TRP-Serial CD and find the TRP-C37M folder.
Step 3.Click “Vcomm.exe” icon then install Virtual-COM utility.
*The Virtual COM utility support multi-language, please select which language do you need.
Step4. Click “OK” button and select “VSP run as Client support Server Device”.
Step5. Select “Create virtual serial by device scanner”, then press “OK”

19
Step6. Run VCOMM.exe then click right button select “New Virtual COM”
Step7. Select “Select Serial Port” and input TRP-C37M IP and port then press “OK”.
Step8. If Virtual-Com setting success, the display will appear bellow.
Step9. Run TRPCOM utility then select virtual-com port make a TRP-C37M loop test.

20
*If in VCOMM‘s configuration select “Boot with windows”, the virtual-com will Auto-connection
when windows start.
Table of contents
Popular Gateway manuals by other brands

SMC Networks
SMC Networks LEC-GDN1 Series instruction manual

Taylor
Taylor TAYLOR-GTW-2A installation manual

OpenVox
OpenVox VS-GW1202 user manual

Sollae Systems
Sollae Systems SMG-5420 user manual

ZyXEL Communications
ZyXEL Communications ZyWALL USG 2000 Support notes

Artistic Licence
Artistic Licence netLynx quad user guide