Zorro1 Posted August 7, 2014 Report Share Posted August 7, 2014 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 More sharing options...
Alexander Posted August 8, 2014 Report Share Posted August 8, 2014 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. 1 Link to comment Share on other sites More sharing options...
Zorro1 Posted November 10, 2014 Author Report Share Posted November 10, 2014 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 More sharing options...
Alexander Posted November 11, 2014 Report Share Posted November 11, 2014 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 More sharing options...
Zorro1 Posted November 12, 2014 Author Report Share Posted November 12, 2014 The encoder I am using has a Z mark reset output. Thanks Link to comment Share on other sites More sharing options...
Alexander Posted November 12, 2014 Report Share Posted November 12, 2014 As long as the Z mark output can send a 24 signal it could be connected to the digital input to reset the high speed input on our controller. Then you could directly use the comparison blocks from 0-359 for current position of the encoder. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now