How can I use negative in scale function?

narky

Member
Join Date
Feb 2013
Location
San Diego, CA
Posts
13
Hi, I'm using thermistor as my analog input. Thermister is a negative coefficient and AB scaling seem to only accept positive(this could also be my limited brain cells). I was hoping to use N7 through SCP function but it wont accept Min > Max. SCL slope rates seem to only accept positive decimal number so now I'm stuck. Can you please help?
 
What platform:pLC, ML, SLC?
What do you mean by a "negative coefficient"?...:unsure:
If, for example, the "thermister" "puts" out 32767 at Min. Temperature and 0 at Max. Temperature then make Input Min. =32767 and Input Max.=0 while Scaled Min.=32 (Deg.F)and Scaled Max.=212 (Deg.F) if following the water states temperatures for example.
 
If you already have determined the scale and offset then just do the math individually. Don't worry about SCP or SCL. They don't do anything magic that can't be done by a couple of math operations or even a CPT instruction.
 
What platform:pLC, ML, SLC?
What do you mean by a "negative coefficient"?...:unsure:
If, for example, the "thermister" "puts" out 32767 at Min. Temperature and 0 at Max. Temperature then make Input Min. =32767 and Input Max.=0 while Scaled Min.=32 (Deg.F)and Scaled Max.=212 (Deg.F) if following the water states temperatures for example.


Hi, this for ML. SCP won't let me do as above. Min can't be more than Max. Additional SCL won't let me put negative decimal for slope. I'll try to use integer file and see if I can indirect SCL to it.
 
If you already have determined the scale and offset then just do the math individually. Don't worry about SCP or SCL. They don't do anything magic that can't be done by a couple of math operations or even a CPT instruction.


Thk, didn't thought about CPT instruction. Will try that tonight.
 
Curious, how are you connecting the thermistor to your processor?

A transmitter with a 4-20ma output would be a better choice.

http://www.acromag.com/catalog/997

https://www.google.com/#q=thermistor+transmitter


This is only as class project. Its a used car temp sensor that I found in the garage. Instead of using it as 4-20, I connect resistor in parallel and then use 0-5vdc as signal. This way the signal is almost in straight line linear. It calibrated it with water and seem accurate. Now I just have to get PLC to convert to *F,lol.
 
See picture below the SCP should work.

Your scaling values may differ. How do you have the analog input's raw data configured?

Which ML are you using?

scaled.png
 
Last edited:
Equations

These are the equations that I use to scale inputs in the attached Logix 5000 Add-On Instruction. Negative coefficients (Rate) shouldn't be a problem.

Rate = (Scaled_Max - Scaled_Min) / (Input_Max - Input_Min)
Output = (Raw_Input_Unscaled - Input_Min) * Rate + Scaled_Min
 
See picture below the SCP should work.

Your scaling values may differ. How do you have the analog input's raw data configured?

Which ML are you using?


Thank you so much. It works like a charm!!!. Temp is exact but I'm expecting it to offset about 1% near top/bottom.

Also just found out that this 1500 doesn't have CPT nor advance maths support. I could use LN function to do 3 point equation to make this less than 1% error. Now are these maths for SLC version???

THK for all helps. Now I got to put it on Excel for class presentation.
 

Similar Topics

Hi everyone, I am working with micro850, a proximity sensor (FOTEK, PL-05P) and a 3DOF serial arm robot. I use MC_MoveRelative to control the...
Replies
1
Views
94
I am troubleshooting an actuator which is not responding to the plc code. The range in the channel of the Allen Bradley 1756-OF8 Analog card is...
Replies
1
Views
632
I have 3 koyo PLC's in series. The 1st and 3rd are reporting values correctly but the 2nd is reporting negative values. The values in the PLC and...
Replies
3
Views
1,449
Hi, I am connecting an Autonics make stepper driver type, MD5-ND14 to a Kinco PLC (K205 series) this has a sourcing output which cannot be...
Replies
2
Views
1,132
Hello. I am trying to figure out how to setup a PID in Control Logix 1769 Controller in a way that it would control a drive speed by sending...
Replies
3
Views
1,642
Back
Top Bottom