提交 xyzbc-trt 界面与验证更新
This commit is contained in:
22
web-rtcp-5axis-xyzbc-trt-sim-plan/app/dist/linuxcnc/nc_files/M101
vendored
Executable file
22
web-rtcp-5axis-xyzbc-trt-sim-plan/app/dist/linuxcnc/nc_files/M101
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
|
||||
MCMD=$(readlink -nf "$0")
|
||||
MNAME=$(basename "$MCMD")
|
||||
|
||||
echo
|
||||
echo "Example for User M-code invocation:"
|
||||
echo "M-code File: $MCMD"
|
||||
echo "$MNAME P$P Q$Q"
|
||||
|
||||
|
||||
# if a M1nn command exits with nonzero status,
|
||||
# the G-code program exits. So always exit 0.
|
||||
exit 0
|
||||
Reference in New Issue
Block a user