Forum Header

Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig

More
1 year 11 months ago - 1 year 11 months ago #314763 by sk_linuxcnc
Hello I am new to linuxcnc.
Earlier, I have a servomotor from JMC : model ihsv86. its Pul and Dir signals are wired to the parallel port pin 4 and 5 respectively. the motor runs as A axis in the current setup. However, now i want to use the servomotor as a spindle. and my X axis to be a tool table linear slide.

I dont know what settings are to be done in the pin configuration in stepconfig, and what should be done for stepgen in HAL and INI files.

im keeping the post short, but i am willing to ellaborate and attach ini and hal files if needed.

help is much appreciated! Thank you :)
Last edit: 1 year 11 months ago by sk_linuxcnc.

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

More
1 year 11 months ago #314765 by PCW
This is fairly easy to setup if the motor is always used as a spindle
(basically using the stepgen in velocity mode)

If you need both A Axis and spindle in the same configuration,
it's a bit more difficult to setup as the hal file needs to change
a number of connections, scaling depending on mode.
The following user(s) said Thank You: sk_linuxcnc

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

More
1 year 11 months ago #314774 by sk_linuxcnc
No i dont want to use it as both A axis and spindle. I just want to use it as a Spindle. But i dont know how. The pul and dir pins of the motor need to be configured as what? Spindle CW and Spindle PWM? Where to get stepgen from? I basically need entire help on configuration so that i can make this jmc ihsv86 Servo motor as a spindle.

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

More
1 year 11 months ago #314775 by PCW
if the spindle motor is step/dir, you setup the spindle stepgen as a normal joint stepgen
except  you set the stepgen to velocity mode and connect the stepgen velocity command
to the commanded spindle speed (that step scale must me chosen to get the correct RPM)
The following user(s) said Thank You: sk_linuxcnc

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

More
1 year 11 months ago #314801 by sk_linuxcnc
Okay. So. As you can see, i have the servomotor's Step signal connected to pin 4 and Pulse signal connected to pin 5 of my parallel port.

What should i configure these two pins as in the step config?

Where should i write stepgen and how?

How can i enable this motor? The enable of the two motors are on a common pin 6 as you can see in the image

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

More
1 year 11 months ago #314808 by PCW
stepconf doesn't know how to setup a step/dir spindle so I would
setup an unused axis for the spindle, and then edit the hal/ini files.

If you do that and post the hal/ini files, I can give you some direction
in what needs to be done.
The following user(s) said Thank You: sk_linuxcnc

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

Time to create page: 0.063 seconds
Powered by Kunena Forum