6F3B0253
236 T1-16S User’s Manual
7. Instructions

FUN 186 ASC ASCII conversion

Expression
Input [ A ASC B ] Output
Function
When the input is ON, this instruction converts the alphanumeric characters into the ASCII codes,
and stores them in the register table starting with B. (16 characters maximum)
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution ON
Operand
Name Device Register Constant Index
X Y R S T. C. XWYWRWSW T C D I J K
ACharacters
BStart of
destination √√√√√√
Example
When R030 is ON, the characters ‘ABCDEFGHIJKLMN’ is converted into the ASCII codes, and
the result is stored in 8 registers starting with lower 8 bits (byte) of D0200 (D0200 to D0207).
High Low
F 8 7 0
D0200 H42 (B) H41 (A)
D0201 H44 (D) H43 (C)
D0202 H46 (F) H45 (E)
D0203 H48 (H) H47 (G)
D0204 H4A (J) H49 (I)
D0205 H4C (L) H4B (K)
D0206 H4E (N) H4D (M)
D0207
Note
Only the number of bytes converted are stored. The re st are not changed. In the above
example, 14 characters are converted into 14 bytes of ASCII code, and these ASCII codes are
stored in 7 registers (D0200 to D0206). The data of D0207 remains unchanged.
Previous data is remained