All pastes #184940 Raw Edit

Miscellany

public text v1 · immutable
#184940 ·published 2006-09-28 13:33 UTC
rendered paste body
**********From IO.hal
 
newsig pmpon bit

linksp pmpon => motenc.0.out-00

***********From M110



#!/bin/sh

# M101 in your G code program will run the Linux commands in this
# shell script "batch" file, passing the P and Q variables as command
# line arguments.

# give the command line arguments descriptive names
P=$1
Q=$2


halcmd sets pmpon true: 

exit 0


**********FROM M120

#!/bin/sh

# M101 in your G code program will run the Linux commands in this
# shell script "batch" file, passing the P and Q variables as command
# line arguments.

# give the command line arguments descriptive names
P=$1
Q=$2


halcmd sets pmpon false;

exit 0



**************the above works in the release version as follows // in auto mode the program file has m110 on line 4
when the program executes line 4 the pump is turned on and remains on through the program till line 22 where m120 turns the pump off.

**************In the head version, at line 4, the pump is turned on for a moment then, is turned off when line 5 of the program is reached.  at line 22 nothing occurs because the signal is already off

****************In the MDI mode of the head version the m110 is executed and the pump /signal is on and remains on till m120 is executed