flex_stop_prog |
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. |