Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 445 -
------------------------------------------------------------------------------
1.52 Write parameters (multiple output). <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrparas
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrparas( int length, struct iodbpsdr *buf ) ;
struct iodbpsdr {
int datano ; /* Parameter number. */
int type ; /* Upper byte: Parameter type, */
/* Lower byte: Axis type. */
union {
char cdata ; /* Bit/Byte parameter. */
int idata ; /* Word parameter. */
long ldata ; /* 2-Word parameter. */
char cdatas[8] ; /* Bit/Byte axis parameter. */
int idatas[8] ; /* Word axis parameter. */
long ldatas[8] ; /* 2-Word axis parameter. */
} u ;
} ;
[Arguments]
length Data block length ( = Sum of [4+(byte size of the
parameter)*(amount of axes to be read)] )
buf Buffer in which the parameters are stored.
[Return]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect parameter number "buf.datano".
4 Incorrect axis number "buf.type".
Any data other than -1, 0 or (1,..,amount of controlled axes)
has been specified.
6 There are no additional options required for the specified
parameter number to be read. (For example, pitch error
compensation.)
-1 Attempted to execute this function while the other low-speed
window function is being executed.
Retry after completing currently executed window's process.