Running C program while open motion buffer from PC

Moderators: TomKerekes, dynomotion

Post Reply
cadline
Posts: 5
Joined: Sat Mar 31, 2018 3:26 pm

Running C program while open motion buffer from PC

Post by cadline » Fri Jan 18, 2019 10:43 am

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.

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

Re: Running C program while open motion buffer from PC

Post by TomKerekes » Sun Jan 20, 2019 7:12 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

cadline
Posts: 5
Joined: Sat Mar 31, 2018 3:26 pm

Re: Running C program while open motion buffer from PC

Post by cadline » Mon Jan 21, 2019 12:12 pm

HI TomKerekes ,
thank you very much for reply.
Tiziano

Post Reply