Configure PlasmaC with only one BOB

16 May 2021 13:11 #209091 by Giuseppe
oh man, this makes me crazy.

When i try net all-home =>

then i get the error 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 or Create an account to join the conversation.

16 May 2021 23:25 #209182 by phillc54
If you add this line then you would need to comment out the earlier line that links

How are your home switches and float switch wired?

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

17 May 2021 07:10 #209196 by Giuseppe
What debounce mean? For what it is?

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

17 May 2021 16:12 #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.
# 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 [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 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    =>

net xstep           =>
setp 1
setp 1
net xdir            =>

net ystep           =>
setp 1
setp 1
net ydir            =>

net zstep           =>
setp 1
setp 1
net zdir            =>

net y1step          =>
setp 1
setp 1
net y1dir           =>

net xenable         =>
net all-home        <=
net home-y1         <=

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
# 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  =>  plasmac.arc-ok-in

# net plasmac:float-switch  {YOUR FLOAT SWITCH PIN}  =>
# net plasmac:breakaway  {YOUR BREAKAWAY PIN}  =>

net plasmac:torch-on  		=>
net plasmac:ohmic-enable  	=>
net plasmac:move-down  	=>  	plasmac.move-down
net plasmac:move-up  	=>  	plasmac.move-up


# 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 =>"

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

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

Moderators: phillc54
Time to create page: 0.080 seconds
Powered by Kunena Forum