FANUC Series 30*/300*/300*s-MODEL A FANUC Series 31*/310*/310*s-MODEL A5 FANUC Series 31*/310*/310*s-MODEL A FANUC Series 32*/320*/320*s-MODEL A

Size: px
Start display at page:

Download "FANUC Series 30*/300*/300*s-MODEL A FANUC Series 31*/310*/310*s-MODEL A5 FANUC Series 31*/310*/310*s-MODEL A FANUC Series 32*/320*/320*s-MODEL A"

Transcription

1 FANUC Series 30*/300*/300*s-MODEL A FANUC Series 31*/310*/310*s-MODEL A5 FANUC Series 31*/310*/310*s-MODEL A FANUC Series 32*/320*/320*s-MODEL A C Language Executor Library (For Conversion from PMC C Language Function) PROGRAMMING MANUAL B-64183EN/01

2 !! "

3 B-64183EN/01 DEFINITION OF WARNING, CAUTION, AND NOTE DEFINITION OF WARNING, CAUTION, AND NOTE This manual includes safety precautions for protecting the user and preventing damage to the machine. Precautions are classified into Warning and Caution according to their bearing on safety. Also, supplementary information is described as a Note. Read the Warning, Caution, and Note thoroughly before attempting to use the machine. WARNING Applied when there is a danger of the user being injured or when there is a danger of both the user being injured and the equipment being damaged if the approved procedure is not observed. CAUTION Applied when there is a danger of the equipment being damaged, if the approved procedure is not observed. NOTE The Note is used to indicate supplementary information other than Warning and Caution. Read this manual carefully, and store it in a safe place. s-1

4

5 B-64183EN/01 TABLE OF CONTENTS TABLE OF CONTENTS DEFINITION OF WARNING, CAUTION, AND NOTE...s-1 1 GETTING STARTED OVERVIEW RELATED DRAWING NUMBER HOW TO MAKE APPLICATION INSTALLATION OF THE "C LIBRARY FOR CONVERSION" ON A PERSONAL COMPUTER CNC HARDWARE COMPATIBILITY WITH THE "C LIBRARY FOR C LANGUAGE BOARD" CONVERSION POINTS FUNCTION REFERENCE FUNCTION LIST SYSTEM CALL Read the Task Timer Value Set the Task Timer Value Wait for the Timer Value Wait for Time Create an Event Flag Delete the Event Flag Set the Event Flag Wait for the Event Flag Clear the Event Flag Set the Event Flag (Pulse type) Create a Semaphore Delete the Semaphore Set the Semaphore Wait for the Semaphore SWITCH SCREEN Switch to the User Application Screen Wait for Switching to the User Application Screen Switch to the CNC Screen MDI KEYS MDI Key Code Table...42 c-1

6 TABLE OF CONTENTS B-64183EN/ Read key Control a Key-in Line Read Key Status Disable Function Keys Enable Function Keys Read a Function Key Disable Custom Keys Enable Custom Keys ACCESS TO THE PMC ADDRESS Read from the PMC Address (bit) Write to the PMC Address (bit) Read from the PMC Address (char) Read from the PMC Address (short) Read from the PMC Address (long) Read from the PMC Address (unsigned char) Read from the PMC Address (unsigned short) Read from the PMC Address (unsigned long) Write to the PMC Address (char) Write to the PMC Address (short) Write to the PMC Address (long) Write to the PMC Address (unsigned char) Write to the PMC Address (unsigned short) Write to the PMC Address (unsigned long) READ SYSTEM INFORMATION Read CNC Information Read Symbol and Comment in LADDER Program (16 characters symbol is available) Read Symbol and Comment in LADDER Program Read a Message in LADDER Program ACCESS TO THE EXTENDED NONVOLATILE MEMORY Read from the Extended Nonvolatile Memory Write to the Extended Nonvolatile Memory Get Size of the Extended Nonvolatile Memory CHARACTER DISPLAY Color Palette for the Character Display Coordinates of the Character Screen Character Code...81 c-2

7 B-64183EN/01 TABLE OF CONTENTS Initialize the Character Screen (80 Columns x 30 Lines) Initialize a Character Screen (80 Columns x 25 Lines or 40 Columns x 16 Lines) Erase the Entire Screen Clear Lines Clear Columns Set a Display Position Set a Display Attribute Change Attribute of the Characters Being Displayed Display ASCII Characters Display Characters (Kanji, Hiragana and Special Characters) Display Hex Size Characters Display Cursor Display Characters (ASCII, Kanji and Hiragana) Save the Character Screen Restore the Character Screen Control the Screen Set Background Color of the Character Screen Set Palette for Character Screen Initialize the Character Screen (74 Columns x 27 Lines) Initialize the Character Screen (74 Columns x 30 Lines) Initialize printf() GRAPHIC DISPLAY Color Palette for Graphic Display Coordinates of the Graphic Screen Open the Graphic Screen Close the Graphic Screen Clear the Graphic Screen Display or Hide the Graphic Screen Set a Graphic Line Type Set a Graphic Color Draw Straight Lines Draw an Arc Paint Shift Get Graphic Screen Status Erase the Square c-3

8 TABLE OF CONTENTS B-64183EN/ Set Palette for the Graphic Screen READER / PUNCHER INTERFACE Open the Reader / Puncher Interface Close the Reader / Puncher Interface Read from the Reader / Puncher Interface Write to the Reader / Puncher Interface Open the Reader / Puncher Interface (for FANUC Handy File) Get the File Information Delete the File Open the Reader / Puncher Interface Close the Reader / Puncher Interface Read from the Reader / Puncher Interface Write to the Reader / Puncher Interface Open the Reader / Puncher Interface (for FANUC Handy File) Get the File Information Delete the File CNC WINDOW CNC Window Function (Read) CNC Window Function (Write) External Data CNC PROGRAM Start Registration of the CNC Program Register the CNC Program End Registration of the CNC Program Start DNC running of the CNC Program Run the CNC Program (DNC running) End DNC Running of the CNC Program Search the CNC Program (Supported 8 Digits Program Number) Search the CNC Program Delete All CNC Programs Delete the CNC Program (Supported 8 Digits Program Number) Delete the CNC Program Start Reading of the CNC Program (Supported 8 Digits Program Number) Start Reading of the CNC Program Read the CNC Program End Reading of the CNC Program Read the CNC Program Memory Information c-4

9 B-64183EN/01 TABLE OF CONTENTS Start Reading of the CNC Program List (Supported 8 Digits Program Number) Start Reading of the CNC Program List Read the CNC Program List End Reading of the Program List Start Registration of the CNC Program Register the CNC Program End Registration of the CNC Program Start DNC running of the CNC Program Run the CNC Program (DNC running) End DNC Running of the CNC Program Search the CNC Program (Supported 8 Digits Program Number) Search the CNC Program Delete All CNC Programs Delete the CNC Program (Supported 8 Digits Program Number) Delete the CNC Program Start Reading of the CNC Program (Supported 8 Digits Program Number) Start Reading of the CNC Program Read the CNC Program End Reading of the CNC Program Read the CNC Program Memory Information Start Reading of the CNC Program List (Supported 8 Digits Program Number) Start Reading of the CNC Program List Read the CNC Program List End Reading of the Program List CHARACTER CODE CONVERSION Convert Characters from ASCII to ISO Code Convert Characters from ISO to ASCII Code CHARACTER CODE (KANJI, HIRAGANA AND OTHERS) c-5

10

11 B EN/01 1.GETTING STARTED 1 GETTING STARTED -1-

12 1.GETTING STARTED B EN/ OVERVIEW The "C language executor library (for conversion from PMC C language)" is for the Series 30i/ 31i/ 32i and provides functions that are compatible with "Series 15i/ 150i/ 16i/ 160i/ 160is/ 18i/ 180i/ 180is/ 21i/ 210i/ 210is C-language library for C language board". If you use the "C language executor library (for conversion from PMC C language)" when you convert the C language application running on the "Series 15i/ 150i/ 16i/ 160i/ 160is/ 18i/ 180i/ 180is/ 21i/ 210i/ 210is C language board" to one running on the "Series 30i/ 31i/ 32i C language executor", there are following merits. You can save your efforts to convert the calling of C library functions in the C language program. In this manual, the function reference for the "C language executor library (for conversion from PMC C language)" is mainly described. About details of the "Series 30i/ 31i/ 32i C language executor", refer to the following manual. Manual Series 30i/ 300i/ 300is-MODEL A Series 31i/ 310i/ 310is-MODEL A Series 31i/ 310i/ 310is-MODEL A5 Series 32i/ 320i/ 320is-MODEL A C language executor operator's manual Drawing number B-63944EN-3 In this manual, following abbreviations will be used. Item C language executor library (for conversion from PMC C language) Series 15i/ 150i/ 16i/ 160i/ 160is/ 18i/ 180i/ 180is/ 21i/ 210i/ 210is C language board Series 15i/ 150i/ 16i/ 160i/ 160is/ 18i/ 180i/ 180is/ 21i/ 210i/ 210is C language library for C language board C language library (for C language executor) Abbreviation C library for conversion C language board C library for C language board C library for C executor -2-

13 B EN/01 1.GETTING STARTED 1.2 RELATED DRAWING NUMBER The related drawing number is shown below. Drawing number Name Contents A02B-0303-J734 Macro executor + This is the execution option for C executor. C language executor A02B-0303-J738#1M Custom software size 1 MB This is the memory option for C executor. A02B-0303-J738#2M Custom software size 2 MB The system of C executor uses about 700 KB A02B-0303-J738#3M Custom software size 3 MB memories and the "C library for conversion" A02B-0303-J738#4M Custom software size 4 MB uses about 100 KB memories. A02B-0303-J738#5M Custom software size 5 MB Therefore, the memory size that you can use is A02B-0303-J738#6M Custom software size 6 MB smaller than the total memory size. [Memory size] = [Total memory size] [about 800 KB] A02B-0303-J736 C language executor additional SRAM This is the nonvolatile memory option. (Optional) You can use 192 KB of nonvolatile memory. A02B-0303-J993#64K Nonvolatile memory expansion 64 KB This is the nonvolatile memory option. (Optional) A02B-0303-J993#256K Nonvolatile memory expansion 256 KB You can use 64 KB or 256 KB of nonvolatile memory. To access this memory, you have to use the function pmc_rdkpm(), pmc_wrkpm(), pl_kpmrd() or pl_kpmwrt(). A08B-9010-J610#EN07 C language library (for C language executor) This is the "C language library" for the C executor. B-63944JA-3 Series 30i/ 300i/ 300is-MODEL A This is the manual for the C executor. Series 31i/ 310i/ 310is-MODEL A Series 31i/ 310i/ 310is-MODEL A5 Series 32i/ 320i/ 320is-MODEL A C language executor operator's manual A08B-9210-J719#ZZ11 C language executor library (for conversion from PMC C language) This is the "C library for conversion". If you use this library, you can save efforts to convert the C language program running on a "C language board" to one running on a "30i/ 31i/ 32i C executor". WindRiver Diab C/C++ Power-PC Compiler This is the C/C++ compiler and linker. -3-

14 2.HOW TO MAKE APPLICATION B EN/01 2 HOW TO MAKE APPLICATION -4-

15 B EN/01 2.HOW TO MAKE APPLICATION 2.1 INSTALLATION OF THE "C LIBRARY FOR CONVERSION" ON A PERSONAL COMPUTER The development environment of C executor The "C library for conversion" has to be installed on the development environment of C executor on a personal computer. If a C compiler and the "C library for C executor" have not been installed on a personal computer, install them. About the installation of C compiler and the "C library for C executor", refer to the following manual. "C language executor operator's manual B-63944EN-3" C library for conversion The files and directories structure of the installation CD-ROM of the "C library for conversion" is shown below. <CD-ROM> inc lib pmclib.h clblib.o pmclib.h clblib.o Header file Library file The example of files and directories structure of the development environment of C executor is shown below. To install the "C library for conversion", (1) Copy the file "pmclib.h" into "inc" directory. (2) Copy the file "clblib.o" into "lib" directory. <Install directory of the C library for C executor> inc <- pmclib.h lib <- clblib.o man tool user Modification of "makefile" To use the "C library for conversion", you have to bind the "clblib.o" to the executable file when a linking process. To do this, you should apply modifications, that is to add the file "$(FCLIB) clblib.o" to the description of source files of linking command, in the "makefile". -5-

16 2.HOW TO MAKE APPLICATION B EN/01 The example of modification of "makefile" is shown below. The number of modification point is 10. # Make file for FS30i C Executor user application # # This makefile is for NMAKE.EXE # # FANUC LTD. # #. STEP1 STEP1_1.MAP : $(TASK1) $(RAMOBJ) $(SELEC). STEP1 STEP1_1.LNK $(TOOL) STEP1.LNK 1 $(LINK) -@<<$(TMP_FILE). STEP1 STEP1_1.LNK -o. STEP1 STEP1_1.ELF $(TASK1) $(RAMOBJ) $(FCLIB) tsk1_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. STEP1 STEP1_1.MAP <<NOKEEP $(TASK1LEN) :. STEP1 STEP1_1.MAP $(TOOL) GAWK -v task=1 -f $(TOOL) CHK_LEN1.AWK. STEP1 STEP1_1.MAP > $(TASK1LEN) #. STEP1 STEP1_2.MAP : $(TASK2) $(RAMOBJ) $(SELEC). STEP1 STEP1_2.LNK $(TOOL) STEP1.LNK 2 $(LINK) -@<<$(TMP_FILE). STEP1 STEP1_2.LNK -o. STEP1 STEP1_2.ELF $(TASK2) $(RAMOBJ) $(FCLIB) tsk2_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. STEP1 STEP1_2.MAP <<NOKEEP $(TASK2LEN) :. STEP1 STEP1_2.MAP $(TOOL) GAWK -v task=2 -f $(TOOL) CHK_LEN1.AWK. STEP1 STEP1_2.MAP > $(TASK2LEN) #. STEP1 STEP1_3.MAP : $(TASK3) $(RAMOBJ) $(SELEC). STEP1 STEP1_3.LNK $(TOOL) STEP1.LNK 3 $(LINK) -@<<$(TMP_FILE). STEP1 STEP1_3.LNK -o. STEP1 STEP1_3.ELF $(TASK3) $(RAMOBJ) $(FCLIB) tsk3_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. STEP1 STEP1_3.MAP <<NOKEEP $(TASK3LEN) :. STEP1 STEP1_3.MAP $(TOOL) GAWK -v task=3 -f $(TOOL) CHK_LEN1.AWK. STEP1 STEP1_3.MAP > $(TASK3LEN)

17 B EN/01 2.HOW TO MAKE APPLICATION #. STEP1 STEP1_4.MAP : $(TASK4) $(RAMOBJ) $(SELEC). STEP1 STEP1_4.LNK $(TOOL) STEP1.LNK 4 $(LINK) -@<<$(TMP_FILE). STEP1 STEP1_4.LNK -o. STEP1 STEP1_4.ELF $(TASK4) $(RAMOBJ) $(FCLIB) tsk4_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. STEP1 STEP1_4.MAP <<NOKEEP $(TASK4LEN) :. STEP1 STEP1_4.MAP $(TOOL) GAWK -v task=4 -f $(TOOL) CHK_LEN1.AWK. STEP1 STEP1_4.MAP > $(TASK4LEN) #. STEP1 STEP1_5.MAP : $(TASK5) $(RAMOBJ) $(SELEC). STEP1 STEP1_5.LNK $(TOOL) STEP1.LNK 5 $(LINK) -@<<$(TMP_FILE). STEP1 STEP1_5.LNK -o. STEP1 STEP1_5.ELF $(TASK5) $(RAMOBJ) $(FCLIB) tsk5_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. STEP1 STEP1_5.MAP <<NOKEEP $(TASK5LEN) :. STEP1 STEP1_5.MAP $(TOOL) GAWK -v task=5 -f $(TOOL) CHK_LEN1.AWK. STEP1 STEP1_5.MAP > $(TASK5LEN) # $(TASKALEN) : $(CHK_LEN) echo s/sram_len/$(sram_len)/g> $(TASKALEN) $(TOOL) GAWK -f $(TOOL) CHK_LEN2.AWK <<$(TMP_FILE) >> $(TASKALEN) $(CHK_LEN) <<NOKEEP # TASK1.ELF : $(TASKALEN) $(SELEC). STEP2 TASK1.DAT $(TOOL) STEP2.LNK 1 $(TOOL) SED -f $(TASKALEN). STEP2 TASK1.DAT >. STEP2 TASK1.LNK $(LINK) -@<<$(TMP_FILE). STEP2 TASK1.LNK -o TASK1.ELF $(TASK1) $(RAMOBJ) $(FCLIB) tsk1_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. map task1.map <<NOKEEP # TASK2.ELF : $(TASKALEN) $(SELEC). STEP2 TASK2.DAT $(TOOL) STEP2.LNK 2 $(TOOL) SED -f $(TASKALEN). STEP2 TASK2.DAT >. STEP2 TASK2.LNK $(LINK) -@<<$(TMP_FILE). STEP2 TASK2.LNK -o TASK2.ELF $(TASK2) $(RAMOBJ) $(FCLIB) tsk2_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. map task2.map <<NOKEEP #

18 2.HOW TO MAKE APPLICATION B EN/01 # TASK3.ELF : $(TASKALEN) $(SELEC). STEP2 TASK3.DAT $(TOOL) STEP2.LNK 3 $(TOOL) SED -f $(TASKALEN). STEP2 TASK3.DAT >. STEP2 TASK3.LNK $(LINK) -@<<$(TMP_FILE). STEP2 TASK3.LNK -o TASK3.ELF $(TASK3) $(RAMOBJ) $(FCLIB) tsk3_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. map task3.map <<NOKEEP # TASK4.ELF : $(TASKALEN) $(SELEC). STEP2 TASK4.DAT $(TOOL) STEP2.LNK 4 $(TOOL) SED -f $(TASKALEN). STEP2 TASK4.DAT >. STEP2 TASK4.LNK $(LINK) -@<<$(TMP_FILE). STEP2 TASK4.LNK -o TASK4.ELF $(TASK4) $(RAMOBJ) $(FCLIB) tsk4_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. map task4.map <<NOKEEP # TASK5.ELF : $(TASKALEN) $(SELEC). STEP2 TASK5.DAT $(TOOL) STEP2.LNK 5 $(TOOL) SED -f $(TASKALEN). STEP2 TASK5.DAT >. STEP2 TASK5.LNK $(LINK) -@<<$(TMP_FILE). STEP2 TASK5.LNK -o TASK5.ELF $(TASK5) $(RAMOBJ) $(FCLIB) tsk5_lib.o $(FCLIB) cexe_lib.o $(FCLIB) clblib.o $(FCLIB) jump_tbl.o -@O=. map task5.map <<NOKEEP

19 B EN/01 2.HOW TO MAKE APPLICATION 2.2 CNC HARDWARE The comparison between the hardware, to execute the C language application, for the "Series 30i/ 31i/ 32i C executor" and one for the "Series 15i/ 16i/ 18i/ 21i C language board" is shown below. Item CPU Program code Work memory Work memory (Nonvolatile) Series 30i/ 31i/ 32i C executor PowerPC compatible CPU About 5.2 MB in the maximum (Optional) *Note 1 About 250 KB in the maximum (Optional) *Note 2, 3 Series 16i/ 18i/ 21i C language board 80486DX2 2 MB in the maximum (Optional) 256 KB in the maximum 64 KB in the maximum (Optional) Display 10.4" color LCD 10.4" color LCD 9.5" monochrome LCD 8.4" color LCD 7.2" monochrome LCD Series 15i C language board 80486DX2 2 MB in the maximum (Optional) 256 KB in the maximum 64 KB in the maximum (Optional) 10.4" color LCD 9.5" monochrome LCD RS-232C 2ch 2ch 2ch Memory card Supported Not supported Not supported Touch panel Supported Not supported Not supported NOTE 1. When a "Custom software size 6MB" option, A02B-0303-J738#6M, is equipped and the "C library for conversion" is used, you can use about 5.2 MB memory. 2. When a "C language executor additional SRAM" option, A02B-0303-J736, is equipped, you can use about 250 KB nonvolatile memory. 3. When a "Nonvolatile memory expansion 256 KB" option, A02B-0303-J993#256K, is equipped, you can use additional 256 KB of nonvolatile memory. -9-

20 2.HOW TO MAKE APPLICATION B EN/ COMPATIBILITY WITH THE "C LIBRARY FOR C LANGUAGE BOARD" Overview The "C library for conversion" is designed to be compatible with the "C library for C language board". However, some functions are unavailable and behavior of some functions is different from "C library for C language board" because of the difference of hardware and CNC system software, and the restriction of the C executor. In this case, to use a similar conventional function of C executor is worth considering. The software block diagram of "C library for conversion" is shown below. C language application C library for C executor C library for conversion CNC system software Display driver Keyboard driver RS-232C driver Memory card driver Other driver Many functions of the "C library for conversion" are designed to call some functions of the "C library for C executor" to carry out the purpose. This means that the "C library for conversion" have tendency to be slower than the "C library for C executor". Furthermore, the simultaneous use of some similar function of the "C library for C executor" may be restricted, such as functions related to RS-232C and CNC program. If the execution speed or above restriction turn into a grave issue, to use a similar conventional function of C executor is worth considering. The different points from the "C library for C language board" The differences between the "C library for conversion" and the "C library for C language board" are shown below. About the details, see the reference of each function. - System call - Following functions are unavailable. os_chng_pri(), os_new_mem(), os_disp_mem(), os_rep_mem(), os_mak2_sem(), os_queu_sem(), os_make_mbx(), os_delt_mbx(), os_read_mbx(), os_red2_mbx(), os_writ_mbx(), os_wrt2_mbx(), os_make_pkt(), os_delt_pkt(), os_send_pkt(), os_recv_pkt(), os_mark_pkt(), os_rmrk_pkt(), os_curr_tsk() -10-

21 B EN/01 2.HOW TO MAKE APPLICATION - Switch screen - MDI keys Some behaviors of the following function are different. pl_pcmdi() Following functions are unavailable. pl_fcustom_ign(), pl_fcustom_avail() Some behaviors of following functions are different. pl_keysts(), pl_fkey_ign(), pl_fkey_avail() - Access to the PMC address Following functions are unavailable. pl_memc(), pl_memuc(), pl_mems(), pl_memus(), pl_meml(), pl_memul(), pl_memc2(), pl_memuc2(), pl_mems2(), pl_memus2(), pl_meml2(), pl_memul2() Following functions are added. pl_memcrd2(), pl_memucrd2(), pl_memsrd2(), pl_memusrd2(), pl_memlrd2(), pl_memulrd2(), pl_memcwrt2(), pl_memucwrt2(), pl_memswrt2(), pl_memuswrt2(), pl_memlwrt2(), pl_mwmulwrt2() - Read system information Some behaviors of the following function are different. pl_sysinfrd() The following function is added. pl_symcmt2() - Access to the extended nonvolatile memory The "Nonvolatile memory expansion 256 KB" option is added. - Character display Following functions are unavailable. pl_dspopen2(), pl_dspopen3() Some behaviors of following functions are different. pl_dspopen4(), pl_dspstrw(), pl_cursor(), initreq_printf() - Graphic display The following function is unavailable. pl_grpopen2() Some behavior of the following function is different. pl_grparc() -11-

22 2.HOW TO MAKE APPLICATION B EN/01 - Reader / puncher interface The baud rate setting "19200 bps" is unavailable. The simultaneous use of similar function in "C library for C executor" is restricted. - CNC window The following function is unavailable. pl_exin() Some behaviors of following functions are different. pl_windr(), pl_windw() - CNC program The following functions are unavailable. pl_nc_vrfstart(), pl_nc_verify(), pl_nc_vrfend(), pl_nc_vrfstart2(), pl_nc_verify2(), pl_nc_vrfend2() - Character code conversion All functions are compatible. The simultaneous use of similar function in "C library for C executor" is restricted. - Floating point All functions defined in the file "math.h" are available. There may be some difference of accuracy because the CPU and the C compiler are different. -12-

23 B EN/01 2.HOW TO MAKE APPLICATION 2.4 CONVERSION POINTS Conversion points from C language board to C executor are shown below. C Compiler Followings are conversion points caused by the differences of C compiler. Item 30i/ 31i/ 32i C executor Diab C/C++ 15i/ 16i/ 18i/ 21i C language board INTEL i-c286 Addressing 32 bit addressing 16 bit addressing Size of "int" 4 bytes 2 bytes Size of pointer Data alignment 4 bytes 2 bytes (near) 4 bytes (far) char 1 byte 1 byte short 2 bytes 2 bytes long 4 bytes 2 bytes float 4 bytes 2 bytes double 8 bytes 2 bytes pointer 4 bytes 2 bytes Byte order Big endian Little endian Syntax checking of compiler Stricter Looser Conversion Points The addressing size is extended from 16 bits to 32 bits. You can access memory over 64 KB size. The size of "int" is different. The program, that the size of "int" is assumed 2 bytes, has to be modified. The size of pointer is different. The program, that the size of pointer is assumed 2 bytes, has to be modified. The default setting of data alignment is different. The program, that the location address of a member in a structure is assumed, has to be modifiled. The byte order is different. The program, that the byte order is assumed little endian, has to be modified. The syntax checking of a C compiler becomes stricter. -13-

24 2.HOW TO MAKE APPLICATION B EN/01 Tasks The differences between task on "30i/ 31i/ 32i C executor" and task on "15i/ 16i/ 18i/ 21i C language board" are shown below. Item 30i/ 31i/ 32i C executor 15i/ 16i/ 18i/ 21i C language board Number of tasks 5 in the maximum 16 in the maximum Task priority Fixed Programmable Execution cycle Fixed Programmable Other character The purpose of each task have been defined and fixed. All tasks have a same character. On "C executor", you can use up to five tasks. The purpose of an each task has been defined and an each task will executed automatically in certain cycle with certain task priority. The characters of each task on C executor are shown below. CNC System Task (Axes Control etc.) Real-time Custom Macro (A-5) High-level Task CNC System Task (Preparing etc.) Auxiliary Macro of Macro Executor (A-3) Alarm Task (A-2) Communication Task CNC System Task (A-1) Main Task (Display etc.) (A-4) Window Task High Low Priority (A-1) Main task (Priority: Low) This task is to execute a process for user application screen. In this task, you can use almost all the library functions. When the user application screen is changed to another screen, this task is automatically suspended by the system. When the user application screen is displayed again, this task is automatically executed again. If no background process is necessary in the user application, you should describe all programs in this task. (A-2) Communication task (Priority: Middle) This task is to execute a background communication process using RS-232C. In this task, the use of some kind of functions is restricted. You should describe a background communication process using RS-232C in this task. If the background communication process is not required, this means that the communication process runs only on the user screen, you should describe it in the Main task. (A-3) Alarm task (Priority: Middle) This task is to execute a background process. In this task, the use of some kind of functions is restricted. This task is executed automatically and cyclically. Its execution cycle occasionally may changes because of the busy status of the -14-

25 B EN/01 2.HOW TO MAKE APPLICATION CNC system software. Therefore, you should describe background process, which does not require strict cyclic execution, in this task. (A-4) Window task (Priority: Low) This task is to execute a virtual machine operator's panel function or virtual keyboard function using a touch panel. In this task, the use of some kind of functions is restricted. (A-5) High-level task (Priority: High) This task is to execute a background process that requires a short and accurate execution cycle. The priority of this task is very high, this means that a large process in this task may have effect on the execution of CNC system software. Carefully you should select the process running in this task. In this task, the use of some kind of functions is restricted. The functions that you can use are described in the following manuals. - "3.1 Function List" in this manual - "C language executor operator's manual, B-63944EN-3, Function List" The details of the High-level task are described in the following manual. - "C language executor operator's manual, B-63944EN-3, High-level Task" When you convert a C program running on "C language board" to "C executor", you should assign all tasks on C language board to five tasks on C executor. The assignment policy is shown below. (1) Classify all tasks on "C language board" under following four types. (B-1) Background process (High priority) Select process carefully that has to be executed in high and accurate cycle such a machine and a CNC control. (B-2) Background process (Low priority) Select process that is nearly executed in cyclically. (B-3) Background process (RS-232C) Select RS-232C process that has to be executed in background on any screens. (B-4) User application screen process Select process that is executed when a user application screen is displayed, such a displaying process, key handling and so on. You should select a RS-232C process that is only executed on user screen too. -15-

26 2.HOW TO MAKE APPLICATION B EN/01 (2) You should describe above classified process to following each task on C executor. Classification in (1) (B-1) (B-2) (B-3) (B-4) Tasks on C executor (A-5) High-level task (A-3) Alarm task (A-2) Communication task (A-1) Main task Using functions When you use the "C library for conversion", you can use both functions of "C library for conversion" and "C library for C executor". Using the "C library for conversion", you can save your efforts to convert the calling of C library functions in the C language program. Furthermore, you can also use the rich functions of the "C library for C executor". However, the mixed use of some kind of functions in each library may be restricted, such as RS-232C functions and CNC program functions. About the details, refer to the following manual. "3.10 READER / PUNCHER INTERFACE" in this manual "3.12 CNC PROGRAM" in this manual By the library structure, the "C library for conversion" have tendency to be slower than the "C library for C executor". If the slower execution speed of the user program turn into grave issue, to use a similar conventional function of "C library for C executor" is worth considering. If you develop a new user application, we recommend that you use the rich functions in "C library for C executor" rather than "C library for conversion". Common variables Nonvolatile variables You should define common variables in the file "DRAMVAR.C". There are two types of nonvolatile memory. The way to access is different between them. If you use nonvolatile memory area newly, the type (1) is recommended because of the easy programming. (1) "C language executor additional SRAM (A02B-0303-J736)" You can use about 250 KB nonvolatile memory. In addition, you can program and use it by the description of normal C language sentence. (2) "Nonvolatile memory expansion 64 KB (A02B-0303-J993#64K)" or "Nonvolatile memory expansion 256 KB (A02B-0303-J993#256K)" You can use 64 KB or 256 KB nonvolatile memory. You can access it using the function pl_kpmrd() or pl_kpmwrt(). -16-

27 B EN/01 2.HOW TO MAKE APPLICATION PMC address The byte order is different between "C executor" and "C language board" because they have different type of CPU. This means that the direct accessing using a pointer is not compatible between them. Therefore, following functions are unavailable in "C library for conversion". pl_memc(), pl_memuc(), pl_mems(), pl_memus(), pl_meml(), pl_memul() pl_memc2(), pl_memuc2(), pl_mems2(), pl_memus2(), pl_meml2(), pl_memul2() You should use functions "pmc_rdpmcrng()" and "pmc_wrpmcrng()" in "C library for C executor" or following new functions in "C library for conversion" pl_memcrd2(), pl_memucrd2(), pl_memsrd2(), pl_memusrd2(), pl_memlrd2(), pl_memulrd2() pl_memcwrt2(), pl_memucwrt2(), pl_memswrt2(), pl_memuswrt2(), pl_memlwrt2(), pl_mwmulwrt2() The example using "C library for conversion" is shown below. Before) num = *pl_mems2(id, offset); num = 0x8000; *pl_mems2(id, offset) = num; After) num = pl_memsrd2(id, offset, NULL); num = 0x8000; pl_memswrt2(id, offset, num); -17-

28 3.FUNCTION REFERENCE B EN/01 3 FUNCTION REFERENCE -18-

29 B EN/01 3.FUNCTION REFERENCE 3.1 FUNCTION LIST SYSTEM CALL No. Name Content Available task os_show_tim() Read the Task Timer Value MWAC os_set_tim() Set the Task Timer Value MWAC os_sync_tim() Wait for the Timer Value MWAC os_wait_tim() Wait for Time MWAC os_make_flg() Create an Event Flag MAC os_delt_flg() Delete the Event Flag MAC os_sign_flg() Set the Event Flag MAC os_wait_flg() Wait for the Event Flag MAC os_clar_flg() Clear the Event Flag MAC os_puls_flg() Set the Event Flag (Pulse type) MAC os_make_sem() Create a Semaphore MAC os_delt_sem() Delete the Semaphore MAC os_sign_sem() Set the Semaphore MAC os_wait_sem() Wait for the Semaphore MAC - os_chng_pri() Change the Task Priority - - os_new_mem() Allocate Memory - - os_disp_mem() Free Memory - - os_repo_mem() Get Memory Information - - os_mak2_sem() Create a Semaphore (Exclusive control type) - - os_queu_sem() Change the Semaphore Type - - os_make_mbx() Create a Mailbox - - os_delt_mbx() Delete the Mailbox - - os_read_mbx() Receive Message (4 bytes) - - os_red2_mbx() Receive Message (8 bytes) - - os_writ_mbx() Send Message (4 bytes) - - os_wrt2_mbx() Send Message (8 bytes) - - os_make_pkt() Create a Packet - - os_delt_pkt() Delete the Packet - - os_send_pkt() Send the Packet - - os_recv_pkt() Receive a Packet - - os_mark_pkt() Set Mark to the Packet - - os_rmrk_pkt() Clear Mark to the Packet - - os_curr_tsk() Get Task ID - M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported SWITCH SCREEN No. Name Content Available task pl_pcmdi() Switch to the User Application Screen MWAC pl_pcmdi_wait() Wait for Switching to the User Application Screen M pl_ncmdi() Switch to the CNC Screen MWAC M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported -19-

30 3.FUNCTION REFERENCE B EN/01 MDI KEYS No. Name Content Available task pl_mdikey() Read key M pl_keydef() Control a Key-in Line M pl_keysts() Read Key Status M pl_fkey_ign() Disable Function Key M pl_fkey_avail() Enable Function Keys M pl_fkey_sts() Read a Function Key M pl_fcustom_ign() Disable Custom Keys M pl_fcustom_avail() Enable Custom Keys M M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported ACCESS TO THE PMC ADDRESS No. Name Content Available task pl_membrd2() Read from the PMC Address (bit) MWACH pl_membwrt2() Write to the PMC Address (bit) MWACH pl_memcrd2() Read from the PMC Address (char) MWACH pl_memsrd2() Read from the PMC Address (short) MWACH pl_memlrd2() Read from the PMC Address (long) MWACH pl_memucrd2() Read from the PMC Address (unsigned char) MWACH pl_memusrd2() Read from the PMC Address (unsigned short) MWACH pl_memulrd2() Read from the PMC Address (unsigned long) MWACH pl_memcwrt2() Write to the PMC Address (char) MWACH pl_memswrt2() Write to the PMC Address (short) MWACH pl_memlwrt2() Write to the PMC Address (long) MWACH pl_memucwrt2() Write to the PMC Address (unsigned char) MWACH pl_memuswrt2() Write to the PMC Address (unsigned short) MWACH pl_memulwrt2() Write to the PMC Address (unsigned long) MWACH - pl_memc() Get Pointer to the PMC Address (char *) - - pl_mems() Get Pointer to the PMC Address (short *) - - pl_meml() Get Pointer to the PMC Address (long *) - - pl_memuc() Get Pointer to the PMC Address (unsigned char *) - - pl_memus() Get Pointer to the PMC Address (unsigned short *) - - pl_memul() Get Pointer to the PMC Address (unsigned long *) - - pl_membrd() Read from the PMC Address - - pl_membwrt() Write to the PMC Address - - pl_memc2() Get Pointer to the PMC Address (char *) - - pl_mems2() Get Pointer to the PMC Address (short *) - - pl_meml2() Get Pointer to the PMC Address (long *) - - pl_memuc2() Get Pointer to the PMC Address (unsigned char *) - - pl_memus2() Get Pointer to the PMC Address (unsigned short *) - - pl_memul2() Get Pointer to the PMC Address (unsigned long *) - M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported -20-

31 B EN/01 3.FUNCTION REFERENCE READ SYSTEM INFORMATION No. Name Content Available task pl_sysinfrd() Read CNC Information MWACH pl_symcmt2() Read Symbol and Comment in LADDER Program MWACH (16 characters symbol is available) pl_symcmt() Read Symbol and Comment in LADDER Program MWACH pl_message() Read a Message in LADDER Program MWACH M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported ACCESS TO THE EXTENDED NONVOLATILE MEMORY No. Name Content Available task pl_kpmrd() Read from the Extended Nonvolatile Memory MWACH pl_kpmwrt() Write to the Extended Nonvolatile Memory MWACH pl_kpmsiz() Get Size of the Extended Nonvolatile Memory MWACH M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported CHARACTER DISPLAY No. Name Content Available task pl_dspopen4() Initialize the Character Screen M (80 Columns x 30 Lines) pl_dspopen() Initialize a Character Screen M (80 Columns x 25 Lines or 40 Columns x 16 Lines) pl_dspclr() Erase the Entire Screen MW pl_dspclrl() Clear Lines MW pl_dspclrc() Clear Columns MW pl_dsppos() Set a Display Position MW pl_dspcolor() Set a Display Attribute MW pl_dspattr() Change Attribute of the Characters Being Displayed MW pl_dspstr() Display ASCII Characters MW pl_dspstrw() Display Characters MW (Kanji, Hiragana and Special Characters) pl_dsptrblr() Display Hex Size Characters MW pl_cursor() Display Cursor MW pl_dspchar() Display Characters MW (ASCII, Kanji and Hiragana) pl_dspsave() Save the Character Screen MW pl_dspresave() Restore the Character Screen MW pl_dspcntl() Control the Screen MW pl_backcolor() Set Background Color of the Character Screen MW pl_dsppalette() Set Palette for Character Screen MW pl_dspopen2() Initialize the Character Screen M (74 Columns x 27 Lines) pl_dspopen3() Initialize the Character Screen M (74 Columns x 30 Lines) initreq_printf() Initialize printf() MW M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported -21-

32 3.FUNCTION REFERENCE B EN/01 GRAPHIC DISPLAY No. Name Content Available task pl_grpopen() Open the Graphic Screen M pl_grpclose() Close the Graphic Screen M pl_grpclr() Clear the Graphic Screen MW pl_grpdspon() Display or Hide the Graphic Screen MW pl_grplntyp() Set a Graphic Line Type MW pl_grpcolor() Set a Graphic Color MW pl_grpline() Draw Straight Lines MW pl_grparc() Draw an Arc MW pl_paint() Paint MW pl_grpsft() Shift MW pl_grpstatus() Get Graphic Screen Status MW pl_grpclr2() Erase the Square MW pl_grppalette() Set Palette for the Graphic Screen MW - pl_grpopen2() Open the Graphic Screen (432 dots x 592 dots) - M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported READER / PUNCHER INTERFACE No. Name Content Available task pl_rsopen2() Open the Reader / Puncher Interface C pl_rsclose2() Close the Reader / Puncher Interface C pl_rsrd2() Read from the Reader / Puncher Interface C pl_rswrt2() Write to the Reader / Puncher Interface C pl_fopen2() Open the Reader / Puncher Interface C (for FANUC Handy File) pl_fdir2() Get the File Information C pl_fdel2() Delete the File C pl_rsopen() Open the Reader / Puncher Interface C pl_rsclose() Close the Reader / Puncher Interface C pl_rsrd() Read from the Reader / Puncher Interface C pl_rswrt() Write to the Reader / Puncher Interface C pl_fopen() Open the Reader / Puncher Interface C (for FANUC Handy File) pl_fdir() Get the File Information C pl_fdel() Delete the File C M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported -22-

33 B EN/01 3.FUNCTION REFERENCE CNC WINDOW No. Name Content Available task pl_nc_windr() CNC Window Function (Read) No. 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 50, 153 MWACH Others MWAC pl_nc_windw() CNC Window Function (Write) MWAC - pl_exin() External Data - M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported CNC PROGRAM No. Name Content Available task pl_nc_dwnstart2() Start Registration of the CNC Program MWAC pl_nc_download2() Register the CNC Program MWAC pl_nc_dwnend2() End Registration of the CNC Program MWAC - pl_nc_vrfstart2() Start Verification of the CNC Program - - pl_nc_verify2() Verify the CNC Program - - pl_nc_vrfend2() End Verification of the CNC Program pl_nc_dncstart2() Start DNC running of the CNC Program MWAC pl_nc_dnc2() Run the CNC Program (DNC running) MWAC pl_nc_dncend2() End DNC Running of the CNC Program MWAC pl_nc_search2_8d() Search the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_search2() Search the CNC Program MWAC pl_nc_delall2() Delete All CNC Programs MWAC pl_nc_delete2_8d() Delete the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_delete2() Delete the CNC Program MWAC pl_nc_upstart2_8d() Start Reading of the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_upstart2() Start Reading of the CNC Program MWAC pl_nc_upload2() Read the CNC Program MWAC pl_nc_upend2() End Reading of the CNC Program MWAC pl_nc_dir2() Read the CNC Program Memory Information MWAC pl_nc_pdirstart2_8d() Start Reading of the CNC Program List MWAC (Supported 8 Digits Program Number) pl_nc_pdirstart2() Start Reading of the CNC Program List MWAC pl_nc_progdir2() Read the CNC Program List MWAC pl_nc_pdirend2() End Reading of the Program List MWAC pl_nc_dwnstart() Start Registration of the CNC Program MWAC pl_nc_download() Register the CNC Program MWAC pl_nc_dwnend() End Registration of the CNC Program MWAC - pl_nc_vrfstart() Start Verification of the CNC Program - - pl_nc_verify() Verify the CNC Program - - pl_nc_vrfend() End Verification of the CNC Program

34 3.FUNCTION REFERENCE B EN/01 No. Name Content Available task pl_nc_dncstart() Start DNC running of the CNC Program MWAC pl_nc_dnc() Run the CNC Program (DNC running) MWAC pl_nc_dncend() End DNC Running of the CNC Program MWAC pl_nc_search_8d() Search the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_search() Search the CNC Program MWAC pl_nc_delall() Delete All CNC Programs MWAC pl_nc_delete_8d() Delete the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_delete() Delete the CNC Program MWAC pl_nc_upstart_8d() Start Reading of the CNC Program MWAC (Supported 8 Digits Program Number) pl_nc_upstart() Start Reading of the CNC Program MWAC pl_nc_upload() Read the CNC Program MWAC pl_nc_upend() End Reading of the CNC Program MWAC pl_nc_dir() Read the CNC Program Memory Information MWAC pl_nc_pdirstart_8d() Start Reading of the CNC Program List MWAC (Supported 8 Digits Program Number) pl_nc_pdirstart() Start Reading of the CNC Program List MWAC pl_nc_progdir() Read the CNC Program List MWAC pl_nc_pdirend() End Reading of the Program List MWAC M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported CHARACTER CODE CONVERSION No. Name Content Available task pl_asciso() Convert Characters from ASCII to ISO Code MWACH pl_isoasc() Convert Characters from ISO to ASCII Code MWACH M: Main Task, W: Window Task, A: Alarm Task, C: Communication Task, H: High-level Task, -: Not supported -24-

35 B EN/01 3.FUNCTION REFERENCE 3.2 SYSTEM CALL Read the Task Timer Value os_show_tim #include <oscall.h> void os_show_tim(unsigned long *time) ; *time: Timer value This function reads a timer value. The unit of a timer value is the tick: one tick = eight msec. This function reads the timer value of the timer specific to each task. A timer value read with this function does not fully match the actually elapsed time. To simply read time, use the clock() function, which has a higher precision. -25-

36 3.FUNCTION REFERENCE B EN/ Set the Task Timer Value os_set_tim #include <oscall.h> void os_set_tim(unsigned long new_time, unsigned long *old_time); new_time: *old_time: New timer value Old timer value This function sets a timer value. This function reads the timer value of the timer specific to each task. A timer value read with this function does not fully match the actually elapsed time. To simply read time, use the clock function, which has a higher precision. -26-

37 B EN/01 3.FUNCTION REFERENCE Wait for the Timer Value os_sync_tim #include <oscall.h> unsigned short os_sync_tim(unsigned long wakeup_time); wakeup_time: EC_TIMOUT: Timer value (0x011a) Normal termination. This function makes the task wait until specified time comes. No other tasks can be held in wait state. This instruction does not return the error value 0. When specified time has come, the error value "EC_TIMOUT" is returned. Actually, the task is held for the period ("wakeup_time" - current time). If the "wakeup_time" is less than the current time (that is, if a past point time is specified), the task is not held in wait state. Before this function can be executed, the current time must be read using os_show_tim(). In wakeup_time, a value not greater than 7FFFFFFFh (198 days, 20 hours, 11 minutes, 9 seconds, and 180 msec) may be set. The unit of a time value to be specified in "wakeup_time" is the tick (= 8 msec). -27-

38 3.FUNCTION REFERENCE B EN/ Wait for Time os_wait_tim #include <oscall.h> unsigned short os_wait_tim(unsigned long timeout_value); timeout_value: EC_TIMOUT: Wait time (0x011a) Normal completion This function makes the task wait for a specified time. No other tasks can be held in wait state. This instruction does not return the error value 0. When specified time has come, the error value "EC_TIMOUT" is returned. The task is held in wait state for the time specified in "timeout_value". In "timeout_value", a value not greater than FFFFFFFFH (397 days, 16 hours, 22 minutes, 18 seconds, and 360 msec) may be set. The unit of a time value to be specified in "timeout_value" is the tick (= 8 msec). -28-

39 B EN/01 3.FUNCTION REFERENCE Create an Event Flag os_make_flg #include <oscall.h> unsigned short os_make_flg(unsigned char event_flag_id); event_flag_id: Event flag ID 0: Normal termination EC_FLGID: (0x0107) Event flag ID error EC_EXSTFLG: (0x0111) The event flag already exists. This function creates an event flag. The size of an event flag is 32 bits. (Thirty-two flags make up one group.) Before an event flag can be used, this function must be issued. -29-

40 3.FUNCTION REFERENCE B EN/ Delete the Event Flag os_delt_flg #include <oscall.h> unsigned short os_delt_flg(unsigned char event_flag_id); event_flag_id: Event flag ID 0: Normal termination EC_FLGID: (0x0107) Event flag ID error EC_NXSTFLG: (0x0112) The event flag does not exists. This function deletes an event flag. The error code "EC_DELFLG" is returned to the task that possessed a deleted event flag. -30-

41 B EN/01 3.FUNCTION REFERENCE Set the Event Flag os_sign_flg #include <oscall.h> unsigned short os_sign_flg(unsigned char event_flag_id, unsigned long flag_on_message); event_flag_id: Event flag ID flag_on_message: Flag pattern 0: Normal completion EC_FLGID: (0x0107) Event flag ID error EC_NXSTFLG: (0x0112) The event flag does not exists. This function sets an event flag. A flag is recorded in the image of the event flag. -31-

42 3.FUNCTION REFERENCE B EN/ Wait for the Event Flag os_wait_flg #include <oscall.h> unsigned short os_wait_flg(unsigned char event_flag_id, unsigned long wait_message, unsigned short and_or, long wait_limit, unsigned long *return_message); event_flag_id: Event flag ID wait_message: Flag pattern and_or: 0:AND,1:OR wait_limit: Be sure to set 0 (*). return_message: When zero (AND) is set in "and_or", zero is returned at all times. When one (OR) is set in "and_or", the signaled flags are returned. 0: Normal completion EC_FLGID: (0x0107) Event flag ID error EC_NXSTFLG: (0x0112) The event flag does not exists. EC_DELFLG: (0x0117) The event flag was deleted. This function makes the task wait until the event flag is signaled. When "AND_W(0)" is set in "and_or", an "AND" wait is specified. In this case, the system waits for all flags specified in "wait_message" to be signaled. When "OR_W(1)" is set, an "OR" wait is specified. In this case, the system waits for at least one of the flags specified in "wait_message" to be signaled. -32-

43 B EN/01 3.FUNCTION REFERENCE Clear the Event Flag os_clar_flg #include <oscall.h> unsigned short os_clar_flg(unsigned char event_flag_id, unsigned long clear_message); event_flag_id: clear_message: Event flag ID Flag pattern 0: Normal completion EC_FLGID: (0x0107) Event flag ID error EC_NXSTFLG: (0x0112) The event flag does not exists. This function clears an event flag. The flag specified in "clear_message" of the image of an event flag is cleared. -33-

44 3.FUNCTION REFERENCE B EN/ Set the Event Flag (Pulse type) os_puls_flg #include <oscall.h> unsigned short os_puls_flg(unsigned char event_flag_id, unsigned long puls_message); event_flag_id: puls_message: Event flag ID Flag pattern 0: Normal completion EC_FLGID: (0x0107) Event flag ID error EC_NXSTFLG: (0x0112) The event flag does not exists. This function sets an event flag. A signaled flag is recorded in the image of the event flag. -34-

GE Fanuc Automation Europe. Computer Numerical Controls. I/O Link II. Connection Manual B-62714EN/04 TECHNOLOGY AND MORE

GE Fanuc Automation Europe. Computer Numerical Controls. I/O Link II. Connection Manual B-62714EN/04 TECHNOLOGY AND MORE GE Fanuc Automation Europe Computer Numerical Controls I/O Link II Connection Manual B-62714EN/04 TECHNOLOGY AND MORE No part of this manual may be reproduced in any form. All specifications and designs

More information

GE Fanuc Automation Europe. Computer Numerical Controls FAPT PICTURE. for Windows. Operator s Manual B-66244EN/02 TECHNOLOGY AND MORE

GE Fanuc Automation Europe. Computer Numerical Controls FAPT PICTURE. for Windows. Operator s Manual B-66244EN/02 TECHNOLOGY AND MORE GE Fanuc Automation Europe Computer Numerical Controls FAPT PICTURE for Windows Operator s Manual B-66244EN/02 TECHNOLOGY AND MORE B-66244EN/02 SAFETY PRECAUTIONS SAFETY PRECAUTIONS This manual includes

More information

GE Fanuc Automation Europe. Computer Numerical Controls. FANUC DeviceNet Board. Operator s Manual B-63404EN/03 TECHNOLOGY AND MORE

GE Fanuc Automation Europe. Computer Numerical Controls. FANUC DeviceNet Board. Operator s Manual B-63404EN/03 TECHNOLOGY AND MORE GE Fanuc Automation Europe Computer Numerical Controls FANUC DeviceNet Board Operator s Manual B-63404EN/03 TECHNOLOGY AND MORE B-63404EN/03 SAFETY PRECAUTIONS SAFETY PRECAUTIONS This section describes

More information

GE Fanuc Automation. Computer Numerical Control Products. Series 15i/150i-Model A Programming Manual (Macro Compiler/Macro Executor)

GE Fanuc Automation. Computer Numerical Control Products. Series 15i/150i-Model A Programming Manual (Macro Compiler/Macro Executor) GE Fanuc Automation Computer Numerical Control Products Series 15i/150i-Model A Programming Manual (Macro Compiler/Macro Executor) GFZ-63323EN-2/01 November 2000 Warnings, Cautions, and Notes as Used in

More information

GE Fanuc Automation. Series 30i-Model A Series 300i-Model A Series 300is-Model A. Macro Compiler / Macro Executor. Computer Numerical Control Products

GE Fanuc Automation. Series 30i-Model A Series 300i-Model A Series 300is-Model A. Macro Compiler / Macro Executor. Computer Numerical Control Products GE Fanuc Automation Computer Numerical Control Products Series 30i-Model A Series 300i-Model A Series 300is-Model A Macro Compiler / Macro Executor Programming Manual GFZ-63943EN-2/01 July 2003 Warnings,

More information

GE Fanuc Automation. Computer Numerical Control Products. DeviceNet Board. Operator's Manual. GFZ-63404EN/03 March FANUC CNC Controls

GE Fanuc Automation. Computer Numerical Control Products. DeviceNet Board. Operator's Manual. GFZ-63404EN/03 March FANUC CNC Controls GE Fanuc Automation Computer Numerical Control Products DeviceNet Board Operator's Manual GFZ-63404EN/03 March 2001 FANUC CNC Controls Warnings, Cautions, and Notes as Used in this Publication GFL-001

More information

FANUC OPEN CNC OPERATOR S MANUAL BASIC OPERATION PACKAGE 2 B-63924EN/01

FANUC OPEN CNC OPERATOR S MANUAL BASIC OPERATION PACKAGE 2 B-63924EN/01 FANUC OPEN CNC BASIC OPERATION PACKAGE 2 OPERATOR S MANUAL B-63924EN/01 No part of this manual may be reproduced in any form. All specifications and designs are subject to change without notice. The export

More information

GE Fanuc Automation. Series 0i Model A. Computer Numerical Control Products. Connection Manual (Hardware)

GE Fanuc Automation. Series 0i Model A. Computer Numerical Control Products. Connection Manual (Hardware) GE Fanuc Automation Computer Numerical Control Products Series 0i Model A Connection Manual (Hardware) GFZ-63503EN/01 May 2000 Warnings, Cautions, and Notes as Used in this Publication GFL-001 Warning

More information

GE Fanuc Automation. FAPT Picture for Windows. Computer Numerical Control Products. Operator's Manual

GE Fanuc Automation. FAPT Picture for Windows. Computer Numerical Control Products. Operator's Manual GE Fanuc Automation Computer Numerical Control Products FAPT Picture for Windows Operator's Manual GFZ-66244EN/02 May 2001 Warnings, Cautions, and Notes as Used in this Publication GFL-001 Warning Warning

More information

OPERATOR S MANUAL B-63734EN/01

OPERATOR S MANUAL B-63734EN/01 Machine Remote Diagnosis Package OPERATOR S MANUAL B-63734EN/01 No part of this manual may be reproduced in any form. All specifications and designs are subject to change without notice. The export of

More information

GE Fanuc Automation. Series 16i / 18i / 21i Model TA Manual Guide. Computer Numerical Control Products. Operator's Manual

GE Fanuc Automation. Series 16i / 18i / 21i Model TA Manual Guide. Computer Numerical Control Products. Operator's Manual GE Fanuc Automation Computer Numerical Control Products Series 16i / 18i / 21i Model TA Manual Guide Operator's Manual B-63344EN/01 July 1998 Warnings, Cautions, and Notes as Used in this Publication GFL-001

More information

GE Fanuc Automation. PROFIBUS-DP Board. Computer Numerical Control Products. Operator's Manual

GE Fanuc Automation. PROFIBUS-DP Board. Computer Numerical Control Products. Operator's Manual GE Fanuc Automation Computer Numerical Control Products PROFIBUS-DP Board Operator's Manual GFZ-62924EN/03 November 1999 Warnings, Cautions, and Notes as Used in this Publication GFL-001 Warning Warning

More information

GE Fanuc Automation. Open CNC Ladder Editing Package (Windows) Computer Numerical Control Products. Operator's Manual

GE Fanuc Automation. Open CNC Ladder Editing Package (Windows) Computer Numerical Control Products. Operator's Manual GE Fanuc Automation Computer Numerical Control Products Open CNC Ladder Editing Package (Windows) Operator's Manual GFZ-63484EN/02 August 2000 Warnings, Cautions, and Notes as Used in this Publication

More information

GE Fanuc Automation. Open CNC CNC Screen Display Function. Computer Numerical Control Products. Operator's Manual

GE Fanuc Automation. Open CNC CNC Screen Display Function. Computer Numerical Control Products. Operator's Manual GE Fanuc Automation Computer Numerical Control Products Open CNC CNC Screen Display Function Operator's Manual GFZ-63164EN/03 December 1999 Warnings, Cautions, and Notes as Used in this Publication GFL-001

More information

Computer Numerical Control Products. Basic Operation Package 1 (BOP 1) for Windows 95/NT

Computer Numerical Control Products. Basic Operation Package 1 (BOP 1) for Windows 95/NT GE Fanuc Automation Computer Numerical Control Products Basic Operation Package 1 (BOP 1) for Windows 95/NT Operator's Manual GFZ-62994EN/01 December 1997 (with Supplementary Information) Warnings, Cautions,

More information

=== Be sure to read this note. === MISRA C Rule Checker SQMlint V.1.03 Release 00B Release Notes

=== Be sure to read this note. === MISRA C Rule Checker SQMlint V.1.03 Release 00B Release Notes === Be sure to read this note. === MISRA C Rule Checker SQMlint V.1.03 Release 00B Release Notes Renesas Solutions Corporation Oct. 16, 2010 Welcome to MISRA 1 C Rule Checker SQMlint V.1.03 Release 00

More information

Byte Ordering. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Byte Ordering. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University Byte Ordering Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Memory Model Physical memory DRAM chips can read/write 4, 8, 16 bits DRAM modules

More information

FA SYSTEM FOR PC OPERATORS MANUAL B 75044EN/02

FA SYSTEM FOR PC OPERATORS MANUAL B 75044EN/02 FA SYSTEM FOR PC OPERATORS MANUAL B 75044EN/02 FANUC LTD, 1994 No part of this manual may be reproduced in any form. All specifications and designs are subject to change without notice. In this manual

More information

Memory Upgrade for the Fanuc 16B (0010) Series CNC FROM Module Installation

Memory Upgrade for the Fanuc 16B (0010) Series CNC FROM Module Installation Memory Upgrade for the Fanuc B () Series CNC FROM Module Installation Installation Instructions Memex Automation Harvester Rd., Burlington, Ontario Canada LN N Phone: -- Fax: -- Memex Automation All rights

More information

Byte Ordering. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Byte Ordering. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University Byte Ordering Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu SSE2030: Introduction to Computer Systems, Spring 2018, Jinkyu Jeong (jinkyu@skku.edu)

More information

DriveWizard Plus Instruction Manual

DriveWizard Plus Instruction Manual DriveWizard Plus Instruction Manual To properly use the product, read this manual thoroughly. MANUAL NO. TOEP C730600 20C Table of Contents Safety Symbols and Markings...4 Manual Overview...5 Related Manuals...5

More information

GE Fanuc Automation Computer Numerical Control Products. CNC Setting Tool. Operator s Manual, GFZ-64174EN/01. September 2004

GE Fanuc Automation Computer Numerical Control Products. CNC Setting Tool. Operator s Manual, GFZ-64174EN/01. September 2004 GE Fanuc Automation Computer Numerical Control Products CNC Setting Tool Operator s Manual, GFZ-64174EN/01 September 2004 Warnings, Cautions, and Notes as Used in this Publication GFL-002 Warning Warning

More information

ASPRS LiDAR SPRS Data Exchan LiDAR Data Exchange Format Standard LAS ge Format Standard LAS IIT Kanp IIT Kan ur

ASPRS LiDAR SPRS Data Exchan LiDAR Data Exchange Format Standard LAS ge Format Standard LAS IIT Kanp IIT Kan ur ASPRS LiDAR Data Exchange Format Standard LAS IIT Kanpur 1 Definition: Files conforming to the ASPRS LIDAR data exchange format standard are named with a LAS extension. The LAS file is intended to contain

More information

Series 0ί -MD Mate CNC STANDARD FEATURES

Series 0ί -MD Mate CNC STANDARD FEATURES STANDARD FEATURES Axis Control Digital Servo Function 1 Controlled Path Simultaneously controlled axes: Up to maximum of 3 Serial Encoder Interface Axis Name Selected from X,Y,Z and U,V,W,A,B,C Spindle

More information

FAPT PICTURE & FPAssist

FAPT PICTURE & FPAssist FAPT PICTURE & FPAssist For Windows OPERATOR S MANUAL No part of this manual may be reproduced in any form. All specifications and designs are subject to change without notice. In this manual we have tried

More information

Character LCD Interface for ez80acclaim! MCUs

Character LCD Interface for ez80acclaim! MCUs Application Note Character LCD Interface for ez80acclaim! MCUs AN015902-0708 Abstract This Application Note provides Character LCD driver routines, coded in ANSI C, for Zilog s ez80acclaim! Flash microcontroller-based

More information

Memory Upgrade for the Fanuc 15B CNC

Memory Upgrade for the Fanuc 15B CNC Memory Upgrade for the Fanuc B CNC Installation Instructions Copyright Memex Automation Inc. Harvester Road Burlington, Ontario Canada LN N Ph: -- Fax: -- www.memex.ca Part of the Astrix Group of Companies

More information

GE Fanuc Automation. Open CNC DNC Operation Management Package. Computer Numerical Control Products. Operator s Manual

GE Fanuc Automation. Open CNC DNC Operation Management Package. Computer Numerical Control Products. Operator s Manual GE Fanuc Automation Computer Numerical Control Products Open CNC DNC Operation Management Package Operator s Manual GFZ-63214EN/01 February 1999 Warnings, Cautions, and Notes as Used in this Publication

More information

Computers Programming Course 5. Iulian Năstac

Computers Programming Course 5. Iulian Năstac Computers Programming Course 5 Iulian Năstac Recap from previous course Classification of the programming languages High level (Ada, Pascal, Fortran, etc.) programming languages with strong abstraction

More information

PLC ONBOARD INSTRUCTION MANUAL

PLC ONBOARD INSTRUCTION MANUAL CNC 60/60S Series 64 PLC ONBOARD INSTRUCTION MANUAL BNP-B2213B(ENG) MELDAS, MELSEC and MELDASMAGIC are registered trademarks of Mitsubishi Electric Corporation. Other company and product names that appear

More information

ECE2049-E18 Lecture 6 Notes 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review

ECE2049-E18 Lecture 6 Notes 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review ECE2049-E18 Lecture 6 Notes 1 ECE2049: Embedded Computing in Engineering Design E Term 2018 Lecture #6: Exam Review Administrivia Exam 1: Next Tuesday (6/5) HW4: Short assignment, due Tuesday Lab 1: Due

More information

National Aeronautics and Space and Administration Space Administration. cfe Release 6.6

National Aeronautics and Space and Administration Space Administration. cfe Release 6.6 National Aeronautics and Space and Administration Space Administration cfe Release 6.6 1 1 A Summary of cfe 6.6 All qualification testing and documentation is now complete and the release has been tagged

More information

L2 - C language for Embedded MCUs

L2 - C language for Embedded MCUs Formation C language for Embedded MCUs: Learning how to program a Microcontroller (especially the Cortex-M based ones) - Programmation: Langages L2 - C language for Embedded MCUs Learning how to program

More information

GE Fanuc Automation. Symbolic CAP T Basic Module V1. Computer Numerical Control Products. Operator s Manual

GE Fanuc Automation. Symbolic CAP T Basic Module V1. Computer Numerical Control Products. Operator s Manual GE Fanuc Automation Computer Numerical Control Products Symbolic CAP T Basic Module V1 Operator s Manual GFZ-62824EN/02 November 1998 Warnings, Cautions, and Notes as Used in this Publication GFL-001 Warning

More information

A Fast Review of C Essentials Part I

A Fast Review of C Essentials Part I A Fast Review of C Essentials Part I Structural Programming by Z. Cihan TAYSI Outline Program development C Essentials Functions Variables & constants Names Formatting Comments Preprocessor Data types

More information

GE Fanuc Automation. Open CNC DNC Operation Management Package. Operator's Manual. Computer Numerical Control Products

GE Fanuc Automation. Open CNC DNC Operation Management Package. Operator's Manual. Computer Numerical Control Products GE Fanuc Automation Computer Numerical Control Products Open CNC DNC Operation Management Package Operator's Manual B-63214EN/01 Febuary 1999 Warnings and notices for this publication GFLE-003 Warning

More information

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04

AN703. Micro64/128. Accessing the 36k of SRAM 12/3/04 AN703 Micro64/128 Accessing the 36k of SRAM 12/3/04 Introduction: Micro64/128 has a total of 36k of SRAM. 4 k of SRAM is built into the processor an additional 32k of SRAM is available inside the Micro64/128

More information

Instruction Set Architecture

Instruction Set Architecture C Fortran Ada etc. Basic Java Instruction Set Architecture Compiler Assembly Language Compiler Byte Code Nizamettin AYDIN naydin@yildiz.edu.tr http://www.yildiz.edu.tr/~naydin http://akademik.bahcesehir.edu.tr/~naydin

More information

Lecture 13: I/O I/O. Interrupts. How?

Lecture 13: I/O I/O. Interrupts. How? Lecture 13: I/O I/O Interrupts MS-DOS Function Calls Input,Output, File I/O Video Keyboard Getting data into your program: define it in the data area use immediate operands Very limiting Most programs

More information

Engineering Tool for PC SDWP001 Operating Manual

Engineering Tool for PC SDWP001 Operating Manual Inverter HF-520/HF-X20 Series SF-520 Series Engineering Tool for PC SDWP001 Operating Manual 1 Manual No. DM2308E-1 Table of Contents Safety Symbols and Markings...4 Safety Notes and Instructions...4 Manual

More information

FANUC PLC Parts. GE Fanuc Automation. Series 15i / 150i Model A Remote Buffer. Computer Numerical Control Products. Descriptions Manual

FANUC PLC Parts. GE Fanuc Automation. Series 15i / 150i Model A Remote Buffer. Computer Numerical Control Products. Descriptions Manual GE Fanuc Automation Computer Numerical Control Products Series 15i / 150i Model A Remote Buffer Descriptions Manual GFZ-63322EN-1/01 July 1999 FANUC PLC Parts Warnings, Cautions, and Notes as Used in this

More information

SmartHeap for Multi-Core

SmartHeap for Multi-Core SmartHeap for Multi-Core Getting Started and Platform Guide for Linux Version 11.2 SmartHeap and HeapAgent are trademarks of Compuware Corporation. All other trademarks are the property of their respective

More information

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22 e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interfacing External Devices using Embedded C Module No: CS/ES/22 Quadrant 1 e-text In this lecture interfacing of external devices

More information

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19

Data Storage. August 9, Indiana University. Geoffrey Brown, Bryce Himebaugh 2015 August 9, / 19 Data Storage Geoffrey Brown Bryce Himebaugh Indiana University August 9, 2016 Geoffrey Brown, Bryce Himebaugh 2015 August 9, 2016 1 / 19 Outline Bits, Bytes, Words Word Size Byte Addressable Memory Byte

More information

Machine Controller MP900/MP2000 Series New Ladder Editor USER'S MANUAL

Machine Controller MP900/MP2000 Series New Ladder Editor USER'S MANUAL YASKAWA Machine Controller MP900/MP2000 Series New Ladder Editor USER'S MANUAL YASKAWA MANUAL NO. SIEZ-C887-13.2B Copyright 2001 YASKAWA ELECTRIC CORPORATION All rights reserved. No part of this publication

More information

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS) DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER CODE: EC6504 UNIT-1 1. How many memory locations are available in 8086 microprocessor? 2. What are the flags available in 8086

More information

Instruction Sets: Characteristics and Functions

Instruction Sets: Characteristics and Functions Instruction Sets: Characteristics and Functions Chapter 10 Lesson 15 Slide 1/22 Machine instruction set Computer designer: The machine instruction set provides the functional requirements for the CPU.

More information

FANUC Series 30+-MODEL B FANUC Series 31+-MODEL B FANUC Series 32+-MODEL B. For Lathe System OPERATOR'S MANUAL B-64484EN-1/02

FANUC Series 30+-MODEL B FANUC Series 31+-MODEL B FANUC Series 32+-MODEL B. For Lathe System OPERATOR'S MANUAL B-64484EN-1/02 FANUC Series 30+-MODEL B FANUC Series 31+-MODEL B FANUC Series 32+-MODEL B For Lathe System OPERATOR'S MANUAL B-64484EN-1/02 No part of this manual may be reproduced in any form. All specifications and

More information

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to? ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.

More information

B Interface description 12.01/

B Interface description 12.01/ B 95.3530.2 Interface description 12.01/00340396 Contents 1 Introduction 1.1 Preface... 3 1.2 Typographical conventions... 4 1.2.1 Warning signs... 4 1.2.2 Note signs... 4 1.2.3 Presentation... 4 2 Protocol

More information

Technical Questions. Q 1) What are the key features in C programming language?

Technical Questions. Q 1) What are the key features in C programming language? Technical Questions Q 1) What are the key features in C programming language? Portability Platform independent language. Modularity Possibility to break down large programs into small modules. Flexibility

More information

MEMEX FANUC METER (512K) HSL5/MME MEMORY UPGRADE INSTALLATION AND USER MANUAL M100704A

MEMEX FANUC METER (512K) HSL5/MME MEMORY UPGRADE INSTALLATION AND USER MANUAL M100704A MEMEX FANUC 9 1280 METER (512K) HSL5/MME MEMORY UPGRADE INSTALLATION AND USER MANUAL Memex Inc. 105-3425 Harvester Road, Burlington, Ontario Canada L7N 3N1 Phone: 905-635-3040 Fax: 905-631-9640 http://www.memex.ca

More information

Fanuc Focas Ethernet Driver Help Kepware, Inc.

Fanuc Focas Ethernet Driver Help Kepware, Inc. 2015 Kepware, Inc. 2 Table of Contents Table of Contents 2 4 Overview 4 External Dependencies 4 Install Focas Library 4 Device Setup 5 Communications Parameters 6 Unsolicited Transfer Control 7 Unsolicited

More information

ARM Cortex-M4 Programming Model

ARM Cortex-M4 Programming Model ARM Cortex-M4 Programming Model ARM = Advanced RISC Machines, Ltd. ARM licenses IP to other companies (ARM does not fabricate chips) 2005: ARM had 75% of embedded RISC market, with 2.5 billion processors

More information

Lab Overview. Lab Details. ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005

Lab Overview. Lab Details. ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005 ECEN 4613/5613 Embedded System Design Week #7 Spring 2005 Lab #4 2/23/2005 Lab Overview In this lab assignment, you will do the following: Add a serial EEPROM and an LCD to the hardware developed in Labs

More information

Chapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware

More information

Lecture 3. Review. CS 141 Lecture 3 By Ziad Kobti -Control Structures Examples -Built-in functions. Conditions: Loops: if( ) / else switch

Lecture 3. Review. CS 141 Lecture 3 By Ziad Kobti -Control Structures Examples -Built-in functions. Conditions: Loops: if( ) / else switch Lecture 3 CS 141 Lecture 3 By Ziad Kobti -Control Structures Examples -Built-in functions Review Conditions: if( ) / else switch Loops: for( ) do...while( ) while( )... 1 Examples Display the first 10

More information

Cat.No. V015-E1-1. NT-series. Host Interface Unit Direct Connection OPERATION MANUAL

Cat.No. V015-E1-1. NT-series. Host Interface Unit Direct Connection OPERATION MANUAL Cat.No. V5-E- NT-series Host Interface Unit Direct Connection OPERATION MANUAL NT-series Host Interface Unit Direct Connection Operation Manual Produced September 993 Notice: OMRON products are manufactured

More information

Computer Organization (II) IA-32 Processor Architecture. Pu-Jen Cheng

Computer Organization (II) IA-32 Processor Architecture. Pu-Jen Cheng Computer Organization & Assembly Languages Computer Organization (II) IA-32 Processor Architecture Pu-Jen Cheng Materials Some materials used in this course are adapted from The slides prepared by Kip

More information

EL2310 Scientific Programming

EL2310 Scientific Programming Lecture 11: Memory, Files and Bitoperations (yaseminb@kth.se) Overview Overview Lecture 11: Memory, Files and Bit operations Main function; reading and writing Bitwise Operations Lecture 11: Memory, Files

More information

13-1. This chapter explains how to use different objects.

13-1. This chapter explains how to use different objects. 13-1 13.Objects This chapter explains how to use different objects. 13.1. Bit Lamp... 13-3 13.2. Word Lamp... 13-5 13.3. Set Bit... 13-10 13.4. Set Word... 13-13 13.5. Function Key... 13-21 13.6. Toggle

More information

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls

Distributed Systems. How do regular procedure calls work in programming languages? Problems with sockets RPC. Regular procedure calls Problems with sockets Distributed Systems Sockets interface is straightforward [connect] read/write [disconnect] Remote Procedure Calls BUT it forces read/write mechanism We usually use a procedure call

More information

Reminder: compiling & linking

Reminder: compiling & linking Reminder: compiling & linking source file 1 object file 1 source file 2 compilation object file 2 library object file 1 linking (relocation + linking) load file source file N object file N library object

More information

Programming refresher and intro to C programming

Programming refresher and intro to C programming Applied mechatronics Programming refresher and intro to C programming Sven Gestegård Robertz sven.robertz@cs.lth.se Department of Computer Science, Lund University 2018 Outline 1 C programming intro 2

More information

TPEditor User Manual

TPEditor User Manual Table of Contents TPEditor User Manual Chapter 1 TPEditor Operation... 1-1 1-1 Recommended System Requirements... 1-1 1-2 TPEditor Software Installation... 1-1 1-3 Basic Introduction... 1-6 1-4 Skills

More information

Programming with μc/os-ii Operating System on the Ide68k Integrated Development Environment

Programming with μc/os-ii Operating System on the Ide68k Integrated Development Environment Programming with μc/os-ii Operating System on the Ide68k Integrated Development Environment by: Peter J. Fondse 1. Introduction. This document describes the IDE68K Integrated Development Environment and

More information

Chapter 6. Input Settings Screen

Chapter 6. Input Settings Screen Chapter 6 Input Settings Screen Table of contents Chapter 6 Input Settings Screen (Screen for Setting the Production Quantity and Speed, etc.) 6.1 Input Settings Screen What is an input settings screen?

More information

CS 326 Operating Systems C Programming. Greg Benson Department of Computer Science University of San Francisco

CS 326 Operating Systems C Programming. Greg Benson Department of Computer Science University of San Francisco CS 326 Operating Systems C Programming Greg Benson Department of Computer Science University of San Francisco Why C? Fast (good optimizing compilers) Not too high-level (Java, Python, Lisp) Not too low-level

More information

SYSdev Program Development Manual Version 4.3

SYSdev Program Development Manual Version 4.3 SYSdev Program Development Manual Version 4.3 Systems Engineering Associates, Inc. 14989 West 69th Avenue Arvada, Colorado 80007 U.S.A. Telephone: (303) 421-0484 Fax: (303) 421-8108 www.sea-seg.com 02/2004

More information

Manual 09/11 MN Z-EN. NZM-XATS-C Automatic Transfer Switch-Controller Modbus Communication Protocol

Manual 09/11 MN Z-EN. NZM-XATS-C Automatic Transfer Switch-Controller Modbus Communication Protocol Manual 09/11 MN01219007Z-EN NZM-XATS-C Automatic Transfer Switch-Controller Modbus Communication Protocol All brand and product names are trademarks or registered trademarks of the owner concerned. Emergency

More information

Memory and C/C++ modules

Memory and C/C++ modules Memory and C/C++ modules From Reading #5 and mostly #6 More OOP topics (templates; libraries) as time permits later Program building l Have: source code human readable instructions l Need: machine language

More information

Advanced Pointer & Data Storage

Advanced Pointer & Data Storage 18, 19: storage classes 14: Preprocessor & Polymorphism in C) 15 : command line building 26 : stdarg Advanced Pointer & Data Storage (for ch. 14, 15 18, 19, 26) Contents Preprocessor & Polymorphism in

More information

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites: C Programming Code: MBD101 Duration: 10 Hours Prerequisites: You are a computer science Professional/ graduate student You can execute Linux/UNIX commands You know how to use a text-editing tool You should

More information

Chaper 1: E10+ PLCs Host-Link Command Format

Chaper 1: E10+ PLCs Host-Link Command Format Chaper 1: E10+ PLCs Host-Link While an E10+ programmable logic controller is running, a host computer can send commands in the form of ASCII strings to the controller to read or write to the inputs, outputs,

More information

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) (Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all

More information

LCM-100 LCD Module User s Manual

LCM-100 LCD Module User s Manual LCM-100 LCD Module User s Manual Copyright This document is copyrighted, 2002, by Advantech Co, Ltd All rights are reserved Advantech Co, Ltd reserves the right to make improvements to the products described

More information

IDEA. User s Guide. Part No IDE02 Issue 1-0, April 1995 Printed in U.S.A. (183)

IDEA. User s Guide. Part No IDE02 Issue 1-0, April 1995 Printed in U.S.A. (183) IDEA User s Guide Part No. 17500IDE02 Issue 1-0, April 1995 Printed in U.S.A. (183) 4 FOREST PARKWAY, SHELTON, CONNECTICUT 06484 TEL: 203-926-5400 FAX: 203-929-0535 This manual has been developed by Nitsuko

More information

DX200 OPTIONS INSTRUCTIONS

DX200 OPTIONS INSTRUCTIONS DX200 OPTIONS INSTRUCTIONS FOR CMOS SAVE FUNCTION WITH FTP ADVANCED FEATURE OF DX200 EHTERNET FUNCTION Upon receipt of the product and prior to initial operation, read these instructions thoroughly, and

More information

Computer Science 322 Operating Systems Mount Holyoke College Spring Topic Notes: C and Unix Overview

Computer Science 322 Operating Systems Mount Holyoke College Spring Topic Notes: C and Unix Overview Computer Science 322 Operating Systems Mount Holyoke College Spring 2010 Topic Notes: C and Unix Overview This course is about operating systems, but since most of our upcoming programming is in C on a

More information

Lecture 03 Bits, Bytes and Data Types

Lecture 03 Bits, Bytes and Data Types Lecture 03 Bits, Bytes and Data Types Computer Languages A computer language is a language that is used to communicate with a machine. Like all languages, computer languages have syntax (form) and semantics

More information

Edition:2A ODM- 88. DVI Matrix Router USER MANUAL

Edition:2A ODM- 88. DVI Matrix Router USER MANUAL Edition:2A ODM- 88 DVI Matrix Router USER MANUAL ODM-88 Manual Page 2 ODM-88 Manual Page 3 Table of Contents 1 Introduction and Installation. 6 1.1 Key features... 6 1.2 ODM-88 Shipping Content... 6 1.3

More information

DEC HEX ACTION EXTRA DESCRIPTION

DEC HEX ACTION EXTRA DESCRIPTION PHRAGSOFT 128 X 64 PIXEL LCD DISPLAY DRIVER The display driver uses the equivalent of standard BBC Microcomputer VDU codes, however, because the display is monochrome, with a fixed resolution, there are

More information

31i-B5M 2/11/2016 Page 1

31i-B5M 2/11/2016 Page 1 STANDARD FEATURES Axis Control Digital Servo Function 1 Controlled Path 3 (up to maximum of 5) Simultaneously Controllable Axes (J801) (J803) Serial Encoder Interface Axis Names Selected from X,Y,Z,U,V,W,A,B,C

More information

ECE2049-E17 Lecture 6 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review

ECE2049-E17 Lecture 6 1. ECE2049: Embedded Computing in Engineering Design E Term Lecture #6: Exam Review ECE2049-E17 Lecture 6 1 ECE2049: Embedded Computing in Engineering Design E Term 2017 Lecture #6: Exam Review Administrivia Exam 1: Next Tuesday (6/6) HW2: Due Tonight at 7pm Lab 1: Due next Tuesday (6/6),

More information

Target Definition Builder. Software release 4.20

Target Definition Builder. Software release 4.20 Target Definition Builder Software release 4.20 July 2003 Target Definition Builder Printing History 1 st printing December 21, 2001 2 nd printing May 31, 2002 3 rd printing October 31, 2002 4 th printing

More information

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision )

AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision ) AFRecorder 4800R Serial Port Programming Interface Description For Software Version 9.5 (Last Revision 8-27-08) Changes from Version 9.2 1. The communication baud rate is raised to 9600. 2. Testing with

More information

ECE2049: Homework 1. Due: Thursday, 25 May 2017 by 7pm

ECE2049: Homework 1. Due: Thursday, 25 May 2017 by 7pm Due: Thursday, 25 May 2017 by 7pm Submission notes: For full credit, please show your work and denote your answers with a circle or a box. Always write and draw your diagrams neatly! We cannot be expected

More information

IAI Corporation Robot Controller X-SEL Series X-SEL-K. Sample Screen Manual. Mitsubishi Electric Corporation

IAI Corporation Robot Controller X-SEL Series X-SEL-K. Sample Screen Manual. Mitsubishi Electric Corporation IAI Corporation Robot Controller X-SEL Series X-SEL-K Sample Screen Manual Mitsubishi Electric Corporation Using the Samples The sample screen data and files such as the instruction manual can be used

More information

Representation of Information

Representation of Information Representation of Information CS61, Lecture 2 Prof. Stephen Chong September 6, 2011 Announcements Assignment 1 released Posted on http://cs61.seas.harvard.edu/ Due one week from today, Tuesday 13 Sept

More information

SIMATIC. Standard Software for S7-300 and S7-400 Standard Functions Part 2. Preface, Contents. Bit Logic Functions. Table Functions.

SIMATIC. Standard Software for S7-300 and S7-400 Standard Functions Part 2. Preface, Contents. Bit Logic Functions. Table Functions. SIMATIC Standard Software for S7-300 and S7-400 Standard Functions Part 2 Reference Manual Preface, Contents Bit Logic Functions Table Functions 2 Shift Functions 3 Move Function and Function Block 4 Timer

More information

CncGcoder Models HD & HDx Manual

CncGcoder Models HD & HDx Manual CncGcoder Models HD & HDx Manual Table of Contents WELCOME... 3 IN THE BOX... 4 Optional Accessories...4 HANDHELD OVERVIEW... 5 Overview...5 Charging the Battery...6 Turning On and Off...6 Plugging in

More information

'C/C++' Project/Code Tutorial for Code Composter Studio (CCS)

'C/C++' Project/Code Tutorial for Code Composter Studio (CCS) Introduction The purpose of this document is to explain how to create a 'C' or 'C++' code program in Code Composer Studio for Version 5.1 of the software. Students should be proficient in writing assembly

More information

Operation Manual First Edition

Operation Manual First Edition Ethernet Operation Manual First Edition Table of Contents 1. Overview 1 2. Interface Specifications 3 3. Interface Board 4 3.1 Name of Each Part 4 3.2 Monitor LED Indications 5 4. Modbus/TCP 6 4.1 Setup

More information

Special Topics for Embedded Programming

Special Topics for Embedded Programming 1 Special Topics for Embedded Programming ETH Zurich Fall 2018 Reference: The C Programming Language by Kernighan & Ritchie 1 2 Overview of Topics Microprocessor architecture Peripherals Registers Memory

More information

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite. EMBEDDED ARM TRAINING SUITE ARM SUITE INCLUDES ARM 7 TRAINER KIT COMPILER AND DEBUGGER THROUGH JTAG INTERFACE PROJECT DEVELOPMENT SOLUTION FOR ARM 7 e-linux LAB FOR ARM 9 TRAINING PROGRAM INTRODUCTION

More information

DSP Mapping, Coding, Optimization

DSP Mapping, Coding, Optimization DSP Mapping, Coding, Optimization On TMS320C6000 Family using CCS (Code Composer Studio) ver 3.3 Started with writing a simple C code in the class, from scratch Project called First, written for C6713

More information

EL6483: Brief Overview of C Programming Language

EL6483: Brief Overview of C Programming Language EL6483: Brief Overview of C Programming Language EL6483 Spring 2016 EL6483 EL6483: Brief Overview of C Programming Language Spring 2016 1 / 30 Preprocessor macros, Syntax for comments Macro definitions

More information

CS240: Programming in C. Lecture 2: Overview

CS240: Programming in C. Lecture 2: Overview CS240: Programming in C Lecture 2: Overview 1 Programming Model How does C view the world? Stack Memory code Globals 2 Programming Model Execution mediated via a stack function calls and returns local

More information

GE Fanuc Automation. Series 15 / 150 Model B for Machining Center. Computer Numerical Control Products. Descriptions Manual

GE Fanuc Automation. Series 15 / 150 Model B for Machining Center. Computer Numerical Control Products. Descriptions Manual GE Fanuc Automation Computer Numerical Control Products Series 15 / 150 Model B for Machining Center Descriptions Manual GFZ-62082E/04 April 1997 Warnings, Cautions, and Notes as Used in this Publication

More information

ECE 477 Digital Systems Senior Design Project. Module 10 Embedded Software Development

ECE 477 Digital Systems Senior Design Project. Module 10 Embedded Software Development 2011 by D. G. Meyer ECE 477 Digital Systems Senior Design Project Module 10 Embedded Software Development Outline Memory Models Memory Sections Discussion Application Code Organization Memory Models -

More information