.

Axis.GeneralIoBit

Reads or sets the current state of a general purpose I/O line.

This property returns the current acting state regardless of the configuration.
If the I/O is configured as a digital output, then the output state may be set or read.
If the I/O is configured as a digital input, then the input state may only be read.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Arguments

 
Argument Type Description
bit Long The general I/O bit to read.

Type

Boolean (read only)

IIndex

 
Index Type Description
UInt32  

Visual Basic

Syntax

Property GeneralIoBit As Boolean(index As UInt32)

Sample Code

 

generalIo3State = Controller.Axis(0).GeneralIoBit(3)

Controller.Axis(1).GeneralIoBit(7) = True ' Set bit "on"


Sample Application

 

C#

Syntax

bool[] GeneralIoBit;

 

Sample Code

 

See Also

GeneralIoAvailable
GeneralIoConfig
GeneralIoConfigAvailable
GeneralIoName

 

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