360
SEG, SEGP
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program encodes the 3 bits from M10 when X20 is ON, and stores the results at D8.
[Ladder Mode] [List Mode]
[Operation]
: Data to be decoded or head number of the devices where the data to be decoded is stored (BIN 16 bits)
: Head number of the devices where the decoding result will be stored (BIN 16 bits)
Function
(1) Decodes the data from 0 to F designated by the lower 4 bits of to 7-segment display data, and stores at .
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The vaue of n is other than 0 to 8.
All data 2
n
bits from is "0".
4101
The range 2
n
bits from exceeds the range of the corresponding
device.
SEG, SEGP
7-segment decode
7.5.5
SEG, SEGP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
S
S
Step
Instruction
Device
0
0
0
0
0
0
0
0
0
1
1
Storage device D8
0
The location of the ON bit
,
counted from M10
,
is stored in BIN.
Encoding result
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
M10
M17
0
If 3 bits are designated as significant bits
,
8 points are occupied.
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
SEGP
SEG
S
S
SEG
SEGP
D
D
S
D
S
D
S
D