13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 63 P→HEXCONVERSION OF ASCII CODE TO HEXADECIMAL VALUEFUN 63 P→HEX〈Example 1〉When M1 from OFF→ON, ASCII code converted to hexadecimal value.M163P. HEXEN S : R0N : 1D : R100˙ Converts the ASCII code of R0 into hexadecimalvalue and store to nibble0 (nibble1~nibble3 remainunchanged) of R100Originally R100=0000HR0=0039H(9) R100=0009H〈Example 2〉When M1 is ON, ASCII code converted to hexadecimal value.M163. HEXEN S : R0N : 2D : R100˙ Converts the ASCII code of R0 and R1 intohexadecimal value and store to low byte (high byteremain unchanged) of R100R0=0039H(9)R1=0041H(A)Originally R100=0000HR100=009AH〈Example 3〉When M1 is ON, ASCII code converted to hexadecimal value.M163. HEXEN S :N :R03D : R100˙ Converts the ASCII code of R0 and R1 intohexadecimal value and store result into R100 (nibble3 remain unchanged)R0=0039H (9)R1=0041H (A)R2=0045H (E)Originally R100=0000HR100=09AEH〈Example 4〉When M1 is ON, ASCII code converted to hexadecimal value.M163. HEXEN S :N :R06D : R100˙Converts the ASCII code of R0~R5 into hexadecimalvalue and store it to R100~R101R0=0031H(1)R1=0032H(2)R2=0033H(3)R3=0034H(4)R4=0035H(5)R5=0036H(6)Originally R100=0000HR101=0000HR100=3456HR101=0012H7-44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!