Welcome, Guest. Please login or register.
Did you miss your activation email?
December 19, 2014, 02:11:31 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Macro for reverse run
Pages: 1   Go Down
Print
Author Topic: Macro for reverse run  (Read 349 times)
0 Members and 1 Guest are viewing this topic.
XD_GIGA
Holding

Offline Offline

Posts: 2


View Profile
« on: November 19, 2014, 08:52:11 AM »

Hy
i need macro for reverse run

sample of code
Code:
;*********** 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)
Logged
XD_GIGA
Holding

Offline Offline

Posts: 2


View Profile
« Reply #1 on: November 28, 2014, 03:03:21 AM »

Update why this don't work

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


DoOEMButton(OEMButtonPause)
Sleep(1000)
DoOEMButton(OEMButtonRunreverse)
Sleep(1000)
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!