This class controls the RS-422 interface.
See class VIB::Rs422 in the VisionBox Interface Library for a detailed description.
- Examples
-
◆ eOUT_SOURCE
Source definitions for the RS-422 output signals, used by SetSource()
Enumerator |
---|
REGISTER | Controlled with Output / SetBit() (default)
|
MUX_OUT0 | Multiplexer Output 0.
|
MUX_OUT1 | Multiplexer Output 1.
|
MUX_OUT2 | Multiplexer Output 2.
|
MUX_OUT3 | Multiplexer Output 3.
|
MUX_OUT4 | Multiplexer Output 4.
|
MUX_OUT5 | Multiplexer Output 5.
|
MUX_OUT6 | Multiplexer Output 6.
|
MUX_OUT7 | Multiplexer Output 7.
|
MUX_OUT8 | Multiplexer Output 8.
|
MUX_OUT9 | Multiplexer Output 9.
|
MUX_OUT10 | Multiplexer Output 10.
|
MUX_OUT11 | Multiplexer Output 11.
|
MUX_OUT12 | Multiplexer Output 12.
|
MUX_OUT13 | Multiplexer Output 13.
|
MUX_OUT14 | Multiplexer Output 14.
|
MUX_OUT15 | Multiplexer Output 15.
|
MUX_OUT16 | Multiplexer Output 16.
|
MUX_OUT17 | Multiplexer Output 17.
|
MUX_OUT18 | Multiplexer Output 18.
|
MUX_OUT19 | Multiplexer Output 19.
|
MUX_OUT20 | Multiplexer Output 20.
|
MUX_OUT21 | Multiplexer Output 21.
|
MUX_OUT22 | Multiplexer Output 22.
|
MUX_OUT23 | Multiplexer Output 23.
|
◆ RS422()
VIB_NET::RS422::RS422 |
( |
| ) |
|
Default constructor for the device object
The device must be opened with Open() before it can be used.
◆ GetBit()
Boolean VIB_NET::RS422::GetBit |
( |
UInt32 |
BitIndex | ) |
|
◆ Reset()
void VIB_NET::RS422::Reset |
( |
| ) |
|
◆ SetBit()
void VIB_NET::RS422::SetBit |
( |
UInt32 |
BitIndex, |
|
|
Boolean |
OnOff |
|
) |
| |
◆ SetSource()
void VIB_NET::RS422::SetSource |
( |
UInt32 |
BitIndex, |
|
|
RS422::eOUT_SOURCE |
Source, |
|
|
bool |
InvertOutput |
|
) |
| |
Sets the source for an output signal.
For setting the output value manually with Output or SetBit(), the source eOUT_SOURCE::REGISTER has to be selected (default).
- Note
- The VisionBox AGE-X1 doesn't have a Multiplexer and therefore doesn't support this function
- Parameters
-
BitIndex | Output signal index, 0 ... (NumberOfOutputs - 1) |
Source | source for the line |
InvertOutput | true = invert line |
◆ Input
Reads the state of the input signals.
The value is the binary representation of the signals, LSB is BIT0.
- Example:
- C#: Rs422_Example.cs
Visual Basic: Rs422_Example.vb
◆ NumberOfInputs
VIB_NET::RS422::NumberOfInputs |
|
get |
Contains the number of input signals.
◆ NumberOfOutputs
VIB_NET::RS422::NumberOfOutputs |
|
get |
Contains the number of output signals.
◆ Output
Sets the state of the output signals.
- Parameters
-
Val | Bits 0..15: Binary representation of outputs. The actual number of available outputs is hardware dependent.
Bits 16..31: Mask bits can be used to change only certain outputs. This is particularly useful to control certain outputs by different threads.
If the upper 16 bits of Val are set to zero, all outputs will be set. |
- Example:
- C#: Rs422_Example.cs
Visual Basic: Rs422_Example.vb
- Example:
pRS422.Output = (0x3)
pRS422.Output = ((1<<(16+1)) | 0x00)
◆ Type
Returns the device type for the current instance, see eDEVICE_TYPE