-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
147 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Laser Commands | ||
|
||
|
||
## 0x12 0x01 Get Laser Module Info | ||
|
||
| Command Set | Command ID | | ||
|-------------|------------| | ||
| 0x12 | 0x01 | | ||
|
||
Request Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| key | UInt8 | module key | | ||
|
||
ACK Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| Result | UInt8 | result = 0 received | | ||
| Laser Tool Head Info | see `class LaserToolHeadInfo` | Current state of specified laser module | | ||
|
||
|
||
Brief info of `class LaserToolHeadInfo` | ||
``` | ||
LaserToolHeadInfo: | ||
- key: UInt8 | ||
- headStatus: UInt8, TODO | ||
- laserFocalLength: Float, focal length of the laser | ||
- platformHeight: Float, z position when the laser head touches the platform | ||
- axisCenterHeight: Float, z position of rotary module | ||
- laserTubeState: Float * 2, current power and target power | ||
``` | ||
|
||
Note: You probably don't need to know laser info. | ||
|
||
|
||
## 0x12 0x02 Set Laser Power | ||
|
||
| Command Set | Command ID | | ||
|-------------|------------| | ||
| 0x12 | 0x02 | | ||
|
||
Request Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| key | UInt8 | module key | | ||
| power | Float | target power value (0-100) | | ||
|
||
ACK Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| Result | UInt8 | result = 0 received | | ||
|
||
|
||
## 0x12 0x04 Set Laser Focal Length | ||
|
||
| Command Set | Command ID | | ||
|-------------|------------| | ||
| 0x12 | 0x04 | | ||
|
||
Request Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| key | UInt8 | module key | | ||
| focal length| Float | Set focal length | | ||
|
||
ACK Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| Result | UInt8 | result = 0 received | | ||
|
||
|
||
## 0x12 0x08 Set Platform Height | ||
|
||
| Command Set | Command ID | | ||
|-------------|------------| | ||
| 0x12 | 0x08 | | ||
|
||
Request Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| key | UInt8 | module key | | ||
| platform height | Float | Set platform height | | ||
|
||
ACK Payload: | ||
|
||
| Payload | Data Type | Description | | ||
|---------|-----------|-------------| | ||
| Result | UInt8 | result = 0 received | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Modules | ||
|
||
List of available modules: | ||
|
||
| Module ID | Module | | ||
|-----------|--------| | ||
| 0 | Printing Module | | ||
| 1 | CNC Module | | ||
| 2 | 1.6W Laser Module | | ||
| 7 | Air Purifier Module | | ||
| 13 | Dual Extrusion Printing Module | | ||
| 14 | 10W Laser Module | | ||
| 16 Snapmaker Artisan Enclosure | | ||
| 19 | 20W Laser Module | | ||
| 20 | 40W Laser Moudle | | ||
| 518 | Snapmaker Ray Enclosure | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters