 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
maersk Member 3


Joined: 17 Aug 2014 Posts: 891
|
Posted: 11/02/2016 17:59 Post subject: floating average value for the S7-1200/S7-1500 |
|
|
In STEP 7 (TIA Portal), how do you calculate a floating average value for the S7-1200/S7-1500 from the read-in values?
https://support.industry.siemens.com/cs/document/39333120/in-step-7-%28tia-portal%29-how-do-you-calculate-a-floating-average-value-for-the-s7-1200-s7-1500-from-the-read-in-values
The FB "Floating Average" calculates a floating arithmetic average value from the read-in REAL values and thus provides a method for smoothing data series. The can be read in cyclically or as triggered.
The libraries in the download include the following blocks:
"Average" [FB1]: calculates the average value of the read-in values.
"DB_Average" [DB1]: instance DB of FB "Average".
"Control" [DB2]: global DB with the DB tags for triggering FB "Average".
"Main" [OB1]: call and parameterization of FB "Average".
If you load the four blocks into the S7-1200/S7-1500 CPU, the program can be run immediately. However, you can also insert FB "Average" individually into you project and parameterize your own tags for it.
The figure below shows the call of FB "Average" in OB "Main" and parameterization with the DB tags.
https://support.industry.siemens.com/cs/attachments/39333120/39333120_STEP7_TIA_Portal_Average.zip
https://support.industry.siemens.com/cs/attachments/39333120/39333120_STEP7_TIA_Portal_Average_SCL.zip
https://support.industry.siemens.com/cs/attachments/39333120/39333120_FloatingAverage_SCL_V13_SP1.zip
Library
The block can be used universally with the following controllers and software products:
S7-1200 and S7-1200F product family
S7-1500 and S7-1500F product family
Simulation with S7-PLCSIM (V13 SP1 and higher)
Ab STEP 7 V13 SP1 Update 4
https://support.industry.siemens.com/cs/attachments/109479728/109479728_LGF_DOCU_V1_0_5_en.pdf
https://support.industry.siemens.com/cs/attachments/109479728/109479728_LGF_LIB_v1_0_5.zip |
|
| Back to top |
|
 |
tecnoplc Junior 2

Joined: 03 Feb 2016 Posts: 40 Location: Spain
|
Posted: 16/02/2016 08:43 Post subject: |
|
|
Good explanation. It Works fine. _________________ _______________________________________
Programming PLC and HMI
www.tecnoplc.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|