2017年11月13日月曜日

End Stop

XYZ各軸にEnd Stopを付けました。
付ける場所は結構苦労しました。
X軸は普通に付ければよいのですが、
Y軸はテーブル前側にスィッチを押すバーを付加して対応。
Z軸はスイッチを基板からはずし、LEDの基板を上部に配置。

スイッチの確認はM119コマンドで行います。
通常0で、スイッチを押した時に1になるはず。

次に、Homing動作です。
パネルからホーミング動作を起動できます。
Homing時の動作順はデフォルトではXYZの順ですが、最初に工具が上に逃げた方が良いような気がするのでZXYの順で動作させました。

なお、alpha_limit_enableなどは常に有効というわけでは無いです。
xxx_limit_enableがTrueであればどちらかのリミットが入れば常に止まって欲しい気がしますが、Homing動作中はホームと逆側のリミットがOnになった場合でも動き続けてしまいます。つまりスイッチを逆に付けてしまうとガガガとなります・・・

Config.txt抜粋---------------
# Endstops
endstops_enable              true             # the endstop module is enabled by default and can be disabled here
#corexy_homing              false            # set to true if homing on a hbit or corexy
alpha_min_endstop          1.24^!            # add a ! to invert if endstop is NO connected to ground
alpha_max_endstop         1.25^!            # NOTE set to nc if this is not installed
alpha_homing_direction    home_to_min      # or set to home_to_max and set alpha_max
alpha_min                        0                # this gets loaded after homing when home_to_min is set
alpha_max                       230              # this gets loaded after homing when home_to_max is set
beta_min_endstop            1.26^!            #
beta_max_endstop           1.27^!            #
beta_homing_direction       home_to_min      #
beta_min                          0                #
beta_max                         160              #
gamma_min_endstop        1.28^!            #
gamma_max_endstop       1.29^!            #
gamma_homing_direction  home_to_min      #
gamma_min                      0                #
gamma_max                     50              #

# optional order in which axis will home, default is they all home at the same time,
# if this is set it will force each axis to home one at a time in the specified order
homing_order                   ZXY              # x axis followed by y then z last

# optional enable limit switches, actions will stop if any enabled limit switch is triggered
alpha_limit_enable           true            # set to true to enable X min and max limit switches
beta_limit_enable            true            # set to true to enable Y min and max limit switches
gamma_limit_enable        true            # set to true to enable Z min and max limit switches

alpha_fast_homing_rate_mm_s                  20               # feedrates in mm/second
beta_fast_homing_rate_mm_s                   20               # "
gamma_fast_homing_rate_mm_s                4                # "
alpha_slow_homing_rate_mm_s                  8               # "
beta_slow_homing_rate_mm_s                   8               # "
gamma_slow_homing_rate_mm_s              2                # "

alpha_homing_retract_mm                     5                # distance in mm
beta_homing_retract_mm                      5                # "
gamma_homing_retract_mm                 1                # "
------



0 件のコメント:

コメントを投稿