NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum HAL HAL Components Controlling lube pump & a second parallel post

Welcome, Guest
Username: Password: Remember me

TOPIC: Controlling lube pump & a second parallel post

Re:Controlling lube pump & a second parallel post 15 Jui 2011 12:46 #10541

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
BigJohnT wrote:
If you do setp parport.1.pin-16-out True from the Show Hal Screen does that work?

Yes, this works. Makes it happen on the show screen and the watch screen
And the file name is M100 with no extension?

Correct. M100 with no extension
And what happens when you type M100 in the MDI tab?

Nothing happens at all. Got an error the first couple of times, until I moved the two files into the correct directory.
Otherwise it looks right to me.

John
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 13:27 #10542

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
Try M100 in a short g code program...

John
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 14:15 #10545

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
I just tried my M100 collet open and it would not work in 10.04 until I added eval in front of each halcmd.

John
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 14:45 #10551

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
BigJohnT wrote:
I just tried my M100 collet open and it would not work in 10.04 until I added eval in front of each halcmd.

John

I'll try that in a moment.

I've written a short Gcode program to try the M100 and M101, but can't get it to run at all.

Much head scratching going on here.

Tom
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 14:47 #10552

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
I've just noticed that I had to shut down EMC after fixing the M100 file or I kept getting the same error. Might not reload it or something every time.

John
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 14:50 #10553

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 88
  • Karma: 134
I just removed the eval and now mine works fine...

John
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 14:51 #10554

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
BigJohnT wrote:
I've just noticed that I had to shut down EMC after fixing the M100 file or I kept getting the same error. Might not reload it or something every time.

John

I wasn't sure, so have been restarting it each time.

I've got to go try the eval statement...

Tom
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 15:09 #10556

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
Just tried adding the "eval" statement, but that didn't seem to help.

Just reconfirmed, doing it from the hal-show page still works, and actually makes the led on the bob go on and off.
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 16:03 #10558

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4146
  • Thank you received: 141
  • Karma: 130
TarHeelTom wrote:
#!/bin/sh

Maybe try #! /bin/bash ?
halcmd setp parport.1.pin-16-out False

Maybe try 0 and 1 rather than true and false?
The administrator has disabled public write access.

Re:Controlling lube pump & a second parallel post 15 Jui 2011 20:06 #10564

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
andypugh wrote:
TarHeelTom wrote:
#!/bin/sh

Maybe try #! /bin/bash ?
halcmd setp parport.1.pin-16-out False

Maybe try 0 and 1 rather than true and false?

Switching 'bash' for 'sh' doesn't seem to help.

Looks, at least in the hal window, that 0 & 1 can be substituted for false & true without any ill effects.

Wrote a short gcode program involving a z movement, an x movement, turn on vacuum, return x to 0, then return z to 0, turn off vacuum.

The program runs, but hangs up on the M code every time, unless I comment out the Mcodes. So the M code files appear to be the problem.

Any other ideas?

Tom
The administrator has disabled public write access.
Time to create page: 1.339 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.