Support Forums
online help for Edge function

Can anyone explain what VTScada are attempting to describe here?

https://www.vtscada.com/help/Content/Pro_Functions/Edge.htm?Highlight=edge

I can't grasp how example 2 or the notes following example 2 apply to rising &/or falling edge detection.

Can anyone explain what VTScada are attempting to describe here? https://www.vtscada.com/help/Content/Pro_Functions/Edge.htm?Highlight=edge I can't grasp how example 2 or the notes following example 2 apply to rising &/or falling edge detection.

Example 2 is a very puzzling error in the docs. That shouldn't be there at all. And it won't be after the next build.

Try this one instead: It monitors for a left-click release within a target area.

If Edge(LocSwitch() == 4, 0) {Left mouse button released } &&
Target(10, 25, 110, 225) {Mouse in target area };
[
...
]

Example 2 is a very puzzling error in the docs. That shouldn't be there at all. And it won't be after the next build. Try this one instead: It monitors for a left-click _release_ within a target area. If Edge(LocSwitch() == 4, 0) {Left mouse button released } && Target(10, 25, 110, 225) {Mouse in target area }; [ ... ]
46
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft