Problème avec halui.tool.number

More
15 Oct 2013 14:50 #39857 by finemeca
Bonjour,

Je veux indiquer dans axis le numéro de l'outil. Je me suis inspiré d'un code trouvé sur internet.

J'ai ajouté ça dans custompanel xml :
<hbox>
<label>
<text> "Tool: " </text>
<font>("Helvetica",14)</font>
</label>
<u32>
<halpin>"tool-number"</halpin>
<font>("Helvetica",14)</font>
<format>"6d"</format>
<width>2</width>
</u32>
</hbox>
<hbox>
<label>
<text> "Offset: " </text>
<font>("Helvetica",14)</font>
</label>
<number>
<halpin>"tool-offset"</halpin>
<font>("Helvetica",14)</font>
<format>"4.4f"</format>
<width>8</width>
</number>
</hbox>

et dans custom postgui :
# Tool Number
net tool-number pyvcp.tool-number <= halui.tool.number
net tool-offset pyvcp.tool-offset <= halui.tool.length_offset.z

Mais j'ai cette erreur au lancement de linuxcnc :

custom_postgui.hal:68: Signal 'tool-number' of type 's32' cannot add pin 'pyvcp.tool-number' of type 'u32'

Avez-vous une idée sur le format à utiliser ?

Bonne journée

Pierre

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

More
15 Oct 2013 16:54 - 15 Oct 2013 16:55 #39864 by ArcEye
Bon Jour

Tout ce que vous devez faire est de changer l'étiquette du type de numéro non signé 32bit en signé 32bit
donc ne correspondent aux types de broches
<s32>
<halpin>"tool-number"</halpin>
<font>("Helvetica",14)</font>
<format>"6d"</format>
<width>2</width>
</s32>

regards
Last edit: 15 Oct 2013 16:55 by ArcEye.

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

More
15 Oct 2013 18:23 #39869 by andypugh
The tool number is already displayed in the status bar at the bottom of the Axis window.

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

More
16 Oct 2013 23:31 #39977 by finemeca
Bonsoir ArcEye,

J'ai à présent le message d'erreur suivant :
custom_postgui.hal:63: Signal 'tool-number' of type 's32' cannot add pin 'halui.tool.number' of type 'u32'

Bonsoir andypugh

C'est pour avoir un affichage plus grand, pour éviter de se tromper.

Bonne soirée à tous

Pierre

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

More
17 Oct 2013 06:55 #39987 by andypugh

J'ai à présent le message d'erreur suivant :
custom_postgui.hal:63: Signal 'tool-number' of type 's32' cannot add pin 'halui.tool.number' of type 'u32'


Do you have "newsig tool-number" or "net tool number" ?

It looks like the signal "tool-number" is being created as an S32, whereas it (and the Pyvcp pin) need to be U32.

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

More
20 Oct 2013 21:33 #40090 by finemeca
Thanks for your informations but I don't understand what to do ...
Can you explain me how to solve my problem please ?
Thanks in advance,

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

More
20 Oct 2013 21:49 #40091 by andypugh

Thanks for your informations but I don't understand what to do ...
Can you explain me how to solve my problem please ?


halui.tool-number is of type "u32" (Unsigned integer)
www.linuxcnc.org/docs/html/man/man1/halui.1.html

So, everything else that links directly to halui.tool.number needs to be u32.
The following user(s) said Thank You: finemeca

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

More
14 Nov 2013 17:38 - 14 Nov 2013 17:38 #40815 by finemeca
Bonjour Andypugh,

So, everything else that links directly to halui.tool.number needs to be u32.


Ok, merci Andy
Last edit: 14 Nov 2013 17:38 by finemeca.

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

Moderators: darty367
Time to create page: 0.158 seconds
Powered by Kunena Forum