M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.9 Data Processing Instructions
SEG, SEGP: 7-segment decode
Setting
Bit devices
data
X
Y
M
L
F
S
○
○
○
○
○
D
○
○
○
○
○
[Instruction symbol] [Execution condition]
SEG
SEGP
Setting data
Setting data
S
Device No. of devices where decoded data is stored
D
Head No. of the device where decoding results will be stored
Functions
SEG
Decodes the data from 0 to F designated by the lower 4 bits of S to 7-segment display data, and stores at D.
When a bit device is handled, "D" indicates the head No. of the devices storing the 7-segment display data; when a word
device is handled, "D" indicates the device storing the data.
Storage is done as follows for bit devices and word devices:
Before execution
Bit device
SEG
K7
Word device
SEG
K7
Refer to the next page for the 7-segment display.
Operation errors
There are no arithmetic errors associated with the SEG(P) instruction.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
○
○
○
○
○
○
○
○
○
○
Meaning
After execution
Y4F
0 0 1 0 0 1 1 1
K2Y48
b15
0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1
D8
Upper 8 bits are
always 0
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
○
○
○
○
○
○
○
○
○
○
○
○
Y48
8 points
D8
b8 b7
Lower 8 bits used to store
the 7-segment display data
300
Digit
Pointer
designa-
Index
tion
H
P
○
○
SEG
S
D
SEGP
S
D
Data type
BIN 16 bits
b0