AD D0-06 Memory Issue

I have a rewinder that has an Automation DirectLogic D0-06 to control the drives. I have written the formula in to calculate rewind diameter to slow the drives without external inputs. It seems to work fine until the footage reached about 5400 feet, then it started the diameter over again like it was just the core. So my rewind drive sped back up to its starting speed. I narrowed the problem down to rung 47. What I noticed was until V2234 reaches 3ffff it works perfectly. When it turns to 40000 it drops the 4 thus starting again at 0. Is this a memory limit in the 06? Is there a way to work around it?

Stanford Diameter Calc.jpg
 
I haven't done much with Ad in a while but is there a reason you are using MULB and DIVB

DIVB
Divides the binary value in the lower 16 bits in the accumulator by a
value which is either a V memory location or a 16-bit constant. The
result resides in the accumulator.


I am wondering would DIVB see 40000h as 0 since it only looks at the lower 16 bits in the Accumulator

0100 0000 0000 0000 0000

Hex 10000 should trigger this as well but you might skip past that in your calculation

you may need to use MULD and DIVD

or work on the 16 bit Words of your Double seperately
 
I did originally use the MULD but it was not multiplying correctly so I switched to the MULB and it worked. I don't think the 40000 is the cutoff but I could be wrong. It seems that 30000 is just as high on the accumulator but there is no problem until 40000. I can't find anything in the 06 manual specifying the 40000 limit. I was hoping someone on here knew the answer of had run into this before and had a work around.
 
not saying 40000h is a hard limit because it wouldn't be for a DWord

does your v word ever equal 10000h 20000h or 30000h

I am just going off the MULD and DIVD excerpt from the manual stating it only used the lower 16 bits of the accumulator in its calculation

looking at the code you have posted with the multiplication dumping data to
V2234 it might pass those other values mentioned above.
 
I would say yes. I wasn't looking for that specifically but I was doing the math at each milestone footage (2000, 2500, 3000, etc...) and the number was dead on. Doing the math now I would say it would've hit 30000, at least, exactly.
 
I would change your multiplier to 2 and your divisor to 621h. All things being equal that should extend your range by a factor of 2 since V2234 won't get as high as soon. But fundamentally I have no idea why you are seeing what you are. It seems to be cutting at an 18-bit limit, which is an odd place to cut off. You might want to see if there is a mask applied to V2234 elsewhere in the programn that might be stripping off the bits above bit 17.

Keith
 
Because the equation would be 4/c46 and would give me a decimal out to the thousandths. I would have to convert to probably REAL numbers for the AD plc to be able to handle it. I'm not sure that I am hitting a number too high. You think it is?
 
As was stated above, the MULB instruction only operates on the value in the lower 16 bits of the accumulator. In effect, the issue isn't with V2234, it is with V2232/3. Once the value reaches 10000h there is nothing left in the lower 16 bits of the accumulator for the MULB instruction to work with. That is why it drops back down. It is also why my idea to change the multiplier to 2 in my updated post won't work (sorry about that first one by the way).

Is there a reason you cant do this in BCD or REAL format? Either should let you do what you want.

Keith
 
That makes sense. I see what you are getting at now. I will try changing it tomorrow and see if I can get it to work. Thanks for the insight.
 
I converted to REAL and it seems to work. I'll load it into the machine tomorrow and hope for the best. Thanks for pointing me in the right direction. I was looking at it wrong but you set me straight. Thanks again.
 

Similar Topics

Hi everyone, I'm trying to reset a memory bit (error_detected) in LOGO! Soft Comfort, similar to what I’ve done in STEP 7 using an RS pulse relay...
2
Replies
1,782
Views
I'm new to iFIX. My client’s iFIX system runs into an “out of memory” issue after operating for a while. The computer only has 16GB of RAM, with a...
13
Replies
2,659
Views
I am kind of new to GE products, but we have several in my area. I made a minor logic change and it verified good, but when I tried to download I...
5
Replies
679
Views
Hi Everyone, We are getting an error window whenever I opened the Factory talk asset center Application as "The Database size is critical level...
0
Replies
1,153
Views
Hello I have an issue with a new PC that has Wonderware & NAD setup. This PC is the NAD master and has the PLC drivers installed. There is one...
0
Replies
1,740
Views
Top