United Kingdom
Asked
Resolved Resolved by ptp!

Release Command In EZ Scripts

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

ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

#1  

Weird. Could you post your script? Maybe it's a simple thing other eyes may notice.

United Kingdom
#2  

Dave,

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?

#3  

Just spitballing here;

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.

United Kingdom
#4  

Thanks Dave, I’ll try this, but if that was the case, wouldn’t it not work with the ReleaseAll command?

Anyway I’ll play around with it some more and see.

PRO
Belgium
#5  

just thinkin.its strange to start with a sleep?

Servo(D4,75) sleep(300) Servo(D5,100) Sleep(2000) Release(D4,90)

United Kingdom
#6  

Nomad,  Why do you think its strange to start with a sleep command, all my programs do this to have a delay when starting. I know you could use the Wait command, but I prefer the sleep command.

PRO
Belgium
#7  

hi cem

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.

PRO
USA
#8   — Edited

@Cem: Can you try your script in a new fresh project.

script1: (D4, D5) User-inserted image

script2 (D3, D5): User-inserted image

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:
Sleep(2000)
Servo(D3,75)
Sleep(2000)
Servo(D5,100)
Sleep(2000)
Release(D3)
Sleep(2000)
  1. run and check if D3 is released

WOW Spurs scored 5! Son nets first poker for Tottenham Hotspur !!! I couldn't resist... I just finished watching the game.

United Kingdom
#9  

Thanks ptp, Dave and Nomad I reloaded ARC on my local laptop and it seems to work OK now?

ptp, I’m not a avid fan of football, but did notice Spurs winning 5 - 2 against Southampton at the weekend.