Q-Code User Manual
Ver. 7.0 2021/11/30
233
VIOLabel
: When user adds multiple of VIO files, user has to assign the cited location of Action File.
Set the desired output file
Ex.
PlayPWM(@1111, $VIO0)
Ri (support 1 ~ 4 Ri)
Ex.
PlayPWM(@1111, R3:R2:R1:R0)
Xi (support 1 ~ 2 Xi)
Ex.
PlayPWM(@1111, X1:X0)
Extension
: The extension function can extend length of signals to save ROM size. Extension=1/2/4/8.
Assign value.
Ex.
PlayPWM(@1111, $VIO0, 4)
Ri (support 1 Ri)
Ex.
PlayPWM(@1111, $VIO0, R0)
Keep the last setting when filling in X.
Ex.
PlayPWM(@1111, $VIO0, X)
Note:
1. NY4 / NY5 / NY5+ / NY6 / NY7 / NX1 do not support this command.
2. When 2 PWM-IO outputs command, the interval must be more than 16 ms for avoiding
incorrect actions.
3. The leftmost parameter of the PWMEn is set as the MSB of PWM-IO, and Action file
corresponds to the LSB of A1.
4. Action signals correspond to PWM-IO pin in order. A1 is the first priority for PE.0, if PE.0 is
not PWM-IO, A1 will correspond to PE.1, and so forth.
5. When user plays VIO file and outputs multiple of signals simultaneously, the time lengths
of signals have to be the same. If they are different, Q-Code will base on the longest output
signal and force the other signals with insufficient time to output 0%.
6. When specifying extension by Ri, the value of Ri must be1 / 2 / 4 / 8. If the parameter is
other than the above, it will be 1 eventually.
Ex.
[Action File]
VIO0 = Action1.vio
; Assign the Action file that contains the signal of
ActionLabel “A1~A6”.
VIO1 = Action2.vio
; Assign the Action file that contains the signal of
ActionLabel “A1~A6”.
[Path]
Path1: PlayPWM(@1100, $VIO0)
; Play “VIO0” and output to PE2, PE3.
Path2: PlayPWM(@0011, $VIO0)
; Play “VIO0” and output to PE0, PE1.
Path3: PlayPWM(@1111, $VIO1)
; Play “VIO1”, and output to PE0, PE1, PE2, PE3.
Path4: PlayPWM(@1111, $VIO1, 4)
; Extend VIO1 signal length in multiple of 4 and
output to PE0, PE1, PE2, PE3.
Path5: PlayPWM(@1111, $VIO1), PlayA…
; After end of playing “VIO1”, executing PlayA
command immediately.
Path6: PlayPWMS(@1111, $VIO1), PlayA…
; After playing ”VIO1”, executing PlayA command
immediately.