User Manual
TMCM-1311 V1.2 Hardware Manual (Rev. 1.12 / 2013-JUL-05) 14
www.trinamic.com
3.4 Communication
3.4.1 RS485
For remote control and communication with a host system the TMCM-1311 provides a two wire RS485
bus interface. The pins are shared with the CAN interface. Therefore, make sure the RS485 interface has
been activated in software.
To select a modules’ address, the TMCM-1311 is equipped with dip switches with digits from 1 to 4.
Anyhow, the switches use the binary digit system. Thus, node addresses from 1 to 15 can be set.
THERE ARE TWO POSSIBILITIES FOR THE ADDRESS SETTING
- All DIP switches off: RS485 address is taken from the on-board non-volatile memory (EEPROM).
Factory default value for the module address is 1.
- At least one DIP switch on: the 4 DIP switches define the RS485 address. The address is specified as
binary 4bit value – DIP switches 1… 4 specify bit 1… 4 of the address
Figure 3.3 Dip switch for address selection
Note
- Per default, all dip switches are off and the module address taken from the EEPROM is 1. Per default,
the host address is 2.
- Do not use equal addresses for the host and the TMCM-1311!
For proper operation, the following considerations should be taken into account when setting up an
RS485 network:
1. BUS STRUCTURE:
The network topology should follow a bus structure as closely as possible. That is, the
connection between each node and the bus itself should be as short as possible. Basically, it
should be short compared to the length of the bus.
c:>
node
1
node
n
- 1
node
n
Host
Slave Slave Slave
RS485
termination
resistor
(120 Ohm)
termination
resistor
(120 Ohm)
}
keep distance as
short as possible
Figure 3.4 RS485 bus structure
2. BUS TERMINATION:
Especially for longer busses and/or multiple nodes connected to the bus and/or high
communication speeds, the bus should be properly terminated at both ends. The TMCM-1311
does not integrate any termination resistor. Therefore, 120 Ω termination resistors at both ends
of the bus have to be added externally.