Deploying to gh-pages from @ Klipper3d/klipper@f3b995227a 🚀
This commit is contained in:
@@ -1074,6 +1074,13 @@
|
||||
adxl345/dump_adxl345
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angledump_angle" class="md-nav__link">
|
||||
angle/dump_angle
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1512,6 +1519,13 @@
|
||||
adxl345/dump_adxl345
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angledump_angle" class="md-nav__link">
|
||||
angle/dump_angle
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1656,6 +1670,10 @@ gcode:
|
||||
<p>This endpoint is used to subscribe to ADXL345 accelerometer data. Obtaining these low-level motion updates may be useful for diagnostic and debugging purposes. Using this endpoint may increase Klipper's system load.</p>
|
||||
<p>A request may look like: <code>{"id": 123, "method":"adxl345/dump_adxl345", "params": {"sensor": "adxl345", "response_template": {}}}</code> and might return: <code>{"id": 123,"result":{"header":["time","x_acceleration","y_acceleration", "z_acceleration"]}}</code> and might later produce asynchronous messages such as: <code>{"params":{"overflows":0,"data":[[3292.432935,-535.44309,-1529.8374,9561.4], [3292.433256,-382.45935,-1606.32927,9561.48375]]}}</code></p>
|
||||
<p>The "header" field in the initial query response is used to describe the fields found in later "data" responses.</p>
|
||||
<h3 id="angledump_angle">angle/dump_angle<a class="headerlink" href="#angledump_angle" title="Permanent link">¶</a></h3>
|
||||
<p>This endpoint is used to subscribe to <a href="Config_Reference.html#angle">angle sensor data</a>. Obtaining these low-level motion updates may be useful for diagnostic and debugging purposes. Using this endpoint may increase Klipper's system load.</p>
|
||||
<p>A request may look like: <code>{"id": 123, "method":"angle/dump_angle", "params": {"sensor": "my_angle_sensor", "response_template": {}}}</code> and might return: <code>{"id": 123,"result":{"header":["time","angle"]}}</code> and might later produce asynchronous messages such as: <code>{"params":{"position_offset":3.151562,"errors":0, "data":[[1290.951905,-5063],[1290.952321,-5065]]}}</code></p>
|
||||
<p>The "header" field in the initial query response is used to describe the fields found in later "data" responses.</p>
|
||||
<h3 id="pause_resumecancel">pause_resume/cancel<a class="headerlink" href="#pause_resumecancel" title="Permanent link">¶</a></h3>
|
||||
<p>This endpoint is similar to running the "PRINT_CANCEL" G-Code command. For example: <code>{"id": 123, "method": "pause_resume/cancel"}</code></p>
|
||||
<p>As with the "gcode/script" endpoint, this endpoint only completes after any pending G-Code commands complete.</p>
|
||||
|
||||
@@ -1355,7 +1355,7 @@
|
||||
<p>提交的文件是否为执行真实世界任务的真实世界用户提供了 "高度影响"的好处?Reviewers need to identify, at least in their own minds, roughly "who the target audience is", a rough scale of "the size of that audience", the "benefit" they will obtain, how the "benefit is measured", and the "results of those measurement tests". In most cases this will be obvious to both the submitter and the reviewer, and it is not explicitly stated during a review.</p>
|
||||
<p>Submissions to the master Klipper branch are expected to have a noteworthy target audience. As a general "rule of thumb", submissions should target a user base of at least a 100 real-world users.</p>
|
||||
<p>If a reviewer asks for details on the "benefit" of a submission, please don't consider it criticism. Being able to understand the real-world benefits of a change is a natural part of a review.</p>
|
||||
<p>When discussing benefits it is preferable to discuss "facts and measurements" instead of "opinions and theories". In general, reviewers are not looking for responses of the form "this submission may improve quality because of ...", nor are they looking for responses of the form "someone may find option X useful", nor are they looking for responses of the form "this submission adds a feature that firmware X implements". Instead, it is generally preferable to discuss details on how the quality improvement was measured and what were the results of those measurements - for example, "tests on Acme X1000 printers show improved corners as seen in picture ...", or for example "print time of real-world object X on a Foomatic X900 printer went from 4 hours to 3.5 hours". It is understood that testing of this type can take significant time and effort. Some of Klipper's most notable features took years of discussion, rework, testing, and documentation prior to being merged into the master branch.</p>
|
||||
<p>When discussing benefits it is preferable to discuss "facts and measurements". In general, reviewers are not looking for responses of the form "someone may find option X useful", nor are they looking for responses of the form "this submission adds a feature that firmware X implements". Instead, it is generally preferable to discuss details on how the quality improvement was measured and what were the results of those measurements - for example, "tests on Acme X1000 printers show improved corners as seen in picture ...", or for example "print time of real-world object X on a Foomatic X900 printer went from 4 hours to 3.5 hours". It is understood that testing of this type can take significant time and effort. Some of Klipper's most notable features took months of discussion, rework, testing, and documentation prior to being merged into the master branch.</p>
|
||||
<p>All new modules, config options, commands, command parameters, and documents should have "high impact". We do not want to burden users with options that they can not reasonably configure nor do we want to burden them with options that don't provide a notable benefit.</p>
|
||||
<p>A reviewer may ask for clarification on how a user is to configure an option - an ideal response will contain details on the process - for example, "users of the MegaX500 are expected to set option X to 99.3 while users of the Elite100Y are expected to calibrate option X using procedure ...".</p>
|
||||
<p>If the goal of an option is to make the code more modular then prefer using code constants instead of user facing config options.</p>
|
||||
|
||||
@@ -1246,6 +1246,9 @@
|
||||
<p>本文档涵盖了软件更新中对配置文件不向后兼容的部分。在升级 Klipper 时,最好也查看一下这份文档。</p>
|
||||
<p>文档的所有日期都是大概时间。</p>
|
||||
<h2 id="_2">变更<a class="headerlink" href="#_2" title="Permanent link">¶</a></h2>
|
||||
<p>20220407: The temperature_fan <code>pid_integral_max</code> config option has been removed (it was deprecated on 20210612).</p>
|
||||
<p>20220407: The default color order for pca9632 LEDs is now "RGBW". Add an explicit <code>color_order: RBGW</code> setting to the pca9632 config section to obtain the previous behavior.</p>
|
||||
<p>20220330: The format of the <code>printer.neopixel.color_data</code> status information for neopixel and dotstar modules has changed. The information is now stored as a list of color lists (instead of a list of dictionaries). See the <a href="Status_Reference.html#led">status reference</a> for details.</p>
|
||||
<p>20220307:<code>M73</code>如果不给定<code>P</code>,则不再将打印进度设置为0。</p>
|
||||
<p>20220304:<a href="Config_Reference.html#extruder_stepper">extruder_stepper</a>配置分段的<code>extruder</code>参数不再有默认设置。如果需要,可以明确指定<code>extruder: extruder</code>,以便在启动时关联步进电机和"extruder"运动序列。</p>
|
||||
<p>20220210:<code>SYNC_STEPPER_TO_EXTRUDER</code>、<code>SET_EXTRUDER_STEP_DISTANCE</code>、<a href="Config_Reference.html#extruder">extruder</a>的 <code>shared_heater</code> 配置选项已弃用。这些功能将在不久的将来被删除。将<code>SET_EXTRUDER_STEP_DISTANCE</code>替换为<code>SET_EXTRUDER_ROTATION_DISTANCE</code>,<code>SYNC_STEPPER_TO_EXTRUDER</code>替换为<code>SYNC_EXTRUDER_MOTION</code>,使用 <code>shared_heater</code> 与 <a href="Config_Reference.html#extruder_stepper">extruder_stepper</a>配置分段替换 extruder 配置分段,并更新所有激活宏以使用 <a href="G-Codes.html#sync_extruder_motion">SYNC_EXTRUDER_MOTION</a>。</p>
|
||||
|
||||
@@ -1155,16 +1155,16 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#led" class="md-nav__link">
|
||||
额外的舵机,LED,按键,和其他引脚。
|
||||
<a href="#leds" class="md-nav__link">
|
||||
LEDs
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="额外的舵机,LED,按键,和其他引脚。">
|
||||
<nav class="md-nav" aria-label="LEDs">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#servo" class="md-nav__link">
|
||||
[servo]
|
||||
<a href="#led" class="md-nav__link">
|
||||
[led]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -1185,14 +1185,34 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#pca9533" class="md-nav__link">
|
||||
[PCA9533]
|
||||
[pca9533]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#pca9632" class="md-nav__link">
|
||||
[PCA9632]
|
||||
[pca9632]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#additional-servos-buttons-and-other-pins" class="md-nav__link">
|
||||
Additional servos, buttons, and other pins
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Additional servos, buttons, and other pins">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#servo" class="md-nav__link">
|
||||
[servo]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -1517,6 +1537,13 @@
|
||||
[palette2]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
[angle]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -2985,16 +3012,16 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#led" class="md-nav__link">
|
||||
额外的舵机,LED,按键,和其他引脚。
|
||||
<a href="#leds" class="md-nav__link">
|
||||
LEDs
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="额外的舵机,LED,按键,和其他引脚。">
|
||||
<nav class="md-nav" aria-label="LEDs">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#servo" class="md-nav__link">
|
||||
[servo]
|
||||
<a href="#led" class="md-nav__link">
|
||||
[led]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -3015,14 +3042,34 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#pca9533" class="md-nav__link">
|
||||
[PCA9533]
|
||||
[pca9533]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#pca9632" class="md-nav__link">
|
||||
[PCA9632]
|
||||
[pca9632]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#additional-servos-buttons-and-other-pins" class="md-nav__link">
|
||||
Additional servos, buttons, and other pins
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Additional servos, buttons, and other pins">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#servo" class="md-nav__link">
|
||||
[servo]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@@ -3347,6 +3394,13 @@
|
||||
[palette2]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
[angle]
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -3999,14 +4053,17 @@ control:
|
||||
# Control algorithm (either pid or watermark). This parameter must
|
||||
# be provided.
|
||||
pid_Kp:
|
||||
# Kp is the "proportional" constant for the pid. This parameter must
|
||||
# be provided for PID heaters.
|
||||
pid_Ki:
|
||||
# Ki is the "integral" constant for the pid. This parameter must be
|
||||
# provided for PID heaters.
|
||||
pid_Kd:
|
||||
# Kd is the "derivative" constant for the pid. This parameter must
|
||||
# be provided for PID heaters.
|
||||
# The proportional (pid_Kp), integral (pid_Ki), and derivative
|
||||
# (pid_Kd) settings for the PID feedback control system. Klipper
|
||||
# evaluates the PID settings with the following general formula:
|
||||
# heater_pwm = (Kp*error + Ki*integral(error) - Kd*derivative(error)) / 255
|
||||
# Where "error" is "requested_temperature - measured_temperature"
|
||||
# and "heater_pwm" is the requested heating rate with 0.0 being full
|
||||
# off and 1.0 being full on. Consider using the PID_CALIBRATE
|
||||
# command to obtain these parameters. The pid_Kp, pid_Ki, and pid_Kd
|
||||
# parameters must be provided for PID heaters.
|
||||
#max_delta: 2.0
|
||||
# On 'watermark' controlled heaters this is the number of degrees in
|
||||
# Celsius above the target temperature before disabling the heater
|
||||
@@ -4070,86 +4127,85 @@ max_temp:
|
||||
|
||||
<div class="highlight"><pre><span></span><code>[bed_mesh]
|
||||
#speed: 50
|
||||
# The speed (in mm/s) of non-probing moves during the calibration.
|
||||
# The default is 50.
|
||||
# 校准期间非探测移动的速度(mm/s)
|
||||
# 默认是 50.
|
||||
#horizontal_move_z: 5
|
||||
# The height (in mm) that the head should be commanded to move to
|
||||
# just prior to starting a probe operation. The default is 5.
|
||||
# 在探测中喷头的高度单位是mm
|
||||
# 默认值是5
|
||||
#mesh_radius:
|
||||
# Defines the radius of the mesh to probe for round beds. Note that
|
||||
# the radius is relative to the coordinate specified by the
|
||||
# mesh_origin option. This parameter must be provided for round beds
|
||||
# and omitted for rectangular beds.
|
||||
# 定义探测圆形热床的网格半径
|
||||
# 半径是相对于mesh_origin指定的坐标
|
||||
# 此选项只适用于圆形热床
|
||||
#mesh_origin:
|
||||
# Defines the center X, Y coordinate of the mesh for round beds. This
|
||||
# coordinate is relative to the probe's location. It may be useful
|
||||
# to adjust the mesh_origin in an effort to maximize the size of the
|
||||
# mesh radius. Default is 0, 0. This parameter must be omitted for
|
||||
# rectangular beds.
|
||||
# 定义圆形热床的中心X Y坐标
|
||||
# 此坐标相对于探头的位置
|
||||
# 调整 mesh_origin可能会对最大化mesh_radius有帮助
|
||||
# 默认值是0,0
|
||||
# 此选项只适用于圆形热床
|
||||
#mesh_min:
|
||||
# Defines the minimum X, Y coordinate of the mesh for rectangular
|
||||
# beds. This coordinate is relative to the probe's location. This
|
||||
# will be the first point probed, nearest to the origin. This
|
||||
# parameter must be provided for rectangular beds.
|
||||
# 定义矩形热床的最小X Y 坐标
|
||||
# 这个坐标是相对于
|
||||
# 这是探测的第一个点在原点附近
|
||||
# 矩形热床必须要提供此参数
|
||||
#mesh_max:
|
||||
# Defines the maximum X, Y coordinate of the mesh for rectangular
|
||||
# beds. Adheres to the same principle as mesh_min, however this will
|
||||
# be the furthest point probed from the bed's origin. This parameter
|
||||
# must be provided for rectangular beds.
|
||||
# 定义矩形热床的最大X Y 坐标
|
||||
# 与mesh_min相同但是这将是离床的原点最远的探测点
|
||||
# 矩形热床必须要提供此参数
|
||||
#probe_count: 3, 3
|
||||
# For rectangular beds, this is a comma separate pair of integer
|
||||
# values X, Y defining the number of points to probe along each
|
||||
# axis. A single value is also valid, in which case that value will
|
||||
# be applied to both axes. Default is 3, 3.
|
||||
# 对于矩形热床,这个逗号分开了在X Y 轴需要探测的点数
|
||||
# 单个值也是有效的,在这个情况下值会被应用到两个轴
|
||||
# 默认值是 3, 3
|
||||
#round_probe_count: 5
|
||||
# For round beds, this integer value defines the maximum number of
|
||||
# points to probe along each axis. This value must be an odd number.
|
||||
# Default is 5.
|
||||
# 对于圆形热床,这个值去定义了每个轴最大的探测点的数量
|
||||
# 这个值必须要是奇数
|
||||
# 默认值是 5
|
||||
#fade_start: 1.0
|
||||
# The gcode z position in which to start phasing out z-adjustment
|
||||
# when fade is enabled. Default is 1.0.
|
||||
# 启用fade_start时开始分阶段调整的gcode z位置
|
||||
# 默认值是 1.0.
|
||||
#fade_end: 0.0
|
||||
# The gcode z position in which phasing out completes. When set to a
|
||||
# value below fade_start, fade is disabled. It should be noted that
|
||||
# fade may add unwanted scaling along the z-axis of a print. If a
|
||||
# user wishes to enable fade, a value of 10.0 is recommended.
|
||||
# Default is 0.0, which disables fade.
|
||||
# 在完成渐变后的gcode z 位置
|
||||
# 当值比 fade_start低的时候会禁用此功能
|
||||
# 注意这个功能可能会在打印的时候往z轴添加不需要的缩放
|
||||
# 如果希望启用过度那么, 推荐值为10.0
|
||||
# 默认值是 0.0 不启用过度
|
||||
#fade_target:
|
||||
# The z position in which fade should converge. When this value is
|
||||
# set to a non-zero value it must be within the range of z-values in
|
||||
# the mesh. Users that wish to converge to the z homing position
|
||||
# should set this to 0. Default is the average z value of the mesh.
|
||||
# 淡化应该聚集的z位置
|
||||
# 当这个值被设置为非零值时那么就必须在网格中的Z值范围内
|
||||
# 用户希望汇聚的时候z原点的位置
|
||||
# 应该被设置为0
|
||||
# 默认是网格的平均值
|
||||
#split_delta_z: .025
|
||||
# The amount of Z difference (in mm) along a move that will trigger
|
||||
# a split. Default is .025.
|
||||
# 触发分层的沿途Z差量 (mm)
|
||||
# 默认值是 .025.
|
||||
#move_check_distance: 5.0
|
||||
# The distance (in mm) along a move to check for split_delta_z.
|
||||
# This is also the minimum length that a move can be split. Default
|
||||
# is 5.0.
|
||||
# 检查split_delta_z的距离
|
||||
# 这也是一个动作可以分层的最小长度。
|
||||
# 默认值是 5.0
|
||||
#mesh_pps: 2, 2
|
||||
# A comma separated pair of integers X, Y defining the number of
|
||||
# points per segment to interpolate in the mesh along each axis. A
|
||||
# "segment" can be defined as the space between each probed point.
|
||||
# The user may enter a single value which will be applied to both
|
||||
# axes. Default is 2, 2.
|
||||
# 一对以逗号分隔的整数X、Y,定义每段的点的数量
|
||||
# 在网格中沿每个轴插值的点数
|
||||
# "segment "可以被定义为每个探测点之间的空间
|
||||
# 如果用户输入了一个值那么将会应用到两个轴上
|
||||
# 默认值上 2, 2
|
||||
#algorithm: lagrange
|
||||
# The interpolation algorithm to use. May be either "lagrange" or
|
||||
# "bicubic". This option will not affect 3x3 grids, which are forced
|
||||
# to use lagrange sampling. Default is lagrange.
|
||||
# 要使用的插值算法
|
||||
# 可以是"lagrange"或者"bicubic"
|
||||
# 这个选项不会影响 3x3 的网格因为3x3 的网格会强制使用lagrange采样
|
||||
# 默认值是lagrange
|
||||
#bicubic_tension: .2
|
||||
# When using the bicubic algorithm the tension parameter above may
|
||||
# be applied to change the amount of slope interpolated. Larger
|
||||
# numbers will increase the amount of slope, which results in more
|
||||
# curvature in the mesh. Default is .2.
|
||||
# 当使用bicubic算法时使用bicubic_tension参数来改变插值的斜率量
|
||||
# 较大的数字会增加斜率的数量会在网格中产生更多的弯曲
|
||||
# 默认值是 .2
|
||||
#relative_reference_index:
|
||||
# A point index in the mesh to reference all z values to. Enabling
|
||||
# this parameter produces a mesh relative to the probed z position
|
||||
# at the provided index.
|
||||
# 网格中的一个点索引,用来引用所有的Z值
|
||||
# 启用这个参数可以产生一个相对于所提供的索引处的
|
||||
# 探测到的Z位置的网格
|
||||
#faulty_region_1_min:
|
||||
#faulty_region_1_max:
|
||||
# Optional points that define a faulty region. See docs/Bed_Mesh.md
|
||||
# for details on faulty regions. Up to 99 faulty regions may be added.
|
||||
# By default no faulty regions are set.
|
||||
# 可选点被定义为故障区域
|
||||
# 更多对于故障区域多信息See docs/Bed_Mesh.md
|
||||
# 最多可添加 99 个故障区域。
|
||||
# 默认没有设置故障区域
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="bed_tilt">[bed_tilt]<a class="headerlink" href="#bed_tilt" title="Permanent link">¶</a></h3>
|
||||
@@ -4186,37 +4242,34 @@ max_temp:
|
||||
<p>Tool to help adjust bed leveling screws. One may define a [bed_screws] config section to enable a BED_SCREWS_ADJUST g-code command.</p>
|
||||
<p>See the <a href="Manual_Level.html#adjusting-bed-leveling-screws">leveling guide</a> and <a href="G-Codes.html#bed_screws">command reference</a> for additional information.</p>
|
||||
<div class="highlight"><pre><span></span><code>[bed_screws]
|
||||
#screw1:
|
||||
# The X, Y coordinate of the first bed leveling screw. This is a
|
||||
# position to command the nozzle to that is directly above the bed
|
||||
# screw (or as close as possible while still being above the bed).
|
||||
# This parameter must be provided.
|
||||
#screw1_name:
|
||||
# An arbitrary name for the given screw. This name is displayed when
|
||||
# the helper script runs. The default is to use a name based upon
|
||||
# the screw XY location.
|
||||
#screw1_fine_adjust:
|
||||
# An X, Y coordinate to command the nozzle to so that one can fine
|
||||
# tune the bed leveling screw. The default is to not perform fine
|
||||
# adjustments on the bed screw.
|
||||
#screw2:
|
||||
#screw2_name:
|
||||
#screw2_fine_adjust:
|
||||
#screw1:
|
||||
# 第一颗打印机调平螺丝的X,Y坐标。这是将命令喷嘴移动到螺丝正
|
||||
# 上方时的位置(或在床上方时尽可能接近的位置)。
|
||||
# 必须提供此参数。
|
||||
#screw1_name:
|
||||
# 给定螺丝的名称。当调平助手脚本运行时会使用该名称。
|
||||
# 默认值是螺丝的 XY 位置。
|
||||
#screw1_fine_adjust:
|
||||
# 用于精细调整第一颗调平螺丝时的喷嘴被命令移动到的X,Y坐标。
|
||||
# 默认值为不执行对打印床螺丝的精细调整。
|
||||
#screw2:
|
||||
#screw2_name:
|
||||
#screw2_fine_adjust:
|
||||
#...
|
||||
# Additional bed leveling screws. At least three screws must be
|
||||
# defined.
|
||||
#horizontal_move_z: 5
|
||||
# The height (in mm) that the head should be commanded to move to
|
||||
# when moving from one screw location to the next. The default is 5.
|
||||
#probe_height: 0
|
||||
# The height of the probe (in mm) after adjusting for the thermal
|
||||
# expansion of bed and nozzle. The default is zero.
|
||||
#speed: 50
|
||||
# The speed (in mm/s) of non-probing moves during the calibration.
|
||||
# The default is 50.
|
||||
#probe_speed: 5
|
||||
# The speed (in mm/s) when moving from a horizontal_move_z position
|
||||
# to a probe_height position. The default is 5.
|
||||
# 额外的调平螺丝。
|
||||
# 至少必须定义三个螺丝
|
||||
#horizontal_move_z: 5
|
||||
# 打印头在两个螺丝位置间移动时应被命令移动到的高度(以毫米为单位)
|
||||
# 默认值为 5。
|
||||
#probe_height: 0
|
||||
# 探针高度(毫米)在打印床和热端热膨胀后探针的高度。
|
||||
# 默认值为零。
|
||||
#speed: 50
|
||||
# 校准过程中非探测移动的速度(以毫米/秒为单位)。
|
||||
# 默认值为 50。
|
||||
#probe_speed: 5
|
||||
# 从 horizontal_move_z 位置移动到 probe_height 位置的速度(以毫米/秒为单位)。
|
||||
# 默认值为 5。
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="screws_tilt_adjust">[screws_tilt_adjust]<a class="headerlink" href="#screws_tilt_adjust" title="Permanent link">¶</a></h3>
|
||||
@@ -5370,7 +5423,117 @@ pin:
|
||||
# 以上参数介绍请见“fan”(风扇)章节。
|
||||
</code></pre></div>
|
||||
|
||||
<h2 id="led">额外的舵机,LED,按键,和其他引脚。<a class="headerlink" href="#led" title="Permanent link">¶</a></h2>
|
||||
<h2 id="leds">LEDs<a class="headerlink" href="#leds" title="Permanent link">¶</a></h2>
|
||||
<h3 id="led">[led]<a class="headerlink" href="#led" title="Permanent link">¶</a></h3>
|
||||
<p>Support for LEDs (and LED strips) controlled via micro-controller PWM pins (one may define any number of sections with an "led" prefix). See the <a href="G-Codes.html#led">command reference</a> for more information.</p>
|
||||
<div class="highlight"><pre><span></span><code>[led my_led]
|
||||
#red_pin:
|
||||
#green_pin:
|
||||
#blue_pin:
|
||||
#white_pin:
|
||||
# The pin controlling the given LED color. At least one of the above
|
||||
# parameters must be provided.
|
||||
#cycle_time: 0.010
|
||||
# The amount of time (in seconds) per PWM cycle. It is recommended
|
||||
# this be 10 milliseconds or greater when using software based PWM.
|
||||
# The default is 0.010 seconds.
|
||||
#hardware_pwm: False
|
||||
# Enable this to use hardware PWM instead of software PWM. When
|
||||
# using hardware PWM the actual cycle time is constrained by the
|
||||
# implementation and may be significantly different than the
|
||||
# requested cycle_time. The default is False.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
#initial_WHITE: 0.0
|
||||
# Sets the initial LED color. Each value should be between 0.0 and
|
||||
# 1.0. The default for each color is 0.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="neopixel">[neopixel]<a class="headerlink" href="#neopixel" title="Permanent link">¶</a></h3>
|
||||
<p>Neopixel (aka WS2812) LED support (one may define any number of sections with a "neopixel" prefix). See the <a href="G-Codes.html#led">command reference</a> for more information.</p>
|
||||
<p>Note that the <a href="RPi_microcontroller.html">linux mcu</a> implementation does not currently support directly connected neopixels.</p>
|
||||
<div class="highlight"><pre><span></span><code>[neopixel my_neopixel]
|
||||
pin:
|
||||
# The pin connected to the neopixel. This parameter must be
|
||||
# provided.
|
||||
#chain_count:
|
||||
# The number of Neopixel chips that are "daisy chained" to the
|
||||
# provided pin. The default is 1 (which indicates only a single
|
||||
# Neopixel is connected to the pin).
|
||||
#color_order: GRB
|
||||
# Set the pixel order required by the LED hardware (using a string
|
||||
# containing the letters R, G, B, W with W optional). The default is
|
||||
# GRB.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
#initial_WHITE: 0.0
|
||||
# See the "led" section for information on these parameters.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="dotstar">[dotstar]<a class="headerlink" href="#dotstar" title="Permanent link">¶</a></h3>
|
||||
<p>Dotstar (aka APA102) LED support (one may define any number of sections with a "dotstar" prefix). See the <a href="G-Codes.html#led">command reference</a> for more information.</p>
|
||||
<div class="highlight"><pre><span></span><code>[dotstar my_dotstar]
|
||||
data_pin:
|
||||
# The pin connected to the data line of the dotstar. This parameter
|
||||
# must be provided.
|
||||
clock_pin:
|
||||
# The pin connected to the clock line of the dotstar. This parameter
|
||||
# must be provided.
|
||||
#chain_count:
|
||||
# See the "neopixel" section for information on this parameter.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
# See the "led" section for information on these parameters.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="pca9533">[pca9533]<a class="headerlink" href="#pca9533" title="Permanent link">¶</a></h3>
|
||||
<p>PCA9533 LED支持。PCA9533 在 mightyboard上出现。</p>
|
||||
<div class="highlight"><pre><span></span><code>[pca9533 my_pca9533]
|
||||
#i2c_address: 98
|
||||
# The i2c address that the chip is using on the i2c bus. Use 98 for
|
||||
# the PCA9533/1, 99 for the PCA9533/2. The default is 98.
|
||||
#i2c_mcu:
|
||||
#i2c_bus:
|
||||
#i2c_speed:
|
||||
# See the "common I2C settings" section for a description of the
|
||||
# above parameters.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
#initial_WHITE: 0.0
|
||||
# See the "led" section for information on these parameters.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="pca9632">[pca9632]<a class="headerlink" href="#pca9632" title="Permanent link">¶</a></h3>
|
||||
<p>PCA9632 LED support. The PCA9632 is used on the FlashForge Dreamer.</p>
|
||||
<div class="highlight"><pre><span></span><code>[pca9632 my_pca9632]
|
||||
#i2c_address: 98
|
||||
# The i2c address that the chip is using on the i2c bus. This may be
|
||||
# 96, 97, 98, or 99. The default is 98.
|
||||
#i2c_mcu:
|
||||
#i2c_bus:
|
||||
#i2c_speed:
|
||||
# See the "common I2C settings" section for a description of the
|
||||
# above parameters.
|
||||
#scl_pin:
|
||||
#sda_pin:
|
||||
# Alternatively, if the pca9632 is not connected to a hardware I2C
|
||||
# bus, then one may specify the "clock" (scl_pin) and "data"
|
||||
# (sda_pin) pins. The default is to use hardware I2C.
|
||||
#color_order: RGBW
|
||||
# Set the pixel order of the LED (using a string containing the
|
||||
# letters R, G, B, W). The default is RGBW.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
#initial_WHITE: 0.0
|
||||
# See the "led" section for information on these parameters.
|
||||
</code></pre></div>
|
||||
|
||||
<h2 id="additional-servos-buttons-and-other-pins">Additional servos, buttons, and other pins<a class="headerlink" href="#additional-servos-buttons-and-other-pins" title="Permanent link">¶</a></h2>
|
||||
<h3 id="servo">[servo]<a class="headerlink" href="#servo" title="Permanent link">¶</a></h3>
|
||||
<p>Servos (one may define any number of sections with a "servo" prefix). The servos may be controlled using the SET_SERVO <a href="G-Codes.html#servo">g-code command</a>. For example: SET_SERVO SERVO=my_servo ANGLE=180</p>
|
||||
<div class="highlight"><pre><span></span><code>[servo my_servo]
|
||||
@@ -5396,81 +5559,6 @@ pin:
|
||||
# send any signal at startup.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="neopixel">[neopixel]<a class="headerlink" href="#neopixel" title="Permanent link">¶</a></h3>
|
||||
<p>Neopixel (aka WS2812) LED support (one may define any number of sections with a "neopixel" prefix). One may set the LED color via "SET_LED LED=my_neopixel RED=0.1 GREEN=0.1 BLUE=0.1" type extended <a href="G-Codes.html#neopixel">g-code commands</a>.</p>
|
||||
<div class="highlight"><pre><span></span><code>[neopixel my_neopixel]
|
||||
pin:
|
||||
# The pin connected to the neopixel. This parameter must be
|
||||
# provided.
|
||||
#chain_count:
|
||||
# The number of Neopixel chips that are "daisy chained" to the
|
||||
# provided pin. The default is 1 (which indicates only a single
|
||||
# Neopixel is connected to the pin).
|
||||
#color_order: GRB
|
||||
# Set the pixel order required by the LED hardware. Options are GRB,
|
||||
# RGB, BRG, BGR, GRBW, or RGBW. The default is GRB.
|
||||
#initial_RED: 0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
#initial_WHITE: 0.0
|
||||
# Sets the initial LED color of the Neopixel. Each value should be
|
||||
# between 0.0 and 1.0. The WHITE option is only available on RGBW
|
||||
# LEDs. The default for each color is 0.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="dotstar">[dotstar]<a class="headerlink" href="#dotstar" title="Permanent link">¶</a></h3>
|
||||
<p>Dotstar (aka APA102) LED support (one may define any number of sections with a "dotstar" prefix). One may set the LED color via "SET_LED LED=my_dotstar RED=0.1 GREEN=0.1 BLUE=0.1" type extended <a href="G-Codes.html#neopixel">g-code commands</a>.</p>
|
||||
<div class="highlight"><pre><span></span><code>[dotstar my_dotstar]
|
||||
data_pin:
|
||||
# 连接到dotstar data(数据)线的引脚。必须提供这个参数。
|
||||
clock_pin:
|
||||
# 连接到dotstar clock(时钟)线的引脚。必须提供这个参数。
|
||||
#chain_count:
|
||||
#initial_RED:0.0
|
||||
#initial_GREEN: 0.0
|
||||
#initial_BLUE: 0.0
|
||||
# 有关这些参数的信息,请参见 "Neopixel " 章节。
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="pca9533">[PCA9533]<a class="headerlink" href="#pca9533" title="Permanent link">¶</a></h3>
|
||||
<p>PCA9533 LED支持。PCA9533 在 mightyboard上出现。</p>
|
||||
<div class="highlight"><pre><span></span><code>[pca9533 my_pca9533]
|
||||
#i2c_address: 98
|
||||
# The i2c address that the chip is using on the i2c bus. Use 98 for
|
||||
# the PCA9533/1, 99 for the PCA9533/2. The default is 98.
|
||||
#i2c_mcu:
|
||||
#i2c_bus:
|
||||
#i2c_speed:
|
||||
# See the "common I2C settings" section for a description of the
|
||||
# above parameters.
|
||||
#initial_RED: 0
|
||||
#initial_GREEN: 0
|
||||
#initial_BLUE: 0
|
||||
#initial_WHITE: 0
|
||||
# The PCA9533 only supports 1 or 0. The default is 0. On the
|
||||
# mightyboard, the white led is not populated.
|
||||
# Use GCODE to modify led values after startup.
|
||||
# set_led led=my_pca9533 red=1 green=1 blue=1
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="pca9632">[PCA9632]<a class="headerlink" href="#pca9632" title="Permanent link">¶</a></h3>
|
||||
<p>PCA9632 LED support. The PCA9632 is used on the FlashForge Dreamer.</p>
|
||||
<div class="highlight"><pre><span></span><code>[pca9632 my_pca9632]
|
||||
scl_pin:
|
||||
# The SCL "clock" pin. This parameter must be provided.
|
||||
sda_pin:
|
||||
# The SDA "data" pin. This parameter must be provided.
|
||||
#initial_RED: 0
|
||||
#initial_GREEN: 0
|
||||
#initial_BLUE: 0
|
||||
#initial_WHITE: 0
|
||||
# PCA9632 supports individual LED PWM.
|
||||
# Values range from 0.0 to 1.0. The default is 0.0.
|
||||
# On the FlashForge Dreamer, the white led is not populated.
|
||||
# Use GCODE to modify led values after startup.
|
||||
# set_led led=my_pca9632 red=1.0 green=1.0 blue=1.0 white=0.0
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="gcode_button">[gcode_button]<a class="headerlink" href="#gcode_button" title="Permanent link">¶</a></h3>
|
||||
<p>在一个按钮被按下或放开(或当一个引脚状态发生变化时)时运行G代码。你可以使用 <code>QUERY_BUTTON button=my_gcode_button</code> 来查询按钮的状态。</p>
|
||||
<div class="highlight"><pre><span></span><code>[gcode_button my_gcode_button]
|
||||
@@ -6220,19 +6308,23 @@ text:
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="display_template">[display_template]<a class="headerlink" href="#display_template" title="Permanent link">¶</a></h3>
|
||||
<p>显示数据文本“宏”(可以使用 display_template 前缀定义任意数量的部分)。此功能可以帮助减少 display_data 部分中重复的定义。可以使用 display_data 部分中的内置 render() 函数来预览模板。例如,如果要定义 <code>[display_template my_template]</code> 则可以在 display_data 部分使用 <code>{ render('my_template') }</code> 。</p>
|
||||
<div class="highlight"><pre><span></span><code>[display_template 模版名称]
|
||||
#param_<名称>:
|
||||
# 可以使用"param_"前缀定义任意数量的选项。定义的名称将被
|
||||
# 关联到给定的值(被解析为Python literal)并在macro解释时可
|
||||
# 以被使用。如果参数被render()的调用传入,则这个值会被用于
|
||||
# 宏扩展。例如,配置 "param_speed = 75" 允许调用
|
||||
# "render('my_template_name', param_speed=80)"。
|
||||
# 参数名不能包含大写字符。
|
||||
#text:
|
||||
# 当 render() 函数因为这个模板被调用时会显示的文本。这个
|
||||
# 字段使用命令模板(请见docs/Command_Templates.md)。
|
||||
# 必须提供此参数。
|
||||
<p>Display data text "macros" (one may define any number of sections with a display_template prefix). See the <a href="Command_Templates.html">command templates</a> document for information on template evaluation.</p>
|
||||
<p>This feature allows one to reduce repetitive definitions in display_data sections. One may use the builtin <code>render()</code> function in display_data sections to evaluate a template. For example, if one were to define <code>[display_template my_template]</code> then one could use <code>{ render('my_template') }</code> in a display_data section.</p>
|
||||
<p>This feature can also be used for continuous LED updates using the <a href="G-Codes.html#set_led_template">SET_LED_TEMPLATE</a> command.</p>
|
||||
<div class="highlight"><pre><span></span><code>[display_template my_template_name]
|
||||
#param_<name>:
|
||||
# One may specify any number of options with a "param_" prefix. The
|
||||
# given name will be assigned the given value (parsed as a Python
|
||||
# literal) and will be available during macro expansion. If the
|
||||
# parameter is passed in the call to render() then that value will
|
||||
# be used during macro expansion. For example, a config with
|
||||
# "param_speed = 75" might have a caller with
|
||||
# "render('my_template_name', param_speed=80)". Parameter names may
|
||||
# not use upper case characters.
|
||||
text:
|
||||
# The text to return when the this template is rendered. This field
|
||||
# is evaluated using command templates (see
|
||||
# docs/Command_Templates.md). This parameter must be provided.
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="display_glyph">[display_glyph]<a class="headerlink" href="#display_glyph" title="Permanent link">¶</a></h3>
|
||||
@@ -6584,6 +6676,33 @@ serial:
|
||||
# # 当 ping 值变化高于此阈值时自动取消打印
|
||||
</code></pre></div>
|
||||
|
||||
<h3 id="angle">[angle]<a class="headerlink" href="#angle" title="Permanent link">¶</a></h3>
|
||||
<p>Magnetic hall angle sensor support for reading stepper motor angle shaft measurements using a1333, as5047d, or tle5012b SPI chips. The measurements are available via the <a href="API_Server.html">API Server</a> and <a href="Debugging.html#motion-analysis-and-data-logging">motion analysis tool</a>. See the <a href="G-Codes.html#angle">G-Code reference</a> for available commands.</p>
|
||||
<div class="highlight"><pre><span></span><code>[angle my_angle_sensor]
|
||||
sensor_type:
|
||||
# The type of the magnetic hall sensor chip. Available choices are
|
||||
# "a1333", "as5047d", and "tle5012b". This parameter must be
|
||||
# specified.
|
||||
#sample_period: 0.000400
|
||||
# The query period (in seconds) to use during measurements. The
|
||||
# default is 0.000400 (which is 2500 samples per second).
|
||||
#stepper:
|
||||
# The name of the stepper that the angle sensor is attached to (eg,
|
||||
# "stepper_x"). Setting this value enables an angle calibration
|
||||
# tool. To use this feature, the Python "numpy" package must be
|
||||
# installed. The default is to not enable angle calibration for the
|
||||
# angle sensor.
|
||||
cs_pin:
|
||||
# The SPI enable pin for the sensor. This parameter must be provided.
|
||||
#spi_speed:
|
||||
#spi_bus:
|
||||
#spi_software_sclk_pin:
|
||||
#spi_software_mosi_pin:
|
||||
#spi_software_miso_pin:
|
||||
# See the "common SPI settings" section for a description of the
|
||||
# above parameters.
|
||||
</code></pre></div>
|
||||
|
||||
<h2 id="_27">通用总线参数<a class="headerlink" href="#_27" title="Permanent link">¶</a></h2>
|
||||
<h3 id="spi">常见 SPI 设置<a class="headerlink" href="#spi" title="Permanent link">¶</a></h3>
|
||||
<p>The following parameters are generally available for devices using an SPI bus.</p>
|
||||
|
||||
110
zh/G-Codes.html
110
zh/G-Codes.html
@@ -775,6 +775,40 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
[angle]
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="[angle]">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_calibrate" class="md-nav__link">
|
||||
ANGLE_CALIBRATE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_debug_read" class="md-nav__link">
|
||||
ANGLE_DEBUG_READ
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_debug_write" class="md-nav__link">
|
||||
ANGLE_DEBUG_WRITE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1496,11 +1530,11 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#neopixel" class="md-nav__link">
|
||||
[neopixel]
|
||||
<a href="#led" class="md-nav__link">
|
||||
[led]
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="[neopixel]">
|
||||
<nav class="md-nav" aria-label="[led]">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1508,6 +1542,13 @@
|
||||
SET_LED
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#set_led_template" class="md-nav__link">
|
||||
SET_LED_TEMPLATE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -2640,6 +2681,40 @@
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
[angle]
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="[angle]">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_calibrate" class="md-nav__link">
|
||||
ANGLE_CALIBRATE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_debug_read" class="md-nav__link">
|
||||
ANGLE_DEBUG_READ
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle_debug_write" class="md-nav__link">
|
||||
ANGLE_DEBUG_WRITE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -3361,11 +3436,11 @@
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#neopixel" class="md-nav__link">
|
||||
[neopixel]
|
||||
<a href="#led" class="md-nav__link">
|
||||
[led]
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="[neopixel]">
|
||||
<nav class="md-nav" aria-label="[led]">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -3373,6 +3448,13 @@
|
||||
SET_LED
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#set_led_template" class="md-nav__link">
|
||||
SET_LED_TEMPLATE
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -4028,6 +4110,14 @@
|
||||
<p><code>ACCELEROMETER_DEBUG_READ [CHIP=<配置名>] REG=<寄存器></code>:查询ADXL345的寄存器"REG"(例如44或0x2C)。可以用于debug。</p>
|
||||
<h4 id="accelerometer_debug_write">ACCELEROMETER_DEBUG_WRITE<a class="headerlink" href="#accelerometer_debug_write" title="Permanent link">¶</a></h4>
|
||||
<p><code>ACCELEROMETER_DEBUG_WRITE [CHIP=<配置名>] REG=<寄存器> VAL=<值></code>:将原始的"值"写进寄存器"寄存器"。"值"和"寄存器"都可以是一个十进制或十六进制的整数。请谨慎使用,并参考 ADXL345 数据手册。</p>
|
||||
<h3 id="angle">[angle]<a class="headerlink" href="#angle" title="Permanent link">¶</a></h3>
|
||||
<p>The following commands are available when an <a href="Config_Reference.html#angle">angle config section</a> is enabled.</p>
|
||||
<h4 id="angle_calibrate">ANGLE_CALIBRATE<a class="headerlink" href="#angle_calibrate" title="Permanent link">¶</a></h4>
|
||||
<p><code>ANGLE_CALIBRATE CHIP=<chip_name></code>: Perform angle calibration on the given sensor (there must be an <code>[angle chip_name]</code> config section that has specified a <code>stepper</code> parameter). IMPORTANT - this tool will command the stepper motor to move without checking the normal kinematic boundary limits. Ideally the motor should be disconnected from any printer carriage before performing calibration. If the stepper can not be disconnected from the printer, make sure the carriage is near the center of its rail before starting calibration. (The stepper motor may move forwards or backwards two full rotations during this test.) After completing this test use the <code>SAVE_CONFIG</code> command to save the calibration data to the config file. In order to use this tool the Python "numpy" package must be installed (see the <a href="Measuring_Resonances.html#software-installation">measuring resonance document</a> for more information).</p>
|
||||
<h4 id="angle_debug_read">ANGLE_DEBUG_READ<a class="headerlink" href="#angle_debug_read" title="Permanent link">¶</a></h4>
|
||||
<p><code>ANGLE_DEBUG_READ CHIP=<config_name> REG=<register></code>: Queries sensor register "register" (e.g. 44 or 0x2C). Can be useful for debugging purposes. This is only available for tle5012b chips.</p>
|
||||
<h4 id="angle_debug_write">ANGLE_DEBUG_WRITE<a class="headerlink" href="#angle_debug_write" title="Permanent link">¶</a></h4>
|
||||
<p><code>ANGLE_DEBUG_WRITE CHIP=<config_name> REG=<register> VAL=<value></code>: Writes raw "value" into register "register". Both "value" and "register" can be a decimal or a hexadecimal integer. Use with care, and refer to sensor data sheet for the reference. This is only available for tle5012b chips.</p>
|
||||
<h3 id="bed_mesh">[bed_mesh]<a class="headerlink" href="#bed_mesh" title="Permanent link">¶</a></h3>
|
||||
<p>The following commands are available when the <a href="Config_Reference.html#bed_mesh">bed_mesh config section</a> is enabled (also see the <a href="Bed_Mesh.html">bed mesh guide</a>).</p>
|
||||
<h4 id="bed_mesh_calibrate">BED_MESH_CALIBRATE<a class="headerlink" href="#bed_mesh_calibrate" title="Permanent link">¶</a></h4>
|
||||
@@ -4209,10 +4299,12 @@
|
||||
<p>当<a href="Config_Reference.html#manual_stepper">manual_stepper 配置分段</a>被启用时,以下命令可用。</p>
|
||||
<h4 id="manual_stepper_1">MANUAL_STEPPER<a class="headerlink" href="#manual_stepper_1" title="Permanent link">¶</a></h4>
|
||||
<p><code>MANUAL_STEPPER STEPPER=config_name [ENABLE=[0|1]] [SET_POSITION=<pos>] [SPEED=<speed>] [ACCEL=<accel>] [MOVE=<pos> [STOP_ON_ENDSTOP=[1|2|-1|-2]] [SYNC=0]]</code>:该命令将改变步进器的状态。使用ENABLE参数来启用/禁用步进。使用SET_POSITION参数,迫使步进认为它处于给定的位置。使用MOVE参数,要求移动到给定位置。如果指定了SPEED或者ACCEL,那么将使用给定的值而不是配置文件中指定的默认值。如果指定ACCEL为0,那么将不执行加速。如果STOP_ON_ENDSTOP=1被指定,那么如果止动器报告被触发,动作将提前结束(使用STOP_ON_ENDSTOP=2来完成动作,即使止动器没有被触发也不会出错,使用-1或-2来在止动器报告没有被触发时停止)。通常情况下,未来的G-Code命令将被安排在步进运动完成后运行,但是如果手动步进运动使用SYNC=0,那么未来的G-Code运动命令可能与步进运动平行运行。</p>
|
||||
<h3 id="neopixel">[neopixel]<a class="headerlink" href="#neopixel" title="Permanent link">¶</a></h3>
|
||||
<p>当使用了<a href="Config_Reference.html#neopixel">neopixel</a>或<a href="Config_Reference.html#dotstar">dotstar</a>配置分段时,以下命令可用:</p>
|
||||
<h3 id="led">[led]<a class="headerlink" href="#led" title="Permanent link">¶</a></h3>
|
||||
<p>The following command is available when any of the <a href="Config_Reference.html#leds">led config sections</a> are enabled.</p>
|
||||
<h4 id="set_led">SET_LED<a class="headerlink" href="#set_led" title="Permanent link">¶</a></h4>
|
||||
<p><code>SET_LED LED=<配置中的名称> RED=<值> GREEN=<值> BLUE=<值> WHITE=<值> [INDEX=<索引>] [TRANSMIT=0] [SYNC=1]</code>:这条指令设置LED的输出。每个颜色的 <code><值></code> 必须在0.0和1.0之间。WHITE(白色)参数仅在 RGBW LED上有效果。如果多个 LED 芯片是通过菊链连接的,可以用INDEX参数来指定改变指定芯片的颜色(1是第一颗芯片,2是第二颗芯片…)。如果不提供 INDEX 则全部菊链中的 LED 将被设置为给定的颜色。如果指定了 TRANSMIT=0 ,色彩变化只会在下一条不是 TRANSMIT=0 的 SET_LED命令发送后发生。这个特性和 INDEX 参数一起使用可以在菊链中批量改变LED的颜色。默认情况下,SET_LED命令将与其他正在进行的G代码命令同步其变化。 因为修改LED状态会重置空闲超时,这可能在不打印时造成不期望的行为。 如果精确的时序不重要,可选的 SYNC=0 参数可以立刻应用LED变化而不重置LED超时。</p>
|
||||
<p><code>SET_LED LED=<config_name> RED=<value> GREEN=<value> BLUE=<value> WHITE=<value> [INDEX=<index>] [TRANSMIT=0] [SYNC=1]</code>: This sets the LED output. Each color <code><value></code> must be between 0.0 and 1.0. The WHITE option is only valid on RGBW LEDs. If the LED supports multiple chips in a daisy-chain then one may specify INDEX to alter the color of just the given chip (1 for the first chip, 2 for the second, etc.). If INDEX is not provided then all LEDs in the daisy-chain will be set to the provided color. If TRANSMIT=0 is specified then the color change will only be made on the next SET_LED command that does not specify TRANSMIT=0; this may be useful in combination with the INDEX parameter to batch multiple updates in a daisy-chain. By default, the SET_LED command will sync it's changes with other ongoing gcode commands. This can lead to undesirable behavior if LEDs are being set while the printer is not printing as it will reset the idle timeout. If careful timing is not needed, the optional SYNC=0 parameter can be specified to apply the changes without resetting the idle timeout.</p>
|
||||
<h4 id="set_led_template">SET_LED_TEMPLATE<a class="headerlink" href="#set_led_template" title="Permanent link">¶</a></h4>
|
||||
<p><code>SET_LED_TEMPLATE LED=<led_name> TEMPLATE=<template_name> [<param_x>=<literal>] [INDEX=<index>]</code>: Assign a <a href="Config_Reference.html#display_template">display_template</a> to a given <a href="Config_Reference.html#leds">LED</a>. For example, if one defined a <code>[display_template my_led_template]</code> config section then one could assign <code>TEMPLATE=my_led_template</code> here. The display_template should produce a comma separated string containing four floating point numbers corresponding to red, green, blue, and white color settings. The template will be continuously evaluated and the LED will be automatically set to the resulting colors. One may set display_template parameters to use during template evaluation (parameters will be parsed as Python literals). If INDEX is not specified then all chips in the LED's daisy-chain will be set to the template, otherwise only the chip with the given index will be updated. If TEMPLATE is an empty string then this command will clear any previous template assigned to the LED (one can then use <code>SET_LED</code> commands to manage the LED's color settings).</p>
|
||||
<h3 id="output_pin">[output_pin]<a class="headerlink" href="#output_pin" title="Permanent link">¶</a></h3>
|
||||
<p>使用<a href="Config_Reference.html#output_pin">output_pin 配置分段</a>时,以下命令可用:</p>
|
||||
<h4 id="set_pin">SET_PIN<a class="headerlink" href="#set_pin" title="Permanent link">¶</a></h4>
|
||||
|
||||
@@ -1384,6 +1384,7 @@ Recv: ok
|
||||
<li>rear right screw must be turned counter-clockwise 50 minutes</li>
|
||||
<li>rear left screw must be turned clockwise 2 minutes (not need it's ok)</li>
|
||||
</ul>
|
||||
<p>Note that "minutes" refers to "minutes of a clock face". So, for example, 15 minutes is a quarter of a full turn.</p>
|
||||
<p>Repeat the process several times until you get a good level bed - normally when all adjustments are below 6 minutes.</p>
|
||||
<p>If using a probe that is mounted on the side of the hotend (that is, it has an X or Y offset) then note that adjusting the bed tilt will invalidate any previous probe calibration that was performed with a tilted bed. Be sure to run <a href="Probe_Calibrate.html">probe calibration</a> after the bed screws have been adjusted.</p>
|
||||
<p>The <code>MAX_DEVIATION</code> parameter is useful when a saved bed mesh is used, to ensure that the bed level has not drifted too far from where it was when the mesh was created. For example, <code>SCREWS_TILT_CALCULATE MAX_DEVIATION=0.01</code> can be added to the custom start gcode of the slicer before the mesh is loaded. It will abort the print if the configured limit is exceeded (0.01mm in this example), giving the user a chance to adjust the screws and restart the print.</p>
|
||||
|
||||
@@ -777,6 +777,13 @@
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
angle
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#bed_mesh" class="md-nav__link">
|
||||
bed_mesh
|
||||
@@ -873,6 +880,13 @@
|
||||
idle_timeout
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#led" class="md-nav__link">
|
||||
led
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1013,13 +1027,6 @@
|
||||
z_tilt
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#neopixel-dotstar" class="md-nav__link">
|
||||
neopixel / dotstar
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -1460,6 +1467,13 @@
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#angle" class="md-nav__link">
|
||||
angle
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#bed_mesh" class="md-nav__link">
|
||||
bed_mesh
|
||||
@@ -1556,6 +1570,13 @@
|
||||
idle_timeout
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#led" class="md-nav__link">
|
||||
led
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
@@ -1696,13 +1717,6 @@
|
||||
z_tilt
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#neopixel-dotstar" class="md-nav__link">
|
||||
neopixel / dotstar
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -1725,6 +1739,11 @@
|
||||
<h1 id="_1">状态参考<a class="headerlink" href="#_1" title="Permanent link">¶</a></h1>
|
||||
<p>本文档是可用于 Klipper <a href="Command_Templates.html">宏</a>、<a href="Config_Reference.html#display">显示字段</a>以及<a href="API_Server.html">API服务器</a> 的打印机状态信息的参考。</p>
|
||||
<p>本文档中的字段可能会发生变化 - 如果使用了任何字段,在更新 Klipper 时,请务必查看<a href="Config_Changes.html">配置变化文档</a>。</p>
|
||||
<h2 id="angle">angle<a class="headerlink" href="#angle" title="Permanent link">¶</a></h2>
|
||||
<p>The following information is available in <a href="Config_Reference.html#angle">angle some_name</a> objects:</p>
|
||||
<ul>
|
||||
<li><code>temperature</code>: The last temperature reading (in Celsius) from a tle5012b magnetic hall sensor. This value is only available if the angle sensor is a tle5012b chip and if measurements are in progress (otherwise it reports <code>None</code>).</li>
|
||||
</ul>
|
||||
<h2 id="bed_mesh">bed_mesh<a class="headerlink" href="#bed_mesh" title="Permanent link">¶</a></h2>
|
||||
<p><a href="Config_Reference.html#bed_mesh">bed_mesh</a> 对象中提供了以下信息:</p>
|
||||
<ul>
|
||||
@@ -1819,6 +1838,11 @@
|
||||
<li><code>state</code>:由 idle_timeout 模块跟踪的打印机的当前状态。它可以是以下字符串之一:"Idle", "Printing", "Ready"。</li>
|
||||
<li><code>printing_time</code>:打印机处于“Printing”状态的时间(以秒为单位)(由 idle_timeout 模块跟踪)。</li>
|
||||
</ul>
|
||||
<h2 id="led">led<a class="headerlink" href="#led" title="Permanent link">¶</a></h2>
|
||||
<p>The following information is available for each <code>[led led_name]</code>, <code>[neopixel led_name]</code>, <code>[dotstar led_name]</code>, <code>[pca9533 led_name]</code>, and <code>[pca9632 led_name]</code> config section defined in printer.cfg:</p>
|
||||
<ul>
|
||||
<li><code>color_data</code>: A list of color lists containing the RGBW values for a led in the chain. Each value is represented as a float from 0.0 to 1.0. Each color list contains 4 items (red, green, blue, white) even if the underyling LED supports fewer color channels. For example, the blue value (3rd item in color list) of the second neopixel in a chain could be accessed at <code>printer["neopixel <config_name>"].color_data[1][2]</code>.</li>
|
||||
</ul>
|
||||
<h2 id="mcu">mcu<a class="headerlink" href="#mcu" title="Permanent link">¶</a></h2>
|
||||
<p><a href="Config_Reference.html#mcu">mcu</a>和<a href="Config_Reference.html#mcu-my_extra_mcu">mcu some_name</a>对象提供了以下信息:</p>
|
||||
<ul>
|
||||
@@ -1945,11 +1969,6 @@
|
||||
<p><code>z_tilt</code> 对象提供了以下信息(如果定义了 z_tilt,则该对象可用):</p>
|
||||
<ul>
|
||||
<li><code>applied</code>:如果 z 倾斜调平过程已运行并成功完成,则为 True。</li>
|
||||
</ul>
|
||||
<h2 id="neopixel-dotstar">neopixel / dotstar<a class="headerlink" href="#neopixel-dotstar" title="Permanent link">¶</a></h2>
|
||||
<p>以下信息适用于每个在 printer.cfg 中定义的 <code>[neopixel led_name]</code> 和 <code>[dotstar led_name]</code>:</p>
|
||||
<ul>
|
||||
<li><code>color_data</code>:对象数组,每个对象包含链中一个 LED 的 RGBW 值。请注意,并非所有配置都包含白色值。每个值都是从 0 到 1 的浮点数。例如,链中第二个 neopixel 的蓝色值可以通过<code>printer["neopixel <config_name>"].color_data[1].B</code>访问。</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Reference in New Issue
Block a user