pauly
Member
I have written a scling block to scale real values in the PLC code to integers for use on analogue output blocks, I want the scaling block to scale -150.0 --- +150.0 to 0 --- 4096. But testing the block with -150 only delivers 2048 out.
The Scalefactor is =(OutMax-OutMin)/(InMax-InMin)
The output is then: Input*ScaleFactor
Do I need an offset in there?
The Scalefactor is =(OutMax-OutMin)/(InMax-InMin)
The output is then: Input*ScaleFactor
Do I need an offset in there?