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 #207 background imageLoading...
Page #207 background image
4. Configuration
199
SERIAL_GET_RX_QUEUE_STATUS
This block is used to read some status information regarding the RX queue, specially developed for
the normal mode, but it can also be used in the extended mode.
Figure 4-96. Block Used to Visualize the RX Queue Status
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-135. SERIAL_GET_RX_QUEUE_STATUS 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
- NOT_CONFIGURED
RXQ_STATUS
SERIAL_RX_QUEUE_
STATUS
Returns the RX queue status/error, as
described in the
SERIAL_RX_QUEUE_STATUS data type.
Table 4-136. SERIAL_GET_RX_QUEUE_STATUS Output Parameters
Utilization example in ST language, after the library is inserted in the project and the serial port
configured:
PROGRAM MainPrg
VAR
Get_Status: SERIAL_GET_RX_QUEUE_STATUS;
Port: SERIAL_PORT := COM1;
Status: SERIAL_STATUS;
Status_RX: SERIAL_RX_QUEUE_STATUS;
END_VAR
//INPUTS:
Get_Status.REQUEST := TRUE;
Get_Status.PORT := Port;
//FUNCTION:
Get_Status();
//OUTPUTS:
Get_Status.DONE;

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