simple math????

rookie77

Member
Join Date
Aug 2012
Location
hamilton
Posts
30
hey Guys,

I want to take my five counters, add them and multiple by 10,

I got it to work, but WAY to many lines.

Any suggestions,

micrologix 1000
 
The ML1000 is a bottom dweller. It doesn't support a CPT statement or indirect addressing. The number of interations is too small to bother with indexed addressing. You have to do it by brute force.


It shouldn't take more than five rungs.

  1. ADD C5:0.ACC C5:1.ACC N7:0 (add the first two counters)
  2. ADD N7:0 C5:2.ACC N7:0 (add the third counter to the total)
  3. ADD N7:0 C5:3.ACC N7:0 (add the fourth counter to the total)
  4. ADD N7:0 C5:4.ACC N7:0 (add the fifth counter to the total)
  5. MUL N7:0 10 N7:1 (multiply by 10)
 
Last edited:

Similar Topics

Guys I'm sure this is simple, its just not for me. if an i/p is calibrated for 10-50ma input equals 6-50psi out. what is the out at 25ma? What...
Replies
5
Views
2,154
Hi everyone, I am having a little problem verifying some math results being done in DL06. Doing simple math in DL06 suppose to be relatively...
Replies
5
Views
4,728
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
169
Hi all, Writng a FB in ST on Beckhoff TC for a pulser which turns on and off on a cycle, is paused by turning bControlInput to FALSE, but resumes...
Replies
6
Views
256
I'm trying to build my Classic Step 7 programming skills this weekend. I get stuck on little things that are not covered in YouTube tutorials. I'm...
Replies
7
Views
319
Back
Top Bottom