Thursday, April 29, 2010

INC instruction on Omron plc





INC(090) - Increment BCD
INC instructions
Purpose:
Increments Wd by the operand by 1, without affecting Carry (CY).
Further information can be found in BCD calculations.

Operand Data Areas:
Wd: Increment word CIO, G, A, DM, DR, IR

Examples of the use of INC instruction :
INC
If 0000.00=ON Then Increments D00000 by the operand by 1


Differentiate Up INC
with Differentiate Up
If 0000.00=ON Then D00000=1
If 0000.00=OFF Then D00000=1
If 0000.00=ON Then D00000=2
If 0000.00=OFF Then D00000=2, etc.



Newer Post Older Post Home

You may also like these ebook:

Get Free PLC eBook directly sent to your email,
and email subscription to program-plc.blogspot.com




We hate SPAM. Your information is never sold or shared with anyone.

Your Email Will Be 100% Secured !