EasyManua.ls Logo

FATEK FBs-CB5 - Page 208

FATEK FBs-CB5
348 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Advanced Function Instruction
7-44
FUN 63 P
→HEX
CONVERSION OF ASCII CODE TO HEXADECIMAL VALUE
FUN 63 P
→HEX
〈Example 1〉When M1 from OFF→ON, ASCII code converted to hexadecimal value.
M1
EN
S :
N :
1
R0
63P. HEX
D :
R100
˙ Converts the ASCII code of R0 into hexadecimal
value and store to nibble0 (nibble1~nibble3 remain
unchanged) of R100
Originally R100=0000H
R0=0039H(9)Î R100=0009H
〈Example 2〉When M1 is ON, ASCII code converted to hexadecimal value.
M1
EN
S :
N :
2
R0
63. HEX
D :
R100
˙ Converts the ASCII code of R0 and R1 into
hexadecimal value and store to low byte (high byte
remain unchanged) of R100
R0=0039H(9) Originally R100=0000H
R1=0041H(A)Î R100=009AH
〈Example 3〉When M1 is ON, ASCII code converted to hexadecimal value.
M1
EN
S :
N :
R0
63. HEX
D :
R100
3
˙ Converts the ASCII code of R0 and R1 into
hexadecimal value and store result into R100 (nibble
3 remain unchanged)
R0=0039H (9) Originally R100=0000H
R1=0041H (A)
R2=0045H (E)Î R100=09AEH
〈Example 4〉When M1 is ON, ASCII code converted to hexadecimal value.
M1
EN
S :
N :
R0
63. HEX
D :
R100
6
˙Converts the ASCII code of R0~R5 into hexadecimal
value and store it to R100~R101
R0=0031H(1) Originally R100=0000H
R1=0032H(2) R101=0000H
R2=0033H(3)
R3=0034H(4)
R4=0035H(5)Î R100=3456H
R5=0036H(6) R101=0012H