Skip to main content
Skip table of contents

CDRFLEx.flange_serial_open

Features

This is a function for open flange serial transfer port in the robot controller.

This command is not available in the new flange version (v2).

Parameter

Parameter Name

Data Type

Default Value

Description

Baudrate

Int

115200

Baudrate

2400, 4800, 9600, 19200, 38400, 57600, 115200 etc

Bytesize

enum.BYTE_SIZE

BYTE_SIZE_EIGHTBITS

Refer to the Definition of Constant and Enumeration Type

Parity

enum.PARITY_CHECK

PARITY_CHECK_NONE

Refer to the Definition of Constant and Enumeration Type

stopbits

enum.STOP_BITS

STOPBITS_ONE

Refer to the Definition of Constant and Enumeration Type

Return

Value

Description

0

Error

1

Success

Example

CPP
Drfl.flange_serial_open(115200);
Drfl.flange_serial_write(8, "test1234");
LPFLANGE_SER_RXD_INFO temp = Drfl.flange_serial_read(4.5);
cout << "serial read : " << temp->_cRxd << endl;
cout << "serial cnt : " << (int)temp->_iSize << endl;
Drfl.flange_serial_close();

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.