CP380
Function Reference
ID 19313, Rev. 0100
Page 5 - 12
®
PEP Modular Computers GmbH
Syntax (Basic)
Description
This function is only for the CP380-I/O.
This function reads a byte (8 bits) from an input port.
Parameters
Returns
If the function is successfully executed, a '1' is returned. If an error occurs, a '0' is
returned. The cause of the error can be determined with the function
_me9xGetDrvErrMess
.
Declare Function
me96DIGetByte Lib "me9x_32" Alias "_VBme96DIGetByte@12" (
ByVal iBoardNumber As Long,
ByVal iPortNo As Long,
ByRef iValue As Long
) As Long
BoardNumber>
Board number for 1., 2., 3...16 installed CP380-I,
CP380-O or CP380-I/O; possible values: 0…15
<PortNo>
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
<
Value
>
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.
Summary of Contents for CP380
Page 2: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 12: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 26: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 28: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 34: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 38: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 42: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 44: ... PEP Modular Computers GmbH This page was intentionally left blank ...
Page 68: ... PEP Modular Computers GmbH This page was intentionally left blank ...