EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #104 background imageLoading...
Page #104 background image
104 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 2 Bit Instructions (XIC, XIO, OTE, OTL, OTU, ONS, OSR, OSF, OSRI, OSFI)
Example: You typically precede the ONS instruction with an input instruction because you
scan the ONS instruction when it is enabled and when it is disabled for it to
operate correctly. Once the ONS instruction is enabled, the rung-condition-in
must go clear or the storage bit must be cleared for the ONS instruction to be
enabled again.
On any scan for which limit_switch_1 is cleared or storage_1 is set, this rung has
no affect. On any scan for which limit_switch_1 is set and storage_1 is cleared, the
ONS instruction sets storage_1 and the ADD instruction increments sum by 1.
As long as limit_switch_1 stays set, sum stays the same value. The limit_switch_1
must go from cleared to set again for sum to be
incremented again.
Relay Ladder
Structured Text
IF limit_switch_1 AND NOT storage_1 THEN
sum := sum + 1;
END_IF;
storage_1 := limit_switch_1;

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals