Example - Ladder Diagram
DEG Example
The DEG instruction converts a REAL radian value, S, into degrees and saves the result in an assigned REAL data register, D.
Ladder Diagram Example
When the contact, M0.2, is ON (1), the instruction converts the degree value, 2.146755, into the resulting radian value, 123.000000.
Memory Monitor
![]()
DEGP
The DEGP one-shot instruction converts a REAL radian value, S, into degrees 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.3, is ON (1), the instruction converts the degree value, -1.234560, into the resulting radian value, -70.735077.
Memory Monitor
![]()