[solved] Tabs and panel will not load after editing the HAL file ???
02 Jun 2020 17:39 #169835
by rodw
Tabs and panel will not load after editing the HAL file ??? was created by rodw
Come on Tommy, you know the drill. Post up the output from the terminal
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.
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19314
- Thank you received: 6466
02 Jun 2020 20:16 #169864
by tommylight
Replied by tommylight on topic Tabs and panel will not load after editing the HAL file ???
Please Log in or Create an account to join the conversation.
02 Jun 2020 23:59 #169889
by phillc54
Replied by phillc54 on topic Tabs and panel will not load after editing the HAL file ???
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.
I think you may need to change this line in t2030p.hal from:to:and comment this line out in t2030p_connections.hal:Maybe loading a second instance of motmod can cause this.
If it is not this then it must be something else in t2030p.hal
#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
loadrt [EMCMOT]EMCMOT base_period_nsec=100000 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
loadrt motmod base_period_nsec=100000
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19314
- Thank you received: 6466
03 Jun 2020 00:56 #169894
by tommylight
More testing, tomorrow, 2:56AM here, time for some zzzzzzzzz
Thank you very much.
Replied by tommylight on topic Tabs and panel will not load after editing the HAL file ???
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.#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 reversed, but i do get why and how, thank you. Also works either way.I think you may need to change this line in t2030p.hal from:
to:loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLESloadrt [EMCMOT]EMCMOT base_period_nsec=100000 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
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.and comment this line out in t2030p_connections.hal:
Maybe loading a second instance of motmod can cause this.loadrt motmod base_period_nsec=100000
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.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19314
- Thank you received: 6466
03 Jun 2020 18:52 #169973
by tommylight
Replied by tommylight on topic Tabs and panel will not load after editing the HAL file ???
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.
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.081 seconds