- Posts: 1850
- Thank you received: 0
Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
9 years 3 months ago #96640
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Thanks Rod,
Starting to pick up pieces here and there how all this works, I will give this code a whirl and see how it goes.
Just need to collect my bones so I can get moving around a bit as I had a tough night with cramps in the legs
Cheers
Bengt
Starting to pick up pieces here and there how all this works, I will give this code a whirl and see how it goes.
Just need to collect my bones so I can get moving around a bit as I had a tough night with cramps in the legs
Cheers
Bengt
Please Log in to join the conversation.
9 years 3 months ago #96642
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
OK, rewired the brake and now connected to Output 14
Edit HAL and got first error on loadrt timedelay count=1, names=brake_delay === Comma
Next error after taking comma away is === count= and names= are mutually exclusive
Any hints on what to edit/add ??
Edit HAL and got first error on loadrt timedelay count=1, names=brake_delay === Comma
Next error after taking comma away is === count= and names= are mutually exclusive
Any hints on what to edit/add ??
Please Log in to join the conversation.
9 years 3 months ago #96643
by andypugh
Replied by andypugh on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
You have to either use "count=" to say how many you want, or use names= with a list of as many names as you require of the component.
So, you probably just want:
The alternative format is
So, you probably just want:
Code:
loadrt timedelay names=brake_delay
addf brake_delay servo_thread
The alternative format is
Code:
oadrt timedelay count=1
addf timedelay.0 servo_thread
Please Log in to join the conversation.
9 years 3 months ago #96646
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Small syntax error = servo_thread corrected to servo-tread
But next one is like this
But next one is like this
Attachment not found
Please Log in to join the conversation.
9 years 3 months ago #96653
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Found a partial problem, now LCNC starts but no delay or activation of Output 14 occurs.
Hal lines now:
# --- MACHINE-IS-ENABLED = POWER UP SERVODRIVES ---
net machine-is-enabled hm2_7i76e.0.7i76.0.0.output-11
# --- BRAKE ON 5 seconds after machine on , off with machine off
setp brake_delay.on-delay 5.0
setp brake_delay.off-delay 0.0
net bdelay-in brake_delay.in
# brake is connected to output 14 so turn it on with delay.
net bdelay-out brake_delay.out hm2_7i76e.0.7i76.0.0.output-14
Suggested HAL lines that stops
net machine-is-enabled <= motion.motion-enabled ================= took this out
net machine-is-enabled => hm2_7i76e.0.7i76.0.0.output-11
# --- BRAKE ON 5 seconds after machine on , off with machine off
setp brake_delay.on-delay 5.0
setp brake_delay.off-delay 0.0
net bdelay-in brake_delay.in <= machine-is-enabled ================= took this out <= machine-is-enabled
# brake is connected to output 14 so turn it on with delay.
net bdelay-out brake_delay.out => hm2_7i76e.0.7i76.0.0.output-14
Hal lines now:
# --- MACHINE-IS-ENABLED = POWER UP SERVODRIVES ---
net machine-is-enabled hm2_7i76e.0.7i76.0.0.output-11
# --- BRAKE ON 5 seconds after machine on , off with machine off
setp brake_delay.on-delay 5.0
setp brake_delay.off-delay 0.0
net bdelay-in brake_delay.in
# brake is connected to output 14 so turn it on with delay.
net bdelay-out brake_delay.out hm2_7i76e.0.7i76.0.0.output-14
Suggested HAL lines that stops
net machine-is-enabled <= motion.motion-enabled ================= took this out
net machine-is-enabled => hm2_7i76e.0.7i76.0.0.output-11
# --- BRAKE ON 5 seconds after machine on , off with machine off
setp brake_delay.on-delay 5.0
setp brake_delay.off-delay 0.0
net bdelay-in brake_delay.in <= machine-is-enabled ================= took this out <= machine-is-enabled
# brake is connected to output 14 so turn it on with delay.
net bdelay-out brake_delay.out => hm2_7i76e.0.7i76.0.0.output-14
Please Log in to join the conversation.
9 years 3 months ago #96658
by rodw
Replied by rodw on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
I'm glad Andy helped out while I was sleeping! Sorry about the errors in my example
This line was already in your hal file but much further down. It can only appear once.
I just included it in the example for completeness. So taking one instance out was the right thing to do.
motion.motion-enabled is what will turn on with your machine. You need to send a value to brake_delay.in for brake_delay.out to have any signal to send to your output pin. I like to keep signlas close to where they are used.
Instead of this,
try:
Sorry about that. I still don't know enough about hal to just write it without looking at an example. This should be the correct syntax now
This line was already in your hal file but much further down. It can only appear once.
Code:
net machine-is-enabled <= motion.motion-enabled ================= took this out
motion.motion-enabled is what will turn on with your machine. You need to send a value to brake_delay.in for brake_delay.out to have any signal to send to your output pin. I like to keep signlas close to where they are used.
Instead of this,
Code:
net bdelay-in brake_delay.in <= machine-is-enabled ================= took this out <= machine-is-enabled
Code:
net bdelay-in machine-is-enabled => brake_delay.in
Sorry about that. I still don't know enough about hal to just write it without looking at an example. This should be the correct syntax now
Please Log in to join the conversation.
9 years 3 months ago #96660
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Gday Rod,
will give it a whirl tomorrow after my night of sleep soon now just looking on TV for a while,
Cheers
will give it a whirl tomorrow after my night of sleep soon now just looking on TV for a while,
Cheers
Please Log in to join the conversation.
9 years 3 months ago #96662
by rodw
Replied by rodw on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Ooops, I think it is
Code:
net machine-is-enabled => brake_delay.in
Please Log in to join the conversation.
9 years 3 months ago #96677
by tecno
Replied by tecno on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
OK now I have motion on 3 axis (A-axis is coming in near future) and the brake works as wanted. Thanks Rod and Andy.
As you can see I get some errors so fine tuning of motor parameters needs some editing.
Z homing is going in wrong direction,
Attachment not found
Attachment not found
Attachment not found
As you can see I get some errors so fine tuning of motor parameters needs some editing.
Z homing is going in wrong direction,
Please Log in to join the conversation.
9 years 3 months ago #96678
by rodw
Replied by rodw on topic Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.
Awesome! Homing direction is controlled by the sign of the various homing velocities in the .INI file.
I'll let Andy or someone respond about the errors but I think it will be something to do with these
You might like to read up on them as they are well covered in the documentation. Step scale sounds very large. 5000 steps per mm? if correct and you have microstepping settings, try reducing it.
Code:
HOME_SEARCH_VEL = -1.000000
HOME_LATCH_VEL = -0.500000
HOME_FINAL_VEL = 0.000000
I'll let Andy or someone respond about the errors but I think it will be something to do with these
Code:
DIRSETUP = 1000
DIRHOLD = 1000
STEPLEN = 1000
STEPSPACE = 1000
# 1000 original setting
STEP_SCALE = 5000.0
You might like to read up on them as they are well covered in the documentation. Step scale sounds very large. 5000 steps per mm? if correct and you have microstepping settings, try reducing it.
Please Log in to join the conversation.
Time to create page: 0.257 seconds
