Configure PlasmaC with only one BOB

More
5 years 5 months ago #209091 by Giuseppe
oh man, this makes me crazy.

When i try net all-home => debounce.0.0.in

then i get the error debounce0.0.in is allreday linked

The contacts i can't change.because the float switch is triggering my home switch then.
i have to invert the float switch signal in plasmac

Please Log in to join the conversation.

More
5 years 5 months ago #209182 by phillc54
If you add this line then you would need to comment out the earlier line that links debounce.0.0.in

How are your home switches and float switch wired?

Please Log in to join the conversation.

More
5 years 5 months ago #209196 by Giuseppe
What debounce mean? For what it is?

Please Log in to join the conversation.

More
More
5 years 5 months ago #209239 by Giuseppe
My home switches are induction switches. I connected them with some relays.
The relays are connected to the input pins of my board.

I used pin 10 and pin 11 for homing.

I used a microswitch for the floating switch. This one is connected to pin 11 of my homing.

This is the current hal files.
Code:
# Generated by stepconf 1.1 at Fri Dec 25 19:31:57 2020 # If you make changes to this file, they will be # overwritten when you run stepconf again loadrt [KINS]KINEMATICS loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES loadrt hal_parport cfg="0 out" setp parport.0.reset-time 5000 loadrt stepgen step_type=0,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-rpm <= spindle.0.speed-out # net spindle-cmd-rpm-abs <= spindle.0.speed-out-abs # net spindle-cmd-rps <= spindle.0.speed-out-rps # net spindle-cmd-rps-abs <= spindle.0.speed-out-rps-abs # net spindle-at-speed => spindle.0.at-speed net xstep => parport.0.pin-02-out setp parport.0.pin-02-out-reset 1 setp parport.0.pin-03-out-invert 1 net xdir => parport.0.pin-03-out net ystep => parport.0.pin-04-out setp parport.0.pin-04-out-reset 1 setp parport.0.pin-05-out-invert 1 net ydir => parport.0.pin-05-out net zstep => parport.0.pin-06-out setp parport.0.pin-06-out-reset 1 setp parport.0.pin-07-out-invert 1 net zdir => parport.0.pin-07-out net y1step => parport.0.pin-08-out setp parport.0.pin-08-out-reset 1 setp parport.0.pin-09-out-invert 1 net y1dir => parport.0.pin-09-out net xenable => parport.0.pin-14-out net all-home <= parport.0.pin-11-in-not net home-y1 <= parport.0.pin-10-in-not setp stepgen.0.position-scale [JOINT_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 [JOINT_0]STEPGEN_MAXACCEL net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb net xstep <= stepgen.0.step net xdir <= stepgen.0.dir net xenable joint.0.amp-enable-out => stepgen.0.enable net all-home => joint.0.home-sw-in setp stepgen.1.position-scale [JOINT_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 [JOINT_1]STEPGEN_MAXACCEL net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb net ystep <= stepgen.1.step net ydir <= stepgen.1.dir net yenable joint.1.amp-enable-out => stepgen.1.enable net home-y1 => joint.1.home-sw-in setp stepgen.2.position-scale [JOINT_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 [JOINT_1]STEPGEN_MAXACCEL net y1pos-cmd joint.2.motor-pos-cmd => stepgen.2.position-cmd net y1pos-fb stepgen.2.position-fb => joint.2.motor-pos-fb net y1step <= stepgen.2.step net y1dir <= stepgen.2.dir net y1enable joint.2.amp-enable-out => stepgen.2.enable net all-home => joint.2.home-sw-in setp stepgen.3.position-scale [JOINT_3]SCALE setp stepgen.3.steplen 1 setp stepgen.3.stepspace 0 setp stepgen.3.dirhold 35000 setp stepgen.3.dirsetup 35000 setp stepgen.3.maxaccel [JOINT_3]STEPGEN_MAXACCEL net zpos-cmd joint.3.motor-pos-cmd => stepgen.3.position-cmd net zpos-fb stepgen.3.position-fb => joint.3.motor-pos-fb net zstep <= stepgen.3.step net zdir <= stepgen.3.dir net zenable joint.3.amp-enable-out => stepgen.3.enable net all-home => joint.3.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 # toolchange passthrough net tool:change iocontrol.0.tool-change => iocontrol.0.tool-changed net tool:prep iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Code:
# Keep your plasmac i/o connections here to prevent them from # being overwritten by updates or pncconf/stepconf changes # Other customisations may be placed here as well # This file is built by the configurator in your configuration directory #***** debounce for the float, ohmic and breakaway switches ***** # the lower the delay here the better # each 1 is a 0.001mm (0.00004") increase in probed height result loadrt debounce cfg=3 setp debounce.0.delay 5 addf debounce.0 servo-thread #***** arc voltage lowpass cutoff frequency ***** #***** change to the cutoff frequency you require ***** setp plasmac.lowpass-frequency 0 #***** the joint associated with the Z axis ***** net plasmac:axis-position joint.3.pos-fb => plasmac.axis-z-position net plasmac:arc-ok-in parport.0.pin-15-in-not => plasmac.arc-ok-in # net plasmac:float-switch {YOUR FLOAT SWITCH PIN} => debounce.0.0.in # net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in net plasmac:torch-on => parport.0.pin-17-out net plasmac:ohmic-enable => parport.0.pin-16-out net plasmac:move-down parport.0.pin-13-in => plasmac.move-down net plasmac:move-up parport.0.pin-12-in => plasmac.move-up ### THIS NEEDS TO GO TO AN PARPORT OUTPUT TO ENABLE THE OHMIC PROBE CIRCUIT ### # a 1 here allows multiple tools to be used # gcode M3 S1 needs to be changed to: # M3 $0 S1 for the plasma torch # M3 $1 S1 for the scribe # M3 $2 S1 for spotting setp plasmac.multi-tool 0 # net plasmac:scribe-arm plasmac.scribe-arm => ***YOUR_SCRIBE_ARMING_OUTPUT*** # net plasmac:scribe-on plasmac.scribe-on => ***YOUR_SCRIBE_ON_OUTPUT***

With this configuration the homing works fine.

If i make this change "net plasmac:float-switch parport.0.pin-11-in-not => debounce.0.0.in"

Then i get the error that the pin is linked to all-home.
If i change all-home to "all-home => debounce.0.0.in"
then i get the error "debounce is linked to"

Please Log in to join the conversation.

Time to create page: 1.170 seconds
Powered by Kunena Forum