![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452241.webp)
E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-72
API Mnemonic
Operands
Function
24
D INC P
D
Increment
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
D
*
*
*
*
*
*
*
*
INC, INCP: 3 steps
DINC, DINCP: 5 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:
D
: Destination
Description:
1.
If the instruction is not in pulse mode, “1” is added to the value of the destination
D
every
execution of the instruction, which could be every scan.
2.
This instruction works best using pulse mode (INCP, DINCP).
3.
In the 16-bit instruction, when +32,767 is reached, “1” is added and it will write a value
of –32,768 to the destination. In 32-bit instruction, when +2,147,483,647 is reached, “1” is
added and it will write a value of -2,147,483,648 to the destination.
4.
Flags M1020~M1022 won’t be affected by the operation result of this instruction.
5. If
operand
D
uses index register F, then only 16-bit instruction is available.
Program Example:
When X0 = OFF
→
ON, the content of D0 will be incremented by 1.
X0
INCP
D0
Содержание 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...