Q-Code User Manual
Ver. 7.0 2021/11/30
239
TR2: PauseD(1)
; Pause delay at background1.
TR3: ResumeD(1)
; Resume delay at background1.
[Background1]
BG1: Delay(5)
; Delay 5 seconds at background1.
4.22.6 ResumeD(n)
This command can be used to resume Delay.
n:
0 = foreground, 1 = background1, 2 = background2 and 3=background3. If n is omitted, all Delay will
be resumed.
[Path]
TR1: BG1
; Call BG1.
TR2: PauseD(1)
; Pause delay at background1.
TR3: ResumeD(1)
; Resume delay at background1.
[Background1]
BG1: Delay(5)
; Delay 5 seconds at background1.
4.22.7 SDelay(time)
SDelay command is for setting short delay. Time unit: ms or us (default is ms).
Note:
1. No other step can be conducted during the delay. The next step can only be executed after
the delay is finished.
2. For NY4 / NY5 / NY5+ / NY9T, time range is 50us ~ 12500us, increased by 50us.
3. For NY6 / NY7, time range is 10us ~ 4000us, increased by 10us.
4. The shortest time of NX1 is 1ms.
5. Due to deviation between RTC_1024Hz and 1ms (0.9765625ms - 1ms) / 1ms
≒
-2.34%,
there is -2.34% delay time deviation in Q-Code 6.51 or older versions. This deviation will be
compensated in Q-Code 6.60 or newer version.
6. NX1 counter is using RTC, which contains ±1.5% deviation.
7. NX1 is using Time-Sharing Mutli-Process Architecture. Deviations described in Note 1,
Note 2 do not include time of context switching.
Ex.
Delay 250us.
DELAY_TEST: SDelay(250us)
; Delay 250us.
4.23 Action Command
Action Command
-
-
-