RC7 interpreters handle 500-line scripts efficiently but degrade exponentially beyond 2,000 lines. Break large jobs into modules.
By default, variables reset on power cycle. Use VAR_RETAIN to preserve values. rc7 script
VAR_RETAIN
nProductionCount : INT; // Survives reboot
END_VAR
A script must close with an EXIT code. Without it, the interpreter may hang.
EXIT|0|"Execution complete" A script must close with an EXIT code