LEQ (Less Than or Equal To) Ladder Logic Instruction

The Less Than or Equal To instruction is a ladder logic rung input instruction that compares two values. If Source A is less than or equal to Source B the logic to the right of the instruction, or rung-condition-out, is enabled and disabled otherwise. The values can be constants, tags or any combination. Strings can … Read more

LBL (Jump to Label) Ladder Logic Instruction

The Label instruction is used in conjunction with a Jump instruction. When the JMP instruction is enabled, the code between the JMP and LBL instruction is not executed. Code execution begins immediately after the LBL instruction. When the JMP instruction is disabled the code between the JMP and LBL instruction is executed normally. A LBL … Read more

JSR, SBR, RET Jump To Subroutine & Return Ladder Logic Instructions

JSR Definition The JSR instruction is a ladder logic rung output instruction.  When the instruction is scanned program execution jumps to the subroutine named in the JSR instruction. After the called subroutine is executed the logic execution continues from the rung the subroutine was called from. The instruction is enabled when the preceding logic is … Read more

JMP (Jump to Label) Ladder Logic Instruction

The JMP instruction is used in conjunction with a LBL Label instruction. When the JMP instruction is enabled the code between the JMP and LBL instruction is not executed. Code execution begins immediately after the LBL instruction. When the JMP instruction is disabled the code between the JMP and LBL instruction is executed normally. A … Read more

IOT (Immediate Output) Ladder Logic Instruction

The IOT instruction is a ladder logic output instruction that updates output data immediately rather than waiting for the RPI of the module or tag to update the data. Use the instruction to update the output data of an entire output module. For instance, when you use the instruction to update an output card, address … Read more

GRT (Greater Than) Ladder Logic Instruction

The Greater Than instruction is a ladder logic rung input instruction that compares two values. If Source A is greater than Source B the logic to the right of the instruction, or rung-condition-out, is enabled and disabled otherwise. The values can be constants, tags or any combination. Strings can be compared. The software compares the … Read more

GEQ (Greater Than or Equal To) Ladder Logic Instruction

The Greater Than or Equal To instruction is a ladder logic rung input instruction that compares two values. If Source A is greater than or equal to Source B the logic to the right of the instruction, or rung-condition-out, is enabled and disabled otherwise. The values can be constants, tags or any combination. Strings can … Read more

FSC(File Search & Compare) Ladder Logic Instruction

The FSC instruction is a ladder logic rung output instruction that compares data in an array, element by element. 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 Position does not travel outside … Read more

FRD (From Binary-Coded Decimal BCD) Ladder Logic Instruction

The FRD instruction is a ladder logic rung output instruction that takes a binary coded decimal value from the Source and places the decimal equivalent 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. In BCD each byte represents … Read more

FOR Ladder Logic Instruction

Use the For instruction to scan a Ladder routine repeatedly. The For instruction is handy for populating elements in arrays as an example. The instruction will repeatedly scan a routine until the Index Value exceeds the Terminal Value. List of possible arguments Routine Name             ROUTINE                             Routine to call Index                              DINT                                      Routine run count … Read more