plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

floating average value for the S7-1200/S7-1500

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems
View previous topic :: View next topic  
Author Message
maersk
Member 3
Member 3
maersk

Joined: 17 Aug 2014
Posts: 891

PostPosted: 11/02/2016 17:59    Post subject: floating average value for the S7-1200/S7-1500 Reply with quote

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.

floating average value for the S7-1200/S7-1500 floating average value for the S7-1200/S7-1500

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
View user's profile Send private message
tecnoplc
Junior 2
Junior 2


Joined: 03 Feb 2016
Posts: 40
Location: Spain

PostPosted: 16/02/2016 08:43    Post subject: Reply with quote

Good explanation. It Works fine.
_________________
_______________________________________
Programming PLC and HMI
www.tecnoplc.com
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> Simatic Automation Systems All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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