Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 05:45:37 AM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  Fanuc Robots (Moderators: Sven Weyer, Jim Tyrer)
| | |-+  Copy .VR files
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Copy .VR files  (Read 156 times)
DAN
Newbie
*
Offline Offline

Posts: 9


« on: September 15, 2008, 11:50:46 PM »

Can you copy .vr files from one program to another?
Logged
Vlad
Jr. Member
**
Offline Offline

Posts: 58


« Reply #1 on: September 16, 2008, 10:36:58 AM »

Dan,
i don't think you can, but you can share variables between programs:

temp  FROM MAIN : integer

where MAIN is the program which contain "temp"

Is it helpful for you?

bye
Vlad
Logged
DAN
Newbie
*
Offline Offline

Posts: 9


« Reply #2 on: September 17, 2008, 12:47:04 AM »

No I have a main program that calls pg1,pg2 ect. and i wanted to just copy all variables associated with pg1 to pg2 (copy bm:pg1.vr,bm:pg2.vr) but this doesn't work although it seems to exicute the copy command.
Logged
Vlad
Jr. Member
**
Offline Offline

Posts: 58


« Reply #3 on: September 17, 2008, 08:52:27 AM »

DAN,

i would use a "tool" program which copy variables from the first program to the second one. have PG1 and PG2 the same list of variables?

bye,
Vlad
Logged
murrellr
Newbie
*
Offline Offline

Posts: 44



« Reply #4 on: September 17, 2008, 04:24:41 PM »

You can do this if you have the KAREL Command Language (KCL) option installed.  Here is the excerpt from the KAREL Reference Manual.  Its from V7.40, but this command has been around for some time.

C.49 RENAME VARS command
Syntax: RENAME VARS old_prog_name new_prog_name

where:

old_prog_name : the name of any KAREL or TP program

new_prog_name : the name of any KAREL or TP program

Purpose: Changes the name of the variable data associated with the old_prog_name to the new_prog_name . The variable data will no longer exist under the old_prog_name .

Before you use the RENAME VARS command, the variable data must exist in memory under the old_prog_name . Variable data cannot already exist in memory under the new_prog_name .

The command does not rename the program. To rename a KAREL program, use the KCL> RENAME FILE to rename the .KL file, edit the program name in the .KL file, translate the program, and load the new C file. To rename a TP program, use the SELECT menu.

You must enter the KCL> SAVE VARS command to make the change permanent.

Example: KCL> RENAME VARS test_1 test_2

Use this sequence of KCL commands to copy the variable data of one program ( prog_1 ) into a variable file that is then used by another program ( prog_2 ):

LOAD VARS prog_1

RENAME VARS prog_1 prog_2

SAVE VARS prog_2

LOAD ALL prog_2

The effect of this sequence of commands cannot be accomplished with the KCL> COPY FILE command.

The name of the program to which the variable data belongs is stored in the variable file. The KCL> COPY FILE command does not change that stored program name, so the data cannot be used with another program.
Logged

The future isn't what it used to be.
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.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!