A quick question about a finished script.
I have a script with four sequences. They run as they should as soon as power is applied.
Now I wanted to add something. Another sequence between the second and third.
Can I just call it and insert one between them, or do I need to do something special?
Hello.
It sounds like you’re referring to a script on the Maestro servo controller. It is not entirely clear to me what you are asking, but it sounds like you might be wanting to add a subroutine. If that’s the case, you can add a definition for it in your script and call it as you described.
If you are still not sure how to proceed, please post a copy of your script and describe what you are trying to do.
Brandon
Yes, so I have this finished version here. I’ve already worked on other projects in the meantime. However, I didn’t save this one as a project, just the script. The settings and positions of the individual servos can’t be changed, or rather, I probably only want to change or add them.
So if I want to create a new sequence and place it at a specific location, I somehow need to have the current settings, and then… well, I don’t know.
### Sequence subroutines: ###
# Kopf bewegen 1
begin
sub Kopf_bewegen_1
500 5536 5504 0 0 0 0 frame_0..5 # Frame 0
500 7232 frame_0 # Frame 1
500 delay # Frame 2
500 delay # Frame 3
500 6418 frame_1 # Frame 4
500 delay # Frame 5
500 4416 4889 frame_0_1 # Frame 6
500 delay # Frame 7
500 5536 frame_0 # Frame 8
500 delay # Frame 9
500 5504 frame_1 # Frame 10
500 delay # Frame 11
# Kopf bewegen 2
sub Kopf_bewegen_2
500 5536 5504 0 0 0 0 frame_0..5 # Frame 0
500 4032 frame_1 # Frame 1
500 delay # Frame 2
500 6853 frame_0 # Frame 3
500 delay # Frame 4
500 4136 frame_0 # Frame 5
500 delay # Frame 6
500 6518 frame_1 # Frame 7
500 delay # Frame 8
500 5536 frame_0 # Frame 9
500 delay # Frame 10
500 5504 frame_1 # Frame 11
500 delay # Frame 12
# Kopf bewegen 3
sub Kopf_bewegen_3
500 5536 5504 0 0 0 0 frame_0..5 # Frame 0
500 3938 frame_0 # Frame 1
500 delay # Frame 2
500 delay # Frame 3
500 delay # Frame 4
500 delay # Frame 5
500 7083 frame_0 # Frame 6
500 delay # Frame 7
500 delay # Frame 8
500 delay # Frame 9
500 delay # Frame 10
500 5536 frame_0 # Frame 11
500 delay # Frame 12
return
repeat
sub frame_0..5
5 servo
4 servo
3 servo
2 servo
1 servo
0 servo
delay
return
sub frame_0
0 servo
delay
return
sub frame_1
1 servo
delay
return
sub frame_0_1
1 servo
0 servo
delay
return
### Hauptprogramm ###
begin
call Kopf_bewegen_1
60000 delay # 1 Minute Pause
call Kopf_bewegen_2
60000 delay # 1 Minute Pause
ca
It is not clear to me what your question is or what settings are you concerned about.
In case you aren’t aware, you can adjust the default settings for each servo (i.e. the ones that get applied whenever the Maestro is power cycled) in the “Channel Settings” tab and you can use the script commands to change settings like speed and acceleration through your script.
If that doesn’t help, could you try clearly stating what you are trying to do and what problem you are having when you try?
Brandon
Oh, it’s really difficult with Google Translate if you don’t speak English.
I’ll give it a try.
I have a finished script. It’s running. Now I want to insert another sequence between two sequences.
This project was a while ago, though. So now I have to start this project in the software, or rather, open it, and get all the settings.
But when I insert this script into the software, I don’t have all the servo settings, because I didn’t save the project, only the script.
So I have the problem that it doesn’t have the servo start and end points, at least not the ones I’ve already set.
It sounds like you’re just concerned about the “Min” and “Max” settings for each servo. If that is the case, unfortunately, there is no way to get those settings back if you only saved the script and not a full copy of the settings file.
However, in case it helps, based on your current script it looks like the default values of 992μs and 2000μs should work fine for all of the servos except for servo 0, which would need the “Min” setting lowered to 984μs for one movement.
Brandon
