Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 418 -
[Return]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect offset number "s_number" or "e_number".
(This return code is returned in case that any value
except 1,..,(maximum number of offset) was specified in offset
number "s_number" or "e_number".
4 Incorrect offset type "type".
6 There are no additional tool offset options required for the
specified offset number to be read. (See "Read tool offset
amount(cnc_rdtofs)" for details.)
-1 It has been failed to read tool offset amount because
the other application program has already started writing
tool offset amount.
[Description]
Reads the tool offset amount stored in the CNC within the specified
range.
Specify the start offset number in "s_number" and the end one in
"e_number". Specify the kind of offset amount to be read in "type".
The combinations of the value specified in "type", the data block
length "length", the kind of offset amount to be read and the member
where the result is stored in are as follows.
Machining Series/Tool offset Memory A
type length Attribute Offset type Member to be stored in
-------+-------+---------------+-----------------------+----------------------
0 6+4*N individual Tool offset buf.u.m_ofs[i]
-------+-------+---------------+-----------------------+----------------------
-1 6+4*N all Tool offset buf.u.m_ofs_a[i]
Machining Series/Tool offset Memory B
type length Attribute Offset type Member to be stored in
-------+-------+---------------+-----------------------+----------------------
0 6+4*N individual Tool geometry offset buf.u.m_ofs[i]
1 6+4*N individual Tool wear offset buf.u.m_ofs[i]
-------+-------+---------------+-----------------------+----------------------
-2 6+8*N all Tool geometry offset buf.u.m_ofs_b[8*i+0]
Tool wear offset buf.u.m_ofs_b[8*i+4]
Machining Series/Tool offset Memory C
type length Attribute Offset type Member to be stored in
-------+-------+---------------+-----------------------+----------------------
0 6+4*N individual Tool length/geometry buf.u.m_ofs[i]
1 6+4*N individual Tool length/wear buf.u.m_ofs[i]
2 6+4*N individual Cutter radius/geometry buf.u.m_ofs[i]
3 6+4*N individual Cutter radius/wear buf.u.m_ofs[i]
-------+-------+---------------+-----------------------+----------------------
-3 6+16*N all Tool length/geometry buf.u.m_ofs_c[16*i+0]
Tool length/wear buf.u.m_ofs_c[16*i+4]
Cutter radius/geometry buf.u.m_ofs_c[16*i+8]
Cutter radius/wear buf.u.m_ofs_c[16*i+12]