RAD (Degrees To Radians) Ladder Logic Instruction

The Radians instruction is a ladder logic rung output instruction that converts the Source from degrees to radians and places the value in the Destination. The instruction is enabled when the preceding logic is true and disabled otherwise. The values can be constants, tags or any combination.

The following formula is used:    Source * π/180

π = 3.141593

List of possible arguments

SOURCE and DESTINATION can be any combination of the following data types.

  • CONSTANT             Can’t be the DESTINATION obviously
  • SINT              
  • INT
  • DINT
  • REAL

Note: Arithmetic status flags are affected (S:V, S:Z, S:N, S:C). Overflow, Zero, Negative, and Carry.

 

Leave a Comment