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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...