4/4/2017 3:10 PM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
Hi snorri, I haven't found it in the manuals yet (I read Siemens manuals as hobby Anyway here is how to do it: 1. Go to your DB in the "Blocks" folder. 2. Right click->Properties and go to tab: "Attributes". 3. Select under "Attribute" -> S7_m_c and under "Value" set: "true". This means your DB is sent to WinCC when compiling the OS, thus making it available for the operators. This is the same as when you use normal CFC blocks by checking the properties of an CFC block and check: OCM possible = yes. 4. Next, you need to define which values must be send to WinCC. You need to do the same procedure for all variables you want on WinCC. 5. So, select a variable, right click and open properties. 6. There is no drop down box here, so you need to put in the "S7_m_c" manually. watch out that it's capital S. It only works with capital S. 7. Save the block and AS compile change+download change and then a OS compile and your values are available in WinCC. Note: Only the following data types can be assigned the S7_m_c attribute: BOOL, BYTE, CHAR, DINT, DWORD, INT, REAL, STRING, WORD, BLOCK_xx_ TIME, SDTIME. Good luck! |
Last edited by: Oreca at: 4/4/2017 4:06:15 PMIf I could help you, you can use the RATE button. Thank you. |
|
This contribution was helpful to
1 thankful Users |
4/4/2017 3:47 PM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
Can you post a screenshot? Write S7_m_c instead of s7_m_c Edit: fault in my post. |
Last edited by: Oreca at: 4/4/2017 3:47:22 PMLast edited by: Oreca at: 4/4/2017 4:03:36 PMIf I could help you, you can use the RATE button. Thank you. |
|
4/4/2017 4:04 PM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
Hi snorri, It should be S7_m_c...there was a typing error in my post |
If I could help you, you can use the RATE button. Thank you. |
|
4/4/2017 4:08 PM | |
Posts: 24 Rating:
|
Tried that to. Unfortunately it gave the same error:( |
4/4/2017 4:12 PM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
OK, then it must be a variable that cannot use the S7_m_c. What is the datatype of the variable? PS: If you are using a structure like APL library, then you must use another syntax. To address variables inside a structure, you will need to set the following attributes for the structure: S7_m_c = true (for the structure itself) S7_xm_c = Value,true; where "Value" is for example the variable inside the structure. So, you cannot address the variables inside the structure with S7_m_c.
|
Last edited by: Oreca at: 4/4/2017 4:17:22 PMIf I could help you, you can use the RATE button. Thank you. |
|
4/4/2017 4:22 PM | |
Joined: 3/14/2008 Last visit: 8/22/2024 Posts: 2089 Rating:
|
I doubt you can address arrays with the S7_m_c, not according with the data types that are allowed. But it's strange you cannot address a simple int. See the screenshot... PS: check the previous post of mine, you need to address variables in a structure specifically. |
Last edited by: Oreca at: 4/4/2017 4:23:07 PMIf I could help you, you can use the RATE button. Thank you. |
|
Follow us on