Mach3 OEM Code

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

VB Constants for Signal Names

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

Jog Inc Inc DRO

Pulse Freq DRO

Slow Jog % DRO

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

X G92 Axis Off DRO

16

Y G92 Axis Off DRO

17

Z G92 Axis Off DRO

18

A G92 Axis Off DRO

19

B G92 Axis Off DRO

20

C G92 Axis Off DRO

21

Queue Depth DRO

22

Time Scale DRO

23

PWM Base DRO

24

Torch Correction Speed DRO

25

Torch Height Corrorrection DRO

26

Torch Height Max DRO

27

CPU Load DRO

28

Encoder 1 (X) position DRO

29

Encoder 2 (Y) position DRO

30

Encoder 3 (Z) position DRO

31

Tool length offset

32

X axis Ref Sw DRO

33

Y axis Ref Sw DRO

34

Z axis Ref Sw DRO

35

A axis Ref Sw DRO

36

B axis Ref Sw DRO

37

C axis Ref Sw DRO

38

True spindle DRO

39

Worst Case DRO

40

Tool X Offset DRO

41

Tool Z Offset DRO

42

Tool Dia DRO

43

Tool Tip Rad DRO

44

Touch Correction DRO

45

Current Fixture Number DRO

46

Part X Offset DRO

47

Part Y Offset DRO

48

Part Z Offset DRO

49

Part A Offset DRO

50

Part B Offset DRO

51

Part C Offset DRO

52

CPU Speed DRO

53

Safe Z DRO

54

Overidden Feed Rate DRO (read only?)

55

Pulley DRO

56

Max Spindle Speed on current pulley DRO

57

Velocity per Rev DRO

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

Lowest Torch Correction DRO

65

Threading Entrance Angle DRO

66

Max Entrance Points DRO

67

Rotational Time Error DRO

68

Entrance Trigger DRO

69

Time Correction Derivative DRO

70

Interrupts per spindle rev DRO

71

Current Spin Counts DRO

72

Spin Adder DRO

73

Spindle Speed Override DRO

74

Stock Size DRO

75

Laser X Grid DRO

76

Laser Y Grid DRO

77

Repetitions DRO

78

Lower Z-Inhibit By DRO

79

Z-Inhibit DRO

80

Port Bit-test DRO (diagnostic)

81

Anti-dive limit DRO

82

X Machine Coord DRO

83

Y Machine Coord DRO

84

Z Machine Coord DRO

85

A Machine Coord DRO

86

B Machine Coord DRO

87

C Machine Coord DRO

88

Blend factor DRO

89

Number of spindle disc slots DRO

90

G73 Pull-off value DRO

91

Tangential lift threshold angle DRO

92

Tangential lift Z level DRO

93

reserved

94

reserved

95

reserved

96

CV Feedrate DRO

97

Feed override increment value DRO

98

??? Spindle ratio DRO

99

Encoder 4 position DRO

100

MPG 1 count DRO

101

MPG 2 count DRO

102

MPG 3 count DRO

103

Rapid feedrate DRO

104

Diameter of current tool DRO

105

Tip direction of current tool DRO

106

Tool nose radius of current tool DRO

107

X offset of current tool DRO

108

Z offset of current tool DRO

109

X wear offset of current tool DRO

110

Z wear offset of current tool DRO

111

Tool turret angle of current tool DRO

112

Velocity of MPG 1 DRO

113

Velocity of MPG 2 DRO

114

Velocity of MPG 3 DRO

115

Angle of taper to be cut with MPG tapering DRO

116

Spindle speed as surface speed DRO

117

Angle of rotation of X/Y coordinate system (cf G68)

118

Laser grid spacing DRO

119

Number of incremental jogs that can be buffered DRO

120

Minimum spindle speed on current pulley DRO

121

Feed rate ignoring that set in F word DRO

122

Tool post offset (between front and rear posts DRO

123

Current velocity of MPG 1 DRO

124

Current velocity of MPG 2 DRO

125

Feedrate for use with MPG step jogs DRO

126

Error between Encoder 1 and abs X position DRO

127

Error between Encoder 2 and abs Y position DRO

128

Error between Encoder 3 and abs Z position DRO

129

Time (uSec) in interrupt handler DRO

130

SLS Dist - laser position measurement DRO

131

Axis 6 Tripcount - system debug use only DRO

132

??? Engine lookahead DRO

133

Count of actual pulses output on X - debug use only DRO

134

Count of actual pulses output on Y - debug use only DRO

135

Count of actual pulses output on Z - debug use only DRO

136

Count of actual pulses output on A - debug use only DRO

137

Count of actual pulses output on B - debug use only DRO

138

Count of actual pulses output on C - debug use only DRO

139

Actual count from encoder 1 - debug use only DRO

140

Actual count from encoder 2 - debug use only DRO

141

Actual count from encoder 3 - debug use only DRO

142

Actual count from encoder 4 - debug use only DRO

143

Actual count from encoder 5 - debug use only DRO

144

Actual count from encoder 6 - debug use only DRO

145

ModBus input 64 DRO

146

ModBus input 65 DRO

147

ModBus input 66 DRO

148

ModBus input 67 DRO

149

Softlimit X Maximum DRO

150

Softlimit Y Maximum DRO

151

Softlimit Z Maximum DRO

152

Softlimit A Maximum DRO

153

Softlimit B Maximum DRO

154

Softlimit C Maximum DRO

155

Softlimit X Minimum DRO

156

Softlimit Y Minimum DRO

157

Softlimit Z Minimum DRO

158

Softlimit A Minimum DRO

159

Softlimit B Minimum DRO

160

Softlimit C Minimum DRO

161

Distance from front to rear toolpost DRO

162

Encoder 1 position (in units) DRO

170

Encoder 2 position (in units) DRO

171

Encoder 3 position (in units) DRO

172

Encoder 4 position (in units) DRO

173

Part X radius/diameter for Touching to tooltable DRO

175

Part Z location for Touching to tooltable DRO

176

reserved DRO

177

Machine X coord - X Work Offset DRO

178

Machine Y coord - Y Work Offset DRO

179

Machine Z coord - Z Work Offset - Tool length DRO

180

Machine A coord - A Work Offset DRO

181

Machine B coord - B Work Offset DRO

182

Machine C coord - C Work Offset DRO

183

X Cont. Pnt. coord (Machine - Work - G52/G92) DRO

184

Y Cont. Pnt. coord (Machine - Work - G52/G92) DRO

185

Z Cont. Pnt. coord (Machine - Work - Tool len. - G52/G92) DRO 186
A Cont. Pnt. coord (Machine - Work - G52/G92) DRO

187

B Cont. Pnt. coord (Machine - Work - G52/G92) DRO

188

C Cont. Pnt. coord (Machine - Work - G52/G92) DRO

189

X axis home location used by G28 DRO

190

Y axis home location used by G28 DRO

191

Z axis home location used by G28 DRO

192

A axis home location used by G28 DRO

193

B axis home location used by G28 DRO

194

C axis home location used by G28 DRO

195

X axis Distance to Go DRO

196

Y axis Distance to Go DRO

197

Z axis Distance to Go DRO

198

A axis Distance to Go DRO

199

B axis Distance to Go DRO

200

C axis Distance to Go DRO

201

Overriden spindle speed DRO

202

Current pulley reversed direction

203

Current X offset of Turn tool

204

reserved

205

reserved

206

reserved

207

Encoder X reading corrected by offsets

208

Encoder Y reading corrected by offsets

209

Encoder Z reading corrected by offsets

210

X soft limits Max

211

y soft limits Max

212

Z soft limits Max

213

X soft limits Min

214

y soft limits Min

215

Z soft limits Min

216

Spindle Seconds CW

217

reserved

218

reserved

219

Brains exe time (ms)

220

Probe Radius

221

Sub Program depth

222

Rapid Override

223

Number of macros currently running

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

Blended Velocity DRO

813

Elapsed DRO

814

Estimate DRO

815

Curr Line no DRO

816

Spindle requested DRO

817

Feedrate DRO

818

Feedrate Override (FRO)

821

Tool number DRO

824

Rot A diameter DRO

825

Rot B diameter DRO

826

Rot C diameter DRO

827

Jog Inc DRO

828

X Fixture Off DRO

830

X Fixture Orig Off DRO

830

Y Fixture Off DRO

831

Y Fixture Orig Off DRO

831

Z Fixture Off DRO

832

Z Fixture Orig Off DRO

832

A Fixture Off DRO

833

A Fixture Orig Off DRO

833

B Fixture Orig Off DRO

834

B Fixture Off DRO

834

C Fixture Orig Off DRO

835

C Fixture Off DRO

835

Current Tool length DRO

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

Screen 1 select(e.g. Program Run screen)

Screen 2 select (e.g. MDI screen select)

e.g. Toolpath screen select

e.g. Positioning screen select

e.g. Diagnostics screen select

e.g. Corrections screen select

e.g. Tables screen select

Inc Inc Up

100

Inc Inc Down

101

Reset Interp

102

Jog mode toggle

103

Goto Safe Z

104

Home Z then X then Y, A, B, C - set machine coords

105

Units

106

Mach coords

107

Feed raise

108

Feed lower

109

Spindle CW, reset THC height

110

Slow Jog Up

111

Slow Jog Dn

112

Flood toggle

113

Mist toggle

114

Edit G-code

115

Zero radius DRO on X

116

Zero radius DRO on Y

117

Zero radius DRO on Z

118

Software limits

119

Touch button for Tool length offset

120

Tool Tab Save

121

Fixture Tab Save

122

Torch Enable Toggle

123

Torch Cal Zero

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

Toggle Mill/Turn mode

131

Tool Path Toggle

132

Zero X Encoder

133

Zero Y Encoder

134

Zero Z Encoder

135

Tool Offset Tog

136

Fixture Off

137

Go Home

138

Part X Offset Touch

139

Part Y Offset Touch

140

Part Z Offset Touch

141

Part A Offset Touch

142

Part B Offset Touch

143

Part C Offset Touch

144

Tool X Offset Touch

145

Tool Z Offset Touch

146

Joy Throttle select

147

Touch Corr Enable Toggle

148

Auto Lim Override Toggle

149

OverRide Limits

150

SS on Act4 Toggle

151

reserved

152

reserved

153

reserved

154

Units/rev - Units/min toggle

155

Set this line as next to execute

156

Jog Follow

157

Joystick ON

158

Joystick OFF

159

Regen toolpath display

160

Zero X-Z to stock as defined in DROs (Turn)

161

Coordinate mode (G90/91)

162

Raise spindle speed

163

Lower spindle speed

164

Laser Probe Enable Toggle

165

Zero laser grid at current location

166

Z inhibit toggle

167

Ignore Tool Change toggle

168

Close current file

169

Re-load last file

170

Jog increment cycle

171

Clear error label

172

Spindle CCW toggle

173

Parallel Port Encoder3 MPG Jog Toggle

174

Cycle axis controlled by MPG 1

175

Block Delete "switch" toggle

176

Optional Stop "switch" toggle

177

Offline toggle

178

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 actual

182

Home X, Home Z (Turn)

184

Select X for MPG 1

185

Select Y for MPG 1

186

Select Z for MPG 1

187

Select A for MPG 1

188

Select B for MPG 1

189

Select C for MPG 1

190

Select Jog Increment 1

191

Select Jog Increment 2

192

Select Jog Increment 3

193

Select Jog Increment 4

194

Select Jog Increment 5

195

Select Jog Increment 6

196

Select Jog Increment 7

197

Select Jog Increment 8

198

Select Jog Increment 9

199

Select Jog Increment 10

200

Feed override Off

201

Feed override Jog

202

Feed override Feed

203

Jog mode Continuous (same as button 276)

204

Jog mode Step (same as button 275)

205

Joystick On

206

Joystick Off

207

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 list

214

Display history

215

Load G-code

216

Tool flip toggle (Turn front/rear toolposts)

217

Z-inhibit ON

218

Z-inhibit OFF

219

Port Bit-Test Set (diagnostic)

220

Anti-dive enabled toggle

221

THC Anti-dive OFF

222

THC Anti-dive ON

223

Flood ON

224

Flood OFF

225

Mist ON

226

Mist OFF

227

Load Teach file

228

Toolpath Machine/Job toggle

229

Display Wizard selection window

230

Load the normal screens when Wizard done

231

Simple Complex screen toggle

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

Set Help context

239

Def-Ref all axes

240

Tangential toggle

241

Save XYZ to G59.254 work offset

242

do G0G53 to G59.254 offset location

243

Move to G59.254 with midpoint selection

244

Toggle Jog Mode through Cont/Step/MPG as relevant

245

Force Referenced on all axes

246

CV feed toggle

247

CV feed OFF

248

CV feed ON

249

Disable movement on axis X

250

Disable movement on axis Y

251

Disable movement on axis Z

252

Disable movement on axis A

253

Disable movement on axis B

254

Disable movement on axis C

255

Machine Coordinates toggle

256

Engine OFFline

257

Engine ONline

258

Select encoder jog on axis X

259

Select encoder jog on axis Y

260

Select encoder jog on axis Z

261

Select encoder jog on axis A

262

Select encoder jog on axis B

263

Select encoder jog on axis C

264

Select Step value 1

265

Select Step value 2

266

Select Step value 3

267

Select Step value 4

268

Select Step value 5

269

Select Step value 6

270

Select Step value 7

271

Select Step value 8

272

Select Step value 9

273

Select Step value 10

274

Set Jog mode STEP (same as button 205)

275

Set Jog mode CONT (same as button 204)

276

Increment feedrate

277

Decrement feedrate

278

Run reverse

279

Switch to last used Wizard

280

Cycle axis controlled by MPG 2

281

Toggle taper mode on MPG 2

282

Toggle dual MPG flag

283

Toggle shuttle mode for MPG

284

Return to paused state

285

Remember paused state

286

Toggle override of rapid feeds

287

Crop current dwell now

288

??? Set formlas

289

Inhibit jog of X axis

290

Inhibit jog of Y axis

291

Inhibit jog of Z axis

292

Inhibit jog of A axis

293

Inhibit jog of B axis

294

Inhibit jog of C axis

295

Do screw calibration routine

296

Unconditional crop any dwell now

297

reserved

298

Toggle bypass feed (enables value in OEM DRO 122)

299

Toggle current tool is in front toolpost

300

Code for OEMTriggers runs the macro in SetTriggerMacro 301


Cycle MPG jogging mode

302

Set MPG jogging mode = Velocity

303

Set MPG jogging mode = Velocity/Step

304

Set MPG jogging mode = do single eaxct steps

305

Set MPG jogging mode = do multiple exact steps

306

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 MPGs

315

Save tool table

316

Save work offset table

317

Drag on toolpath does Zoom toggle

318

Drag on toolpath does Pan toggle

319

Display Wizard select dialog

320

Run Newfangled Wizard

321

Emergency bailout - tester use only

322

Toggle visibility of screen 50

323

Turn mode tool touch off X axis

324

Toggle use of spindle step line to control Torch volts

325

Turn mode tool touch off Z axis

326

Select MPG jog mode

327

unknown

328

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 Go

333

Toggle X jog off

334

Toggle Y jog off

335

Toggle Z jog off

336

Toggle A jog off

337

Toggle B jog off

338

Toggle C jog off

339

Set a temporary softlimit minimum at current location

340

Set a temporary softlimit maximum at current location

341

reserved

343 - 347

Turn off display of menu bar

348

Turn on display of menu bar

349

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 A axis ++ together (foam machines)

354

Jog Y and A axis -- together (foam machines)

355

Cycle start

1000

Pause (Feed Hold)

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

Run from here

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

Radius Tracking Toggle

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

Spindle ON LED (CW or CCW)

11

Mist LED

12

Flood LED

13

Jog mode Cont LED

14

Jog mode Incr LED

15

Mach coords warn LED

16

Feed override LED

17

Estimating LED

18

Emergency LED

19

A radius corr. LED

20

B radius corr. LED

21

C radius corr. LED

22

Software limits LED

23

Torch En LED

24

True spindle Acc LED

25

True spindle Dec LED

26

Tool Path LED

27

Tool Offset on LED

28

Part Offset on LED (always in 6.11)

29

Throttle is Slow Jog LED

30

Throttle is Feedrate LED

31

reserved

32

Auto Lim override LED

33

Override Limits/home switches LED

34

SS on Act4 LED

35

THC Arc Good LED

36

Torch Up active LED

37

Torch Down active LED

38

Feed per Rev LED

39

Feed per Min LED

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

Abs Coordinate Mode LED

48

Incremental Coordinate Mode LED

49

Threading Sync Mode LED (Turn)

50

Laser Probe enabled LED

51

Z-Inhibit ON LED

52

Ignore Tool Change ON LED

53

CV Mode ON LED

54

M30 Repeats Enabled LED

55

CV mode OFF LED

56

MPG Jog On LED

57

Cont. Jog is at full speed LED

58

MPG 1 Jogs X axis LED

59

MPG 1 Jogs Y axis LED

60

MPG 1 Jogs Z axis LED

61

MPG 1 Jogs A axis LED

62

MPG 1 Jogs B axis LED

63

MPG 1 Jogs C axis LED

64

Optional Stop On LED

65

Block Delete On LED

66

Offline indicator LED

67

Threading feed related to true Spindle speed LED

68

Index signal awaited LED (Turn)

69

Anti-dive enabled LED

70

Spindle speed stable LED

71

IJ Mode is Absolute LED

72

IJ Mode is Incremental LED

73

G-code teaching file is open LED

74

Offset in effect on at least one axis LED

75

reserved

76

Output 4 Active LED

77

Output 5 Active LED

78

Output 6 Active LED

79

Pause Active LED

80

Tangential control Active LED

81

Single Step mode Active LED

82

Jogging enabled LED

83

CV feed enabled LED

84

Enhanced Pulsing NOT in use LED

85

Axis inhibited X LED

86

Axis inhibited Y LED

87

Axis inhibited Z LED

88

Axis inhibited A LED

89

Axis inhibited B LED

90

Axis inhibited C LED

91

Diameter mode active (Turn) LED

92

Timing signal active (Turn) LED

93

Hotkeys enabled LED

94

Units per minute mode LED

95

Units per rev mode LED

96

Running in reverse (duplicated by 112) LED

97

MPG 2 Jogs X axis LED

98

MPG 2 Jogs Y axis LED

99

MPG 2 Jogs Z axis LED

100

MPG 2 Jogs A axis LED

101

MPG 2 Jogs B axis LED

102

MPG 2 Jogs C axis LED

103

MPG 2 in taper mode LED

104

Two MPGs in use LED

105

Shuttle mode in use LED

106

Spindle is in CSS (G96) mode LED

107

X/Y coordinate system is currently rotated LED

108

Rapids being overidden LED

109

Axis formula mappin ON LED

110

Feedhold when part of a block executed - remainder pending LED 111


Running in reverse (duplicate) LED - do not use

112

Alternative feedrate in use (see OEM DRO 122) LED

113

Front tool post selected LED

114

Rear tool post selected LED

115

Spindle is running LED

116

MPG jog Velocity mode selected LED

117

MPG jog Velocity/Step mode selected LED

118

MPG jog single exact step mode selected LED

119

MPG jog multiple steps selected LED

120

X++ jogging switch active LED

121

X-- jogging switch active LED

122

Y++ jogging switch active LED

123

Y-- jogging switch active LED

124

Z++ jogging switch active LED

125

Z-- jogging switch active LED

126

A++ jogging switch active LED

127

A-- jogging switch active LED

128

Mouse in tool path Zooms LED

129

Mouse in tool path Pans LED

130

MPG 3 Jogs X axis LED

130

MPG 3 Jogs Y axis LED

131

MPG 3 Jogs Z axis LED

132

MPG 3 Jogs A axis LED

133

MPG 3 Jogs B axis LED

134

MPG 3 Jogs C axis LED

135

MPG 3 Jogs X axis LED

130

reserved

130 - 161

A macro is running LED

162

Distance to go display in Axis DROs LED

163

Spindle rotating CW LED

164

Spindle rotating CCW LED

165

Conditions are abnormal LED

166

reserved

167

CV Distance tolerance is ON LED

168

Reset LED

800

Inch LED

801

MMs LED

802

Idle LED

803

Start LED

804

Pause LED

805

Tool change LED

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

Joystick enable LED

814

Fixture LED

816

Input 1 Active LED

821

Input 2 Active LED

822

Input 3 Active LED

823

Input 4 Active LED

824

Digitise In LED

825

Index LED

826

Limit OV LED

827

X++ Limit LED

828

X-- Limit LED

829

X-- Home LED

830

Y++ Limit LED

831

Y-- Limit LED

832

Y-- Home LED

833

Z++ Limit LED

834

Z-- Limit LED

835

Z-- Home LED

836

A++ Limit LED

837

A-- Limit LED

838

A-- Home LED

839

B++ Limit LED

840

B-- Limit LED

841

B-- Home LED

842

C++ Limit LED

843

C-- Limit LED

844

C-- Home LED

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

Output 1/Extrn1 Active LED

852

Output 2/Extrn2 Active LED

853

Output 3/Extrn3 Active LED

854

Digitise Out LED

855

System movement in effect or movement imminent LED

999

UserDROs & UserLEDs


From MachCustomizeWiki
Below is from an email from Art Fenerty to the mach1mach2cnc group:
UserDROs and UserLEDs
There are 255 user DROs and 255 User Leds.
They are used by dropping an LED or DRO on the screen, and giving it an OEM
value of 1000 plus the DRO number.
So a DRO of OEM number 1001 is UserDRO #1...etc...
They can be set or controlled by the macro commands:
SetUserDRO( 1, 2.345 ); for example or SetUserLED ( 1, 1) to turn on an LED, or
(1,0) to turn it off...
I found, when using a UserDRO, I had to give the DRO on screen the OEM Value
1900, and also had to use GetUserDRO( 1900 )
[not GetUserDRO( 900 ) as is stated in Art's message]

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.)

"VelocitiesY"= Y MaxVel from motor tuning page (SetParam as units/second. Mach


will multiply X60 for display in motor tuning as units/minute.)
"VelocitiesZ" = Z MaxVel from motor tuning page (SetParam as units/second. Mach
will multiply X60 for display in motor tuning as units/minute.)
"VelocitiesA" = A MaxVel from motor tuning page
"VelocitiesB" = B MaxVel from motor tuning page
"VelocitiesC" = C MaxVel from motor tuning page
"AccelerationX" = X Max Accel from motor tuning page
"AccelerationY" = Y Max Accel from motor tuning page
"AccelerationZ" = Z Max Accel from motor tuning page
"AccelerationA" = A Max Accel from motor tuning page
"AccelerationB" = B Max Accel from motor tuning page
"AccelerationC" = C Max Accel from motor tuning page
"SpindleSpeed" = Active Spindle speed
"ZInhibitOn" = 1/0 for Z inhibit on/ off
"ZInhibitDepth" = Max depth of Zinhibit
"SafeZ" = Safe Z height
"XDRO" = X Position
"YDRO" = Y Position;
"ZDRO" = Z Position;
"ADRO" = A Position;
"BDRO" = B Position;
"CDRO" = C Position;
"XRefPer" = X % speed for homing
"YRefPer" = Y % speed for homing
"ZRefPer" = Z % speed for homing
"ARefPer" = A % speed for homing
"BRefPer" = B % speed for homing
"CRefPer" = C % speed for homing
"RPMOverRide" = SetParam("RPMOverRide", 1) will allow you to write to
OEMDRO39(True Spindle Speed) from the modbus. If set to "0" will read True
spindle as usual.

You might also like