Skip to content
Scott Lahteine edited this page Mar 23, 2016 · 2 revisions

DO NOT EDIT THIS PAGE. The wiki is being ported to a new documentation system.
Please see Issue #3088 "New Documentation" for more information.

Table of Contents

Description

Set the current Line Number.

Examples

 N500 M110      ; Set the Line Number to 500 (short form, checksum required)
 N123 M110 N500 ; Set the Line Number to 500 (long form, checksum required)
 M110 N500      ; Set the Line Number to 500 (short form, no checksum required)

Arguments

 N<num> The new Line Number

If no arguments are given, the Line Number will be set to the Line Number in the N prefix.

Discussion

Commands sent by host software during a printing session can optionally include a line number and a checksum that Marlin will check for validity. This allows hosts to catch communication errors and retry commands that don't get through. Usually the Line Number starts at 1 and continues sequentially, but if a host is resuming a print job or combining jobs it could start or continue at any point in the sequence. This command allows the Line Number to be set to a new value in such cases.

Notes

  • Marlin 1.0.2 and earlier do not support the long form of this command.
  • The short form of this command is a Marlin-specific feature.
  • If hosts use either the N500 M110 or N123 M110 N500 form they must also include the * checksum.

Clone this wiki locally