Newbie setup Gmocappy setup

More
11 years 1 month ago #62967 by newbynobi
Replied by newbynobi on topic Newbie setup Gmocappy setup
you have not connected the gmoccapy toolchange pins.
I have not seen the connection of the probe

Please test with the file gmoccapy_2_tools_with_cutter_radius_compensation.ngc located in the examples folder.

Norbert

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

More
11 years 1 month ago #62969 by Stonefire
Replied by Stonefire on topic Newbie setup Gmocappy setup
Hi
Newbynobi

It's connected to pin 13, but I'm not sure how to set it up in the .hal-file.

The documentation looks like:

net probe motion.probe-input <= parport.0.pin-15-in

Do I just have to change it to :

net probe motion.probe-input <= parport.0.pin-13-in ??

Sincerly
Stonefire

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

More
11 years 1 month ago - 11 years 1 month ago #62985 by Stonefire
Replied by Stonefire on topic Newbie setup Gmocappy setup
Hi

My .hal-file looks like:


File Attachment:

File Name: Steen_CNC.hal
File Size:3 KB

# Generated by stepconf 1.1 at Mon Aug 10 21:11:06 2015
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hal_parport cfg="0x378 out"
setp parport.0.reset-time 5000
loadrt stepgen step_type=0,0,0

addf parport.0.read base-thread
addf stepgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
net spindle-cmd <= motion.spindle-speed-out
net spindle-at-speed => motion.spindle-at-speed

net probe-in => motion.probe-input

net ydir => parport.0.pin-02-out
net ystep => parport.0.pin-03-out
setp parport.0.pin-03-out-reset 1
setp parport.0.pin-04-out-invert 1
net xdir => parport.0.pin-04-out
net xstep => parport.0.pin-05-out
setp parport.0.pin-05-out-reset 1
setp parport.0.pin-06-out-invert 1
net zdir => parport.0.pin-06-out
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
net adir => parport.0.pin-08-out
net astep => parport.0.pin-09-out
setp parport.0.pin-09-out-reset 1
net xenable => parport.0.pin-16-out
net all-home <= parport.0.pin-10-in-not
net probe-in <= parport.0.pin-13-in-not

setp stepgen.0.position-scale [AXIS_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable axis.0.amp-enable-out => stepgen.0.enable
net all-home => axis.0.home-sw-in

setp stepgen.1.position-scale [AXIS_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable axis.1.amp-enable-out => stepgen.1.enable
net all-home => axis.1.home-sw-in

setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 35000
setp stepgen.2.dirsetup 35000
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.2.amp-enable-out => stepgen.2.enable
net all-home => axis.2.home-sw-in

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

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed 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



Sincerly
Stonefire
Attachments:
Last edit: 11 years 1 month ago by Stonefire.

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

More
11 years 1 month ago #63035 by newbynobi
Replied by newbynobi on topic Newbie setup Gmocappy setup
Yes, you have to connect the pin like you mentioned, and get the manuell tool stuff out of the hal and connect the gmoccapy hal pin like mentioned in the doku!

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

More
11 years 1 month ago #63039 by Stonefire
Replied by Stonefire on topic Newbie setup Gmocappy setup
Hi Newbynobi

Thanks for your reply.

Just erase the last 5 lines ?

I'll look into it tomorrow. It is late...

I'll be in touch...

Sincerly
Stonefire

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

More
11 years 3 weeks ago #63613 by Stonefire
Replied by Stonefire on topic Newbie setup Gmocappy setup
Hi Newbynobi

Erasing til lines did'nt do the trick...

Any surgestions ?

Sincerly
Stonefire

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

Moderators: newbynobi, HansU
Time to create page: 0.153 seconds
Powered by Kunena Forum