3/9/2016 8:47 AM | |
Joined: 3/14/2008 Last visit: 11/19/2024 Posts: 2134 Rating: (955) |
Hi moelsayed, Attached is a print screen of the APL styleguide. Using objects from the @PCS7ElementsAPL.pdl is mandatory. |
If I could help you, you can use the RATE button. Thank you. |
|
6/23/2017 7:30 AM | |
Joined: 3/14/2008 Last visit: 11/19/2024 Posts: 2134 Rating: (955)
|
Good explanation Harry! And yes Dave, it helps if you upload the button and maybe provide some more info: 1. Are you using a custom block you designed or a standard APL block. Provide block type and FB number please in case of standard APL block. 2. You can test yourself if there are problems in the scripting. For this, go to Program Files (x86)/SIEMENS/WinCC/utools and open apdiag.exe. 3. Click on Output Window on the application and now when WinCC is in runtime, all scripting is monitored and outputted in the window. So when opening the faceplate of your block, maybe apdiag lists some errors. If so, can you post them here? |
If I could help you, you can use the RATE button. Thank you. |
|
6/23/2017 7:05 PM | |
Joined: 3/14/2008 Last visit: 11/19/2024 Posts: 2134 Rating: (955)
|
Hi, Some wild guess: Did you configure the system attribute: "Op_Level" for variables: "OP_START" and "OP_STOP". Op_Level is a system attribute used to transfer the authorization level to WinCC. So, you can configure instances of blocks with different authorizations. Before APL, it used to be done only at WinCC in User Administrator. Check the APL Styleguide and search for the Op_Level attribute on how to configure this. BTW: The permission tag is the OS_PermLog variable, which is a DWORD datatype where all the authorizations are configured. Do you have the OS_PermLog in your custom SCL source available? Did you think of the byteswap? In a WORD, the two bytes are swapped. In a DWORD, the two bytes and the two words are swapped. So, when assigning bit0 to TRUE in SCL, bit8 in WinCC is set to TRUE in case you are using a WORD. |
Last edited by: Oreca at: 6/23/2017 9:09:06 PMIf I could help you, you can use the RATE button. Thank you. |
|
6/29/2017 5:12 PM | |
Joined: 1/27/2012 Last visit: 4/11/2024 Posts: 5 Rating: (0) |
HarrY, thanks for wanting to help. To keep things simple, I created a new very simple block. I compiled it, and created a very simple faceplate the same way I did my other one, and it is exhibiting the same problem. I've attached a zip file containing the SCL code, PDL files for the facepate as well as a PDL file with a block icon I am using to open it. (The faceplate and block icon are modified versions of OpDi01 block.) Please let me know if you see any issues and can or cannot replicate the problem. AttachmentOPTEST.zip (132 Downloads) |
Last edited by: Dave Parks at: 6/29/2017 5:13:22 PM |
|
Follow us on