-
-
Notifications
You must be signed in to change notification settings - Fork 15
Console Panel
The Console Panel displays communication between ncSender and your CNC controller in real-time. It shows all commands sent, responses received, and provides a manual command input for direct controller interaction.
Screenshot: Console panel showing command history and input
The Console Panel is located in the right-side panel and includes:
- Command history display: Scrolling log of all communications
- Command input field: Send manual commands to controller
- Clear button: Clear the console history
- Auto-scroll: Automatically scrolls to show newest messages
The console displays different types of messages with visual distinction:
Screenshot: Different message types in console
Sent Commands (typically blue or accent color):
- Commands sent from ncSender to controller
- Includes jog commands, G-code lines, settings changes
- Prefixed with
>or→
Controller Responses (typically standard text color):
-
ok: Command executed successfully -
error:X: Command failed (X is error code) - Status messages from controller
- Alarm notifications
System Messages (typically muted/gray):
- ncSender internal messages
- Connection status changes
- File loading notifications
- Progress updates
Error Messages (typically red):
- Connection errors
- Parsing errors
- Failed operations
- Alarm codes with descriptions
Real-time status reports appear periodically:
<Idle|MPos:0.000,0.000,0.000|WPos:0.000,0.000,0.000|FS:0,0>
These show:
- Machine state (Idle, Run, Hold, Alarm, etc.)
- Machine position (MPos)
- Work position (WPos)
- Feed rate and spindle speed (FS)
Note: Status reports update automatically. You don't need to request them manually.
Screenshot: Command input field with example command
Located at the bottom of the console:
- Click the input field
- Type your command
- Press Enter to send
- Command appears in console history
Status and Information:
-
?: Request status report -
$$: View all settings -
$#: View coordinate offsets -
$G: View parser state -
$I: View build info
Control Commands:
-
$H: Run homing cycle -
$X: Unlock (clear alarm) -
Ctrl+X or
\x18: Soft reset -
~: Resume from feed hold -
!: Feed hold (pause)
Coordinate Systems:
-
G54throughG59: Switch work coordinate system -
G10 L20 P1 X0 Y0 Z0: Set current position as work zero in G54 -
G92 X0 Y0 Z0: Set current position as zero (temporary)
Movement:
-
G0 X10 Y10: Rapid move to position -
G1 X10 Y10 F1000: Linear move at feed rate -
G90: Absolute positioning mode -
G91: Incremental positioning mode
Warning: Manual commands directly control the machine. Ensure you understand the command before sending.
Press Up Arrow to recall previous commands:
- Navigate through command history
- Edit and resend previous commands
- Useful for repetitive operations
Screenshot: Auto-scroll behavior when enabled
When Enabled (default):
- Console automatically scrolls to bottom
- Always shows newest messages
- Stays current during active jobs
When Disabled:
- Console stays at your scroll position
- Useful for reviewing older messages
- New messages still appear (scroll down to see them)
How to Toggle:
- Scroll up manually to disable auto-scroll
- Scroll to bottom to re-enable
- Or use setting in Settings > Application
Screenshot: Clear console button
Clear Button:
- Located at top of console panel
- Clears all messages from display
- Does not affect controller state
- Command history still available (up arrow)
When to Clear:
- Console becomes cluttered
- Starting new operation
- Troubleshooting specific issue
- Looking for specific recent messages
Watch commands execute line-by-line:
- Load G-code file
- Watch console during execution
- Identify problematic lines
- Note error codes and messages
Screenshot: Console showing G-code execution with error
Monitor connection status:
- Connection established messages
- Communication errors
- Timeout warnings
- Reconnection attempts
Instead of using buttons, send commands directly:
G10 L20 P1 X0 Y0 Z0
- Sets G54 work offset to current position
- Useful for scripting or macros
- More control than button interface
Check detailed machine state:
- Send
$Gto see modal states - View active G-codes (G54, G90, G21, etc.)
- Understand current parser state
- Useful before starting job
Screenshot: Machine state response showing modal groups
Quick access to critical commands:
- Type
$Xand Enter to unlock alarm - Ctrl+X for immediate soft reset
-
~to resume from hold - Faster than finding buttons
When errors occur, console displays error codes:
Screenshot: Error message with code and description
Common Error Codes:
- Error:1 - G-code command letter not found
- Error:2 - Missing G-code number
- Error:3 - Invalid $ setting number
- Error:9 - G-code locked (alarm state)
- Error:20 - Unsupported command
- Error:24 - Jog target exceeds machine travel
Full error code reference available in GrblHAL documentation.
Alarm codes indicate machine safety states:
Screenshot: Alarm message with explanation
Common Alarms:
- Alarm:1 - Hard limit triggered
- Alarm:2 - Soft limit triggered
- Alarm:3 - Abort during cycle
- Alarm:4 - Probe fail
- Alarm:5 - Probe fail (probe not triggered)
- Alarm:9 - Homing fail
Clearing Alarms:
- Identify cause of alarm
- Fix the problem
- Send
$Xto unlock - Or use Unlock button in toolbar
Currently, ncSender displays all messages. Future versions may include:
- Filter by message type
- Hide status reports
- Show only errors
- Search/find in console
Large Command Logs:
- Console history has size limit
- Oldest messages removed automatically
- Doesn't affect controller communication
- Clear console if performance degrades
High-Speed Operations:
- Messages may appear rapidly during jobs
- Auto-scroll keeps up with new messages
- Some messages may batch together
- Does not impact job execution
Screenshot: Selecting and copying console text
Select text in console:
- Click and drag to select
- Ctrl+C or Cmd+C to copy
- Paste into text editor or support request
Enable timestamps in Settings:
- Shows exact time of each message
- Useful for troubleshooting timing issues
- Helps correlate events
Create macros for frequently used commands:
- See Macros page
- Save common command sequences
- One-click execution
Watch console during probing operations:
- See probe commands sent
- Monitor probe trigger
- Verify correct behavior
- Catch errors early
- Enter: Send command
- Up Arrow: Previous command
- Down Arrow: Next command (if navigating history)
- Ctrl+C / Cmd+C: Copy selected text
- Ctrl+L / Cmd+L: Focus command input (if supported)
The console works with:
- Control Panel: Shows commands from button clicks
- Jogging Controls: Displays jog commands
- Probing: Shows probing sequence
- 3D Visualizer: Commands correlate to visualizer movements
Check:
- Controller is connected
- No alarm state (unlock if needed)
- Valid command syntax
- Console input field is focused
Try:
- Check connection status
- Restart application
- Clear console and retry
- Verify controller is responding (send
?)
Solution:
- Scroll to bottom
- Enable auto-scroll
- Clear old messages
- Increase console buffer size in settings
Solutions:
- Clear console regularly
- Disable auto-scroll when reviewing
- Copy important messages before clearing
- Use filtering when available
- Control Panel - Machine control buttons
- Troubleshooting - Error code explanations
- Firmware Settings - Sending firmware commands
- Macros - Automating command sequences