Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Modify .mod files variable assignments using code

XNOR
XNOR
edited September 2023 in RAPID Programming
I'm looking to modify a variable assignment in a module file using Rapid code. Looks like this might be possible with some use of Open, datapos, getnextsym, ReadAnyBin, WriteAnyBin, Rewind, Close commands.

Has anyone done this and have a basic example to share? Any tips or hazards to avoid? Obviously this opens up some safety concerns if used incorrectly.

I assume the TP is doing something to this effect when changing variable declarations and using ModPos.

Answers

  • Modify using a rapid program or from a remote device such as a PC?  Modify in which way?  Just changing value or maybe the name?
    Lee Justice