Read axis position

More
22 Apr 2011 19:39 #9266 by piasdom
Replied by piasdom on topic Re:Read axis position
andypugh wrote:

piasdom wrote:

Probably because they both have the same O-number. EMC2 uses the O-number to tell which Do belongs to each While.


so i can't use the same do/while more then once ?

Because you are not saying "offset X by this much" you are saying "offset X so that the current position is this value"


Thanks

Please Log in or Create an account to join the conversation.

More
22 Apr 2011 20:13 #9267 by BigJohnT
Replied by BigJohnT on topic Re:Read axis position
The only problem I see is you don't assign #2 back to 0 for the second loop. So being a do then test loop you only get one pass.

I'm not sure if it is required but It is better to use different numbers for your loops.

o100 do
...
o100 while

o101 do
...
o101 while

John

Please Log in or Create an account to join the conversation.

More
22 Apr 2011 21:05 #9269 by piasdom
Replied by piasdom on topic Re:Read axis position
cool...thanks...didn't think about position.

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum