Seven Segment With Latch
SEGL
This instruction controls one or two sets of 4-digit seven-segment display units having the latch function.
Ladder diagram
(s)
(d)
(n)
FBD/LD
EN
ENO
s
d
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device converted into the BCD format
(d)
Head Y number to be output
(n)
Parameter number
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
*1
(d)
(n)
*1 Only Y can be used.
Processing details
The 4-digit numeric value stored in (s) is converted into BCD data, and each digit is output to the seven-segment display unit
with the BCD decoder by the time division method. For (s), binary data ranging from 0 to 9999 is valid.
Set the parameters (n) as follows according to the positive/negative logic of the PLC and the positive/negative logic of the
seven-segment display module.
PLC output logic
Data input
Negative logic
Negative logic (match)
Positive logic (mismatch)
Positive logic
Positive logic (match)
Negative logic (mismatch)
Word
T, ST, C, D, W,
U\G
SD, SW, R
Strobe signal
Negative logic (mismatch)
Positive logic (match)
Negative logic (mismatch)
Positive logic (match)
Positive logic (match)
Negative logic (mismatch)
Positive logic (match)
Negative logic (mismatch)
Structured text
ENO:=SEGL(EN,s,n,d);
Range
Data type
0 to 9999
16-bit signed binary
bit
0 to 7
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Parameter "n"
4 digits 1 set
0
1
2
3
0
1
2
3
Data type (label)
ANY16
ANY_BOOL
ANY16_U
BOOL
BOOL
Constant
Others
K, H
E
$
4 digits 2 set
4
5
6
7
4
5
6
7
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
7
331