CogPrioState Bank Method Cognex VisionPro 9.5
Returns the values all lines in an i/o bank as an integer value.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax

public int Bank(
	CogPrioBankConstants bank
)

Return Value

Type: Int32
Exceptions

ExceptionCondition
CogPrioInvalidBankException Thrown if the hardware does not support the given i/o bank.
Remarks

The value of each individual output line is calculated as:

bool output0High = precisionIOState.Outputs & 0x01;

bool output1High = precisionIOState.Outputs & 0x02;

bool output3High = precisionIOState.Outputs & 0x04;

and so on...

See Also