Jump to content

Recommended Posts

I have a program in a V570 where I am using SB3 as to increment and ML to keep overall motor run time.  I have a very simple net with the only condition being the motor running, the positive edge of SB3 and the increment function block.

 

Every one second my incrementer is counting 2 and not 1 ...... what am I missing?  I have compensated by dividing by 72 instead of 36 to make the run time view as 0.00 hours, but I am mystified as to whay I have to do this.

 

Someone please set me strait on this.

 

Thanks

Keith

Link to comment
Share on other sites

Hi Lawry,

 

Thank you for your response.  I know Sb13 exists, but my question is why is SB3 giving a double pulse every one second ( i have already in my ladder to only see the rising edge of SB3)?  I will have to try some experimentaiton.  Maybe it is because it is in a subroutine, but this should actually have no effect.

 

Also just a note.  The ML is used only once.

Link to comment
Share on other sites

Hi Lawry,

 

You are correct and I feel stupid.  There was a second call for the subroutine in the middle of the main routine that I never noticed was there.  I took that out ........... and all is right and good with the world again.  Thanks for forcing me to turn my head in a different direction.  I was so centered on finding a second function I never looked for an extra subroutine call.

 

Thanks

Keith

Link to comment
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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.