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 Reload a file from a pendant button?

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Reload a file from a pendant button?

Reload a file from a pendant button? 16 Июн 2012 09:47 #21008

  • billooms
  • billooms's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 53
  • Karma: 1
Is there any way to reload a file from a button on a pendant? I looked through the HAL manual and all the halui pins and didn't find anything. I see pause, resume, run, step, and stop, but not a reload.

I realize that it can be done with axis-remote or ssh, but I'm looking for an easy way to reload an updated file without having to pull out the keyboard or mouse.
The administrator has disabled public write access.

Re:Reload a file from a pendant button? 16 Июн 2012 14:18 #21015

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 87
  • Karma: 134
I gotta ask how your updating the file without the keyboard or mouse?

John
The administrator has disabled public write access.

Re:Reload a file from a pendant button? 16 Июн 2012 15:04 #21016

  • billooms
  • billooms's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 53
  • Karma: 1
I guess I didn't say that clearly. I keep the keyboard/mouse connected but out of the way except when needed. It keeps the sawdust out of the keyboard. I keep my pendant close by the working area (application is a computerized ornamental lathe). I update the file from a separate design computer and simply do a reload of the file to make the next series of cuts. Right not, I pull out the mouse or keyboard to update the file each time. It would be easier to just press a button on the pendant instead.
Last Edit: 16 Июн 2012 15:05 by billooms.
The administrator has disabled public write access.

Re:Reload a file from a pendant button? 16 Июн 2012 15:33 #21019

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
billooms wrote:
It would be easier to just press a button on the pendant instead.

I really hope that there is a neater way than this but:

The button can be linked to an MDI_COMMAND (in the INI). That MDI_COMMAND can call a custom M-code (M10-M199) and then the custom M-code can be a bash script containing
#! /bin/sh
axis-remote --reload
The administrator has disabled public write access.

Re:Reload a file from a pendant button? 16 Июн 2012 15:42 #21021

  • billooms
  • billooms's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 53
  • Karma: 1
Yes -- I hadn't thought about a custom M-code (never used them before). If I don't get any better suggestions, I'll give that a try on Monday.
The administrator has disabled public write access.

Re:Reload a file from a pendant button? 16 Июн 2012 16:07 #21024

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4964
  • Thank you received: 87
  • Karma: 134
That makes more sense now, Andy anyway to add something to .axisrc to make that happen?

or change halui.cc and add that function?

This bit of code from halui.cc might be a clue...
static int sendProgramResume()
1225 {
1226     EMC_TASK_PLAN_RESUME emc_task_plan_resume_msg;
1227 
1228     emc_task_plan_resume_msg.serial_number = ++emcCommandSerialNumber;
1229     emcCommandBuffer->write(emc_task_plan_resume_msg);
1230     return emcCommandWaitReceived(emcCommandSerialNumber);
1231 }

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