![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452376.webp)
3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-207
API Mnemonic
Operands
Function
74
SEGL
S, D, n
7-segment with Latch
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
: Source address for the 7-segment display
D
: Starting address of 7-segment display outputs
n
: Polarity set-point of output signal and scan signal (
n
=0~7)
Description:
1.
8 or 12 consecutive external output points with the starting address defined by
D
can be
regarded as display and scan signal outputs of 1 or 2 groups of 4 digits for a 7-segment display.
A 7-segment display module has the ability to convert input BCD code to a 7-segment display
and uses a control signal to latch it.
2.
n
will determine the number of groups of 4 digits for a 7-segment display..
3.
Each time this instruction executes, it cycles through writing each group of outputs to the
outputs for the 7-segment display, one at a time.
4.
For ELC-PB, ELCB-PB series controllers, the instruction can only be used once in the
program.
5.
For ELC-PV series controllers, the instruction can be used twice in the program.
6.
For ELC-PC/PA/PH, ELCM-PH/PA series controllers, there is no limitation on the times of
using the instruction, but only one instruction can be executed at a time.
7.
Flag: When SEGL is completed, M1029 = ON for one scan cycle.
Program Example:
1.
When X20=ON, instruction will start to execute. 7-segment display is connected to outputs
Y20~Y27. The value of D10 will be converted to BCD code and sent to the first group for the
7-segment display. The value of D11 will be converted to BCD code and sent to the second
group for the 7-segment display. If any value of D10 or D11 is greater than 9,999, an operation
error will occur.
X20
SEGL
D10
Y20
K4
2.
When X20=ON, Y24~Y27 will begin cycling ON, one at a time. Each cycle needs 12 scan
cycles. M1029=ON when each cycle completes.
3.
4 digits per group,
n
=0~3
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...