Siemens s7-1500 Scaling Help

toddp65

Member
Join Date
Aug 2014
Location
Florence, Ky
Posts
282
Siemens Tia Portal question.

Attached is the norm x and scale x blocks.

I'm an AB guy so I'm a little confused. I programmed these networks and they work. Both are for PSI transducers. Both report to Ignition and show the correct variable but with no decimal place even though I classified them as REAL and Floats in Ignition. The final out is not a FP. I'm confused with the method of scaling despite the fact the final number is correct.
Why is the output from the Norm a 0.6 number despite the fact the EU is 16xxx?
Why am I not getting a decimal place?

Thanks...

Capture.PNG
 
I have no idea why there are no digits after the decimal on the SCALE_X output, but the arithmetic is straightforward:

NORM_X is the same as SCP* with SCALEDmin and SCALEmax forced to be 0 and 1:
Code:
(17307 - 0)   (0.6259766 - 0.0)
----------- = ----------------- = 0.6259766
(27564 - 0)   (1.0       - 0.0)
NORMalize is a word often used to described linear transformation of a value into the range 0 to 1.

SCALE_X is the reverse of NORM_X, and the same as SCP* with INPUTmin and INPUTmax forced to be 0 and 1.
Code:
            (0.6259766 - 0.0)   (125 - 0)
0.6259766 = ----------------- = ---------
            (1.0       - 0.0)   (200 - 0)
* RSLogix 500
 
%MD can mean Real (float), or either DInt or UDInt (integer).

zzz.png

xxx.png


Even if SCALE_X is calculating a floating-point result, it still has to do a conversion if the target is a DInt (integer) instead of a Real (float).


yyy.png
 
So I changed the data type of the scaled variable in the tag table to a REAL (it was a DINT) and although the scaled output now shows a float number with a decimal place, my tag in Ignition shows a regular number with a out a deimal point and extended an infinite amount of places.
 

Similar Topics

Been fighting all morning with a stubborn HMI. It just won´t connect with the plc. attaching from settings. Have i missed anything? Both plc and...
Replies
5
Views
297
Hello everyone, I need your help. At one of my company instalations we have GE90-70, and we're going to replace it with some newer PLC. I prefer...
Replies
5
Views
515
Looking for options to write data to Siemens PLC. Looking for something closest to way we were doing it with AB PLC and excel sheet. Old way...
Replies
7
Views
896
We've got very fast machine whose position controlled by interrupt OB35 set at 2ms. For position reading we use Temposonic connected to TM...
Replies
19
Views
2,500
So, we have one servovalve that is very critical to machine operation and idea is (or was) to detect if valve gets disconnected from analog output...
Replies
11
Views
2,900
Back
Top Bottom