Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 782 -
------------------------------------------------------------------------------
6. Put block of data into transmit buffer <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
rs_write
[Syntax]
#include <bios.h>
int rs_write ( char *buffer, int size, int channel ) ;
[Argument]
buffer output data storage area
size output data size
channel channel number ( = 1, 2 )
[Return]
Returns the size of the data output to the transmit buffer if
successful. If free space of the transmit buffer is smaller than the
specified data size, returned value will be smaller than the specified
data size. Returns "-1" if any error. The error comes from the
transmit buffer and has nothing to do with the state of communication
interface.
[Description]
Gets specified bytes of data from the specified buffer area and puts
them into the transmit buffer of the specified channel
This function outputs data to the transmit buffer. To know if the data
is actually transmitted, read the status of the transmit buffer by
rs_buffer() function and check the vacancy of the buffer.