XQ Syntax:Implicit Notation Only
Operands:_XQ0,_XQ1,_XQ2,_XQ3,_XQ4,_XQ5,_XQ6,_XQ7
Burn:not burnable
Execute Program

Full Description

The XQ command begins execution of a program residing in the program memory of the controller. Execution will start at the label or line number specified. Up to 8 programs may be executed with the controller.

Arguments

XQ #A,n

XQm,n

where
     A is a program name of up to seven characters.
     m is a line number
n is an integer representing the thread number for multitasking
n is an integer in the range of 0 to 7.
NOTE: The arguments for the command, XQ, are optional. If no arguments are given, the first program in memory will be executed as thread 0.

Operand Usage

_XQn contains the current line number of execution for thread n, and -1 if thread n is not running.

Usage

Usage and Default Details
UsageValue
While Moving (No RIO)Yes
In a ProgramYes
Command LineYes
Controller UsageAll
Default Value0
Default FormatN/A

Related Commands

HX - Halt execution

Examples:

XQ #APPLE,0	Start execution at label APPLE, thread zero
XQ #DATA,2	Start execution at label DATA, thread two
XQ 0	Start execution at line 0
Hint:  Don't forget to quit the edit mode first before executing a program!