flex_insert_program_label

NI-Motion Functions

flex_insert_program_label

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

Insert Program Label

Usage

status = flex_insert_program_label(u8 boardID, u16 labelNumber);

Purpose

Inserts a label in a program.

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
labelNumber u16 arbitrary label number

Parameter Discussion

labelNumber is any arbitrary label number from 1 to 65,535.

Using This Function

This function marks a location in the sequence of a program. The label number identifies this location and uses it in the Jump on Event function. Label numbers are arbitrary and do not have to follow a numerical sequence.