EasyManua.ls Logo

FATEK FBs-CB2 - Page 202

FATEK FBs-CB2
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-38
FUN 59 P
7SG
7-SEGMENT CONVERSION
FUN 59 P
7SG
Example 1When M1 OFFON, convert hexadecimal to 7-Segment
M1
EN
S :
N :
0
R0
59P. 7SG
D :
R100
ERR
˙Figure left shown the conversion of first digit(nibble) of
R0 to 7-segment and store in low byte of R100, the
high byte of R100 remain unchanged.
Original R1000000H
R00001H Î R1000030H1
Example 2When M1 ON, convert the hexadecimal to 7-Segment
M1
EN
S :
N : 1
R0
59. 7SG
D :
R100
ERR
˙Instruction at left will convert the first and the second
digit of R0 to 7-segment and store in R100.
˙The low byte of R100 stores first digit.
˙The high byte of R100 stores second digit.
R00056H Î R1005B5FH56
Example 3When M1 ON, converting hexadecimal to 7-Segment
M1
EN
S :
N :
R0
59. 7SG
D :
R100
ERR
2
˙Instruction at left will convert the first, second and third
digit of R0 to 7-segment and store in R100 and R101.
˙The low byte of R100 stores first digit.
˙The high byte of R100 stores second digit.
˙The low byte of R101 stores third digit.
˙The high byte of R10 remain unchanged.
Original R101=0000H
R0=0A48H Î R100=337FH48
R101=0077HA
Example 4When M1 ON, convert hexadecimal to 7-Segment
M1
EN
S :
N : 3
R0
59. 7SG
D :
R100
ERR
˙Instruction at left will convert 1~4 digit of R0 to
7-segment and store in R100 and R101.
˙The low byte of R100 stores first digit.
˙The high byte of R100 stores second digit.
˙The low byte of R101 stores third digit.
˙The high byte of R10 stores 4
th
digit.
R0=2790H Î R100=7B7EH90
R101=6D72H27

Other manuals for FATEK FBs-CB2

Related product manuals