flex_stop_prog

NI-Motion Functions

flex_stop_prog

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

Stop Program

Usage

status = flex_stop_prog(u8 boardID, u8 program);

Purpose

Stops a running program.

Parameters

Name Type Description
boardID u8 assigned by Measurement & Automation Explorer (MAX)
program u8 program number

Parameter Discussion

program is the program number. Valid program numbers are 0x01 through 0xFF (1 through 255).

Using This Function

This function terminates execution of a running program. You cannot resume a stopped program but you can re-run the program from the beginning.

A program can stop another program but you cannot have a program stop itself. Attempting to store a recursive Stop Program function in a program generates an error and does not store the function.

Note  Stopping a program does not affect a move already started and in progress. It does not implement a Stop Motion function.