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

E6POS array and touch up problem

  • s.yilmaz
  • September 28, 2016 at 9:39 PM
  • Thread is Resolved
  • s.yilmaz
    Trophies
    3
    Posts
    14
    • September 28, 2016 at 9:39 PM
    • #1

    Hi,

    I declared an E6POS array and there is no error.
    But in .src file when I try to touch up a point which is in my array, Kuka shows me the default tool and base, not my point's FDAT_ACT value.
    As I understood when you try to touch up a point ex: xExamplePoint the system try to fınd an FDAT which is called fExamplePoint. If can not find It uses the actual tool and base.
    I Declared an FDAT array with same name of my array but it did not worked. System still try to touch up with actual tool and base.
    Is there anyone who can touch up an array point with correct tool and base?

    Code
    ;FOLD XCKMC1_COL1_APRO 
    DECL GLOBAL E6POS XEXAMPLEARR[3]
    XEXAMPLEARR[1]={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
    XEXAMPLEARR[2]={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
    XEXAMPLEARR[3]={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0}
    
    
    DECL GLOBAL FDAT FEXAMPLEARR[3]
    FEXAMPLEARR[1] ={TOOL_NO 14,BASE_NO 0,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
    FEXAMPLEARR[2] ={TOOL_NO 15,BASE_NO 0,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
    FEXAMPLEARR[3] ={TOOL_NO 16,BASE_NO 0,IPO_FRAME #BASE,POINT2[] " ",TQ_STATE FALSE}
    ;ENDFOLD
    Display More

    My .src file

    Code
    ;FOLD LIN XEXAMPLEARR[1] CONT Vel=2 m/s mBlend10mm Tool[1]:TGRIP_WITHOUTLOAD Base[0];%{PE}%R 8.3.40,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:XEXAMPLEARR[1], 3:C_DIS C_DIS, 5:2, 7:mBlend10mm
       $BWDSTART=FALSE
       LDAT_ACT=LmBlend10mm
       FDAT_ACT=FEXAMPLEARR
       BAS(#CP_PARAMS,2)
       LIN XEXAMPLEARR[1] C_DIS C_DIS
    ;ENDFOLD
    
    
    ;FOLD LIN XEXAMPLEARR[2] CONT Vel=2 m/s mBlend10mm Tool[1]:TGRIP_WITHOUTLOAD Base[0];%{PE}%R 8.3.40,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:XEXAMPLEARR[2], 3:C_DIS C_DIS, 5:2, 7:mBlend10mm
       $BWDSTART=FALSE
       LDAT_ACT=LmBlend10mm
       FDAT_ACT=FEXAMPLEARR
       BAS(#CP_PARAMS,2)
       LIN XEXAMPLEARR[2] C_DIS C_DIS
    ;ENDFOLD
    
    
    ;FOLD LIN XEXAMPLEARR[3] CONT Vel=2 m/s mBlend10mm Tool[1]:TGRIP_WITHOUTLOAD Base[0];%{PE}%R 8.3.40,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:XEXAMPLEARR[3], 3:C_DIS C_DIS, 5:2, 7:mBlend10mm
       $BWDSTART=FALSE
       LDAT_ACT=LmBlend10mm
       FDAT_ACT=FEXAMPLEARR
       BAS(#CP_PARAMS,2)
       LIN XEXAMPLEARR[3] C_DIS C_DIS
    ;ENDFOLD
    Display More

    My Kernel System is V8.3.161

    Edited once, last by s.yilmaz (September 29, 2016 at 8:07 AM).

  • Online
    panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,079
    • September 28, 2016 at 11:46 PM
    • #2

    yes... it works fine for me.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • s.yilmaz
    Trophies
    3
    Posts
    14
    • September 29, 2016 at 8:16 AM
    • #3

    I modified my question and added my .src file content.
    What is wrong here? Why my code does not work?

  • Fubini
    Reactions Received
    278
    Trophies
    9
    Posts
    1,886
    • September 29, 2016 at 8:30 AM
    • #4

    Try not to use arrays. Probably the controller does not expect arrays to be used here. At least when I try to teach positions the controller does not use arrays.

    DECL GLOBAL E6POS XEXAMPLEARR1 = {...}
    DECL GLOBAL E6POS XEXAMPLEARR2 = {...}
    DECL GLOBAL E6POS XEXAMPLEARR3 = {...}
    ...

    DECL GLOBAL FDAT FEXAMPLEARR1 = {...}
    DECL GLOBAL FDAT FEXAMPLEARR2 = {...}
    DECL GLOBAL FDAT FEXAMPLEARR3 = {...}
    ...

    Fubini

  • s.yilmaz
    Trophies
    3
    Posts
    14
    • September 29, 2016 at 8:54 AM
    • #5

    I need to use arrays. if I dont use arrays I know it works.

    what is the meaning of FDAT_ACT= in the defining of a point? the controller system really looks this value?

    Because as I understood controller try to find an FDAT which is the same name with the point. (point -> XEXAMPLE fdat-> FEXAMPLE )

  • Fubini
    Reactions Received
    278
    Trophies
    9
    Posts
    1,886
    • September 29, 2016 at 11:09 AM
    • #6

    Well it is not important what you need. It is important how the controller can handle it. And this is not in connection to arrays.

    FDAT_ACT: Yes it is used. Study bas.src on how it is used.

    Fubini

    Edited once, last by Fubini (September 29, 2016 at 11:10 AM).

  • Online
    panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,079
    • September 29, 2016 at 2:21 PM
    • #7

    it does work fine, interpreter has no problem with it, touching up works as expected etc.
    the issue is that such things are pain to work with because HMI editor does not allow use of square brackets in name.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,423
    • September 29, 2016 at 4:02 PM
    • #8
    Quote from s.yilmaz


    I need to use arrays. if I dont use arrays I know it works.

    what is the meaning of FDAT_ACT= in the defining of a point? the controller system really looks this value?

    Because as I understood controller try to find an FDAT which is the same name with the point. (point -> XEXAMPLE fdat-> FEXAMPLE )

    Actually, the FDAT variable can have any name. It's just that the HMI makes the FDAT variable match the point name variable by default, when creating a point using the standard inline forms.

    If you wanted, you could have only one FDAT variable in your .DAT file, and simply use it at every point.

    FDAT variables are used to assign Tool and Base data on a point-by-point basis.

    The only reason that FDAT_ACT and BAS are used in every move is to make menu-driven programming from the pendant easier. The problem is, the menu-driven programming system was set up as a "easy mode" programming system -- every point created, named, and taught from the pendant using the menus. Once you start trying to get fancier, like building points into arrays, the system starts to break down, because it wasn't designed to cover that option. One thing to understand is that, to enable menu-based programming, the user interface bundles multiple, often redundant, lines of KRL code together where an KRL programmer would only use 1 or 2 lines. And the lines that begin with ";" are treated by the compiler as comments -- they only exist to enable the inline form drop-down menus.

    Are you creating this program on the pendant, by hand, or generating it offline? I assume it must be the latter, since the inline form will not accept "[" or "]" characters. If you are generating this code offline, then you should be okay to do things like touch-ups from the pendant, but you won't be able to add new points or change the names due to the character limitation.

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