exemys SGW1-MB-NM User manual

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 1

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 2
Exemys products are constantly evolving to meet the needs of our customers. For this reason,
the specifications and capabilities are subject to change without notice.
Find updates at www.exemys.com
Copyright © Exemys, 2007. All rights reserved.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 3
1 Introduction ________________________________________________________ 4
1.1 User Manual purpose _________________________________________________ 4
1.2 Product Overview ____________________________________________________ 4
1.3 Ordering Code ______________________________________________________ 4
1.4 Technical Specifications _______________________________________________ 5
2 Installation ________________________________________________________ 6
2.1 Power Supply connection ______________________________________________ 6
2.2 Serial Ports Connections _______________________________________________ 6
2.3 Led Indicators ______________________________________________________ 6
3 Configuration ______________________________________________________ 7
3.1 Modbus Configuration.________________________________________________ 8
3.2 NMEA Configuration _________________________________________________ 9
3.3 Other commands ___________________________________________________ 10
4 Modbus Registers __________________________________________________ 11
A. FIRMWARE UPGRADE 18
B. FACTORY SETTINGS 21
C. DIN RAIL MOUNT 22

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 4
1 Introduction
1.1 User Manual purpose
The purpose of this manual is to provide the instructions to quickly and simply install and
operate the SGW1-MB-NM
1.2 Product Overview
The SGW1-IA3-MB-NM is a protocol converter that will convert the values send from a
NMEA 0183 talker to Modbus registers. On the Modbus side it’s a slave that can be
connected to a Modbus master.
The supported NMEA statements are: GGA, VTG, MWV, XDR, ROT, VBW, DPT, HDM, HDT,
RMC, RMB, APB, DBT, MTW, MTA, RSA, VDO, SXN (firmware 2.2+), XDR format 2 (firmware
2.3+)
Sentence NMEA SXN added on firmware version 2.2
Sentence NMEA XDR format 2 added on firmware version 2.3
Alternative registers for latitude and longitude (GGA and RMC) added on firmware
version 2.4
New alternative registers for latitude, longitude, time and date (GGA and ZDA) added on
firmware version 2.5
1.3 Ordering Code
The ordering code is:
SGW1-2B0-00-IA3-MB-NM
This code, replaces the old version:
SGW1-2100-IA-MB-NM

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 5
1.4 Technical Specifications
Communication Protocols
Modbus RTU, Modbus ASCII, NMEA 0183
Communication Port
2 RS232 / RS485, 1 USB type B
Configuration
USB Console
Firmware Upgrade
Via RS232
LED Indicators
Power, NMEA data, Modbus data
Dimensions
100 mm x 22,5 mm x 112 mm (Height x Width x Length)
Power Supply
10 a 30 Vdc, 70 mA @ 12 Vdc, 40 mA @ 12 Vdc
Temperatures
Operation: -15 a 65 ºC
Storage: -40 a 75 ºC
Warranty
1 Year, technical support included

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 6
2 Installation
2.1 Power Supply connection
The SGW1-IA3-MB-NM accepts a power supply in the range of +10 to 30 VDC. The positive
must be connected to terminal #5 and the negative to terminal #6, as can be seen in the
following image:
2.2 Serial Ports Connections
RS232 ports are DTE type. That means, data is transmitted through the TX terminal and is
received on the RX terminal. If you want to connect another DTE device you must cross the Tx
and Rx terminals.
2.3 Led Indicators
The SGW1-IA3-MB-NM has three LED indicators. One of them indicates that the device is
energized (Power). While the other two are each linked to the activity on the serial ports -
Modbus (A) and NMEA (B).

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 7
3 Configuration
The SGW1-IA3-MB-NM provides a command console for configuration via USB port.
To access it, the SGW1-IA3-MB-NM must be connected to a USB port on a PC and it must
have the Exemys branded terminal program called Exemys Console.
The driver for the USB can be downloaded from here: www.exemys.com/rmsrmdriver
The terminal type program can be downloaded from here: www.exemys.com/console
Once the driver and the terminal type program have been installed, the terminal must be run,
connect the SGW1-IA3- MB-NM to a USB port on the PC and go to the Connection -> USB
menu, a window will open with the description of all the Exemys products with USB found.
Select with double click the product to be configured and pressing ENTER will show a ">"
sign indicating that you can enter the configuration commands listed below.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 8
3.1 Modbus Configuration.
MBBAUD
(1200|…|115200)
Modbus Port Baud rate
Values: 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600 or 115200.
Example: MBBAUD:115200
MBBITS
(7|8)
Modbus port stop bits. 7 bits can only be selected, when the "PROTOCOL" is Modbus ASCII.
Values: 7 or 8
Example: MBBITS:8
MBPARITY
(N|E|O)
Modbus Port Parity.
N = without parity / E = Even parity / O = Odd parity
Example: MBPARITY:E
MBSTOP
(1|2)
Modbus Port Stop Bits
Values: 1 or 2
Example: MBSTOP:2
MBPROTOCOL
(R|A)
Modbus type
R = Modbus RTU / A = Modbus ASCII
Example: MBPROTOCOL:R
MBPKTTOUT
(3…50)
Modbus RTU packet expiration time
Values: 3 to 50 [byte times]
Example: MBPKTTOUT:4
MBEXCEPTION
(E|D)
Modbus port exceptions
E = Enabled / D = Disabled
Example: MBEXCEPTION:D
MBID
(1…254)
Modbus slave ID for internal registers memory.
Values: 1 to 254
Example:
MBID:110
MBEXCEPTION - Enables or disables exceptions for the Modbus Port. If the option is
disabled the SGW1-IA3-MB-NM will respond to errors with silence, otherwise it will
return an exception code.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 9
MBPKTTOUT - Modbus RTU packet expiration time: Modbus RTU packets are
separated from each other by a time interval. This parameter allows you to change the
maximum time, counting after the last byte of the packet, during which the SGW1-IA3-
MB-NM will assume that the packet has not yet been terminated. After this maximum
time, the SGW1-IA3-MB-NM will assume that the packet has finished arriving. The time
is entered in one-byte time units, with a minimum of 3 units. (Don’t change this value
unless you know exactly what it means)
3.2 NMEA Configuration
NMEABAUD
(1200|…|115200)
NMEA Port Baud rate
Values: 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600 or 115200.
Example: NMEABAUD:115200
NMEABITS
(7|8)
NMEA Port data bits
Values: 7 or 8.
Example: NMEABITS:8
NMEAPARITY
(N|E|O)
NMEA Port Parity.
N = NONE / E = EVEN / O = ODD
Example: NMEAPARITY:E
NMEASTOP
(1|2)
NMEA Port stop bits
Values: 1 or 2.
Example: NMEASTOP:1
NMEASEND
Sends a message from the USB console directly to the NMEA port.
It can be used to configure the NMEA device in case it’s needed.
Example: NMEASEND:$PGRMO,GPRMC,1
NMEALISTEN
It configures the SGW1 to the USB console everything that comes from the NMEA port.
It can used to verify the connection to the NMEA talker and see which sentences are
being received
NMEAVERB
It configures the SGW1 to send to the USB console details of the NMEA sentences
received on the NMEA port.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 10
3.3 Other commands
LIST
Lists the current configuration.
HELP
Displays the list of all available commands with syntax and
descriptive text.
FACTRESET
Restart the device factory settings.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 11
4 Modbus Registers
The following table shows how to map each NMEA statement in Modbus registers.
If your NMEA talker does not send any of the statements listed here, values will be read out at
0.
Notes:
• Where two Modbus registers are indicated to represent a value of 32 bits, the first
register contains the upper part and the second the lower part of the represented value.
• Where clarifications such as "x10" are specified, it means that the value obtained from
the NMEA device is multiplied by the corresponding factor to achieve a higher degree of
resolution in the indicated value.
• Where "ASCII" is specified, it means that the value read is the numerical representation
according to the ASCII coding of the letter obtained by the device that delivers the NMEA
frame.
• Where "ddmmyyyy" is specified, it means that the value indicated for this case is 2 digits
representing the day, 2 the month and 4 the year. Thus the decimal number 05112012,
refers to the date November 5, 2012.
• Where "hhmmss" is specified, it means that the value indicated for this case is 2 digits
representing the hour, 2 minutes and 2 seconds. Thus the decimal number 123045, refers
to the time 12:30:45.
• Latitude and Longitude are mapped following this procedure.
Here’s a latitude conversion from a Modbus Register to the DDºMM’SSSSSS’’ and the GGA
NMEA sentence format
40003:4 Latitude (º x 10,000,000) = 854273798
To convert this number to the DDºMM’SSSSSS’’ format
* 854273798 / 10,000,000 = 85.4273798 º
* 0.4273798 * 60 = 25.6427880’
* 0.6427880 * 60 = 38.56728”
* LAT: 85°25’38.56728’’.
To convert this number to the GGA NMEA sentence format
(DDMM,MMMMM)
* 854273798 / 10,000,000 = 85.4273798 º
* 0.4273798 * 60 = 25.6427880’
* 85 * 100 = 8500
+ 25.642788
* LAT: 8525.264788,N

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 12
Since firmware version 2.4 there’s an alternative format for latitude and longitude that will
directly convert the DDMM,MMMMM format from the NMEA sentence to three separate
Modbus registers
LAT: 8525.264788,N
40166 Latitude – Degrees 85
40167 Latitude – Minutes 25
40168:69 Latitude – Minutes fraction x 100,000,000 64278800

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 13
40001:2 UTC Time hhmmss -
40003:4 Latitude x10,000,000 signed º
40005:6 Longitude x10,000,000 signed º
40007 GPS Quality - -
40008 Number of Satellites - -
40009 Horizontal Dilution x10 -
40010:11 Altitude x10 meters/feet
40012 Altitude Unit ASCII -
40013 Geoidal Separation x10 meters/feet
40014 Geoidal Separation Units ASCII -
40015 Age of differential GPS data
x10 Seconds
40016
True track made good
x10 º
40017
Magnetic track made good
x10 º
40018
Ground speed
, knots
x10 knots
40019
Ground speed, Kilometers per hour
x10 kph
40020
Wind angle
x10 º
40021
Reference
ASCII -
40022
Wind speed
x10 kph/knots
40023
Wind speed units
ASCII -
40024
Status
ASCII -
40025
Sensor type 1
ASCII -
40026
Sensor reading 1
x10 -
40027
Sensor units 1
ASCII -
40028
Sensor type 2
ASCII -
40029
Sensor reading 2
x10 -
40030
Sensor units 1
ASCII -
40031
Sensor type 3
ASCII -
40032
Sensor reading 3
x10 -
40033
Sensor units 3
ASCII -
40034
Degrees True
x10 º
40035
Degrees Magnetic
x10 º
40036
Speed
x10 knots
40037
Speed
x10 kph
40038 Turn Velocity (*) x10 º per minute
40039 State ASCII -

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 14
40040
Longitudinal water speed (*)
x10 Nudos
40041
Transverse water speed (*)
x10 Nudos
40042
Status
ASCII -
40043
Longitudinal ground speed (*)
x10 Nudos
40044
Transverse ground speed (*)
x10 Nudos
40045
Status
ASCII -
40046
Stern longitudinal water speed (*)
x10 Nudos
40047
Status
ASCII -
40048
Stern transverse water speed (*)
x10 knots
40049
Status
ASCII -
40050 Water depth x10 meters
40051 Offset x10 meters
40052 Degrees magnetic x10 º
40053:54
UTC Time
hhmmss -
40055:56
UTC Date
ddmmyyyy -
40057 Hours - hours
40058 Minutes - minutes
40059 Real degrees x10 º
40060:61 Time (UTC) hhmmss -
40062 Status ASCII -
40063:64 Latitude x10,000,000 signed º
40065:66 Longitude x10,000,000 signed º
40067 Speed over ground x10 knots
40068 Track made good x10 º
40069:70 Date (UTC) ddmmyy -
40071 Magnetic variation x10 º
40072 Variation ASCII -
40073 Mode ASCII -
40074 Status ASCII -
40075 Cross Track Error x10 miles
40076 Course ASCII -
40077:78 Destination Waypoint Latitude x10,000,000 signed º
40079:80 Destination Waypoint Longitude x10,000,000 signed º
40081 Range to destination x10 miles
40082 Bearing to destination x10 º

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 15
40083 Destination closing velocity x10 knots
40084 Arrival Status ASCII -
40085 Mode ASCII -
40086 Status 1 ASCII -
40087 Status 2 ASCII -
40088 Cross Track Error Magnitude x10 miles
40089 Direction to steer ASCII -
40090 Status 3 ASCII -
40091 Status 4 ASCII -
40092 Bearing origin to destination x10 º
40093 Magnetic/True ASCII -
40094 Bearing, present position to Destination x10 º
40095 Magnetic/True ASCII -
40096 Heading to steer to destination waypoint x10
40097 Magnetic/True ASCII -
40098 Mode ASCII -
40099 Water depth x10 feet
40100 Water depth x10 Meters
40101 Water depth x10 Fathoms
40102 Water temperature x10 ºC
40103 Air temperature x10 ºC
40104
Starboard rudder sensor (*)
x10 º
40105 Status ASCII -
40106
Port Rudder Sensor (*)
x10 º
40107 Status ASCII -
40108 Message type - -
40109 Repeat indicator - -
40110:11 User ID - -
40112 Navigation Status - -
40113 Rate of turn (ROT) x10 º/min
40114 Velocity over ground (SOG) x10 knots
40115 Position accuracy - -
40116:17 Longitude x10,000,000 signed º
40118:19 Latitude x10,000,000 signed º
40120 Course over ground (COG) x10 º
40121 True Heading (HDG) - º

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 16
40122 Time (UTC) - -
40123 Receptor Integrity control (RAIM) - -
40124:5 Param[1] - Int 32
40126:7 Param[2] - Int 32
40128:9 Param[3] Automatic Int 32/ Float 32
40130:1 Param[4] Automatic Int 32/ Float 32
40132:3 Param[5] Automatic Int 32/ Float 32
40134:5 Param[6] Automatic Int 32/ Float 32
40136:7 Param[7] Automatic Int 32/ Float 32
40138:9 Param[8] Automatic Int 32/ Float 32
40150 Wind direction min (A#0) - -
40151 Wind direction average(A#1) - -
40152 Wind direction max (A#2) - -
40153 Wind speed min (S#0) x10 -
40154 Wind speed average (S#1) x10 -
40155 Wind speed max (S#2) x10 -
40156 Rain accumulation (V#0) x100 -
40157 Rain duration (Z#0) -
40158 Rain current intensity (R#0) x10 -
40159 Hail accumulation (V#1) x100 -
40160 Hail duration (Z#1) -
40161 Hail current intensity (R#1) x10 -
40162 Heating temperature (C#2) x10 -
40163 Supply Voltage (U#0) x10 -
40164 Heating voltage (U#1) x10 -
40165 3.5V reference voltage (U#2) x1000 -
The SGW1 will use the “format 2” registers of it receives on the 3 following NMEA XDR
sentences. If it doesn’t match any of this it will use the XDR original format.
40166 Latitude – Degrees º
40167 Latitude - Minutes -
40168:69 Latitude – Minutes fraction 8 digits -
40170 Longitude - Degrees º

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 17
40171 Longitude - Minutes -
40172:73 Longitude - Minutes fraction 8 digits -
40201 Year. yyyy Int
40202 Month. mm Int
40203 Day. dd Int
40204 Hour. hh Int
40205 Minutes. mm Int
40206 Seconds. ss Int
40207 Longitude - Degrees. º Int
40208 Longitude - Minutes. Min * 100 + Sec / 0.6 Int
40209 Longitude - Sign. W=0 / E=1 Int
40210 Latitude - Degrees. º Int
40211 Latitude - Minutes. Min * 100 + Sec / 0.6 Int
40212 Latitude - Sign. S=0 / N=1 Int
Example of the new alternative format:
Longitud en NMEA: 12202,26957864,W
* 12202,26957864,W º = 122
* 12202,26957864,W => 02*100 + 26 = 226
* 12202,26957864,W = 0
40207 Longitude – Degrees. 122
40208 Longitude - Minutes. 226
40209 Longitude - Sign. 0
(*) When a "-" is received from the NMEA device as a value, it will be indicated with the value
9999 on the Modbus map
(**) The spin ratio (ROT) has three values of special character, which are:
• 9999: This value is displayed when there is no information available on this field
• 713: This value is displayed when you are rotating clockwise to more than 5 degrees in 30
seconds
• -713: This value is displayed when you are turning counterclockwise to more than 5 degrees in
30 seconds

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 18
A. Firmware Upgrade
The firmware of the SGW1-MB-NM can be updated in case of new versions with
improvements, by accessing the serial console intended for this purpose.
Connect an RS232 cable as follows between the computer and the SGW1 and follow the
steps below
The terminal console program can be downloaded from here: www.exemys.com/console
1. Open an Exemys Console terminal type program in the COM of the corresponding
computer and verify in the terminal that the Baudrate is in 9600.
1. Turn on the SGW1 and within the first 7 seconds type CFG and press ENTER or press
the CFG button that is available. After doing it the SGW1 will show the welcome
message:
SGW1-MB-NM NMEA to Modbus converter - Exemys (2.0):
---------------------------------------------------
>

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 19
2. Then go to the menu Functions -> Update Device.
3. Locate and select the binary file (.bin) to be transferred and press the Open button to
start the firmware update of the device.
4. During the file transfer the progress of the process will be displayed.

SGW1-IA3-MB-NM – NMEA talker to Modbus slave Converter – User’s Manual
www.exemys.com Rev.4 20
5. At the end, the device will be restarted to install the update, preserving the current
configuration.
Do not turn off the device until the "Installed" message is displayed, this can cause a permanent
damage to the device.
Other manuals for SGW1-MB-NM
1
Table of contents
Other exemys Media Converter manuals
Popular Media Converter manuals by other brands

Advantech
Advantech B+B SmartWorx USOPTL4-2P quick start guide

CTS
CTS WAC-3112 SERIES user guide

American Dynamics
American Dynamics AD RS-422 Installation and operation instructions

Renishaw
Renishaw TONiC DOP installation guide

GSS
GSS PHIS 1000 S Assembly instruction

QM-products
QM-products DHM-2057 user manual