Sunteți pe pagina 1din 3

Menu

1 of 1

http://plcguide.mrplc.com/menu.shtml

Menu
Command Index
Basic Instructions
Timer & Counter
Compare
Data
Math
Register and Sequencer
Program Control
Communication
Programming References
Example Programs
PLC GuestBook
Links
Down Loads

Send Comments

2001-2006
All Rights Reserved
Your IP Address is: 117.222.1.67

02-07-2013 16:07

PLC Programming Command Guide Reference Web Site

1 of 2

http://plcguide.mrplc.com/prgcon/jmp.html

Jump Instruction (JMP)


[Introduction Page] [Command Index] [Programming References]

The JMP instruction is used to cause the PLC to skip over rungs. The Jump
(JMP) instruction is paired with the Label (LBL) instruction by designating
the same address number to each function. When the jump rung is TRUE, it
causes the ladder program to skip over rungs of the ladder program.
To designate the JMP and LBL commands, parameters may be entered from
Q2: 0 to Q2: 999. One or more JMP instructions may be used to jump to the
same LBL instruction.
The symbol for the jump command is illustrated above. The JMP command
is placed on the right
side of the rung. When the rung is activated by a TRUE logical operator or input control, the JMP
instruction skips over the rungs between the JMP instruction and the rung with the LBL instruction.
Execution continues after the rung with LBL. (Note: The JMP instruction work forward only.) For
multiple jumps, a counter can be used to create a do loop in ladder logic.
If the rung is false the JMP instruction is skipped, causing no jump in the programming ladder logic. The
LBL rung in the ladder logic is treated as any other line in the program and is scanned each time the
program cycles.
The JMP and LBL parameter are assigned to the JMP and LBL commands by positioning the cursor on
the instruction and then double clicking the left mouse button. This opens a text box so that the parameter
value can be entered, or highlight the instruction by selecting it and typing in the value.

Example Problem 1
Write a ladder logic program that will skip several rungs in a program when I:1/1 becomes TRUE.

02-07-2013 16:07

PLC Programming Command Guide Reference Web Site

2 of 2

http://plcguide.mrplc.com/prgcon/jmp.html

In this example the JMP instruction is activated when I:1/1 is true. This causes the program to skip to the
Q2:0 LBL instruction. The program will continue from the LBL command.

Example Problem 2
Write a ladder logic program that will jump up to T4:2 timer when the output O:2/0 becomes TRUE.

In this example the JMP command is used to jump to a timer that may be used several times in the
program.

[Back] [Next Command]

02-07-2013 16:07

S-ar putea să vă placă și