Qc - queue call, Command details, Parameter details – Applied Motion RS-232 User Manual
Page 163: Examples

163
920-0002 Rev. I
2/2013
Host Command Reference
QC - Queue Call
Compatibility: Q drives only
See also:
QX, QE, QL commands
Loads a program segment from non-volatile memory into the queue and begins executing at line #1. Loads the
“calling” segment location and the line where the call occurred into a call “stack”. When a QC command without
a parameter is encountered in the segment a “return” to the calling segment is activated. The “calling” segment is
loaded from non-volatile memory back into the queue and begins executing at the line immediately following the
line number of the original “calling” QC command.
The call stack can go 5 calls deep which means you can nest up to 5 calls. If the number of calls before a “return”
(QC with no parameter) is encountered exceeds 5 the “calling” QC command (with parameter) is ignored. If a
“return” is encountered without a previous call, the return is ignored.
Command Details:
Structure
QC{Parameter #1}
Type
BUFFERED
Usage
WRITE ONLY
Non-Volatile
NO
Register Access
None
Parameter Details:
Parameter #1
Program segment, no parameter means return to calling
segment
- units
integer
- range
1 - 12 = segment 1 - 12
no parameter = return to calling segment
Examples:
Command
Drive sends
Notes
QC4
-
Call segment 4
QC
-
Return to calling segment