Skip to content

Zero-Crossing Detector

Symbol

Description

Detect input signal zero crossing. Output is equal to:

  • 1 if IN{prev} < 0 AND IN >= 0
  • -1 if IN{prev} >= 0 AND IN < 0
  • 0 otherwise

Library

Control > Discrete

Pins

Name Description
In Input
Out Output

Parameters

Name Description
SamplingTime -none or 0: No sampling. The system will be solved in the Newton loop (default).
-auto: Inherit the sampling time of its source device.
-Sampling Period: defined in seconds.