1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Skip condition, jump label not working

  • GSARRY
  • July 15, 2022 at 3:44 PM
  • Thread is Unresolved
  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 3:44 PM
    • #1

    Hi everyone, I apologize for posting on the FANUC skip condition issue again as I saw there are already multiple posts about the issue.

    However, I am faxing something really stupid of a issue and need immediate help with the same.

    Issue - I am trying to skip a motion based on an DI signal. However when putting the skip, lbl [….] after my motion, the robot software immediately jumps to the line number of the motion. In other words it won’t let me add a constant number inside the lbl box to tell it where to jump. I don’t understand why this would be happening. I am attaching a photo of the code to clarify as well. I appreciate all the help I can receive in this matter.

    Thank you

    Images

    • 6AF26CCC-C55A-448B-A164-0FAB6EA9E40D.jpg
      • 697.59 kB
      • 1,200 × 1,600
      • 32
  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 5:51 PM
    • #2

    I really need help with this one guys please support

  • mortoch
    Reactions Received
    16
    Trophies
    3
    Posts
    202
    • July 15, 2022 at 6:35 PM
    • #3

    I am not near my robots but it looks like you might need to identify the lbl for it to jump to

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 6:42 PM
    • #4

    Hi mortoch,

    Thanks for replying. I know this sounds very rubbish but when I add skip,lbl[] from the instructions tab into the program, the instruction gets added but the ability to tell it where to jump is somehow not working. I mean if you look at the photo I attached:

    After adding skip lbl after the offset instruction, the line number 15 gets selected. However I cannot even select the […] to add a number for it to jump to.

    My next question is - is there supposed to be a system variable that I need to enable for the skip instruction to work ???

    Also to note - my I/O are defined as deviceNet and deciding is yet to be properly setup. Could it be that my I/O are not setup that it won’t let me jump to a label because DI 28 is kind of invalid ?

  • Srt_424
    Trophies
    2
    Posts
    7
    • July 15, 2022 at 6:44 PM
    • #5

    I agree with mortoch line 15 of the code skip lbl is undefined or incomplete.

    skip, LBL (....)

  • pdl
    Reactions Received
    270
    Trophies
    9
    Posts
    1,544
    • July 15, 2022 at 7:03 PM
    • #6

    Is the teach pendant turned on?

    You are trying to scroll to that line with the down arrow, and then use the right arrow to go to the [...], correct?

  • mortoch
    Reactions Received
    16
    Trophies
    3
    Posts
    202
    • July 15, 2022 at 7:04 PM
    • #7

    If you highlight the rung of the label and select F4 and see if you don't see "Detail". It has been a long while but I think that will let you do what you need.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 7:07 PM
    • #8

    Hi pdl,

    That is correct. Teach pendant is on. It seems if I enter skip,lbl[],PR[] instruction, it has no problem. But when ever I add skip,lbl[] instruction, the cursor immediately jumps to select line number.

    Let me upload a photo of what I mean. Unfortunately not able to upload video.

    Images

    • image.jpg
      • 698.37 kB
      • 1,200 × 1,600
      • 17
  • HawkME
    Reactions Received
    570
    Trophies
    11
    Posts
    3,269
    • July 15, 2022 at 7:07 PM
    • #9

    The problem is you are pressing the down arrow. Just push the 'right' arrow key until you get to it.

    It's not a different line of code, it's all one line of text that is wrapped on the screen because the screen is not wide enough.

  • mortoch
    Reactions Received
    16
    Trophies
    3
    Posts
    202
    • July 15, 2022 at 7:16 PM
    • #10

    I knew there was something I was not remembering. As always HawkME you are the man.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 7:19 PM
    • #11

    Hi HawkME,

    I tried that as well. Not able to upload video because iPhone makes .MOV and the website doesn’t support that format. I am hoping that the software itself is not corrupted.

    Thank you.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 7:19 PM
    • #12

    Only facing issue with regular skip,lbl and not with Skip,lbl,PR

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 7:25 PM
    • #13

    Hi guys,

    Finally able to upload a video to demonstrate what I mean. Even if I am pressing the right arrow it keeps skipping the […] area and jumps directly to line number.

    I hope this clarifies better what I was trying to say.

    Files

    IMG_2356.MOV.mp4 2.25 MB – 29 Downloads
  • HawkME
    Reactions Received
    570
    Trophies
    11
    Posts
    3,269
    • July 15, 2022 at 7:33 PM
    • #14

    Ok, that is strange. Maybe try deleting and recreating that line of code. Or rebooting the controller. Or going to single wide display mode.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 7:35 PM
    • #15

    I will try all those options and see what happens.

    Thank you all for your kind support and help.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 8:14 PM
    • #16

    Hey everyone, I tried all the options but nothing helped. I am starting to wonder if it’s actually a software issue. Might need FANUC to get involved in this.

    I wanted to know if anyone knew an alternate to using skip condition. Something that does the same job as the skip condition.

    Thank you

  • pdl
    Reactions Received
    270
    Trophies
    9
    Posts
    1,544
    • July 15, 2022 at 8:40 PM
    • #17

    Why not just use the skip lbl[], pr[] instruction? It looks like your original code was doing PR=LPOS right away anyways.

    One less line of code = fewer keystrokes to retirement :smiling_face_with_heart_eyes:

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 8:49 PM
    • #18

    Hi pdl,

    I would love to use that instruction. I just need to understand how it works.

    Let’s see, in a normal skip condition, the logic gets to the next line if skip condition is true.

    So in the case of Skiplbl, pr - would the logic jump to the next line if my pr is satisfied ? Or it would not jump to pr if my skip condition is satisfied?

    I am sorry if I confused you.

    But thank you 😅

  • DS186
    Reactions Received
    200
    Trophies
    6
    Posts
    1,075
    • July 15, 2022 at 9:28 PM
    • #19

    This post describes the skip conditions very well. It may be helpful for you to understand the logic behind the different skip instructions.

  • GSARRY
    Reactions Received
    2
    Trophies
    2
    Posts
    18
    • July 15, 2022 at 9:36 PM
    • #20

    Thank you DS 186. I appreciate your help 😊

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • How to run a program simultaneously.

    • DG
    • October 7, 2019 at 8:47 PM
    • Fanuc Robot Forum
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download