flex_read_drive_signal_status_rtn

NI-Motion Functions

flex_read_drive_signal_status_rtn

Device Compatibility

Device Compatibility
7330
Y
7340
Y
7344
N
7350
Y
7390
N
NI SoftMotion Controller for CANopen—Xenus
N
NI SoftMotion Controller for CANopen—Accelnet
N

Read Drive Signal Status

Usage

status = flex_read_drive_signal_status_rtn(u8 boardID, u8 axis, u16* driveStatus);

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
axis u8 axis to configure
driveStatus u16* contains the status of the drive signal

Parameter Discussion

axis is the axis to configure. Valid values are NIMC_AXIS1 through NIMC_AXIS30. On motion controllers that support fewer than thirty axes, configuring non-existent axes returns error –70006 (NIMC_badResourceIDOrAxisError). Refer to Axes for axis resource IDs.

driveStatus contains the status of the drive signal, where bit0 = In-Position and bit1 = Drive Fault.

Using This Function

Use this function to read the status of the drive signal when an active drive signal is detected. If In-Position is active, bit 0 = 1. If Drive Fault is active, bit1 = 1.

Tip Tip  Use Read Motion I/O Data instead of this function for more options.