- Posts: 88
- Thank you received: 1
LitexCNC: firmware and driver for 5A-75B and 5A-75E
2 years 5 months ago #299751
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I encountered a strange problem while using Litex for some time.
This problem is that when I close the linuxcnc software or disable the machine power key, the motors automatically start moving at a very low speed.
Does anyone know how to fix this?
This problem is that when I close the linuxcnc software or disable the machine power key, the motors automatically start moving at a very low speed.
Does anyone know how to fix this?
Please Log in or Create an account to join the conversation.
- tommylight
-
- Offline
- Moderator
-
2 years 5 months ago #299759
by tommylight
Replied by tommylight on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Very short cables from Litex to drives.
The following user(s) said Thank You: Ehsan_R
Please Log in or Create an account to join the conversation.
2 years 5 months ago #299761
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Problem in homing with index
The HAL and INI file configuration is as follows.
I expect that when the a-axis reaches the homing switch, it will move in the opposite direction, and as soon as it receives the z-pulse, it will immediately stop the axis and consider that position to be zero, but after receiving the z-pulse, a relatively large extra movement It is done at maximum speed in the opposite direction.
Does anyone know how to fix this problem?
The HAL and INI file configuration is as follows.
I expect that when the a-axis reaches the homing switch, it will move in the opposite direction, and as soon as it receives the z-pulse, it will immediately stop the axis and consider that position to be zero, but after receiving the z-pulse, a relatively large extra movement It is done at maximum speed in the opposite direction.
Does anyone know how to fix this problem?
Code:
#STEPGEN - A-AXIS
########################################################################
# - Setup of timings
setp 5A-75B:V8.2.stepgen.03.position-scale [JOINT_3]SCALE
setp 5A-75B:V8.2.stepgen.03.steplen 5000
setp 5A-75B:V8.2.stepgen.03.stepspace 5000
setp 5A-75B:V8.2.stepgen.03.dir-hold-time 10000
setp 5A-75B:V8.2.stepgen.03.dir-setup-time 10000
setp 5A-75B:V8.2.stepgen.03.max-velocity [JOINT_2]MAX_VELOCITY
setp 5A-75B:V8.2.stepgen.03.max-acceleration [JOINT_2]STEPGEN_MAXACCEL
# setp 5A-75B:V8.2.stepgen.00.debug 1
# - Connect velocity command
net apos_cmd joint.3.motor-pos-cmd => 5A-75B:V8.2.stepgen.03.position-cmd
net apos_fb joint.3.motor-pos-fb <= 5A-75B:V8.2.encoder.03.position
# - enable the drive
net aenable joint.3.amp-enable-out => 5A-75B:V8.2.stepgen.03.enable
#HOME
net a-index-inable 5A-75B:V8.2.encoder.03.index-enable
net a-index-inable joint.3.index-enable
net home-a <= 5A-75B:V8.2.gpio.j16:6.in-not
net home-a => joint.3.home-sw-in
#ENCODER
setp 5A-75B:V8.2.encoder.03.position-scale [JOINT_3]SCALE
setp 5A-75B:V8.2.encoder.03.x4-mode 1
################################################################################################
#*** AXIS_A *******************************
[AXIS_A]
MAX_VELOCITY = 1.9
MAX_ACCELERATION = 9
MIN_LIMIT = -1
MAX_LIMIT = 500.0
[JOINT_3]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -1
MAX_LIMIT = 500.0
MAX_VELOCITY = 1.9
MAX_ACCELERATION = 5
STEPGEN_MAXACCEL = 10
SCALE = 50000
FERROR = 100
MIN_FERROR = 100
HOME_OFFSET = 0.000000
HOME_SEARCH_VEL = 1
HOME_LATCH_VEL = -0.1
HOME_USE_INDEX = YES
VOLATILE_HOME = 1
#HOME_NO_ENCODER_RESET = YES
HOME_SEQUENCE = 1
Please Log in or Create an account to join the conversation.
2 years 5 months ago #299762
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
I did not understand what you meant
Please Log in or Create an account to join the conversation.
2 years 5 months ago #299764
by PCW
Replied by PCW on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Does it work if you uncomment this line:
#HOME_NO_ENCODER_RESET = YES
#HOME_NO_ENCODER_RESET = YES
Please Log in or Create an account to join the conversation.
2 years 5 months ago #299765
by Ehsan_R
Replied by Ehsan_R on topic LitexCNC: firmware and driver for 5A-75B and 5A-75E
Unfortunately no
Please Log in or Create an account to join the conversation.
Time to create page: 0.093 seconds