System.Vpu
 Function @ (Var Variable:All) : Integer;
 Function ABS ( Value:Real) : Real;
 Function ADDR (Var Variable:All) : Integer;
 Function ARCTAN ( Value:Real) : Real;
 Function CLEARBLANK ( String:String) : String;
 Function COPY ( Str:String;  Start:Integer;  Count:Integer) : String;
 Function COS ( Value:Real) : Real;
 Function CHR ( Value:Integer) : String;
 Function DATETIMETOSTR ( Date+Time:Real) : String;
 Function DATETOSTR ( Date:Real) : String;
 Function DAYOFWEEK ( Date:Real) : Integer;
 Function DEGTORAD ( Value:Real) : Real;
 Function ENCODEDATE ( Year:Word;  Month:Word;  Day:Word) : Real;
 Function ENCODETIME ( Hour:Word;  Min:Word;  Sec:Word;  msec:Word) : Real;
 Function EOF (Var Handle:Integer) : Boolean;
 Function EXP ( Value:Real) : Real;
 Function EXTRACTRES ( Resource Name:String;  Destination FileName:String) : Boolean;
 Function FILECONCAT ( Source:String;  Destination:String) : Boolean;
 Function FILECOPY ( Source:String;  Destination:String) : Boolean;
 Function FILEDELETE ( File Name:String) : Boolean;
 Function FILEEXISTS ( File Name:String) : Boolean;
 Function FILERENAME ( Old Name:String;  New Name:String) : Boolean;
 Function FLOATTOSTR ( Value:Real) : String;
 Function FORMATDATETIME ( Format:String;  DateTime:Real) : String;
 Function FRAC ( Value:Real) : Real;
 Function GETDVE ( DVE Name:String; Var Pointer ADRDVE:Integer) : Boolean;
 Function GETMAINHWND : Integer;
 Function GETSUNRISE ( Latitude:Real;  Longitude:Real) : Real;
 Function GETSUNSET ( Latitude:Real;  Longitude:Real) : Real;
 Function GETTASK ( Task Name:String) : Integer;
 Function GETVARLEN (Var AddrRequested:Integer; Var RetAddrStartVar:Integer; Var RetVarType:Integer) : Integer;
 Function GETVPUADDR ( Var Name:String) : Integer;
 Function GETVPUTYPE ( Var Name:String) : Integer;
 Function GETVPUVALUE ( Var Name:String) : String;
 Function HI ( Value:Integer) : Integer;
 Function HIWORD ( Value:Integer) : Integer;
 Function INT ( Value:Real) : Real;
 Function INTTOHEX ( Value:Integer;  Digits:Integer) : String;
 Function INTTOSTR ( Value:Integer) : String;
 Function ISET ( Value:Integer) : Boolean;
 Function LENGTH (Var String:String) : Byte;
 Function LN ( Value:Real) : Real;
 Function LO ( Value:Integer) : Integer;
 Function LOCASES ( String:String) : String;
 Function LOWORD ( Value:Integer) : Integer;
 Function NOT ( Variable:Boolean) : Boolean;
 Function NOW : Real;
 Function ORD ( Test:String) : Byte;
 Function POS ( Str:String;  Search:String) : Integer;
 Function READMEM ( Segment:Integer;  Offset:Integer) : Integer;
 Function READPORT ( Adresse:Integer) : Integer;
 Function SIN ( Value:Real) : Real;
 Function SQR ( Value:Real) : Real;
 Function SQRT ( Value:Real) : Real;
 Function STRTODATETIME ( String:String) : Real;
 Function STRTOFLOAT ( Value:String) : Real;
 Function STRTOINT ( Value:String) : Integer;
 Function STRTOTIME ( String:String) : Real;
 Function TESTBIT ( Word:Integer;  BitNum:Integer) : Boolean;
 Function TIMETOSTR ( Time:Real) : String;
 Function TRUNC ( Value:Real) : Integer;
 Function UPCASES ( String:String) : String;
 Function VPUNLOAD ( VPU Name:String) : Integer;
 Procedure CALLTASK ( Task Name:String);
 Procedure DELETE (Var Str:String;  Start:Integer;  Count:Integer);
 Procedure DIFFUSE ( Value:Integer);
 Procedure FILETEXTAPPEND (Var Handle:Integer;  File Name:String);
 Procedure FILETEXTCLOSE (Var Handle:Integer);
 Procedure FILETEXTOPEN (Var Handle:Integer;  File Name:String);
 Procedure FILLCHAR (Var Variable:All;  Count:Integer;  Value:Byte);
 Procedure FIXBIT (Var Word:Integer;  BitNum:Integer;  Value:Boolean);
 Procedure FREEMEM (Var Variable:Integer;  ByteCount:Integer);
 Procedure GETMEM (Var Variable:Integer;  ByteCount:Integer);
 Procedure INSERT ( SubStr:String; Var Str:String;  Position:Integer);
 Procedure MOVE (Var Source:All; Var Destination:All;  Count:Integer);
 Procedure PROCESSMESSAGES ( How Many Messages:Integer);
 Procedure READLN (Var Handle:Integer; Var String:String);
 Procedure RESETBIT (Var Word:Integer;  BitNum:Integer);
 Procedure RUNTASK ( Task Name:String;  Run:Boolean);
 Procedure SETBIT (Var Word:Integer;  BitNum:Integer);
 Procedure SETTASK ( Task Name:String;  ms:Integer);
 Procedure SETVPUVALUE ( Var Name:String;  Value:String);
 Procedure VAL ( Str:String; Var Target:Real; Var Status:Integer);
 Procedure VPLOAD ( VPU Name:String);
 Procedure WRITELN (Var Handle:Integer;  String:String);
 Procedure WRITEMEM ( Segment:Integer;  Offset:Integer;  Value:Integer);
 Procedure WRITEPORT ( Adresse:Integer;  Value:Integer);
EXCEL.Vpu
 Function ISEXCELOPEN : Boolean;
 Function READCELL ( Col:Word;  Row:Word) : String;
 Procedure CLOSEFILEEXCEL;
 Procedure CREATEFILEEXCEL;
 Procedure OPENFILEEXCEL ( FileExcel:String);
 Procedure QUITEXCEL;
 Procedure SAVEASEXCEL ( FileExcel:String);
 Procedure SAVEEXCEL;
 Procedure SELECTSHEET ( Sheet:String);
 Procedure STARTEXCEL ( Visible:Boolean);
 Procedure WRITECELL ( Col:Word;  Row:Word;  Value:String);
GESTFILE.Vpu
 Function COPYBLOCKSFROMPOS ( Source:String;  Destination:String;  Position:Integer) : Boolean;
 Function COPYBLOCKSTOPOS ( Source:String;  Destination:String;  Position:Integer) : Boolean;
 Function CHANGEDIRECTORY ( NameDir:String) : Boolean;
 Function DIRECTORYEXIST ( NameDir:String) : Boolean;
 Function DIRECTORYREMOVE ( NameDir:String) : Boolean;
 Function FILECREATE ( FileName:String) : Integer;
 Function FILEDELETE ( FileName:String) : Boolean;
 Function FILEEXTRACTEXT ( FileName:String) : String;
 Function FILEEXTRACTNAME ( FileName:String) : String;
 Function FILEEXTRACTPATH ( FileName:String) : String;
 Function FILEOPEN ( FileName:String;  Mode:Integer) : Integer;
 Function FILEREAD ( Handle:Integer; Var Buffer:All;  Count:Integer) : Integer;
 Function FILESEEK ( Handle:Integer;  Offset:Integer) : Integer;
 Function FILESIZE ( hFile:Integer) : Integer;
 Function FILEWRITE ( Handle:Integer; Var Buffer:All;  Count:Integer) : Integer;
 Function GETCURRENTDIR : String;
 Function PROGRUNNING ( Nom:String) : Boolean;
 Procedure DIRECTORYCREATE ( Dir:String);
 Procedure FILECLOSE ( Handle:Integer);
LIBSAUVE.Vpu
 Function DECOMPRESS ( InBuffer:Integer;  inSize:Integer; Var OutBuffer:Integer; Var OutSize:Integer) : Boolean;
 Procedure COMPRESS ( InBuffer:Integer;  inSize:Integer; Var OutBuffer:Integer; Var OutSize:Integer);
 Procedure FREEBUFF;
 Procedure READVAR (Var Debut:All;  Lenombre:Integer;  NomF:String);
 Procedure SAVEVAR (Var Debut:All;  Lenombre:Integer;  NomF:String);
MODBUS.Vpu
 Function EXECD ( Tipe:Integer;  Genre:Integer;  DB:Integer;  PremM:Integer;  NBM:Integer; Var Source:All;  Com:Integer;  Slave:Integer; Var Status:Boolean) : Boolean;
 Function S_LECTUREMOTS ( Com:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Boolean;
 Function SECONDREADBMODBUS (Var Data:All;  NBBits:Word;  ComPort:Byte) : Integer;
 Function SECONDREADWMODBUS (Var Data:All;  NBWords:Word;  ComPort:Byte) : Integer;
 Function SECONDWRITEBMODBUS ( ComPort:Byte) : Integer;
 Function SECONDWRITEWMODBUS ( ComPort:Byte) : Integer;
 Procedure FIRSTREADBMODBUS ( Slave:Word;  Address:Word;  NBBits:Word;  ComPort:Byte;  CodeFonc:Word);
 Procedure FIRSTREADWMODBUS ( Slave:Word;  Address:Word;  NBWords:Word;  ComPort:Byte;  CodeFonc:Word);
 Procedure FIRSTWRITEBMODBUS (Var Data:All;  Slave:Word;  Address:Word;  NBBits:Word;  ComPort:Byte);
 Procedure FIRSTWRITEWMODBUS (Var Data:All;  Slave:Word;  Address:Word;  NBWords:Word;  ComPort:Byte);
NEDGE.Vpu
 Function NEDGE ( Entry:Boolean) : Boolean;
OPENMODBUS.Vpu
 Function ECRITUREBITS (Var DSocket:Integer;  Adresse:Word;  NBBits:Word;  Esclave:Byte; Var Data:All;  Init:Boolean) : Integer;
 Function ECRITUREMOTS (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte; Var Datas:All;  Init:Boolean) : Integer;
 Function ECRITUREUNBIT (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte;  Data:Boolean;  Init:Boolean) : Integer;
 Function ECRITUREUNMOT (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte;  Data:Word;  Init:Boolean) : Integer;
 Function LECTUREBITS (Var DSocket:Integer;  Adresse:Word;  NBBits:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function LECTUREBITSINTERNE (Var DSocket:Integer;  Adresse:Word;  NBBits:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function LECTUREMOTS (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function LECTUREMOTSINTERNE (Var DSocket:Integer;  Adresse:Integer;  NBWord:Integer;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function LECTURESTATUTS (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function OPENMODBUSGETLASTERROR : String;
 Function OUVRECONNEXION ( IPA:String;  Port:Integer; Var DSocket:Integer) : Boolean;
 Function S_LECTUREBITS (Var DSocket:Integer;  Adresse:Word;  NBBits:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Function S_LECTUREMOTS (Var DSocket:Integer;  Adresse:Word;  NBWord:Word;  Esclave:Byte; Var Resultat:All;  Init:Boolean) : Integer;
 Procedure FERMECONNEXION (Var DSocket:Integer);
PEDGE.Vpu
 Function PEDGE ( Entry:Boolean) : Boolean;
SERIAL.Vpu
 Function COMBUFFERLEFT ( ComPort:Byte;  IO:String) : Word;
 Function COMREADCH ( ComPort:Byte) : Byte;
 Function EX_COMBUFFERLEFT ( CID_COM:Integer;  IO:String) : Word;
 Function EX_COMDATAOK ( CID_COM:Integer) : Boolean;
 Function EX_COMGETBYTE ( CID_COM:Integer) : Byte;
 Function EX_COMREADCH ( CID_COM:Integer) : Byte;
 Function EX_COMWRITE ( CID_COM:Integer;  Tbl:String) : Boolean;
 Function EX_COMWRITEBUF ( CID_COM:Integer; Var Tbl:All;  NB:Integer) : Boolean;
 Function EX_OUVRECOM ( N:Integer;  BaudRate:Integer;  Parity:String;  Bits:String;  Stop:String) : Integer;
 Function EX_SENDBYTE ( CID_COM:Integer;  Data:Byte) : Boolean;
 Function GETBYTE ( ComPort:Byte) : Byte;
 Function GETCOMOPEN ( Comport:Integer) : Boolean;
 Function OPENCOM ( ComPort:String;  Baudrate:String;  Parity:String;  Bits:String;  Stop:String) : Boolean;
 Function READ_CTS ( ComPort:Byte; Var value:Byte) : Boolean;
 Function READ_RING ( ComPort:Byte) : Boolean;
 Function READCOMOK ( ComPort:Byte) : Boolean;
 Function V24DATAOK ( ComPort:Byte) : Boolean;
 Procedure CLEARCOM ( ComPort:Byte);
 Procedure COMWRITE ( ComPort:Byte;  Tbl:String);
 Procedure COMWRITEBUF ( ComPort:Byte; Var Tbl:All;  NB:Integer);
 Procedure DISABLEALLCOMS;
 Procedure DISABLECOM ( ComPort:Byte);
 Procedure EX_CLEARCOM ( CID_COM:Integer);
 Procedure EX_FERMECOM ( CID_COM:Integer);
 Procedure RESETCOMBUSY ( Comport:Byte);
 Procedure SENDBYTE ( ComPort:Byte;  Data:Byte);
 Procedure SET_DTR ( ComPort:Byte;  OnOff:Boolean);
 Procedure SET_RTS ( ComPort:Byte;  OnOff:Boolean);
 Procedure SETCOMBUSY ( Comport:Byte);
SYSPLC.Vpu
 Function COMPAREBLOCK (Var Adr1:All; Var Adr2:All;  Nbytes:Integer) : Boolean;
 Function COMPAREBLOCKEX (Var B1:All; Var B2:All;  Nbyte:Integer) : Integer;
 Function DAYOF ( AValue:Double) : Integer;
 Function DIALOGBOX ( Caption:String;  Texte:String;  Utype:Integer) : Integer;
 Function GETTICK : Integer;
 Function GLOBALALLOCPTR ( Flags:Integer;  Bytes:Integer) : Integer;
 Function GLOBALFREEPTR ( P:Integer) : Integer;
 Function HOUROF ( AValue:Double) : Integer;
 Function INTTOWORD ( Value:Integer) : Word;
 Function ISASSIGNED (Var Pt:All) : Boolean;
 Function MESSAGEYESNO ( Texte:String) : Boolean;
 Function MILLISECONDOF ( AValue:Double) : Integer;
 Function MINUTEOF ( AValue:Double) : Integer;
 Function MONTHOF ( AValue:Double) : Integer;
 Function NBBYTESDIFFERENT (Var B1:All; Var B2:All;  Nbyte:Integer) : Integer;
 Function PCHAR (Var Str:String) : Integer;
 Function RANDOM ( Range:Integer) : Integer;
 Function RANDOMFLOAT ( Range:Integer) : Real;
 Function SECONDOF ( AValue:Double) : Integer;
 Function SINGLETOREAL (Var S:All) : Real;
 Function STRADD ( CurrentPChar:Integer;  Source:String) : Integer;
 Function STRALLOC ( Size:Integer) : Integer;
 Function STRBUFSIZE ( Str:Integer) : Integer;
 Function STRCOMP ( Str1:Integer;  Str2:Integer) : Integer;
 Function STRCONCAT ( Dest:Integer;  Source:Integer) : Integer;
 Function STRCOPY ( Dest:Integer;  Source:Integer) : Integer;
 Function STREND ( Str:Integer) : Integer;
 Function STRLEN ( Str:Integer) : Integer;
 Function STRMOVE ( Dest:Integer;  Source:Integer;  Count:Integer) : Integer;
 Function STRNEW ( Str:Integer) : Integer;
 Function STRPAS (Var PStri:All) : String;
 Function STRTOPCHAR ( S:String) : Integer;
 Function WORDTOINT ( Value:Word) : Integer;
 Function XCHG_16 (Var V:Word) : Word;
 Function XCHG_32 (Var V:Integer) : Integer;
 Function YEAROF ( AValue:Double) : Integer;
 Procedure BEEP;
 Procedure DATEHEURES;
 Procedure DEC (Var Value:Integer;  Decrement:Integer);
 Procedure DECODEDATE ( Date:Double; Var Year:Word; Var Month:Word; Var Day:Word);
 Procedure DECODETIME ( Time:Real; Var Hour:Word; Var Min:Word; Var Sec:Word; Var MSec:Word);
 Procedure INC (Var Value:Integer;  Increment:Integer);
 Procedure MESSAGE ( Texte:String);
 Procedure MESSAGEEX ( Texte:String;  Caption:String);
 Procedure PEXECUTE ( NProg:String);
 Procedure RAZGRAFCET (Var Grafcet:All;  Size:Integer);
 Procedure REALTOSINGLE ( R:Real; Var S:All);
 Procedure SOUND ( Son:String);
 Procedure STRDISPOSE ( Str:Integer);
 Procedure SWAPBUFFER16 (Var Buffer:All;  Nb:Integer);
 Procedure XCHG16 (Var V:Integer);
THREADS.Vpu
 Function DESTROYTHREAD ( hThread:Integer) : Boolean;
 Function RESUMETHREAD ( hThread:Integer) : Integer;
 Function SETTHREADPRIORITY ( hThread:Integer;  nPriority:Integer) : Boolean;
 Function SUSPENDTHREAD ( hThread:Integer) : Integer;
 Function THREAD ( Proc:Integer;  Priority:Integer) : Integer;
 Procedure SLEEP ( dwMilliseconds:Integer);
