Skip to main content

Example - Ladder Diagram

BACOS


The BACOS instruction calculates the arccosine, or inverse cosine, 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, M1.3, is ON (1), the instruction executes acos(H0003) and saves the result, H00000095.


Memory Monitor

BACOSP


The BACOSP one-shot instruction calculates the arccosine, or inverse cosine, 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.4, is ON (1), the instruction executes acos(H0205) and saves the result, H00000101.


Memory Monitor