Bryll

[PLC Sample Code] - Range_Fnc

3 posts in this topic

File Name: Range_Fnc File Submitter: Bryll File Submitted: 17 Sep 2015 File Category: PLC Sample Code I sometimes need to scale an analog value, so I had to do a function to better suit my needs than Siemes "Scale" function. It has 5 inputs, all in integer format. _In - The value to be scaled _In_Min - Lowest value of the "_In" signal. _In_Max - Highest value of the "_In" signal. _Out_Min - Lowest allowed value of the scaled output. _Out_Max - Highest allowed value of the scaled output. The output "_Out" is the calculated value in integer format. Edit. It's saved as a global library. TIA Portal V13 SP1 Upd. 4 Click here to download this file

Share this post


Link to post
Share on other sites

All of the links in the "Download Comments" forum can be found in the "Downloads" section of MrPLC. The actual links were lost some time ago due to website corruption.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now