Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 439 -
The paramter stored in the CNC is changed immediately by execution of
this function. But changed parameter value is not noticed to the
automatic operation procedure of CNC while automatic operattion is
being executed (i.e., while STL signal is "1"). The automatic
operation procedure of CNC uses its own keeping setting value to
execute the automatci operations. This is for safety machine
operations. The chaned parater value is noticed to the automatic
operation procedure just after stopping automatic operation (STL
signal become "0"). For example, even if the feed rate setting is
changed during automatic operation, the axis moves at the previous
setting rate. After once the automatic operation is terminated by
reset operation, then started again, the axis moves at the newly
changed rate.
[Example]
The following program alters the setting data of stroke limit check
for the specified axis.
#include <data.h>
#include <fwindow.h>
/* axis is axis index. */
/* plus and minus are plus and minus position of stroke limit. */
int example( int axis, logn plus, long minus )
{
struct iodbpsd buf ;
int ret ;
buf.datano = 1320 ;
buf.type = axis ;
buf.u.ldata = plus ;
ret = cnc_wrparam( 4+4*1, &buf ) ;
if ( ret ) return ( ret ) ;
buf.datano = 1321 ;
buf.type = axis ;
buf.u.ldata = minus ;
ret = cnc_wrparam( 4+4*1, &buf ) ;
return ( ret ) ;
}