Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # UDP Message
  2. # (i:1, s:SALT, i:timestemp, i:head_error_code, obj:headstatus)
  3. # * First 1 means it is a head status message
  4. # * SALT: not for use right now
  5. # * timestemp: not for use right now
  6. # * head_error_code:
  7. # == -2: Head Offline
  8. # == -1: Not ready
  9. # == 0: Ready
  10. # > 0: Follow toolhead error table
  11.  
  12.  
  13. CMD_THPF = 0x51
  14. # Get toolhead profile
  15. # ()
  16. # => (0x51, {"module": "EXTRUDER", "vendor": "FLUX .inc", "id": "...", }, )
  17.  
  18. # CMD_THST = 0x52
  19. # # Get toolhead status
  20. # # ()
  21. # # => (0x52, {"tt": [210, ], "rt": [150, ], "tf": [0.9]})
  22.  
  23. CMD_M104 = 0x60
  24. # Set toolhead extruder temperature
  25. # (i:index, i:temperature)
  26. #
  27. # index: toolhead index, 0 or 1
  28. # temperature should positive
  29. # operation error raised if index out of range or temperature over limit
  30.  
  31. #CMD_M106 = 0x61
  32. # Set fandspeed
  33. # (i:index, f:speed)
  34. #
  35. # index: toolhead index, 0 or 1
  36. # speed is a value from 0.0 to 1.0
  37.  
  38. CMD_REQH = 0xf1
  39. # Set required toolhead type
  40. # (s:toolhead symbol)
  41. #
  42. # Toolhead must be "EXTRUDER" or "LASER" or "N/A", default is "N/A"
  43. # After CMD_REQH, A CMD_BSTH command is required to enable head, otherwise
  44. # toolhead will keep status at -2 (offline)
  45.  
  46. #CMD_CLHE = 0xf2
  47. # Clear toolhead error code
  48. # ()
  49. #
  50. # When toolhead raise an error, this error will appear in UDP message frame
  51. # until this command send.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement