ZoeyMonentes
Member
Hi everyone, thank you for reading my HelpMe post. I found this site by google.
//Description of the problem:
I've been trying to change screens in the HMI Panel (model: Siemens MP277 8"Touch) by the commanding of PLC (model: Siemens S7-224XPCNsi), rather than a "button" with ActivateScreen function.
//I tried this way: (is there a better way?)
I built a script in the WinCC flexible 2007, which is loaded in the "Properties->Event->Load" of each "Screen".(I use chinese version of WinCC, so the keywords-expression may not be precise. so I use "".)
The script is to read from the PLC, and use the ActiavteScreenByNumber function.
//Debug-Result:
I feel the script isn't running. "WelcomeSCN1" is supposed to be 999 when the script is running, but it's always 0.
//Script Content:
SmartTags("WelcomeSCN1") = 999
'WelcomeSCN1 is an internal Variable, to check if the script is running.
If SmartTags("CurrentSCN") <> SmartTags("SCN_No") Then
SmartTags("WelcomeSCN1") = SmartTags("SCN_No")
ActivateScreenByNumber SmartTags("SCN_No") ,0
End If
//Ending:
Thanks again for reading!
//Description of the problem:
I've been trying to change screens in the HMI Panel (model: Siemens MP277 8"Touch) by the commanding of PLC (model: Siemens S7-224XPCNsi), rather than a "button" with ActivateScreen function.
//I tried this way: (is there a better way?)
I built a script in the WinCC flexible 2007, which is loaded in the "Properties->Event->Load" of each "Screen".(I use chinese version of WinCC, so the keywords-expression may not be precise. so I use "".)
The script is to read from the PLC, and use the ActiavteScreenByNumber function.
//Debug-Result:
I feel the script isn't running. "WelcomeSCN1" is supposed to be 999 when the script is running, but it's always 0.
//Script Content:
SmartTags("WelcomeSCN1") = 999
'WelcomeSCN1 is an internal Variable, to check if the script is running.
If SmartTags("CurrentSCN") <> SmartTags("SCN_No") Then
SmartTags("WelcomeSCN1") = SmartTags("SCN_No")
ActivateScreenByNumber SmartTags("SCN_No") ,0
End If
//Ending:
Thanks again for reading!