Example - Ladder Diagram
BCOS
The BCOS instruction calculates the 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, M0.2, is ON (1), the instruction executes cos(H9245) and saves the result, H00000001.
The fractional result is saved as H4226.
Memory Monitor
![]()
BCOSP
The BCOSP one-shot instruction calculates the 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, M0.3, is ON (1), the instruction executes cos(H4573) and saves the result, H00000001.
The fractional result is saved as H2924.
Memory Monitor
![]()