Rigid Tapping on a PCNC1100 - Page 5

Page 5 of 7 FirstFirst ... 234567 LastLast
Results 81 to 100 of 132

Thread: Rigid Tapping on a PCNC1100

  1. #81
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Sorry, that was meant to be a link to 25 seconds in, and not a whole embedded video. (because the video, other than the encoder, has no relevance at all to this thread).
    I don't see any way to delete or edit my post, though.



  2. #82
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by andypugh View Post
    Very late with this info, but it would have been fine

    Never too late Andy.
    Ya, I realized I could have merely added another sensor or two and basically made the quad and index pulse - but too late into adapting the encoder I have. Been having some frustration with it though and am a little concerned about the 1000 cpr so, I might fall back to my first idea.

    can you tell me about your electronics? are you using pathpilot?

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  3. #83
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    can you tell me about your electronics? are you using pathpilot?
    I was using normal LinuxCNC (and I still am) and the interface is a Mesa 7i43 card in the video. 1000cpr should be no problem at all with the Mesa card encoder counters, if you can find an extra one.
    Does the HAL file specifically disable encoders? Look at the "loadrt hm2_pci" line to see.



  4. #84
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by andypugh View Post
    I ...Look at the "loadrt hm2_pci" line to see.
    It says: loadrt hm2_pci config=" num_encoders=0 num_pwmgens=1 num_3pwmgens=0 num_stepgens=5 "

    I have a 5i25 with the first port connected to a 7i76 and the second port connected to a C10 BOB. havnt done anything with them yet since 1. I'm still wrapping up the encoder install and 2. I have no idea what I am doing when it comes to linux/hal/...etc.. yet.

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  5. #85
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    It says: loadrt hm2_pci config=" num_encoders=0 num_pwmgens=1 num_3pwmgens=0 num_stepgens=5 "
    Just delete the "num_encoders=0" part and see if any appear :-)



  6. #86
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by andypugh View Post
    Just delete the "num_encoders=0" part and see if any appear :-)
    Well that was interesting...

    deleting the num_encoders=0 yielded an error during pathpilot startup: "Machine control software expierienced an error. Install a software update"
    changing the num_encoders to equal 1 threw the same error. Changing it back to zero, pathpilot started up fine.

    Finished encoder install.. moving on to wiring....


    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  7. #87
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    deleting the num_encoders=0 yielded an error during pathpilot startup: "Machine control software expierienced an error. Install a software update"
    changing the num_encoders to equal 1 threw the same error. Changing it back to zero, pathpilot started up fine.
    Interesting indeed. It sort-of suggests that the encoder modules are in there, but are grabbing a pin that another part of the HAL file wants to use.

    Does the mesaflash --readhdmid command that was suggested earlier by PCW work?



  8. #88
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    I've been unable to make it work so far but I believe this is where my lack of linux expereince comes in. I can find the mesaflash executable file using a search window but the files appears to be unavailable to me.

    I try navigating to the file...
    I try putting it on a usb stick, then navigating to that file..
    all I ever get is mesaflash:command not found

    i'm sure there's some secret decoder ring method for getting it to run but so far, Linux hasnt shown me any love whatsoever.

    Last edited by SoCalPlaneDoc; 04-30-2017 at 01:53 PM.
    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  9. #89
    Member
    Join Date
    Aug 2007
    Location
    usa
    Posts
    701
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    There are a couple problems. The mesa flash for the 1100 doesn't have any Quad encoder flashed to the firmware.

    I would see if PCW can add the Quad-IDX Quad-A and Quad-B to the P2 connector in the flash. Or if you are a super hacker you can download the xilinx software and try it yourself (I never could figure that out)

    Then in your HAL file, if you change the num-encoders to 1 it shouldn't error out.


    Then you will have to modify this bit of code to match the 1100:

    You will have to change the encoder scale to match how many PPRs you have but multiply x4 because of the Quadrature nature.

    Based on whatever pins the Index, A, and B signals you use- you will change the gpio pins to match.

    That will get you close. This snippet is from the tormach lathe hal file - that I had modified to run my Grizzly PathPilot lathe.

    Once you get the mesa flash modified then it shouldn't be too hard for us to help.

    ################################################## ######################
    # Spindle Encoder
    setp hm2_5i25.0.encoder.00.counter-mode 0

    # setting scale negative makes spindle position increase in CW
    # and decrease in CCW - if this not done threading and rigid tapping stall
    # perhaps swapping the A-B encoder inputs would have the same effect
    # for quad encoder change counter mode to 0 above and scale below to 1024x4=-4096
    #should be 4096 but trying this
    setp hm2_5i25.0.encoder.00.scale -4114.05
    setp hm2_5i25.0.encoder.00.filter 1

    # see 'man hostmot2' for descriptions - I added entire index mask invert line
    setp hm2_5i25.0.encoder.00.index-mask 0
    setp hm2_5i25.0.encoder.00.index-mask-invert 0
    setp hm2_5i25.0.encoder.00.index-invert 0

    net spindle-position hm2_5i25.0.encoder.00.position => motion.spindle-revs
    net spindle-raw-velocity hm2_5i25.0.encoder.00.velocity => motion.spindle-speed-in lowpass.0.in
    net spindle-velocity lowpass.0.out
    net spindle-index-enable hm2_5i25.0.encoder.00.index-enable <=> motion.spindle-index-enable

    # note: gpio pins only read at servo thread frequency
    # these nodes are only for driving diagnostic "LEDs" in the UI
    # this is only going to be useful when the spindle is rotated by hand slowly
    net spindle-phase-A hm2_5i25.0.gpio.014.in
    net spindle-phase-B hm2_5i25.0.gpio.015.in
    net spindle-phase-Z hm2_5i25.0.gpio.013.in_not



  10. #90
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by brianbonedoc View Post
    The mesa flash for the 1100 doesn't have any Quad encoder flashed to the firmware.
    Andy, what firmware are you using?

    perhaps I should just follow what the OP did and use a parallel port...

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  11. #91
    Member
    Join Date
    Aug 2007
    Location
    usa
    Posts
    701
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Using parallel port may be easier but I am not sure it's fast enough - how many PPRs for your encoder?

    If you do the math spindle speed of 5100x 4096 (for a 1024 PPR encoder) = 20,889,600 pulses/min

    divide by 60 for pulses/sec = 348,160 or 348khz which may be pushing it for a parallel port.



  12. #92
    Member samco's Avatar
    Join Date
    Jul 2003
    Posts
    1754
    Downloads
    2
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    50khz is pushing the printer port

    sam



  13. #93
    Member Contract_Pilot's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    234
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    SoCalPlaneDoc, Nice Encoder Setup.

    CNC Machines: Tormach PCNC 1100 CNC Mill W4th Axis | Birmingham 12X36 Lathe W/ CNC Retrofit W/Tormach BOB PathPilot & SKCD200220 VFD | My Personal Blog www.stevenrhine.com


  14. #94
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    i'm sure there's some secret decoder ring method for getting it to run but so far, Linux hasnt shown me any love whatsoever.
    You might need to make the file executable.

    ls -l

    will give you a long-form file listing, with x in the attributes meaning "executable". You can either use
    chmod +x mesaflash
    or right-click in the file browser GUI and turn on execute permissions.
    Also, you often need to type a ./ in front of a file name to make it run.

    ./mesaflash ....

    If it says that the file is not found then it might be lying, and it is a permissions problem.

    sudo ./mesaflash

    Would be the nuclear option.



  15. #95
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by Contract_Pilot View Post
    SoCalPlaneDoc, Nice Encoder Setup.
    Thanks! but I've abandoned it in favor of m original concept, which is very much like Andy's The specter of having to get special firmware was the line I didn't want to cross.
    I'm doing annuals on a '47 Bellanca and a '76 Skylane, and I just got some more paid work for the mill so the encoder has to wait, but I'll get back on it ASAP.

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  16. #96
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by andypugh View Post
    You might need to make the file executable.

    ls -l

    will give you a long-form file listing, with x in the attributes meaning "executable". You can either use
    chmod +x mesaflash
    or right-click in the file browser GUI and turn on execute permissions.
    Also, you often need to type a ./ in front of a file name to make it run.

    ./mesaflash ....

    If it says that the file is not found then it might be lying, and it is a permissions problem.

    sudo ./mesaflash

    Would be the nuclear option.
    Awesome, I'll try these when I get home..

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  17. #97
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by andypugh View Post
    You might need to make the file executable.

    ls -l

    will give you a long-form file listing, with x in the attributes meaning "executable". You can either use
    chmod +x mesaflash
    or right-click in the file browser GUI and turn on execute permissions.
    Also, you often need to type a ./ in front of a file name to make it run.

    ./mesaflash ....

    If it says that the file is not found then it might be lying, and it is a permissions problem.

    sudo ./mesaflash

    Would be the nuclear option.
    ls -l
    -rwxrwxrwx 1 operator operator 194899 2017-04-30 09:40 mesaflash (mesaflash in green text)

    /mesaflash - No such file or directory
    sudo ./mesaflash - command not found


    looks like the nuclear option was made in North Korea


    ******** WHOOPS ******

    Didn't notice the period in there before. mesaflash now runs however it says that --readhdmid is an unrecognized option

    Last edited by SoCalPlaneDoc; 05-04-2017 at 09:46 PM.
    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


  18. #98
    Member
    Join Date
    Feb 2008
    Location
    USA
    Posts
    644
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    ls -l
    -rwxrwxrwx 1 operator operator 194899 2017-04-30 09:40 mesaflash (mesaflash in green text)

    /mesaflash - No such file or directory
    sudo ./mesaflash - command not found


    looks like the nuclear option was made in North Korea
    did you try ./mesaflash (/mesaflash would not work unless mesaflash was in the root directory)
    (./mesaflash assumes mesaflash is in the current directory)

    if
    sudo ls
    fails, that suggests that sudo has been disabled (its probably there but not in the shells path)

    (and you need sudo for access to PCI cards)



  19. #99
    Member
    Join Date
    Sep 2008
    Location
    UK
    Posts
    229
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by SoCalPlaneDoc View Post
    l
    Didn't notice the period in there before. mesaflash now runs however it says that --readhdmid is an unrecognized option
    I can't find an actual manual for mesaflash, but the --help output can be seen in the source code:
    https://github.com/micges/mesaflash/...saflash.c#L100

    It is --readhmid



  20. #100
    Registered SoCalPlaneDoc's Avatar
    Join Date
    Mar 2012
    Location
    USA!
    Posts
    117
    Downloads
    0
    Uploads
    0

    Default Re: Rigid Tapping on a PCNC1100

    Quote Originally Posted by PCW_MESA View Post
    did you try ./mesaflash (/mesaflash would not work unless mesaflash was in the root directory)
    (./mesaflash assumes mesaflash is in the current directory)

    if
    sudo ls
    fails, that suggests that sudo has been disabled (its probably there but not in the shells path)

    (and you need sudo for access to PCI cards)
    Thanks PC.. sudo ls - works. ./mesaflash also works. ./mesaflash --readhmid - doesn't fail, but doesn't list anything either.

    Automated Machinery Designer - PCNC1100 Series III upgrade, Graziano Sag 12 Lathe
    Solidworks 2016 (SW Certified), HSMWorks


Page 5 of 7 FirstFirst ... 234567 LastLast

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

Rigid Tapping on a PCNC1100

Rigid Tapping on a PCNC1100