Skip to main content

Example - Ladder Diagram

BTAN​


The BTAN instruction calculates the tangent of the 4-digit binary coded decimal (BCD) operand, S, and saves the result in an assigned 8-digit binary coded decimal (BCD) data register, D.

Ladder Diagram Example​


When the contact, M0.9, is ON (1), the instruction executes tan(H8246) and saves the result, H00000001.
The fractional result is saved as H6745.


Memory Monitor​

BTANP​


The BTANP one-shot instruction calculates the tangent of the 4-digit binary coded decimal (BCD) operand, S, and saves the result in an assigned 8-digit binary coded decimal (BCD) 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 tan(H7913) and saves the result, H00000001.
The fractional result is saved as H1228.


Memory Monitor​