Q-Code User Manual
Ver. 7.0 2021/11/30
273
[Path]
TR1: SlowOff
; Turn off the Slow mode.
4.31.31 END
The END command here is not for forcefully stopping all the steps currently being executed. The
system will enter sleep mode only after all executions of paths are completed. If user needs to stop
running steps and enter sleep mode, Please use Stop command.
Note: The “END” command will be appended to each path automatically when compiling.
Therefore, adding “END” command to the end of path is not necessary.
Ex.
PlayV….. , RampDown, Delay(15), END
4.31.32 ReadRollingCode(Ri:Rj:Rk:Rl:Rm)
Rolling Code is a 20 bit serial number that is written to OTP while programming. The number is
automatically incremented after each write, thus each OTP has a unique number. The command allows
OTP serial number to be read and saved to registers. The saved content is: Ri =bit16~19, Rj=bit12~15,
Rk=bit8~11, Rl=bit4~7, Rm=bit0~3.
Note: NY9T does not support this command.
Ex.
ReadRollingCode(R4:R3:R2:R1:R0)
; Save the read rolling code in R0 ~ R4.
4.31.33 ChMode(n)
Set the number of channels.
n:
number of channels
NY6 supports 2 / 4 / 6 (default is 6).
NY7 supports 2 / 4 / 6 / 8 (default is 8).
Note:
1. NY4 / NY5 / NY5+ / NY9T / NX1 do not support this command.
2. When the voice or melody is playing, switch the number of channels will cause the
incorrect sample rate which results in abnormal playback. Please avoid switching channels
while playing voice or melody.
Ex.
ChMode(4), PlayV(ch0, $V1)
; Set 4 channels to play V1.
Quality
Available Channel Serial Number
High Quality
0 ~ 1
Good
0 ~ 3