Ladder Logic: Scale with parameters

Zephyr

Member
Join Date
Aug 2007
Location
Arkansas
Posts
49
Having a bit of a problem with SCP. My max/min input is 5000/3000 and my max/min output is 65/59. My input is from a panelview integer and when the input value goes beyond 5000, the output keeps going past the max output selected. :unsure:
 
That's the way the instruction works, it just a straight line equation.
It will keep on going.

If you want it to be clamped at your output high or low then check the input for limits before executing the SCP instruction. See picture below

CheckLimit.jpg
 
Last edited:
Mickey, your example code will not clamp the output corresponding to max input, it simply stops executing the SCP when the input value is outside the Min/Max Input Range.

If the input value step-changed from 4000 to 5001, the output would not go to 65.

It would be better to clamp the output of the SCP with two rungs

GRT N7:1 65 MOV 65 N7:1
LES N7:1 59 MOV 59 N7:1
 
Mickey, your example code will not clamp the output corresponding to max input, it simply stops executing the SCP when the input value is outside the Min/Max Input Range.

If the input value step-changed from 4000 to 5001, the output would not go to 65.

It would be better to clamp the output of the SCP with two rungs

GRT N7:1 65 MOV 65 N7:1
LES N7:1 59 MOV 59 N7:1

Your right of-course.

The code I posted says if the operator enters an invalid value
( outside the limits) the corresponding out will not change.
This forces the operator to enter a valid value ( within limits).
Nothing wrong with your example though. But it does allow the operator to enter invalid values.
 
Is it possible to implement the limits on the operator in the display program numeric input object?

Do it both places. (PLC and HMI/SCADA) On SCADA systems I have even programmed a pop-up message telling them they screwed up.
( "Invalid Data Enter")
 
Hi,I have a proximity sensor that will count the speed/rpm of a machine. can this be possible to use a digital input module (siemens plc s7300)and have it program to read the rpm/speed on the tp170HMI? any example please? thanks
 
Mickey, your example code will not clamp the output corresponding to max input, it simply stops executing the SCP when the input value is outside the Min/Max Input Range.

If the input value step-changed from 4000 to 5001, the output would not go to 65.

It would be better to clamp the output of the SCP with two rungs

GRT N7:1 65 MOV 65 N7:1
LES N7:1 59 MOV 59 N7:1

Please give an example of how to execute in the rungs. Thanks
 
So I could use the GRT and LES rather than the LIM, or, in conjunction with it? Thanks for your help.

Your choice. You really don't need both though.

IMO, I prefer the limit because it stops the operator from entering an invalid number.
With the GRT,LES method the operator can still enter an invalid number although it will be clamped.
 
Since operators are unaware that attempting to make the speed faster than 65 will take the speed to 0 (They'll freak out and start pushing any button that blinks) then I should probably use the GRT and LES functions. You guys are great. Thanks a bunch.
 
Since operators are unaware that attempting to make the speed faster than 65 will take the speed to 0 (They'll freak out and start pushing any button that blinks) then I should probably use the GRT and LES functions. You guys are great. Thanks a bunch.

The use of the limit instruction I posted will not move the speed to zero if the number is out of range. It will do nothing. As the rung will be false, no change will occur it will just stay put at whatever value is there.

But do whatever you are comfortable with.
 

Similar Topics

Hello, I am going over some old code from days gone by. I would like the expert to confirm my findings to see if I got it correct. 1. B64:22/3...
Replies
7
Views
351
Hello, I´m having a problem trying to program in Ladder. An output should be trigged by two possible contacts. Take a look on the printscreen...
Replies
5
Views
165
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
182
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
13
Views
262
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
226
Back
Top Bottom