Encoding From 256 To 8 Bits (Enco(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.5.4

Encoding from 256 to 8 bits (ENCO(P))

ENCO(P)
ENCO
ENCOP
Setting
Data
S
D
n
Function
(1) Stores the binary value corresponding to the bits which are "1" included in the 2
to
S
(2) The value of n can be designated at between 1 and 8.
(3) If n
(4) Bit devices are treated as 1 bit, and word devices as 16 bits.
(5) If more than 1 bit is at 1, processing will be conducted at the upper bit location.
Command
Command
: Head number of the device where the data to be encoded is stored (Device name)
S
: Number of the device where the encoding result will be stored (BIN 16 bits)
D
n
: Valid bit length (1 to 8), 0: No processing (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
.
D
8
7
6
5 4 3 2 1 0
0
1 0 0 0 0 0 0
S
0
0, there will be no operation, and the contents of
High
Basic
performance
ENCO
S
ENCOP
S
J
\
U
\G
Bit
Word
––
D
1 1 0
(Binary value = 6)
will not change.
D
ENCO(P)
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
––
––
n
-bit data of
7-73
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents