[ Pobierz całość w formacie PDF ]
Arguments:
Silent is a Boolean value that, if true, causes a message to be displayed on
completion of the verify indicating the offsets, if any, of each axis from its correct
position.
Return Value:
None. All axes machine zeroes are reset to their correct position, and all axes are
moved to position 0.0000 of the current fixture.
Example:
Make sure all axes are in correct position
VerifyAxis()
Load the G-code file
LoadFile( MyGCodeFile.nc )
Wait for Load to Complete
While IsLoading()
Sleep 100
Wend
Run the File
DoOEMButton(CycleStartButton)
Wait for it to complete
While (GetOEMLED(StartLED))
Sleep 100
Wend
See also:
SingleVerify(), SingleVerifyReport(), RefCombination()
ZeroTHC
Sub ZeroTHC()
This function zeroes the torch height correction factor.
Arguments:
None
Return Value:
None
Example:
Zero THC correction
ZeroTHC()
Page 95
See also:
THCOn(), THCOff()
Page 96
Legacy Functions Grouped By Function
Digitizing
CloseDigFile Close digitization points file
OpenDigFile Open digitization points file
G-Code & G-code Files
Code Execute a line of G-code
FileName Get current G-code filename
GetVar Get a G-code Var value
IsLoading Get current G-code file loading status
LoadFile Load a G-code file
LoadRun Load and run a G-code file
MaxX Get maximum X extent for current G-code file
MaxY Get maximum Y extent for current G-code file
MinX Get minimum X extent for current G-code file
MinY Get minimum Y extent for current G-code file
Param1 Get M-macro P parameter value
Param2 Get M-macro Q parameter value
Param3 Get M-macro Q parameter value
RunFile Run currently loaded G-code file
SetVar Set a G-code Var value
Lathe-only Functions
GetTurretAng Get current tool turret angle
IsDiameter Get current diameter/radius mode status
Mach3 Configuration & Status
GetIJMode Get current IJ mode
GetMainFolder Get Mach3 main folder path
GetParam Get a Mach3 named parameter value
GetScale Get current scale factor for an axis
GetTimer Get a timer value
Page 97
HelpAbout Get current CB version
QueueDepth Get current Mach3 trajectory queue depth
ResetAxisSwap Un-swap swapped axes
RetractMode Get current peck cycle retract mode
SetFormula Set a new axis formula
SetIJMode Set IJ mode
SetParam Set a Mach3 names parameter
SetScale Set a new axis scale factor
SetTimer Reset a timer
SwapAxis Swap axis outputs
Referencing, Verifying & Zeroing Axes
GetABSPosition Get machine position for an axis
RefCombination Reference any combination of axes
SetMachZero Set machine zero to current position
SingleVerify Verify position of a single axis
SingleVerifyReport Verify position of a single axis, and report if error
VerifyAxis Verify position of a single axis
SafeZ
GetSafeZ Get current SafeZ height
GotoSafeZ Go to current SafeZ height
IsSafeZ Find out if machine is currently at or above SafeZ height
SetSafeZ Set SafeZ height
Wizards& Plugins
LoadWizard Load a wizard by name
NotifyPlugins Send a notification to all plugins
SaveWizard Save current wizard settings
Machine Status & Control
IsEstop Find out if Mach3 is currently in E-Stop
CoupleSlave Couple slave axis to its master for referencing
Page 98
Motion Control
FeedRate Get current feed rate
JogOff Disable jogging for a single axis
JogOn Jog a single axis in a specified direction
SetFeedRate Set a new feed rate
StraightFeed Perform a feed rate move
StraightTraverse Perform a rapid move
IsMoving Find out if machine is currently moving
IsStopped Find out if machine is currently stopped
Spindle Control
DoSpinCCW Turn spindle on CCW
DoSpinCW Turn spindle on CW
DoSpinStop Turn spindle off
GetRPM Get current spindle RPM
SetPulley Set a new spindle pulley
SetSpinSpeed Set a new spindle speed
Tool Parameters and Tool Changes
GetCurrentTool Get currently loaded tool
GetSelectedTool Get newly selected tool
GetToolChangeStart Get axis positions at start of tool change
GetToolDesc Get the tool descriptor for the specified tool number
GetToolParam Get value of a named tool parameter for the specified
tool number
SetCurrentTool Set the current tool to the specified value
SetToolParam Set value of a named tool parameter for the specified tool
number
SetToolX Set the X axis offset
SetToolZ Set the Z axis offset
ToolLengthOffset Set the Z offset for the current tool
Torch Height Control
EndTHC Turn off THC
Page 99
ResetTHC Reset THC
StartTHC Start THC
THCOff Turn off THC
THCOn Turn on THC
ZeroTHC Zero THC
Screen sets
DoMenu Invoke a menu function
DoOEMButton Invoke an OEM Button function
GetDRO Get current value for specified DRO
GetDROString Get current value for specified DRO as a String
GetLED Get current state of specified OEM LED
GetOEMDRO Get current value for specified OEM DRO
GetOEMLED Get current state specified OEM LED
GetPage Get current screen set page number
GetUserDRO Get current value of specified User DRO
GetUserLabel Get current value of specified User Label
GetUserLED Get current state of specified User LED
LoadStandardLayout Load default screen set
Message Display a message on the Error SmartLabel
SetButtonText Change the label text on the currently active button
SetDRO Set the value of the specified OEM DRO
SetOEMDRO Set the value of the specified OEM DRO
SetPage Select a new screen set page by number
SetTicker Set the value of a Ticker SmartLabel
SetUserDRO Set the value of the specified User DRO
SetUserLabel Set the value of the specified UserLabel SmartLabel
SetUserLED Set the state of the specified User LED
ToggleScreens Toggle between complex /.set and simple /.sset screen
sets
User Dialogs
AskTextQuestion Ask the user a question and get a String response
Page 100
GetACoor Get A coordinate given by last GetCoord() call
GetCoord Get axis coordinates from user
GetXCoor Get X coordinate given by last GetCoord() call
GetYCoor Get Y coordinate given by last GetCoord() call
GetZCoor Get Z coordinate given by last GetCoord() call
MachMsg Display a dialog with one or more buttons on it
Question As the user a question, and get a numeric response
Signals and Port I/O
ActivateSignal Activate/Assert an output signal
DeactivateSignal Deactivate/Deassert an output signal
GetPortByte Read a byte from an I/O port
IsActive Find out if the specified named input signal is in its active state
IsOutputActive Find out if the specified named output signal is in its active state
IsSuchSignal Find out if the specified named signal is defined
[ Pobierz całość w formacie PDF ]