Script to park an AZ EQ6 for Flat

Hello
I would like to move my EQ6 before doing flats to a specific position (always the same) where I have my box. I seems that the only solution in SGP is to use a script at the beginning of the event. Then I have 2 solutions : to define a 2nd park position in EQMOD and in the script to ask the mount to park at this position or to ask the mount to point with Alt/Az coordinates.
I found some scripts example in this forum but none are working for an EQ6. Do you have an idea why?
Thanks in advance for your support
Olivier

Hi Oliver,

I use a script to do exactly what you want to do.

New Position vbs script

Dim Telescope
set Telescope = CreateObject(“EQMOD.Telescope”)
Telescope.Connected = True
Telescope.Tracking = False
ret = Telescope.CommandString(":PARK,3#")
Telescope.Connected = False

Standard Park Mount vbs script

Dim Telescope
Set Telescope = CreateObject (“EQMOD.Telescope”)
Telescope.Connected = True
Telescope.UnPark
Telescope.Park
Set Telescope = nothing

To create the vbs script just type text into notepad and save as “all files” with .vbs extension.

I set mount manually and set it as custom Park3.

HTH

Steve

Hi Steve
Thanks for the info. But in this casse it is impossible to have both: a home position for the end of the sequence and a flats position, without changing manually in EQMOD the park# during the sequence, right?
Regards
Olivier

Hi Oliver,

Yes, you can have both. If you set up a custom park position for the flats and save it. I saved mine as Park#3, as shown in the New Position vbs script. Save the script file onto your drive. Next in your Flats Sequence, open the event options cog and input the script file location into the pre-event script box, and don’t forget to “tick” the run script box. This will move the mount to your new park position prior to taking your flats.

If you want to do a standard park after you have finished your flats. Copy the Standard Park Mount vbs script and save the file onto your drive and in the events option input the script file location into the pre-event script box, and don’t forget to “tick” the run script box again. This will park your mount after the Flats process has completed.

You can test the vbs scripts by double-clicking the vbs files. Although, ensure you have the mount power settings are connected first.

HTH

Steve

Thank you Steve
It is at last working!
My mistake is that I copied and pasted your code through my email box and your character “ is not used in Visual Basic in France. We are using " (do not ask me why!). As a consequence, the script was not working. It took me a while to realize that characters were different!
Again : thank you for your 2 emails. My AZ EQ6 is now able to park anywhere I want, through SGP.
Best regards
Olivier

Glad I could help, Oliver.

Steve