Results 1 to 4 of 4

Thread: EMC Hal and halui config.

  1. #1
    Registered
    Join Date
    Jul 2011
    Location
    South Africa
    Posts
    23
    Downloads
    0
    Uploads
    0

    Unhappy EMC Hal and halui config.

    I have a three axis machine that makes paintrollers, the three axis are controlled with stepper motors and GHEKO drives. The setup does not run off G-code but use the jog function to move the three axis at the same linear speeds. I have configd the axis to move forward at 1000mm/min and return at 10 000mm/min. The pins on my breakout bord gives the signals to move, through to the par port to the computer. I set up the hal file to accept forward jog (pin 13 closed) and then reverse on pin 15 closed. With pin 15 I wrote the halui file to accept mux2 together with the reverse command at the higher speed. THE PROBLEM: Sometimes when the axis reverse it does not take the mux2 command.(The axis reverse, but at the lower speed) I switched on the halmeter and the mux2 light does change??? I then used the hal scope to see what the signal looks like, and sometimes it is not a perpendicular line to the trigger amplitude, but rather a 70 to 80 degree line. QUESTION: Can that be the cause that the program sometimes read the command together with mux2, and other times not?
    (PS I hope I am on the right forum, if Im not, SORRY)


  2. #2
    Registered
    Join Date
    Jul 2011
    Location
    South Africa
    Posts
    23
    Downloads
    0
    Uploads
    0

    The hal and halui.hal changes I made

    These lines I added to hal

    load or 2
    addf or 2.0 servo-thread

    loadrt mux2
    addf mux2.0 servo-thread
    setp mux 2.0. in1 10 000.
    setp mux 2.0. in0 1000.

    #...setup par port1...
    net xjplus <= parport.1.pin15-in-not
    net xjneg <= parport.1.pin13-in-not
    net yjplus <= parport.1.pin12-in-not
    net yjneg <= parport.1.pin11-in-not
    net zjplus <= parport.1.pin10-in-not
    net zjneg <= parport.0.pin15-in-not


    The following lines I wrote in halui.hal

    net jspeed mux2.0.out => halui jog-speed
    net xjplus halui.jog.0.plus
    net xjneg halui.jog.0.minus => or 2.0.in0
    net yjplus halui.jog.1.plus
    net yjneg halui.jog.1.minus => or 2.0.in0
    net sel or 2.0.out => mux 2.0.sel


    If any one can help me I will greatly appreciate.


  3. #3
    Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    310
    Downloads
    0
    Uploads
    0
    Nota Beni - There is an EMC2 forum just a little ways down where questions like this are more likely to get answered quicker.

    Mark


  4. #4
    Registered
    Join Date
    Jul 2011
    Location
    South Africa
    Posts
    23
    Downloads
    0
    Uploads
    0

    EMC2

    Thanks Mark.


Similar Threads

  1. rs-232 pinout config
    By Michael82 in forum Fanuc
    Replies: 5
    Last Post: 02-04-2012, 08:08 PM
  2. Need help with config
    By justin bowser in forum Mach Mill
    Replies: 2
    Last Post: 05-09-2011, 08:53 AM
  3. Need Help!- Usb output device for halui pins
    By jbcj in forum LinuxCNC (formerly EMC2)
    Replies: 0
    Last Post: 04-15-2010, 03:17 AM
  4. New Machine Build- Need Help with 2-AXIS Config
    By WoR in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 11-25-2009, 07:37 PM
  5. Need Help pyvcp,halui,pendant jogging
    By Gads in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 05-11-2008, 04:42 PM

Posting Permissions



About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.