Wincc event-question/problem

marcius

Member
Join Date
Apr 2007
Location
Klaipeda
Posts
137
I have folowing code in Plc(Simatic S7)
Code:
L     #dwControl_Struct.Set_point
T     #wOld_Value
L     1
L     #dwControl_Struct.Set_point
+I    
T     #dwControl_Struct.Set_point
T     #wNew_Value

S     #SP_Change
SP_Change is reset after 3 seconds.
Frequency of SP change is 25-30 seconds.

Folowing massage configured in WinCC:
"Set point change Old_Value/New_Value".
Message is triggered by #SP_Cange bit.
Usually everything works as expected and i get messages like
"Set point change 40/41".
But sometimes i get messages with 0/0 or same value like 40/40.
I fail to understand why this is happening.
 
Hello

WinCC update his tags asynchronously from PLC's Cycle.

It means that WinCC can catch the rising edge in "SP_Change" when the first 2 lines have just been ejecuted.
 
I'm saying that WinCC detects changes in the bit just in the moment that PLC is executing the next cycle (or laters) but before the increment of the SP
 

Similar Topics

I have several items which all relate to a process step. There are 20 steps all with the same variables. I want to add variables in each step...
Replies
1
Views
3,376
Hi! I have quite a bit of an issue here. Short time data logging is to be done and then transferred to a USB-stick. Everything works fine...
Replies
0
Views
1,244
Here's My Set Up. HMI MP377, Siemens CPU 319F PLC. Here's what I need to happen. On a BOOL being set(or any data type really) I need to bring...
Replies
2
Views
1,397
I am using WinCC Flex 2008 Advan and i want to create a buliding automation project, i want to bring on outputs from the HMI over a 24 hour...
Replies
0
Views
2,244
Hi All, I am trying to find how to log all events for historical tracking. What I need to log is who logged in or out; when setpoints have been...
Replies
0
Views
1,448
Back
Top Bottom