Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 88 -
2.6 Remarks
C Executor uses the different include files from the compiler's default.
So, the object files made for the personal computer debugging cannot be used
for execution on CNC. Recompile using include files for C Executor. (The
include directory is switched by the macro CC in MAKEFILE)
Do not change MAKEFILE except the place mentioned above.
Refer 55O2M.MAN to get information of memory card file conversion program
OMF2MEM.
2.7 How to use the user libraries
It is possible to make a library including the user made modules which
have been debugged. This library is linked to the user application program
by nmake command.
The user library is made by the following process.
(1) Make the object modules (*.obj) from the source modules (*.c), which have
been debugged, by compiling using MS-C. The compile options of MS-C for
making object modules must be same as ones which are specified in
makefile provided by FANUC.
(2) Make library file from object files using xlib386. For multitasking
application, individual library files are required for each tasks.
(3) Modify the makefile. Delete the object module names which have been
converted into library module from makefile. Delete both the top section,
TASK* = ???.obj
and the bottom section, the description of dependence relationship.
(4) Modify the template file of the command file for xlink386. There are 3
files which are provided by FANUC, task1.dat, task2,dat and task3.dat,
in TOOL directory. Each files are the command file template for the TASK1
(Main task), the TASK2 (Communication task) and the TASK3 (Alarm task),
For example, modify task1.dat when the new library has been made for the
Main task.