Q-Code User Manual
Ver. 7.0 2021/11/30
156
[Background2]
OUT2: PB=[0 0 X X], Delay (0.166), PB=[1 1 X X], Delay (0.166), OUT2
4.4.8 StopBG2
Stop currently executing step in background2.
Ex.
Stop executing background2 step using StopBg2 command.
[Path]
PowerOn:
BG(OUT1,OUT2)
TR1: StopBG2
[Background1]
OUT1: PB=[X X 1 1], Delay(0.166), PB=[X X 0 0], Delay(0.166), OUT1
[Background2]
OUT2: PB=[0 0 X X], Delay(0.166), PB=[1 1 X X], Delay(0.166), OUT2
4.4.9 StopBG3
Stop currently executing step in background3.
Note: NY4 / NY5 / NY5+ / NY6 / NY7 / NY9T do not support this command.
Ex.
Stop executing background3 step by using StopBg3 command, the actions of background1 and
Background2 continue.
[Path]
PowerOn:
BG(OUT1,OUT2,OUT3)
TR1: StopBG3
[Background1]
OUT1: PB=[X X 1 1], Delay(0.166), PB=[X X 0 0], Delay(0.166), OUT1
[Background2]
OUT2: PB=[0 0 X X], Delay(0.333), PB=[1 1 X X], Delay(0.333), OUT2
[Background3]
OUT3: PB=[0 0 X X X X], Delay(0.5), PB=[1 1 X X X X], Delay(0.5), OUT3
4.4.10 Subroutine
User can name and define a snippet of
Q-Code
command in
[Subroutine]
. A named snippet is a
subroutine. User can place subroutine name in
Q-Code
program.
Q-Code
compiler will treat subroutine
name as function call at compiling time.
Ex.
Use subroutine name when defining a path.