Skip to main content

Example - Ladder Diagram

RAD


The RAD instruction converts a REAL degree value, S, into radians and saves the result in an assigned REAL data register D.

Ladder Diagram Example


When the contact, M0.0, is ON (1), the instruction converts the degree value, -1.700000, into the resulting radian value, -0.029671.


Memory Monitor

RADP


The RADP one-shot instruction converts a REAL degree value, S, into radians 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.1, is ON (1), the instruction converts the degree value, 2.450000, into the resulting radian value, 0.042761.


Memory Monitor