GScreen and some understanding gap of hal-widgets
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7869
- Thank you received: 2125
23 Jun 2019 01:09 #137629
by cmorley
Replied by cmorley on topic GScreen and some understanding gap of hal-widgets
The learning curve is steep - I understand 
Pncconf doesn't make sim config as it's too much work to simulate the many variations of the board pins ( well as far as i'm concerned anyways).
Pncconf in 2.8 does make xyyz configs - pick a xyza machine and add a tandem (y2) axis - if it doesn't work it's a bug.
Core_sim9 gives simulated axes HAL-wise but it must be connected properly.
I don't know the first error message.
The second seems to indicate that your Mesa board was not found - but there may be more information in other messages given at that time.
Chris M

Pncconf doesn't make sim config as it's too much work to simulate the many variations of the board pins ( well as far as i'm concerned anyways).
Pncconf in 2.8 does make xyyz configs - pick a xyza machine and add a tandem (y2) axis - if it doesn't work it's a bug.
Core_sim9 gives simulated axes HAL-wise but it must be connected properly.
I don't know the first error message.
The second seems to indicate that your Mesa board was not found - but there may be more information in other messages given at that time.
Chris M
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
23 Jun 2019 05:26 #137638
by Reinhard
I'm going to try figure simulation out for my setup.
Replied by Reinhard on topic GScreen and some understanding gap of hal-widgets
That was my first try, but the result was completely weird and I don't understand core_sim9 at all.Core_sim9 gives simulated axes HAL-wise but it must be connected properly.
I'm going to try figure simulation out for my setup.
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
23 Jun 2019 06:22 #137639
by Reinhard
Replied by Reinhard on topic GScreen and some understanding gap of hal-widgets
basic_sim seems to do the trick 
... but hallib is not part of searchpath, so that I had to specify the relative path from my ini file:All other HALFILE-entries commented out.
Execution of linuxcnc creates a file <myInifileName>_cmds.hal, that includes all simulation stuff.
Next the HALFILE-entry needs to be changed to use the generated file.
With that file homing works and I can start with MDI input.
So let's find out how far I can get with that setup

... but hallib is not part of searchpath, so that I had to specify the relative path from my ini file:
HALFILE = ../../../../lib/hallib/basic_sim.tcl
Execution of linuxcnc creates a file <myInifileName>_cmds.hal, that includes all simulation stuff.
Next the HALFILE-entry needs to be changed to use the generated file.
With that file homing works and I can start with MDI input.
So let's find out how far I can get with that setup

Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7869
- Thank you received: 2125
24 Jun 2019 01:01 #137685
by cmorley
Replied by cmorley on topic GScreen and some understanding gap of hal-widgets
Glad you found away. My next suggestion was using a prebuilt sim config from linuxcnc that was close to what you want and modify it.
Chris M
Chris M
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
24 Jun 2019 04:28 #137694
by Reinhard
Replied by Reinhard on topic GScreen and some understanding gap of hal-widgets
I believe, that's insane, change something if you don't know, what you're doing.
I looked into the sim*.hal files, but I don't understand, what's going on there.
The generated hal file is straight forward and easy to read and understand
by the way: I used pncconf of master - I did not find support for my desired setup.
May be, description needs some extension.
... but after all - I was able to change generated ini manually to the desired setup
I looked into the sim*.hal files, but I don't understand, what's going on there.
The generated hal file is straight forward and easy to read and understand

by the way: I used pncconf of master - I did not find support for my desired setup.
May be, description needs some extension.
... but after all - I was able to change generated ini manually to the desired setup
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
24 Jun 2019 05:59 #137703
by Reinhard
Replied by Reinhard on topic GScreen and some understanding gap of hal-widgets
With the help of some mdi commands I was able to get different numbers on absolute and relative dro.
.
Blue dros are the relative positions and green the absolute positions
.
What I don't understand:
both images are taken right after start of linuxcnc, powering on and home all axis.
Shouldn't the fixture-table show the difference between relative and absolute position in some line?
I looked at offset-widget.py and there's a periodic call, that should update the table content - at least at my understanding.
What am I missing here?
.
Blue dros are the relative positions and green the absolute positions
.
What I don't understand:
both images are taken right after start of linuxcnc, powering on and home all axis.
Shouldn't the fixture-table show the difference between relative and absolute position in some line?
I looked at offset-widget.py and there's a periodic call, that should update the table content - at least at my understanding.
What am I missing here?
Attachments:
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7869
- Thank you received: 2125
24 Jun 2019 06:06 #137704
by cmorley
Replied by cmorley on topic GScreen and some understanding gap of hal-widgets
My guess is the tooltable is not initialized with the toolfile path.
try adding:
self.gscreen.init_tooleditor()
to the def initialize_widgets(self): function
Chris M
try adding:
self.gscreen.init_tooleditor()
to the def initialize_widgets(self): function
Chris M
Please Log in or Create an account to join the conversation.
- Reinhard
- Offline
- Platinum Member
-
Less
More
- Posts: 508
- Thank you received: 94
24 Jun 2019 06:19 #137705
by Reinhard
Replied by Reinhard on topic GScreen and some understanding gap of hal-widgets
Hi Chris,
that line is already active.
Where can I find the source of GScreen class?
that line is already active.
Where can I find the source of GScreen class?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7869
- Thank you received: 2125
24 Jun 2019 06:23 #137707
by cmorley
Replied by cmorley on topic GScreen and some understanding gap of hal-widgets
src/emc/usr_intf/gscreen/gscreen.py
Also in 2.8 you can gleem some information in the terminal with:
gscreen -f | more
Chris M
Also in 2.8 you can gleem some information in the terminal with:
gscreen -f | more
Chris M
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7869
- Thank you received: 2125
24 Jun 2019 07:03 #137710
by cmorley
Replied by cmorley on topic GScreen and some understanding gap of hal-widgets
Sorry i'm tired... the command should have been:
self.gscreen.init_offsetpage()
Chris M
self.gscreen.init_offsetpage()
Chris M
Please Log in or Create an account to join the conversation.
Time to create page: 0.265 seconds