Segment Decode (Seg(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.5

7-segment decode (SEG(P))

SEG(P)
SEG
SEGP
Setting
Data
S
D
Function
(1) Decodes the data from 0 to F designated by the lower 4 bits of
and stores at
(2) If
D
data; if it is a word device, indicates the number of the device storing the data.
Bit device
Word device
Operation Error
(1) There are no operation errors associated with the SEG(P) instruction.
Command
Command
: Data to be decoded or head number of the devices where the data to be decoded is stored (BIN 16 bits)
S
: Head number of the devices where the decoding result will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
.
D
is a bit device, indicates the head number of the devices storing the 7-segment display
Before execution
SEG K7 K2Y48
SEG K7
D8
High
Basic
performance
SEG
SEGP
J
\
U
\G
Bit
Word
After execution
Y4F
Y48
0 0 1 0 0 1 1 1
8 points
D8
b15
b8
b7
b0
0 0 0 0 0 0 0 0
0 0 1 0 0 1 1 1
Upper 8 bits are
7-segment display data is
stored in lower 8 bits.
always filled with 0s.
SEG(P)
Process
Redundant Universal
LCPU
S
D
S
D
Constants
Zn
Other
K, H
––
––
––
to 7-segment display data,
S
7-75
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