Industry Online Support
Technical Forum
3/17/2013 8:20 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating:
|
Dear friends, There are some cases you should be careful while adding source codes (SCL,STL or codes for WINCC) to a post. Cases observed in practice that made this facility useless.Most of our members prefer not to use it but others insist on using it by changing features of their own codes to match the criteria and check the result via message preview. Codes can be added by selecting parts of your text ,you want to be marked and clicking on the "Code" symbol in toolbar while entering texts. 1-Most of the time make a copy of what you have done in SCL or STL editor and that is enough .Insert comments as you did in the original editor.Changing properties of codes in the Forum text editor such as highlighting some parts of codes may change its properties in runtime. Always check preview of your final codes in the forum with the original work. 2-In STL programming, some jump or loop labels are missed and you should check the preview for not missing that parts because it makes your codes meaningless without them.Check HERE. Generally , "view plain" option on the header of code viewer will help you to see what are missing: [code] L P##destination LAR1 L P##DANY LAR2 L 10 lp: T #count L B [AR1,P#0.0] T B [AR2,P#0.0] +AR1 P#1.0 +AR2 P#1.0 L #count LOOP lp L W#16#1002 //Type BYTE T LW 0 L #NUMB //Number of bytes T LW 2 L #QDB //Source DB T LW 4 L #SSTA //Start of the source SLD 3 OD DW#16#84000000 T LD 6 [/code] I know there are lots of cases you can share based on your experience. Best regards Hamid Hosseini |
Last edited by: hdhosseini at: 8/2/2013 9:20 AM// Re-arrange Last edited by: hdhosseini at: 3/25/2013 7:43 PM// typo |
|
This contribution was helpful to
4 thankful Users |
8/2/2013 9:09 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating:
|
Hello friends, We encountered a slight problem while quoting posts containing codes.Due to some problems you may find quoted codes distorted using (quote button) compared to the original text.To provide you a sample the following will be a quote of my post HERE:
Compared to manual edition:
Problem with "Quote Button" for codes may be here for a longer period till we receive clearance from Moderators and their proposed Workaround will be: Mark the text/code you want to quote. After that use the quote button, and insert the copied text/code in the quote-part. Hope this helps Hamid Hosseini |
Follow us on