1
General Mach Discussion / Re: uc300 analog input outputs
« on: November 20, 2020, 09:37:56 AM »Go to the Cncdrive forum for help with this.
Balazs is very active there.
Their answer will be: "We don't use Mach3"...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Go to the Cncdrive forum for help with this.
Balazs is very active there.
'Set softlimits and toggle those ON
SLMax_X = 150 : SLMin_X = 156 : SLMax_Y = 151 : SLMin_Y = 157 : SLMax_Z = 152 : SLMin_Z = 158
DRO_X = 0 : DRO_Y = 1 : DRO_Z = 2
SoftLimitsLED = 23 : SoftLimtsToggle = 119 : Delta = 1
If GetOEMLED(SoftLimitsLED) Then
DoOEMButton(SoftLimtsToggle)
End If
SetOEMDRO(SLMin_X, 0) : SetOEMDRO(SLMin_Y, 0) : SetOEMDRO(SLMax_Z, 0)
Res = GetDRO(DRO_X) : SetOEMDRO(SLMax_X, Res+Delta)
Res = GetDRO(DRO_Y) : SetOEMDRO(SLMax_Y, Res+Delta)
Res = GetDRO(DRO_Z) : SetOEMDRO(SLMin_Z, Res-Delta)
If Not GetOEMLED(SoftLimitsLED) Then
DoOEMButton(SoftLimtsToggle)
End If