Page 1 of 1

Buffered drive

Posted: Fri Sep 02, 2016 12:34 am
by dpa
I have 2 questions about buffered drive commands:
[*] Is there any way (including officially non-documented :-) to get from the buffer which command is being executed right now? I know I can get the number of commands in the buffer that are waiting for execution, but that is not what I need...
[*] Am I correct that if I mix buffered and non-buffered drive commands then issuing any non-buffered command will immediately terminate any buffered command being executed and clears the buffer?

Re: Buffered drive

Posted: Fri Sep 02, 2016 10:22 am
by Basicmicro Support
1. No, there is no way to get the actual command that is executing. You have to keep track of what commands you buffered and then you can use the current number from the GetBuffers command to determine what command is executing.

2. Yes. non-buffered commands will immediately clear that motors buffer and start executing the new command.