grbl设置教程_v1.1版GRBL配置(Grbl v1.1 Configuration)

这篇教程介绍了如何连接到Grbl并查看或更改其设置。通过输入`$$`可以查看当前系统设置,包括步进脉冲、空闲延迟、步进端口反转等。使用`$x=val`命令可以保存或修改设置,例如改变步进脉冲长度。此外,文章还详细解释了各个设置参数的含义和作用,如方向端口反转、限位和探头pin的反转、状态报告等。
摘要由CSDN通过智能技术生成

Quick-Links:

More up-to-date documentation is in the/doc/markdown/directory

of the source code. This page is for quick reference. If you spot a

problem, feel free to update it or notify us.

Getting Started

First, connect to Grbl using the serial terminal of your

choice.

Set

the baud rate to115200as

8-N-1 (8-bits, no parity, and 1-stop bit.)

Once

connected you should get the Grbl-prompt, which looks like

this:

Grbl 1.1e ['$' for help]

Type

$ and press enter to have Grbl print a help message. You should not

see any local echo of the $ and enter. Grbl should respond

with:

[HLP:$$ $# $G $I $N $x=val $Nx=line $J=line $SLP $C $X $H ~ ! ? ctrl-x]

The

‘$’-commands are Grbl system commands used to tweak the settings,

view or change Grbl's states and running modes, and start a homing

cycle. The last fournon-'$'

commands are realtime control commands that can be sent at anytime,

no matter what Grbl is doing. These either immediately change

Grbl's running behavior or immediately print a report of the

important realtime data like current position (aka DRO).

##Grbl Settings

$$ - View Grbl

settings

To

view the settings, type$$and

press enter after connecting to Grbl. Grbl should respond with a

list of the current system settings, as shown in the example below.

All of these settings are persistent and kept in EEPROM, so if you

power down, these will be loaded back up the next time you power up

your Arduino.

Thexof$x=valindicates

a particular setting, whilevalis

the setting value. In prior versions of Grbl, each setting had a

description next to it in()parentheses,

but Grbl v1.1+ no longer includes them unfortunately. This was done

to free up precious flash memory to add the new features available

in v1.1. However, most good GUIs will help out by attaching

descriptions for you, so you know what you are looking

at.

$0=10

$1=25

$2=0

$3=0

$4=0

$5=0

$6=0

$10=1

$11=0.010

$12=0.002

$13=0

$20=0

$21=0

$22=1

$23=0

$24=25.000

$25=500.000

$26=250

$27=1.000

$30=1000.

$31=0.

$32=0

$100=250.000

$101=250.000

$102=250.000

$110=500.000

$111=500.000

$112=500.000

$120=10.000

$121=10.000

$122=10.000

$130=200.000

$131=200.000

$132=200.000

$x=val - Save Grbl

setting

The$x=valcommand

saves or alters a Grbl setting, which can be done manually by

sending this command when connected to Grbl through a serial

terminal program, but most Grbl GUIs will do this for you as a

user-friendly feature.

To

manually change e.g. the microseconds step pulse option to 10us you

would type this, followed by an enter:

$0=10

If

everything went well, Grbl will respond with an 'ok' and this

setting is stored in EEPROM and will be retained forever or until

you change them. You can check if Grbl has received and stored your

setting correctly by typing$$to

view the system settings again.

Grbl's$x=valsettings

and what they mean

NOTE: From

Grbl v0.9 to Grbl v1.1, only$10status

reports changed and new$30/$31spindle

rpm max/min and$32laser

mode settings were added. Everything else is the

same.

$0 – Step pulse,

microseconds

Stepper drivers are rated for a certain minimum step pulse length.

Check the data sheet or just try some numbers. You want the

shortest pulses the stepper drivers can reliably recognize. If the

pulses are too long, you might run into trouble when running the

system at very high feed and pulse rates, because the step pulses

can begin to overlap each other. We recommend something around 10

microseconds, which is the default value.

$1 - Step

idle delay, milliseconds

Every time your steppers complete a motion and come to a stop, Grbl

will delay disabling the steppers by this value.OR, you can

always keep your axes enabled (powered so as to hold position) by

setting this value to the maximum 255 milliseconds. Again, just to

repeat, you can keep all axes always enabled by setting$1=255.

The

stepper idle lock time is the time length Grbl will keep the

steppers locked before disabling. Depending on the system, you can

set this to zero and disable it. On others, you may need 25-50

milliseconds to make sure your axes come to a complete stop before

disabling. This is to help account for machine motors that do not

like to be left on for long periods of time without doing

something. Also, keep in mind that some stepper drivers don't

remember which micro step they stopped on, so when you re-enable,

you may witness some 'lost' steps due to this. In this case, just

keep your steppers enabled

GRBL上位机软件v1.1是一款应用于CNC控制系统的软件。GRBL是一种开源的、灵活的、轻量级的固件,用于控制步进电机以及运动平台,实现数字化控制。GRBL上位机软件v1.1则是一种与GRBL固件配套的上位机软件,可以对GRBL进行配置和监控。 GRBL上位机软件v1.1具有多种功能。首先,它可以通过串口与GRBL固件进行通信,发送G代码指令,控制CNC系统执行各种操作,如雕刻、切割、打孔等。同时,它还可以读取GRBL固件返回的状态信息,实时监控运动平台的位置、速度等参数。 此外,GRBL上位机软件v1.1还提供了配置功能,可以根据具体需求对GRBL固件进行参数设置。用户可以根据工作需求调整步进电机的步进角度、加速度、速度限制等参数,以实现更精细的控制。同时,用户还可以设置限位开关和软件限位,确保运动平台在安全范围内运行。 GRBL上位机软件v1.1的操作界面简洁直观,易于上手。它支持实时图形显示,能够将G代码解析成运动轨迹,并在界面上绘制出来,方便用户预览加工效果。此外,它还提供了命令行界面,方便用户直接输入G代码指令进行控制。 总之,GRBL上位机软件v1.1是一款功能丰富、易于配置和操作的软件,适用于各种CNC控制系统。它能够实现对GRBL固件的控制和监控,提供实时图形显示和参数配置等功能,使用户能够更加方便地进行数字化控制和加工操作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值