Mach3 OEM Code
Mach3 OEM Code
Mach3 OEM Code
From MachCustomizeWiki
Certain words may be used in place of signal numbers to aid in the readability of the
scripts. For example. ActivateSignal( OUTPUT1 ) as opposed to the number 7.
command:
ActivateSignal( n)
DeActivateSignal( n )
Following is a list.
VB Constants
Signal
Numbers
OUTPUT1
OUTPUT2
OUTPUT3
OUTPUT4
10
OUTPUT5
11
OUTPUT6
12
OUTPUT7
16
OUTPUT8
17
OUTPUT9
18
OUTPUT10
19
OUTPUT11
20
OUTPUT12
21
OUTPUT13
22
OUTPUT14
23
OUTPUT15
24
OUTPUT16
25
OUTPUT17
26
OUTPUT18
27
OUTPUT19
28
OUTPUT20
29
DIGTRIGGER
ENABLE1
ENABLE2
ENABLE3
ENABLE4
ENABLE5
ENABLE6
CHARGE
13
CHARGE2
14
CURRENTHILOW
15
XPLUS
XMINUS
XHOME
YPLUS
YMINUS
YHOME
ZPLUS
ZMINUS
ZHOME
APLUS
AMINUS
10
AHOME
11
BPLUS
12
BMINUS
13
BHOME
14
CPLUS
15
CMINUS
16
CHOME
17
INPUT1
18
INPUT2
19
INPUT3
20
INPUT4
21
DIGITIZE
22
INDEX
23
LIMITOVER
24
EMERGENCY
25
THCON
26
THCUP
27
THCDOWN
28
OEMTRIG1
29
OEMTRIG2
30
OEMTRIG3
31
OEMTRIG4
32
OEMTRIG5
33
OEMTRIG6
34
OEMTRIG7
35
OEMTRIG8
36
OEMTRIG9
37
OEMTRIG10
38
OEMTRIG11
39
OEMTRIG12
40
OEMTRIG13
41
OEMTRIG14
42
OEMTRIG15
43
TIMING
44
JOGXP
45
JOGXM
46
JOGYP
47
JOGYM
48
JOGZP
49
JOGZM
50
JOGAP
51
JOGAM
52
HOMING
53
PROBING
54
START
55
OEM DROs
command:
SetOEMDRO
GetOEMDRO
Function
OEMCode
X min DRO
Y min DRO
Z min DRO
A min DRO
B min DRO
C min DRO
X max DRO
10
Y max DRO
11
Z max DRO
12
A max DRO
13
B max DRO
14
C max DRO
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Safe Z DRO
54
55
Pulley DRO
56
57
58
X Scale DRO
59
Y Scale DRO
60
Z Scale DRO
61
A Scale DRO
62
B Scale DRO
63
C Scale DRO
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Repetitions DRO
78
79
Z-Inhibit DRO
80
81
82
83
84
85
86
87
88
89
90
91
92
93
reserved
94
reserved
95
reserved
96
CV Feedrate DRO
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
170
171
172
173
175
176
reserved DRO
177
178
179
180
181
182
183
184
185
Z Cont. Pnt. coord (Machine - Work - Tool len. - G52/G92) DRO 186
A Cont. Pnt. coord (Machine - Work - G52/G92) DRO
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
reserved
205
reserved
206
reserved
207
208
209
210
211
212
213
214
215
216
Spindle Seconds CW
217
reserved
218
reserved
219
220
Probe Radius
221
222
Rapid Override
223
224
X DRO
800
Y DRO
801
Z DRO
802
A DRO
803
B DRO
804
C DRO
805
X Vel DRO
806
Y Vel DRO
807
Z Vel DRO
808
A Vel DRO
809
B Vel DRO
810
C Vel DRO
811
813
Elapsed DRO
814
Estimate DRO
815
816
817
Feedrate DRO
818
821
824
825
826
827
828
830
830
831
831
832
832
833
833
834
834
835
835
836
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
Inc Inc Up
100
101
Reset Interp
102
103
Goto Safe Z
104
105
Units
106
Mach coords
107
Feed raise
108
Feed lower
109
110
Slow Jog Up
111
Slow Jog Dn
112
Flood toggle
113
Mist toggle
114
Edit G-code
115
116
117
118
Software limits
119
120
121
122
123
124
Enc Load X
125
Enc To X
126
Enc Load Y
127
Enc To Y
128
Enc Load Z
129
Enc To Z
130
131
132
Zero X Encoder
133
Zero Y Encoder
134
Zero Z Encoder
135
136
Fixture Off
137
Go Home
138
139
140
141
142
143
144
145
146
147
148
149
OverRide Limits
150
SS on Act4 Toggle
151
reserved
152
reserved
153
reserved
154
155
156
Jog Follow
157
Joystick ON
158
Joystick OFF
159
160
161
162
163
164
165
166
Z inhibit toggle
167
168
169
170
171
172
173
174
175
176
177
Offline toggle
178
181
182
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Joystick On
206
Joystick Off
207
208
209
210
211
Home X (Turn)
212
Home Z (Turn)
213
214
Display history
215
Load G-code
216
217
Z-inhibit ON
218
Z-inhibit OFF
219
220
221
222
THC Anti-dive ON
223
Flood ON
224
Flood OFF
225
Mist ON
226
Mist OFF
227
228
229
230
231
232
Output 4 ON
233
Output 4 OFF
234
Output 5 ON
235
Output 5 OFF
236
Output 6 ON
237
Output 6 OFF
238
239
240
Tangential toggle
241
242
243
244
245
246
CV feed toggle
247
CV feed OFF
248
CV feed ON
249
250
251
252
253
254
255
256
Engine OFFline
257
Engine ONline
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
Increment feedrate
277
Decrement feedrate
278
Run reverse
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
reserved
298
299
300
302
303
304
305
306
307
308
309
310
311
312
313
314
Calibrate MPGs
315
316
317
318
319
320
321
322
323
324
325
326
327
unknown
328
329
330
331
332
333
334
335
336
337
338
339
340
341
reserved
343 - 347
348
349
350
351
352
353
354
355
Cycle start
1000
1001
Rewind
1002
Stop
1003
Single
1004
Resume
1005
Edit File
1006
Zero All
1007
Zero X
1008
Zero Y
1009
Zero Z
1010
Zero A
1011
Zero B
1012
Zero C
1013
Feedrate reset
1014
Estimate Job
1015
1016
GotoZs
1017
Coord System
1018
Verify
1020
Reset
1021
Ref X
1022
Ref Y
1023
Ref Z
1024
Ref A
1025
Ref B
1026
Ref C
1027
Joystick Toggle
1028
Softlimits Toggle
1029
1030
Jog Toggle
1031
OEM LEDs
From MachCustomizeWiki
This list gives the codes to be used in calls of SetOEMLED and GetOEMLED to
access all LEDs.
If you are using a version of Mach3 prior to 1.90 then to access data in this list that
are in the range 800 upwards you will need to refer to the deprecated calls (e.g.
SetLED) and corresponding codes.
Function
FCode
G92 LED
10
11
Mist LED
12
Flood LED
13
14
15
16
17
Estimating LED
18
Emergency LED
19
20
21
22
23
Torch En LED
24
25
26
27
28
29
30
31
reserved
32
33
34
SS on Act4 LED
35
36
37
38
39
40
X Scale LED
41
Y Scale LED
42
Z Scale LED
43
A Scale LED
44
B Scale LED
45
C Scale LED
46
reserved
47
48
49
50
51
Z-Inhibit ON LED
52
53
CV Mode ON LED
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
reserved
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
130
131
132
133
134
135
130
reserved
130 - 161
162
163
164
165
166
reserved
167
168
Reset LED
800
Inch LED
801
MMs LED
802
Idle LED
803
Start LED
804
Pause LED
805
806
X ref LED
807
Y ref LED
808
Z ref LED
809
A ref LED
810
B ref LED
811
C ref LED
812
Dwell LED
813
814
Fixture LED
816
821
822
823
824
Digitise In LED
825
Index LED
826
Limit OV LED
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
Enable 1 LED
846
Enable 2 LED
847
Enable 3 LED
848
Enable 4 LED
849
Enable 5 LED
850
Enable 6 LED
851
852
853
854
855
999
Get/SetParam() Vars
From MachCustomizeWiki
Here is a word list for the GetParam( String ) and SetParam( String ) in VB
"ZMachine" = Z Mach Positions (G53 Coordinates)
"XMachine" = X Mach Positions (G53 Coordinates)
"YMachine" = Y Mach Positions (G53 Coordinates)
"Encoder1" = X Encoder Position
"Encoder2" = Y Encoder Position
"Encoder3" = Z Encoder Position
"Encoder4" = A Encoder Position
"MPG1" = MPG1s count
"MPG2" = MPG2s count
"MPG3" = MPG3s count
"XScale" = X Axis Scale
"YScale" = Y Axis Scale
"ZScale" = Z Axis Scale
"AScale" = A Axis Scale
"BScale" = B Axis Scale
"CScale" = C Axis Scale
"FeedRate" = Feedrate that is active
"Units" = 0 or 1 for mm or inch
"StepsPerAxisX" = X Steps per unit from the motor tuning page
"StepsPerAxisY" = Y Steps per unit from the motor tuning page
"StepsPerAxisZ" = Z Steps per unit from the motor tuning page
"StepsPerAxisA" = A Steps per unit from the motor tuning page
"StepsPerAxisB" = B Steps per unit from the motor tuning page
"StepsPerAxisC" = C Steps per unit from the motor tuning page
"VelocitiesX" = X MaxVel from motor tuning page (SetParam as units/second. Mach
will multiply X60 for display in motor tuning as units/minute.)