Skip to content

FEATURE: implementing jogCancel command for live jogging  #73

@ibrahimuslu

Description

@ibrahimuslu

Hello,

for the live jogging grblv1.1 implemented a jogcancel command with extended ascii commands
I have implemented it for arduino grblv1.1 but i dont know which commands for the other firmwares.

      appSocket.on('jogCancel', function () {
        writeLog(chalk.red('Jog Cancel'), 1);
        if (isConnected) {
            writeLog('Jog canceled and queue cleared', 1);
            switch (firmware) {
            case 'grbl':
                machineSend(String.fromCharCode(0x85))
                writeLog('Sent: Code(0x85)', 2);
                break;
            default:
                writeLog(chalk.red('ERROR: ') + chalk.blue('Unknown firmware!'), 1);
                break;
            }
        } else {
            io.sockets.emit("connectStatus", 'closed');
            io.sockets.emit('connectStatus', 'Connect');
            writeLog(chalk.red('ERROR: ') + chalk.blue('Machine connection not open!'), 1);
        }
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions