7721
General Mach Discussion / Re: Pause for DRO Update
« on: May 14, 2010, 05:48:02 AM »
This subject has been discussed in great detail, both here and on the zone, with regard to tool position setting and probing.
My understanding of this is basically that the timing of a running macro and Mach itself are asynchronous therefore it is quite possible for a macro to write to a DRO then read from that same DRO an incorrect value unless some form of synchronization is introduced. The command 'While isMoving()....Wend' does just this and effectively causes the macro to wait for a 'handshake' from Mach to tell it that the last task has been completed and that it is now safe to proceed.
Tweakie.
My understanding of this is basically that the timing of a running macro and Mach itself are asynchronous therefore it is quite possible for a macro to write to a DRO then read from that same DRO an incorrect value unless some form of synchronization is introduced. The command 'While isMoving()....Wend' does just this and effectively causes the macro to wait for a 'handshake' from Mach to tell it that the last task has been completed and that it is now safe to proceed.
Tweakie.