Jump to content

Recommended Posts

Posted (edited)
hello, I work with GX developer and do not know how to make a program to calculate a sensor pulses per minute, please if you can help me with an example Thanks Edited by bodyx

Posted
There's so many ways to interpret this you need to be more specific. And how fast are these pulses coming? Are you looking at a fixed window repeating every minute? like seconds 00-59 on the clock? Or are you looking to wait for one pulse, and then count 60 seconds from that point? What I would recommend is this: Run a timer for 60 seconds. Run a counter which counts your pulses. When the timer completes, move the value of the counter to a register and reset it. You could also use the seconds on the PLC clock and a compare instead of the timer.
Posted
I am looking to calculate how many such boxes to go through a sensor 60 seconds but I would like if possible an example done by someone already in ladder language, do not want to use the position SPD (...) Thanks
Posted
I posted a detailed explanation of how to do it, but I'm not going to write your ladder for you. I think you can handle one timer and one counter.

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...