Page 35
Comment: Enables temperature compensated focusing when set to 1 and a slope
has been calculated, only if the focuser is in stepper mode. Set 0 to disable
temperature tracking.
Note: Enabling this in DC mode will lead to unpredictable results.
Is Step
Possible Value: 1, 0
Comment: Used to determine if the focuser is in stepper mode (1) or DC mode
(0). Used in conjunction with TempComp.
Connect to the Switch Interface
First set the switch interface to connected
Imports
ASCOM.Utilities
Public
Class
Form1
Private
Sub
Form1_Load(sender
As
Object
, e
As
EventArgs)
Handles
Me
.Load
Dim
p
As
New
Profile()
Dim
DriverID
As
String
=
"ASCOM.MHPV4Switch.Switch"
p.DeviceType =
"Focuser"
p.WriteValue(DriverID,
"S_AscomConnect_Switch"
,
"True"
)
End
Sub
End
Class
This exposes 10 values which can be written to with 1 to set switch on and 0 to
turn off as well as 3 values which can be set from 0 to 100 to represent the duty
cycle of the dew ports
Key Value
Description
S1
Represents Power Port 1. Set 1 to turn on and 0 to
turn off
S2
Represents Power Port 2. Set 1 to turn on and 0 to
turn off
S3
Represents Power Port 3. Set 1 to turn on and 0 to
turn off
S4
Represents Power Port 4. Set 1 to turn on and 0 to
turn off
D1
Represents Dew Port 1. Set 1 to turn on and 0 to turn
off
D2
Represents Dew Port 2. Set 1 to turn on and 0 to turn
off
D3
Represents Dew Port 3. Set 1 to turn on and 0 to turn
off