hostmot2 stepgen step_type 7 for 7i76e pins
21 Mar 2021 17:02 #203134
by jackh
hostmot2 stepgen step_type 7 for 7i76e pins was created by jackh
How are (bit) stepgen.<chan>.phase-X made available as a pin with 7i76e hostmot2 built in stepgens?
Using setp hm2_7i76e.0.stepgen.00.step_type 7 (or 8) does not seem to give me the phase-N pins with halcmd show pin
The intent is control of a bi-polar stepper motor using 2 A3959 full bridge driver chips on an existing pcb.
This is what was in mind for new signals and .hal connections:
#Vref-A current
net XSA <= hm2.7i76.0.stepgen.00. phase-A
net XSA => hm2.7i76.0.stepgen.00.pin-xx-out
#Phase-1 Direction
net XSDIR <= hm2.7i76.0.stepgen.00.phase-B
net XSDIR => hm2.7i76.0.stepgen.00.pin-xx-out
#Vref-B Current
net XCB <= hm2.7i76.0.stepgen.00. phase-C
net XCB => hm2.7i76.0.stepgen.00.pin-xx-out
#Phase-2 Direction
net XCDIR <= hm2.7i76.0.stepgen.00.phase-D
net XCDIR => hm2.7i76.0.stepgen.00.pin-xx-out
Using setp hm2_7i76e.0.stepgen.00.step_type 7 (or 8) does not seem to give me the phase-N pins with halcmd show pin
The intent is control of a bi-polar stepper motor using 2 A3959 full bridge driver chips on an existing pcb.
This is what was in mind for new signals and .hal connections:
#Vref-A current
net XSA <= hm2.7i76.0.stepgen.00. phase-A
net XSA => hm2.7i76.0.stepgen.00.pin-xx-out
#Phase-1 Direction
net XSDIR <= hm2.7i76.0.stepgen.00.phase-B
net XSDIR => hm2.7i76.0.stepgen.00.pin-xx-out
#Vref-B Current
net XCB <= hm2.7i76.0.stepgen.00. phase-C
net XCB => hm2.7i76.0.stepgen.00.pin-xx-out
#Phase-2 Direction
net XCDIR <= hm2.7i76.0.stepgen.00.phase-D
net XCDIR => hm2.7i76.0.stepgen.00.pin-xx-out
Please Log in or Create an account to join the conversation.
21 Mar 2021 17:30 #203136
by PCW
Replied by PCW on topic hostmot2 stepgen step_type 7 for 7i76e pins
The hardware stepgen in hostmot2 does not have the built-in numbered
modes that LinuxCNCs stepgen component has. Instead it has quadrature
and table driven output modes.
Also note that stepgen step types 7 and 8 are really just quadrature
so by using the 7I76Es inverted outputs, you can get an equivalent
of the stepgens mode 7 and 8 using a single 7I76E step/dir connector
No hal pin access to stepgen pins is needed, just setting the selected stepgen
mode to quadrature should be sufficient (step_type=2)
modes that LinuxCNCs stepgen component has. Instead it has quadrature
and table driven output modes.
Also note that stepgen step types 7 and 8 are really just quadrature
so by using the 7I76Es inverted outputs, you can get an equivalent
of the stepgens mode 7 and 8 using a single 7I76E step/dir connector
No hal pin access to stepgen pins is needed, just setting the selected stepgen
mode to quadrature should be sufficient (step_type=2)
The following user(s) said Thank You: jackh
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds