Automatic wire numbering using "termdesc" for wire number

Ken.castillo
Contributor
Contributor

Automatic wire numbering using "termdesc" for wire number

Ken.castillo
Contributor
Contributor

Is there a way to have a wire number automatically select the "TERMDESC" of a PLC pin? currently I am using select text and fixing the wire number, but that takes too long.

 

Thanks,

Ken

0 Likes
Reply
607 Views
9 Replies
Replies (9)

Anonymous
Not applicable

Setup your project properties with the Search for PLC I/O address on insert:

Capture.JPG

 


Then change the PLC module TAGA_ to be what is in the TERMDESC_ area...

Capture.JPG

 

Viola!

 

 

0 Likes

Ken.castillo
Contributor
Contributor

This did not work

0 Likes

Anonymous
Not applicable

Did you update the project properties and then apply them to the drawing that you inserted the PLC module onto?

0 Likes

Ken.castillo
Contributor
Contributor

Yes I did.  I need all term desc transferred to the wires, not just the I/O, example would be. "CH9 NO" "CH9 COM" CH9 NC" These terminals are typical "Terminal Point Wire Rightx" and so on.

0 Likes

Anonymous
Not applicable

I setup a test module with the TAGA_ attribute set to exactly what the TERMDESC_ attribute is:

Capture.JPG

 

I inserted the module and ran wire number on the wires attached to it:

Capture.JPG

 

Pretty sure that is what you asked if it can be done.

The wire numbers are now the same as the terminal descriptions because I made the addresses the same as the terminal description.

 

You can even add what ever you want there:

Capture.JPG

 

 

Or you could make your TERMDESC_ the actual address... then use the TAGA_ as the TERMDESC_ such that you have what you may be looking for.

 

 

 

0 Likes

Anonymous
Not applicable

Then encode TAGA_ to be "CH9 NO" for that pin....

 

If you want the terminal description applied to the wire attached to it ACADE doesn't do that out of the box.

You'll have to write an AutoLISP tool to do that, or keep doing what you have been (copy and fix wire number).

You can only have the "ADDRESS" automatically applied to the wire number.

 

If you want both the address and the terminal description concatenated onto the wire attached to the terminal..., you'll have to write an AutoLISP tool to do that.

 

0 Likes

Ken.castillo
Contributor
Contributor

As you can see, there is no TAGA_ unless you use an I/O but only a few points are I/O the rest are just terminals

PLC Database.PNG

 

0 Likes

Ken.castillo
Contributor
Contributor

That is what I was starting to think.  Nate has some nifty LISP to do this kind of stuff

0 Likes

Anonymous
Not applicable

Hmmm, nonaddressable points usually get their wire numbers from the ladder they are on...

I tried messing with the "X#TERM_" but it just gets reset when you run the wire numbering on that wire. So that doesn't look like a way to fix that terminals wire number.

 

or....

I don't supposed WD_JUMPERS would work for you...

Aren't those points commons, or +24VDC, that are connected inside the module?

 

Or...

Maybe altering the block that is used to build that point... add a TAGA## to it... I think it would show up in the PLC database editor then... maybe that would allow you to set it.

 

and of course... AutoLISP could surely do it.

0 Likes