Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Cncman2nv on July 22, 2015, 11:34:06 PM

Title: Param1 Function
Post by: Cncman2nv on July 22, 2015, 11:34:06 PM
Hi Mach users,
I'm having troubles under standing how the Param1 -3 work, and how the VB/CB Script layout should be to make it function properly   
Here's what I'm tiring to accomplish I have a macro named M143.m1s and I want to return a P value for a second spindle RPM  sent to  OemDRO 2005

Macro Name in is M143.m1s the code I use in the MDI line is M143 P1500, and a 0 is returned

Dim Paarm1 As Double
Dim S2RPM As Double
 
S2RPM = Param1()   

SetOemDRO(2005,S2RPM)

End   


Thanks Adam
Title: Re: Param1 Function
Post by: BR549 on July 23, 2015, 12:31:11 AM
Dim S2RPM As Double
S2RPM = Param1()   
SetOemDRO(2005,S2RPM)
End