Register description
The KS2000 configuration software can be used to change the settings of the CANopen coupler. This is possible from firmware version C6 of the Bus Coupler. The KS2000 configuration software shows the current firmware version of your Bus Coupler.
Register write protection In order to be able to change the settings, you first have to deactivate the register write protection via the KS2000 configuration software. |
Meaning of the entries in table 100
Table 100, offset | Description | Default (BK5150) |
---|---|---|
000 | baud rate at DIP switches 7,8 "00" | 0 (see table 2 -> 1 M/Auto) |
001 | baud rate at DIP switches 7,8 "10" | 2 (see table 2 -> 500 k) |
002 | baud rate at DIP switches 7,8 "01" | 4 (see table 2 -> 250 k) |
003 | baud rate at DIP switches 7,8 "11" | 5 (see table 2 -> 125 k) |
004 | reserved | 0x8809 |
005 | Mode | 0x0001 |
006 | reserved | reserved |
007 | reserved | reserved |
008 | reserved | reserved |
009 | Setting a fixed node ID; DIP switches 1 to 6 are disabled | 0 |
010 | Setting a fixed baud rate; DIP switches 7 and 8 are disabled | 0 |
011-018 | baud rate at DIP switches 7,8 "00" | reserved |
value in register 5 | Mode |
---|---|
Bit 0 | "TRUE" auto-baud switched on |
Bit 8 | The node ID can be set up to 127 (DIP 8 for baud rate, DIP 0-7 for node ID) |
Bit 15 | The coupler automatically switches to operational mode (only with fixed baud rate) |
Setting a fixed baud rate, based on the BK5120 as a sample
A fixed baud rate can be stored in register 10 of table 100. Valid values are 0 to 3. The baud rate specified in register 0, 1, 2 or 3 is then used.
Sample for 50 kBaud
- Disable the write protection.
- Open table 100.
- Write 0x0007 in offset 0 (see table 2).
- Write 0x8000 in offset 10.
- Restart the coupler.
The fixed baud rate of 50 kbaud is now set.
Note | |
Setting the MSB disables DIP switches 7 and 8 The DIP switches 7 and 8 no longer have a function if the MSB is set (MSB stands for most significant bit. For a word like register 10: hexadecimal 0x8000 or binary 2x1000_0000). |
Deactivation of auto baud detection for IPxxxx-B510 and IL23xx-B510 For BK515x, IPxxxx-B510 and IL23xx-B510 bit 0 from register 5, table 100 must be set to „FALSE“; deactivation of auto baud detection. |
permissible baud rates (table 2)
value in register 10 |
Baudrate |
---|---|
0x0000 |
1 MBaud/Auto |
0x0001 |
800 kbaud |
0x0002 |
500 kbaud |
0x0003 |
400 kbaud |
0x0004 |
250 kbaud |
0x0005 |
125 kbaud |
0x0006 |
100 kbaud |
0x0007 |
50 kbaud |
0x0008 |
20 kbaud |
0x0009 |
10 kbaud |
0x8xxx |
Set baud rate active |
0x0xxx |
DIP switch active |
Setting a fixed node ID
A fixed node ID can be stored in register 9 of table 100. Valid values are 1 to 63.
Note | |
Setting the MSB disables DIP switches 1 to 6 The DIP switches 1 to 6 no longer have a function if the MSB is set (MSB stands for most significant bit. For a word like register 9: hexadecimal 0x8000 or binary 2x1000_0000). |