Page 1 of 1

Running C program while open motion buffer from PC

Posted: Fri Jan 18, 2019 10:43 am
by cadline
Dear Dynamotion,
I have to check axis position while motion buffer is running , is it possible?
I have 2 or 3 trhead, running C program in kflop that check some input bit and axis position,
and i have to open,send move command to motion buffer ,close and execute buffer by script command from PC.

does it work ?

thank you

Tiziano F.

Re: Running C program while open motion buffer from PC

Posted: Sun Jan 20, 2019 7:12 pm
by TomKerekes
Hi Tiziano,

Sorry for the delay somehow I missed this post.

Yes that should be possible. From a KFLOP C Program you can read the commanded Axis Destinations as chx->Dest or the actual measured positions as chx->Position (where x = axis number 0-7).

If you post some code we can check it for you.

Re: Running C program while open motion buffer from PC

Posted: Mon Jan 21, 2019 12:12 pm
by cadline
HI TomKerekes ,
thank you very much for reply.
Tiziano