Example - Ladder Diagram
TAN
The TAN instruction calculates the tangent of the REAL operand, S, and saves the result in an assigned REAL data register, D.
Ladder Diagram Example
When the contact, M0.7, is ON (1), the instruction executes tan(2.75) and saves the result, -0.412918.
Memory Monitor
![]()
TANP
The TANP one-shot instruction calculates the tangent 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.8, is ON (1), the instruction executes tan(-0.5435) and saves the result, -0.604197.
Memory Monitor
![]()