![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452352.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-183
API Mnemonic
Operands
Function
63
INCD
S
1
, S
2
, D, n
Incremental drum sequencer
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C D E
F
S
1
*
*
*
*
*
*
*
S
2
*
D
*
*
*
n
*
*
INCD: 9 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
1
: Starting address of the compare data table
S
2
: Counter number
D
: Starting address of
compare result
n
: Groups of multi-step comparison (
n
=1~64)
Description:
1.
The INCD instruction is a multi-step comparison instruction and is typically used for relative
cam control.
2.
The current value of
S
2
is compared against the set-point values of
S
1,
one at a time.. Once the
current value is equal to the present set-point value, the current value of
S
2
will be reset to 0
and be compared again. The total number of equal comparisons is stored in
S
2
+1.
3.
When the comparison of n groups of data has been completed, the execution complete flag
M1029 = ON for one scan cycle.
4. When
operand
S
1
is specified as KnX, KnY, KnM or KnS, n=4 must be used.
5.
In 16-bit instructions, operand
S
2
must be C0~C198 and will occupy 2 consecutive counters.
6.
Flag:
M1029 is the execution complete flag.
Program Example:
1.
Before executing the INCD instruction, preload the set-point values into D100~D104 in
advance. D100=15, D101=30, D102=10, D103=40, D104=25.
2.
The current value of counter C10 is compared against the set-point values of D100~D104, one
at a time. Each time the current value is equal to the current set-point value, the current value
of C10 will be reset to 0 and will be compared again. Meanwhile C11 keeps a count of the
number of equal comparisons..
3.
When the content of C11 increments by 1, M10~M14 will also change. The state of each of
these bits indicates where in the compare cycle the instruction is. Refer to the timing diagram
below.
4.
When the comparison of 5 groups of data has been completed, the execution completed flag
M1029 = ON for one scan cycle.
Содержание 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...