Following is a Delphi unit which declares all the functions of the ITCDLL.
{-----------------------------------------------------------------------------}

unit Import;

interface

Function PortOpen(CPort):Integer;
Function PortClose:Integer;
Function PortConfigure(cPort:Integer;cBaud:LongInt):Integer;

Function ItcGetPort:Integer;
Function ItcGetBaudRate:LongInt;
Function ItcChangeBaudRate(NewSpeed:Longint):Integer;

Function ItcCommand(Order:string):Integer;
Function ItcGetValue:LongInt;
Function ItcGetError:Integer;
Function ItcGetErrorMessage:pchar;

Function ItcIntStatusH:Integer;
Function ItcIntStatusL:Integer;

Function ItcAnalog8(Channel:Integer):Integer;
Function ItcAnalog10(Channel:Integer):Integer;
Function ItcAnalog12(Channel:Integer):Integer;
Function ItcAnalog(Resolution:Integer;Channel:Integer):Integer;
Function ItcResetADC:integer;
Function ItcGetAnalogValue:LongInt;

Function IOPortConfigure(Mode:Integer):Integer;
Funtion  IOPortRead:Integer;
Funtion  IOPortWrite(Value:Integer):Integer;


Function ItcInitialize485:Integer;
Function ItcAddress485(Station,IC,Brcst:Integer):Integer;

Function MotorInit:Integer;

function MotorNumberStep(WhichMotor:Integer;Number:LongInt):Integer;
Function MotorSpeed(WhichMotor:Integer;Speed:double;AccStep:LongInt;CrysFreq:double):Integer;
function MotorDirection(WhichMotor:integer;Cw:integer):Integer;
function MotorGo(WhichMotor:Integer):Integer;
function MotorJog(WhichMotor:Integer):Integer;
function MotorStop(WhichMotor:Integer):Integer;
function MotorPause(WhichMotor:Integer):Integer;
function MotorContinue(WhichMotor:Integer):Integer;
function MotorPowerOn(WhichMotor:Integer):Integer;
function MotorPowerOff(WhichMotor:Integer):Integer;

Function MotorGetHomeFlag(WhichMotor:Integer):Integer;
function MotorGetTrigMask: Integer;
function MotorGetReadyFlag(WhichMotor:Integer):Integer;
function MotorGetPosition(WhichMotor:integer):LongInt;

Function MotorCommand(WhichMotor:Integer;Cmd:String):Integer;
Function MotorTrigger(Motor1,Motor2,Motor3,Motor4:Integer):Integer;
Function MotorReset(WhichMotor:Integer):Integer;


implementation

Function PortOpen; external 'itcdll';
Function PortClose; external 'itcdll';
Function PortConfigure; external 'itcdll';
Function PortConfigureForm; external 'itcdll';

Function ItcGetPort; external 'itcdll';
Function ItcGetBaudRate; external 'itcdll';
Function ItcChangeBaudRate; external 'itcdll';

Function ItcCommand; external 'itcdll';
Function ItcGetValue; external 'itcdll';
Function ItcGetError; external 'itcdll';
Function ItcGetErrorMessage; external 'itcdll';

Function ItcIntStatusH; external 'itcdll';
Function ItcIntStatusL; external 'itcdll';

Function ItcAnalog8; external 'itcdll';
Function ItcAnalog10; external 'itcdll';
Function ItcAnalog12; external 'itcdll';
Function ItcResetADC; external 'itcdll';
Function ItcGetAnalogValue; external 'itcdll';

Function ItcInitialize485; external 'itcdll';
Function ItcAddress485; external 'itcdll';

Function MotorInit; external 'itcdll';

function MotorNumberStep; external 'itcdll';
Function MotorSpeed; external 'itcdll';
function MotorDirection; external 'itcdll';
function MotorGo; external 'itcdll';
function MotorJog; external 'itcdll';
function MotorStop; external 'itcdll';
function MotorPause; external 'itcdll';
function MotorContinue; external 'itcdll';
function MotorPowerOn; external 'itcdll';
function MotorPowerOff; external 'itcdll';

Function MotorGetHomeFlag; external 'itcdll';
function MotorGetTrigMask; external 'itcdll';
function MotorGetReadyFlag; external 'itcdll';
function MotorGetPosition; external 'itcdll';

Function MotorCommand; external 'itcdll';
Function MotorTrigger; external 'itcdll';
Function MotorReset; external 'itcdll';

end.
{--------------------------------------------------------------------------}


Following is the declarations of all the functions of the ITCDLL in Visual Basic.

rem -----------------------------------------------------------------------

Private declare Function PortOpen Lib "Itcdll.dll" () As Integer;
Private declare Function PortClose Lib "Itcdll.dll" () As Integer;
Private declare Function PortConfigure Lib "Itcdll.dll" (ByVal cPort As Integer, ByVal cBaud As Integer) As Integer;
Private declare Function PortConfigureForm Lib "Itcdll.dll" () As Integer;

Private declare Function ItcGetPort Lib "Itcdll.dll" () As Integer;
Private declare Function ItcGetBaudRate Lib "Itcdll.dll" () As Long;
Private declare Function ItcChangeBaudRate Lib "Itcdll.dll" (ByVal NewSpeed As Long) As Integer;

Private declare Function ItcCommandvb Lib "Itcdll.dll" (ByVal Order As string) As Integer;
Private declare Function ItcGetValue Lib "Itcdll.dll" () As Long;
Private declare Function ItcGetError Lib "Itcdll.dll" () As Integer;
Private declare Function ItcGetErrorMessagevb Lib "Itcdll.dll" () As string;

Private declare Function ItcIntStatusH Lib "Itcdll.dll" () As Integer;
Private declare Function ItcIntStatusL Lib "Itcdll.dll" () As Integer;

Private declare Function ItcAnalog8 Lib "Itcdll.dll" (ByVal Channel As Integer) As Integer;
Private declare Function ItcAnalog10 Lib "Itcdll.dll" (ByVal Channel As Integer) As Integer;
Private declare Function ItcAnalog12 Lib "Itcdll.dll" (ByVal Channel As Integer) As Integer;
Private declare Function ItcResetADC Lib "Itcdll.dll" () As Integer;
Private declare Function ItcGetAnalogValue Lib "Itcdll.dll" () As Long;

Private declare Function ItcInitialize485 Lib "Itcdll.dll" () As Integer;
Private declare Function ItcAddress485 Lib "Itcdll.dll" (ByVal Station As Integer,ByVal IC As Integer,ByVal Brcst As Integer) As Integer;

Private declare Function MotorInit Lib "Itcdll.dll" () As Integer;

Private declare Function MotorNumberStep Lib "Itcdll.dll" (ByVal WhichMotor As Integer,ByVal Number As Long) As Integer;
Private declare Function MotorSpeed Lib "Itcdll.dll" (ByVal WhichMotor As Integer,ByVal Speed As Double, ByVal AccStep As Long, ByVal CrysFreq As Double) As Integer;
Private declare Function MotorNumberStep Lib "Itcdll.dll" (ByVal WhichMotor As Integer,ByVal Cw As Integer) As Integer;
Private declare Function MotorGo Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorJog Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorStop Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorPause Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorContinue Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorPowerOn Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorPowerOff Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;

Private declare Function MotorGetHomeFlag Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorGetTrigMask Lib "Itcdll.dll" () As Integer;
Private declare Function MotorGetReadyFlag Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;
Private declare Function MotorGetPosition Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;

Private declare Function MotorCommandvb Lib "Itcdll.dll" (ByVal WhichMotor As Integer,ByVal Cmd As String) As Integer;
Private declare Function MotorTrigger Lib "Itcdll.dll" (ByVal Motor1 As Integer, ByVal Motor2 As Integer, ByVal Motor3 As Integer, ByVal Motor4 As Integer,) As Integer;
Private declare Function MotorReset Lib "Itcdll.dll" (ByVal WhichMotor As Integer) As Integer;

rem ------------------------------------------------------------------------------------------