Decoding From 8 To 256 Bits - Mitsubishi MELSEC-Q Series Programming Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

7.5.3

Decoding from 8 to 256 bits

DECO(P)
Structured ladder
DECO
EN
ENO
s
d
n
Input argument,
EN:
Executing condition
s:
Decoding data
n:
Valid bit length (1 to 8), no processing on 0
Output argument,
ENO:
Execution result
d:
Decoding result
Setting
data
s
n
d
Function
(1) Turns ON the bit position of
n bits of
.
s
(2) The value of n can be specified between 1 and 8.
(3) No processing is performed if n
specified for
(4) Bit devices are treated as 1 bit, and word devices as 16 bits.
P: Executing condition
ST
ENO:=
(EN, s, n, d);
DECO
Internal device
R, ZR
Bit
Word
Bit
, which corresponds to the binary value specified by the lower
d
n = 3
s
1 1 0
(Binary value = 6)
0, and there are no changes in the bits 2n from the device
.
d
indicates any of the following
instructions.
DECO
:Bit
:ANY_SIMPLE
:ANY16
:Bit
:ANY_SIMPLE
J
\
U
\G
Word
7
6 5 4 3 2 1 0
0 1
0 0 0 0 0 0
d
ON
7.5 Data Processing Instructions
7.5.3 Decoding from 8 to 256 bits
DECO
DECO
High
Universal
Performance
UD
:
DECOP
Constant
Zn
Others
K, H
7-65
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents