13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Advanced Function <strong>Instruction</strong>FUN 64 P→ASCIICONVERSION OF HEXADECIMAL VALUE TO ASCII CODEFUN 64 P→ASCII〈Example 1〉When M1 changes from OFF→ON, it converts hexadecimal value to ASCII code.M164P. ASCIIEN S : R0N : 1D : R100˙Converts the Nibble 0 of R0 to ASCII code and storesit into R100 (High byte does not change).R0=0009H R100=0039H(9)〈Example 2〉When M1 is ON, it converts hexadecimal value to ASCII code.M164. SCIIEN S : R0N : 2D : R100˙Converts the NB0~NB1 of R0 to ASCII code andstores it into R100 ~ R101 (high bytes remainunchanged).R0=009AH R100=0039H(9)R101=0041H(A)〈Example 3〉When M1 is ON, it converts hexadecimal value to ASCII code.M164. SCIIEN S :N :R03D : R100˙Converts the NB0~NB2 of R0 to ASCII code andstores it into R100~R102R0=0123H R100=0031H(1)R101=0032H(2)R102=0033H(3)〈Example 4〉When M1 is ON, it converts hexadecimal value to ASCII code.M164. SCIIEN S :N :R06D : R100˙Converts the NB0~NB5 of R0~R1 to ASCII codeand stores it into R100~R105R0=3456H R100=0031H(1)R1=0012HR101=0032H(2)R102=0033H(3)R103=0034H(4)R104=0035H(5)R105=0036H(6)7-46

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

Saved successfully!

Ooh no, something went wrong!