thinkyhead

M110 - Set / Get Line Number

hosts Set or get the current (last-used) host command line number.

Description

Hosts shuld use M110 to set the current line number as-needed during a host-controlled print job. The last N value found in the line will be applied. Each line number sent by the host must be one higher than the previous line number, or the firmware will ignore the line and send an error requesting a resend of the missing line. This is one technique Marlin uses to keep in sync with hosts.

Since Marlin 2.1.3 this command without parameters reports the last line number processed out of the host command queue.

Notes

All these are valid host command lines: N100 M110, M110 N100, N101 M110 N100.

Usage

M110 N<line>

Parameters

N<line>

Line number

    Examples

    Set the last line to 56

    M110 N56
    2.1.3

    Report the last-set or last-processed line number

    > M110
    Line: 1297