Industry Online Support
Technical Forum
1/12/2012 1:57 PM | |
Joined: 10/26/2011 Last visit: 12/13/2024 Posts: 762 Rating: (192) |
Date field in alarm online is not wide enough after changing to four digit year Problem When the date format for the PCS 7 OS Runtime Alarm banner is configured to be four digits in OS Project Editor, the column isn't quite wide enough. The digit furthest to the right is partly obscured.Is there a way to make the column a little bit wider? Solution Take a look at the attached pdf-document.The default format for PCS 7 OS alarm date is the European standard with a two digit year (dd/mm/yy), and the default format for time includes milliseconds. Many people prefer the US format with a four digit year and no milliseconds.It’s easy to change, and even modifying the scripts to adjust the column widths takes less than 10 minutes, as you can see from the timestamps above. - Deactivate PCS 7 OS Runtime - From WinCC Explorer, launch the OS Project Editor - Click on the General Tab - In the “Activities when processed by project editor” section, choose the option button, “Only message configuration etc.) - The Message Configuration tab should now be available, go to that tab- Right-click on the Date row:- Choose the desired options, click on OK - Rightt-click on the Time row: - Uncheck the Milliseconds checkbox, click on OK - From OS Project Editor, Click on OK or Apply to run the OS Project Editor and complete the changes.You may also wish to adjust the column widths of the alarm banner so the date column is wide enough to accommodate the 4-digit year, and the time column fits better. - Go to WinCC Explorer, Global Scripts, C-Script Editor go to Standard Functions --> split screen manager and open SetAlarmControlWidth Now, if you go down to around line 75 you should find a pair of lines which look like: SetPropWord(lpszPictureName,lpszObjectName,"MessageBlockIndex",0); SetPropWord(lpszPictureName,lpszObjectName,"MessageBlockWidth",5); If you change the 5 to a 6, the columns will be wide enough to completely display the 4-digit year. Similarly, there is a //Time section immediately following, so if you decrease the Time column width from 8 to 4, the time without milliseconds fits quite nicely. Activate PCS 7 OS Runtime and you should see your changes. AttachmentConfiguration_Steps.pdf (343 Downloads) |
SIMATIC PCS 7 - Overview |
|
This contribution was helpful to1 thankful Users |
Follow us on