Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:31:54 PM
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)
| | |-+  KRL in VKRC 2
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: KRL in VKRC 2  (Read 569 times)
toth
Newbie
*
Offline Offline

Posts: 3


« on: April 21, 2010, 12:33:31 PM »

Hello!

Have you ever come across the problem of not being able to put any KRL commands in any file. A work with VKRC 2 V. 5.4.10 (Volkswagen Version) and I can't write anything that is not created by inline forms (accessible from speedbuttons).  When I'm trying to write something by keyboard in editor when I close the file (it asks me if I want to save changes - I choose yes). Then in Navigator file shows that it has compiler error. When I hit "View ERR" for a second I can see message "Generating Code" in the bottom panel and after that there is no error to view and file has no longer any compiler error. When I open it again file is empty ... my KRL commands is no longer there like I had never wrote them.
I tried the most simple KRL commands to make him save antything in any type of file UP, Folge, Marco. No result.
I'm LOST.
Please HELP!

toth
Logged
the leg
Full Member
***
Offline Offline

Posts: 191


Life is like a game of poker .


« Reply #1 on: April 21, 2010, 02:11:47 PM »

is that VW version of software as i think hey have a lot things locked out on there versions  Huh?
Logged
toth
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: April 21, 2010, 03:40:14 PM »

I ruled that one out, because we (and as WE I mean company I work for) have KRL routines used in some applications. I've even edited the code without any problems. But for some reason I can't create my KRL routines from scratch. I probably do something wrong. But I don't know what.
Do I need to do anything more than create a new Macro and edit it entering KRL code. For example "$OUT[1]=true" in the first line of the program. Should it work right away or do I need to change some attributes or something?

toth
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1784



« Reply #3 on: April 21, 2010, 04:48:52 PM »

VW goes to some truly silly lengths locking down their controllers.  In the newer VKRC systems, I've heard that they have active code buried in the Windows side of the system that hunts down and deletes .SRC and .DAT files that aren't part of the standard VKRC template, and even does the same to code inside modules that was not created using VW inline forms. 

Still, all is not lost.  I've also been told (I have no firsthand knowledge, sadly) that VW eventually learned that there really is such a thing as Too Much Lockdown, and created a User directory where non-VW standard code could be written and stored, for applications that don't fit into the standard VW template.

The other item to look for is that, even in the USER directories, your custom KRL module may still need the standard headers of a regular KRL module.  You might want to try creating an empty program in the User directory first, using the regular menu-driven process, then edit that resulting module offline to hold the KRL code you want and reload it.

Logged
toth
Newbie
*
Offline Offline

Posts: 3


« Reply #4 on: April 28, 2010, 06:01:29 PM »

I've managed to figure that one out so I thought that I post what I've learned, maybe it becomes usefull for someone one day.

SkyeFire is right, the are some specyfic lockdowns in the Volkswagen version of KUKA system. None of regular files  (UP, Folge or Makro0) can be written with non inline forms commands. There are only files called VW User (VW_USER.SRC, VW_USER_R.SRC, VW_USER_S.SRC) which can be changed with KRL code.

However if you are persistant and want to put KRL code in regular file i.e. UP you can do that with a simple trick.
First of all you need to create FOLD with specyfic parameters like the one below. Without it, code you put in the file will be deleted. But this is not going to stop erasing the code yet. Algorithm of restoring "proper" version of the file is quite naive. It is enough that when you open the file from KRC Navigator your KRL code is already in it. Code itself is not being recognised and checked, only the file change status. So as simple as it is you log Expert on, go to Windows Notepad and change the code in the file you want. Then you switch to KRC HMI and Select the file (it is important to "Select", not "Open" it). Then you cancel the file and from that time it is working correctly. Writting program this way can be a little pain in the a**, but man has to do the best he can with what he has. If anyone have found easier way to do that it would be great if he shared his method.

;FOLD Name of your fold;%{PSE}%MKUKATPVW,%CUSER,%VEXPERT

 ...your KRL CODE here

;ENDFOLD

enjoy
toth
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!