Advanced Function Instruction
7 -3 7
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
V
、
Z
P0~P9
S
○
○
○
○
○
○
○
○
○
○
○
○
○
○
N
○
○
○
○
○
○
○
○
○
○
○
○
0
~
3
○
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)
Содержание FBs-CBE
Страница 78: ...MEMO ...
Страница 111: ...4 6 X0 X1 Node A Y0 Y1 Node B differential down Incerse differential up t Scan time Inverse t t ...
Страница 141: ...Basic Function Instruction 6 16 FUN 2 SKP SKIP START FUN 2 SKP Y2 Y1 Y0 T201 10S X0 X1 X2 0 10 0 ...
Страница 305: ...MEMO ...
Страница 348: ...MEMO ...