Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 828 -
------------------------------------------------------------------------------
2. Close communication line. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fca_bye
[Syntax]
#include <bios.h>
int fca_bye( int channel ) ;
[Argument]
channel Channel number. ( = 1, 2 )
[Return]
Returns zero if successful. If any error, returns non-zero value.
[Description]
This function releases the serial port which has been put in the FCA
mode by the fca_setparam() function. Signals "RS" and "ER" of the
port is set "OFF".
Call this function in the following cases.
1) When disconnecting FCA devices from the port.
2) When it become unable to recover FCA devices from error
state.
3) When you use Serial Library, rs_xxx.
[Example]
Refer to the example in "Read binary data from the file.(fca_read)".