7.9 ENCO (Encoding)
■
Ladder diagram
■
List of operands
Operand Description
S The device address where the data for encoding are stored, or the constant
n
The device address where control data (specification of the result output start bit, and specification
of the conversion-enabled bit length) are stored, or the constant
D Storage device address
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S ● ● ● ● ● ● ● ● ● ● ● ●
n ● ● ● ● ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices, and integer constants can be modified. (Real number constants, and character
constants cannot be specified.)
■
Outline of operation
● This instruction encodes a part of a device address value or a constant specified by [S], and
stores the result to the device address specified by [D].
● The target section to be encoded is specified by the control data [n].
● If multiple bits are ON in the target section for encoding, the higher bit is enabled.
● Encode the content for 2nL bits, starting with the device address specified by [S]. The
encoded result is stored as a decimal number within 8 bits from the bit specified by "nH".
● In the device address specified by [D], portions other than the one storing the conversion
result should be 0 (should be set to 0).
7.9 ENCO (Encoding)
7-20 WUME-FP7CPUPGR-12