Enco (Encoding) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

7.9 ENCO (Encoding)

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
The device address where control data (specification of the result output start bit, and specification
n
of the conversion-enabled bit length) are stored, or the constant
D
Storage device address
Available devices (●: Available)
Operan
d
W
W
X
Y
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-20
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
F
WUME-FP7CPUPGR-12
Index
modifie
r
(Note 1)

Advertisement

Table of Contents
loading

Table of Contents