3. Writing Your First Program
3.1 Libraries
ICP DAS provides the 7188xcl.lib function library for the I-7188XC(D)
module. The 7188xcl.lib is for programs of the large memory model and
is suitable for TC, BC++, MSC and MSVC++ compilers. All declared
functions are described in the header file,
7188xc.h
.
The location of latest Library:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/minios7/minios7_2.0/i-718
8xc/lib/
or CD: \Napdos\MiniOS7\MiniOS7_2.0\i-7188xc\lib
Hundreds of functions are supported in the 7188xcl.lib files as follows:
Function description Example
COM port
InstallCOM0, InstallCOM1, InstallCOM2 ……
IsCOM0, IsCOM1, IsCOM2 ……
ToCOM0, ToCOM1, ToCOM2 ……
ReadCom0, ReadCom1, ReadCom2 ……
EEPROM
WriteEEP, ReadEEP, EnableEEP, ProtectEEP
LED and 5-digit LED
LedOn, LedOff, Init5DigitLed, Show5DigitLedWithDot
Flash Memory
FlashReadId, FlashErase, FlashRead,
FlashWrite ……
Timer and Watchdog
Timer
TimerOpen, TimeClose, TimerResetVlaue,
TimerReadValue, StopWatchReset,
StopWatchRead, StopWatchStop
File
GetFileNo, GetFileName, GetFilePositionByNo,
GetFilePositionByName
Connect to 7000 series
modules
SendCmdTo7000, ReceiveResponseFrom7000
Programmable I/O
SetDio4Dir, SetDio4High, SetDio4Low, GetDio4
Others
Kbhit, Getch, Putch, LineInput, Scanf ……
Note:
For a more detailed description of the functions, please refer to
Appendix D: Library Function List.
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
29
Summary of Contents for I-7188XC Series
Page 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Page 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Page 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Page 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...