Analog Scaling

iMalinko

Member
Join Date
Mar 2016
Location
Massachusetts
Posts
13
Hi, all.

I need some help with an analog scaling algorithm.

Basically, I have a digital signal that's 0 to full scale, which correlates to 0 - 10000 on my PLC.

My full scale values are 2.5, 4, 6.5, 10, and 15.

Basically, I'm trying to make a simple statement that depending on which full scale I am at, I can increase a value by 0.1 at a time, and it correlates to my 0 - 10000 count signal.
 
Standard questions:
What brand and model PLC?
Are you using Ladder, Structured Text or Function Block?
Is this a Homework Assignment?
 
Standard questions:
What brand and model PLC?
Are you using Ladder, Structured Text or Function Block?
Is this a Homework Assignment?
This isn't a PLC like Allen Bradley or Siemens. I am using a custom device that has a standard Modbus RTU protocol built into it. I am connecting it to a HMI and rather than doing a bunch of hide and show functions on the HMI; I was hoping to use a macro built into the HMI and a local parameter, and then translate accordingly.
 
Sorry I don't know maple HMI. Some HMI's have linear scaling built in I think. Myself I have always done it in the PLC because there are built in functions already that do it.


As mysum says, if your PLC doesn't already have such a function, you could easily write one using basic maths. Google "linear equation" or use this web calculator

If I understand you correctly you want 0-10000 to scale to 0-2.5 for example.

Your equation would then be : y=4000 * x + 0

So you would times 0.1 by 4000 to get your 0.1 value on the 0-2.5 to scale to 0-10000
 

Similar Topics

Hello, We monitor the temperature of a pipe via a 4-20mA temperature transducer. This goes into DB135(Read Analog Inputs). The issue I have is the...
Replies
0
Views
626
Hi all! I have a question about RSLOGIX and Analog input/output scaling So we have an existing controller with an IF8I and OF81 card. My...
Replies
3
Views
933
I’m trying to perfect the HMI interface for analog configuration. I’ve provided the user the same options for all analog inputs, as follows...
Replies
10
Views
1,672
Hi I have a modicon 984 with proworx 32 that is scaling an analog input, and I need to adjust the scaling. I have new analog input values and %...
Replies
3
Views
1,727
Hi, i've write this AOI to send a ControlValue comes from pid and control a valve. this valve is controlled through analog output. the rang of...
Replies
0
Views
1,025
Back
Top Bottom