Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 429 -
[Description]
Reads the work origin offset amount stored in the CNC within the
specified range.
The work origin offset amounts are provided for all controlled axes
(the 1st axis,..,the 8th axis) of the CNC. It is possible to read
one offset amount for each axis or the whole for all axes at the same
time. However, in case of no controlled axes expansion option, the
work origin offset amounts for the additional axes can't be read.
Specify one of (1,..,amount of controlled axes) for each axis or -1
for all axes as axis number in "axis".
Specify one of following value as start/end offset number in
"s_number"/"e_number".
number Kind of work origin offset amount
---------------+--------------------------------------------
0 External work origin offset amount
1,..,6 Work origin offset amount of G54 through G59
7,..,306 Work origin offset amount of G54.1P1 through
G54.1P300
The work origin offset amount is stored in "buf.data" with signed
binary format. (The negative value is represented as 2's complement.)
The storing order is as follows.
Reading for one axis
Member Work origin offset
-----------------------+--------------------------------
buf.data[0] Start number
buf.data[1] Start number+1
: :
buf.data[M-1] End number
Reading for all axes
Member Work origin offset
-----------------------+--------------------------------
buf.data[0] The 1st axis of start number
: :
buf.data[N-1] The Nth axis of start number
: :
buf.data[7] The 8th axis of start number
buf.data[8] The 1st axis of (start number+1)
: :
buf.data[N+7] The Nth axis of (start number+1)
: :
buf.data[15] The 8th axis of (start number+1)
: :
buf.data[8*(M-1)] The 1st axis of end number
: :
buf.data[8*M+N-9] The Nth axis of end number
: :
buf.data[8*M-1] The 8th axis of end number