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

KAREL read a string from Teach Pendant

  • Bram Aarssen
  • November 17, 2021 at 10:09 AM
  • Thread is Unresolved
  • Bram Aarssen
    Trophies
    2
    Posts
    6
    • November 17, 2021 at 10:09 AM
    • #1

    Hi there,

    I'm currently working on a project for a company which produces many different types of pallets. I'm currently in school but working on a project for a company for 20 weeks, so I'm definitely no expert:smiling_face:.

    For this project I was thinking of making an ARRAY OF PALLETS (PALLETS I've already defined). Each pallet has a name (for example QWERT1234) and 7 other parameters (integers)

    I know I need to use the READ statement for the 7 parameters, but how do I read a string (for the name) from the teaching pendant? I'm not having any results reading the KAREL manual, so I'm hoping this forum can help me with my problem.

    Kind regards,

    Bram Aarssen

    Edited once, last by Bram Aarssen (November 18, 2021 at 7:52 AM).

  • jmd2777
    Reactions Received
    34
    Trophies
    4
    Posts
    193
    • November 17, 2021 at 3:58 PM
    • #2

    I've never used it before but look at section 11 "Dictionaries and Forms" in the Karel manual.

    I have seen examples there that display a form to the user and allow them to edit fields.

    Also, there is some information in Example B.12 DISPLAYING A LIST FROM A DICTIONARY FILE.

  • dha
    Reactions Received
    28
    Trophies
    6
    Posts
    397
    • November 18, 2021 at 10:55 AM
    • #3

    Once I did something like this.

    I had one KAREL program which calculated positions for palatalizing.

    User set registers depending on product type: size of pallet, size of products, how many products were stacked and and if they overlapped in height and distance to next product.

    Each time you called KAREL program, it output next position.

  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,427
    • November 18, 2021 at 1:34 PM
    • #4
    Quote from Bram Aarssen

    but how do I read a string (for the name) from the teaching pendant?

    What does this mean? What string? Do you mean a string register? Or something the operator is typing on the pendant?

  • Bram Aarssen
    Trophies
    2
    Posts
    6
    • November 18, 2021 at 1:36 PM
    • #5

    I know what to do with the integer parameters. I just don't know how to read a string parameter.

    For example:

    Name = 'ABC123'

    Length = 1200 mm

    Width = 1200 mm

    Height = 160 mm

    ..............

    The length, width, height is easy: READ(<param>). But how do I read a string input ('ABC123', 'CBA321') which the operator enters from the teach pendent.

    Need to add that I've spoken with some people within my company and we're not going to do it this way, but I'm still curious:winking_face:

  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,427
    • November 18, 2021 at 1:40 PM
    • #6
    Quote from Bram Aarssen

    But how do I read a string input ('ABC123', 'CBA321') which the operator enters from the teach pendent.

    Enters how? Typing into an SR? Typing in response to a TP prompt? In what memory location does this string reside?

  • Bram Aarssen
    Trophies
    2
    Posts
    6
    • November 18, 2021 at 1:48 PM
    • #7
    Quote from SkyeFire

    What does this mean? What string? Do you mean a string register? Or something the operator is typing on the pendant?

    Basicly I made a structure pallet which contains:

    Name:string

    Length:integer

    Width:integer

    Height:integer

    ... 3 other integers

    Within the program I wanted to give the customer the option to add a different type.

    Which would ask for a Name, Length, Width, Height... and save it within an array of my structure (pallet)

    So to select which pallet they wanted they would type in the name and it would search within the array for that name. If there would be a match the parameters would be set to the values within the array of that index.

    So if we've currently got:

    Length: 1000mm

    Width: 1000mm

    Height 140mm

    If we enter 'ABC123' which is the name at array[2]

    Length = array[2].Length

    Length = array[2].Width

    Length = array[2].Height

    ...

    That's what I wanted to design. But to enter a new type of pallet I needed to let the operator enter a name on the teaching pendent and save it to array[i].Name.

    Hope this clarifies my thinking process.

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

  • karel
  • string
  • teach pendant
  • read
  • read string
  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