Communication settings
Slave address, baud rate and parity are dependent on the position of the S1 and S2 rotary switches and, if applicable, on objects 2028h, 202Ah, 202Dh.
Configuration | Object | Value range | Factory settings |
---|---|---|---|
Slave address | 2028h | 1 to 247 | 5 |
Baud rate | 202Ah | 7200 to 256000 | 19200 |
Parity | 202Dh |
|
0x04 (Even) |
- No parity: 2 stop bits
- "Even" or "Odd" parity: 1 stop bit
The following baud rates are supported:
- 7200
- 9600
- 14400
- 19200
- 38400
- 56000
- 57600
- 115200
- 128000
- 256000
You must save the changes by writing value "65766173h" in object 1010h:0Bh. The changes are not taken over until after the controller has been restarted.
Rotary switch
The N5 is equipped with two hex coding switches – similar to that shown in the following figure.
You can set the source for the slave address, the baud rate and the parity using the combination of numbers from both rotary switches.
The following applies here: the combination of numbers is formed using rotary switches S1 and S2, where S1 represents the higher-value byte and S2 the lower-value byte
Example |
|
Switch S1 is set to the value "0h", switch S2 to the value "Fh"; the result is the value "0Fh"="16d". | |
Switch S1 is set to the value "Ah", switch S2 to the value "1h"; the result is the value "A1h"="161d". |
Number combinations of the rotary switches | Slave address | Baud rate and parity | |
---|---|---|---|
dec | hex | ||
0 | 0 | Object 2028h | Object 202Ah or 202Dh |
1-247 | 1-F7 | Number of the rotary switches | Object 202Ah or 202Dh |
248-255 | F8-FF | 5 | 19200, even Parity |