JMP/LBL: Difference between revisions
no edit summary
(Created page with "This page details the jump and label instructions available on the Fanuc Teach Pendant Programmers. Jump and Label instructions do not involve motion. They are simply progra...") |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1:
[[File:JMPLBL.gif|thumb|How to add the JMP LBL and LBL instructions]]
This page details the jump and label instructions available on the
Jump and Label instructions do not involve motion. They are simply program operations with a directive to go to a line and a label for that destination line.
This article is part of a series on Non-Motion instructions.
==Label Instruction==
Line 15 ⟶ 14:
! Label Instruction
|}
Line 29 ⟶ 24:
Line 37 ⟶ 32:
Line 45 ⟶ 40:
[[File:Non-Motion Instructions.png|frame|Use this button to get to the menu of non-motion instructions.]]
In the Non-Motion Instructions menu, select the “JMP/LBL” Category. In the “JMP/LBL” menu, select “LBL []”. Once added, type the label number and press enter.
Line 53 ⟶ 49:
Line 61 ⟶ 57:
Line 69 ⟶ 65:
Line 77 ⟶ 73:
There can only ever be one of each label. For example, if you put down two LBL [1] instructions, it will alert you with an asterisk next to the instruction. * Think of them like phone numbers. If two phones had the same number, both would ring, and it would be impossible to know which one the intended destination is.
==Jump Label Instruction==
Line 107 ⟶ 99:
|}
Line 117 ⟶ 108:
The program’s pointer will jump up (or down) to wherever that label happens to be.
Anything between the jump and its destination is ignored. The operation is unconditional.
Line 133 ⟶ 126:
In the Non-Motion Instructions menu, select the “JMP/LBL” Category.
[[File:Non-Motion Instructions.png|frame|Use this button to get to the menu of non-motion instructions.]]
In the “JMP/LBL” menu, select “JMP LBL []”.
Once inserted, insert the label number.
If you want to insert a register, select ”Indirect” in the on screen options and type the register number.
Line 149 ⟶ 150:
Example: LBL [7]
Line 169 ⟶ 168:
|