Example - Ladder Diagram
SEG
The SEG instruction converts a Hexadecimal value, S, into 7-segment code representation. The conversion is saved in an assigned data register, D.
Ladder Diagram Example
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.
Memory Monitor
![]()
SEGP
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.
Ladder Diagram Example
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.
Memory Monitor
![]()