1791
VB and the development of wizards / Re: OEM/User/otherwise knowledge
« on: August 12, 2015, 08:21:01 AM »
Any time you have a line of g-code, you need a while is moving. And youdon't need the sleep(100) in there.
ANd anytime you write to a DRO or a label, I like to add a Sleep(250) to make sure the screen has time to update before continuing.
This:
Code " G91 G01 X0.1"
Code "G90 G00 Z" & ZSafe
'Reset to Zero or Pass the Value
If GetOEMLED(1006) = True Then
Code "G90 G00 X" & XCentre
While IsMoving()
Sleep(100)
Wend
SHould be:
Code " G91 G01 X0.1"
While IsMoving()
Wend
Code "G90 G00 Z" & ZSafe
While IsMoving()
Wend
'Reset to Zero or Pass the Value
If GetOEMLED(1006) = True Then
Code "G90 G00 X" & XCentre
While IsMoving()
Wend
ANd anytime you write to a DRO or a label, I like to add a Sleep(250) to make sure the screen has time to update before continuing.
This:
Code " G91 G01 X0.1"
Code "G90 G00 Z" & ZSafe
'Reset to Zero or Pass the Value
If GetOEMLED(1006) = True Then
Code "G90 G00 X" & XCentre
While IsMoving()
Sleep(100)
Wend
SHould be:
Code " G91 G01 X0.1"
While IsMoving()
Wend
Code "G90 G00 Z" & ZSafe
While IsMoving()
Wend
'Reset to Zero or Pass the Value
If GetOEMLED(1006) = True Then
Code "G90 G00 X" & XCentre
While IsMoving()
Wend