11/20/2007 10:18 AM | |
Posts: 2930 Rating: (432) |
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 (1938 Downloads) |
This contribution was helpful to2 thankful Users |
9/14/2008 1:19 AM | |
Joined: 6/9/2008 Last visit: 3/17/2021 Posts: 9 Rating: (0) |
VERY USEFULL!!! THANKS!!! |
Carlos Torres |
|
9/18/2008 5:06 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4351 Rating: (1452) |
Hi, I have also blocks to scalling analogical signals. They look like S7-300 blocks (FC 105, 106). Attachmentdivulgação S7-200 scale.zip (1427 Downloads) |
Denilson Pegaia |
|
9/22/2008 1:38 AM | |
Posts: 49 Rating: (5) |
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: 11/12/2024 Posts: 4351 Rating: (1452) |
Hi, here stay the same project, but as print out version. AttachmentPrintout.zip (1268 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
12/22/2014 6:38 AM | |
Posts: 6 Rating: (0) |
Thank You Pal... |
Follow us on