Skip to main content

Example - Ladder Diagram

BSIN​


The BSIN instruction calculates the sine 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.0, is ON (1), the instruction executes sin(H4567) and saves the result, H00000001.
The fractional result is saved as H9205.


Memory Monitor​

BSINP​


The SINP one-shot instruction calculates the sine 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, M0.1, is ON (1), the instruction executes sin(H9999) and saves the result, H00000001.
The fractional result is saved as H9877.


Memory Monitor​