150
Ignore the 1 of M11
4-8-9
.
High bit coding [ENCO]
1. Summary
Find the highest bit which is 1.
High bit coding [ENCO]
16 bits
ENCO
32 bits
-
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands Function
Data Type
S
Coding data address
16 bits, BIN
D
Coding result address
16 bits, BIN
n
The bit quantity of coding result
16 bits, BIN
3. Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
M includes M, HM, SM; S includes S, HS; T includes T and HT; C includes C and HC.
< When is bit device > n≤16
M10
ENCO
D10
K3
X0
n
S·
D·
0
0
0
1
0
1
0
M17
M16
M15
M14
M13
M12
M11
M10
7
6
5
4
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
D10
bit15
bit0
4
3
2
1
All to be 0
Operand
System
Constant
Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
S
●
●
●
●
●
●
●
●
D
●
●
●
●
●
●
n
●
Word
Operand
System
X
Y
M
*
S
*
T
*
C
*
Dn.m
S
●
●
●
●
●
●
Bit
Description
S·
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...