154
Ignore the 1 in bit14,
bit12, bit10, bit8
If multiple bits in the source address is 1, the high bit 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.
When n
≤
3, the high 8 bits in D0 are neglected.
The encoding object has 2
3
= 8 bits, that is, bit7 ~ bit0 in D0. The encoding result is stored in
the lower 3 bits in D1, that is, bit2 ~ bit0.
When bit7 and bit4 in D0 are both 1, bit7 is ignored and bit4 is coded. Bit 2 is 1 when bit2-
bit0 is expressed as 4.
< is word soft component > n
≤
4
D0
ENCOL
D1
K4
X1
n
S·
D·
0
1
0
1
0
1
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
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 multiple bits in the source address is 1, the high bit 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 lowest bit of 1 in D0 is bit5, ignoring all high bits 1, and encoding bit5 with bit3-bit0 as
5, bit2 and bit0 as 1.
4-8-11
.
Binary to Gray code [GRY]
1. Summary
Transform the binary data to gray code.
Binary to gray [GRY]
16 bits
GRY
32 bits
DGRY
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
-
Software
requirement
-
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 ...