A SERVICE OF

logo

PCI30FG User Manual
Eagle Technology © Copyright 2002 16
Digital Inputs/Outputs
The PCI30FG has 24 digital I/O lines, configured as 3 x 8-bit ports. The EDRE
API supports auto direction configuration. By writing to or reading from a port,
it is automatically configured as an output or input. A port is defined as a
collection of simultaneous configurable entities. Thus in the case of the
PCI30FG each port is only 8-bits wide.
Reading the Digital Inputs
A single call is necessary to read a digital I/O port.
API-CALL
Long EDRE_DioRead(ulng Sn, ulng Port, ulng *Value)
The serial number, port, and a pointer to variable to hold the result must be
passed by the calling function. A return code will indicate if any errors
occurred.
ACTIVEX CALL
Long EDREDioX.Read(long Port)
Only the port-number needs to be passed and the returned value will either
hold an error or the value read. If the value is negative an error did occur.
Writing to the Digital Outputs
A single call is necessary to write to a digital I/O port.
API-CALL
Long EDRE_DioWrite(ulng Sn, ulng Port, ulng Value)
The serial number, port, and a value must be passed by the calling function. A
return code will indicate if any errors occurred.
ACTIVEX CALL
Long EDREDioX.Write(long Por, ulng Value)
The port number and value to be written needs to be passed and the returned
value holds an error or the value read. If the value is negative an error did
occur.