Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 10:43:55 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  KUKA Robot Forum (Moderators: Werner Hampel, Martin H, SkyeFire)
| | |-+  Kuka Message Display
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Kuka Message Display  (Read 961 times)
AUTO
Newbie
*
Offline Offline

Posts: 14


« on: March 03, 2010, 02:08:58 PM »

Gents

I am looking for documentation or even an example how to write a krl command to display a message for example a notification,acknowledge or confirmation messages.

Thanks
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1625


« Reply #1 on: March 03, 2010, 03:48:23 PM »

Unless you have KSS version 5.5 or higher, the messaging system for the KCP is a bit primitive, but it works.

The simplest messages are done using $LOOP_MSG[].  This is a "string" variable (in KRL, really an array of type CHAR).  It's normally blank, but it you set it to any valid string (limit of 60 or 80 characters, if I recall correctly), it should show that string in the message window and produce a "SIMULATE" button in the bottom row of KCP softkeys.  I've had mixed luck getting the button, but the rest of it works.  If the button appears, you can monitor the $LOOP_CONT boolean variable: you need to set it True before setting $LOOP_MSG[], and monitor it -- when it goes False, that means someone hit the button.  So:
Code:
$LOOP_CONT = TRUE
$LOOP_MSG[] = "This Is My Test Message"
WAIT FOR NOT $LOOP_CONT

The other, more complicated way of doing KCP messages is using the $MSG_T variable.  $MSG_T is a STRUC variable with several members of different types.  In general, you set your message type using $MSG_T.TYP, put your message string into $MSG_T.KEY[], send the message to the KCP window using $MSG_T.VALID, and release a message (if it's a Dialog or State type) using $MSG_T.RELEASE.

Logged
mookie
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 331



« Reply #2 on: March 03, 2010, 05:18:44 PM »

just remember that if you are going to use the $loop_msg[], clear out the string before you put a value in it. you cant just use $loop_msg = " ", it will contiinue to index characters, the best way to do it is

Wait for StrClear($Loop_Msg[])

What version of KSS do you have? What type of messages are you trying to create? it makes a big difference because with 5.5, allthough the messages are easier to create, it can mess up on you, 5.6 has explicit messaging added but makes you take a couple of extra steps to get the job done.

Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!