.

SqNode.DigitalOutBit

DigitalOutBit reads or sets the current state of a SynqNet 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 (SqNode.DigitalOutCount - 1).

 

Visual Basic

Syntax

Property DigitalOutBit As Boolean(index As UInt32)

Sample Code

 
Dim sqNode As Mpx.SqNode = Controller.SynqNet(0).Node(0)

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

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


Sample Application

 

C#

Syntax

bool[] DigitalOutBit;

Sample Code

 
Mpx.SqNode sqNode = Controller.SynqNet[0].Node[0];

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

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

 

See Also

DigitalOutGet
DigitalOutSet
DigitalOutWait

Overview of MPX I/O

 

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