The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
S
D

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
3

Operands

OperandDescription
SThe first operand.
Entries are WORD data registers or constants.
This is the value to convert to 7-segment code.

The value range is H0000 ~ HFFFF.
DThe second operand.
Entries are only DWORD data registers.
This is where the 7-segment code is saved.

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.

Instruction Behavior

The SEG and SEGP instructions behave as follows:

  • Converted data is stored in D and D+1.
  • It is possible to express arabic numerals (0\~9) and alphabets (A\~F).
  • The 160‘s place of the conversion result is stored in the lower byte of the data register D.
Notice for MapleLogic SEG/SEGP instruction.
Notice for MapleLogic SEG/SEGP instruction.
Notice for MapleLogic SEG/SEGP instruction.

Ladder Diagram Examples

SEG

The SEG instruction converts a Hexadecimal value, S, into 7-segment code representation. The conversion is saved in an assigned data register, D.

The SEG instruction converts a Hexadecimal value, S, into 7-segment code representation. The conversion is saved in an assigned data register, D.

When the contact, M0.0 is ON (1), the instruction converts the data register, D0, into 7-segment code.

When the contact, M0.0 is ON (1), the instruction converts the data register, D0, into 7-segment code. The result is saved in D2.

Ladder Diagram Example for MapleLogic SEG/SEGP instruction.

Memory Monitor

Memory Monitor for MapleLogic SEG/SEGP instruction.
Memory Monitor for MapleLogic SEG/SEGP instruction.

SEGP

The SEGP one-shot instruction converts a Hexadecimal value, S, into 7-segment code representation. The conversion is saved in an assigned data registe

The SEGP one-shot instruction converts a Hexadecimal value, S, into 7-segment code representation. The conversion is saved in an assigned data register, D. Every time this instruction executes, it energizes the output only once.

When the contact, M0.1 is ON (1), the instruction converts the data register, D5, into 7-segment code.

When the contact, M0.1 is ON (1), the instruction converts the data register, D5, into 7-segment code. The result is saved in D7.

Ladder Diagram Example for MapleLogic SEG/SEGP instruction.

Memory Monitor

Memory Monitor for MapleLogic SEG/SEGP instruction.
Memory Monitor for MapleLogic SEG/SEGP instruction.