You could add a halui pin, halui.program.reload seems to be the only pin
missing. Then it would be available no matter what gui your using.
Seems to be similar to halui.program.run in halui.cc and I assume
something is needed in task plan where ever that is.
1176 static int sendProgramRun(int line)
1177 {
1178 EMC_TASK_PLAN_RUN emc_task_plan_run_msg;
1179
1180 updateStatus();
1181
1182 if (0 == emcStatus->task.file[0]) {
1183 return -1; // no program open
1184 }
1185 // save the start line, to compare against active line later
1186 programStartLine = line;
1187
1188 emc_task_plan_run_msg.serial_number = ++emcCommandSerialNumber;
1189 emc_task_plan_run_msg.line = line;
1190 emcCommandBuffer->write(emc_task_plan_run_msg);
1191 return emcCommandWaitReceived(emcCommandSerialNumber);
1192 }
John
On 6/19/2012 7:31 PM, andy pugh wrote:
> On 20 June 2012 01:18, Sebastian Kuzminsky <[email protected]> wrote:
>
>> I think what Andy is trying for is a HAL pin that triggers a reload, so
>> he can tie it to a physical button on a control panel.
> Exactly. I don't know why he wants that, but he does.
>
>> I suppose you could use a physical button to trigger a halui MDI that
>> runs a user-supplied M-command that runs axis-reload... Although your
>> solution is way less Rube Goldbergesque.
> That was my first solution. But it struck me as inelegant.
>
> I just thought of an impossible HAL module:
> loadrt hal_bash config="#!/bin/bash & axis-remote --reload"
> I say impossible, as I think that it would have trouble escaping from
> kernel space.
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers