Skip to main content
Skip table of contents

Communication

Grounding and Shielding

In most cases, I/O modules will be installed in an enclosure along with the other devices, which generate electromagnetic radiation. Relays, contactors, transformers, motor invertors, etc., are examples of such devices. Radiation can induce electrical noise into both power and signal lines, as well as direct radiation into the module. Whether or not the SfAR modules are immune to such effects, the interferences must be suppressed at their source if possible to ensure the proper functioning of the entire system. Appropriate grounding, shielding and other protective steps should be taken at the installation stage to prevent these effects. It is recommended to at least follow the rules below:

  • line power cables must be routed with spatial separation from signal and data transmission cables;

  • analog and digital signal cables should also be separated;

  • it is recommended to use shielded cables for analog signals, cable shields should not be interrupted by intermediate terminals;

  • the shielding should be earthed directly after the cable enters the cabinet.

It is recommended to install interference suppressors when switching inductive loads (e.g., coils of contactors, relays, solenoid valves). RC snubbers or varistors are suitable for AC voltage and freewheeling diodes for DC voltage loads. The suppressing elements must be connected as close to the coil as possible.

Network Termination

Transmission line effects often present problems for data communication networks. These problems include reflections and signal attenuation. To eliminate the presence of reflections of signal from the end of the cable, the cable must be terminated at both ends with a resistor across the line adequate to its characteristic impedance. Both ends must be terminated since the propagation is bidirectional. In case of an RS485 twisted pair cable, this termination is typically 120 Ω.

Setting Module Address in RS485 Modbus Network

Changing the address of the SfAR-S-ETH is possible with the aid of a built-in www website. After logging in, choose the Network tab, insert the module address in the Device Address field, and click Save. The device will save the given address and will remember it even after disconnecting from the power supply.

WARNING! The address is reset during the restoration of default configuration (more details in Default settings section).

Types of Modbus Functions

There are 4 types of Modbus functions supported by the SfAR modules.

Type

Beginning Address

Variable

Access

Modbus Command

1

00001

Digital Outputs

Bit
Read/write

1, 5, 15

2

10001

Digital Inputs

Bit
Read

2

3

30001

Input Registers

Registered
Read

3

4

40001

Output Registers

Registered
Read/write

4, 6, 16

Types of Modbus functions supported by the module

Communication Settings

The settings of TCP communication are stored in the memory of the device. The Modbus TCP network configuration is only accessible through the website (more details in Network section). The communication data of the module in the RS485 network is stored in the16-bit registers. The access to the registers is possible with the Modbus TCP protocol or through the website (details in Modbus Config section).

Default Settings

The default configuration can be restored with the DIP switch, SW6.

Modbus TCP

Modbus RTU/ASCII

Address IP

192.168.1.135

Transmission speed

19200

Mask

255.255.255.0

Parity

No

Gateway

192.168.1.1

Data bits

8

Port Modbus

502

Stop bits

1

Port HTTP

80

Modbus mode

RTU

Timeout of connection

60 s

The device address

1

Login

admin

Timeout of RS485

500 ms

Password

0000

Mode

Gateway


Device Table Refresh Slow

10000 ms

Device Table Refresh Normal

2000 ms

Device Table Refresh Fast

500 ms

Default settings

Restoring Default Configuration

To restore the default configuration, follow the steps below:

  • Turn the power off;

  • Turn the switch sw6 on;

  • Turn the power on;

  • When power and communication led flash turn the switch SW6 off.

WARNING!

After restoring the default configuration, all values stored in the registers will be cleared as well.

Configuration Registers

Modbus Address

Decimal Address

Hex Address

Name

Values

40003

2

0x02

Baud Rate

0 – 2400
1 – 4800
2 – 9600
3 – 19200
4 – 38400
5 – 57600
6 – 115200
other – value * 10

40005

4

0x04

Parity

0 – none
1 – odd
2 – even
3 – always 0
4 – always 1

40004

3

0x03

Stop Bits

1 – one stop bit
2 – two stop bits

40004

3

0x03

Data Bits

7 – 7 data bits
8 – 8 data bits

40007

6

0x06

Modbus Mode

0 – RTU
1 – ASCII

Configuration registers

Watchdog

This 16-bits register specifies the time in milliseconds to watchdog reset. If module does not receive any valid message within that time, all digital and analog outputs will be set to the default state.

This feature is useful if there is an interruption in data transmission and for security reasons. Output states must be set to the appropriate state in order to reassure the safety of persons or property.

The default value is 0 milliseconds, which means the watchdog function is disabled.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.