Delta Electronics Programmable Logic Controller DVP-PLC User Manual
Page 351
![background image](/manuals/75807/351/background.png)
7 Application Instructions API 50-99
D V P - P L C A P P L I C AT I O N M A N U A L
7-67
API Mnemonic
Operands
Function
74
SEGL
Seven Segment with Latch
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C
D
E
F
S
*
*
*
*
*
*
*
*
*
*
*
D
*
n
*
*
SEGL: 7 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: Source device to be displayed in 7-segment display D: Start device for 7-segment display scan output
n
: Polarity setting of output signal and scan signal
Explanations:
1. Range
of
n
: 0 ~ 7. See remarks for more details.
2. For ES series MPU, the instruction can only be used once in the program. For EH series MPU, the instruction
can be used twice in the program. For SA series MPU, there is no limitation on the times of using the instruction,
but only one instruction can be executed at a time.
3. For ES/EX/SS/SA/SX/SC series MPU, the last digit of D should be 0 and it does not support E, F index register
modification.
4. Flag: M1029 (SEGL execution completed)
5. This instruction occupies 8 or 12 continuous external input points starting from D for displaying 1 or 2 4-digit
7-segment display data and outputs of scanned signals. Every digit carries a 7-segment display drive (to convert
the BCD codes into 7-segment display signal). The drive also carries latch control signals to retain the
7-segment display.
6. n decides there be 1 group or 2 groups of 4-digit 7-segment display and designates the polarity for the output.
7. When there is 1 group of 4-digit output, 8 output points will be occupied. When there are 2 groups of 4-digit
output, 12 output points will be occupied.
8. When this instruction is being executed, the scan output terminals will circulate the scan in sequence. When the
drive contact of the instruction goes from Off to On again, the scan output terminal will restart the scan again.
Program Example:
1. When X10 = On, this instruction starts to be executed, Y10 ~ Y17 construct a 7-segment display scan circuit.
The value in D10 will be converted into BCD codes and sent to the first group 7-segment display. The value in
D11 will be converted into BCD codes as well and sent to the second group 7-segment display. If the values in
D10 and D11 exceed 9,999, operational error will occur.
X10
SEGL
D10
Y10
K4
2. When X10 = On, Y14 ~ Y17 will circulate the scan automatically. Every cycle requires 12 scan period. Whenever
a cycle is completed, M1029 will be On for a scan period.