Siemens V13 Array Commenting

jagster21

Member
Join Date
Jun 2016
Location
Salmon Arm, BC
Posts
7
Hey everyone,

I'm writing a program in TIA Portal V13.

I have an array of a UDT I've made with 500 members. I'm finding I am unable to put anything in the comment box on the individual array members. Is there any suggestions as to how to do this?

Capture.jpg
 
If you don't need indirect addressing, you can create it as a Struct of lots of instances of the UDT, instead of as an array. That should allow you to have a unique comment for each unique UDT instance.

If you DO need the indirect addressing, then there aren't really any good solutions. You can use pointers in STL combined with the method above, you can document the data in the code instead.

We've been asking to be able to do what you want for years, hasn't happened yet. I'm not sure if it just isn't the Germany way, or if there is some bigger reason.
 
Yeah, I do need indirect addressing for this.

What are you trying to do, where you need indirect addressing and specific comments? There is often a way to structure the Siemens code differently so that it isn't necessary.

Are you creating alarm messages? If so, the Program Alarm block could be beneficial. The system handles all the alarm messages, and you don't need a giant array of text.
 
We use indirect addressing to float through all 500 alarms and find the ones that are critical (as per the UDT) and which activate lamps, which are active.

Historically, having them commented out makes it much easier to troubleshoot if we have an alarm that is constantly on and to develop on-site additional alarms.
 
:unsure: You are looping 0..500 UDT types.
Thinking that you can divide Data to 3 different DB-blocks and looping them instead of one. That way you can give different comments for every alarm.
 
I'd do it with a small FB "CheckAlarm", doing everything you have to do to your alarm, with status inputs, all your alarm settings in static, and lamps as outputs.
Then, a big FB "Alarms", in SCL, where I'd call each "CheckAlarm" as multiple instance, with declared inputs, and outputs..

It seems much to write when you ahave 500 of them, but excel is a great help with that, and it is as clean and debuggable as can be for later..
 

Similar Topics

I am working on a program that was developed in 2015 for an S7-300 safety PLC. The new copy of this machine uses an S7-1500 safety plc. We were...
Replies
4
Views
1,909
Hi, i am using siemens v13 portal for hmi. i am getting promblem to generate reports.please give me suggetion on how to generate report in...
Replies
0
Views
1,058
Hi guys. Sorry. I can help me please, i no dont the program of a furnace, i do download en simatic manager, but so export a tia portal 13 i have...
Replies
3
Views
1,839
Hi, I have a 315-2 PN/DP CPU. It was programmed in Step 7 V5.5. Then a colleague programmed it in TIA Portal V13 for a test. Now I want to...
Replies
6
Views
2,286
I can see my HMI, Pilz relay, Drive, Switch and the PLC. I can go online with all but the PLC. Any ideas. I can inform you with any specifics if...
Replies
31
Views
7,922
Back
Top Bottom