Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 398 -
------------------------------------------------------------------------------
1.37 Read dynamic data. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_rddynamic
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_rddynamic( int axis, int length, struct odbdy *buf ) ;
struct odbdy {
int dummy ; /* Not used. */
int axis ; /* Axis number. */
int alarm ; /* Alarm status. */
int prgnum ; /* Program number in executing. */
int prgmnum ; /* Program number of the main prog. */
long seqnum ; /* Sequence number. */
long actf ; /* Actual feed rate. */
long acts ; /* Actual spindle speed. */
union {
struct {
long absolute[8] ; /* Absolute position */
/* data of controlled*/
/* axis. */
long machine[8] ; /* Machine position */
/* data of controlled*/
/* axis. */
long relative[8] ; /* Relative position */
/* data of controlled*/
/* axis. */
long distance[8] ; /* Amount of distance*/
/* to go of */
/* controlled axis. */
} faxis ; /* For all axes. */
struct {
long absolute ; /* Absolute position */
/* data of controlled*/
/* axis. */
long machine ; /* Machine position */
/* data of controlled*/
/* axis. */
long relative ; /* Relative position */
/* data of controlled*/
/* axis. */
long distance ; /* Amount of distance*/
/* to go of */
/* controlled axis. */
} oaxis ; /* For one axis. */
} pos ;
} ;