EQU (Equal To) Ladder Logic Instruction

The Equal To instruction is a ladder logic rung input instruction that compares two values. If the values are equal the logic to the right of the instruction, or rung-condition-out, is enabled and disabled if not equal. The values can be constants, tags or any combination. Strings can be compared. Strings are equal if the … Read more

DIV (Divide) Ladder Logic Instruction

The Divide instruction is a ladder logic rung output instruction that divides two values. The instruction is enabled when the preceding logic is true and disabled otherwise.  Source A is divided by Source B 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

DEG (Degrees) Ladder Logic Instruction

The Degrees instruction is a ladder logic rung output instruction that converts the Source from radians to degrees 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

CTU (Count Up) Ladder Logic Instruction

The Count Up instruction counts up by one every time the preceding logic transitions from false to true. The Counter.DN bit is set when the Accumulator reaches the Preset. The accumulator will continue to count even when the done bit is set. The CTU instruction can be paired with a CTD instruction referencing the same … Read more

CTD (Count Down) Ladder Logic Instruction

The Count Down instruction that counts down by one every time the preceding logic transitions from false to true. The Counter.DN bit is set when the Accumulator reaches the Preset. The accumulator will continue to count even when the done bit is set. The CTD instruction can be paired with a CTU instruction referencing the … Read more

CPT (Compute) Ladder Logic Instruction

The Compute instruction is a ladder logic rung output instruction that performs valid arithmetic expressions. The instruction is enabled when the preceding logic is true and disabled otherwise. The result of the expression is placed in the Destination tag. The Compute instruction is slower and uses more memory than other math instructions; however it allows … Read more

CPS (Synchronous Copy File) Ladder Logic Instruction

The Synchronous Copy File instruction is a ladder logic rung output instruction that copies data from the Source to the Destination x amount of elements long. The Source data remains the same. The CPS instruction cannot be interrupted by other tasks running in the processor. Use this instruction when you want to insure the data … Read more

COS (Cosine) Ladder Logic Instruction

The Cosine instruction is a ladder logic rung output instruction that takes the cosine 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

COP (Copy File) Ladder Logic Instruction

The Copy File instruction is a ladder logic rung output instruction that copies data from the Source to the Destination x amount of elements long. The Source data remains the same. Insure the Length does not travel outside the array boundaries. Use the SIZE instruction to determine how many elements are in an array. The Copy instruction … Read more

CMP (Compare) Ladder Logic Instruction

The Compare instruction is a ladder logic rung input instruction that evaluates an arithmetic expression. If the expression is true the logic to the right of the instruction, or rung-condition-out, is enabled and disabled if the expression is false. The Compare instruction is slower and uses more memory than other comparison instructions; however it allows … Read more