2/12/2014 6:08 PM | |
Joined: 3/14/2008 Last visit: 8/30/2024 Posts: 2093 Rating:
|
Hello, PCS7 6.1 I have made a block icon of a OP_A_LIM. In there I want to assign the "tagname" object to the block name of which the block icon is generated. It seems I only can get arename by doing the following: .#areaname. What I get is a full text in runtime with the CFC chart name and the block name. However, I don't want to show the chart name, only the block name. Is there another attribute which allow only the block name to be displayed? Do I have to use a c-script which gets the areaname and dicards the cfc chart name, if so Does somebody have a scipt? |
If I could help you, you can use the RATE button. Thank you. |
|
2/12/2014 8:00 PM | |
Joined: 3/14/2008 Last visit: 8/30/2024 Posts: 2093 Rating:
|
Hi RugbyGuy, Thx for the info.. I have a CFC which has multiple OP_A_LIM. A OP_A_LIM is used a proces parameter, where operator can set parametervalue for the process. So I need the blockname not chart name. I hear from you that there is no parameter toshow block name...so it should be a c-script which substracts the blockname just like prefix/suffix. Maybe someone has a code ready script, hopefully Thx anyway!:) |
If I could help you, you can use the RATE button. Thank you. |
|
2/14/2014 1:15 PM | |
Joined: 3/14/2008 Last visit: 8/30/2024 Posts: 2093 Rating:
|
Hello Jumo, I would get in trouble if I do that...Customer demands chart name as TAG... No option.. Thx for the reply |
If I could help you, you can use the RATE button. Thank you. |
|
2/18/2014 12:35 PM | |
Joined: 3/14/2008 Last visit: 8/30/2024 Posts: 2093 Rating:
|
Hello Guys, I found some usefull info and have now this script: TCHAR BlockName[80] = ""; lpszBlockName = GetPropChar(lpszPictureName, lpszObjectName, "tagname"); lpszSlash = strrchr(lpszBlockName, '/') + 1; SetPropChar(lpszPictureName, lpszObjectName, "tag", lpszSlash); The idea: I have a OP_A_LIM which I changed a bit visually....I want the block name to be shown and I want the comment to be displayed. So what I do is create aOP_A_LIM where I fill in for block name the parameter name like PP100 (Procesparameter) and also somecomment like: waiting time before pump starts. To show the comment is easy->just use .#comment for a text field.text To show only block name and NOT the full name of the hierarchy I created the script. This case, my hierarchy names stays the same as demanded, but I only show the block name itself. Normally it would be something like Plant/PP100... Now it shows only PP100 |
If I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to
1 thankful Users |
Follow us on