Add new axis

More
14 Jul 2021 16:36 #214764 by Anonymous
Add new axis was created by Anonymous
hi every one
I have installed Debian on a computer and i have a paralellport breakout board.
I am new in LinuxCNC.
Basic Installation and setup was done for a lathe.
2 axes are working.
I am using a servo motor in Velocity mode as a spindle motor, which is controlled by an Analog voltage.
The servo could be controlled in position mode (Step/Dir) and Velocity mode and i could switch between these with a Relay by setting a pin on the servo drive High or low.
I currently only have the servo wired in Velocity mode.
I would like to add C-axis capibilities, so i need to add a new axis.
I've tried watching some HAL Tutorials to try to understand it, but i find it very complicated.
Can someone help and show me how to add a new axis in the INI and HAL file?

Thank You
 

File Attachment:

File Name: custom_pos...7-14.hal
File Size:0 KB

File Attachment:

File Name: postgui_ba...7-14.hal
File Size:1 KB

File Attachment:

File Name: Servo_System.hal
File Size:3 KB

File Attachment:

File Name: custompanel.xml
File Size:1 KB

File Attachment:

File Name: Servo_System.ini
File Size:2 KB

File Attachment:

File Name: custom_2021-07-14.hal
File Size:0 KB
Attachments:

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

More
19 Jul 2021 00:08 #215271 by tommylight
Replied by tommylight on topic Add new axis
Sorry for the late reply and not helping, i have to leave the explanation to someone who is better at it.

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

More
29 Jul 2021 19:29 #216257 by andypugh
Replied by andypugh on topic Add new axis

The servo could be controlled in position mode (Step/Dir) and Velocity mode and i could switch between these with a Relay by setting a pin on the servo drive High or low.

Are you sure that the drive can switch between step-dirt position mode and velocity mode on the fly? 

If that is possible, then this should be much easier than is normally the case. 

You need to increase the number of axes to 3, and use coordinates=XZC in the INI (probably in two places) 

I strongly suggest an update to LinuxCNC 2.8.2, that should make it rather easier to configure a 3-axis XYC system. 
 
The following user(s) said Thank You: Anonymous

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

More
07 Aug 2021 13:52 #217118 by Anonymous
Replied by Anonymous on topic Add new axis
Yes i can switch between position and speed control on the fly, though if i do it when the spindle is still turning it will just decelerate verry fast and probably break stuff.
I tried implementing those changes but i couldn't get it running that way. Do i also have to add something to the hal file.
I have now run stepconf again and configured my machine as a milling machine and just changed the name of the Y-axis to the C-axis, I also changed all the Y characters in the hal file to C. It now works and i can run gcode with XZC values.
There is still some stuff that doesn't work correctly, for example the display shows the gcode in 3d space, but it should only show it in 2d space. The arrow keys also don't jog the axes correctly.
This is probably verry dum, but i don't know how else to configure it.

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

More
11 Aug 2021 00:07 #217441 by andypugh
Replied by andypugh on topic Add new axis
What do you have for [DISPLAY]GEOMETRY ?

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

Time to create page: 0.067 seconds
Powered by Kunena Forum