PEP CP380 Manual page 54

Digital i/o board for compactpci applications
Table of Contents

Advertisement

CP380
Syntax (Basic)
Declare Function
me96DIGetByte Lib "me9x_32" Alias "_VBme96DIGetByte@12" (
Description
This function is only for the CP380-I/O.
This function reads a byte (8 bits) from an input port.
Parameters
BoardNumber>
<PortNo>
<Value>
Returns
If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is
returned.
The
_me9xGetDrvErrMess.
Page 5 - 12
ByVal iBoardNumber As Long,
ByVal iPortNo As Long,
ByRef iValue As Long
) As Long
Board number for 1., 2., 3...16 installed CP380-I,
CP380-O or CP380-I/O; possible values: 0...15
Port name; possible values:
<PortNo>Description
PORTB (01hex)Input port B
PORTC (02hex)only the bits C2 and C4 are significant;
the other bits of port C are not available
Pointer to an integer value which contains the input
byte; only the lower 8 bits are significant; for port C only
the bits C2 and C4 are significant.
cause
of
the
error
® PEP Modular Computers GmbH
Function Reference
can
be
determined
with
the
function
ID 19313, Rev. 0100

Advertisement

Table of Contents
loading

Table of Contents