![FATEK FBs Series Скачать руководство пользователя страница 200](http://html1.mh-extra.com/html/fatek/fbs-series/fbs-series_manual_3764826200.webp)
Advanced Function Instruction
7 -3 6
FUN 58
P
ENCOD
ENCODE
FUN 58
P
ENCOD
●
If the encoding end point (b
N
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
Содержание FBs Series
Страница 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 ...