daneoholic
Member
- Join Date
- Aug 2002
- Posts
- 5
I have a program that records a position value from an encoder and stores it in an integer file each time the operator moves the machine to a new position and presses a button. Starting with N7:0
After there are > 100 stored positions stored the operator puts the machine in Auto and it's programed to move to N7:0 and perform its function. When it's finished it indexes to N7:1 and so on.
If you cycle the auto switch then the machine moves back to N7:0 to start again.
I'm trying to figure a way, when auto is cycled to compare the present position (of the machine) with the values in N7 and move to the next largest one from its present position.
Any suggestions on how to approach this would be appreciated
Thanks
Phil
After there are > 100 stored positions stored the operator puts the machine in Auto and it's programed to move to N7:0 and perform its function. When it's finished it indexes to N7:1 and so on.
If you cycle the auto switch then the machine moves back to N7:0 to start again.
I'm trying to figure a way, when auto is cycled to compare the present position (of the machine) with the values in N7 and move to the next largest one from its present position.
Any suggestions on how to approach this would be appreciated
Thanks
Phil