Python user space HAL component

Results 1 to 2 of 2

Thread: Python user space HAL component

  1. #1
    Member kstrauss's Avatar
    Join Date
    Apr 2013
    Location
    Canada
    Posts
    1788
    Downloads
    0
    Uploads
    0

    Default Python user space HAL component

    I'm trying to create a user space HAL component in Python but I am having little success. Ultimately I want to read HAL pins and output the values to a serial (USB faked) port. Using "admin halcmd loadusr path" I can get my program to generate error messages to the log file but not actually do anything useful. Can anyone post a simple, working, Python script for comparison to my failed efforts?

    Similar Threads:


  2. #2
    Member
    Join Date
    May 2015
    Location
    Australia
    Posts
    686
    Downloads
    0
    Uploads
    0

    Default Re: Python user space HAL component

    Try the Linuxcnc docs Creating Userspace Python Components
    I've never used Python to create components and write mine in C but for comms, Python is the way to go.
    There should be some examples of comms you can borrow from the Linuxcnc git repo
    This one that talks to a plasma cutter by RS485 comes to mind
    https://github.com/LinuxCNC/linuxcnc...omps/pmx485.py

    Rod Webster
    www.vmn.com.au


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

Python user space HAL component

Python user space HAL component