5. CONFIGURATION
Data type Options Description
CTS_INTERRUPT_
NOT_ALLOWED
The interruption by the CTS sig-
nal can’t be enabled in case
the handshake is different from
RS232_MANUAL or in case the
serial port doesn’t have the respec-
tive pin.
DSR_INTERRUPT_
NOT_ALLOWED
The interruption by the DSR signal
can’t be enabled in case the serial
port doesn’t have the respective pin.
(Nexto CPUs don’t have this signal
in local ports)
NOT_CONFIGURED
The function block can’t be used
before the serial port configuration.
INTERNAL_ERROR
Indicates that an internal problem
has ocurred in the serial port.
STOPBITS_1 List all Stop Bits possibilities.
SERIAL_STOPBITS STOPBITS_2
STOPBITS_1_5
Table 170: Serial Function Blocks Data types
5.12.1.1. SERIAL_CFG
This function block is used to configure and initialize the desired serial port. After the block is called, every RX and TX
queue associated to the serial ports and the RX and TX FIFO are restarted.
Figure 139: Serial Configuration Block
Input parameters Type Description
REQUEST BOOL
This variable, when true, enables the func-
tion block use.
PORT SERIAL_PORT
Select the serial port, as described in the
SERIAL_PORT data type.
PARAMETERS SERIAL_PARAMETERS
This structure defines the serial port con-
figuration parameters, as described in the
SERIAL_PARAMETERS data type.
Table 171: SERIAL_CFG Input Parameters
235