- Open CODESYS IDE
- Create a new project or open an existing one
- Go to Tools → Execute Script
- Select
codesys_import.py - Enter arguments:
"C:\path\to\your\project.project" "C:\path\to\test_cross_applied_export" - Click Execute
- Check that
PLC_PRGprogram appears - Check that
GVLwithSEVENvariable appears - Verify the code matches the exported files
"C:\Program Files\CODESYS\CODESYS.exe" ^
--noUI ^
--profile="CODESYS V3.5 SP21" ^
--runscript="codesys_import.py" ^
"C:\Projects\MyProject.project" ^
"C:\path\to\test_cross_applied_export"From test_cross_applied_export/:
-
PLC_PRG.prg.st → Creates/updates Program
PLC_PRG- Implementation:
test test4; begin; i = i+1;
- Implementation:
-
GVL.gvl.st → Creates/updates GVL
GVL- Variables:
SEVEN: INT;
- Variables:
- If POUs/GVLs already exist, they will be updated
- If they don't exist, they will be created
- The project will be saved automatically after import