Speed Trigger Object
Speed Trigger objects monitor movers until they have exceeded a specified velocity.
Setup & Execution
1 2 |
|
1 2 |
|
Properties
.MoverInVelocity
Status boolean indicating that at least one mover is currently exceeding the threshold velocity
.CurrentMover
Reference variable that refers to the earliest registered mover to exceed the threshold velocity since being registered
-
If no movers are tracked, or no tracked movers currently satisfy the objective, then .CurrentMover is an invalid reference. In this case, an ErrorMover will replace the invalid reference. The user will receive notifications when this happens in the TwinCAT event logs. See Diagnostics>ErrorMovers for more information.
-
It is recommended that all evaluations are nested inside IF check for .MoverInVelocity.
-
It is possible that multiple registered movers simultaneously exceed the threshold velocity. Only the least recently valid mover handle is provided by .CurrentMover. To access more recent events, deregister the current mover with SpeedTrigger.UnregisterCurrent()
.ThresholdVelocity
Current velocity, above which a mover is considered 'In Velocity'
Extra Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|