Is it possible to to send a g-code file to emc2 for execution from a script, crontab or maby trigged from the parallel port?
Using crontab one can create a "crazy" step motor clock, as an example.
Or by pushing a button (parallel in port) trig a drink blender. Put in some liquor, move the glass and add a olive.
I made a servo clock when I was testing stuff during hostmot2 development. I bypassed the motion planner and went straight to HAL. The script looked something like this:
while /bin/true ; do
REV_FRACTION=$(echo 5k 1 $S 60 / - p | dc)
echo second is $S, going to $REV_FRACTION
halcmd sets follow-the-leader $REV_FRACTION
follow-the-leader is the name of a net (aka signal) connected to the servo's pid command.