11/20/2007 10:18 AM | |
Posts: 2930 Rating:
|
Hi all, one the must requested features is to scall values. Example: You have an analog sensor connected to a 0..10 V analoge input (dig. value 0 ... 32000) of the PLC. The Sensor has a range of -50 to 150°C and has a 0 ..10V output. Here is a library you can include into your MW so you can scall values as you like: The Lib includes 3 different scalling blocks: Scalling from: + Integer-2-Real + Real-2-Real + Real-2-Integer For the named example use the block Scale_I_to_R. Parameter: EN: Enalbes the scalling block Input: Address where you value comes from AIW0 for example Ish: Input high value (32000 in this example) Isl: Input low value (0 in this example) Osh: Output high value (150.0 in this example) Osl: Output low value (-50.0 in this example) Output: Taget address where you want to store the value All 3 block work the same only the Input and Output must fit to the data format: Integer (VW, MW, AQWx, ..) Real (VD, MD) For more details change to the scalling SBR and have a look to the comments in Network1. More information "how to import libraries to MW" you can find in the MW online help. I hope this helps. AttachmentScaling.zip (1788 Downloads) |
This contribution was helpful to
2 thankful Users |
9/14/2008 1:19 AM | |
Joined: 6/9/2008 Last visit: 3/17/2021 Posts: 9 Rating:
|
VERY USEFULL!!! THANKS!!! |
Carlos Torres |
|
9/18/2008 5:06 PM | |
Joined: 9/23/2005 Last visit: 8/27/2024 Posts: 4347 Rating:
|
Hi, I have also blocks to scalling analogical signals. They look like S7-300 blocks (FC 105, 106). Attachmentdivulgação S7-200 scale.zip (1278 Downloads) |
Denilson Pegaia |
|
9/22/2008 1:38 AM | |
Posts: 49 Rating:
|
I use the IEC programming available in micro-win and this allows me convert and multiply using single commands. This makes scaling very easy |
1/19/2009 3:37 PM | |
Joined: 9/23/2005 Last visit: 8/27/2024 Posts: 4347 Rating:
|
Hi, here stay the same project, but as print out version. AttachmentPrintout.zip (1123 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
1 thankful Users |
12/22/2014 6:38 AM | |
Posts: 6 Rating:
|
Thank You Pal... |
Follow us on