Q-Code User Manual
Ver. 7.0 2021/11/30
223
4.16.11 Table(TableName, Rx/Xx, Ry/Xy, Xh, Xl)
Table(TableName, Rx/Xx, Ry/Xy, Xh, Xl) command is for direct data addressing and it can be used to
read the entry of table defined in
[Table]
section.
TableName:
name of table defined in
[Table]
.
Rx/Xx:
The content of Xx represents the address of X axis. User can use 4-bit or 8-bit variable
addressing.
Ry/Xy:
The content ox Xy represents the address of Y axis. User can use 4-bit or 8-bit variable
addressing.
Xh:
save the High-Byte of obtained data to Xh.
Xl:
save the Low-Byte of obtained data to Xl.
Note: NX1 does not support this command.
Ex.
[Table]
Trans:
{
[0x001, 0x003, 0x005, 0x007, 0x009],
[0x004, 0x005, 0x3F6, 0x008, 0x010],
[0x000, 0x001, 0x002, 0x003, 0x0F4]
}
[Path]
P1 : X0=2, X1=1, TableL(trans,X0,X1,X2)
;
X2=0xF6.
P2 : X0=2, X1=1, TableH(trans,X0,X1,X2)
; X2=0x03.
P3 : X0=2, X1=1, Table(trans,X0,X1,X2,X3)
; X2=0x03
,
X3=0xF6.
4.16.12 TableL(TableName, X, Y, Xi)
TableL(TableName, X, Y, Xi) is the in-direct data addressing command. It could read the Low-Byte of
entry of table defined in the
[Table]
section.
TableName:
name of table defined in
[Table]
.
X:
represents the address of X axis.
Y:
represents the address of Y axis.
Xi:
save the Low-Byte of obtained data to Xi.
Note: NX1 does not support this command.
4.16.13 TableH(TableName, X, Y, Xi)
TableH(TableName, X, Y, Xi) is the in-direct data addressing command. It could read the High-Byte of
entry of table defined in the
[Table]
section.