586,075 active members*
4,103 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Posts
    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
    Join Date
    Jul 2011
    Posts
    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
    Join Date
    Dec 2005
    Posts
    596
    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
    Join Date
    Jul 2011
    Posts
    0

    EMC2

    Thanks Mark.

Similar Threads

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

Posting Permissions

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