Sign in to follow this  
Followers 0
rschled

Running Hour in S7

3 posts in this topic

Hi, does someone has an example of a running hour clock for machine running times in S7 and could email it to me? THanks

Share this post


Link to post
Share on other sites
Look for Run-time meters handling SFCs in "System Software for S7-300/400 System and Standard Functions" PDF help file.

Share this post


Link to post
Share on other sites
Make a new FC: INTERFACE: IN: Osp; BOOL //oneshot : Reset; BOOL : Enable; BOOL IN/OUT: Hour; INT : Min; INT : Sec; INT ----------------------------------------------------------------------- NETWORK 1: AN #Reset // alle waarden op 0 zetten JC m000 L 0 T #Sec T #Min T #hour m000: AN #Osp // Osp JC ENDZ AN #Enable JC ENDZ L #Sec L 1 // Sekonden met 1 verhogen +I T #Sec L 60 >=I JC M001 JU ENDZ M001: L 0 T #Sec L #Min L 1 // Minuten met 1 verhogen +I T #Min L 60 >=I JC M002 JU ENDZ M002: L 0 T #Min L #hour L 1 // uren met 1 verhogen +I T #hour ENDZ: NOP 0 I think this must be working Revave The Netherlands Edited by revave

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0