
------------------------------------------------------------------------------
1.21 Read actual feed rate of controlled axes. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
cnc_actf
[Syntax]
#include <data.h>
#include <fwindow.h>
short cnc_actf( struct odbact *buf ) ;
struct odbact {
short dummy[2] ; /* Not used. */
long data ; /* Actual feed rate (F). */
} ;
[Arguments]
buf Buffer in which the actual feed rate (F) is stored.
[Return]
EW_OK( 0) Successful.
EW_BUSY(-1) It was impossible to read the actual feed rate of a
controlled axis because the CNC was updating that actual
feed rate.
[Description]
Reads the actual feed rate of the controlled axes of CNC.
This actual feed rate is a composite feed rate. Therefore, in case
that only basic axes, such as X, Y, or Z-axis, are being moved, the
accurate feed rate can be read. But if any additional axes to the
basic axes, such as the rotary 4th axis or the parallel axes, are
being moved, the actual feed rate to be read is the composite one of
all moving axes is read.
This function is used for display the actual feed rate of the
controlled axes of CNC by the application program, etc.
The actual feed rate data is stored in "buf.data" with unsigned binary
format. The unit of the actual feed rate is as follows.
mm input 1 [mm/min]
inch input 0.01 [inch/min]
Even when a lathe is rotating in the feed-per-revolution mode, movement
is measured in "per-minute" units.