Hi'
I am writing some software where I calculate a number of encoder stop points, from a teached start and stop point with a pre defined distance between.
My problem is that it became very complicated, so I was hoping that one of you could give me a hint to make it a bit smarter.
My first idea and what i made was, I make a calculation (Stop-Start)/distance this gives me the number of points and from there multiply my way to each point.
What I would like was, to make an FB calculating the actual position and putting each position into a datablok, perhaps an array, and from there let my program acces the individual points.
Any ideas ?
Regards
Brian
I am writing some software where I calculate a number of encoder stop points, from a teached start and stop point with a pre defined distance between.
My problem is that it became very complicated, so I was hoping that one of you could give me a hint to make it a bit smarter.
My first idea and what i made was, I make a calculation (Stop-Start)/distance this gives me the number of points and from there multiply my way to each point.
What I would like was, to make an FB calculating the actual position and putting each position into a datablok, perhaps an array, and from there let my program acces the individual points.
Any ideas ?
Regards
Brian