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

TP Editor

  • Motouser
  • May 23, 2019 at 10:35 AM
  • Thread is Resolved
  • Motouser
    Reactions Received
    39
    Trophies
    4
    Posts
    288
    • May 23, 2019 at 10:35 AM
    • #1

    Hi guys,
    a little but very annoying problem: sometime I've used the print command for "showing" test in keyboard editor. Now after the test when I select the keyboard the string message that I've write for test appears; so the screen is always occupied by a bunch of this string.
    The only way, that I find, to remove them is doing enter or print a void string.

    Is there a way to clear definitively the screen?

    Thanks

  • kwakisaki
    Reactions Received
    694
    Trophies
    12
    Posts
    4,770
    • May 23, 2019 at 11:49 AM
    • #2

    I hear you there........

    Have a look at Section 5 (Monitor Commands) in the AS Language Manual for PRINT.
    You will see many 'format specification codes' which you can apply to the Print command to allow specified formats to be displayed.
    Not too sure if there is a 'global clear screen command' so I utilize the /Cn specification for line feeds and basically print an empty message per line.

    ie PRINT /C50," "; This will automatically print empty message on the next 50 lines just by the single command.

    Hope it helps......................

    View my channel at Industrial Robotics Consultancy Limited - YouTube

    Edited once, last by kwakisaki (May 23, 2019 at 11:52 AM).

  • Motouser
    Reactions Received
    39
    Trophies
    4
    Posts
    288
    • May 23, 2019 at 2:37 PM
    • #3

    Hi kwakisaki,
    you're my last hope:

    if you say that there isn't a 'global clear screen command' I think that it doesn't exist :wallbash: :wallbash: :wallbash:

    Thanks for the PRINT hint.

    Edited once, last by Motouser (May 23, 2019 at 4:52 PM).

  • kwakisaki
    Reactions Received
    694
    Trophies
    12
    Posts
    4,770
    • May 23, 2019 at 6:32 PM
    • #4

    Lol......in that case here's a 'bonus' you may not be aware of..... :justice:

    You could also create something that is called an alias.
    - Where you map an AS command/instruction to a name of your choosing to execute in the terminal editor window.

    ie say you wanted to use a word like cls as used in DOS to clear the screen.

    In the terminal enter:
    zalias cls = PRINT/C50," "

    This creates the alias.
    All you would need to type in to execute that command would be cls and enter in the terminal editor window (inc Teach Pendant Keyboard).
    The alias is stored in a full file save in the SYSDATA under zalias.
    To return a list of stored zalias just type in zalias and enter......and you will see ALL zalias currently stored if any.

    Give it a go................ :top:

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • TygerDawg
    Reactions Received
    6
    Trophies
    3
    Posts
    187
    • May 23, 2019 at 7:00 PM
    • #5

    I concur. I do not think that there is any global clear screen command.
    The method I used with V+ language which is very similar to AS is:

    PRINT /C25, /U25 ;insert 25 carriage returns, then move cursor UP 25 lines (clears page, returns cursor to top)

    I cannot remember if AS supports the /U modifier, not sure that it does.

    I looked at an old program to see how it was done, here is the code snippet.

    Code
    ; called from main()
    ;
    ; clear the screen 25 lines
      PRINT /C25
    ;
    ; initialize the variables
      $choice = ""
     
    ;print the menu structure text
      PRINT /X15,"MAIN OPERATOR MENU"
      PRINT /C1,/X10,"S        RUN STRAIGHT"
      PRINT /C1,/X10,"A        RUN ANGLE"
      PRINT /C1,/X10,"X        EXIT THE PROGRAM"
      PROMPT "               ENTER THE LETTER OF YOUR CHOICE ==>   ",$choice 
    ;
    Display More

    So it appears that I found no means of accomplishing the /U functionality using AS.

    TygerDawg

    Blue Technik

    http://www.bluetechnik.com

  • Motouser
    Reactions Received
    39
    Trophies
    4
    Posts
    288
    • May 24, 2019 at 8:27 AM
    • #6
    Quote from kwakisaki


    Lol......in that case here's a 'bonus' you may not be aware of..... :justice:

    You could also create something that is called an alias.
    - Where you map an AS command/instruction to a name of your choosing to execute in the terminal editor window.

    ie say you wanted to use a word like cls as used in DOS to clear the screen.

    In the terminal enter:
    zalias cls = PRINT/C50," "

    This creates the alias.
    All you would need to type in to execute that command would be cls and enter in the terminal editor window (inc Teach Pendant Keyboard).
    The alias is stored in a full file save in the SYSDATA under zalias.
    To return a list of stored zalias just type in zalias and enter......and you will see ALL zalias currently stored if any.

    Give it a go................ :top:

    Display More

    :biggrins: :biggrins: Just two days ago the "reseller" company show me this fantastic instruction (ZALIAS) with a couple of example!

    Quote from TygerDawg


    I concur. I do not think that there is any global clear screen command.

    This confirm the wizard ability of kwakisaki :icon_mrgreen:
    Thanks for the code TygerDawg.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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