modicon weight scaling

stewy5000

Member
Join Date
Jul 2007
Location
Pennsylvania
Posts
16
Hello,
I have a momentum that I want to add weight to from a Metler
Toledo scale. My scale goes to 20,000lbs. and my signal is 4-20ma.
Im not sure how to make the logic,as far as math. can you help?
 
Scaling analogs in a Momentum is HORRIBLE :mad:


Anyways, heres how it works:
First thing is to converty all your values to Float using ITOF instructions.
This gives you alot better resolution.

Map out registers for Raw Input Value, Eng Unit Hi Scale, Raw Counts Full Scale.
Keep them at least 1 register apart as Floats take up 2 registers.

I use SUB blocks to hard code the following values into the math registers and while not strictly necessary it helps prevent any issues if the PLC is ever powered down.

Eng Units Hi = 20,000
Raw Count Full Scale = 32,000

Use a ITOF to convert all your values to floats.
Using an EMTH DIVF (Instruction 21) divide your Raw Counts Full Scale (float) by your Eng Full Scale (float) to give you counts/pound.
Put this in a 'Scaling Factor' register pair.
Then divide your actual analog input raw counts by the 'Scaling Factor' and put the result in a 'Scaled value' register pair.
Finally use an FTOI to change your scaled value back to an integer if required.

One thing worth noting - putting in a SUB block so if the analog value goes negative it just moves a Zero into the Raw Counts register is a good idea otherwise it'll screw up your math.
 
I have used Concept to program all the Momentums I have used. If yours is a Concept compatible unit then don't use 984LL use IEC and then you dont need to worry about registers

Geoff
 
Stewy,

I have a DFB that you can import into your program that emulates the SCP (scale with parameters) that AB has come up with in recent years.

It has Min and Max input and Min and Max scaling factor. It takes these and scales to an output.

Let me know if you need some help still

-J
 

Similar Topics

Everything was working fine, but suddenly CPU went into error mode, and the ERR and TER LEDs lit up. Now I can't download or connect with the PLC...
Replies
0
Views
36
Hello All, Was hoping I could get a little help with Modicon ladder logic. This is the first time I have seen Modicon logic and currently trying...
Replies
6
Views
259
I have a 170AAO92100 card that I am interested in using as a 10 volt output. Is there setup that I have to do in order to change output or simply...
Replies
0
Views
86
Hi, Seeking consultation on an implementation matter, and have a question about Modicon Compact 984 communication through RS485: Three Modicon...
Replies
4
Views
214
After updating a panel, I inherited another PLC for my "learning lab". It's a Modicon TSX Micro. I've not worked with a Modicon PLC yet, so I...
Replies
1
Views
134
Back
Top Bottom