Mach3 Version 3 - MachMotion

Transcription

Mach3 Version 3.xMacro Programmers Reference ManualDraft Revision 0.23August 22nd, 2010For Mach3 v3 versions thru 3.43.19.

Table of ContentsIntroduction.1Legacy Scripting Functions Grouped skTextQuestion .3CloseDigFile .4CloseTeachFile .4Code .5CoupleSlave .6DeactivateSignal .7DoMenu .8DoButton.9DoOEMButton.10DoSpinCCW .10DoSpinCW.11DoSpinStop .11EndTHC .12FeedRate enSetName.16GetCoord.16GetCurrentTool .17GetDRO .18GetDROString.19GetIJMode.20GetLED .20GetLoadedGCodeDir .22GetLoadedGCodeFileName.22GetMachVersion .23GetMainFolder.23GetMyWindowsHandle .24GetOEMDRO .24GetOEMLED .25GetPage .25GetParam.26GetPortByte.28GetToolParam .28GetRPM .30GetSafeZ .30i

GetScale .30GetSelectedTool.31GetSetupUnits .32GetTimer .32GetToolChangeStart .33GetToolDesc .34GetTurretAng.34GetUserDRO.35GetUserLabel .35GetUserLED .36GetVar.36GetXCoor.37GetYCoor.38GetZCoor .39GotoSafeZ .39HelpAbout.40IncludeTLOinZFromG31.40IsActive .41IsDiameter.41IsEStop.42IsLoading .43IsMoving .43IsOutputActive.44IsPeriodicScriptRunning .45IsSafeZ .45IsStopped.46IsSuchSignal .46JogOff .47JogOn .48LoadFile .48LoadRun.49LoadStandardLayout.49LoadTeachFile .50LoadWizard.51MachMsg .51MaxX .53MaxY .53Message.54MinX .54MinY .55nFmt .55NotifyPlugins .55NumberPad .56OpenDigFile.56ii

OpenTeachFile.57Param1 .58Param2 .58Param3 .59PlayWave .60ProgramSafetyLockout .60PutPortByte .60Question .61QueueDepth .62Random .62RefCombination.63ResetAxisSwap .64ResetTHC.64RetractMode.65roun .65RunFile.66RunScript .66SaveWizard .68SetButtonText .68SetCurrentTool.69SetDRO .69SetFeedRate .70SetFormula.71SetIJMode .72SetMachZero.72SetOEMDRO .73SetPage.73SetParam .74SetPulley .76SetSafeZ.76SetScale.77SetSpinSpeed .

some period of time, Mach3 version 4 will provide a completely new, much more regular interface, much higher functionality interface for CB macro programming. It is strongly recommended that all new CB code use the new interface, as support for this old one will be discontinued at some point in the, possibly not too distant, future. In addition, it is unlikely there will be any further updates .