152
Ignore the 1 in bit2,
bit5, bit8, bit10, bit12
0
1
0
1
0
1
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
7
6
5
4
2
1
0
D0
D1
bit15
bit15
bit0
bit0
4
2
1
3
All to be 0
15 14 13 12
10
9
8
11
8
If the number of bits in the source address is 1, the low side is ignored, and if the source
address is 0, the instruction will not be executed.
When the driver input is OFF, the instruction is not executed and the coding output is
unchanged.
N = 4, the encoded object has 2
4
= 16 bits, that is, bit15 ~ bit0 in D0. The encoding result is
stored in the lower 4 bits in D1, that is, bit3 ~ bit0.
The highest bit of 1 in D0 is bit14, ignoring all low bits 1, and encoding bit14, bit3-bit0
represent 14, bit3, bit2 and bit1 are 1.
4-8-10
.
Low bit coding [ENCOL]
1. Summary
Find the position where the low bit is ON.
Low bit coding [ENCOL]
16 bits
ENCOL
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
Soft element address need coding
16bit,BIN
D
Soft element address to save coding result
16bit,BIN
n
The bit quantity of coding result
16bit,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.
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
Содержание 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 ...