JMP/LBL: Difference between revisions

382 bytes added ,  4 years ago
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 FanucFANUC Teach Pendant Programmers.
 
 
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
 
|}
 
 
 
* ===Instruction Syntax ===
 
Line 29 ⟶ 24:
 
* ===When this instruction is reached ===
 
Line 37 ⟶ 32:
 
* ===When to add this instruction ===
 
Line 45 ⟶ 40:
 
* ===How to add this instruction ===
 
[[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:
 
* ===What else is needed to use this instruction ===
 
Line 61 ⟶ 57:
 
* ===Valid Variables ===
 
Line 69 ⟶ 65:
 
* ===Special Notes ===
 
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:
|}
 
 
* ===Instruction Syntax ===
 
Line 117 ⟶ 108:
 
* ===When this instruction is reached ===
 
 
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.
 
Anything between the jump and its destination is ignored. The operation is unconditional.
 
 
* ===When to add this instruction ===
 
Line 133 ⟶ 126:
 
*=== How to add this instruction===
 
 
In the Non-Motion Instructions menu, select the “JMP/LBL” Category. 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.
 
[[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.
 
 
* ===What else is needed to use this instruction ===
 
Line 149 ⟶ 150:
 
* ===Valid Variables ===
 
 
* ====Direct – Any number between 1 and 32766. * ====
 
 
Example: LBL [7]
 
 
* ====Indirect – A register containing any number between 1 and 32766. * ====
 
Line 169 ⟶ 168:
 
* ===Special Notes ===