Skip to main content

Example - Ladder Diagram

ASIN


The ASIN instruction calculates the arcsine, or inverse sine, of the SINE operand, S, and saves the result in an assigned REAL data register, D.

Ladder Diagram Example


When the contact, M0.0, is ON (1), the instruction executes asin(1.0) and saves the result, 1.570796.


Memory Monitor

ASINP


The ASINP one-shot instruction calculates the arcsine, or inverse sine, of the SINE operand, S, and saves the result in an assigned REAL data register, D.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M1.0, is ON (1), the instruction executes asin(-1.0) and saves the result, -1.570796.


Memory Monitor