GC5 iSMA-B-W0202 User manual

iSMA-B-W0202
User Manual
Modbus
Global Control 5 Sp. z o.o.
Warsaw, Poland
www.gc5.pl

iSMA-B-W0202 Modbus User Manual
version 1.2Page 2 / 49
Introduction ............................................................................................................................................. 4
Revision history ............................................................................................................................................4
Safety rules ...................................................................................................................................................5
Technical specifications ................................................................................................................................6
Dimension.....................................................................................................................................................7
Power supply connection ..............................................................................................................................7
1.5.1 DC power connection .................................................................................................................................7
1.5.2 AC power connection .................................................................................................................................7
Connecting the communication bus ..............................................................................................................8
LED Indication .............................................................................................................................................8
Grounding and shielding...............................................................................................................................9
RS485 Network Termination ........................................................................................................................9
Module configuration....................................................................................................................................9
Communication...........................................................................................................................................10
Special Inputs..............................................................................................................................................10
Digital Outputs............................................................................................................................................ 11
Radio Settings ............................................................................................................................................. 11
Radio Status ................................................................................................................................................12
Configuration registers ......................................................................................................................... 13
Firmware version and module type (30001) ...............................................................................................13
Counter of received messages (30004) .......................................................................................................13
Counter of error messages (30006) .............................................................................................................13
Counter of sent messages (30008) ..............................................................................................................13
Up time (30012)..........................................................................................................................................13
Device actions (40001) ...............................................................................................................................14
Modbus protocol type (40134)....................................................................................................................14
Modbus address (40135).............................................................................................................................14
Baud rate (40136) .......................................................................................................................................14
Stop bits (40137).........................................................................................................................................15
Data bits (40138) ........................................................................................................................................15
Parity bit (40139) ........................................................................................................................................15
Response delay time (40140)......................................................................................................................15
Watchdog time (40141)...............................................................................................................................16
Watchdog for Radio ....................................................................................................................................16
Radio configuration registers ............................................................................................................... 16
Radio TX Power (40242)............................................................................................................................16
Radio Channel (40243) ...............................................................................................................................16
Radio Baud Rate (40244)............................................................................................................................18
Radio AESKEY (40249 – 40256) ...............................................................................................................19
Radio Received Frames Counter (40257) ...................................................................................................19
Radio ERROR Frames Counter (40259).....................................................................................................19
Radio Transmitted Frames Counter (40261)...............................................................................................19
Wireless Device Status (40263 – 40390) ....................................................................................................20
Special inputs connections .................................................................................................................... 21
Connection of Special Input to measure voltage 0 – 10 V..........................................................................21
Connection of Special Input to measure temperature .................................................................................21
Connection of Special Input as a Digital Input (Dry Contact) ....................................................................21
Special inputs MODBUS registers ....................................................................................................... 22
Status of Special Inputs working as Digital Inputs (30017)........................................................................22
Special Input measure voltage 1 – 2 (30071, 30073)..................................................................................22
Special Input measure temperature 1 – 2 (30072, 30074)...........................................................................22
Special Input measure resistance 1 – 2 (30103-30104, 30105-30106).......................................................22
Fast counter (40023-40024, 40025-40026).................................................................................................23
Resetting counters values (40022) ..............................................................................................................23
Special input configuration 1 – 2 (40151 – 40152).....................................................................................24
Filter time of the Special Input 1 – 2 (40159 – 40160) ...............................................................................24
Digital Outputs (relays) connections.................................................................................................... 25
Connecting a solenoid valve to the Digital Output .....................................................................................25
Connecting a resistive load to the Digital Output .......................................................................................25
Digital Outputs (relays) MODBUS registers....................................................................................... 26

iSMA-B-W0202 Modbus User Manual
version 1.2Page 3 / 49
State of Digital Outputs (40018) .................................................................................................................26
Default state of Digital Outputs (40143).....................................................................................................26
Special application modes..................................................................................................................... 27
Operation Mode registers (40176,40180) ...................................................................................................28
8.1.1 Ordinary IO...............................................................................................................................................28
8.1.2 Monostable Relay .....................................................................................................................................28
8.1.3 Bistable Relay ...........................................................................................................................................28
8.1.4 Time Relay NO [ms].................................................................................................................................28
8.1.5 Time Relay NC [ms] .................................................................................................................................29
8.1.6 Time Relay NO [s]....................................................................................................................................29
8.1.7 Time Relay NC [s] ....................................................................................................................................29
8.1.8 Input Forwarding ......................................................................................................................................29
8.1.9 Heating mode............................................................................................................................................30
8.1.10 Cooling mode .......................................................................................................................................31
Command register (40020) .........................................................................................................................32
Block Inputs register (40021) .....................................................................................................................32
Setpoint registers (40178,40182) ................................................................................................................32
Differential registers (40179,40183)...........................................................................................................32
List of Modbus registers........................................................................................................................ 33
List of supported temperature sensors ................................................................................................ 38

iSMA-B-W0202 Modbus User Manual
version 1.2Page 4 / 49
Introduction
iSMA-B-W0202 has been built to allow the extension of RS485 bus by using wireless technology
wherever use of network cable is impossible or unprofitable. Using two iSMA–B–W0202
modules allow to build the wireless 'bridge' for the RS485 by building wireless remote island
(one or more) for devices which communicate via Modbus RTU/ASCII - e.g. iSMA–B–MIX18
or iSMA–B–MIX38.
iSMA-B-W0202 (in addition to the RS485 port and wireless port) is equipped with 2SI (Special
Inputs) and 2DO (Digital Outputs max. 230 VAC/30 VDC 3 A ). It allows to use the device as an
I/O module or light controller communicating on Modbus RTU/ASCII. Algorithm implemented
in the processor allows the user to choose one of the three different modes:
Modbus Bridge
Modbus Bridge and I/O module (Digital Outputs work independent to the Special Inputs states)
Modbus Bridge and light controller (Digital Output states depends on assigned Special Inputs
states ). There are different Operating Modes available (see Special Application modes)
iSMA-B-W0202 is also equipped with a micro USB port which allows to configure the device
without the use of an external power supply (the device is powered through the USB port). This
solution gives the user an easy way, using 2 laptops, carry out the tests within the existing facility.
Revision history
Rev
Date
Description
1.0
2015.04.28
First edition
1.1
2016.12.29
The reason for the creation of new version of the document:
New functions:
•New HVAC functions Heating and Cooling based on output thermostatic control with a setpoint
and differential value setting;
•Added new input mode Time Relay NC [ms], Time Relay NO and NC in seconds, Input
Forwarding;
•Added new input mode: Ordinary IO, Monostable Relay, Bistable Relay, Time Relay NO and NC
[ms], Time Relay NO and NC in seconds, Input Forwarding, Heating, Cooling with corresponding
Modbus registers;
•Added reset output to default after input mode change
Improvements:
•Added power Led flashing after IO watchdog triggered;
•Changed IO watchdog reset after read/write registers through USB;
•Added immediately detecting sensors short circuit and disconnection regardless of filter settings
on universal inputs;
1.2
2018.12.17
•Added watchdog functionality for the Radio, if the radio does not receive the correct packet for
180 seconds, the radio module will restart.
Table 1 Revision history

iSMA-B-W0202 Modbus User Manual
version 1.2Page 5 / 49
Safety rules
•Note: Incorrect wiring of this product can damage it and lead to other hazards. Make sure the
product has been correctly wired before turning the power ON.
•Before wiring, or removing/mounting the product, be sure to turn the power OFF. Failure to
do so might cause electric shock.
•Do not touch electrically charged parts such as the power terminals. Doing so might cause
electric shock.
•Do not disassemble the product. Doing so might cause electric shock or faulty operation.
•Use the product within the operating ranges recommended in the specification (temperature,
humidity, voltage, shock, mounting direction, atmosphere etc.). Failure to do so might cause fire
or faulty operation
•Firmly tighten the wires to the terminal. Insufficient tightening of the wires to the terminal
might cause fire.

iSMA-B-W0202 Modbus User Manual
version 1.2Page 6 / 49
Technical specifications
Power supply
Voltage
24 V AC/DC ± 20%
Power consumption
2 W @ 24 VDC; 4.5 VA @ 24 VAC
Special Inputs
No. of inputs
2
Temperature input
Measurement with attached RTDs
accuracy ±0.1˚C at 25˚C
Voltage input
Voltage measurement from 0 to 10 V
Input impedance 100 kΩ
measurement accuracy ±50 mV
Resistive input
Measurement of resistance from 0 to 1000 kΩ
Resistance measurement method
The voltage divider
Dry contact input
Output current ~1 mA
Measurement resolution
12-bits
Fast counters
50 Hz/100 Hz
Digital Outputs (relays)
No. of outputs
2
Resistive load
3 A @ 230 VAC or 3 A @ 30 VDC
Inductive load
75 VA @ 230 VAC or 30 W @ 30 VDC
Interface
Mini USB
For power up and configuration
RS485
Up to 128 devices
Communication protocol
Modbus RTU, Modbus ASCII
Baud rate
From 1200 to 115200 bits/s
Address
0 to 127
Radio
Frequency
868 MHz
Max output power
+20 dBm (100 mW)
Sensitivity
-120 dBm
Radio Channels
1 ÷ 8
Encryption
AES-128
Baud Rate
From 1200 to 200000 bits/s
External antenna
SMA socket
Ingress protection
IP
IP40
Temperature
Storage
– 40˚C to +85˚C
Operating
– 10˚C to +50˚C
Humidity
Relative
5 to 95%
Connectors
Type
Rising Clamp
Maximum cable size
2.5 mm2
Dimension
Width
17 mm
Length
56 mm
Height
90 mm

iSMA-B-W0202 Modbus User Manual
version 1.2Page 7 / 49
Dimension
Figure 2 Dimension
Power supply connection
1.5.1 DC power connection
Figure 2 DC power supply connection
1.5.2 AC power connection
Figure 3 AC power supply connection

iSMA-B-W0202 Modbus User Manual
version 1.2Page 8 / 49
Connecting the communication bus
Figure 4 RS485 connection
LED Indication
Figure 5 Top panel W0202
•The power LED is ON (green) when the module is running/runs properly.
•Communication LED is ON (orange) for 20 ms after sending each message. If the module
receives/sends a lot of messages LED can be lit continuously.
•LEDs indicate the status of the Special Inputs are lit when resistance connected to the input is
less than 1 kΩ (Dry Contact input is active).
•WARNING! The LED also lights up when voltage connected to the input has a very low
potential.
•LEDs indicate the status of the Digital Outputs are lit when output is enabled.

iSMA-B-W0202 Modbus User Manual
version 1.2Page 9 / 49
Grounding and shielding
In most cases, IO modules will be installed in an enclosure along with other devices which
generate electromagnetic radiation. Relays, contactors, transformers, motor invertors etc. are the
examples of these devices. This electromagnetic radiation can induce electrical noise into both
power and signal lines, as well as direct radiation into the module causing negative effects on the
system. Appropriate grounding, shielding and other protective steps should be taken at the
installation stage to prevent these effects. These protective steps include control cabinet
grounding, cable shield grounding, protective elements for electromagnetic switching devices,
correct wiring as well as consideration of cable types and their cross sections.
RS485 Network Termination
The transmission line effects often present problem on data communication networks. These
problems include reflections and signal attenuation.
To eliminate the presence of reflections from the end of the cable, the cable must be terminated
at both ends with a resistor across the line equal to its characteristic impedance. The both ends
must be terminated since the direction of propagation is bidirectional. In the case of an RS485
twisted pair cable. This termination is typically for 120 Ω.
Module configuration
W0202 can be configured by RS485 Modbus registers or directly by USB connection and iSMA-
Configurator software. The iSMA-Configurator can be downloaded from www.support.gc5.pl.
When the module is connected, it appears in the hierarchy tree window (left part of the screen).
The next step is to read module configuration using the “Read Module” button or to read
configuration from a file using the “Load From File” button.
If you want to save changes in the module, you need to use the “Write Module” button. This
command writes all parameters down to the module.
WARNING! Radio settings only takes effect after the module restarting.

iSMA-B-W0202 Modbus User Manual
version 1.2Page 10 / 49
Communication
The screen below shows configuration options for RS485 bus.
Figure 6 Communication options
Special Inputs
The screen below shows configuration options for Special Inputs.
Figure 7 Special Inputs configuration

iSMA-B-W0202 Modbus User Manual
version 1.2Page 11 / 49
Digital Outputs
The screen below shows configuration options for Digital Outputs.
Figure 8 Digital Outputs configuration
Radio Settings
The screen below shows configuration options for Radio.
Figure 9 Radio Settings

iSMA-B-W0202 Modbus User Manual
version 1.2Page 12 / 49
Radio Status
The screen below shows radio status for all devices working in the same group.
Figure 10 Radio Status

iSMA-B-W0202 Modbus User Manual
version 1.2Page 13 / 49
Configuration registers
WARNING! Changing the parameters concerning the transmission configuration will only take
effect after restarting the module or reload settings –register (40001).
Firmware version and module type (30001)
In this register are encoded type and firmware version of module.
Low byte contains information about the type of module in accordance with the table below:
Value
Type
8010 (0x5016)
iSMA-B-W0202
Table 3 Firmware version and module type
High byte contains the module firmware version multiplied by 10.
The example:
In register 30001 is number 2049010 = 0x500A16. It means that it is a module iSMA-B-W0202
(0x50) with firmware in version 1.0 (0x0A16 = 1010)
Counter of received messages (30004)
32-bit register with the number of valid Modbus messages received by the module from the last
powered up. The value is reset after power cycle or after changing transmission parameters (baud
rate, stop bits, parity, etc.).
Counter of error messages (30006)
32-bit register with the number of error Modbus messages received by the module from last
powered up. The value is reset after power cycle or after changing transmission parameters (baud
rate, stop bits, parity, etc.).
Counter of sent messages (30008)
32-bit register with the number of Modbus messages sent by the module from last powered up.
The value is reset after power cycle or after changing transmission parameters (baud rate, stop
bits, parity, etc.).
Up time (30012)
This 32-bits register contains module working time in seconds from last power up or module
reset.

iSMA-B-W0202 Modbus User Manual
version 1.2Page 14 / 49
Device actions (40001)
Setting register 40001 according to the table below will enable 1 of 3 available actions: reset
module, reload settings and set to default.
Value
Type of action
0x01FF
Reset of device
0x02FF
Reload settings
(RS485, Radio)
0x03FF
Set device to default
Table 4 Device actions
Modbus protocol type (40134)
This register contains parameters which define Modbus protocol type (RTU or ASCII).
Value
Protocol Type
0 (default)
Modbus RTU
1
Modbus ASCII
Table 5 Modbus type selection
Modbus address (40135)
This register contains information about the address of the Modbus module. The default address
is 1.
Baud rate (40136)
This register contains information about the baud rate.
Particular register value determined by? baud rate in accordance with the table below.
Value
Baud rate
0
1200
1
2400
2
4800
3
9600
4
19200
5
38400
6
57600
7
115200(default)
Table 6 Baud rate

iSMA-B-W0202 Modbus User Manual
version 1.2Page 15 / 49
Stop bits (40137)
The number of stop bits is determined on the basis of this register in accordance with the
following table:
Value
No of stop bits
1 (default)
1
2
2
Table 7 Stop bits
Figure 11 Modbus message frame
Data bits (40138)
The number of data bits transmitted in a single byte is determined according to the following
table:
Value
No of data bits
7
7
8 (default)
8
Table 8 Data bits
Parity bit (40139)
Each byte of data being transferred may have additional protection as a parity bit added before
stop bit (bits).
The method of calculating parity bit determines the table below:
Register value
Type of parity bit
0 (default)
none
1
Odd (number of all ones in a byte is odd)
2
Even (number of all ones in a byte is even)
3
Always 1
4
Always 0
Table 9 Parity bit
Response delay time (40140)
The value of this register determines the number of milliseconds to wait before the unit answers

iSMA-B-W0202 Modbus User Manual
version 1.2Page 16 / 49
the question. This time is used to extend the interval between question and answer. The default
value of 0 means no delay (the answer is sent once during the 3.5 character required by the
protocol Modbus RTU).
Watchdog time (40141)
This register specifies the time in seconds to watchdog reset. If module does not receive any valid
message within that time, Digital Outputs will be set to default state, which is determined by
value in 40142 register.
This feature is useful if for some reason there is an interruption in data transmission and for
security reasons output state must be set to the appropriate state endanger the safety of persons
or property.
Setting of 0 value will disable the watchdog. The default value is 15 seconds.
Watchdog for Radio
If the radio does not receive the correct data packet for 180 seconds, the radio module will restart.
Time 180 seconds is a constant value.
Radio configuration registers
WARNING! Changing the parameters concerning the transmission configuration will only take
effect after restarting the module or reload settings –register (40001).
Radio TX Power (40242)
This register contains radio transmission signal power. The signal strength depends on the
distance between devices and the environment conditions.
Value
Radio TX Power [dBm]
Radio TX Power [mW]
0
-18
0,0158
1
0
1
2
7
5
3
10
10
4
14
25
5
17
50
6
20
100
Table 10 Radio TX Power register
Radio Channel (40243)
This register contains information about a radio channel. All modules which work in the same
group require the same channel number. More than one wireless network can be used but each
of them has to work on different channel. Each channel has to have no influence on each other
(see chapter Radio Baud Rate).
Value
Channel
Frequency
0
DISABLE
-
1
Channel 1
869,415 MHz
2
Channel 2
869,445 MHz

iSMA-B-W0202 Modbus User Manual
version 1.2Page 17 / 49
3
Channel 3
869,475 MHz
4
Channel 4
869,505 MHz
5
Channel 5
869,535 MHz
6
Channel 6
869,565 MHz
7
Channel 7
869,595 MHz
8
Channel 8
869,625 MHz
Table 11 Radio channel register

iSMA-B-W0202 Modbus User Manual
version 1.2Page 18 / 49
Radio Baud Rate (40244)
The register contains baud rate used in Radio protocol. All devices which work in the same group
(the same channel) have to have the same baud rate value. Different baud rate values can be used
for RS485 bus and for Radio protocol.
Value
Baud rate
0
1200
1
2400
2
4800
3
9600
4
19200
5
38400
6
57600
7
115200
8
200000
Table 12 Radio baud rate selection
Higher baud rate value requires more bandwidth which can occur on adjacent channels.
The table below shows the dependencies between these parameters.
Baud rate
No of channels
Channels
1200
1
1-8
2400
1
1-8
4800
1
1-8
9600
1
1-8
19200
1
1-8
38400
2
2-7
57600
3
3-6
115200
4
4
200000
4
4
Table 13 Relation between Baud rate and no of the channels

iSMA-B-W0202 Modbus User Manual
version 1.2Page 19 / 49
Radio AESKEY (40249 – 40256)
Each package transmitted by Radio protocol is encrypted by AES-128 algorithm. It protects the
network against unauthorized access. The encryption uses 128-bits key stored in 8 registers (8 x
16 bits). Each device works in the same group has to have the same encryption key.
Register
Device
40249
Radio AESKEY D1-D0
40250
Radio AESKEY D3-D2
40251
Radio AESKEY D5-D4
40252
Radio AESKEY D7-D6
40253
Radio AESKEY D9-D8
40254
Radio AESKEY D11-D10
40255
Radio AESKEY D13-D12
40256
Radio AESKEY D15-D14
Table 14 Radio AESKEY registers
Radio Received Frames Counter (40257)
32-bit register with the number of valid messages received by the module via Radio protocol
from last powered up. The register value is reset after power cycle or after changing transmission
parameters (baud rate, stop bits, parity, etc.).
Radio ERROR Frames Counter (40259)
32-bit register with the number of error messages received by the module via Radio from last
powered up. The value is reset after power cycle or after changing transmission parameters (baud
rate, stop bits, parity, etc.).
Radio Transmitted Frames Counter (40261)
32-bit register with the number of transmitted messages by the module via Radio from last
powered up. The value is reset after power cycle or after changing transmission parameters (baud
rate, stop bits, parity, etc.).

iSMA-B-W0202 Modbus User Manual
version 1.2Page 20 / 49
Wireless Device Status (40263 – 40390)
The register contains information about the signal strength of the other W0202 modules operating
on the same channel. Each device has its own register for status indication
The device number equals the Modbus address of this device.
Register
Device
40263
WIRELESS DEVICE STATUS 1
40264
WIRELESS DEVICE STATUS 2
40265
WIRELESS DEVICE STATUS 3
40266
WIRELESS DEVICE STATUS 4
....
......
40389
WIRELESS DEVICE STATUS 127
40390
WIRELESS DEVICE STATUS 128
Table 15 Wireless Device Status registers
The particular register contains information about the signal strength in dBm and remotes device
status.
No of bit in register
Function
0 ÷ 7
RX POWER [dBm]
8
0-> DOWN; 1-> OK
Table 16 Wireless Device Status register structure
Table of contents
Other GC5 I/O System manuals
Popular I/O System manuals by other brands

National Instruments
National Instruments 9224 CALIBRATION PROCEDURE

M-system
M-system R3-DA8C instruction manual

Autonics
Autonics ADIO-EI product manual

Ditel
Ditel Kosmos series instruction manual

Johnson Controls
Johnson Controls Metasys MS-IOM4711 Series installation instructions

Siemens
Siemens SIMATIC ET 200S user manual

INTELLIGENT CONTROL
INTELLIGENT CONTROL IOTRouter ZHC4013 Application guide

ICP DAS USA
ICP DAS USA WF-2000 Series user manual

ICP DAS USA
ICP DAS USA I-2533 user manual

National Instruments
National Instruments NI R Series Getting started guide

Strand
Strand VISION.NET quick start guide

OneFex
OneFex CE-IO Series manual