best way to scale 1794-ie8 in controllogix

diat150

Lifetime Supporting Member
Join Date
Mar 2006
Location
Louisiana
Posts
1,476
I usually use function blocks to do the scaling, but I no longer have that software. I dont believe I can scale on the card either with the flex.

is it acceptable to use a compute function with this expression?

(RAW DATA FROM ANALOG CHANNEL - LOW SIGNAL) * (HIGH ENG - LOW ENG) / (HIGH ENG - LOW ENG) + LOW ENG

or would it be better to use the different math functions instead of putting it all in the compute?

any other suggestions?
 
The CPT instruction will be just fine, in fact its the best way to do more than one math operation because it does not require storage of intermediate results in memory.

If you have RSLogix V16 or higher you can download an SCP AOI and use it, works like SCP in RSL500.
 
thanks for the help. I have ver 15 so I wont be able to use the scp. when you read the instruction help for cpt, it kind of states that it is memory intensive so i wasnt sure if there was a better way.
 
diat150 said:
.... when you read the instruction help for cpt, it kind of states that it is memory intensive so i wasnt sure if there was a better way.

I think it probably means that CPT instructions take longer to execute, rather than being "memory intensive". In fact using CPT can save on memory usage, because you don't need intermediate result storage, and there are less ladder instructions, branches and rungs to consider.

As you can't use AOI, I would suggest using a subroutine containing the pseudo-SCP CPT with the equation you quoted. All you would have to do is pass the unscaled value, and relevent min. & max. EU values as parameters, returning the scaled EU value. Since you are using only the one CPT instruction in your subroutine for all your analog input scaling, you have a "fit and forget" solution.
 

Similar Topics

Compactlogix controller, program has 28 conveyors that use TON's to start the conveyors. The TT sounds a warning horn during start and the DN...
Replies
10
Views
572
I have S7 1512C controler for controlling 48 PID temperature loop, the output is PWM. Please I need the best, most efficient way to write the...
Replies
13
Views
696
I am going to need to use HART multi-drop in order to handle a series of Vega Radar units. There are a lot of options and I'm wondering what...
Replies
3
Views
281
Out of interest, I'd like some thoughts on what would be considered best practice with regards to a 2-position turntable control scheme (see...
Replies
17
Views
1,230
Hello colleagues Anybody knows, what could be the best or a better option to bring with you when you are in service at factory to connect via...
Replies
1
Views
285
Back
Top Bottom