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:08

PLC Programming Command Guide Reference Web Site

1 of 2

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

Label Instruction (LBL)


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

The (LBL) instruction is used by the jump (JMP) instruction as a target for
the jump. In order to designate the (JMP) and (LBL) commands, parameters
may be entered from Q:0 to Q:999. One or more (JMP) instructions may be
used to jump to the same (LBL).
The Label (LBL) instruction is paired with the Jump (JMP) instruction by
designating the same number in each function. When the JMP command is
TRUE, it allows the program to skip over portions of the ladder program an
restart execution in the rung designated by LBL instruction.
The symbol for the LBL instruction is illustrated above. The LBL instruction
is placed on the left side
of the rung. The LBL command indentifies the jump (JMP) target for the command. The LBL instruction
is not located under the JMP command in the programming logic, then a FAULT will occur. The label
command becomes TRUE when activated by a jump command and any other logic inbedded on the rung
is evaluated.
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 then typing in the value.

NOTE: Rungs with the LBL commands will be scanned by the processor even if the JMP instruction was
not executed. Do not place the LBL inside a Master control reset (MCR) zone. Any instructions located
between the LBL instruction and the End MCR instruction will always be evaluate as if the MCR
instruction were TRUE without regard to its actual state.

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:08

PLC Programming Command Guide Reference Web Site

2 of 2

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

In this example the JMP instruction is activated when I:1/1 is true. This causes the program to skip to the
address 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:08

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