position tracking

5 years 3 months ago #29531001 by maheshraje27891
i want to go to 50 rotation in forward direction then come back to 0 position and then go to -50 position repeatedly

i wrote this script but it is not working.....



dim a as integer
dim b as integer
dim c as integer
dim d as integer

top:

a = 4000000
b = 4000000
c = 4000000
d = 4000000


while a
setconfig(_P, 2, 50)
a--

end while


while b
setconfig(_P, 2, 50)
b--

end while


while c
setconfig(_P, 2, 50)
c--

end while

while d
setconfig(_P, 2, 50)
d--

end while

goto top

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

5 years 3 months ago #29531006 by TechSupport
Replied by TechSupport on topic position tracking
Position tracking uses !G. For the !P commands, you must use closed loop count position.

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

5 years 3 months ago #29531012 by maheshraje27891
Replied by maheshraje27891 on topic position tracking
!G command also not working

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

5 years 3 months ago #29531013 by maheshraje27891
Replied by maheshraje27891 on topic position tracking
my controller config is attached pls find attachment
Attachments:

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

5 years 3 months ago - 5 years 3 months ago #29531016 by TechSupport
Replied by TechSupport on topic position tracking
You use !G in console.

In scripting it is _G

Also you don't need much I gain in position mode, primarily p gain. Disable loop error detection.

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

Time to create page: 0.218 seconds