- Posts: 12160
- Thank you received: 0
[solved] Tabs and panel will not load after editing the HAL file ???
6 years 4 months ago #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 :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.
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.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 4 months ago #169864
by tommylight
Replied by tommylight on topic Tabs and panel will not load after editing the HAL file ???
here they are, screenshot and both configs
The one with THCAD in the name does not load tabs.
Attachment not found
The one with THCAD in the name does not load tabs.
Please Log in to join the conversation.
6 years 4 months ago #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
Code:
#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:
Code:
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
Code:
loadrt [EMCMOT]EMCMOT base_period_nsec=100000 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLES
Code:
loadrt motmod base_period_nsec=100000
If it is not this then it must be something else in t2030p.hal
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 4 months ago #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.phillc54 wrote: #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.phillc54 wrote: I think you may need to change this line in t2030p.hal from:
to:Code:loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_spindles=[TRAJ]SPINDLESCode:loadrt [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.phillc54 wrote: and comment this line out in t2030p_connections.hal:
Maybe loading a second instance of motmod can cause this.Code:loadrt motmod base_period_nsec=100000
More testing, tomorrow, 2:56AM here, time for some zzzzzzzzz
Thank you very much.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
6 years 4 months ago #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.
Please Log in to join the conversation.
Time to create page: 0.078 seconds
