12/20/2016 7:25 AM | |
Joined: 3/14/2008 Last visit: 8/16/2024 Posts: 2086 Rating:
|
Hi, For use in APL library? Then you must check out the APL Styleguide: Link |
If I could help you, you can use the RATE button. Thank you. |
|
12/20/2016 8:39 AM | |
Joined: 3/14/2008 Last visit: 8/16/2024 Posts: 2086 Rating:
|
Hi yasinEncoder, You have to put the block icon in the @PCS7TypicalsAPLV8.pdl. Make sure you have the following attributes set correctly: - Under "System" -> Type and Servername. Type must be the name of the block type which you create in SCL and in CFC you must give a block icon number. For instance, if you set block icon number: "10", then the block icon in your template file must have the following name: @{block type]/10 The Servername must have the following prefix: "PCS7 {name of faceplate} Control. The easiest thing to do is to copy an existing block icon from the template library, adjust it to your own block type and copy all the faceplates files of the original block icon and rename them to your needs. To get you more detailed info, please check my first comment in the following link: https://support.industry.siemens.com/tf/us/en/posts/custom-block-icon/151745/?page=0&pageSize=10
|
Last edited by: Oreca at: 12/20/2016 8:42:02 AMIf I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to
1 thankful Users |
12/20/2016 12:25 PM | |
Joined: 3/14/2008 Last visit: 8/16/2024 Posts: 2086 Rating:
|
Hi yasin,
Your welcome! I'll try to explain further: In your AS project, you can add blocks to your CFC program. These block are based on a block type and can be created by yourself by using SCL (most commingly used for PCS7). When the block has the attribute: "S7_m_c", it means the block has OCM (Operator Control and Monitoring) capability and means it can be send to WinCC during a OS compile. You must specify also which parameters that are sent to WinCC. You can do this by setting the attribute: "S7_m_c" also for the parameter itself. Enclosed is a source which has OCM capability. Please check it out. As you can see, the input: "StapTxt" is sent to WinCC because it has the "S7_m_c" attribute. The block itself has the attribute as well. You can search: "System Attributes for Parameters" in the help file of the SCL editor for more info. Since APL, parameters are created as structs. An example of a struct is also enclosed in the SCL source. See VAR_OUTPUT, parameter "Out". This is the basic structure for a REAL value. The "ST" is a signal status which is used in APL to indicate a certain status like if the parameter is a simulated value or not interconnected in the program or invalid. The "Value" contains the value ofcourse. As you can see, a new attribute is listed: "S7_xm_c:='Value,true;'. This means you are addressing a parameter inside a struct called: "Value". It means the "Value" is sent to WinCC. This is indicated by the "x" in the attribute: "S7_xm_c". The APL styleguide explains that to you. I highly recommend you create a block icon from an existing block icon. To understand APL it will take a lot of time and understanding of the concept. There is not a manual which will explain APL completely. There are a lot of scripts used in APL and they look at specific attribute names, which are defined in the block icon. If you start creating a block icon of your own, it will take you a lot of time testing, debugging and searching for clues on how the icon operates I believe. The faceplates are taking properties from the block icon as well and there are a lot of them. So that's why I say: Take an existing block icon and the faceplates and modify them in the way you want. You can change a lot with an existing block icon and faceplates, but important is that you leave the structure intact. You probably don't need all the faceplates, so you can eliminate them one by one. Also, when your ready, please use apdiag.exe (script checker) in order to test your block icon and faceplate. It will detect any script errors such as references to tags which do not exist. It is a good tool to let you build error free icons and faceplates. AttachmentSTAP_TXT_v22.zip (669 Downloads) |
If I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to
7 thankful Users |
Follow us on