flex_enable_camming_single_axis

NI-Motion Functions

flex_enable_camming_single_axis

Device Compatibility

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

Enable Camming Single Axis

Usage

i32 status = flex_enable_camming_single_axis(i32 boardID, i32 axisID, u16 enable, f64 position);

Purpose

Enables camming operation for the current axis.

Parameters

NameTypeDescription
boardID i32 assigned by Measurement & Automation Explorer (MAX)
axisID i32 axis to configure
enable u16 enable/disable camming
position f64 position to begin camming at

Parameter Discussion

axisID is the axis to enable/disable camming for. 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.

enable allows you to enable/disable camming on the specified axis. Set enable to True (1) to enable camming or False (0) to disable camming.

position is the position, in user units, to start or stop camming at on the specified axis. The valid range is –1 or 0 through (master cycle – 1).

Using This Function

Use this function to start or stop a camming operation on an axis. You can start or stop the camming operation immediately by setting position to –1. To configure the camming operation to take place after the master device crosses a specific position inside the master cycle, set position to a value between 0 and (master cycle – 1).

Refer to the Camming section of the NI-Motion Help for more information about camming operations.