Need Help! IronPython Scripting for Kmotion Library - Page 2


Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: IronPython Scripting for Kmotion Library

  1. #21
    Member jontjong's Avatar
    Join Date
    Apr 2021
    Posts
    14
    Downloads
    0
    Uploads
    0

    Default Re: IronPython Scripting for Kmotion Library

    Hey Tom, thank you for your continuous support.

    I'm now using Python 3.7 and the pythonnet module to interface with the KMotion Library and it's working wonderfully. I have no issues sending CoordMotion commands.
    I do have an additional question though, whenever I send CoordMotion commands through Python it seems to be blocking the GUI (tkinter) script, meaning I am unable to send Abort and Halt commands through Python while it's in the middle of a coordinated motion. Are you aware of why this could be?

    Thanks



  2. #22
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4043
    Downloads
    0
    Uploads
    0

    Default Re: IronPython Scripting for Kmotion Library

    In general the CoordMotion commands are blocking. Commands that create motion will block if the motion would increase the amount of buffered motion beyond the TPLookahead time. Or WaitForSegmentsFinished() will block until all motion is completed. Normally one creates a worker Thread to issue commands.

    Regards
    TK http://dynomotion.com


Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

IronPython Scripting for Kmotion Library

IronPython Scripting for Kmotion Library