Please enable JavaScript to view this site.

Questa funzione è usata per definire le modalità di lavoro dei dispositivi seriali.

Syntax

i32 ser_mod (i32 nSer, i32 mod)

nSer

Serial channel number (1, 2, 3, 4)

mod

Represents the chosen working mode for the serial channel:

Value

Mode

0

Robox protocol (DLE BCC) - with handshake (DTR-DSR) if supported by hardware

1

Pure serial communication - with handshake (DTR-DSR)

2

DLE-ASCII communication - without interlocks

12

RS485

17

Pure serial communication - without handshake

18

LFASCII communication - without handshake

Result

Returns:

Value

Meaning

<> 0

The port has been configured correctly

0

Otherwise

Validity

Rule, Task

Note

From RTE 34.22.01 if the Robox device serial does not have DTR and DSR, their handling is excluded (e.g., on SER2 of RP2)

 

  

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