flex_load_var

NI-Motion Functions

flex_load_var

Device Compatibility

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

Load Constant to Variable

Usage

status = flex_load_var(u8 boardID, i32 value, u8 variable1);

Purpose

Loads a constant value into a variable.

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
value i32 value to load into the variable
variable1 u8 variable to load

Parameter Discussion

value is the value to load into the variable.

variable1 is the variable to load. Valid inputs are variables (0x01 through 0x78) and indirect variables (0x81 through 0xF8).

Using This Function

This function loads a constant value into the selected variable.

The condition codes are set according to the loaded value, GREATER THAN, LESS THAN, or EQUAL to zero.