Universal Robots Forum

Script Wrapping when loading Script Files

what confused me for a while is that when i load a generated Script File from a Program with the Script Node it gets wrapped in the Robot Program like

def Program():
  ... init Stuff ...
  $ 1 ProgramNode:
  def Program():
    ... init Stuff...
    $ 1 ProgramNode:
      ... original Program ...
  end
end

which always leads to an Error because of duplicate node Numbers.
i need to delete these node references so this is why i’m asking for a feature to auto-unwrap the scripts or the ability to load scripts as a Program.

The Purpose of this would be to use cross-platform scripts with different Firmware Versions and robot types (e/CB-Series).