Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.

More
29 Jul 2017 08:41 #96640 by tecno
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

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 12:48 #96642 by tecno
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 ??

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 12:54 #96643 by andypugh
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:
loadrt timedelay names=brake_delay
addf brake_delay servo_thread


The alternative format is
oadrt timedelay count=1
addf timedelay.0 servo_thread
The following user(s) said Thank You: tecno

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 14:05 #96646 by tecno
Small syntax error = servo_thread corrected to servo-tread

But next one is like this

Attachments:

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 17:25 #96653 by tecno
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

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 20:09 #96658 by rodw
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.
net machine-is-enabled <= motion.motion-enabled ================= took this out
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,
net bdelay-in brake_delay.in <= machine-is-enabled ================= took this out <= machine-is-enabled
try:
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 or Create an account to join the conversation.

More
29 Jul 2017 20:47 - 29 Jul 2017 20:48 #96660 by tecno
Gday Rod,
will give it a whirl tomorrow after my night of sleep soon now just looking on TV for a while,

Cheers
Last edit: 29 Jul 2017 20:48 by tecno.

Please Log in or Create an account to join the conversation.

More
29 Jul 2017 21:04 #96662 by rodw
Ooops, I think it is
net machine-is-enabled => brake_delay.in

Please Log in or Create an account to join the conversation.

More
30 Jul 2017 11:02 #96677 by tecno
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.

File Attachment:

File Name: combimill_...7-30.ini
File Size:5 KB

File Attachment:

File Name: combimill_...7-30.hal
File Size:16 KB


As you can see I get some errors so fine tuning of motor parameters needs some editing.

Z homing is going in wrong direction,
Attachments:

Please Log in or Create an account to join the conversation.

More
30 Jul 2017 11:24 - 30 Jul 2017 11:25 #96678 by rodw
Awesome! Homing direction is controlled by the sign of the various homing velocities in the .INI file.
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
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.
Last edit: 30 Jul 2017 11:25 by rodw.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.199 seconds
Powered by Kunena Forum