EasyManuals Logo

ALTUS Nexto NX3004 User Manual

ALTUS Nexto NX3004
388 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #206 background imageLoading...
Page #206 background image
4. Configuration
198
Input parameters
Type
Description
REQUEST
BOOL
This variable, when true, enables the function
block use.
PORT
SERIAL_PORT
Select the serial port, as described in the
SERIAL_PORT data type.
Table 4-133. SERIAL_GET_CTRL Input Parameters
Output parameters
Type
Description
DONE
BOOL
This variable is true when the block is
completely executed. It is false otherwise.
EXEC
BOOL
This variable is true while the block is being
executed. It is false otherwise.
ERROR
BOOL
This variable is true when the block concludes
the execution with an error. It is false otherwise.
It is connected to the variable DONE, as its
status is showed after the block conclusion.
STATUS
SERIAL_STATUS
In case the ERROR variable is true, the
STATUS structure will show the error found
during the block execution. The possible states,
already described in the SERIAL_STATUS data
type, are:
- NO_ERROR
- ILLEGAL_SERIAL_PORT
- PORT_BUSY
- HW_ERROR_UART
- HW_ERROR_REMOTE
- FB_GET_CTRL_NOT_ALLOWED
- NOT_CONFIGURED
CTS_VALUE
BOOL
Value read in the CTS control signal.
DSR_VALUE
BOOL
Value read in the DSR control signal.
DCD_VALUE
BOOL
Value read in the DCD control signal.
Table 4-134. SERIAL_GET_CTRL Output Parameters
Utilization example in ST language, after the library is inserted in the project and the serial port
configured:
PROGRAM MainPrg
VAR
Get_Control: SERIAL_GET_CTRL;
Port: SERIAL_PORT := COM1;
Status: SERIAL_STATUS;
END_VAR
//INPUTS:
Get_Control.REQUEST := TRUE;
Get_Control.PORT := Port;
//FUNCTION:
Get_Control();
//OUTPUTS:
Get_Control.DONE;
Get_Control.EXEC;
Get_Control.ERROR;
Status := Get_Control.STATUS; // If it’s necessary to treat the error.
Get_Control.CTS_VALUE;
Get_Control.DSR_VALUE;
Get_Control.DCD_VALUE;

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ALTUS Nexto NX3004 and is the answer not in the manual?

ALTUS Nexto NX3004 Specifications

General IconGeneral
BrandALTUS
ModelNexto NX3004
CategoryProcessor
LanguageEnglish