Slc500 Jmp Inst Problem,need Review And Help

Changes

I have updated the program with a little more detail. IE Explanations.
Allen,
I know its only 26 lines but it works just the way i want except for the 4 way problem. Meaning spinning forward, reverse then forward and reverse.
I have posted the updated ladder.
Chris
 
Re: (Insubstantial) Changes

av8r said:
it works just the way i want

If you say so. There's much about this that I don't like.

Such as:
  • It is so hard to follow, that it's difficult to be sure what it's doing, why it's doing it, and what should it be doing.
  • The only way to stop it is to hit the e-stop. I THINK that it might stop on its own after only one cycle (but then again, that's the problem you are having, right? You want it to do two cycles before stopping, right?)
  • Not all the dots are connected. You Latch B3/31 (rung 13), but never unlatch it. You unlatch B3/16 (rung 11), but never set it (or use it).
  • You still have serveral I/O point completely unannotated (you should at least know what THOSE are wired to), let alone most of your B3 bits.



If I were to hazzard a guess as to how to fix your problem (and it would be a hazzard), try adding I:1/11 to rung 12, on the branch that looks for B3/11. I'm guessing (using intuition, not logic), that your problem is that this branch doesn't know that it's supposed to be waiting for C5:0 to be used, and so, since the conditions are OK, it stops.

I'm not sure how much more I'll be able to help you. My best advice is still to spend less time writing a new, good preogram than struggling understanding this one.

Good luck.
 
I agree with Allen that the program should be redone for the reasons he states.

I would also like to suggest that helping to this point, with this logic, was not a good idea. We now have a program that almost does what we want, but we don't know how or why.

If any of us were to take on this project, we would have evaluated the machine, devised a plan and produced controls from scratch.

Just because people want help, doesn't mean they should get it.

I am not picking on av8r, I just don't like knowing that this beast of a machine is out there.
 
For repeating cycles try the SQO Instruction. I do not have any real life experience with the SQO Instruction. I have tested this logic and it seems to work. Any input and/or corrections are welcome.
 
Here is the ladder logic

SOR BST XIC B3:0/1 NXB XIC B3:0/3 XIO R6:1/DN BND XIC B3:0/2 OTE B3:0/3 EOR SOR OTU B9:0/1 EOR SOR XIC B3:0/11 BST MOV 2 R6:1.LEN NXB COP #N11:1 #N10:1 10 BND EOR SOR XIC B3:0/12 BST MOV 3 R6:1.LEN NXB COP #N12:1 #N10:1 10 BND EOR SOR XIC B3:0/14 BST MOV 5 R6:1.LEN NXB COP #N14:1 #N10:1 10 BND EOR SOR XIC B3:0/3 XIO T4:1/DN TON T4:1 0.01 500 0 EOR SOR XIC R6:1/DN CLR R6:1.POS EOR SOR XIC T4:1/EN SQO #N10:1 0FFFFh N20:1 R6:1 5 0 EOR SOR XIO B3:0/2 CLR N20:1 EOR SOR XIC N20:1/1 OTE B23:0/1 EOR SOR XIC N20:1/2 OTE B23:0/2 EOR

Just copy and paste into the ladder window

N11:2 = 2

N12:2 = 2
N12:3 = 4

N14:2 = 2
N14:3 = 4
N14:4 = 2
N14:5 = 4
 

Similar Topics

I am trying to convert 5TI program to AB SLC500. But I am not sure the how does jmp instruction work. I try to convert as below. Am I right...
Replies
1
Views
2,284
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
259
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
187
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
391
Customer is buying several spare 504 CPU's to have one handy when there's an issue with the ones in operation. Having them on the shelf for years...
Replies
15
Views
2,839
Back
Top Bottom