Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 564 -
* Executing NC program.
O1234 ;
N10 G0 X10. Y20. Z30. ; <-- This function is called when
N20 G0 X20. Y30. Z40. ; this block is being executed.
N30 G0 X30. Y40. Z50. ;
N40 G0 X40. Y50. Z60. ;
M30 ;
%
* String to be read.
"N10G0X10.Y20.Z30.\n"
"N20G0X20.Y30.Z40.\n"
"N30G0X30.Y40.Z50.\n"
"N40G0X40.Y50.Z60.\n"
"M30\n"
"%"
In this case, 77 is returned in "length". Also 2 is returned in
"blknum" during continuous operation.
If buffer size is too small, the next string is got.
* String to be read by this function (length=40).
"N10G0X10.Y20.Z30.\n"
"N20G0X20.Y30.Z40.\n"
"N30"
In this case, 39 is returned in "length".
In case that M-code by which the prgram is rewinded to the top such as
M02 or M30 is programmed in the tail of the NC program, the following
string is returned while the block of M-code is being executed.
"M30\n" <- Executing the last M-code.
"O1234\n" <- Leading part of the program.
"...."
This is caused by the process of CNC. The CNC software rewinds the
program when the NC program is read by this function.
This function reads the contents of executing program only when the
operating mode of CNC is "MEM" or "MDI". When the other mode,
"length=0" and "blknum=0" are returned.
This function is available for only FS16/18 Model C or later.