Thanks Brett,
so it's mses, the g04 option in general setting is not effected ?
Sleep
Sub Sleep(Time As Integer)
This function causes the CB program to pause for the specified period of time, in mSec.
During this time, other processes can have access to the CPU. A Sleep() call should
always be inserted in any loop which might remain active for any period of time, for
example the While loop used to wait for a move command to complete.
Arguments:
Time, an Integer value expressing the sleep time in milliseconds.
Return Value:
None
Example:
‘ Move to zero position
Code “G0 X0.000 Y0.000”
‘ Wait for move to complete
While IsMoving()
‘ Let other processes have CPU while we wait
Sleep 100
Wend