Contents Summary of Series 16/18/21 C Language Executor Programming manual
Page 1GE Fanuc Automation Europe Computer Numerical Controls C - Executer Operator's Manual B-62443EN-3/03 TECHNOLOGY AND MORE
Page 2Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------- FANUC Series 16-MODEL B FANUC Series 16-MODEL C [4] FANUC Series 18-MODEL B [4] FANUC Series 18-MODEL C [4] FANUC Series 16i-MODEL A [5] FANUC Series 18i-MODEL A [5] C Executor Specification ---------------
Page 4Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.1 Abort by assertion. ...................................................................................................... 112 2. CHARACTER HANDLING ( CTYPE.H ) ...............................................................................
Page 5Fanuc C-Executer Operating Manual B-62443EN-3/03E 6.7 Re-open a same stream. .................................................................... 159 6.8 Set a buffer for stream. ..................................................................... 160 6.9 Control
Page 7Fanuc C-Executer Operating Manual B-62443EN-3/03E 17. Convert view coordinate into physical. .......................................................................... 269 18. Get color number the pixel. ....................................................................................
Page 16Fanuc C-Executer Operating Manual B-62443EN-3/03E 2. Draw 9-inch font character string. ................................................................................... 984 FANUC ADDITIONAL GRAPHIC FUNCTIONS ............................................................................... 985
Page 17Fanuc C-Executer Operating Manual B-62443EN-3/03E List of additional functions ............................................................................................................... 1031 1. Get current path number and screen index. (for multi-path) .............................
Page 19Fanuc C-Executer Operating Manual B-62443EN-3/03E Introduction This is a description of C Executor function specification for following FANUC CNC. Applied CNC ------------------------------------------------------ MODEL Abbreviated name ------------------------------------------------------ FANUC Se
Page 20Fanuc C-Executer Operating Manual B-62443EN-3/03E 1. Overview FANUC Series 16/18/16i/18i C Executor enables to add the Machine Tool [5] Builder's original screen into FANUC Series 16 and to customize screen displaying and operation interface of CNC software. It is possible to replace arbitrary scree
Page 21Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.1 Feature (1) Low-cost customization No addtional hardware is required to use C Executor and application [4] program on FANUC Series 16/18-B/C and 16i/18i-A. (*) Many CRT/MDI devices, [5] such as 14-inch CRT with standard-keyboad, 9-inch CRT with s
Page 22Fanuc C-Executer Operating Manual B-62443EN-3/03E program can read from or write to FANUC FLOPPY CASSETTE ADAPTER and FANUC [4] HANDY FILE connected to CNC unit. [4] (*) "GRAPHIC DISPLAY" option is required to use graphic display, and "READER /PUNCHER INTERFACE CONTROL" to communication. (6) Using w
Page 23Fanuc C-Executer Operating Manual B-62443EN-3/03E 2. System components The system components that C Executor and the user application program are built in 16/18-B/C and 16i/18i-A shows below. [5] +--------------------------------+ +----+ +-------------+ | | | <- | | | User | | | CNC window | -> | |
Page 24Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.2 C library C library provides following functions. (1) Input/output between peripheral equipments (CRT and MDI key) C library executes input/output operations, which are called by the user application program, such as character displaying to scree
Page 25Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.3 Application program (1) Program organization Application program consists of three independent tasks. +- USER APPLICATION -------------------------+ | +========================================+ | | | | | | | (A)MAIN TASK | | | | | | | +==========
Page 26Fanuc C-Executer Operating Manual B-62443EN-3/03E (*1) The same file cannot be accessed by two or more tasks simulta- neously. It is necessary to control exclusively in application program. (*2) Simultaneous access with MAIN TASK causes BUSY ERROR. (*3) It is necessary to control communication port
Page 27Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Example of application program For example, the program which consists of only Main task has following structures. ++---------------++ || main function || ++-------+-------++ | +----------+----------+ | Initialization | +----------+----------+ |
Page 28Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.4 The hardwares of CNC which are used in C Executor ITEM SPECIFICATION REMARKS ======================================================================== CPU i386 compatible processor It is common with CNC software. NUMERIC DATA none (16/18-B) [4] PR
Page 30Fanuc C-Executer Operating Manual B-62443EN-3/03E ITEM SPECIFICATION REMARKS ======================================================================== 7.2-inch monochrome LCD (*3) [4] - Alphanumeric character [4] (40x16(*4) or 80x25(*2),(*5)) [4] - Kanji character [4] (20x16(*4)) [4] - 16-grayscale,
Page 31Fanuc C-Executer Operating Manual B-62443EN-3/03E ITEM SPECIFICATION REMARKS ======================================================================== 8.4-inch color LCD (*3) [5] - Alphanumeric character [5] (40x16(*4) or 80x25(*2),(*5)) [5] - Kanji character [5] (20x16(*4)) [5] - 16-color, reverse,
Page 32Fanuc C-Executer Operating Manual B-62443EN-3/03E ITEM SPECIFICATION REMARKS ======================================================================== [16/18-C, 16i/18i-A] [5] - 640x400 x1(page), or [4] 640x480 x1(page) [4] - 16 or 256-color for each [4] pixel [4] - imposed output on character [4] sc
Page 33Fanuc C-Executer Operating Manual B-62443EN-3/03E 3. Application program development environment Application program of C Executor is developed by the Machine Tool Builder. - General PC(personal computer) is used to develop (edit and compile) appli- cation program. - Only execution of application pr
Page 34Fanuc C-Executer Operating Manual B-62443EN-3/03E (*) Both DPMI and VCPI are the programming interface to use the DOS appli- [4] cation program uses the extented memory above 1MB (protected memory) on [4] i386 or higher CPU. To use DPMI or VCPI, the memory manager that [4] supports these interfaces
Page 36Fanuc C-Executer Operating Manual B-62443EN-3/03E 3.2 Development procedure The development procedure of software for C Executor is as follows. +---------------+ --+ | SPECIFICATION | | | DESIGN | | +-------+-------+ | | | +-------+-------+ | | FUNCTION | | | DESIGN | | +-------+-------+ | | | +----
Page 37Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Completing program for C Executor After module level testing on PC, you develop entire application and link with FANUC library. If any error occured in this step, you confirm usage of C language library. You use makefile which is provided from FA
Page 38Fanuc C-Executer Operating Manual B-62443EN-3/03E 4. C language library function list (Note) The floating point data functions that "" mark is added to the [4] function name are available on only 16/18-C and 16i/18i-A, not used [5] on 16/18-B. [4] 4.1 ANSI C language standard library The followin
Page 43Fanuc C-Executer Operating Manual B-62443EN-3/03E 4.3 Graphic library (1) MS-C compatible graphic functions The following MS-C graphic functions are provided. However, some detail specifications of functions may be different between PC and CNC because both hardwares are not compatible completely. _a
Page 44Fanuc C-Executer Operating Manual B-62443EN-3/03E 4.4 CNC/PMC window library The following functions which are used to input/output data between CNC /PMC are provided. (1) CNC window NAME FUCNTION -------------------------------------------------------------------------- cnc_sysinfo Read CNC system
Page 46Fanuc C-Executer Operating Manual B-62443EN-3/03E NAME FUNCTION -------------------------------------------------------------------------- cnc_toolnum Read tool life management data (tool number) cnc_rdtoolrng Read tool life management data (number,life,life counter)(range specified) cnc_rdtoolgrp R
Page 47Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Super CAP M window library [4] NAME FUNCTION [4] -------------------------------------------------------------------------- [4] capm_rdtool Read tool data file [4] capm_wrtool Write tool data file [4] capm_rdpretool Read pre-tool list [4] capm_wr
Page 48Fanuc C-Executer Operating Manual B-62443EN-3/03E 4.5 Other libraries (1) MDI operation library These funcitons are used to control key input from CNC's MDI panel. NAME FUNCTION -------------------------------------------------------------------------- aux_mdi_getmatrix Get MDI key matrix aux_mdi_pu
Page 49Fanuc C-Executer Operating Manual B-62443EN-3/03E NAME FUNCTION -------------------------------------------------------------------------- crt_getcncpalette Get color palette of CNC screen [5] win_open Open window win_close Close window win_select Select window win_activate Activate window win_move
Page 50Fanuc C-Executer Operating Manual B-62443EN-3/03E (4) Serial communication library These functions are used to communicate with peripherals via reader/ puncher interface(RS-232C). NAME FUNCTION -------------------------------------------------------------------------- rs_open Initialize communicatio
Page 51Fanuc C-Executer Operating Manual B-62443EN-3/03E (6) FCA library [4] These are the functions which communicate with FCA (FANUC CASSETTE ADAPTOR) [4] or FANUC Handy File. [4] NAME FUNCTION [4] -------------------------------------------------------------------------- [4] fca_setparam Initialize comm
Page 52Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor Programming Manual Copyright (C) FANUC LTD. 1995-1997. All rights reserved. - 51 -
Page 53Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor Description of CNC name, etc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C Executor works on the following CNC equipments. FS16-MB, FS16-MC, FS16-TB, FS16-TC, FS16-PB, FS16-PC FS18-MB, FS18-MC, FS18-TB, FS18-TC, FS18-PB, FS18-PC FS16
Page 54Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor - This is a description of C Executor for FANUC Series 16/18. - DON'T use this manual for purposes except developing application programs of FS16/18 C Executor. - Some parts of this description include Japanese KANJI cha
Page 55Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor 0. INDEX ~~~~~~~~ Filename Contents ---------------+---------------------------------------------------- 00index.man 0. INDEX 01soft.man 0.1 Required software for application development 10functn.man 1. List of Functions
Page 56Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor Update history 1995.10.3 1st edition. 1996. 2.7 2nd edition. 1997. 4.11 3rd edition. [ End of 00index.man ] - 55 -
Page 57Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor Required software for application development ================================================= The following softwares are required for development of the C Executor application program. Please purchase each package sof
Page 58Fanuc C-Executer Operating Manual B-62443EN-3/03E VCPI: Virtual Control Program Interface DPMI: DOS Protected Mode Interface Both are the interface specifications for the extended memory access by the DOS application programs. Therefore, the memory manager software for DOS must support VCPI or DPMI.
Page 59Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor 1. List of Functions ==================== (abbreviation) CExe : C Executor ANSI : American National Standards Institute MS-C : Microsoft Corp. MS-C Ver 6.0, Ver 7.0 or Ver 8.0 (mark) x : available blank : not available M
Page 60Fanuc C-Executer Operating Manual B-62443EN-3/03E (4) Mathematics ( math.h ) ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- acos MAC x x frexp MAC x x asin MAC x x
Page 61Fanuc C-Executer Operating Manual B-62443EN-3/03E (8) Input/output ( stdio.h ) ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- remove MAC x x fputc MAC x x rename M
Page 62Fanuc C-Executer Operating Manual B-62443EN-3/03E (10) String handling ( string.h ) ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- memcpy MAC x x memchr MAC x x me
Page 63Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.2 MS-C extended C standard library Compatible functions with extended library of Microsoft C Compiler (MS-C Ver 6.0). ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C ------------------
Page 64Fanuc C-Executer Operating Manual B-62443EN-3/03E ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- _fstrchr MAC x _nmsize x _fstrcmp MAC x _nrealloc x _fstrcpy MAC x
Page 65Fanuc C-Executer Operating Manual B-62443EN-3/03E ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- eof MAC x iskana MAC x execl x iskanji MAC x execle x iskanji2 MAC
Page 66Fanuc C-Executer Operating Manual B-62443EN-3/03E ----------------------------------- ----------------------------------- Name CExe ANSI MS-C Name CExe ANSI MS-C -------------------+----+----+----- -------------------+----+----+----- jtoupper MAC x spawnlpe x kbhit M x spawnv x ldexpl x spawnve x lf
Page 67Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.3 Graphic library (1) MS-C compatible graphic functions Compatible functions with a part of graphic library of Microsoft C Compiler (MS-C Ver 6.0). --------------------------------------------------------------------------- Name CExe Function -----
Page 68Fanuc C-Executer Operating Manual B-62443EN-3/03E --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------ _setgtextvector M Set the current output vector of text. _setlinestyle M Set th
Page 69Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.4 CNC/PMC window library Functions whish are used to input/output data between CNC/PMC. (1) CNC window library --------------------------------------------------------------------------- Name CExe Function ---------------------+----+---------------
Page 70Fanuc C-Executer Operating Manual B-62443EN-3/03E --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------ cnc_wrzofs MA Write work origin offset. cnc_rdzofsr MA Read work origin offset
Page 71Fanuc C-Executer Operating Manual B-62443EN-3/03E --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------ cnc_wrlife MA Write tool life management data (tool life). cnc_wrcount MA Write
Page 72Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Super CAP M window library --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------ capm_rdtool MA Read tool data file. capm_wrtool
Page 73Fanuc C-Executer Operating Manual B-62443EN-3/03E 1.5 Other libraries (1) MDI operation library These are the functions which customize key-input from MDI panel, alter key code, enable key repeating and generate key code by the application program. ---------------------------------------------------
Page 74Fanuc C-Executer Operating Manual B-62443EN-3/03E (2) CRT operation library These are the functions which control CRT display and multiple window display. --------------------------------------------------------------------------- Name CExe Function ---------------------+----+-----------------------
Page 75Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) File operation library These are the functions which maintain file device. --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------
Page 76Fanuc C-Executer Operating Manual B-62443EN-3/03E (5) Task control library These are the functions which control task execution. --------------------------------------------------------------------------- Name CExe Function ---------------------+----+------------------------------------------------
Page 77Fanuc C-Executer Operating Manual B-62443EN-3/03E (7) F-ROM library These are the functions which read C Executor data stored in the flash ROM module. --------------------------------------------------------------------------- Name CExe Function ---------------------+----+---------------------------
Page 78Fanuc C-Executer Operating Manual B-62443EN-3/03E About floating point operation functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Floating point operation functins and "float" and "double" type variables are used only on FS16/18-C. On FS16/18-B, these functions are not available beacase FPU (Float
Page 79Fanuc C-Executer Operating Manual B-62443EN-3/03E Japanese(Multi-byte character) functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Following Jananese character/string functions (Multi-byte character functions) included in "MS-C extended standard library" are not available for the English version of
Page 80Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor 2. How to make application program ================================== Table of contents 2.1 Outline 2.2 Definition of static variables 2.3 Environment variables 2.4 Special files 2.5 MAKEFILE 2.6 Remarks 2.7 How to use t
Page 81Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Editing the source files. Make the source files ( *.c and *.h files ) of the application program in the working directory. Use an arbitrary text editor to edit the files as same as editing the ordinary MS-DOS application. You may name the file as
Page 83Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.2 Definition of static variables There are multiple versions of xlink386, which is used in link operation of the application, and there are the differences between each versions. The major difference is as follows. before ver 1.3 The BSS segment is
Page 84Fanuc C-Executer Operating Manual B-62443EN-3/03E Confirm that the contents of "taskall.map" file after linking of the application and that the FAR_BSS_1\FAR_BSS segment is not generated if you use the later version of xlink386 ver 1.5. The memory card file size, which is specified in "*.o2m" file u
Page 85Fanuc C-Executer Operating Manual B-62443EN-3/03E The user application's version number is defined in this file. For example, version number definition is as follows. char version[] = "TEST0001" ; "TEST" is the series string and "0001" is edition number. You can replace them with your original versi
Page 86Fanuc C-Executer Operating Manual B-62443EN-3/03E For the single task application, you should only define the macro TASK1. TASK1 = S1.OBJ S2.OBJ TASK2 = TASK3 = For the multi task application, you should define all the three macros TASK1, TASK2 and TASK3. TASK1 = S1.OBJ S2.OBJ TASK2 = X.OBJ TASK3 =
Page 87Fanuc C-Executer Operating Manual B-62443EN-3/03E Supplement of "makefile" format ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The format of "makefile", which is used for compiling and linking the C Executor application, has been changed a littel at BY01-1.5. You must use this new format "makefile" surely if you
Page 88Fanuc C-Executer Operating Manual B-62443EN-3/03E (3) Specifying xlink386 version. In the next part, you specify the version of your xlink386. If you use xlink386 Ver.2.0 (or later), you define the variable "XLINK20" by removing the leading comment mark (#) of the following line. You leave the line
Page 89Fanuc C-Executer Operating Manual B-62443EN-3/03E 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 directo
Page 91Fanuc C-Executer Operating Manual B-62443EN-3/03E [Usage of xlib386.exe] (1) Command line syntax xlib386[Enter] or xlib386 @COMMAND[Enter] (COMMAND is the command filename) (2) Invocating commands in xlib386 "LIB>" prompt will be displayed when xlib386 has been started by only "xlib386[Enter]". You
Page 92Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.8 System alarm screen When CPU has detected any exception during execution of any software on the CNC unit, the exception handler in the CNC software stops whole system and displays the system alarm screen. There are some causes of system alarm, so
Page 93Fanuc C-Executer Operating Manual B-62443EN-3/03E SS3:ESP3 Stack pointer of privilege level 3 at exception CS:EIP CS:EIP of privilege level 3 at exception 21st line Cause of NMI Cause of NMI which is related to any hardware For the exception which is detected during execution of the application prog
Page 94Fanuc C-Executer Operating Manual B-62443EN-3/03E A part or all of the system alarm screen may not be displayed correctly, because software or hardware of CNC can't work correctly by the system alarm. The following brief system alarm screen may be displayed on the previous CNC software. +-----------
Page 95Fanuc C-Executer Operating Manual B-62443EN-3/03E Discrimination of task where the exception occured It is possible to discriminate the task which was executed when the exception occured by the contents of TR register (task register) in 7th line. Look up the displayed value of TR in "TS?_TSS" select
Page 96Fanuc C-Executer Operating Manual B-62443EN-3/03E To determine the error occurrence line from this screen, do the following process. You find that the exception occurred in PL3 because "ERROR-ADDRESS" in the 7th line is same as "CS:EIP" in the 16th line. You check that the code segment CS(=0837) in
Page 97Fanuc C-Executer Operating Manual B-62443EN-3/03E ;|*** func_1( NULL ) ; ; Line 12 << A part of taskall.map >> SEGMENTS INSTALLED IN TABLES TABLE SEL P DPL ACC USE BASE LIMIT SEGMENT NAME ------------+-----+-+---+---+---+---------+---------+------------ GDT(800) 1900H 1 0 RW 16T 00A00030H 0000000FH
Page 98Fanuc C-Executer Operating Manual B-62443EN-3/03E << err1.cod >> ; Static Name Aliases ; TITLE err1.c .286p .287 ERR1_TEXT SEGMENT WORD PUBLIC 'CODE' ERR1_TEXT ENDS _DATA SEGMENT WORD PUBLIC 'DATA' _DATA ENDS CONST SEGMENT WORD PUBLIC 'CONST' CONST ENDS _BSS SEGMENT WORD PUBLIC 'BSS' _BSS ENDS DGROU
Page 99Fanuc C-Executer Operating Manual B-62443EN-3/03E ;|*** ;|*** void main( void ) ;|*** { ; Line 9 PUBLIC _main _main PROC FAR *** 00000c c8 02 00 00 enter 2,0 ; ret = -2 ;|*** char ret ; ;|*** ;|*** ret = func_1( NULL ) ; ;|*** printf( "data=%d\n", ret ) ; ; Line 13 *** 000010 6a 00 push 0 *** 000012
Page 100Fanuc C-Executer Operating Manual B-62443EN-3/03E (Example 2) << err2.c >> 1: #include 2: 3: void func_2( char *ptr ) 4: { 5: printf( "%s\n", ptr ) ; 6: } 7: 8: void main( void ) 9: { 10: func_2( NULL ) ; 11: } Exception will occur at printf function in the 5th line by execution of this pr
Page 101Fanuc C-Executer Operating Manual B-62443EN-3/03E Therefore, you find that the library call which caused the exception is the previous operation code as follows. ;|*** printf( "%s\n", ptr ) ; ; Line 5 *** 000003 ff 76 08 push WORD PTR [bp+8] *** 000006 ff 76 06 push WORD PTR [bp+6] ;ptr *** 000009 1
Page 103Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.9 Supplement about segments (1) Segments listed in link map The following segments are the ones listed in the segment table of taskall.map which is generated by xlink386. VERSION_GROUP Data segment of version.c VERSION_TEXT Code segment of version.
Page 104Fanuc C-Executer Operating Manual B-62443EN-3/03E (2) Segment in which global and static variables are allocated Global variables and static variables are allocated in each segment according to the following rule. Not-initialized variables When total size of all not-initialized variables of any sour
Page 105Fanuc C-Executer Operating Manual B-62443EN-3/03E LOGICAL SEGMENTS INCLUDED: LENGTH ACCESS ALIGN USE SEGMENT NAME CLASS ----------+-------+-------+-----+----------------+----------- 00001D4FH ER WORD 16T TS1_fanuc_lib_T- CODE 00002DDAH RW WORD 16T TS1__DATA DATA 000000A2H RW WORD 16T TS1_CONST CONST
Page 106Fanuc C-Executer Operating Manual B-62443EN-3/03E 2.10 How to increase the global heap size for the application. The means described here is effective to only the multi-task application. On the multi-task C Executor application, each tasks (Main, Alarm and Communication task) have their own DGROUP s
Page 107Fanuc C-Executer Operating Manual B-62443EN-3/03E Modify concretely as follows. << A part of "TASKALL2.DAT" file >> SEGMENT VERSION_GROUP ( BASE = 0A00030H, LIMIT = 0FH, DPL = 0 ) ,VERSION_TEXT ( LIMIT = +0, DPL = 0 ) ,SYSCONF_DATA ( BASE = 00A40000H, DPL = 3 ) ,SEG_GDT_USER ( USE32, ALIGN = DWORD,
Page 108Fanuc C-Executer Operating Manual B-62443EN-3/03E FANUC Series 16/18 C Executor 3.1 ANSI C standard library =========================== Lists of Functions ~~~~~~~~~~~~~~~~~~ 1. Diagnostics ( assert.h ) ------------------------------------------------------------------- Name Function ----------------
Page 109Fanuc C-Executer Operating Manual B-62443EN-3/03E 3. Mathematics ( math.h ) ------------------------------------------------------------------- Name Function ------------------------------------------------------------------- 3.1 acos Calculate the arc cosine value. 3.2 asin Calculate the arc sine v
Page 110Fanuc C-Executer Operating Manual B-62443EN-3/03E 6. Input/output ( stdio.h ) ------------------------------------------------------------------- Name Function ------------------------------------------------------------------- 6.1 remove Delete a file. 6.2 rename Change the name of a file. 6.3 tmpn
Page 111Fanuc C-Executer Operating Manual B-62443EN-3/03E 7. General utilities ( stdlib.h ) ------------------------------------------------------------------- Name Function ------------------------------------------------------------------- 7.1 atoi Convert string to int value. 7.2 atol Convert string to l
Page 112Fanuc C-Executer Operating Manual B-62443EN-3/03E 9. Date and time ( time.h ) ------------------------------------------------------------------- Name Function ------------------------------------------------------------------- 9.1 clock Get the current time. 9.2 mktime Convert local time to calende
Page 113Fanuc C-Executer Operating Manual B-62443EN-3/03E Function Reference ~~~~~~~~~~~~~~~~~~ Refer ANSI C language regulation for detail function specifications. 1. Diagnostics ( assert.h ) ----------------------------------------------------------------------- 1.1 Abort by assertion. ------------
Page 114Fanuc C-Executer Operating Manual B-62443EN-3/03E 2. Character handling ( ctype.h ) ----------------------------------------------------------------------- 2.1 Test for alphanumeric character. ----------------------------------------------------------------------- [Name] isalnum [S
Page 115Fanuc C-Executer Operating Manual B-62443EN-3/03E ----------------------------------------------------------------------- 2.2 Test for alphabetic character. ----------------------------------------------------------------------- [Name] isalpha [Syntax] #include int isalph
Page 116Fanuc C-Executer Operating Manual B-62443EN-3/03E ----------------------------------------------------------------------- 2.3 Test for control character. ----------------------------------------------------------------------- [Name] iscntrl [Syntax] #include int iscntrl(
Page 117Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.4 Test for numeric character. ------------------------------------------------------------------------------ [Name] isdigit [Syntax] #include
Page 118Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.5 Test for visible character. ------------------------------------------------------------------------------ [Name] isgraph [Syntax] #include
Page 119Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.6 Test for lowercase alphabetic character. ------------------------------------------------------------------------------ [Name] islower [Syntax] #incl
Page 120Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.7 Test for printable character. ------------------------------------------------------------------------------ [Name] isprint [Syntax] #include
Page 121Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.8 Test for punctuation character. ------------------------------------------------------------------------------ [Name] ispunct [Syntax] #include
Page 122Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.9 Test for whitespace character. ------------------------------------------------------------------------------ [Name] isspace [Syntax] #include
Page 123Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.10 Test for uppercase alphabetic character. ------------------------------------------------------------------------------ [Name] isupper [Syntax] #inc
Page 124Fanuc C-Executer Operating Manual B-62443EN-3/03E ------------------------------------------------------------------------------ 2.11 Test for hexadecimal numeric character. ------------------------------------------------------------------------------ [Name] isxdigit [Syntax] #inc