EasyManua.ls Logo

Xinje XD5 - High Bit Coding [ENCO]

Xinje XD5
389 pages
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...
150
Ignore the 1 of M11
4-8-9High 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
M10ENCO 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·

Table of Contents

Related product manuals