Gantry machine progress

More
16 Aug 2017 16:09 #97585 by Yannis
Replied by Yannis on topic Gantry machine progres

File Attachment:

File Name: my_LinuxCN...8-16.hal
File Size:15 KB

File Attachment:

File Name: my_LinuxCN...8-16.ini
File Size:5 KB

the latest HAL and INI files
Attachments:

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

More
16 Aug 2017 17:45 #97589 by andypugh
Replied by andypugh on topic Gantry machine progres
You need to be consistent with the signal names You have
# --- HOME-X ---
net home-x     <=  hm2_5i25.0.7i77.0.0.input-01

# --- BOTH-X ---
net both-x     <=  hm2_5i25.0.7i77.0.0.input-02


...
...

# ---setup home / limit switch signals---

net x-home-sw     =>  joint.0.home-sw-in
net x-neg-limit     =>  joint.0.neg-lim-sw-in
net x-pos-limit     =>  joint.0.pos-lim-sw-in

You need
net  home-x     =>  joint.0.home-sw-in
net both-x     =>  joint.0.neg-lim-sw-in
net both-x    =>  joint.0.pos-lim-sw-in

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

More
16 Aug 2017 18:55 #97592 by Yannis
Replied by Yannis on topic Gantry machine progres
thanks andypugh
today i run my first programs(i have the motors unhooked from the the timing belts)
first the Linux cnc logo:laugh:
after that i bigger program:laugh: :laugh: :laugh:
the motors are sniping great i play with the feed rate everything looks great
i wool like to now more about the g code
is there a limitation for the size of the g code files?
can i run a program from the middle or a line that i will specify?
how i will make the program start and wait until the spindle get the full speed of rotation?

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

More
16 Aug 2017 23:22 #97599 by andypugh
Replied by andypugh on topic Gantry machine progres

is there a limitation for the size of the g code files?

It is limited only by your PC memory, but G-code is smalls so this is almost never a problem.

can i run a program from the middle or a line that i will specify?

Yes, but it's troublesome. The problem is that the machine state when you start from a line is likely not to be the same as when you got there the first time. The GUIs allow it, but use with _extreme_ care. If you start on a line assuming G1 mode and the mode is G0 and the spindle is off, that's bad.

how i will make the program start and wait until the spindle get the full speed of rotation?

You need to connect an input to the HAL pin "motion.spindle.at-speed" and then cutting moves are paused until that pin goes true.

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

More
17 Aug 2017 06:42 - 17 Aug 2017 06:43 #97611 by Yannis
Replied by Yannis on topic Gantry machine progres
with little copy paste the home and limit signals are working ok
but i have the same problem with the
e-stop input and
the spindle output
# external input signals

# --- ESTOP-EXT ---
net estop-ext <= hm2_5i25.0.7i77.0.0.input-00

# ---estop signals---

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in


# external output signals

# --- SPINDLE-ON ---
net spindle-on hm2_5i25.0.7i77.0.0.output-00


*******************
# SPINDLE S
#*******************

setp pid.s.Pgain [SPINDLE_9]P
setp pid.s.Igain [SPINDLE_9]I
setp pid.s.Dgain [SPINDLE_9]D
setp pid.s.bias [SPINDLE_9]BIAS
setp pid.s.FF0 [SPINDLE_9]FF0
setp pid.s.FF1 [SPINDLE_9]FF1
setp pid.s.FF2 [SPINDLE_9]FF2
setp pid.s.deadband [SPINDLE_9]DEADBAND
setp pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp pid.s.error-previous-target true

net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output

# ---setup spindle control signals---

net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm <= motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true


#******************************
# connect miscellaneous signals
#******************************

# ---HALUI signals---

net axis-select-x halui.axis.x.select
net jog-x-pos halui.axis.x.plus
net jog-x-neg halui.axis.x.minus
net jog-x-analog halui.axis.x.analog
net x-is-homed halui.joint.0.is-homed
net axis-select-y halui.axis.y.select
net jog-y-pos halui.axis.y.plus
net jog-y-neg halui.axis.y.minus
net jog-y-analog halui.axis.y.analog
net y-is-homed halui.joint.1.is-homed
net axis-select-z halui.axis.z.select
net jog-z-pos halui.axis.z.plus
net jog-z-neg halui.axis.z.minus
net jog-z-analog halui.axis.z.analog
net z-is-homed halui.joint.3.is-homed
net axis-select-c halui.axis.c.select
net jog-c-pos halui.axis.c.plus
net jog-c-neg halui.axis.c.minus
net jog-c-analog halui.axis.c.analog
net c-is-homed halui.joint.4.is-homed
net jog-selected-pos halui.axis.selected.plus
net jog-selected-neg halui.axis.selected.minus
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
net machine-is-on halui.machine.is-on
net jog-speed halui.axis.jog-speed
net MDI-mode halui.mode.is-mdi

# ---coolant signals---

net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood

# ---probe signal---

net probe-in => motion.probe-input

# ---motion control signals---

net in-position <= motion.in-position
net machine-is-enabled <= motion.motion-enabled

# ---digital in / out signals---

# ---estop signals---

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

# ---manual tool change signals---

loadusr -W hal_manualtoolchange
net tool-change-request iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-change-confirmed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
the hal file is the same as the last post
Last edit: 17 Aug 2017 06:43 by Yannis.

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

More
17 Aug 2017 13:39 #97624 by Yannis
Replied by Yannis on topic Gantry machine progres
Hi again
i replace the home and the limit as suggested
the limit are working fine
the home are not working
do i have to change some thing else ?

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

More
17 Aug 2017 15:05 #97640 by andypugh
Replied by andypugh on topic Gantry machine progres
How are they not working? (What happens, what did you expect to happen?)

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

More
17 Aug 2017 17:15 #97661 by Yannis
Replied by Yannis on topic Gantry machine progres
hi again

File Attachment:

File Name: my_LinuxCN...8-17.hal
File Size:15 KB

File Attachment:

File Name: my_LinuxCN...8-17.ini
File Size:5 KB

i try several different adjustments in the ini file with no success
the main problem is that when the first home limit is triggered in the y axis the motor turn to the opposite direction immediately
it is not waiting the second motor to trigger the home limit and the together to rotate to the offset
is there something wrong in the ini file or sud i look something else?
thanks
Attachments:

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

More
18 Aug 2017 03:31 #97686 by rodw
Replied by rodw on topic Gantry machine progres
I would delete the linuxcnc.var file as sometimes its tripped me up. But I think the problem could well be that you have mixed up some wiring somewhere so Linuxcnc thinks the joint is already homed. I had this once when I plugged stepper controller wiring back in in the wrong order. That meant the home switches were not where I thought they were. Slowing the homing velocities down so they were super slow helped me diagnose he fault as you could see what was going in when homing.
The following user(s) said Thank You: Yannis

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

More
18 Aug 2017 05:34 #97689 by Yannis
Replied by Yannis on topic Gantry machine progres
Hi
rodw replied I would delete the linuxcnc.var file
where can i find the linux var.??

But I think the problem could well be that you have mixed up some wiring somewhere so Linuxcnc thinks the joint is already homed

the home limit switch send to the 7i77 analog card 24volts

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

Time to create page: 0.089 seconds
Powered by Kunena Forum