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 #214 background imageLoading...
Page #214 background image
4. Configuration
206
SERIAL_TX
This function block is used to transmit a data buffer through serial port and it is only finalized after
all bytes were transmitted or after time-out (generating errors).
Figure 4-101. Block for Values Transmission by the Serial
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.
TX_BUFFER_POINTER
POINTER TO BYTE
Pointer of a byte array to transmit the buffer
values.
TX_BUFFER_LENGTH
UINT
Specify the expected character number in
the byte array to be transmitted (TX queue
maximum size is 1024 characters).
TX_TIME-OUT
UINT
Specify the time-out to complete the
transmission including the handshake
phase. The specified value, in ms, must be
positive and different than zero.
DELAY_BEFORE_TX
UINT
Specified the delay, in ms, between the
function block call and the transmission
beginning. This variable can be used in
communications with some modems.
CLEAR_RX_BEFORE_TX
BOOL
When true, the RX queue and the UART
FIFO RX are erased before the transmission
beginning. This behavior is typical in half-
duplex master/slave protocols.
Table 4-145. SERIAL_RX 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
- ILLEGAL_TX_BUFF_LENGTH
- CTS_TIME-OUT_ON
- CTS_TIME-OUT_OFF
- TX_TIME-OUT_ERROR
- NOT_CONFIGURED
TX_TRANSMITTED
UINT
Returns the transmitted byte number which must be
equal to TX_BUFFER_LENGTH, but can be smaller in

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