Please enable JavaScript to view this site.

Funzione che rende lo stato dell'ultima trasmissione fatta sul dispositivo specificato.

Syntax

i32 ser_485_tx_sts (i32 nSer)

nSer

Serial channel number

Result

Returns the status code. The meaning of the bits that make up the status code is:

Bit

Hexadecimal value

Meaning

0

0x00000001

485 transmission in progress

1

0x00000002

Transmission finished (sent last character)

2

0x00000004

Successful result - transmission finished and also received last character transmitted

3

0x00000008

Negative result - transmission aborted (cause bit 8)

4

0x00000010

Negative result - aborted transmission, receive timeout

5

0x00000020

Free

6

0x00000040

Free

7

0x00000080

Transmission/reception errors

8

0x00000100

Negative result - serial not in 485 mode (12)

9

0x00000200

Negative result - serial not manageable in 485 mode

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC