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

KRC2 read number from KCP

  • Milan
  • March 23, 2022 at 9:50 PM
  • Thread is Unresolved
  • Milan
    Trophies
    3
    Posts
    13
    • March 23, 2022 at 9:50 PM
    • #1

    Hello,

    At dispensing application, I want to ask customer to enter dimensions of the workpiece and robot will perform trajectory defined by offsets (x and y directions) from the starting point.

    In ABB Rapid, this is TPRead instruction, but I'm not aware which instruction is KUKA KRL equivalent.

    Variable could be INTEGER data type.

    That values are different from time to time and cannot be fixed by program.

    Is the any way to realize that?

    Many thanks for support.

    Zeljko

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,033
    • March 24, 2022 at 7:17 AM
    • #2

    in KRL one would use geometric operator to add offset.


    DECL FRAME Shift

    ;

    Shift = $nullframe ; all 6 elements zeroed (must initialize them all)

    Shift.Y = 33.6 ; mm (this could come from where ever you like)

    PTP P1

    PTP P1:Shift

    PTP P1

    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

  • Milan
    Trophies
    3
    Posts
    13
    • March 24, 2022 at 8:15 AM
    • #3

    Many thanks for you support, but I need info how to read number from KCP keyboard, first.

    Later on, once I store number (integer) into variable, lets say Y.dir, then I can use it for:

    Shift.Y = Y.dir;

    Some advice?

  • panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,033
    • March 24, 2022 at 1:00 PM
    • #4

    Integer will likely be too coarse, it is probably better to stick with real.

    It is not clear what you are asking. It appears that you want to make changes at runtime. This is dangerous as any typo can send robot on a collision course.

    Normally values are changed by editing file or value using single variable monitor or variable overview. Better way is to use inline form created with UserTech.

    Another option is to read parameters from a file using CWRITE. Then there is an option to use dialog as a keypad. There is also fancy option using add-on software like myHmi or EasyHMi or Zenon or numeric entry from OrangeApps. And if you know enough you can make your own.

    Btw if you are ok with integers, why not use built in and almost never used functionality - counters ...

    twenty counters are already shown and editable by HMI.

    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

  • verove
    Reactions Received
    4
    Trophies
    3
    Posts
    73
    • March 24, 2022 at 3:08 PM
    • #5

    Hey Milan,

    Quote from Milan

    In ABB Rapid, this is TPRead instruction

    I'm unsure that KRL has a specific function that matches the TPRead Rapid instruction. But, it does have a dialog pop-up option. Check out the message library (MsgLib.scr / MsgLib.dat) for this.

    You can create a dialog box with up to 7 softkeys and they can be used to select certain answers. Whatever key is pressed, will return a value (similar to the nFnKey in Rapid).

    So if you have predetermined values that the user needs to choose from, you can use the first 6 keys as options and the last softkey as a "Next Page". It'd work something like this:

    Code
    MsgDialog(DialogAnswer, "Please choose: blue or red?","Cell",, "BLUE", "RED") 
    IF (DialogAnswer==6) THEN
      ;color is red
    ELSE
      ;color is blue
    ENDIF
  • Online
    SkyeFire
    Reactions Received
    1,039
    Trophies
    12
    Posts
    9,380
    • March 24, 2022 at 5:01 PM
    • #6

    Sadly, KRL doesn't have an equivalent of the RAPID TPRead, only an equivalent of the TPReadFK.

    OrangeApps.de offers an option package that provides similar functionality, but I'm not sure how much it costs.

    I've attached a somewhat crude workaround example I wrote a while back to "dial" a value in using the softkeys.

    Files

    DialASetting.zip 1.41 kB – 10 Downloads

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

Tags

  • variable
  • Number article
  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