3/27/2011 1:47 PM | |
Joined: 7/7/2010 Last visit: 2/14/2025 Posts: 15653 Rating:
|
I have attached a simple sample project that though untested should perform the calculation described in the original post. One thing to note is how TIA Portal allows you to name the tags according to the sub calculation, making it easy to identify what portion of the overallcalculation that tag represents. AttachmentVolume_Calculation.zip (321 Downloads) |
science guy |
|
8/6/2011 12:08 PM | |
Joined: 8/31/2010 Last visit: 2/8/2025 Posts: 1524 Rating:
|
If you have S7-1200 CPU FW > ver 2, you can make use of CALCULATE instruction which is simple and easy to code. Herewith I have attached the TIA Portal v11 project for the your use case with CALCULATE instruction . Though it's not tested, it should work well. Anyone pls check and let know. CALCULATE is a cool instruction AttachmentVolume_Calculation_V11 SP1.zip (222 Downloads) |
Like it? Rate it! |
|
8/8/2011 3:59 PM | |
Posts: 73 Rating:
|
Eureka!! I finally figured it out. Tested example attached for anyone interested... Regards, Plazz AttachmentVol_Calc_V11 SP1.zip (210 Downloads) |
Follow us on