1 (edited by cmckinley 2022-04-13 16:44:23)

Topic: Wire label formulas

Hello all,

I am learning how to use qelectrotech to build panel diagrams/ladder diagrams. I have been manually labeling everything which is working fine but would like to eventually learn how to set up the auto labeling for wires, terminal points, elements and so on. I believe I may be getting confused by the structured text code some users are using.

So my first question is how do you get the simple label/text formulas to work and are the formulas different for: folio, elements, cable, wire, terminal blocks.

The one that I would benefit most from would be the wire label.

These formulas are the only ones that I seem to be able to get working:

%id
%f
%_sequ1 - only works sometimes

I have tried %l for the row and %c for the column but the formula only returns itself.

My second question is where do you run the code for the structured text/python. (do you need to edit files in the qelectro program folder?)

Thank you all for your help!

Re: Wire label formulas

I also have the same issue. I want to include %l and %c, but these don't work (they just display %l or %c). Any ideas anyone?

Re: Wire label formulas

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Wire label formulas

Thanks for the video. Unfortunately that doesn't answer why I can't use %l and %c in conductor auto numbering. I see these are even shown in the manual (Annex: variables related to conductor) where is states:

% {l}: Folio line number from the workspace where the conductor can be found
% {c}: Folio column number from the workspace where the conductor can be found

I have tried adding other variables (eg; %f) and that works okay. But I would like my conductors to have reference to the folio, line and column (eg; "2A11"). Can this be done?

Re: Wire label formulas

% {l}: Folio line number from the workspace where the conductor can be found
% {c}: Folio column number from the workspace where the conductor can be found

It's only for elements not conductors, %l or %c isn't logic for conductors we have multiples lines end definition same for columns for the same line conductors.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !