Hello Guest it is November 15, 2019, 05:36:30 PM

Author Topic: Macro for reverse run  (Read 2885 times)

0 Members and 1 Guest are viewing this topic.

Macro for reverse run
« on: November 19, 2014, 08:52:11 AM »
Hy
i need macro for reverse run

sample of code
Code: [Select]
;*********** MACHINE XML START
;MACRO LOOP
G90
G21
M9008
G0 X92 Y74
G92 X3 Y3
G0 X-25 Y-25
;PROBING SET TOOL ON TOP OF MATERIAL G92 Z 27.25
M9009
; AFTER PROBING GO TO SAFE Z
G0 z50.10
G1 F500
M3
;[b]M9100[/b] YES NO MACRO FOR NORMAL RUN IF NO FINISH PROGRAM, YES ASK FOR NEW Z AND START CODE(G92 50.10 + USER INPUT (FIRST RUN USER INPUT Z=0))
;*********** MACHINE XML END
G0 X100.0 Y200.00 Z50.10
G1 X100.0 Y200.00 Z0.00
G1 X100.0 Y280.00 Z0.00
G0 X100.0 Y280.00 Z50.10
;*********** MACHINE XML START
;[b]M9101[/b] YES NO MACRO FOR REVERSE RUN IF NO FINISH PROGRAM, YES ASK FOR NEW Z AND REVERSE CODE (50.10+ USER INPUT(INPUT MUST BE LOWER THAN FIRST ONE))
M5
G0 Z100
G0 X0 Y0
M9008
;*********** MACHINE XML END
M30
so I wnat that my code run in loop forward and back every time with new hight (new z position)
Re: Macro for reverse run
« Reply #1 on: November 28, 2014, 03:03:21 AM »
Update why this don't work

Code: [Select]
'Define OEM codes for Run reverse
Const OEMButtonpause = 286
Const OEMButtonRunreverse = 279


DoOEMButton(OEMButtonPause)
Sleep(1000)
DoOEMButton(OEMButtonRunreverse)
Sleep(1000)