Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 81 -
#------------------------------------------------------------------------------
# .OBJ and .C dependency block.
#------------------------------------------------------------------------------
main.obj : main.c prog1.h
sub1.obj : sub1.c prog1.h
sub2.obj : sub2.c prog1.h
comm.obj : comm.c prog1.h
alarm.obj : alarm.c prog1.h
alarm.obj : alm_sub.c prog1.h
#------------------------------------------------------------------------------
# End of .OBJ and .C dependency block.
#------------------------------------------------------------------------------
(5) Modifying user application's version number in VERSION.C.
Modify the following definition sentence in version.c.
char version[] = "TEST0001" ;
Here, we assume that the application version number is "PROG-A001".
char version[] = "PROGA001" ;
(6) Modifying filename, filesize, etc. in CEXEC.O2M.
Usually, you need not modify the contents of *.o2m file except the file
size. When memory capacity error was issued in execution of omf2mem, modify
the following part of cexec.o2m.
;----------------------------------------------------------------
00A00000 *FIXED* start linear address = 00A00000
00060000 length = 0384KB <- modify this line.
;----------------------------------------------------------------
For example, you edit the line as follows to change the file size into 768KB
(=C0000H Bytes).
;----------------------------------------------------------------
00A00000 *FIXED* start linear address = 00A00000
000C0000 length = 0768KB
;----------------------------------------------------------------
(7) Executing NMAKE.
Change the working directory as the current directory, then execute nmake
command.
C:\APP\PROG1> nmake
When any compile error or link error occurs, modify the source file and
execute nmake again. The memory card file "cexec.mem", which will be stored
in the CNC unit, will be generated by completing execution of nmake.
Copy this file into the memory card, and write the application program into
F-ROM of the CNC unit according to the operating procedure of the CNC's
boot software.