11/7/2014 12:09 PM | |
Posts: 24 Rating:
|
excuse me :D i have a final project for my college i want make scl language scalling for my level sensor my level sensor work on 5v DC when the tank is empty my voltage 3,56volt and full 4,4 volt every 1 cm up , will up the value 0.05 volt / cm what the algorithm for linear up value? so in the DB will show 1cm 2cm 3cm 4cm 5cm? any idea? -------------------------- New subject after splitting from SCALE and UNSCALE. |
Last edited by: Min_Moderator at: 11/7/2014 2:39 PMSplitted Last edited by: bfelixjo at: 11/7/2014 12:10 PM |
|
11/7/2014 2:57 PM | |
Posts: 24 Rating:
|
thx for move:D |
11/7/2014 3:11 PM | |
Joined: 7/7/2010 Last visit: 4/23/2024 Posts: 14615 Rating:
|
For S7-1200, use NORM_X to normalize your signal between 0.0 and 1.0 using 3.56 to 4.40 as your input signal for 0.0 and 1.0 (0 to 100%). Now use the 0-1 NORM_X output as your SCALE_X input. Set the range for 0.0 to 100.0 for your scale and now you have a scaled signal representing empty and full. Be aware you need to check the input is between the established bounds and take action to ensure what signal you feed to the NORM_X block fits within the bounds you set. Perhaps using the between comparison block..... You can trigger a fault action perhaps if it is below empty or over full. The help files for these should help clarify how they are used. |
science guy |
|
Follow us on