- General
- Supported baud rates
- Definition of states
- Supported port definitions
Port selection
Open port
Close port
Transmit
Receive
You can find an example about the RS232 Communication on Q.station in the category Examples and Projects.
Supported baud rates
The listed baud rates are supported by the function module. Whether the respective baud rate can really be used depends on the device.
BAUD_50
BAUD_75
BAUD_110
BAUD_134
BAUD_150
BAUD_200
BAUD_300
BAUD_600
BAUD_1200
BAUD_1800
BAUD_2400
BAUD_4800
BAUD_9600
BAUD_19200
BAUD_38400
BAUD_57600
BAUD_115200
BAUD_230400
BAUD_460800
Definition of states
Value | Description |
---|---|
0 | No errors or messages |
1 | There was an invalid port number entered |
2 | The port is already open |
3 | The port is not open |
4 | Open the port has failed |
5 | The memory for a reception text could not be provided |
6 | The reading has failed |
7 | Reserved |
8 | Reserved |
9 | The received sequence is too long (buffer overflow) |
10 | The expected SOT sequence was not detected |
11 | The expected EOT sequence was not detected |
12 | The number of bytes received is too low (SOT + Data + EOT) |
13 | The baud rate could not be set |
14 | The character size could not be set |
15 | The parity could not be set |
16 | The number of stop bits could not be set |
17 | The option for flow control could not be set |
18 | Reserved |
19 | The transmit memory is too low |
Supported port definitions
Permissible port indexes can be indicated over the port converter block or will directly specified. For direct typing the following definitions can be used:
Port | Portindex | Description |
---|---|---|
USB1 | 100 | Direct on USB connector 1 |
USB1-P1 | 101 | Port 1 on USB Hub on USB connector 1 |
USB1-P2 | 102 | Port 2 on USB Hub on USB connector 1 |
USB1-P3 | 103 | Port 3 on USB Hub on USB connector 1 |
USB1-P4 | 104 | Port 4 on USB Hub on USB connector 1 |
USB1-P5 | 105 | Port 5 on USB Hub on USB connector 1 |
USB2 | 200 | Direct on USB connector 2 |
USB2-P1 | 201 | Port 1 on USB Hub on USB connector 2 |
USB2-P2 | 202 | Port 2 on USB Hub on USB connector 2 |
USB2-P3 | 203 | Port 3 on USB Hub on USB connector 2 |
USB2-P4 | 204 | Port 4 on USB Hub on USB connector 2 |
USB2-P5 | 205 | Port 5 on USB Hub on USB connector 2 |
USB3 | 300 | Direct on USB connector 3 |
USB3-P1 | 301 | Port 1 on USB Hub on USB connector 3 |
USB3-P2 | 302 | Port 2 on USB Hub on USB connector 3 |
USB3-P3 | 303 | Port 3 on USB Hub on USB connector 3 |
USB3-P4 | 304 | Port 4 on USB Hub on USB connector 3 |
USB3-P5 | 305 | Port 5 on USB Hub on USB connector 3 |
USB4 | 400 | Direct on USB connector 4 |
USB4-P1 | 401 | Port 1 on USB Hub on USB connector 4 |
USB4-P2 | 402 | Port 2 on USB Hub on USB connector 4 |
USB4-P3 | 403 | Port 3 on USB Hub on USB connector 4 |
USB4-P4 | 404 | Port 4 on USB Hub on USB connector 4 |
USB4-P5 | 405 | Port 5 on USB Hub on USB connector 4 |
USB5 | 500 | Direct on USB connector 5 |
USB5-P1 | 501 | Port 1 on USB Hub on USB connector 5 |
USB5-P2 | 502 | Port 2 on USB Hub on USB connector 5 |
USB5-P3 | 503 | Port 3 on USB Hub on USB connector 5 |
USB5-P4 | 504 | Port 4 on USB Hub on USB connector 5 |
USB5-P5 | 505 | Port 5 on USB Hub on USB connector 5 |