User manual

'K8D.DLL' PROCEDURES AND FUNCTIONS
Start_K8000
Syntax
PROCEDURE Start_K8000;
Description
Initializes the communication routines for the K8000 card. Loads the drivers needed to
communicate via the LPT port. This procedure must be performed in the beginning of the
application program.
Example
BEGIN
Start_K8000;
END;
Sop_K8000
Syntax
PROCEDURE Stop_K8000;
Description
Unloads the communication routines for K8000 card and unloads the drivers needed to
communicate via the PLT port. This is the last action of the application program before
termination.
Example
BEGIN
Stop_K8000;
END;
SelectI2CprinterPort
Syntax
PROCEDURE SelectI2CprinterPort(Printer_no: Longint);
Parameter
Printer_no: Value between 0 and 2 given by the printer port to which the interface card is
connected.
0: printer port address is 0BC (hex)
1: printer port address is 378 (hex), usually the address of LPT1
2: printer port address is 278 (hex), usually the address of LPT2
Result
Communication between the PC and the K8000 card will occur via the selected LPT port
address.
Description
The printer port to be used must be specified at the start of your programme in order to run the
interface card so that the communication routines are carried out correctly. The default
designation is LPT1, but this can be changed using this procedure.
Example
BEGIN
SelectI2CprinterPort(1);
// LPT1 address on mainboard is set to 378