step direction spindle also functions as C axis
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
can not find -sec MOT -var MOT -num1
can not find -sec IO -var IO -num1
can not find -sec LINUXCNC -var NML_file - num1
gang_stepper.hal:173: Pin 'stepgen.3.velocity-cmd' was already linked to signal 'APOS-cmd'
Please Log in or Create an account to join the conversation.
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23238
- Thank you received: 4912
gang_stepper.hal:173: Pin 'stepgen.3.velocity-cmd' was already linked to signal 'APOS-cmd'
I am puzzled by that, as it worked for me. I can't really look at it now, but you can probably comment out the "net apos-cmd" somewhere in the HAL file and see what happens.
Please Log in or Create an account to join the conversation.
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
I get a step to the spindle about every 10 seconds. but that is probably due to the net apos-cmd line being commented out. I will work on it more and let you know
what happens. THANKS for the help steve
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23238
- Thank you received: 4912
I get a step to the spindle about every 10 seconds. but that is probably due to the net apos-cmd line being commented out
It is possibly due to the scales being all wrong everywhere.
Please Log in or Create an account to join the conversation.
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
with the "net apos-cmd" line, I printed the hal commands manual I hope reading it a few more times something will sink in. How can I modify the gui to show spindle rpm? THANKS Steve
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23238
- Thank you received: 4912
Hi I adjusted some numbers last night and things are running. Still have the spindle oscillation you talked about, will work on that more tonight. I am not good at this PID thing
In this case all you need is for the P term not to be higher than the accelleration (but as the units are arbitrary and not necessarily to an obvious timebase you can't necessarly tell by inspection)
Start with a very low P and increase it until it oscillates, then back off a bit.
You can change it "live" at the command line with "halcmd setp pid.0.Pgain 20". I suggest the command-line as there you can use tab-completion and up-arrow to bring back the command history.
The problem with Apos is that it was used by your original HAL files and I didn't properly untangle everything. Only one "signal" (Apos is a signal, a freely-chosen label) can connect to any pin and you already had Apos linked to the stepgen position.
Please Log in or Create an account to join the conversation.
- stevestice
- Offline
- Junior Member
-
- Posts: 28
- Thank you received: 0
Just a idea-some thing i have done is print and have spiral bound all my linux cnc manuals and other manuals. I find it easier to study and find info than reading pdf's on the computer. Others may want to do this?
Thanks for the help
Steve
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23238
- Thank you received: 4912
currently using port 0 with 12 inputs 0-11 and 12 outputs 12-23. right now I am trying to get M8 flood coolant to output 12, when I start linux cnc I get a error that opto_ac5.0.port0.out-12 does not exist.
It is probably worth checking the pin list. Open a terminal and type
halrun
loadrt opto_ac5
show pin
And see if physical pin 12 is …out-12 or if the inputs and outputs are numbered independently.
Please Log in or Create an account to join the conversation.