PlasmaC questions new setup

More
14 Jun 2020 08:15 #171576 by tecno
Replied by tecno on topic PlasmaC questions new setup

3:rd but still novice in LCNC world

Yes, 3rd and ...... wait, what?
:)


Old fart - slower learner but still the hunger of learning more. Problem is memory ;)

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

More
14 Jun 2020 08:19 - 14 Jun 2020 08:24 #171577 by tecno
Replied by tecno on topic PlasmaC questions new setup
If I need to edit IO in HAL is this to be done in base config?
Does plasmaC read the base HAL every start?
Last edit: 14 Jun 2020 08:24 by tecno. Reason: text change

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

More
14 Jun 2020 08:25 - 14 Jun 2020 08:25 #171579 by phillc54
You need to edit the ini and HAL that PlasmaC created.

The base ini and base HAL are only kept as a backup in case, PlasmaC never reads them.
Last edit: 14 Jun 2020 08:25 by phillc54.
The following user(s) said Thank You: tecno

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

More
14 Jun 2020 09:08 #171582 by tecno
Replied by tecno on topic PlasmaC questions new setup
Tommylight

yesterday you were so kind an prepared a gcode file with 0,0,0 down left corner for me but I cannot find that.

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

More
14 Jun 2020 09:14 #171585 by phillc54
The following user(s) said Thank You: tecno

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

More
14 Jun 2020 11:02 - 14 Jun 2020 11:02 #171587 by tecno
Replied by tecno on topic PlasmaC questions new setup
How do I invert this?

# --- Float-head---
net float-head<= hm2_7i96.0.gpio.004.in

-not does not work = will not load LCNC
Last edit: 14 Jun 2020 11:02 by tecno.

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

More
14 Jun 2020 11:06 #171588 by phillc54
It should still load but the float led would be on all the time.

I think it is in_not

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

More
14 Jun 2020 11:37 #171591 by tecno
Replied by tecno on topic PlasmaC questions new setup
In tecnoplasma HAL
# --- Float-head---
net float-head<= hm2_7i96.0.gpio.004.in

In tecnoplasma-connections HAL
addf debounce.0 servo-thread# --- Float-head---
net float-head<= hm2_7i96.0.gpio.004.in

#***** 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.2.pos-fb => plasmac.axis-z-position

net plasmac:arc-voltage-in hm2_7i96.0.encoder.00.velocity => plasmac.arc-voltage-in
net plasmac:float-switch hm2_7i96.0.gpio.004.in => debounce.0.0.in

Terminal
hm2/hm2_7i96.0: registered
sysctl: cannot stat /proc/sys/net/ipv6/conf/eth0/disable_ipv6: Filen eller katalogen finns inte
hm2_eth: ERROR: Failed to execute '/sbin/sysctl -q net.ipv6.conf.eth0.disable_ipv6=1'
twopass: Error in file ./tecnoplasma_connections.hal:
Pin 'hm2_7i96.0.gpio.004.in' was already linked to signal 'float-head<='
Shutting down and cleaning up LinuxCNC...

I can not solve this as is but I made an error connecting the switch as NC and it should have been NO as it is now.

Z works OK = homing correctly and moving Up/Down with keyboard.
Once in plasmaC it started moving in wrong direction if that has to do with NC/NO on the float switch?

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

More
14 Jun 2020 12:00 #171593 by phillc54
Your float head should NOT be connected in tecnoplasma HAL, all plasma connection are done by the Configurator in the tecnoplasma-connections HAL file. It should be something like:
# 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

#***** debounce for the float switch *****
# the lower the delay here the better
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 next line needs to be the joint associated with the Z axis
net plasmac:axis-position joint.2.pos-fb => plasmac.axis-z-position

net plasmac:arc-voltage-in hm2_7i96.0.encoder.00.velocity => plasmac.arc-voltage-in
net plasmac:float-switch hm2_7i96.0.gpio.004.in_not => debounce.0.0.in
# net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in
# net plasmac:ohmic-probe {YOUR OHMIC PROBE PIN} => debounce.0.2.in
# net plasmac:ohmic-enable plasmac.ohmic-enable  => {YOUR OHMIC ENABLE PIN}
net plasmac:torch-on => hm2_7i96.0.ssr.00.out-00

# 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
setp plasmac.multi-tool 0
# net plasmac:scribe-arm       plasmac.scribe-arm       => ***YOUR_SCRIBE_ARMING_OUTPUT***
# net plasmac:scribe-on        plasmac.scribe-on        => ***YOUR_AIR_SCRIBE_ON_OUTPUT***


I had ipv6 disabled but forgot hm2_eth uses it so in /boot/cmdline.txt delete the ipv6.disable=1 off the end.

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

More
14 Jun 2020 12:42 #171598 by tecno
Replied by tecno on topic PlasmaC questions new setup

Your float head should NOT be connected in tecnoplasma HAL, all plasma connection are done by the Configurator in the tecnoplasma-connections HAL file. It should be something like:
# 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

#***** debounce for the float switch *****
# the lower the delay here the better
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 next line needs to be the joint associated with the Z axis
net plasmac:axis-position joint.2.pos-fb => plasmac.axis-z-position

net plasmac:arc-voltage-in hm2_7i96.0.encoder.00.velocity => plasmac.arc-voltage-in
net plasmac:float-switch hm2_7i96.0.gpio.004.in => debounce.0.0.in
# net plasmac:breakaway {YOUR BREAKAWAY PIN} => debounce.0.1.in
# net plasmac:ohmic-probe {YOUR OHMIC PROBE PIN} => debounce.0.2.in
# net plasmac:ohmic-enable plasmac.ohmic-enable  => {YOUR OHMIC ENABLE PIN}
net plasmac:torch-on => hm2_7i96.0.ssr.00.out-00

# 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
setp plasmac.multi-tool 0
# net plasmac:scribe-arm       plasmac.scribe-arm       => ***YOUR_SCRIBE_ARMING_OUTPUT***
# net plasmac:scribe-on        plasmac.scribe-on        => ***YOUR_AIR_SCRIBE_ON_OUTPUT***


I had ipv6 disabled but forgot hm2_eth uses it so in /boot/cmdline.txt delete the ipv6.disable=1 off the end.



I made some cable surgery and fixed the float switch to NO >>>> net plasmac:float-switch hm2_7i96.0.gpio.004.in

Now the leds on 7i96 show correct switch that is head down no led

But no longer is the led in plasmaC showing switch status. So I must have messed up something ;)

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

Moderators: snowgoer540
Time to create page: 0.509 seconds
Powered by Kunena Forum