- Posts: 8
- Thank you received: 1
I saw your lathe. Yes, my servo could work with analog and step/dir. But my board 7i95T hasn't analog output. But this is not a problem (my spindle works via S3, M codes fine). Main issue for now is "when the spindle rotates in velocity mode pos-cmd change (stepgen module) it's value, but axis A (joint and pid modules) have old one". From LinuxCNC perspective Axis A have no action, but stepgen "somehow" changed it's position (because there is another module spindle and spindle.pid who send commands for velocity). To avoid this issue I'm making reset BEFORE using Axis A, and rotate to 0.0 AFTER using Axis A (so stepgen pos-cmd became 0.0, joint became 0.0, pid.a became 0.0). Then I making reset (block pos-cmd to change it's value) and start working with Spindle (velocity mode). So only in this case pid.a == joint == stepgen.pos-cmd == 0.0 EVEN is stepgen is rotating via Spindle commands.do you have a servo driver that can work in two independent modes step/dir (position), and analog input (velocity mode)? take a look at the video, I did it by introducing ``A `` as standard axis for changing the position, and the motor rotates like a classic lathe through the gcode M3 ``S``command by analog signal.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
That's correct. And I'm asking if is it possible not to take any action and just enable Spindle.Then a change to velocity mode is trivial. To maintain
position reference when changing back to C mode, you likely
need to home the C axis to index. Does the spindle have an encoder?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Stepgen has two connections. To Spidnle and Axis. That's why it has both feedbacks: velocity-fb and position-fb.I'm not sure I understand, the stepgen position feedback
should not be connected to anything when in spindle mode.
Please Log in or Create an account to join the conversation.