586,062 active members*
4,631 visitors online*
Register for free
Login

Search:

Type: Posts; User: jontjong

Search: Search took 0.00 seconds.

  1. Replies
    21
    Views
    4,220

    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...
  2. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hey Tom,

    Another python question, do you know if KMotion_dotNet.dll can be loaded using a normal python interpreter (as opposed to IronPython). I have tried loading in the DLL using ctypes but it...
  3. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    Some development updates, I've switched to developing on a different machine with KMotion434 and have reflashed the KFLOP controller with KMotion434. I noticed earlier you were running a...
  4. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    I'm curious, are you able to execute my code on your setup? And I forgot to add that yes there is no space present in my code.
  5. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi,

    I'm having trouble attaching a screenshot but there's no Exception Message Box that appears. Rather it is an exception thrown during the execution of the Python Code. An error messages...
  6. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    So I've updated to code to now read



    x = y = z= a = b = c = 0
    x,y,z,a,b,c = KM.CoordMotion.ReadAndSyncCurPositions (x, y, z, a, b, c)
    print(x,y,z,a,b,c)
  7. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Also forgot to mention that "MoveRel0 = 1000" works in the KMotion console as well as through my script app. I can use the KM.GetAxis() method to enable and command individual axis control through...
  8. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    I checked under KMotion -> Axis
    and saw the axes 0, 1 and 2 have been checked. When I uncheck them, running my script will reenable them.



    I see, running my script doesn't yield any console...
  9. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    WIth the above code, I can verify that the axis 0, 1 and 2 are being set through the Axis screen on KMotion.exe. Does the KMotion.exe need to be running in order for IronPython scripts to...
  10. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    Thanks for the suggestions. The apostrophes are actually due to the fact that I used Google Lens to copy and paste the code from an image haha.
    I have had success running individual...
  11. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    I found the C# example you were referring to and have ported each and every line to Python. However the program runs but nothing appears to happen on the machine. Any ideas or thoughts?...
  12. Replies
    21
    Views
    4,220

    Re: IronPython Scripting for Kmotion Library

    Hi Tom,

    I've returned to this project and have tested your script which I'm able to run. I'm wondering how can I use IronPython to directly access and create CoordMotion commands? I don't want to...
  13. Replies
    21
    Views
    4,220

    IronPython Scripting for Kmotion Library

    Hi,

    I'm working on setting up an IronPython script to control a KMotion 6 axis machine. I have successfully executed individual axis control functions but am having difficulty executing...
Results 1 to 13 of 13