Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Micrologix 1000?

Status
Not open for further replies.

kd8cfw

Electrical
Joined
Jul 11, 2006
Messages
1
Location
US
I am trying to accomplish a program that counts from 1 to 10 in binary by hitting a momentary pushbutton I:0/5 without using the CTU or CTD commands.

Does anyone know how to pull this off? I thought maybe an add instruction but couldn't get that to work either.
 
Forgive me for asking, but is this a classroom or training exercise of some sort?

What happened when you tried using the ADD instruction?
 
Here's a hint: Think about how you'd code that in BASIC using "If" statements. Consider what state changes are happening between your two numbers. The ladder code should be very simple from there.

--------------------
How much do YOU owe?
--------------------
 
You should be able to use the ADD instruction with a one-shot between the input and the add instruction.


ADD
I:0/5 B3:0/0 |--------|
---] [--------(ons)--------|A: N7:0 |
|B: 1 |
|D: N7:0 |
|--------|
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top