
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
2/226
DRAW.NO.
Series 30i/ 300i/ 300is/ 31i/ 310i/ 310is/ 32i/ 320i/ 320is-MODEL A
C language executor library
(for conversion from PMC C language function)
Programming manual
Contents
1 GETTING STARTED ........................................................................................................................ 6
1.1 OVERVIEW ....................................................................................................................................... 7
1.2 APPLIED SOFTWARE...................................................................................................................... 8
1.3 RELATED DRAWING NUMBER....................................................................................................... 9
2 HOW TO MAKE APPLICATION..................................................................................................... 10
2.1 INSTALLATION OF THE "C LIBRARY FOR CONVERSION" ON A PERSONAL COMPUTER.... 11
2.2 CNC HARDWARE........................................................................................................................... 16
2.3 COMPATIBILITY WITH THE "C LIBRARY FOR C LANGUAGE BOARD"..................................... 17
2.4 CONVERSION POINTS.................................................................................................................. 20
3 FUNCTION REFERENCE............................................................................................................... 25
3.1 FUNCTION LIST ............................................................................................................................. 26
3.2 SYSTEM CALL................................................................................................................................ 33
3.2.1 Read the Task Timer Value ..................................................................................................... 33
3.2.2 Set the Task Timer Value ........................................................................................................34
3.2.3 Wait for the Timer Value .......................................................................................................... 35
3.2.4 Wait for Time............................................................................................................................ 36
3.2.5 Create an Event Flag............................................................................................................... 37
3.2.6 Delete the Event Flag .............................................................................................................. 38
3.2.7 Set the Event Flag ................................................................................................................... 39
3.2.8 Wait for the Event Flag ............................................................................................................ 40
3.2.9 Clear the Event Flag ................................................................................................................ 41
3.2.10 Set the Event Flag (Pulse type) ........................................................................................... 42
3.2.11 Create a Semaphore............................................................................................................ 43
3.2.12 Delete the Semaphore......................................................................................................... 44
3.2.13 Set the Semaphore .............................................................................................................. 45
3.2.14 Wait for the Semaphore....................................................................................................... 46
3.3 SWITCH SCREEN .......................................................................................................................... 47
3.3.1 Switch to the User Application Screen .................................................................................... 47
3.3.2 Wait for Switching to the User Application Screen .................................................................. 48
3.3.3 Switch to the CNC Screen....................................................................................................... 49
3.4 MDI KEYS ....................................................................................................................................... 50
3.4.1 MDI Key Code Table ............................................................................................................... 50
3.4.2 Read key.................................................................................................................................. 52
3.4.3 Control a Key-in Line ............................................................................................................... 54