4. Configuration
194
data are being overwritten. Returns to
zero when it reaches the maximum
value (65535).
Sum the last 5 error counters (frame,
parity, interruption, RX FIFO overrun,
RX queue overrun).
Number of characters in the RX queue.
List of critic error codes that can be returned by the serial function block.
Each block returns specific errors, which will be described below:
Return the parameters with invalid
values or out of range:
- SERIAL_PORT
- BAUDRATE
- DATA_BITS
- PARITY
- STOP_BITS
- HANDSHAKE
- UART_RX_THRESHOLD
- TX_BUFF_LENGTH
- HANDSHAKE_METHOD
- RX_BUFF_LENGTH
Indicates the serial port is being used
by another instance.
Hardware error detected in the UART.
Hardware error at communicating with
the remote serial port.
Time-out while waiting for the CTS
enabling, in the RS-232 RTS/CTS
handshake, in the SERIAL_TX block.
Time-out while waiting for the CTS
disabling, in the RS-232 RTS/CTS
handshake, in the SERIAL_TX block.
Time-out while waiting for the
transmission ending in the SERIAL_TX
block.
Time-out while waiting for all
characters in the SERIAL_RX block or
the SERIAL_RX_EXTENDED block.
The SET_CTRL block can’t be used in
case the handshake is different from
R232_MANUAL.
The GET_CTRL block can’t be used in
case the handshake is different from
R232_MANUAL.
The SERIAL_RX isn’t available for the
RX queue, extended mode.
FB_SERIAL_RX_EXTENDE
D_NOT_ALLOWED
The SERIAL_RX isn’t available for the
RX queue, normal mode.
DCD_INTERRUPT_NOT_A
LLOWED
The interruption by the DCD signal
can’t be enabled in case the serial port
doesn’t have the respective pin.
CTS_INTERRUPT_NOT_A
LLOWED
The interruption by the CTS signal
can’t be enabled in case the
handshake is different from
R232_MANUAL or in case the serial
port doesn’t have the respective pin.
DSR_INTERRUPT_NOT_A
LLOWED
The interruption by the DSR signal
can’t be enabled in case the serial port
doesn’t have the respective pin.
The function block can’t be used before
the serial port configuration.
List all stop-bits possibilities.