5. CONFIGURATION
Data type Options Description
List of critic error codes that can be returned by the serial func-
tion block. Each block returns specific errors, which will be de-
scribed below:
NO_ERROR No errors.
ILLEGAL_*
Return the parameters with invalid
values or out of range:
- SERIAL_PORT
- SERIAL_MODE
- BAUDRATE
- DATA_BITS
- PARITY
- STOP_BITS
- HANDSHAKE
- UART_RX_THRESHOLD
- TIMEOUT
- TX_BUFF_LENGTH
- HANDSHAKE_METHOD
- RX_BUFF_LENGTH
PORT_BUSY
Indicates the serial port is being
used by another instance
HW_ERROR_UART
Hardware error detected in the
UART.
HW_ERROR_REMOTE
Hardware error at communicating
with the remote serial port.
CTS_TIMEOUT_ON
Time-out while waiting for the CTS
enabling, in the RS-232 RTS/CTS
handshake, in the SERIAL_TX
block.
CTS_TIMEOUT_OFF
Time-out while waiting for the CTS
disabling, in the RS-232 RTS/CTS
handshake, in the SERIAL_TX
block.
SERIAL_STATUS TX_TIMEOUT_ERROR
Time-out while waiting for the
transmission ending in the SE-
RIAL_TX.
RX_TIMEOUT_ERROR
Time-out while waiting for all char-
acters in the SERIAL_RX block
or the SERIAL_RX_EXTENDED
block.
FB_SET_CTRL_
NOT_ALLOWED
The SET_CTRL block can’t be
used in case the handshake is dif-
ferent from RS232_MANUAL.
FB_GET_CTRL_
NOT_ALLOWED
The GET_CTRL block can’t be
used in case the handshake is dif-
ferent from RS232_MANUAL.
FB_SERIAL_RX_
NOT_ALLOWED
The SERIAL_RX isn’t available for
the RX queue, extended mode.
FB_SERIAL_RX_ EX-
TENDED_NOT_ALLOWED
The SERIAL_RX_EXTENDED
isn’t available for the RX queue,
normal mode.
DCD_INTERRUPT_
NOT_ALLOWED
The interruption by the DCD signal
can’t be enabled in case the serial
port doesn’t have the respective pin.
234