.

CanNode.DigitalOutBit

DigitalOutBit reads or sets the current state of a CANOpen node digital output.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Type

Boolean (read only)

Index

 
Index Type Description
UInt32 The digital output bit whose state is to be accessed. The valid range for the index is 0 to (CanNode.DigitalOutCount - 1).

Visual Basic

Syntax

Property DigitalOutBit As Boolean(index As UInt32)

Sample Code

 
Dim canNode As Mpx.CanNode = Controller.Can(0).Node(5)   


'Get a digital output value 
Dim value As Boolean = canNode.DigitalOutBit(0)   

'Invert the output bit value 
canNode.DigitalOutBit(0) = Not value 

 

C#

Syntax

bool[] DigitalOutBit;

Sample Code

 
Mpx.CanNode canNode = Controller.Can[0].Node[5];   


// Get a digital output value 
bool bitValue = canNode.DigitalOutBit[0];   

// Invert the output bit value 
canNode.DigitalOutBit[0] = !bitValue; 

 

See Also

DigitalInBit

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering