Wire numbering format

13 posts / 0 new
Last post
#1 Wire numbering format

Hi there, I would like to achieve a wire numbering format similar to the attached screenshot in which the wire is labeled based upon the IO port of the PLC module it is connected to. Is this possible currently?

 

Thanks,

Austin

It depends...

Thanks for posting on the forum.

I would like to achieve a wire numbering format similar to the attached screenshot in which the wire is labeled based upon the IO port of the PLC module it is connected to.

Yes, this is possible, but we're not sure what information needs to be used when looking at the example schematics you posted.  Would the wire be numbered 'O:01/00' or 'E-Stop lamp PC control A'?

If it should be 'E-Stop lamp PC control A', it will not be possible for SkyCAD to number it based on the I/O as the connection is not connected to the I/O module, but rather to a fuse.  If it should be 'O:01/00', than yes that's possible using a specific connection type with its own numbering format. 

Let us know and we'll advise.

Hi there,

Hi there,

 

We would like to achieve labeling based on the IO module. For example, a sensor hooked up to PLC group0 Base1 Slot1 Pin10 would have it's wire labeled DI-0.1.1.10

 

Thanks,

Austin

Ok.

Ok, thanks for the extra information.

Yet, we need a little more information in order to guide you better.

For example, a sensor hooked up to PLC group0 Base1 Slot1 Pin10 would have it's wire labeled DI-0.1.1.10

This would mean that:

- You module's tag is DI

- The module has a property named group (to which you enter the value '0' manually)

- The module has a property named Base (to which you enter the value '1' manually)

- The module has a property named Slot (to which you enter the value '1' manually)

Do we get this right?

That is correct! Thank you!

That is correct! Thank you!

Ok, last question...

Last question: do you already have a connection type named 'IO Connection' in the connection library folder?  (It should be orange.)

I do not. Is there an easy

I do not. Is there an easy way to restore "out of the box" connections? I think I have messed up some others too on my way to this point.

Try this...

Ok let's start with getting the 'IO Connection' item back in the library folder:

- Start by clicking on the 'Connections' library folder to expand it (if it's already expanded, click to collapse it and click again to expand it.  This will make sure it's selected.)

- While the library folder is selected, click 'Home/Add existing graphical object'

- A 'File Open' dialogue box wil open pointing to the 'Work block' sub-folder of the environment.  You'll nee to go one folder up 'Graphical block' and then reach the 'Connection' sub-folder.

- Select the file named 'IO Connection 1.SkyCadFile' and click Open.

At this point the connection should be showing in your library folder.

Let us know if that part works out, and then we'll address the numbring format part.

The IO connection is now

The IO connection is now restored and the numbering format on it comes out much closer to DI1-10 so far.

Ok!

Ok, we're getting there!

the numbering format on it comes out much closer to DI1-10 so far

Follow these steps to get you all the way where you want to be:

- From the 'Catalogue tools' tab, click 'Open class'

- From displayed dialogue box, click 'Show/ClassList'

- Select the 'IO Connection' class and click OK.

- While the class is open and selected at the top of the view, click 'Home/Set numbering format'

- From the displayed dialogue box, reach the 'Numbering format for IO Connection with slot' and click the little triangle icon to expand its properties.

- In the 'Value', copy the following value:

<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.WorkID>-<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.group>.<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Base>.<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Slot><r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Name><#>

- Once the value is set, make sure the 'Numbering format for IO Connection with slot' is selected and click OK

At this point, if you run wire numbering, you should get the numbering you wanted in teh first place.

Let us know if it works out.

 

Thank you, this looks good. I

Thank you, this looks good. I will let you know if it works, please allow me a little time to properly try this out. I have some priority tasks before I can come back to the labeling.

This worked out well, thank

This worked out well, thank you for your help.

I ended up making some small changes to insert . between slot and the number, remove the tag and opt for prefix instead, and to put group and base on the PLC instead of the module.

This is what I ended up with this in the value field.

<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Prefix>-
<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Parent.Group>.
<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Parent.Base>.
<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Parent.Slot>.
<r:GetConnectedPorts(Where:GroupedIn.Class=I-O).Name><#>

Great!

Glad to know it worked out.

Thanks for taking the time to let us know.