 Zero Crossing - MapleSim Help

Zero Crossing

Trigger zero crossing of input $u$  Description The output $y$ is $\mathrm{true}$ at the time instant when the input $u$ becomes zero, provided the input $\mathrm{enable}$ is $\mathrm{true}$. At all other time instants, the output $y$ is $\mathrm{false}$. If the input $u$ is zero at a time instant when the $\mathrm{enable}$ input changes its value, then the output $y$ is $\mathrm{false}$. The output is $\mathrm{true}$ only for an instant, so a plot of it will always appear $\mathrm{false}$. Equations $\mathrm{u_pos}=\left(\mathrm{enable}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}0\le u\right)$ $y=\left(\mathrm{change}\left(\mathrm{u_pos}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{not}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathrm{edge}\left(\mathrm{enable}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{not}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathrm{edge}\left(\mathrm{disable}\right)\right)$ Connections

 Name Description Modelica ID $y$ Boolean output signal y $u$ Real input signal u $\mathrm{enable}$ Zero input crossing is triggered if the enable input signal is true enable Modelica Standard Library The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.