C# KFlop Buffer

Moderators: TomKerekes, dynomotion

Post Reply
magergar
Posts: 3
Joined: Wed May 02, 2018 10:38 pm

C# KFlop Buffer

Post by magergar » Wed Jun 20, 2018 6:03 pm

I'm using the command CM.StraightFeed and I notice that can only hold 3 commands, when I add 4 it flush the buffer without the command CM.FlushSegments(); is this normal?
what I'm trying to do is read a file with coordinates(x,y,z) insert it in the buffer and then flush the buffer and I'm worried that it can cause a malfuncition (I haven't notice any so far)

User avatar
TomKerekes
Posts: 2529
Joined: Mon Dec 04, 2017 1:49 am

Re: C# KFlop Buffer

Post by TomKerekes » Thu Jun 21, 2018 6:00 pm

Hi magergar,

Yes that is normal. It works based on time not the number of commands. Once the buffer contains more motion than your specified buffer time (TPLookahead) then the motion will automatically begin to execute. You must then add motion to keep the buffer from underflowing. Also when adding motion that would increase the amount of motion not yet executed into the buffer beyond the specified buffer time, the calls to add more motion will block, until more motion has been executed.

HTH
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply