FLL (Fill File) Ladder Logic Instruction

The Fill 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 unchanged. Insure the Length does not travel outside of the array boundaries. Use the SIZE instruction to determine how many elements are in an array. The instruction … Read more

FAL (File Arithmetic and Logic) Ladder Logic Instruction

The File Arithmetic and Logic instruction is a ladder logic instruction that can perform copy, arithmetic and logic functions on data in an array. The instruction uses a Control data type in conjunction with a user defined expression. The instruction is enabled when the preceding logic is true and disabled otherwise. Insure the Length and … Read more

EVENT Ladder Logic Instruction

The Event instruction is used to trigger an Event task. The task is run one time for each trigger. Make sure the event has enough time to complete before calling the task again. The instruction is enabled when the preceding logic is true and disabled otherwise. Arithmetic flags are not affected. Note: Check the task overlap … Read more

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