Files
machines/systems/flexibot/docs/marlin/_gcode/M118.md
T
2025-03-11 23:32:39 +01:00

1.4 KiB

tag, title, brief, author, contrib, group, codes, notes, parameters, examples
tag title brief author contrib group codes notes parameters examples
m0118 Serial print Send text to serial thinkyhead shitcreek, Teddyz hosts
M118
The `E`, `A`, and `P` parameters must precede the message.
Can also send message to serial port.
tag optional description
string true Message string. If omitted, a blank line will be sent.
tag optional description
A1 true Prepend `// ` to denote a comment or action command. Hosts like OctoPrint can interpret such commands to perform special actions. See your host's documentation.
tag optional description
E1 true Prepend `echo:` to the message. Some hosts will display echo messages differently when preceded by `echo:`.
tag optional description values
Pn true Send message to host serial port (1-9).
tag description
0 Send message to all ports.
tag description
1 Send message to main host serial port.
tag description
2 Send message to secondary host serial port. Requires `SERIAL_PORT_2`.
pre code
Echo "Yello World!" in the console M118 E1 Yello World!
pre code
Tell [OctoPrint](//docs.octoprint.org/en/master/features/action_commands.html) to cancel the print job M118 A1 action:cancel

Send a message to the connected host for display in the host console or to perform a host action.