Topic: DMD0149

Help File Version: 2.9.4.37

LABEL - Program Label


The Program Label (LABEL) instruction marks a location in a code block (Program or Task) that can be the target of a Go To Label (GOTO) instruction. All of the Labels in the same project must have a unique number.

 

 

This instruction is a 'power-rail' instruction, meaning that it is displayed in the left-most column of the ladder diagram (the power rail). Creating new instances of this instructions is a bit counter-intuitive because they cannot be entered directly on the power rail in the Ladder Editor. The first step is to position the edit cursor in the output column (the far right) of the rung in the ladder logic diagram instead of positioning it against the power rail (the far left). At that point you can enter the instruction's mnemonic or double click on the instruction's name in the Instruction Toolbox. You can also drag / drop the instruction from the Toolbox anywhere on the rung and it will be created in the power rail of that rung.

 


Parameters:

Label - the number that uniquely defines this label. This can be any constant value between 0 and 65535.

 


See Also:

GOTO - Go To Label

 

LABEL - Program Label

 


Related Topics:

BREAK - Exit Loop

 

CONTINUE - Skip to Loop End

 

FOR - Index Loop

 

NEXT - Index By Step

 

REPEAT - Loop Until Condition is Non-Zero

 

UNTIL - Repeat Until Condition is Non-Zero

 

WEND - While End

 

WHILE - Loop While Condition is Non-Zero

 


Rung Example: