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

Arguments and function of FCMPSTRT.PC and FCMPEND.PC

  • RWD Controls
  • September 29, 2023 at 6:02 PM
  • Thread is Resolved
  • RWD Controls
    Reactions Received
    3
    Trophies
    1
    Posts
    5
    • September 29, 2023 at 6:02 PM
    • #1

    I am reading through backed-up LS program files written by someone else in the past. I am using this as a guide, since I am setting up a new robot for similar tasks.

    I am trying to figure out these calls:

    "`

    CALL FCMPSTRT(1,1,200) ;

    .

    .

    CALL FCMPEND ;

    "`

    When I look in the backup of the old example robot, I do not see these files included in the backup. However, I do see reference to them in the prgstate.dg file:

    "`

    FCMPSTRT PC

    Program name: PCMPSTRT

    Source file: PRODUCT\CLLB\FCMPSTRT.PC

    "`

    In the backup from the old example robot, the only file appearing in the CLLB directory is CRDATA1.VR

    When I look in the brand new out-of-the-box robot, I see that FCMPSTRT.PC and FCMPEND.PC files already exist by default, as they are listed when I press the SELECT key on the teach pendant. However, these .PC files don't get included when I do a file backup of the controller. Although the prgstate.dg file on the new controller does make mention of them, too. I set up an FTP connection to the controller and I can access many of the files, but these .PC files don't appear there either. I have not purchased the Karel option, in case that makes a difference.

    And even if I could get the .PC files, I doubt I'd be able to decompile them to see what's inside.

    It appears that these p-code files come default on these robots, but I don't know whether the versions on the old example robot had been edited or not.

    Do any of you know what happens when the default versions of these files are called and what are the meanings of the 3 arguments of FCMPSTRT?

    I couldn't find any documentation regarding how or when to use PCMPSTART or PCMPEND. But maybe I've been looking in the wrong places.

    Setup:

    CRX-10iA robot with R-30iB Mini Plus controller

    And thanks to all of you for the many questions and answers posted on this forum. I have learned a lot from you guys.

  • Go to Best Answer
  • Lemster68 September 29, 2023 at 6:52 PM

    Approved the thread.
  • HawkME
    Reactions Received
    568
    Trophies
    11
    Posts
    3,268
    • September 29, 2023 at 7:25 PM
    • #2

    If it is included from Fanuc, then it should be documented in a manual. Usually there is also a corresponding TP program that will show the arguments.

  • pdl
    Reactions Received
    269
    Trophies
    9
    Posts
    1,530
    • September 29, 2023 at 7:56 PM
    • Best Answer
    • #3

    It took a while to figure this one out, thanks for listing the robot type.

    The information you are looking for is in the collaborative robot function operator's manual. Fanuc document B-83744 (B-83744EN/05 is what I used). If you search Fanuc's documentation library, just search for "collab".

    The Karel programs cannot be backed up because they are copy protected; they won't show up in a backup, and you can't edit them.

    The FCMP programs are for Fanuc's Variable Payload Compensation Function.

    FCMPSTRT is called at the start.

    AR[1] = Mode

    AR[1] = 1 = Record Mode

    AR[1] = 2 = Record Mode (Record Clear)

    AR[1] = 0 = Play Mode

    AR[2] = Schedule Number

    AR[3] = Interval for Compensation (in milliseconds)

    FCMPEND is called at the end.

    More details can be found in the listed manual.

  • RWD Controls
    Reactions Received
    3
    Trophies
    1
    Posts
    5
    • October 2, 2023 at 11:55 PM
    • #4

    Thank you pdl! That answers my question!

    I'm embarrassed to be that "guy who didn't read the docs before posting". Shame on me for that.

    But thank you. This is my first time using a Fanuc and my first time setting up a robot from scratch, so my head is swimming right now. I recognize your name/logo from elsewhere on this forum and you have helped me out a ton through your other posts.

    HawkME I've learned a lot from your other posts as well.

    I will happily mark this thread as solved.

  • Lpoels
    Reactions Received
    4
    Trophies
    3
    Posts
    18
    • January 2, 2024 at 4:34 PM
    • #5

    I will also start working on this shortly, because the products to be picked vary by more than 0.5 kg than the target weight and cause many payload errors.

    I have already looked through the documentation, but it is not yet clear to me:

    When picking a product, do you have to do RECORD when picking it up (and the product is free of the pallet)?

    And PLAY until your product is dropped?

  • RWD Controls
    Reactions Received
    3
    Trophies
    1
    Posts
    5
    • January 2, 2024 at 7:17 PM
    • #6

    If your issue is variable part weights, I don't think the Variable Payload Compensation Function is the tool you are looking for. This tool is more to compensate for repeatable variations in external force during a specific motion.

    Just curious, what is the target weight? I'm wondering if 0.5 kg is a small or large percentage of that target weight.

    What other causes of payload errors have you ruled out? Are you doing your PAYLOAD function before you grip or release, not after? And after your do your PAYLOAD instruction, are you waiting a short amount of time for the payload change to take effect before doing a move? Is your Payload Change Distance non-zero?

  • Lpoels
    Reactions Received
    4
    Trophies
    3
    Posts
    18
    • January 3, 2024 at 11:49 AM
    • #7
    Quote from RWD Controls

    If your issue is variable part weights, I don't think the Variable Payload Compensation Function is the tool you are looking for. This tool is more to compensate for repeatable variations in external force during a specific motion.

    Just curious, what is the target weight? I'm wondering if 0.5 kg is a small or large percentage of that target weight.

    What other causes of payload errors have you ruled out? Are you doing your PAYLOAD function before you grip or release, not after? And after your do your PAYLOAD instruction, are you waiting a short amount of time for the payload change to take effect before doing a move? Is your Payload Change Distance non-zero?

    Its about a CRX-25iA, with a configuration of 30Kg.

    For example, the product is: 15 kg, testing shows that the products actually deviate by more than >0.5 kg. According to the knowledge I obtained from Fanuc, the CRX-25iA would notice a difference of 0.5Kg (and stop..).

    To rule out that it is due to picking, I have previously (with support from Fanuc) set waiting times before/after picking to rule out picking. It can also be seen when switching the Payload that (in the furthest extended position) the cobot lowers a little... Discussed this with Fanuc and they had no explanation for this.


    The product picking is done as follows:

    * At pre position (a few mm above pick position) disable DCS Push to Escape,

    so that force searching can be used for without the cobot moving away.

    * Search by force with SKIP function (This is slow and sensitive, so that SKIP occurs sooner instead of COBOT function).

    * Then Payload Change (schedule let say: 15Kg).

    * After this, press another 5mm to ensure that the vacuumgripper fits properly.

    * Vacuum on, vacuum OK and wait 0.5 sec

    * Then turn away in Y and Z to be free of pallet / other products.

    When Z is >50mm out of Payload change Area (Yellow led off).

    Payload error appears after moving up.

    Already also tried to make this smoother with Acc/Decc.

    Maybe the product is against others product during going up, but i can't solved that.

    Edited 2 times, last by Lpoels (January 3, 2024 at 1:03 PM).

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