OEM Buttons

From MachCustomizeWiki

This list gives the codes to be used in calls of DoOEMButton.

If you are using a version of Mach3 prior to 1.90 then to use bunttons in this list that are in the range 1000 upwards you will need to refer to the deprecated call DoButton and corresponding codes.


Function OEMCode
Screen 1 select(e.g. Program Run screen) 1
Screen 2 select (e.g. MDI screen select) 2
e.g. Toolpath screen select3
e.g. Positioning screen select4
e.g. Diagnostics screen select5
e.g. Corrections screen select6
e.g. Tables screen select7
Inc Inc Up100
Inc Inc Down101
Reset Interp102
Jog mode toggle103
Goto Safe Z104
Home Z then X then Y, A, B, C - set machine coords105
Units106
Mach coords107
Feed raise108
Feed lower109
Spindle CW, reset THC height110
Slow Jog Up111
Slow Jog Dn112
Flood toggle113
Mist toggle114
Edit G-code115
Zero radius DRO on X116
Zero radius DRO on Y117
Zero radius DRO on Z118
Software limits119
Touch button for Tool length offset120
Tool Tab Save121
Fixture Tab Save122
Torch Enable Toggle123
Torch Cal Zero124
Enc Load X125
Enc To X126
Enc Load Y127
Enc To Y128
Enc Load Z129
Enc To Z130
Toggle Mill/Turn mode131
Tool Path Toggle132
Zero X Encoder133
Zero Y Encoder134
Zero Z Encoder135
Tool Offset Tog136
Fixture Off137
Go Home138
Part X Offset Touch139
Part Y Offset Touch140
Part Z Offset Touch141
Part A Offset Touch142
Part B Offset Touch143
Part C Offset Touch144
Tool X Offset Touch145
Tool Z Offset Touch146
Joy Throttle select147
Touch Corr Enable Toggle148
Auto Lim Override Toggle149
OverRide Limits150
SS on Act4 Toggle151
reserved152
reserved153
reserved154
Units/rev - Units/min toggle155
Set this line as next to execute156
Jog Follow157
Joystick ON158
Joystick OFF159
Regen toolpath display160
Zero X-Z to stock as defined in DROs (Turn)161
Coordinate mode (G90/91)162
Raise spindle speed163
Lower spindle speed164
Laser Probe Enable Toggle165
Zero laser grid at current location166
Z inhibit toggle167
Ignore Tool Change toggle168
Close current file169
Re-load last file170
Jog increment cycle171
Clear error label172
Spindle CCW toggle173
Parallel Port Encoder3 MPG Jog Toggle174
Cycle axis controlled by MPG 1175
Block Delete "switch" toggle176
Optional Stop "switch" toggle177
Offline toggle178
Display Abs Machine coordinates (i.e. macnine coords ON)179
Display Work + G92 coordinates (i.e. Machine coords OFF)180
Display Work coords (i.e. not with G92)181
??? Toggle Spindle actual182
Home X, Home Z (Turn)184
Select X for MPG 1185
Select Y for MPG 1186
Select Z for MPG 1187
Select A for MPG 1188
Select B for MPG 1189
Select C for MPG 1190
Select Jog Increment 1191
Select Jog Increment 2192
Select Jog Increment 3193
Select Jog Increment 4194
Select Jog Increment 5195
Select Jog Increment 6196
Select Jog Increment 7197
Select Jog Increment 8198
Select Jog Increment 9199
Select Jog Increment 10200
Feed override Off201
Feed override Jog202
Feed override Feed203
Jog mode Continuous (same as button 276)204
Jog mode Step (same as button 275)205
Joystick On206
Joystick Off207
Clear Z tool offset (Turn)208
Clear X tool offset (Turn)209
Set stock correction to Zero (Turn)210
Home X Home Z (Turn)211
Home X (Turn)212
Home Z (Turn)213
Show recent G-code files list214
Display history215
Load G-code216
Tool flip toggle (Turn front/rear toolposts)217
Z-inhibit ON218
Z-inhibit OFF219
Port Bit-Test Set (diagnostic)220
Anti-dive enabled toggle221
THC Anti-dive OFF222
THC Anti-dive ON223
Flood ON224
Flood OFF225
Mist ON226
Mist OFF227
Load Teach file228
Toolpath Machine/Job toggle229
Display Wizard selection window230
Load the normal screens when Wizard done231
Simple Complex screen toggle232
Output 4 ON233
Output 4 OFF234
Output 5 ON235
Output 5 OFF236
Output 6 ON237
Output 6 OFF238
Set Help context239
Def-Ref all axes240
Tangential toggle241
Save XYZ to G59.254 work offset242
do G0G53 to G59.254 offset location243
Move to G59.254 with midpoint selection244
Toggle Jog Mode through Cont/Step/MPG as relevant245
Force Referenced on all axes246
CV feed toggle247
CV feed OFF248
CV feed ON249
Disable movement on axis X250
Disable movement on axis Y251
Disable movement on axis Z252
Disable movement on axis A253
Disable movement on axis B254
Disable movement on axis C255
Machine Coordinates toggle256
Engine OFFline257
Engine ONline258
Select encoder jog on axis X259
Select encoder jog on axis Y260
Select encoder jog on axis Z261
Select encoder jog on axis A262
Select encoder jog on axis B263
Select encoder jog on axis C264
Select Step value 1265
Select Step value 2266
Select Step value 3267
Select Step value 4268
Select Step value 5269
Select Step value 6270
Select Step value 7271
Select Step value 8272
Select Step value 9273
Select Step value 10274
Set Jog mode STEP (same as button 205)275
Set Jog mode CONT (same as button 204)276
Increment feedrate277
Decrement feedrate278
Run reverse279
Switch to last used Wizard280
Cycle axis controlled by MPG 2281
Toggle taper mode on MPG 2282
Toggle dual MPG flag283
Toggle shuttle mode for MPG284
Return to paused state285
Remember paused state286
Toggle override of rapid feeds287
Crop current dwell now288
??? Set formlas289
Inhibit jog of X axis290
Inhibit jog of Y axis291
Inhibit jog of Z axis292
Inhibit jog of A axis293
Inhibit jog of B axis294
Inhibit jog of C axis295
Do screw calibration routine296
Unconditional crop any dwell now297
reserved298
Toggle bypass feed (enables value in OEM DRO 122)299
Toggle current tool is in front toolpost300
Code for OEMTriggers runs the macro in SetTriggerMacro301
Cycle MPG jogging mode302
Set MPG jogging mode = Velocity303
Set MPG jogging mode = Velocity/Step304
Set MPG jogging mode = do single eaxct steps305
Set MPG jogging mode = do multiple exact steps306
Push to jog X++307
Push to jog X--308
Push to jog Y++309
Push to jog Y--310
Push to jog Z++311
Push to jog Z--312
Push to jog A++313
Push to jog A--314
Calibrate MPGs315
Save tool table316
Save work offset table317
Drag on toolpath does Zoom toggle318
Drag on toolpath does Pan toggle319
Display Wizard select dialog320
Run Newfangled Wizard321
Emergency bailout - tester use only322
Toggle visibility of screen 50323
Turn mode tool touch off X axis324
Toggle use of spindle step line to control Torch volts325
Turn mode tool touch off Z axis326
Select MPG jog mode327
unknown328
Push to Jog B++329
Push to Jog B--330
Push to Jog C++331
Push to Jog C--332
Toggle axis DROs display Dist to Go333
Toggle X jog off334
Toggle Y jog off335
Toggle Z jog off336
Toggle A jog off337
Toggle B jog off338
Toggle C jog off339
Set a temporary softlimit minimum at current location340
Set a temporary softlimit maximum at current location341
reserved343 - 347
Turn off display of menu bar348
Turn on display of menu bar349
Increment spindle speed by value not % (Turn)350
Decrement spindle speed by value not % (Turn)351
Jog X and A axis ++ together (foam machines)352
Jog X and A axis -- together (foam machines)353
Jog Y and B axis ++ together (foam machines)354
Jog Y and B axis -- together (foam machines)355
Cycle start1000
Pause (Feed Hold)1001
Rewind1002
Stop1003
Single1004
Resume1005
Edit File1006
Zero All1007
Zero X1008
Zero Y1009
Zero Z1010
Zero A1011
Zero B1012
Zero C1013
Feedrate reset1014
Estimate Job1015
Run from here1016
GotoZs1017
Coord System1018
Verify1020
Reset1021
Ref X1022
Ref Y1023
Ref Z1024
Ref A1025
Ref B1026
Ref C1027
Joystick Toggle1028
Softlimits Toggle1029
Radius Tracking Toggle1030
Jog Toggle1031