PLC Pie Guy
Member
Hey all.
I am wondering why I cant make a COP instruction work.
Trying to copy Tag[1] to Tag[0].
Tag[1] looks like this. Tag[1].Gun_tag.1 -Bool
Gun_tag.2 -Bool
Gun_tag.3 -Real
Gun_tag.4 -Real
9 more reals
Gun_tag.14 -String
Gun_tag.15 -Dint
This is no problem in any other PLC I have used.
Here as soon as I define this tag a source it says
"Mismatch between assigned expression resulting type (gun) and the target data type (any elementary[1..1]).
It appears that I will not be able to COP an array, MOV turns the same result as well.
Anybody care to offer what I need to do to make this COP work?
I have tried setting my Tag[1] to dimension of 1..20 instead of 0..20. Makes no difference.
Stuck and frustrated!!!!
Thanks
I am wondering why I cant make a COP instruction work.
Trying to copy Tag[1] to Tag[0].
Tag[1] looks like this. Tag[1].Gun_tag.1 -Bool
Gun_tag.2 -Bool
Gun_tag.3 -Real
Gun_tag.4 -Real
9 more reals
Gun_tag.14 -String
Gun_tag.15 -Dint
This is no problem in any other PLC I have used.
Here as soon as I define this tag a source it says
"Mismatch between assigned expression resulting type (gun) and the target data type (any elementary[1..1]).
It appears that I will not be able to COP an array, MOV turns the same result as well.
Anybody care to offer what I need to do to make this COP work?
I have tried setting my Tag[1] to dimension of 1..20 instead of 0..20. Makes no difference.
Stuck and frustrated!!!!
Thanks