Checking Datapoint value during a configured time period and execute a function

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
tanisito
Posts:3
Joined: Mon Nov 13, 2017 9:46 am

Checking Datapoint value during a configured time period and execute a function

Post by tanisito »

Hi everybody,

I'm developing a script to supervise during a time period (ie. 5 minutes) the value of a datapoint (bool type). At the end of this period, if the value don't change, I'd need to send a dpSet l but if during the checked period value changes, it doesn't need to be Setted and supervision will reset till the next change of the initial value.

This example is for a door, in the case that during night shift the door opens (manual open from an operator) and after a period of time stay open, must be closed automatically. But in case the door will be closed not need to supervise anymore till the next door open and opposite for day shift.


Do you have any idea which functions could help me with this task?

timedfunc seens only for a repetitive functions, is there available more timers can I use?

Thanks in advance,
Sergio.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Checking Datapoint value during a configured time period and execute a function

Post by leoknipp »

Possibly you can use the CTRL function dpWaitForValue() for the functionality you want to use.
For details please have a look at the WinCC OA Documentation.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1