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

CLR (Clear) Ladder Logic Instruction

The Clear instruction is a ladder logic rung output instruction that clears all the bits (sets them to zero) of the Destination tag. The instruction is enabled when the preceding logic is true and disabled otherwise. The destination must be a value tag. List of possible arguments DESTINATION can be any of the following data types. … Read more

BTD (Bit Field Distribute) Ladder Logic Instruction

The BTD instruction is a ladder logic rung output instruction that copies user determined bits from the Source, shifts the bits to a user defined position and places the result in the Destination. The instruction is enabled when the preceding logic is true and disabled otherwise. The destination must be a value tag. Source Bit is … Read more

BSR (Bit Shift Right) Ladder Logic Instruction

The BSR instruction is a ladder logic rung output instruction that shifts data in an array one bit to the right every execution. The instruction loads the value of the source bit into the bit pointed to by the Length. The instruction is enabled when the preceding logic is true and disabled otherwise. When the … Read more

BSL (Bit Shift Left) Ladder Logic Instruction

The BSL instruction is a ladder logic rung output instruction that shifts data in an array one bit to the left every execution. The instruction loads the value of the source bit into the lowest bit of the array. The length defines the unload bit. The instruction is enabled when the preceding logic is true … Read more

BRK (Break) Ladder Logic Instruction

Use the Break instruction to interrupt a routine that was called by a FOR instruction. The BRK instruction is not necessary, rather optional. List of possible arguments None Note: Can’t think of any notes for this one

AVE (Average) Ladder Logic Instruction

The Average instruction is a ladder logic rung instruction that calculates the average 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. The Average ladder instruction uses the Control data type to calculate the average. Insure the … Read more

ATN (Arc Tangent) Ladder Logic Instruction

The Arc Tangent instruction is a ladder logic rung output instruction that takes the arc 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 result will be between … Read more