STD (Standard Deviation) Ladder Logic Instruction

The Standard Deviation instruction is a ladder logic rung instruction that calculates the standard deviation of values in an array and places the calculated value in the Destination tag. The instruction is enabled when the preceding logic is true and disabled otherwise. Wikipedia has an excellent article detailing the theory and standard deviation formula. The STD … Read more

SRT(Sort File) Ladder Logic Instruction

The Sort File instruction is a ladder logic rung instruction that sorts data in an array into ascending order.  The instruction is enabled when the preceding logic is true and disabled otherwise. The Sort File instruction uses the Control data type to sort the data. Insure the Length and Position does not travel outside the … Read more

SQR (Square Root) Ladder Logic Instruction

The Square Root instruction is a ladder logic rung output instruction that calculates the square root of the Source value and places the result in the Destination tag. The instruction is enabled when the preceding logic is true and disabled otherwise. The values can be constants, tags or any combination. If the Destination tag is … Read more

SIZE Ladder Logic Instruction

The Size Ladder instruction calculates the size of a dimension in an array. Arrays can have up to three dimensions. The instruction is enabled when the preceding logic is true and disabled otherwise. The Source can be an array, structure or string. List of possible arguments DIMENSION TO VARY CONSTANT     Can be 0,1,2 for dimensions 0,1,2 … Read more

SIN (Sine) Ladder Logic Instruction

The Sine instruction is a ladder logic rung output instruction that takes the sine of the Source value and places the result in the Destination tag. The instruction is enabled when the preceding logic is true and disabled otherwise. The values can be constants, tags or any combination. The Source must be between -2πx215 (-205887.4) and … Read more

RTO (Retentive Timer) Ladder Logic Instruction

The Retentive Timer instruction is a retentive timer that is enabled when the preceding logic is true. The timer is paused when the preceding logic is false. The RTO timer can be compared to a stop watch that can be paused. A value is entered into the preset and an accumulator keeps track of the … Read more

RES (Reset) Ladder Logic Instruction

The Reset instruction is used to reset Timers, Counters, and Control structures used in the ladder logic. Timer On and Timer Off instructions are normally reset when the preceding rung logic transitions from either true to false or false to true, however they can also be reset with the Reset instruction. The only reset for … Read more

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 … Read more

OTL and OTU (Output Latch & Output Unlatch) Ladder Logic Instructions

Ladder logic output instructions which write bit data referenced by an associated tag. The OTL instruction sets the referenced bit while the OTU instruction clears the bit. These instructions are used in pairs, meaning both instructions will reference the same tag. List of arguments BOOL TAG Important Note: The data referenced by the tag is not … Read more

OTE (Output Energize) Ladder Logic Instruction

Ladder logic output instruction that writes bit data referenced by an associated tag. The instruction sets the referenced bit to 1 if the preceding logic is true and 0 if false. List of arguments BOOL TAG