1.33 1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
1.33 1.32 1.31 1.30 1.29 1.28 1.20 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

CDRFLEx.flange_serial_close

Features

This is a function for close 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

nPort

int

-

Port index
0 = x1,
1 = x2

Return

Value

Description

0

Error

1

Success

Example

C++
Drfl.flange_serial_open(115200,0);
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(0);