MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / dwell

Method dwell

src/ext/makerbot_driver/Gcode/Parser.py:358–366  ·  view source on GitHub ↗

Pauses the machine for a specified amount of miliseconds Because s3g takes in microseconds, we convert miliseconds into microseconds and send it off.

(self, codes, flags, comment)

Source from the content-addressed store, hash-verified

356 self.state.update_point_with_codes(self.state.position, codes, self.state.values.get('tool_index', None))
357
358 def dwell(self, codes, flags, comment):
359 """Pauses the machine for a specified amount of miliseconds
360 Because s3g takes in microseconds, we convert miliseconds into
361 microseconds and send it off.
362 """
363 microConstant = 1000000
364 miliConstant = 1000
365 d = codes['P'] * microConstant / miliConstant
366 self.s3g.delay(d)
367
368 def set_toolhead_temperature(self, codes, flags, comment):
369 """Sets the toolhead temperature for a specific toolhead to

Callers

nothing calls this directly

Calls 1

delayMethod · 0.45

Tested by

no test coverage detected