- Configuring LinuxCNC
- Advanced Configuration
- Spindle Orient dual mode (velocity and position) with parport
Spindle Orient dual mode (velocity and position) with parport
18 May 2021 10:23 - 18 May 2021 10:24 #209325
by fery15sty
Can anyone help me ..
how to make a spindle orient configuration with dual mode velocity and position using parport
My expected way of working:
- velocity mode
example: M3 S300
The spindle rotates continuously at a speed of 300rpm
- position mode
example: M19 R90
The spindle will rotate by 90 deg
Hardware that I use:
1. Chinese 5axis breakout-board (Parallel port)
2. Encoder (ABZ)
3. Stepper motor
4.TB6600 stepper driver
5. PSU for TB6600
Maybe someone can help me?
how to make a spindle orient configuration with dual mode velocity and position using parport
My expected way of working:
- velocity mode
example: M3 S300
The spindle rotates continuously at a speed of 300rpm
- position mode
example: M19 R90
The spindle will rotate by 90 deg
Hardware that I use:
1. Chinese 5axis breakout-board (Parallel port)
2. Encoder (ABZ)
3. Stepper motor
4.TB6600 stepper driver
5. PSU for TB6600
Maybe someone can help me?
Last edit: 18 May 2021 10:24 by fery15sty.
Please Log in or Create an account to join the conversation.
19 May 2021 12:40 #209498
by andypugh
Replied by andypugh on topic Spindle Orient dual mode (velocity and position) with parport
One way to do this is with two separate step generators, one for spindle / velocity mode and one for position mode.
Alternatively, a single step generator in velocity mode and two different control inputs to that can also work (direct spindle speed and position via a PID component). In the latter case you can just add together the two inputs before sending to the velocity command pin.
Enable / disable the position PID using the spindle.0.orient* pins.
But, you will need a spindle encoder.
Alternatively, a single step generator in velocity mode and two different control inputs to that can also work (direct spindle speed and position via a PID component). In the latter case you can just add together the two inputs before sending to the velocity command pin.
Enable / disable the position PID using the spindle.0.orient* pins.
But, you will need a spindle encoder.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Spindle Orient dual mode (velocity and position) with parport
Time to create page: 0.068 seconds