|
Axis.GeneralIoGet
DigitalOutGet reads a series of consecutive general purpose I/O bits and returns the states as a Boolean array.
Version History
Introduced in MPX 2.0.
Result
Array of Boolean
Arguments
| |
| Argument |
Type |
Description |
bitStart |
UInt32 |
The first I/O bit to read. |
bitCount |
UInt32 |
The number of I/O bits to read. The last I/O bit read will be bit number (bitStart + bitCount -1). |
|
Common Exceptions
| |
| Error |
Reason |
| Argument |
When bitCount exceeds 32. |
|
Visual Basic
Syntax
Function GeneralIoGet(bitStart As UInt32, bitCount As UInt32) As Boolean()
Sample Code
| |
Dim bitStart As Int32 = 0
Dim bitCount As Int32 = 4
Dim generalIoState() As Boolean = controller.Axis(0).GeneralIoGet(bitStart, bitCount) |
Sample Application
C#
Syntax
bool[] GeneralIoGet(uint bitStart, uint bitCount);
Sample Code
| |
int bitStart = 0;
int bitCount = 4;
bool[] generalIoState = controller.Axis[0].GeneralIoGet(bitStart, bitCount); |
See Also
GeneralIoBit
GeneralIoSet
GeneralOutWait
Overviews
MPX I/O Overview
|