I am aware that in Control Logix that you can export the projects and elements of the projects. So what I would like to do is to take some external structured text files and produce a program from them. I would be starting with a blank project that just has the hardware defined. I then want to import a file that sets up a cyclic task and also a program within that task. I can then import the structured text into this program.
I could not see any option to just export the task / program, so
my initial attempts to find a way was to define the task and program that I required and then export the whole project to an l5k file. I then deleted everything in the file except the TASK and PROGRAM sections. I then tried to import this. However, it did not work as it gave me an "invalid data type" error at line 3. Is it possible to just export / import the tasks / programs without the rest of the project data?
(my experimental file is shown below)
IE_VER := 2.8;
PROGRAM TESTS (MODE := 0,
DisableFlag := 0)
TAG
END_TAG
END_PROGRAM
TASK Cyc10ms (Description := "10ms cyclic",
Type := PERIODIC,
Rate := 10,
Priority := 1,
Watchdog := 10,
DisableUpdateOutputs := No,
InhibitTask := No)
TESTS;
END_TASK
I could not see any option to just export the task / program, so
my initial attempts to find a way was to define the task and program that I required and then export the whole project to an l5k file. I then deleted everything in the file except the TASK and PROGRAM sections. I then tried to import this. However, it did not work as it gave me an "invalid data type" error at line 3. Is it possible to just export / import the tasks / programs without the rest of the project data?
(my experimental file is shown below)
IE_VER := 2.8;
PROGRAM TESTS (MODE := 0,
DisableFlag := 0)
TAG
END_TAG
END_PROGRAM
TASK Cyc10ms (Description := "10ms cyclic",
Type := PERIODIC,
Rate := 10,
Priority := 1,
Watchdog := 10,
DisableUpdateOutputs := No,
InhibitTask := No)
TESTS;
END_TASK