When trying to copy paste or import tasks I get the following errors that appear to disallow users to import them.
This seems like a bug, why would this not be allowed when programs are allowed for import and export? Perhaps the import check has a bug. Either way it is impeding progress on an important project and I would very much appreciate any help on this issue.
I tried copy pasting a full task
DMD version: 2.11.2
when copy pasting these are the errors
[Error] No logic inserted at eventlogger2#1
[Error] Instruction "$TSK" cannot be inserted as a user instruction
[Error] Instruction "$TSKEND" cannot be inserted as a user instruction
Then I tried text export and import
the whole file is
// Options: Export code block eventlogger2 from address 0 to 1;
// Code Block delimiter instructions; Formatted Rung Comments;
// use Element names (no NickNames); rung/address annotations;
// <SPACE> parameter delimiter;
// Write/overwrite file C:\Projects\why_does_this_not_import.txt
PLC BX-DM1E-18ED23-D
// Beginning of Code Block eventlogger2
$TSK eventlogger2
// Rung eventlogger2#1
// Offset 0
STR ST1
OUT C222
// End of Code Block eventlogger2
$TSKEND eventlogger2
I changed all instances of eventlogger2 to eventlogger2_copy
the new file is
// Options: Export code block eventlogger2_copy from address 0 to 1;
// Code Block delimiter instructions; Formatted Rung Comments;
// use Element names (no NickNames); rung/address annotations;
// <SPACE> parameter delimiter;
// Write/overwrite file C:\Projects\why_does_this_not_import.txt
PLC BX-DM1E-18ED23-D
// Beginning of Code Block eventlogger2_copy
$TSK eventlogger2_copy
// Rung eventlogger2_copy#1
// Offset 0
STR ST1
OUT C222
// End of Code Block eventlogger2_copy
$TSKEND eventlogger2_copy
I import it with
As Code BLocks on, Ignore Element Documentation on and Ignore MEM_CONFIG Sections
Tools> Insert instructions from file
Errors:
[Error] why_does_this_not_import copy.txt(10) $TSK P1 Task: Invalid element type
[Error] why_does_this_not_import copy.txt(18) $TSKEND P1 Task: Invalid element type
when trying to insert as rungs I get the following errors
[Error] why_does_this_not_import copy.txt(10) $TSK P1 Task: Invalid element type
[Error] why_does_this_not_import copy.txt(18) $TSKEND P1 Task: Invalid element type
I could use some help duplicating the tasks I have written as I have a template I made that I need to use in a number of places throughout the code. Not being able to duplicate it and import the text file doesn't seem to be something that would be intentional.
If anyone has any tips, ideas, or solutions it would be an immense help and I would greatly appreciate it.