Skip to main content

Example - Ladder Diagram

SIN


The SIN instruction calculates the sine of the REAL 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 sin(1.5) and saves the result, 0.997495.


Memory Monitor

SINP


The SINP one-shot instruction calculates the sine of the REAL 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, M0.1, is ON (1), the instruction executes sin(1.56) and saves the result, 0.999942.


Memory Monitor