summaryrefslogtreecommitdiff
path: root/tests/linuxcncrsh/subs/M100
blob: 4ed775b6df6a94766446faf596cbb538d5cf2045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# This script (M100) is called to log the current coordinates and the
# current tool number and Tool Length Offset information to a log file,
# for testing purposes
#
# Put this in your .ini to use:
#
#     [RS274NGC]USER_M_PATH = ./subs
#

TEST_DIR=$(dirname INI_FILE_NAME)
OUT_FILE=$TEST_DIR/gcode-output

P=$1
Q=$2

echo P is $P >> $OUT_FILE
echo Q is $Q >> $OUT_FILE