EasyManua.ls Logo

FATEK FBs-CB2 - Page 200

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-36
FUN 58 P
ENCOD
ENCODE
FUN 58 P
ENCOD
If the encoding end point (bN
L
1) beyond the B15 of S, then continue extending towards S+1, S+2, but it must
not exceed the range of specific type of operand. If it goes beyond this, then this instruction can only take the
discrete points between b0 and the highest limit into account for encoding.
X0
EN
S :
Ns :
9
WY 0
58P.ENCOD
D=0
D :
R 0
N
L :
36
H/L
ERR
z The instruction at left is a high priority encode example.
When X0 goes from 0 to 1, will take out toward left 36
successive bits starting from B9 (b0) specified by Ns
within S, and perform high priority encoding (because
H/L = 1). That is, starting from b35 (encoding end point),
move right to find the first bit with the value of 1. The
resultant value of this example is b26, so the value of D
is 001AH=26, as shown in the diagram below.
S D
(b0)
B15 B9 B0
R0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Y15 Y0
R1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WY0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0
R2 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0
X0
Ö
B47 B44
b35
b26
B32
High byte always
fill with "0"
26
encode value
The first bit with the value of 1
for high priority encoding

Other manuals for FATEK FBs-CB2

Related product manuals