Author Topic: very specific rule to define  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

Offline majdghTopic starter

  • Contributor
  • Posts: 24
  • Country: de
very specific rule to define
« on: January 24, 2021, 12:18:50 pm »
Hello,
I have a net for example 15V and this pin goes to the Mosfet so I would like to have at least 30 mil of width of track but It goes also to LED so I don’t want to have this track width but 10mil.
Now off course I can route this manually but I was trying to define this in Altium automatically, but I couldn’t even with custom query.
When I define a net class on the 15V net, it will apply it on all tracks, even on the track between the 15v and the led. So it there anyway to define a track width between pins instead of nets. Or make exception of the rule to apply it only on one component pins and the others! Using InNet('+15') AND InComponent('Q1')       didn’t help.
Thanks in advance,

 

Offline cgroen

  • Supporter
  • ****
  • Posts: 636
  • Country: dk
    • Carstens personal web
Re: very specific rule to define
« Reply #1 on: January 24, 2021, 01:59:08 pm »
How about doing 2 separate rules, and use priority to solve it ?
 

Offline majdghTopic starter

  • Contributor
  • Posts: 24
  • Country: de
Re: very specific rule to define
« Reply #2 on: January 24, 2021, 02:43:00 pm »
Hello thanks for reply, can you explain more, because i didn't get the idea to solve it, because both pins schare the same net name, so how to seprate the rules, Thanks
 

Offline cgroen

  • Supporter
  • ****
  • Posts: 636
  • Country: dk
    • Carstens personal web
Re: very specific rule to define
« Reply #3 on: January 24, 2021, 03:27:35 pm »
Maybe I was too quick, just did some experimentation and does not seem to work  :-\
I will keep experimenting a little here. Maybe others have an idea?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22386
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: very specific rule to define
« Reply #4 on: January 24, 2021, 05:25:21 pm »
One net seems a rather trivial case, just hand route it.  Or if not doing the layout personally, add a note to do such.

In general, to get the autorouter to use different sizes on a given net, either:
- Use a net bridge to split the net
- Use, well they used to be called From-Tos but there's a new system now, anyway, routes can be controlled by region, associated components, topology, etc. I think.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline majdghTopic starter

  • Contributor
  • Posts: 24
  • Country: de
Re: very specific rule to define
« Reply #5 on: January 24, 2021, 09:54:18 pm »
Thanks for reply, i think there is no way to do this automatically, i used net tie but its very long way because you have to make a lot of changes depending on the size of the net and pcb..etc.
so i would do it as always with hand!
 

Offline ANTALIFE

  • Frequent Contributor
  • **
  • Posts: 512
  • Country: au
  • ( ͡° ͜ʖ ͡°)
    • Muh Blog
Re: very specific rule to define
« Reply #6 on: January 24, 2021, 10:39:04 pm »
Play around with "Find Similar Objects" and see what is generated in the "PCB Filter" tab (see attached)

Offline cgroen

  • Supporter
  • ****
  • Posts: 636
  • Country: dk
    • Carstens personal web
Re: very specific rule to define
« Reply #7 on: January 25, 2021, 09:17:01 am »
That was a good idea to get the query correct, thanks for that!
I tried it, but with no success.
I basically connected two 0603 and one 0402 using the same net ("15V"). I then used the "find similar items" one the pad of the 0402.
That gave me: (ObjectKind = 'Pad') And (Net = '15V') And (Name = 'C38-1') 
Using the "Test Queries" in the rules dialog, the specific pad is highlighted as expected. However, if I make a width rule based on that, it will not be taken into account. I set the width rule to 10 mil, but whenever I add a track from that specific pad, it will only go with the "default" rule (that has lower priority than the new one).


 
 

Offline ANTALIFE

  • Frequent Contributor
  • **
  • Posts: 512
  • Country: au
  • ( ͡° ͜ʖ ͡°)
    • Muh Blog
Re: very specific rule to define
« Reply #8 on: January 25, 2021, 12:50:41 pm »
That was a good idea to get the query correct, thanks for that!
I tried it, but with no success.
I basically connected two 0603 and one 0402 using the same net ("15V"). I then used the "find similar items" one the pad of the 0402.
That gave me: (ObjectKind = 'Pad') And (Net = '15V') And (Name = 'C38-1') 
Using the "Test Queries" in the rules dialog, the specific pad is highlighted as expected. However, if I make a width rule based on that, it will not be taken into account. I set the width rule to 10 mil, but whenever I add a track from that specific pad, it will only go with the "default" rule (that has lower priority than the new one).


 

You probably want ObjectKind to be "track" (or whatever the correct term is) rather than 'Pad' 

Offline cgroen

  • Supporter
  • ****
  • Posts: 636
  • Country: dk
    • Carstens personal web
Re: very specific rule to define
« Reply #9 on: January 25, 2021, 01:19:12 pm »
That was a good idea to get the query correct, thanks for that!
I tried it, but with no success.
I basically connected two 0603 and one 0402 using the same net ("15V"). I then used the "find similar items" one the pad of the 0402.
That gave me: (ObjectKind = 'Pad') And (Net = '15V') And (Name = 'C38-1') 
Using the "Test Queries" in the rules dialog, the specific pad is highlighted as expected. However, if I make a width rule based on that, it will not be taken into account. I set the width rule to 10 mil, but whenever I add a track from that specific pad, it will only go with the "default" rule (that has lower priority than the new one).


 

You probably want ObjectKind to be "track" (or whatever the correct term is) rather than 'Pad'

I can't get it to select the correct one. But, I think this is a dead end, the expression needs to be for a specific net, I don't think this can be done at all
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22386
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: very specific rule to define
« Reply #10 on: January 25, 2021, 05:46:49 pm »
If it only needs to be on pad entry, try a SMD Neck-Down rule.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2721
  • Country: us
Re: very specific rule to define
« Reply #11 on: January 25, 2021, 06:56:43 pm »
You might be able to make this work using xSignals, although I don't know if that will be able to do what you want specifically, and would be kind of tedious to set up if you have a lot of instances of this requirement since I think you would need to define each one manually. 
 

Offline cgroen

  • Supporter
  • ****
  • Posts: 636
  • Country: dk
    • Carstens personal web
Re: very specific rule to define
« Reply #12 on: January 26, 2021, 09:29:32 am »
If it only needs to be on pad entry, try a SMD Neck-Down rule.

Tim

Thanks Tim,
this will give me a DRC error when running (t d) but for some reason it does not show up when routing even when "online" is checked. Oh well, I give up.
(at least there is a way of getting a DRC error, but I'm not sure OP was after that.)


 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22386
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: very specific rule to define
« Reply #13 on: January 26, 2021, 10:03:57 am »
It's kind of a weird rule, I think?  It doesn't stop you from putting traces on pads arbitrarily (e.g. P, L) or by dragging, but it does (or should?) work with routing (P, T) and the auto kind.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf