slc 5/04 div instruction problems

eastkodakguy

Member
Join Date
May 2002
Location
Fayetteville, Arkansas
Posts
96
I had a wierd problem today while using a brand new (a few weeks old) slc 5/04. Well I was trying to us the divide instruction to get the the speed in percent that the motor was running so that I could transfer it to a PV. Well this is what I did
Source A F15:0 with a value of 2638.06
Source B value of 3450 (constant variable)
Dest: F15:80

Well what my actual problem was I tried using this instruction just like it is in something like Lad 9- PV and it would not work. my destination would have a value of zero. I copied the rung then deleted it and placed it in Lad-2 Main and it works perfect. My first guess was that I was trying to overwrite it thinking maybe it was already in use which it was not in use, but then It worked when i put it in the first Lad. Seems pretty wierd to me maybe some of you could shed some light on this for me as to possibilies as to why this wouldnt work in one Lad but then work in another.
thanks
Dallas
 
Yes, but is the JSR being called? Unless it's unconditional, check that the rung is true...

Other 'stuff' to look for: Jumps, MCR instructions, or whatever else might be causing your DIV rung (or the JSR rung in File 2) to get skipped.

beerchug

-Eric
 
I have done it once........

Could it be possible that the rung you added to file 9 was after the "return" or "end" instruction

This mistake won't give you an error message.

I have done this once.... :D
 

Similar Topics

I'm trying to read/write to an SLC5 with a ControlLogix L71 V35 plc that fails. The exact same code works on an L82S with V32. Is there a known...
Replies
9
Views
103
I'm ashamed to admit this but I've never had to replace a battery in a SLC. Some how been able to skip that task in all my years. So yesterday...
Replies
8
Views
215
I have a program that I've used 100 times. SQO settings: File N7:0, Mask 0FFFFh, Dest B3:1, Control R6:0, Length 8, Pos 2. Length & Position...
Replies
48
Views
793
Hello PLC friends. I've been going through a saga of diagnosing and fixing an old PLC setup that I inherited. I am learning as I go. Initial...
Replies
14
Views
298
I had a 5/01 CPU give a CPU Fault. It lost the program and I was not able to establish communication with it. I replaced it with a 5/03 we had in...
Replies
3
Views
111
Back
Top Bottom