FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Netduino-gcode/gcodeparser/Parser/CommandM.cs at master · dsuarezv/Netduino-gcode · GitHub
dsuarezv
Netduino-gcode
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Netduino-gcode
/
gcodeparser
/
Parser
/
CommandM.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (27 loc) · 1.14 KB
Breadcrumbs
Netduino-gcode
/
gcodeparser
/
Parser
/
CommandM.cs
Copy path
File metadata and controls
34 lines (27 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using
System
;
namespace
gcodeparser
{
internal
class
CommandM
:
BaseCommand
{
public
override
void
Parse
(
)
{
int
mType
=
GCodeParser
.
ParseInt
(
)
;
switch
(
mType
)
{
case
-
1
:
Logger
.
Log
(
"M: no command"
)
;
return
;
case
0
:
Logger
.
Log
(
"M00: PAUSE"
)
;
return
;
case
1
:
Logger
.
Log
(
"M01: PAUSE if the stop switch is ON"
)
;
return
;
case
2
:
Logger
.
Log
(
"M02: END PROGRAM"
)
;
return
;
case
3
:
Logger
.
Log
(
"M03: Start spindle (clockwise)"
)
;
return
;
case
4
:
Logger
.
Log
(
"M04: Start spindle (counterclockwise)"
)
;
return
;
case
5
:
Logger
.
Log
(
"M05: Stop spindle"
)
;
return
;
case
6
:
Logger
.
Log
(
"M06: Stop spindle and CHANGE TOOL (current tool index)"
)
;
return
;
case
30
:
Logger
.
Log
(
"M30: PROGRAM FINISH"
)
;
return
;
case
60
:
Logger
.
Log
(
"M60: PAUSE to exchange pallet shuttles"
)
;
return
;
default
:
Logger
.
Log
(
"M: Unsupported: {0}"
,
mType
)
;
break
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL