Skip to main content

Example - Ladder Diagram

ATAN


The ATAN instruction calculates the arctangent, or inverse tangent, of the TANGENT operand, S, and saves the result in an assigned REAL data register, D.

Ladder Diagram Example


When the contact, M6.2, is ON (1), the instruction executes atan(-1.1) and saves the result, -0.832981.


Memory Monitor

ATANP


The ATANP one-shot instruction calculates the arctangent, or inverse tangent, of the TANGENT 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, M6.3, is ON (1), the instruction executes atan(2.7354) and saves the result, 1.220312.


Memory Monitor