flex_getu32

NI-Motion Functions

flex_getu32

Device Compatibility

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

Get u32

Usage

status = flex_getu32(u8 boardID, u8 resource, u16 attribute, u32* value);

Purpose

Gets the general software settings.

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
resource u8 resource selector
attribute u16 type of data you want to retrieve
value u32* retrieved data

Parameter Discussion

resource specifies the resource from which you are retrieving information.

attribute is the selector for the type of information you want. Legal values are defined as constants in the NI-Motion header files MotnCnst.h (for C/C++ users) and motncnst.bas (for Visual Basic users) and are listed in the following section.

value is the returned data of the type you selected.

Using This Function

This function returns selected data about software settings. This function can retrieve values that are stored as integers.

Name  Attribute  Description  Attribute Range
NIMC_BP_WINDOW  0x0200 After the axis encounters a breakpoint, the axis must move outside the breakpoint window before it can rearm for another breakpoint. This is used to prevent oscillation from sending multiple breakpoint outputs from the same breakpoint position. The default is 0. 0 to 255
NIMC_PROGRAM_
AUTOSTART
 
0x0300 Use this attribute to return the onboard program that is enabled for auto start.
NIMC_GEARING_
ENABLED_STATUS
 
0x0301 Use this attribute to read the gearing enable status on an individual axis or on axes one through eight using the axis control resource. Reading the status on axes one through eight returns a bitmap where bit 0 is the status for axis 1 and so on. Reading the status on an individual axis returns a bitmap that is masked for that axis. For each bit in the bitmap:
1 = gearing enabled
0 = gearing disabled