Skip to main content

Example - Ladder Diagram

ACOS Example


The ACOS instruction calculates the arccosine, or inverse cosine, of the COSINE operand, S, and saves the result in an assigned REAL data register, D.

Ladder Diagram Example


When the contact, M2.0, is ON (1), the instruction executes acos(0.123456) and saves the result, 1.447025.


Memory Monitor

ACOSP


The ACOSP one-shot instruction calculates the arccosine, or inverse cosine, of the COSINE 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, M2.1, is ON (1), the instruction executes acos(0.5) and saves the result, 1.047198.