Specifications
7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-24
DECO D10 K3D20
X10
0101010101 10010 1
b0b15
D10
0000000000 01000 0
A
ll are 0
76 12450
b15 b0D20
124
3
When 3 is specified
at b0 to 2 of D10
Decode result
When 3 is specified as effective
bits, 8 points are occupied
b3 at the third position
from b0 turns on.
42 ENCO
S D n 256 8 bit encode
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨ ϨϨϨϨϨ
D
ϨϨϨϨϨ
n
ϨϨ
Encodes the data of 2
n
bits, which begin with
S
, and stores the
result to
D
.
For
n
, 1 to 8 can be specified.
When n=0 or n>8 the calculation error will occur.
When multiple bits are 1, processing is performed for the last bit
position.
S
is used in the case of a bit device, 0<nЉ8
ENCO M0 K3D0
X0
M07 M06 M05 M04 M03 M02 M01 M00
00 0000 01
76 1054 2
0000000000 10000 1
b0
b15
3
124
D0
Encode resul
Which point, counting from M0, is on is stored in BIN
When 3 is specified as effective bits, 8 points are occupied.
S
is used in the case of word device, 0<nЉ4
ENCO D10 K3D20
X0
0101010100 1 0000 0
b0b15
D10
0000000000 10000 1
Data inactivated
b15
b0
D20
7
6124
5
03
When 3 is specified
at b0 to 2 of D10
Encode result
When 3 is specified as effective
bits, 8 points are occupied
b3 at the third position
from b0 turns on.
D
43 SUM
S D Sum of the ON bit
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨϨϨϨϨϨϨϨϨϨ
D
Ϩ Ϩ Ϩ ϨϨϨϨϨ