User manual

ReadIOconfigArray IO
Syntax
PROCEDURE ReadIOconfigArray(Buffer:Pointer);
Parameter
Buffer: A pointer to the array of long integers where the IO configuration data will be read.
Description
The IO configuration data array is read from the K8D.DLL to the application program.
Example
var // global variables
IOconfig: ARRAY[0..MaxIOchip] OF Integer;
procedure TForm1.Button1Click(Sender: TObject);
var p:pointer;
i:integer;
s:string;
begin
p:=@IOconfig; // Address of the data buffer for config array
ReadIOconficArray(p); // Read the data from K8D.DLL
memo1.clear;
s:='';
for i:=0 to MaxIOchip do s:=s +inttostr(IOconfig[i])+chr(9);
memo1.lines.add(s); // Display the IO cofig data
end;
ReadIOconfigArray IO
Syntax
PROCEDURE ReadIOdataArray(Buffer:Pointer);
Parameter
Buffer: A pointer to the array of long integers where the IO data will be read.
Description
The IO status data array is read from the K8D.DLL to the application program.
Example
var // global variables
IOdata: ARRAY[0..MaxIOchip] OF Integer;
procedure TForm1.Button1Click(Sender: TObject);
var p:pointer;
i:integer;
s:string;
begin
p:=@IOdata; // Address of the data buffer for the data array
ReadIOdataArray(p); // Read the data from K8D.DLL
memo1.clear;
s:='';
for i:=0 to MaxIOchip do s:=s +inttostr(IOdata[i] and $ff)+chr(9);
memo1.lines.add(s); // Display the IO data
end;
ReadDACarray DAC