position tracking
- maheshraje27891
- Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 2 months ago #29531001
by maheshraje27891
position tracking was created 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
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.
8 years 2 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.
- maheshraje27891
- Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 2 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.
- maheshraje27891
- Topic Author
- Offline
Less
More
- Posts: 13
- Thank you received: 0
8 years 2 months ago #29531013
by maheshraje27891
Replied by maheshraje27891 on topic position tracking
my controller config is attached pls find attachment
Please Log in or Create an account to join the conversation.
8 years 2 months ago - 8 years 2 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.
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.055 seconds