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 other devices, which generate electromagnetic radiation. Relays, contactors, transformers, motor controllers, 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 represent the problem of data communication networks. These problems include reflections and signal attenuation.
To eliminate the presence of reflections at 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 direction of propagation is bidirectional. In case of RS485 twisted pair cable, this termination is typically 120 Ω.

Setting Module Address in RS485 Modbus Network

The following table shows how to set switch to determine the address of the module. The module address is set with the switches in the range of 0 to 31. Addresses from 32 to 255 can be set via RS485 or USB and using dedicated software tool.

Addr

SW1

SW2

SW3

SW4

SW5

0

OFF

OFF

OFF

OFF

OFF

1

ON

OFF

OFF

OFF

OFF

2

OFF

ON

OFF

OFF

OFF

3

ON

ON

OFF

OFF

OFF

4

OFF

OFF

ON

OFF

OFF

5

ON

OFF

ON

OFF

OFF

6

OFF

ON

ON

OFF

OFF

7

ON

ON

ON

OFF

OFF

8

OFF

OFF

OFF

ON

OFF

9

ON

OFF

OFF

ON

OFF

10

OFF

ON

OFF

ON

OFF

11

ON

ON

OFF

ON

OFF

12

OFF

OFF

ON

ON

OFF

13

ON

OFF

ON

ON

OFF

14

OFF

ON

ON

ON

OFF

15

ON

ON

ON

ON

OFF

16

OFF

OFF

OFF

OFF

ON

17

ON

OFF

OFF

OFF

ON

18

OFF

ON

OFF

OFF

ON

19

ON

ON

OFF

OFF

ON

20

OFF

OFF

ON

OFF

ON

21

ON

OFF

ON

OFF

ON

22

OFF

ON

ON

OFF

ON

23

ON

ON

ON

OFF

ON

24

OFF

OFF

OFF

ON

ON

25

ON

OFF

OFF

ON

ON

26

OFF

ON

OFF

ON

ON

27

ON

ON

OFF

ON

ON

28

OFF

OFF

ON

ON

ON

29

ON

OFF

ON

ON

ON

30

OFF

ON

ON

ON

ON

31

ON

ON

ON

ON

ON

Setting module address in RS485 Modbus network

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 Setting

The data stored in the module's memory is given in the 16-bit registers. The access to registers is via Modbus RTU or Modbus ASCII.

Default Settings

Baud Rate

19200

Parity

No

Data Bits

8

Stop Bits

1

Reply Delay [ms]

0

Modbus Type

RTU

Default settings

Restore Default Configuration

To restore the default configuration, follow the steps below:

  • turn the power off;

  • turn the DIP switch SW6 on;

  • turn the power on;

  • when power and communication LED is lit, 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

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

40006

5

0x05

Response Delay

Time in ms

40007

6

0x06

Modbus Mode

0 – RTU
1 – ASCII

Configuration registers


JavaScript errors detected

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

If this problem persists, please contact our support.