Page 1 of 3 123 LastLast
Results 1 to 12 of 28

Thread: M8 still not being red by EMC2

  1. #1
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0

    M8 still not being red by EMC2

    Hey guys, I'm still having this annoying problem that EMC won't read the m8 command. I have a CNC4PC multifunction BOB. Pin 1 in Stepconf is designated for the Coolant. When I "INVERT" the pin, plugging in my pump works. When it's normally set, no invert. It will not read M8. I simply open up my g-code and put in m8 and m9 and resave the file.

    I'm not sure how too modify my Hal, All I know is too access stepfconf and change those things around, Pins, etc...

    I really need it too work with m8 and m9. I don't like too plug and unplug it.


    Please help,


    -Jason


  2. #2
    Registered
    Join Date
    Jul 2003
    Location
    Holmen, WI
    Posts
    1200
    Downloads
    0
    Uploads
    0
    post your .hal file.


  3. #3
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    How do I access my Hal, I don't know where too go.

    -Jason


  4. #4
    Registered
    Join Date
    Jul 2003
    Location
    Holmen, WI
    Posts
    1200
    Downloads
    0
    Uploads
    0
    easy way (windows users way )

    go to the top menu bar - second menu over is 'Places'

    open that up and you get a 'home folder' menu item. This is like a file broweser. It opens in your 'home' directory. (usually your name you setup).

    There should be an 'EMC2' directory. Double click and it will open. Under that is usually 2 folders - Configs and NC_files. Double click on the 'Configs' directory. Under that should be a directory with the name of the config you pick from the list. Double click on that and your ini and hal files should be in that directory. Double clicking on either the hal or ini files should open them up in Gedit - a gui file editer. (it might ask you if you want to dispay or run in terminal - you want to display) You can make changes to them and save at this point.

    For this purpose - open the hal file up in gedit and paste it here.

    sam


  • #5
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    Oh thanks! Will do!


    -Jason


  • #6
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    What a freaking pain, I don't have internet access in the shop. So i tried putting my files onto a disk and Linux is being stupid and won't let me, I'll have to try and figure out how too transfer them....Argh


    -Jason


  • #7
    Registered
    Join Date
    Jul 2006
    Location
    United States of America
    Posts
    55
    Downloads
    0
    Uploads
    0
    When I don't have a network available, I use a usb flash drive ,which are really inexpensive for usable sizes and sometimes transfer files to my camera.

    Kirk, http://www.wallacecompany.com/machine_shop/


  • #8
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    Wallace, thats what I use too transfer all my g-codes. It won't allow me too send it there!

    Or copy it in....

    -Jason


  • #9
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1164
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by kirk_wallace View Post
    and sometimes transfer files to my camera.
    Write to the camera's memory card via usb? Must try that some time. Very ingeneous.

    SpeedsCustom
    cd/dvd or floppy? Both [i] should [i] work np. Not saying will work np. Computers can be obstinate beasts.
    Anyone who says "It only goes together one way" has no imagination.


  • #10
    Registered
    Join Date
    Jul 2006
    Location
    United States of America
    Posts
    55
    Downloads
    0
    Uploads
    0
    So you can open a .hal or .ini file in your "/home/your_home/emc2/configs/your_config" in gedit, as described by samco above? But if you do something like "Save As" to your flash disk, it fails? What is the error message? Try bring up "/home/your_home/emc2/configs/your_config" as before but this time right-click on the .ini file, go to the bottom of the list and select "Properties", then "Permissions". See who is listed as "File owner" and "File Group". Your username should be there and not "root". Also check the "Owner", "Group" and "Others" check marks for "Read", "Write" and "Execute". "Owner" should have a check mark for "Write", all the "Read"'s should be checked. Then check the permissions for your flash drive. You will need to have "Write" permission to your drive. Another way to try this is to bring up a terminal session (Applications, Accessories, Terminal) and change to "root" with "sudo su -". Root has permission to do just about anything, so permission for a file copy should not be a problem. Let us know what error or other messages you get. You are our eyes and we can't help without being able to see.

    Kirk, http://www.wallacecompany.com/machine_shop/


  • #11
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    I'm working on this, give me like a day, I'm dealing with so many other things. I'll try and copy too a CD if the USB flash don't work.

    It says error, cannot copy too device, it is a READY only???



    -Jason


  • #12
    Registered SpeedsCustom's Avatar
    Join Date
    Sep 2006
    Location
    US
    Posts
    1501
    Downloads
    0
    Uploads
    0
    Ok Now Were set:
    PHP Code:
    # Generated by stepconf at Mon Apr  7 18:14:08 2008
    # If you make changes to this file, they will be
    # overwritten when you run stepconf again
    loadrt trivkins
    loadrt 
    [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES
    loadrt probe_parport
    loadrt hal_parport cfg
    =0x378
    setp parport.0
    .reset-time 4000
    loadrt stepgen step_type
    =0,0,0
    loadrt charge_pump
    net estop
    -out charge-pump.enable <= iocontrol.0.user-enable-out
    loadrt pwmgen output_type
    =0

    addf parport.0
    .read base-thread
    addf stepgen
    .make-pulses base-thread
    addf charge
    -pump base-thread
    addf pwmgen
    .make-pulses base-thread
    addf parport.0
    .write base-thread
    addf parport.0
    .reset base-thread

    addf stepgen
    .capture-position servo-thread
    addf motion
    -command-handler servo-thread
    addf motion
    -controller servo-thread
    addf stepgen
    .update-freq servo-thread
    addf pwmgen
    .update servo-thread

    net spindle
    -cmd <= motion.spindle-speed-in => pwmgen.0.value
    net spindle
    -enable <= motion.spindle-on => pwmgen.0.enable
    net spindle
    -pwm <= pwmgen.0.pwm
    setp pwmgen.0
    .pwm-freq 100.0
    setp pwmgen.0
    .scale 1166.66666667
    setp pwmgen.0
    .offset -133.333333333

    setp parport.0
    .pin-01-out-invert 1
    net coolant
    -flood => parport.0.pin-01-out
    net xstep 
    => parport.0.pin-02-out
    setp parport.0
    .pin-02-out-reset 1
    net xdir 
    => parport.0.pin-03-out
    net ystep 
    => parport.0.pin-04-out
    setp parport.0
    .pin-04-out-reset 1
    setp parport.0
    .pin-05-out-invert 1
    net ydir 
    => parport.0.pin-05-out
    net zstep 
    => parport.0.pin-06-out
    setp parport.0
    .pin-06-out-reset 1
    setp parport.0
    .pin-07-out-invert 1
    net zdir 
    => parport.0.pin-07-out
    net astep 
    => parport.0.pin-08-out
    setp parport.0
    .pin-08-out-reset 1
    net adir 
    => parport.0.pin-09-out
    net estop
    -out => parport.0.pin-14-out
    net spindle
    -pwm => parport.0.pin-16-out
    net charge
    -pump => parport.0.pin-17-out


    setp stepgen.0
    .position-scale [AXIS_0]SCALE
    setp stepgen.0
    .steplen 1
    setp stepgen.0
    .stepspace 0
    setp stepgen.0
    .dirhold 45300
    setp stepgen.0
    .dirsetup 45300
    setp stepgen.0
    .maxaccel [AXIS_0]STEPGEN_MAXACCEL
    net xpos
    -cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
    net xpos
    -fb stepgen.0.position-fb => axis.0.motor-pos-fb
    net xstep 
    <= stepgen.0.step
    net xdir 
    <= stepgen.0.dir
    net xenable axis.0
    .amp-enable-out => stepgen.0.enable

    setp stepgen.1
    .position-scale [AXIS_1]SCALE
    setp stepgen.1
    .steplen 1
    setp stepgen.1
    .stepspace 0
    setp stepgen.1
    .dirhold 45300
    setp stepgen.1
    .dirsetup 45300
    setp stepgen.1
    .maxaccel [AXIS_1]STEPGEN_MAXACCEL
    net ypos
    -cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
    net ypos
    -fb stepgen.1.position-fb => axis.1.motor-pos-fb
    net ystep 
    <= stepgen.1.step
    net ydir 
    <= stepgen.1.dir
    net yenable axis.1
    .amp-enable-out => stepgen.1.enable

    setp stepgen.2
    .position-scale [AXIS_2]SCALE
    setp stepgen.2
    .steplen 1
    setp stepgen.2
    .stepspace 0
    setp stepgen.2
    .dirhold 45300
    setp stepgen.2
    .dirsetup 45300
    setp stepgen.2
    .maxaccel [AXIS_2]STEPGEN_MAXACCEL
    net zpos
    -cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
    net zpos
    -fb stepgen.2.position-fb => axis.2.motor-pos-fb
    net zstep 
    <= stepgen.2.step
    net zdir 
    <= stepgen.2.dir
    net zenable axis.2
    .amp-enable-out => stepgen.2.enable

    net estop
    -out <= iocontrol.0.user-enable-out
    net estop
    -out => iocontrol.0.emc-enable-in

    loadusr 
    -W hal_manualtoolchange
    net tool
    -change iocontrol.0.tool-change => hal_manualtoolchange.change
    net tool
    -changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
    net tool
    -number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
    net tool
    -prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared 


    PHP Code:
    # Generated by stepconf at Mon Apr  7 18:14:08 2008
    # If you make changes to this file, they will be
    # overwritten when you run stepconf again

    [EMC]
    MACHINE Taig
    NML_FILE 
    emc.nml
    DEBUG 
    0

    [DISPLAY]
    DISPLAY axis
    POSITION_OFFSET 
    RELATIVE
    POSITION_FEEDBACK 
    ACTUAL
    MAX_FEED_OVERRIDE 
    1.2
    INTRO_GRAPHIC 
    emc2.gif
    INTRO_TIME 
    5
    PROGRAM_PREFIX 
    = /home/speedscustom/emc2/nc_files
    INCREMENTS 
    .1in .05in .01in .005in .001in .0005in .0001in
    PYVCP 
    panel.xml

    [TASK]
    TASK milltask
    CYCLE_TIME 
    0.010

    [RS274NGC]
    PARAMETER_FILE emc.var

    [
    EMCMOT]
    EMCMOT motmod
    SHMEM_KEY 
    111
    COMM_TIMEOUT 
    1.0
    COMM_WAIT 
    0.010
    BASE_PERIOD 
    100000
    SERVO_PERIOD 
    1000000

    [HAL]
    HALFILE Taig.hal
    HALFILE 
    custom.hal
    POSTGUI_HALFILE 
    custom_postgui.hal

    [TRAJ]
    AXES 3
    COORDINATES 
    X Y Z
    LINEAR_UNITS 
    inch
    ANGULAR_UNITS 
    degree
    CYCLE_TIME 
    0.010
    DEFAULT_VELOCITY 
    0.10
    MAX_LINEAR_VELOCITY 
    0.30

    [EMCIO]
    EMCIO io
    CYCLE_TIME 
    0.100
    TOOL_TABLE 
    tool.tbl

    [AXIS_0]
    TYPE LINEAR
    HOME 
    5.98
    MAX_VELOCITY 
    0.3
    MAX_ACCELERATION 
    30.0
    STEPGEN_MAXACCEL 
    31.5
    SCALE 
    4000.0
    FERROR 
    0.05
    MIN_FERROR 
    0.01
    MIN_LIMIT 
    0.1
    MAX_LIMIT 
    11.9
    HOME_OFFSET 
    5.98

    [AXIS_1]
    TYPE LINEAR
    HOME 
    3.0
    MAX_VELOCITY 
    0.3
    MAX_ACCELERATION 
    30.0
    STEPGEN_MAXACCEL 
    31.5
    SCALE 
    4000.0
    FERROR 
    0.05
    MIN_FERROR 
    0.01
    MIN_LIMIT 
    0.1
    MAX_LIMIT 
    6.0
    HOME_OFFSET 
    3.0

    [AXIS_2]
    TYPE LINEAR
    HOME 
    0.25
    MAX_VELOCITY 
    0.2
    MAX_ACCELERATION 
    25.0
    STEPGEN_MAXACCEL 
    26.25
    SCALE 
    4000.0
    FERROR 
    0.05
    MIN_FERROR 
    0.01
    MIN_LIMIT 
    = -6.0
    MAX_LIMIT 
    0.26
    HOME_OFFSET 
    0.25 


    Now this should be good! Thanks for helping!


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. EMC2 to diy CNC
      By dakiller322 in forum LinuxCNC (formerly EMC2)
      Replies: 11
      Last Post: 10-05-2007, 01:16 AM
    2. How to install EMC2
      By cut more in forum LinuxCNC (formerly EMC2)
      Replies: 11
      Last Post: 07-18-2007, 09:19 AM
    3. Emc2
      By sdantonio in forum Mach Mill
      Replies: 2
      Last Post: 02-05-2007, 03:26 PM
    4. emc2 -hal*?
      By essa in forum LinuxCNC (formerly EMC2)
      Replies: 3
      Last Post: 05-27-2006, 01:06 PM
    5. emc2
      By heilcnc in forum LinuxCNC (formerly EMC2)
      Replies: 2
      Last Post: 05-23-2006, 06:03 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.