.

Axis.GeneralIoConfigAvail

Determines if a configuration is available for a general I/O bit on an axis.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Result

Boolean

Arguments

 
Argument Type Description
bit UInt32 The general I/O bit to test.
config Mpx.IoConfig The configuration to test.

 

Visual Basic

Syntax

Function GeneralIoConfigAvailable(bit As UInt32, config As Mpx.IoConfig) As Boolean

Sample Code

 

Set xAxis = Controller.Axis(0)

' Is I/O 5 available?
generalIo5Avail = xAxis GeneralIoAvail(5)

If generalIo5Avail Then
. If xAxis.GeneralIoConfigAvailable(5, meiIoConfigInput) Then
    ' I/O 5 can be configured to be a digital input
. End If
. If xAxis.GeneralIoConfigAvailable(5, meiIoConfigOutput) Then
    ' I/O 5 can be configured to be a digital output
. End If
End If


Sample Application

 

C#

Syntax

bool GeneralIoConfigAvailable(uint bit, Mpx.IoConfig config);

 

Sample Code

 

See Also

GeneralIoAvailable
GeneralIoBit
GeneralIoConfig

IoConfig

 

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