Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 557 -
------------------------------------------------------------------------------
1.100 Read abnormal load torque data. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_loadtorq
[Syntax]
#include <data.h>
#include <fwindow.h>
int cnc_loadtorq( int motor, int axis, int length,
struct odbload *buf ) ;
struct odbload {
int datano ; /* Kind of motor. */
int type ; /* Axis number. */
int data[N] ; /* Abnormal load torqeu data. */
/* N is the amount of controlled */
} ; /* axes. */
[Arguments]
motor Kind of motor. ( =0, 1 )
axis Axis number ( =(1,..,amount of controlled axes), or
-1, 0 ).
length Data block length ( =4+2*(amount of axes to be read)).
buf Buffer in which the abnormal load torque data are
stored.
[Return]
0 Successful.
2 Incorrect data block length "length".
4 Incorrect axis number "axis".
Any data other than -1 or (1,..,amount of controlled axes) has
been specified.
[Description]
Read the abnormal load torque data (estimated load torque) of servo
motors or spindle motors.
Specify the kind of motor to be read in "motor".
motor Kind of motor
-------+-------------
0 Servo motor
1 Spindle motor
Specify one of (1,..,amount of controlled axes) for each axis or -1
for all axes as axis number in "axis".
For spindle motor, all axes data (-1) are data of 2 axes.