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

INST_ command meaning.

  • Ninad Joshi
  • March 14, 2023 at 2:37 PM
  • Thread is Unresolved
  • Ninad Joshi
    Reactions Received
    1
    Trophies
    3
    Posts
    44
    • March 14, 2023 at 2:37 PM
    • #1

    Hi all,

    working on fanuc crx cobot with R30iB mini plus controller.

    Following is the code I am working on.

    1: CALL -INST_PALLET(P[1],P[2],P[3],2,11,75,2,5,6) ;

    2:L PR[5:Cart Approach] 1000mm/sec CNT50 ;

    3:L PR[6:Cart OnPart] 250mm/sec FINE ;

    4: CALL -INST_HAND_CLOSE(1,'GRIP_CLOSE',0,2,0) ;

    5: PAYLOAD[2:Slug] ;

    6:L PR[5:Cart Approach] 1000mm/sec CNT50 ;

    7:J PR[1:Home] 60% CNT100 ;

    Where can I find the details about instruction number 1 and number 3? I tried to search in manuals but could not find INST_PALLET or INST_HAND_CLOSE instruction.

    Any help would be appreciated. :smiling_face:

  • Go to Best Answer
  • SkyeFire March 14, 2023 at 2:46 PM

    Approved the thread.
  • Sergei Troizky
    Reactions Received
    67
    Trophies
    6
    Posts
    650
    • March 14, 2023 at 7:05 PM
    • #2

    These are subprograms, called with parameters in the brackets.
    They are most probably written in Karel, not in TP.

    Do it well right away. It will become bad by itself.

  • Sbeve2020
    Reactions Received
    5
    Trophies
    1
    Posts
    109
    • March 14, 2023 at 10:28 PM
    • #3

    Sergei Troizky I hear a lot about Karrel's here any tips to get a basic understanding?

    Like what do you program it with then how do put it on the TP

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,901
    • March 15, 2023 at 3:12 PM
    • Best Answer
    • #4
    Quote from Sbeve2020

    Sergei Troizky I hear a lot about Karrel's here any tips to get a basic understanding?

    Like what do you program it with then how do put it on the TP

    It is programmed in Roboguide. The source code is a .kl file, and when compiled becomes a .pc file. You would then save the .pc file out, and load it into the real controller, and call it like a normal TP program. The only difference is that you won't be able to see inside of it.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Sbeve2020
    Reactions Received
    5
    Trophies
    1
    Posts
    109
    • March 15, 2023 at 3:48 PM
    • #5

    Nation Thank you so much that was great! SO Karrel just means the roboguide program into the TP.

  • Ninad Joshi
    Reactions Received
    1
    Trophies
    3
    Posts
    44
    • March 15, 2023 at 3:57 PM
    • #6
    Quote from Sergei Troizky

    These are subprograms, called with parameters in the brackets.
    They are most probably written in Karel, not in TP.

    Figured it out to some extent. Actually, when we write pallet instruction, controller asks for more information like number of rows, columns, layers, width between columns, height of layers and palletizing pattern etc. When we set the parameters, INST_PALLET(AR[1],AR[2],......) instruction appears on the pendant.

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,901
    • March 15, 2023 at 4:16 PM
    • #7
    Quote from Sbeve2020

    Nation Thank you so much that was great! SO Karrel just means the roboguide program into the TP.

    Not really. Karel and TP are two different languages that can interact with each other, but have different capabilities, strengths and weaknesses.

    TP is good for simple to moderately complex tasks, and well suited for motion. Karel is ill suited for motion, but great at complex stuff, such as custom communications, or advanced math/logic.

    TP is nice because you can see exactly what the robot is doing on the pendant, and it is modifiable from the pendant.

    Karel is nice for the opposite reasons. No one without the source code can modify the program, which helps when people decide to go exploring in the pendant and accidentally delete something.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Shellmer
    Reactions Received
    52
    Trophies
    5
    Posts
    161
    • March 16, 2023 at 1:28 AM
    • #8

    The problem with karel is that it is like a black box.

    If you have not the source code (.KL), or you lost it... and you need to debug an application, or even know what every optional parammeter do, you are screwed.

    Nation explained it perfectly, it has his strenghts and weakness.

    I always try to code all I can on TP, but for some things you need karel... per example socket communication is always done with a Karel. If you need to do complex things like checking the robot reachability before moving the robot to a variable point, you need karel... of you need to convert points from one base to another on the fly, again, you need karel.

    That instructions you are asking are coded in karel probably. If you do not see them on the "select" screen you must go to the variable page and put $karel_enb=1. Then if you select "Type->All" you will see the karel routines, but you can't see inside them.

  • Sbeve2020
    Reactions Received
    5
    Trophies
    1
    Posts
    109
    • March 16, 2023 at 1:04 PM
    • #9

    Thanks guys for all the Info I've learned a lot on here!

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