- Posts: 95
- Thank you received: 22
Help with pinout. 2 motors (joints) on one axis. 2.8
- joel0407
- Offline
- Premium Member
-
Less
More
9 years 3 months ago #96001
by joel0407
Replied by joel0407 on topic Help with pinout. 2 motors (joints) on one axis. 2.8
I have plenty of IO pins. I just don't know what to set them to? I'm not running out. Why do you think that.
Please Log in or Create an account to join the conversation.
- joel0407
- Offline
- Premium Member
-
Less
More
- Posts: 95
- Thank you received: 22
9 years 3 months ago #96002
by joel0407
Replied by joel0407 on topic Help with pinout. 2 motors (joints) on one axis. 2.8
It seems like a random comment to ask if I am running out of IO pins.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4793
- Thank you received: 1480
9 years 3 months ago #96003
by Todd Zuercher
Replied by Todd Zuercher on topic Help with pinout. 2 motors (joints) on one axis. 2.8
Unfortunately, the Stepconfig wizard predates the separation of Joints from Axis. Back then setting up a machine like this was not a trivial task. And it still isn't, but it has been greatly simplified. I'm not even sure if the Stepconfig wizard in Master even builds true JA compliant configs or if it just builds the old style config, then lets the auto convert script change it.
I think at this point the simplest option to building a config such as you are after, is to use Stepconfig to create an XYZA config, then modify it to be the XYZX config you need. Make the config, ignoring most of the settings for the A-axis (as you will be deleting or replacing most of them.) But do set up things like limit and home switches for the A.
Once you've built the config, copy and paist the settings for JOINT_0 to JOINT_3 in the ini file replacing what was there. Delete the section for AXIS_A and then make the nessisary changes to the KINS and TRAJ sections.
You might not even need to make any changes to the hal file, unless you want to change any arbitrarily named signals from referencing the A axis to something like X2.
I think at this point the simplest option to building a config such as you are after, is to use Stepconfig to create an XYZA config, then modify it to be the XYZX config you need. Make the config, ignoring most of the settings for the A-axis (as you will be deleting or replacing most of them.) But do set up things like limit and home switches for the A.
Once you've built the config, copy and paist the settings for JOINT_0 to JOINT_3 in the ini file replacing what was there. Delete the section for AXIS_A and then make the nessisary changes to the KINS and TRAJ sections.
You might not even need to make any changes to the hal file, unless you want to change any arbitrarily named signals from referencing the A axis to something like X2.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
-
Less
More
- Posts: 12170
- Thank you received: 4153
9 years 3 months ago #96022
by rodw
Replied by rodw on topic Help with pinout. 2 motors (joints) on one axis. 2.8
Joel,
I have responded on the other thread
I think you are taking "8.8.3.1 Standard Pinout HAL" out of context a bit as it just shows one small snippet of code but does not show the prerequisite configuration code. Hopefully I have clarified that in my other response.
eg. you need to define the Xstep signal to be the stepgen for the joint.
As I said on the phone many people do what Todd has suggested and set up a XYZA machine as it is a default setup in stepconf. Then they only have one joint to edit (A) in .ini and hal so it becomes an XYZX machine. That should get you up and running in about 5 minutes after you've finished with stepconf.
I have responded on the other thread
I think you are taking "8.8.3.1 Standard Pinout HAL" out of context a bit as it just shows one small snippet of code but does not show the prerequisite configuration code. Hopefully I have clarified that in my other response.
eg. you need to define the Xstep signal to be the stepgen for the joint.
As I said on the phone many people do what Todd has suggested and set up a XYZA machine as it is a default setup in stepconf. Then they only have one joint to edit (A) in .ini and hal so it becomes an XYZX machine. That should get you up and running in about 5 minutes after you've finished with stepconf.
Please Log in or Create an account to join the conversation.
- joel0407
- Offline
- Premium Member
-
Less
More
- Posts: 95
- Thank you received: 22
9 years 3 months ago #96038
by joel0407
Replied by joel0407 on topic Help with pinout. 2 motors (joints) on one axis. 2.8
Thanks Rod,
Between here and the other thread. I sort of have it but still reading. I also had a look at my config files while I was home last night too.
What did get me a little was Todd's comment "The actual pinout is completely arbitrary.". From what I understand now the term used is arbitrary but the pinout is not.
Between here and the other thread. I sort of have it but still reading. I also had a look at my config files while I was home last night too.
What did get me a little was Todd's comment "The actual pinout is completely arbitrary.". From what I understand now the term used is arbitrary but the pinout is not.
Please Log in or Create an account to join the conversation.
- joel0407
- Offline
- Premium Member
-
Less
More
- Posts: 95
- Thank you received: 22
9 years 3 months ago #96041
by joel0407
Replied by joel0407 on topic Help with pinout. 2 motors (joints) on one axis. 2.8
After reading through a few pages from "14.2 Basic HAL Reference"
It would have been better to say "signal-name" is arbitrary. It doesn't matter if you call the signal name HotSauce. It's just a name. The pinout is not arbitrary at all.
The "net" command sets the source the signal-name refers to. I think I have that right.
After playing around last night, I've now decided to go with XYYZ rather than XXYZ. So I current intend to call my "signal-name"s:
Xstep
Xdir
Y1step
Y1dir
Y2step
Y2dir
Zstep
Zdir.
The sources for these signal names will be
X = joint_0
Y1 = joint_1
Y2 = joint_2
Z = joint_3
Pinout will be
Xstep Pin2
Xdir Pin3
Y1step Pin4
Y1dir Pin5
Y2step Pin6
Y2dir Pin7
Zstep Pin8
Zdir. Pin9
I hope. LOL
It would have been better to say "signal-name" is arbitrary. It doesn't matter if you call the signal name HotSauce. It's just a name. The pinout is not arbitrary at all.
The "net" command sets the source the signal-name refers to. I think I have that right.
After playing around last night, I've now decided to go with XYYZ rather than XXYZ. So I current intend to call my "signal-name"s:
Xstep
Xdir
Y1step
Y1dir
Y2step
Y2dir
Zstep
Zdir.
The sources for these signal names will be
X = joint_0
Y1 = joint_1
Y2 = joint_2
Z = joint_3
Pinout will be
Xstep Pin2
Xdir Pin3
Y1step Pin4
Y1dir Pin5
Y2step Pin6
Y2dir Pin7
Zstep Pin8
Zdir. Pin9
I hope. LOL
Please Log in or Create an account to join the conversation.
Time to create page: 0.158 seconds