Imposes the characteristic parameters of the specified serial communication channel.
Syntax |
ser_con (i32 n, i32 baud, i32 parity, i32 bit, i32 stop) |
n |
Serial channel number (1, 2, 3, 4) |
baud |
Baud rate value, to be chosen from the following: 110 - 150 - 300 - 600 - 1200 - 2400 - 4800 - 9600 - 19200 - 38400 - 57600 - 115200. Note: Since RTE 34.22.01, management has also been added for the following baud rates: 128000 - 256000 - 512000 - 1000000 - 2000000. |
parity |
Parity type, to be chosen from the following: •E (even parity) •O (odd parity) •N (no parity bit) |
bit |
Number of word bits (allowable value: 7, 8) |
stop |
Number of stop bits, to be chosen from the values 1 and 2 |
Validity |
Rule, Task |
Note |
From RTE 34.36.1, serial communication parameters can also be imposed on ports communicating with BCC3 protocol |
Example of use:
|