Jump to content

Recommended Posts

How do I program a V350 to use a 360PPR shaft encoder to turn on or start an item at a particular count? On this packaging machine one mechanical cycle is divided into 360 pulses from the encoder. I have about 10 functions that need occur at various points during the 360. The encoder has a reset pulse output.

Zorro1

Link to comment
Share on other sites

Since the values within the controller will continuously increment you can use the Modulo function. This function will divide by a certain value (360) and will only return the remainder. This will allow you to always have values from 1-360 to use within the logic.

 

You can then use is various comparison statements within the logic to trigger any desired functions, specifically the Within Range function block. This can be configured to only pass power when the encoder input is between given values, for example only between 1-10 deg power coil 1.

  • Upvote 1
Link to comment
Share on other sites

  • 3 months later...

Since the values within the controller will continuously increment you can use the Modulo function. This function will divide by a certain value (360) and will only return the remainder. This will allow you to always have values from 1-360 to use within the logic.

 

You can then use is various comparison statements within the logic to trigger any desired functions, specifically the Within Range function block. This can be configured to only pass power when the encoder input is between given values, for example only between 1-10 deg power coil 1.

Thanks for the suggestion. Could I not just compare the HSC value (0-360) to a preset MI value and if it's > or = turn on a bit?

Link to comment
Share on other sites

If you have a way to reset the high speed counter every 360 pulses this would be an option.

 

More likely the high speed counter will keep incrementing past a value of 360 which would make it difficult to determine the current location of the encoder. If this is the case you could use the modulo function to always keep track of the current position.

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.