English (GB)
9
5.2 Setting the parity
You can set the parity either manually by using SW3 or via
software-defined settings.
Manual setting of parity
Default byte format (11 bits):
• 1 start bit
• 8 data bits (least significant bit sent first)
• 1 parity bit (even parity)
• 1 stop bit.
The default setting of the CIM 200 Modbus module is even parity
(1 stop bit). It is possible to change the parity using DIP switch
SW3. You can change the parity to no parity (2 stop bits). See fig.
Fig. 6
Parity
DIP switch settings
Software-defined parity and stop bits
When SW4 and SW5 are set to "software-defined", the value in
the holding registers at addresses 00009 and 00010 overrides
the setting of SW3. See figures
and
.
The software-defined parity and stop bit values are stored in the
communication interface and remain after a power-off.
5.3 Modbus address selection
A Modbus slave on a Modbus network must have a unique
address from 1-247. Address 0 is reserved for broadcasting, and
is not a valid slave address.
Use the two hexadecimal switches, SW4 and SW5, to set the
transmission speed. See fig.
.
Fig. 7
Setting the Modbus address
For a complete overview of Modbus addresses, see section
15. Modbus RTU rotary switch addresses
.
5.4 Termination resistor
The termination resistor is fitted on the CIM 200 Modbus module
and has a value of 150
Ω
.
CIM 200 has a DIP switch with two switches: SW1 and SW2 for
cutting the termination resistor in and out. Figure
shows the DIP
switches in cut-out state.
Fig. 8
Cutting the termination resistor in and out
DIP switch settings
Default setting: Termination resistor cut out.
Cable length
We recommend the following maximum lengths:
T
M
04
17
09
09
08
Parity
SW3
Even parity, 1 stop bit
OFF
No parity, 2 stop bits
ON
Software-defined parity
Value to set in register
00009
No parity [default]
0
Even parity
1
Odd parity
2
Software-defined stop bit
Value to set in register
00010
1 stop bit [default]
1
2 stop bits
2
Before you set the parity and stop bits via software-
defined settings, you must set SW4 and SW5 to ON.
SW3
T
M
04
17
06
09
0
8
You must set the Modbus address decimally from 1
to 247.
TM
04
1
701
09
08
Status
SW1
SW2
Cut in
ON
ON
Cut out
OFF
OFF
ON
OFF
OFF
ON
Bits/s
Maximum cable length
Terminated cable
Unterminated cable
[m/ft]
[m/ft]
1200-9600
1200/4000
1200/4000
19200
1200/4000
500/1700
38400
1200/4000
250/800
To ensure stable and reliable communication, it is
important that only the termination resistor of the first
and last units in the Modbus network are cut in.
All switch settings are effective immediately after
setting the values, no power-off is needed.
SW6
SW7
SW1 SW2