linear_move_blocked

simple linear move blocks and exposes the public wait token

Status: Match

Input G-code

G1 X10

Options

{
  "filename": null,
  "active_skip_levels": [],
  "tool_change_mode": "deferred_m6",
  "enable_iso_m98_calls": false
}

Driver

[
  {
    "action": "finish"
  }
]

Runtime Inputs

{
  "system_variables": {},
  "system_variable_reads": [],
  "linear_move_results": [
    {
      "status": "pending",
      "token": {
        "kind": "motion",
        "id": "move-001"
      }
    }
  ]
}

Expected Trace

{
  "name": "linear_move_blocked",
  "description": "simple linear move blocks and exposes the public wait token",
  "initial_state": {
    "modal": {
      "motion_code": "",
      "working_plane": "xy",
      "rapid_mode": "linear",
      "tool_radius_comp": "off",
      "active_tool_selection": null,
      "pending_tool_selection": null,
      "selected_tool_selection": null
    }
  },
  "options": {
    "filename": null,
    "active_skip_levels": [],
    "tool_change_mode": "deferred_m6",
    "enable_iso_m98_calls": false
  },
  "driver": [
    {
      "action": "finish"
    }
  ],
  "runtime": {
    "system_variables": {},
    "system_variable_reads": [],
    "linear_move_results": [
      {
        "status": "pending",
        "token": {
          "kind": "motion",
          "id": "move-001"
        }
      }
    ]
  },
  "expected_events": [
    {
      "type": "linear_move",
      "source": {
        "filename": null,
        "line": 1,
        "line_number": null
      },
      "target": {
        "x": 10.0,
        "y": null,
        "z": null,
        "a": null,
        "b": null,
        "c": null
      },
      "feed": null,
      "effective": {
        "motion_code": "G1",
        "working_plane": "xy",
        "rapid_mode": "linear",
        "tool_radius_comp": "off",
        "active_tool_selection": null,
        "pending_tool_selection": null,
        "selected_tool_selection": null
      }
    },
    {
      "type": "blocked",
      "line": 1,
      "token": {
        "kind": "motion",
        "id": "move-001"
      },
      "reason": "instruction execution in progress"
    }
  ]
}

Actual Trace

{
  "name": "linear_move_blocked",
  "description": "simple linear move blocks and exposes the public wait token",
  "initial_state": {
    "modal": {
      "motion_code": "",
      "working_plane": "xy",
      "rapid_mode": "linear",
      "tool_radius_comp": "off",
      "active_tool_selection": null,
      "pending_tool_selection": null,
      "selected_tool_selection": null
    }
  },
  "options": {
    "filename": null,
    "active_skip_levels": [],
    "tool_change_mode": "deferred_m6",
    "enable_iso_m98_calls": false
  },
  "driver": [
    {
      "action": "finish"
    }
  ],
  "runtime": {
    "system_variables": {},
    "system_variable_reads": [],
    "linear_move_results": [
      {
        "status": "pending",
        "token": {
          "kind": "motion",
          "id": "move-001"
        }
      }
    ]
  },
  "expected_events": [
    {
      "type": "linear_move",
      "source": {
        "filename": null,
        "line": 1,
        "line_number": null
      },
      "target": {
        "x": 10.0,
        "y": null,
        "z": null,
        "a": null,
        "b": null,
        "c": null
      },
      "feed": null,
      "effective": {
        "motion_code": "G1",
        "working_plane": "xy",
        "rapid_mode": "linear",
        "tool_radius_comp": "off",
        "active_tool_selection": null,
        "pending_tool_selection": null,
        "selected_tool_selection": null
      }
    },
    {
      "type": "blocked",
      "line": 1,
      "token": {
        "kind": "motion",
        "id": "move-001"
      },
      "reason": "instruction execution in progress"
    }
  ]
}