TAN (Tangent) Ladder Logic Instruction

The Tangent instruction is a ladder logic rung output instruction that takes the tangent 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πx214 (-102943.7) and … Read more

SWPB (Swap Byte) Ladder Logic Instruction

The Swap Byte instruction is a ladder logic rung output instruction that swaps the bytes from the Source value according to the Order Mode and places the result in the Destination tag. The order mode is chosen via a drop down list on the instruction. The instruction is enabled when the preceding logic is true … Read more

SUB (Subtract) Ladder Logic Instruction

The Subtract instruction is a ladder logic rung output instruction that subtracts two values. The instruction is enabled when the preceding logic is true and disabled otherwise.  Source B is subtracted from Source A and placed in the Destination tag. The values can be constants, tags or any combination. List of possible arguments SOURCE A and SOURCE … Read more

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