8. Function Commands
SEG, SEGP
- 286 -
{ SEG, SEGP ... Decoding to 7-segment display data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3
SEG
Decode command
D
S
SEG
SEGP
SEGP D
S
Setting data
D
S
Decode data or No. of
device where decode data
is stored.
No. of device to store the
decoding results.
Function
(1) The 0 to F data designated with the low-order 4-bit in S is decoded in the 7-segment display data
and stored in D.
Word device
D8
The high-order
8 bit is set to 0.
The 7-segment display data is
stored in the low-order 8-bit.
B15 B0
0000000000 001 111
SEG
D7 D8
The details are
set to 7.
(2) Refer to the following page for the 7-segment display.
Execution conditions
The execution conditions for SEG, SEGP are as follow.
Decode command OFF
SEG
ON
Executed per scan
Executed per scan
SEGP