Steppers Not Moving / Mapped Wrong

  • notJamesLee
  • Away
  • New Member
  • New Member
More
17 Jan 2025 21:20 - 17 Jan 2025 21:23 #319220 by notJamesLee
Steppers Not Moving / Mapped Wrong was created by notJamesLee
Hi Friends, 

Just getting my machine powered up for the first time and i have a list of things that aren't working and im trying slowing to knock each one of them out. I have a Queenbee pro that i converted to a XYZC machine powered with a 7i96s. I carefully labeled all the signal wires as i wired everything up and now once i get LinuxCNC up and running and try to jog to test each axis most don't work or are mapped wrong. The only one that acts somewhat as expected is X and its loud and makes a grinding noise and moves very slow. 

Regarding their mapping, when I go to jog Z i get movement from the second y motor. It makes the same awful noise and moves slow, which i'd expect because its the same motor with the same settings as the X motor. I also have a C servo that i haven't gotten anything from so far. 

Any suggestions as where to start here? can i leverage HalShow? should I just switch the motors in the electrical cabinet until the Y button moves the Y axis? I feel like i would prefer to understand whats happening and i dont feel like i do yet. Is there a way to easily reconfigure the motors without running pncconf again? 
Last edit: 17 Jan 2025 21:23 by notJamesLee.

Please Log in or Create an account to join the conversation.

More
17 Jan 2025 22:06 #319222 by PCW
Replied by PCW on topic Steppers Not Moving / Mapped Wrong
Posting your hal and ini files would make this easier to diagnose

How are the drives wired to the 7I96S?

(TB2 pin numbers to drive signal names)

Please Log in or Create an account to join the conversation.

  • notJamesLee
  • Away
  • New Member
  • New Member
More
17 Jan 2025 23:02 - 17 Jan 2025 23:04 #319230 by notJamesLee
Replied by notJamesLee on topic Steppers Not Moving / Mapped Wrong
Both files attached. 

I thought i had mapped the
board step/dir 0 -> X
step/dir 1 -> y1
2->z
3->c
4 ->y2
(i hope this is what you mean by how is it wired).

The encoder i am not even worried about yet i just want the machine to move and everything to register right now.
Attachments:
Last edit: 17 Jan 2025 23:04 by notJamesLee. Reason: tried to make it easier to read

Please Log in or Create an account to join the conversation.

More
17 Jan 2025 23:28 #319231 by PCW
Replied by PCW on topic Steppers Not Moving / Mapped Wrong
The hal file shows mapping:

JOINT STEPGEN  AXIS

0         0           X
1         2           Y
2         4           Z
3         3           A
The following user(s) said Thank You: notJamesLee

Please Log in or Create an account to join the conversation.

  • notJamesLee
  • Away
  • New Member
  • New Member
More
17 Jan 2025 23:44 - 17 Jan 2025 23:47 #319232 by notJamesLee
Replied by notJamesLee on topic Steppers Not Moving / Mapped Wrong
Thanks for your quick reply.

can you enlighten me as to how you found that out? what lines in the hal can i modify to get them correct? Also can you tell me the difference in LinuxCNC between joint and stepgen?

Also, i am fairly certain i added the second Y motor in the configurator, does it not like repeat setups?
Last edit: 17 Jan 2025 23:47 by notJamesLee.

Please Log in or Create an account to join the conversation.

More
18 Jan 2025 00:05 #319235 by PCW
Replied by PCW on topic Steppers Not Moving / Mapped Wrong
It does not look like you setup a tandem axis in pncconf:

[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYZA

[TRAJ]
COORDINATES = XYZA
MAX_ANGULAR_VELOCITY = 0.50
DEFAULT_ANGULAR_VELOCITY = 0.05
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 0.10
MAX_LINEAR_VELOCITY = 1.00

Note that the stepgen number is completely arbitrary but joint <==> axis mapping
must be setup in the kins/trajectory sections of the ini file in addition to the
hal file.

Here is how I knew Z was mapped to joint 2 and stepgen 4
#*******************
# AXIS Z JOINT 2
#*******************

setp pid.z.Pgain [JOINT_2]P
setp pid.z.Igain [JOINT_2]I
setp pid.z.Dgain [JOINT_2]D
setp pid.z.bias [JOINT_2]BIAS
setp pid.z.FF0 [JOINT_2]FF0
setp pid.z.FF1 [JOINT_2]FF1
setp pid.z.FF2 [JOINT_2]FF2
setp pid.z.deadband [JOINT_2]DEADBAND
setp pid.z.maxoutput [JOINT_2]MAX_OUTPUT
setp pid.z.error-previous-target true
# This setting is to limit bogus stepgen
# velocity corrections caused by position
# feedback sample time jitter.
setp pid.z.maxerror 0.000500

net z-index-enable => pid.z.index-enable
net z-enable => pid.z.enable
net z-pos-cmd => pid.z.command
net z-pos-fb => pid.z.feedback
net z-output <= pid.z.output

# Step Gen signals/setup

setp hm2_7i96s.0.stepgen.04.dirsetup [JOINT_2]DIRSETUP
setp hm2_7i96s.0.stepgen.04.dirhold [JOINT_2]DIRHOLD

Please Log in or Create an account to join the conversation.

More
18 Jan 2025 00:22 #319236 by PCW
Replied by PCW on topic Steppers Not Moving / Mapped Wrong
Note that I would not edit the hal file at this point as so much is missing.
I would make sure you select the proper kinematics and setup the tandem
axis in pncconf.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum