I came with this code for the macro pump:
Dust_status = GetOEMLed(13)
Dust_Var = GetVar(500)
If Dust_status = -1 Then
If Dust_Var = 0 Then
message "Dust collector change to ON"
SetVar(500, 1)
Else
message "No change"
End If
End If
If Dust_status = 0 Then
If Dust_Var = 1 Then
message "Dust collector change to OFF"
SetVar(500, 0)
Else
message "No change"
End If
End If
Now how from the macropump i could execute the m1000 and m1001 command
Thanks