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)
| 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 |