Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 437 -
------------------------------------------------------------------------------
1.50 Write parameter. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_wrparam
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_wrparam( int length, struct iodbpsd *buf ) ;
struct iodbpsd {
int datano ; /* Parameter number. */
int type ; /* Axis number. */
union {
char cdata ; /* Bit/Byte parameter. */
int idata ; /* Word parameter. */
long ldata ; /* 2-Word parameter. */
char cdatas[N] ; /* Bit/Byte axis parameter. */
int idatas[N] ; /* Word axis parameter. */
long ldatas[N] ; /* 2-Word axis parameter. */
} u ; /* N is the amount of controlled*/
} ; /* axes. */
[Arguments]
length Data block length ( =4+(byte size of the parameter)*
(amount of axes to be read) )
buf Buffer in which the parameter is stored.
[Return]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect parameter number "datano".
4 Incorrect axis number "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.