
cem
United Kingdom
Asked

I can’t seem to get the Release command to work when I do it for a particular Servo/s in ARC, using EZ scripts.
I can use ReleaseAll and it works fine for all the Servos, but if I use Release(D4) it doesn’t work.
I’m sure it worked before??
Any ideas.
Related Hardware EZ-B v4
Related Control
Servo Script
It’s a massive script, but I just did a very simple example and this doesn’t work with just releasing one Servo, where if a put ReleaseAll() it works!
Sleep(1000)
Servo(D4,75)
Servo(D5,100)
Sleep(2000)
Release(D4)
D4 servo doesn’t release, but if I replace Release(D4) with ReleaseAll() it works?
Is it possible that the Servo(D4,75) command was never executed properly because the Servo(D5,100) was executed to quickly?
Is it possible that the last Sleep(2000) is not long enough to let the servos complete moving and the Release(D4) is being ignored?
Try placing long sleep commands in between each command just to make sure each one is recognized and has enough time to complete its move.
Anyway I’ll play around with it some more and see.
Servo(D4,75)
sleep(300)
Servo(D5,100)
Sleep(2000)
Release(D4,90)
I know you could use the Wait command, but I prefer the sleep command.
thats what i though ,you could use a wait command.
i notest sometime when you have two commands without sleep in between,it dont work.
Can you try your script in a new fresh project.
script1: (D4, D5)
script2 (D3, D5):
The only awkward detail is:
script 1: servo speed 0 is set for servo D4
script 2: servo speed 0 is set for both servos D3, D5.
I can't explain why the difference exists.
In both you can see the release Position 0 is sent.
So I would recommend:
1) start ARC (close the program and open again)
2) Create new project
3) add the script below:
4) run and check if D3 is releasedCode:
---
WOW Spurs scored 5! Son nets first poker for Tottenham Hotspur !!! I couldn't resist... I just finished watching the game.
ptp, I’m not a avid fan of football, but did notice Spurs winning 5 - 2 against Southampton at the weekend.