5. CONFIGURATION
Config.PARAMETERS := Parameters;
//FUNCTION:
Config();
//OUTPUTS:
Config.DONE;
Config.EXEC;
Config.ERROR;
Status := Config.STATUS; //If it is necessary to treat the error.
5.12.1.2. SERIAL_GET_CFG
The function block is used to capture the desired serial port configuration.
Figure 140: Block to Capture the Serial Configuration
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.
Table 173: SERIAL_GET_CFG Input Parameters
Output parameters Type Description
DONE BOOL
This variable is true when the block is com-
pletely executed. It is false otherwise.
EXEC BOOL
This variable is true while the block is be-
ing executed. It is false otherwise.
ERROR BOOL
This variable is true when the block con-
cludes the execution with an error. It is
false otherwise. It is connected to the vari-
able DONE, as its status is showed after the
block conclusion.
237