EasyManua.ls Logo

FATEK FBs-CB2 - 7-SEGMENT CONVERSION (FUN 59 →7 SG)

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-37
FUN 59 P
7SG
7-SEGMENT CONVERSION
FUN 59 P
7SG
S :
D :
EN Conversion control
Ladder symbol
59P. 7SG
N :
ERR N value error
S : Source data to be converted
N : The nibble number within S for conversion
D : Register storing 7-segment result
S, N, D may combine with V, Z,P0~P9 to serve
indirect address application
WX WY WM WS TMR CTR HR IR OR SR ROR DR K XR
Range
Ope-
rand
WX0
WX240
WY0
WY240
WM0
WM1896
WS0
WS984
T0
T255
C0
C255
R0
R3839
R3840
R3903
R3904
R3967
R3968
R4167
R5000
R8071
D0
D4095
16-bit
+/-
number
VZ
P0~P9
S
N 03
D * *
When conversion control "EN" = 1 or "EN" ( P instruction) has a transition from 0 to 1, will convert N+1
number of nibbles (A nibble is comprised by 4 successive bits, so B0~B3 of S form nibble 0, B4~B7 form
nibble 1, etc...)within S to 7-segment code, and store the code into a low byte of D (High bytes does not
change). The 7 segment within D are put in sequence, with "a" segment placed at B6, "b" segment at
B5, .... ,"g" segment at B0. B7 is not used and is fixed as 0. For details please refer the "7-segment code
and display pattern table" shown in page 9-31.
Because this instruction is limited to 16 bits, and S only has 4 nibbles (NB0~NB3), the effective range of N
is 0~3. Beyond this range, will set the N value flag error "ERR" to 1, and does not carry out this instruction.
Care should be taken on total nibbles to be converted is N+1. N=0 means one digit to convert, N=1 means
two digits to convert etc…
When using the FATEK 7-segment expansion module(FBs-7SG) and the FUN84 (7SEG) handy instruction
for mixing decoding and non-decoding application, FUN59 and FUN84 can be combined to simplify the
program design.(Please refer the example in chapter 16)

Other manuals for FATEK FBs-CB2

Related product manuals