Adding comments to tags in TIAv13p

DairyBoy

Member
Join Date
Jun 2007
Location
UK
Posts
393
I'm using a global DB as the i/o for some FBs (thank you, JesperMP). As I only need six bits for each FB I started with a byte as the input/output format, but the individual bits within the byte cannot be commented. An array of 8 bits is the same. So when I use the DB entry in the program as the address for an XIC for example, instead of showing something like "Valve 1 Open", all I can get is "Interface"."01V1".%X0 which has no useful meaning. Is this a limitation of the TIA or my brain? :oops:

Thanks.
 
Is there a reason why you want to setup the data as an array of bits ?


Depending on what you want to achieve, it is possible that it can be solved by setting up AT "views"in the declaration part of the FB or FC. An AT view can be used to have different declarations for the same data.
 
It is a limitation of TIA V13, as of V14 they allowed you to comment individual elements of arrays.
 
JesperMP, re array of bits; no reason other than exploring which format allows commenting of the bits (as a byte wouldn't) without having to use "bare" bits in the DB and therefore 6x the quantity for the privilege of commenting them individually so that they can be seen in the program with a meaningful comment attached. I must be missing something here :confused:
Edit: Joltron: I have just ordered V15.1 for anoter reason so it's looking good.
 
Instead of an array of 8 bits you could use a UDT/PDT for the 6 bits you need then have an array of the UDTs.

Or have your "Interface"."01V1" be of the UDT type. Then you pass the UDT arround as needed and your bit 0 would now have the symbolic name of "Interface"."01V1".Open

Or something along those lines, if that is what you are looking for.

I think a UDT would be more clear than an array and you don't need to worry about having a typo in a comment...
 
Right. Got it. Thank you. That works :p (I think). I have used the same UDT as the input/output component in the FB. Is that correct?
 
For hardware inputs and outputs (*), and for single-element data, I use 1 variable per pin.
For anything complex I define the data by UDTs.

*: Not to confuse everyone, but it is possible to define UDTs for hardware inputs and outputs. I have never used it.
 
Right. Got it. Thank you. That works :p (I think). I have used the same UDT as the input/output component in the FB. Is that correct?

Yes if you need read and write access to the data you would add it to the interface as an in/out.

For hardware inputs and outputs (*), and for single-element data, I use 1 variable per pin.
For anything complex I define the data by UDTs.
I agree for smaller data sets single pins is cleaner and also makes cross reference easier.

*: Not to confuse everyone, but it is possible to define UDTs for hardware inputs and outputs. I have never used it.
I have used this a few times, mainly for items like Keyence cameras that have around 60 bytes of inputs when used as a Profinet device.
 
For hardware inputs and outputs (*), and for single-element data, I use 1 variable per pin.
For anything complex I define the data by UDTs.

*: Not to confuse everyone, but it is possible to define UDTs for hardware inputs and outputs. I have never used it.


I think there was a one service pack window in which you could do this, but Technology Objects for Motion in the 1500's weren't yet a thing. Made understanding drive telegrams way easier.


Now I just trust the TO.
 

Similar Topics

Hi PLCs.net! I'm using Studio5k V32, and I have an EDS file for the Fanuc 30r-ib plus controllers. I have an excel spreadsheet with bitwise...
Replies
1
Views
1,427
Hi, I use Excel to write some routines and was wondering if it is possible to add rung comments when doing so? Excel function: ="MOV "&[@[Range...
Replies
2
Views
2,521
I am using RSLogix500 V.8.10.00 (CPR9). I know how to add comments or discriptions to the programs on my computer, but how can download them to...
Replies
1
Views
1,881
I'm trying to add comments to a program already written, doing what I can to make it easier to understand what the coils actual refer to. But I...
Replies
3
Views
4,354
I have created a UDT import file for RSLogix 5000 that imports a bit overlay UDT. What I can't find is how to add documenting comments to the XML...
Replies
2
Views
6,011
Back
Top Bottom