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

Can not change String Variable length in CMOS

  • Corey Applegate
  • August 20, 2024 at 2:45 PM
  • Thread is Unresolved
  • Corey Applegate
    Posts
    9
    • August 20, 2024 at 2:45 PM
    • #1

    I have a CRX Plugin that I been developing. I have a String Variable declared as

    Code
    LW_Logs_File_Path       	IN CMOS : STRING[20]

    and everywhere I need to reference it I have

    Code
    LW_Logs_File_Path       IN CMOS from IPL_CMA_LightWeld_CFG  : STRING[20]

    I have attempted to change the length to STRING[30] everywhere but during install I get a VARS-022 Duplicate creation TYPE mismatch.

    I have uninstalled the plugin, Manually deleted any known files that have the above lines of code in them as well as the variable files, but I still can not get the update to install.


    Is there a CMOS file or something I can do to unalocate the apparent string length 20 that is reserved?

  • R47
    Reactions Received
    11
    Trophies
    3
    Posts
    110
    • August 21, 2024 at 10:04 AM
    • #2

    HI Corey,

    i think you are not able to change the size of a Variable after you load it into the robot... you need to create an new Variable with an length of[30] an replace the old Variable with the new one.

  • Corey Applegate
    Posts
    9
    • August 21, 2024 at 8:08 PM
    • #3

    There must be a way to purge the old CMOS Variables that are not used. With Karel Programs to do this I need to delete the .pc then the .vr. After the .vr is deleted I can recompile the .kl and the variable is set to the new value.

  • R47
    Reactions Received
    11
    Trophies
    3
    Posts
    110
    • August 22, 2024 at 1:14 PM
    • #4

    try it :thumbs_up:

  • Romain Rabier
    Trophies
    2
    Posts
    2
    • September 19, 2024 at 4:34 PM
    • #5

    Hi Corey Applegate, I think I have the same problem as you.

    I wrote a Karel program which use for declaration variable of my other Karel program (like library somehow). When I load the program in the Robot, I have this error :

    VARS-038 WARN Cannot change CMOS/DRAM type
    Cause: An existing variable is being created in a different memory area (CMOS vs DRAM)
    Remedy: Delete the variable or change the memory type to be used.

    I don't understand why it's cannot be loadable in the physical robot while in Roboguide I haven't any problem

    Code
    TYPE
    [..]
    stPlanPal FROM KSR_GestPlan = STRUCTURE 
    	sNomPlan  	: STRING[20]               
    	sDate      	: STRING[20]                
    	sAuteur    	: STRING[20]               
    	sVersion   	: STRING[20]               
    [..]
    VAR 
    PLAN_PALET		IN CMOS FROM KSR_GestPlan: ARRAY[4] OF stPlanPal

    Before to load the .kl program, I'm check if the .vr is deleted too.

  • Romain Rabier
    Trophies
    2
    Posts
    2
    • September 19, 2024 at 4:48 PM
    • #6

    I checked in the Karels var, all variables are created so I cancel my last message. I don't know why I have this system error by the robot.

  • beanluke
    Reactions Received
    3
    Trophies
    3
    Posts
    32
    • May 30, 2025 at 7:55 PM
    • New
    • #7

    Having the same issue. I changed a variable from integer to real, I deleted all PC and VR files. Still get VARS-012 and VARS-022

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