Technical Manual
SMCI36
Connections and wiring
20
Issue: V 1.0
Setting the CANopen module address
There are two basic ways of setting the CANopen node ID and the baud rate:
•
Hardware setting: using the rotary switch on the controller
•
Software setting: using NanoCAN, see separate NanoCAN manual.
To be able to make a software setting with NanoCAN, a certain value must be set on
the rotary switches of the control; see the following table:
Rotary switch value
dec
(hex)
Node ID
Baud rate
0
(0x00)
From EEPROM
1 - 127
(0x01 - 0x7F)
= rotary switch value
= 1 MBaud
128
(0x80)
From EEPROM
129 - 255
(0x81 - 0xFF)
= rotary switch value
minus 128
From EEPROM
Note:
The rotary switches must be set to the desired value before the control is switched on
since this value is only read in when the control is restarted.
The rotary switches can be used to set a two-digit hexadecimal number (0x00 to
0xFF):
•
Right rotary switch: 1's place (e.g. 0x0
F
)
•
Left rotary switch: 16's place (e.g. 0x
F
0)
Example 1:
If the left rotary switch is set to 2 and the right rotary switch is set to 1 (0x
21
), this
yields a decimal value of 33 (= 2*16 + 1*1).
In this case, the node ID is set to 33 on the hardware. The baud rate is set to 1
MBaud.
Example 2:
If the left rotary switch is set to 8 and the right rotary switch is set to 0 (0x
80
), this
yields a decimal value of 128 (= 8*16 + 0*1).
In this case, the node ID and baud rate are read out of the EEPROM.