CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Forum Navigation
You need to log in to create posts and topics.

Checkbox to switch the display between machine and program coordinates

Hello,

This concerns the checkbox for switching the axis position display between machine coordinates (G53 / reference position) and workpiece coordinates (G54 or the currently active workpiece zero point/program position).

The switching itself works, but only after SimCNC has fully started and I have manually activated the checkbox once.

My problem: After every SimCNC start, the workpiece/program coordinates are displayed first, and I have to activate the checkbox each time to see the machine coordinates.

I have already tested the following:

Checkbox input: Reference position displayed
Checkbox input: Program position displayed
Checkbox output status changed: Position set to reference position
Checkbox output status changed: Position set to program position
Various default states of the checkbox on the screen
Setting the checkbox state via script when the screen loads

However, none of these solutions result in SimCNC starting directly with visible machine coordinates.

My question: Is there an official way in SimCNC to automatically switch the position display to machine coordinates (G53)?

Or is this display mode always initialized internally by SimCNC and can only be changed manually after startup, either by clicking or through a later event?

Any help would be greatly appreciated.

Hello,

i have made a workaroung for a simular "problem".

i used a python action with event Csmio connected and run a script.

had to make a 5second sleep in the script to make sure screen has loaded properly.

Regards Tom

Hmm, this isn't directly related, but it doesn't work that way. This checkbox is managed by simcnc itself; I can't simply "manipulate" it with a Python script. At least, I haven't been able to so far. I'd like the machine coordinates to always be displayed. Only when I start a milling program should the checkbox switch to displaying program coordinates.

i think in a script you should be able with:

gui.cbShowAbsPos.setAttribute( "checkboxstate", True )

to do this.

 

carbonkid has reacted to this post.
carbonkid

Yes, great, thanks to you, that worked.

to switch bach if you start a program you con put a script to the start button:

gui.cbShowAbsPos.setAttribute( "checkboxstate", False )

d.startTrajectory( )

should switch back and start.

Yes, that's exactly how I did it.

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland