7i96 step + or -, + other question
- PCW
- Away
- Moderator
Less
More
- Posts: 17937
- Thank you received: 4790
12 Jan 2020 18:41 #154703
by PCW
Replied by PCW on topic 7i96 step + or -, + other question
First you need to enable just 4 (or 3) stepgens
Then you would need to:
# set step4 pins GPIO mode to output
setp hm2_7i96.0.gpio.025.is_output true
# link software PWM pin to step4 GPIO bit
net lowfreqpwm hm2_7i96.0.gpio.025.out pwmgen.0.pwm
You would also need scale the PWM and link the spindle speed command to the PWM
generators value pin
Then you would need to:
# set step4 pins GPIO mode to output
setp hm2_7i96.0.gpio.025.is_output true
# link software PWM pin to step4 GPIO bit
net lowfreqpwm hm2_7i96.0.gpio.025.out pwmgen.0.pwm
You would also need scale the PWM and link the spindle speed command to the PWM
generators value pin
The following user(s) said Thank You: Leon82
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 596
- Thank you received: 77
12 Jan 2020 18:55 #154706
by Leon82
Ok, I'll give it a shot.
Currently 0to3 are set for machine axis stepgens
Replied by Leon82 on topic 7i96 step + or -, + other question
First you need to enable just 4 (or 3) stepgens
Then you would need to:
# set step4 pins GPIO mode to output
setp hm2_7i96.0.gpio.025.is_output true
# link software PWM pin to step4 GPIO bit
net lowfreqpwm hm2_7i96.0.gpio.025.out pwmgen.0.pwm
You would also need scale the PWM and link the spindle speed command to the PWM
generators value pin
Ok, I'll give it a shot.
Currently 0to3 are set for machine axis stepgens
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 596
- Thank you received: 77
12 Jan 2020 19:24 - 12 Jan 2020 19:24 #154709
by Leon82
Replied by Leon82 on topic 7i96 step + or -, + other question
Just to clarify when you say enable you mean enable in hal? or is there a specific firmware that has to be flashed besides the two available in big John's tool
Last edit: 12 Jan 2020 19:24 by Leon82.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17937
- Thank you received: 4790
12 Jan 2020 19:44 #154714
by PCW
Replied by PCW on topic 7i96 step + or -, + other question
enable in hal (on the hostmot2 driver command line in the hal file)
The following user(s) said Thank You: Leon82
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 596
- Thank you received: 77
13 Jan 2020 02:03 #154734
by Leon82
Replied by Leon82 on topic 7i96 step + or -, + other question
thanks,
this is from the 7i96tool hal
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS)num_stepgens=[HOSTMOT2](STEPGENS)"sserial_port_0=[HOSTMOT2](SSERIAL_PORT)
i tried this stepgens=4
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS)num_stepgens=4"sserial_port_0=[HOSTMOT2](SSERIAL_PORT)
it looks like its loading the 5 step gens still, as i get an error output 25 not found
this is from halcmd show all
hm2_7i96.0.stepgen.04.direction.invert_output hm2_7i96.0.gpio.026.invert_output
hm2_7i96.0.stepgen.04.direction.is_opendrain hm2_7i96.0.gpio.026.is_opendrain
hm2_7i96.0.stepgen.04.step.invert_output hm2_7i96.0.gpio.025.invert_output
hm2_7i96.0.stepgen.04.step.is_opendrain hm2_7i96.0.gpio.025.is_opendrain
this is from the 7i96tool hal
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS)num_stepgens=[HOSTMOT2](STEPGENS)"sserial_port_0=[HOSTMOT2](SSERIAL_PORT)
i tried this stepgens=4
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS)num_stepgens=4"sserial_port_0=[HOSTMOT2](SSERIAL_PORT)
it looks like its loading the 5 step gens still, as i get an error output 25 not found
this is from halcmd show all
hm2_7i96.0.stepgen.04.direction.invert_output hm2_7i96.0.gpio.026.invert_output
hm2_7i96.0.stepgen.04.direction.is_opendrain hm2_7i96.0.gpio.026.is_opendrain
hm2_7i96.0.stepgen.04.step.invert_output hm2_7i96.0.gpio.025.invert_output
hm2_7i96.0.stepgen.04.step.is_opendrain hm2_7i96.0.gpio.025.is_opendrain
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17937
- Thank you received: 4790
13 Jan 2020 02:54 #154735
by PCW
Replied by PCW on topic 7i96 step + or -, + other question
Looks like that command line is busted somehow (missing spaces?)
and if num_stepgens is not specified it will enable all
It also looks like this should be done in the in file
and if num_stepgens is not specified it will enable all
It also looks like this should be done in the in file
The following user(s) said Thank You: Leon82
Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
Less
More
- Posts: 596
- Thank you received: 77
15 Jan 2020 01:05 #154873
by Leon82
Replied by Leon82 on topic 7i96 step + or -, + other question
Thank you,
I probably won't get to mess with it for a little while. But i think I will have to start there first
I probably won't get to mess with it for a little while. But i think I will have to start there first
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds