[solved] Tabs and panel will not load after editing the HAL file ???

More
02 Jun 2020 17:39 #169835 by rodw
Come on Tommy, you know the drill. Post up the output from the terminal :laugh:
When things like that happen to me and no error is reported I've usually done something really stupid like leaving out a required hal line or an error in loading a component.
The following user(s) said Thank You: tommylight

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

More
02 Jun 2020 20:16 #169864 by tommylight
here they are, screenshot and both configs

The one with THCAD in the name does not load tabs.
Attachments:

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

More
02 Jun 2020 23:59 #169889 by phillc54
I don't have a card here to test with so I used a sim HAL file instead of t2030p.hal and comment out the following lines in t2030p_connections.hal and it loaded up fine.
#net enc-phase-a <= [HMOT](CARD0).gpio.013.in_not
#net plasmac:arc-voltage-in      encoder.0.velocity                 => plasmac.arc-voltage-in
#net plasmac:float-switch [HMOT](CARD0).gpio.003.in_not => debounce.0.0.in
#net plasmac:torch-on => [HMOT](CARD0).gpio.007.out

I think you may need to change this line in t2030p.hal from:
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
to:
loadrt [EMCMOT]EMCMOT base_period_nsec=100000 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
and comment this line out in t2030p_connections.hal:
loadrt motmod base_period_nsec=100000
Maybe loading a second instance of motmod can cause this.

If it is not this then it must be something else in t2030p.hal
The following user(s) said Thank You: tommylight

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

More
03 Jun 2020 00:56 #169894 by tommylight

#net enc-phase-a <= [HMOT](CARD0).gpio.013.in_not
#net plasmac:arc-voltage-in encoder.0.velocity => plasmac.arc-voltage-in
#net plasmac:float-switch [HMOT](CARD0).gpio.003.in_not => debounce.0.0.in
#net plasmac:torch-on => [HMOT](CARD0).gpio.007.out
[/code]

Those are made by the configurator and they do work fine, except the encoder.0.velocity that i added, and that also works fine as the voltage is shown on screen.

I think you may need to change this line in t2030p.hal from:
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
to:
loadrt [EMCMOT]EMCMOT base_period_nsec=100000 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES

Those are reversed, but i do get why and how, thank you. Also works either way.

and comment this line out in t2030p_connections.hal:
loadrt motmod base_period_nsec=100000
Maybe loading a second instance of motmod can cause this.

Will check that, although that is a result of adding the encoder stuff to connections file and the issue occurring then moving encoder stuff to the main hal file.
More testing, tomorrow, 2:56AM here, time for some zzzzzzzzz
Thank you very much.

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

More
03 Jun 2020 18:52 #169973 by tommylight
Checked everything, twice, same issue, then while setting up the hardware encoder it occurred to me that the values for the THCAD offset and scale can not be set because the software encoder is encoder.0. while the hardware encoder is encoder.00. :)
Now i have working toma_thc and PlasmaC config for this machine, so when i get tired of waiting for retract of the Z axis i can switch over. :)
Marking this topic as solved.
Thank you, all.
The following user(s) said Thank You: phillc54

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

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