Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 2 -
INTRODUCTION ......................................................................................................................................18
1. O
VERVIEW
.............................................................................................................................................19
1.1 Feature............................................................................................................................................ 20
2. S
YSTEM COMPONENTS
...........................................................................................................................22
2.1 C Executor ......................................................................................................................................22
2.2 C library.......................................................................................................................................... 23
2.3 Application program.......................................................................................................................24
2.4 The hardwares of CNC which are used in C Executor ...................................................................27
3. A
PPLICATION PROGRAM DEVELOPMENT ENVIRONMENT
.......................................................................32
3.1 Composition of development system ............................................................................................... 32
3.2 Development procedure..................................................................................................................35
4. C
LANGUAGE LIBRARY FUNCTION LIST
..................................................................................................37
4.1 ANSI C language standard library .................................................................................................37
4.2 MS-C extended C language standard library ................................................................................. 40
4.3 Graphic library............................................................................................................................... 42
4.4 CNC/PMC window library..............................................................................................................43
4.5 Other libraries ................................................................................................................................ 47
PROGRAMMING MANUAL ...................................................................................................................51
REQUIRED SOFTWARE FOR APPLICATION DEVELOPMENT................................................... 56
1. LIST OF FUNCTIONS ..........................................................................................................................58
1.1 ANSI S
TANDARD
C
LIBRARY
..............................................................................................................58
1.2 MS-C
EXTENDED
C
STANDARD LIBRARY
............................................................................................62
1.3 G
RAPHIC LIBRARY
...............................................................................................................................66
1.4 CNC/PMC
WINDOW LIBRARY
.............................................................................................................68
1.5 O
THER LIBRARIES
................................................................................................................................72
2. HOW TO MAKE APPLICATION PROGRAM .................................................................................79
2.1 O
UTLINE
..............................................................................................................................................79
2.2 D
EFINITION OF STATIC VARIABLES
......................................................................................................82
2.3 E
NVIRONMENT VARIABLES
..................................................................................................................83
2.4 S
PECIAL FILES
......................................................................................................................................83
2.5 MAKEFILE ........................................................................................................................................ 84
2.6 R
EMARKS
............................................................................................................................................88
2.7 H
OW TO USE THE USER LIBRARIES
.......................................................................................................88
2.8 S
YSTEM ALARM SCREEN
......................................................................................................................91
2.9 S
UPPLEMENT ABOUT SEGMENTS
........................................................................................................102
2.10 H
OW TO INCREASE THE GLOBAL HEAP SIZE FOR THE APPLICATION
.
................................................105
3.1 ANSI C STANDARD LIBRARY.......................................................................................................107
L
ISTS OF
F
UNCTIONS
...............................................................................................................................107
1. Diagnostics ( assert.h ) ................................................................................................................... 107
2. Character handling ( ctype.h )........................................................................................................ 107
3. Mathematics ( math.h ) ...................................................................................................................108
4. Non-local jumps ( setjmp.h )........................................................................................................... 108
5. Variable arguments ( stdarg.h )......................................................................................................108
6. Input/output ( stdio.h ) ....................................................................................................................109
7. General utilities ( stdlib.h ).............................................................................................................110
8. String handling ( string.h ).............................................................................................................. 110
9. Date and time ( time.h ) ..................................................................................................................111
F
UNCTION
R
EFERENCE
............................................................................................................................112
1. D
IAGNOSTICS
(
ASSERT
.
H
) ..................................................................................................................112