Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.52 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.52 KB

Xcontroller

xcontroller logo

3D controller written in Rust. Serialcom to send commands to the main board. Websocket server for communication with the controller.

Usage

  1. Compile the Rust program using Cargo:

cargo build --release

  1. Run the application - Development

cargo run -- <test_mode_boolean> RUST_LOG=debug cargo run -- <test_mode_boolean> Windows: $env:RUST_LOG="debug"; cargo run

Execute binary ./xcontroller -- <test_mode_boolean>

  1. Run the application with defined ./xcontroller -- <websocket_port_value> <serial_port_string> <baudrate_value> <test_mode_boolean>

Note: Running the program without params it will fallback to default values.

Default configurations: Config { test_mode: false, serial_port: /dev/ttyUSB0, baud_rate: 115200, ws_port: 9002}

Commands

  • Operation: Control the activity of the machine. Includes start/stop operation, pause/resume operation.

  • Movement: Control the movement of the machine or tool, such as it's speed, location, or direction.

  • Tools: Control the machine's tools, like tool selection, tool changer operation, speed/spindle control.

  • Config: Configure the machine, such as setting feed rate, units of measurement, or endstop behaviour.

  • Information: Output information about the machine or its status.

  • Special: All commands that don't fit into the other categories and perform specific unique functions.

External docs